/* ==========================================================================
   ORNGE SHADE — Global Stylesheet
   Platform: WordPress + Astra Theme
   Add via: Appearance > Customize > Additional CSS (or Astra child theme)
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --os-orange: #F7931A;
  --os-orange-dim: rgba(247, 147, 26, 0.15);
  --os-orange-glow: rgba(247, 147, 26, 0.35);
  --os-bg: #0A0A0A;
  --os-bg-card: #111111;
  --os-bg-card-hover: #1a1a1a;
  --os-text: #FFFFFF;
  --os-text-muted: #888888;
  --os-text-dim: #555555;
  --os-green: #00FF88;
  --os-red: #FF4444;
  --os-cyan: #00D4FF;
  --os-coral: #FF6B6B;
  --os-border: #222222;
  --os-border-light: #333333;
  --os-glass-bg: rgba(17, 17, 17, 0.7);
  --os-glass-border: rgba(247, 147, 26, 0.2);
  --os-radius: 8px;
  --os-radius-lg: 12px;
  --os-transition: 0.3s ease;
  --os-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --os-font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
body.flavor-flavor,
.ast-separate-container,
.ast-plain-container {
  background-color: var(--os-bg) !important;
  color: var(--os-text) !important;
  font-family: var(--os-font) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Override Astra containers */
.site-content .ast-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-post .entry-content,
.ast-plain-container .site-content .ast-container {
  background-color: transparent !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.entry-content {
  max-width: 100% !important;
}

/* Remove Astra default padding/margins on content */
.ast-separate-container .ast-article-single .entry-content,
.ast-plain-container .ast-article-single .entry-content {
  padding: 0 !important;
}

a {
  color: var(--os-orange);
  text-decoration: none;
  transition: color var(--os-transition);
}

a:hover {
  color: #ffaa44;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--os-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--os-text);
}

.os-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--os-orange);
  margin-bottom: 1rem;
}

.os-h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.os-h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.os-h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

.os-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--os-text-muted);
}

.os-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--os-text-muted);
}

/* --- Layout Utilities --- */
.os-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.os-container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.os-container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.os-section {
  padding: 5rem 0;
}

.os-section-sm {
  padding: 3rem 0;
}

.os-section-lg {
  padding: 8rem 0;
}

.os-text-center {
  text-align: center;
}

.os-flex {
  display: flex;
}

.os-grid {
  display: grid;
}

/* --- Navigation --- */
.os-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.os-nav.scrolled {
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--os-border);
}

.os-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.os-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--os-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--os-text);
  text-decoration: none;
}

.os-nav-logo:hover {
  color: var(--os-text);
}

.os-nav-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--os-orange);
}

.os-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.os-nav-links a {
  color: var(--os-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color var(--os-transition);
}

.os-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--os-orange);
  transition: width 0.3s ease;
}

.os-nav-links a:hover,
.os-nav-links a.active {
  color: var(--os-text);
}

.os-nav-links a:hover::after,
.os-nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.os-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1002;
}

.os-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--os-text);
  transition: all 0.3s ease;
}

.os-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.os-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.os-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.os-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.os-mobile-nav.open {
  display: flex;
}

.os-mobile-nav a {
  font-family: var(--os-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--os-text);
  text-decoration: none;
  transition: color var(--os-transition);
}

.os-mobile-nav a:hover,
.os-mobile-nav a.active {
  color: var(--os-orange);
}

@media (max-width: 767px) {
  .os-nav-links {
    display: none;
  }
  .os-hamburger {
    display: flex;
  }
}

/* --- Buttons --- */
.os-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--os-font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--os-radius);
  cursor: pointer;
  transition: all var(--os-transition);
  text-decoration: none;
  border: none;
  min-height: 44px;
}

.os-btn-primary {
  background: var(--os-orange);
  color: #000;
}

.os-btn-primary:hover {
  background: #ffaa44;
  color: #000;
  transform: scale(1.02);
  filter: brightness(1.1);
}

.os-btn-secondary {
  background: transparent;
  color: var(--os-text);
  border: 1px solid var(--os-border-light);
}

.os-btn-secondary:hover {
  border-color: var(--os-orange);
  color: var(--os-orange);
  transform: scale(1.02);
}

.os-btn-ghost {
  background: transparent;
  color: var(--os-orange);
  padding: 0.5rem 0;
}

.os-btn-ghost:hover {
  color: #ffaa44;
}

@media (max-width: 767px) {
  .os-btn-full-mobile {
    width: 100%;
    justify-content: center;
  }
}

/* --- Cards --- */
.os-card {
  background: var(--os-bg-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius-lg);
  padding: 2rem;
  transition: all var(--os-transition);
}

.os-card:hover {
  border-color: var(--os-border-light);
  background: var(--os-bg-card-hover);
}

.os-card-glass {
  background: var(--os-glass-bg);
  border: 1px solid var(--os-glass-border);
  border-radius: var(--os-radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--os-transition);
}

.os-card-glass:hover {
  border-color: var(--os-orange);
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.1);
}

/* --- Stat Cards --- */
.os-stat-card {
  background: var(--os-bg-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius-lg);
  padding: 1.25rem 1.5rem;
  transition: all var(--os-transition);
}

.os-stat-card:hover {
  border-color: rgba(247, 147, 26, 0.4);
  box-shadow: 0 0 15px rgba(247, 147, 26, 0.08);
}

.os-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--os-text-muted);
  margin-bottom: 0.5rem;
}

.os-stat-value {
  font-family: var(--os-font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--os-text);
  line-height: 1.2;
}

.os-stat-value.orange {
  color: var(--os-orange);
}

.os-stat-subtext {
  font-size: 0.75rem;
  color: var(--os-text-muted);
  margin-top: 0.25rem;
}

.os-positive {
  color: var(--os-green) !important;
}

.os-negative {
  color: var(--os-red) !important;
}

/* --- Hero Sections --- */
.os-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.os-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.os-hero-taglines {
  margin: 2rem 0;
}

.os-hero-taglines p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--os-text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.os-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Hero grid animation background */
.os-hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(247, 147, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 147, 26, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Scroll indicator */
.os-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--os-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.os-scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--os-text-dim);
  border-bottom: 2px solid var(--os-text-dim);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* --- Page Hero (non-full-screen) --- */
.os-page-hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.os-page-hero .os-section-label {
  margin-bottom: 1.5rem;
}

.os-page-hero .os-h1 {
  margin-bottom: 1rem;
}

.os-page-hero .os-body-lg {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Feature Cards Grid --- */
.os-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .os-features-grid {
    grid-template-columns: 1fr;
  }
}

.os-feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.os-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--os-orange);
}

.os-feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.os-feature-card p {
  color: var(--os-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Pricing Callout --- */
.os-pricing-callout {
  text-align: center;
  padding: 4rem 2rem;
}

.os-pricing-amount {
  font-family: var(--os-font-heading);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--os-orange);
  line-height: 1;
}

.os-pricing-period {
  font-size: 1.25rem;
  color: var(--os-text-muted);
  margin-top: 0.5rem;
}

/* --- Two Column (Is / Is Not) --- */
.os-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 767px) {
  .os-two-col {
    grid-template-columns: 1fr;
  }
}

.os-list-card {
  padding: 2.5rem;
}

.os-list-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.os-list-card ul {
  list-style: none;
  padding: 0;
}

.os-list-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--os-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.os-list-is ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--os-orange);
  font-weight: 700;
}

.os-list-isnot ul li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--os-text-dim);
  font-weight: 700;
}

.os-list-is {
  border-left: 3px solid var(--os-orange);
}

.os-list-isnot {
  border-left: 3px solid var(--os-text-dim);
}

/* --- Subscribe Pricing Tiers --- */
.os-tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .os-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.os-tier-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.os-tier-card.featured {
  border-color: var(--os-orange);
  box-shadow: 0 0 30px rgba(247, 147, 26, 0.1);
  position: relative;
}

.os-tier-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--os-orange);
  border-radius: var(--os-radius-lg) var(--os-radius-lg) 0 0;
}

.os-tier-name {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--os-text-muted);
  margin-bottom: 0.5rem;
}

.os-tier-price {
  font-family: var(--os-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--os-text);
  margin-bottom: 0.25rem;
}

.os-tier-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--os-text-muted);
}

.os-tier-desc {
  color: var(--os-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.os-tier-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.os-tier-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--os-text-muted);
}

.os-tier-features li.included::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--os-green);
  font-weight: 700;
}

.os-tier-features li.excluded {
  color: var(--os-text-dim);
}

.os-tier-features li.excluded::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--os-text-dim);
}

/* --- FAQ Accordion --- */
.os-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.os-faq-item {
  border-bottom: 1px solid var(--os-border);
}

.os-faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--os-text);
  font-family: var(--os-font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}

.os-faq-question:hover {
  color: var(--os-orange);
}

.os-faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--os-orange);
  flex-shrink: 0;
  margin-left: 1rem;
}

.os-faq-item.open .os-faq-icon {
  transform: rotate(45deg);
}

.os-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.os-faq-item.open .os-faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.os-faq-answer p {
  color: var(--os-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Rules Cards --- */
.os-rule-card {
  position: relative;
  padding: 3rem 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.os-rule-number {
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  font-family: var(--os-font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(247, 147, 26, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.os-rule-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.os-rule-body {
  color: var(--os-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  max-width: 700px;
}

/* --- Dashboard Specific --- */
.os-dash-header {
  padding: 6rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--os-border);
}

.os-dash-logo {
  font-family: var(--os-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--os-text);
  margin-bottom: 0.25rem;
}

.os-dash-logo span {
  color: var(--os-orange);
}

.os-dash-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--os-text-muted);
  margin-bottom: 0.25rem;
}

.os-dash-tagline {
  font-size: 0.8rem;
  color: var(--os-text-dim);
  font-style: italic;
}

.os-dash-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--os-text-muted);
  margin-top: 0.75rem;
}

.os-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--os-orange);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(247, 147, 26, 0); }
}

/* Dashboard stats grid */
.os-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1023px) {
  .os-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .os-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage preview stats grid (4 cards) */
.os-preview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1023px) {
  .os-preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .os-preview-stats {
    grid-template-columns: 1fr;
  }
}

/* --- Holdings Table --- */
.os-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius-lg);
}

.os-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.os-table thead th {
  background: var(--os-bg-card);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--os-text-muted);
  border-bottom: 1px solid var(--os-border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--os-transition);
}

.os-table thead th:hover {
  color: var(--os-orange);
}

.os-table thead th.sorted-asc::after {
  content: ' ▲';
  font-size: 0.6rem;
}

.os-table thead th.sorted-desc::after {
  content: ' ▼';
  font-size: 0.6rem;
}

.os-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--os-border);
  white-space: nowrap;
}

.os-table tbody tr {
  transition: background-color var(--os-transition);
}

.os-table tbody tr:hover {
  background: var(--os-bg-card-hover);
}

.os-table tbody tr:last-child td {
  border-bottom: none;
}

.os-ticker {
  font-weight: 700;
  color: var(--os-text);
}

.os-sector-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--os-orange-dim);
  color: var(--os-orange);
  font-weight: 500;
}

/* Portfolio percentage bar */
.os-port-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.os-port-bar {
  height: 4px;
  background: var(--os-orange);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.os-port-bar-bg {
  width: 60px;
  height: 4px;
  background: var(--os-border);
  border-radius: 2px;
  overflow: hidden;
}

/* Mobile holdings cards */
.os-holdings-cards {
  display: none;
}

@media (max-width: 767px) {
  .os-table-wrapper {
    display: none;
  }
  .os-holdings-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}

.os-holding-card {
  background: var(--os-bg-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--os-transition);
}

.os-holding-card:hover {
  border-color: var(--os-border-light);
}

.os-holding-card-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.os-holding-card-details {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--os-border);
  font-size: 0.85rem;
}

.os-holding-card.expanded .os-holding-card-details {
  display: block;
}

.os-holding-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  color: var(--os-text-muted);
}

.os-holding-detail-row span:last-child {
  color: var(--os-text);
  font-weight: 500;
}

/* --- Charts --- */
.os-chart-container {
  background: var(--os-bg-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius-lg);
  padding: 1.5rem;
  position: relative;
}

.os-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.os-chart-title {
  font-size: 1rem;
  font-weight: 600;
}

.os-alpha-badge {
  background: var(--os-orange-dim);
  color: var(--os-orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.os-chart-canvas {
  width: 100%;
  height: 350px;
}

@media (max-width: 767px) {
  .os-chart-canvas {
    height: 250px;
  }
}

/* Donut chart */
.os-donut-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .os-donut-container {
    flex-direction: column;
  }
}

.os-donut-canvas-wrap {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.os-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.os-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.os-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.os-legend-label {
  color: var(--os-text-muted);
}

.os-legend-value {
  color: var(--os-text);
  font-weight: 600;
  margin-left: auto;
}

/* --- Income Section --- */
.os-income-card {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.os-income-item {
  flex: 1;
  min-width: 150px;
}

.os-income-item .os-stat-label {
  margin-bottom: 0.25rem;
}

.os-income-item .os-stat-value {
  font-size: 1.5rem;
}

/* --- Skeleton Loading --- */
.os-skeleton {
  background: linear-gradient(90deg, var(--os-bg-card) 25%, var(--os-bg-card-hover) 50%, var(--os-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--os-radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.os-skeleton-text {
  height: 1em;
  margin-bottom: 0.5rem;
}

.os-skeleton-stat {
  height: 2.5rem;
  width: 120px;
}

.os-skeleton-chart {
  height: 350px;
  width: 100%;
}

/* --- Scroll Animations --- */
.os-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.os-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.os-stagger-1 { transition-delay: 0ms; }
.os-stagger-2 { transition-delay: 100ms; }
.os-stagger-3 { transition-delay: 200ms; }
.os-stagger-4 { transition-delay: 300ms; }
.os-stagger-5 { transition-delay: 400ms; }
.os-stagger-6 { transition-delay: 500ms; }

/* Fade-in for hero taglines */
.os-fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.8s ease forwards;
}

.os-fade-in-1 { animation-delay: 0.3s; }
.os-fade-in-2 { animation-delay: 0.6s; }
.os-fade-in-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Counter animation handled via JS, this is the style */
.os-counter {
  font-variant-numeric: tabular-nums;
}

/* --- Footer --- */
.os-footer {
  border-top: 1px solid var(--os-border);
  padding: 3rem 0;
  margin-top: 2rem;
}

.os-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.os-footer-brand {
  font-family: var(--os-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--os-text);
  margin-bottom: 0.5rem;
}

.os-footer-tagline {
  font-size: 0.875rem;
  color: var(--os-text-muted);
}

.os-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.os-footer-links a {
  font-size: 0.875rem;
  color: var(--os-text-muted);
  transition: color var(--os-transition);
}

.os-footer-links a:hover {
  color: var(--os-orange);
}

.os-footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--os-text-dim);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--os-border);
}

@media (max-width: 767px) {
  .os-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .os-footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* --- Disclaimer --- */
.os-disclaimer {
  padding: 2rem 0;
  border-top: 1px solid var(--os-border);
}

.os-disclaimer p {
  font-size: 0.75rem;
  color: var(--os-text-dim);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* --- CTA Sections --- */
.os-cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--os-border);
}

.os-cta-section .os-section-label {
  margin-bottom: 1rem;
}

.os-cta-section .os-h2 {
  margin-bottom: 1.5rem;
}

.os-cta-section .os-body-lg {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Pull Quote --- */
.os-pull-quote {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--os-text);
  line-height: 1.5;
  border-left: 3px solid var(--os-orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* --- Thesis paragraphs --- */
.os-thesis-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--os-text-muted);
  margin-bottom: 1.5rem;
}

/* --- Trade History (collapsible) --- */
.os-trades-toggle {
  width: 100%;
  background: var(--os-bg-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  color: var(--os-text);
  font-family: var(--os-font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--os-transition);
}

.os-trades-toggle:hover {
  border-color: var(--os-orange);
}

.os-trades-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.os-trades-content.open {
  max-height: 2000px;
}

/* --- Dashboard Last Updated --- */
.os-last-updated {
  text-align: center;
  font-size: 0.75rem;
  color: var(--os-text-dim);
  padding: 1rem 0;
}

/* --- Contact Email --- */
.os-contact {
  font-size: 0.9rem;
  color: var(--os-text-muted);
  margin-top: 1rem;
}

.os-contact a {
  color: var(--os-orange);
}

/* --- Error State --- */
.os-error {
  text-align: center;
  padding: 3rem;
  color: var(--os-red);
}

.os-error p {
  margin-bottom: 1rem;
}

/* --- Utility --- */
.os-mt-1 { margin-top: 0.5rem; }
.os-mt-2 { margin-top: 1rem; }
.os-mt-3 { margin-top: 1.5rem; }
.os-mt-4 { margin-top: 2rem; }
.os-mb-1 { margin-bottom: 0.5rem; }
.os-mb-2 { margin-bottom: 1rem; }
.os-mb-3 { margin-bottom: 1.5rem; }
.os-mb-4 { margin-bottom: 2rem; }
.os-gap-1 { gap: 0.5rem; }
.os-gap-2 { gap: 1rem; }
.os-gap-3 { gap: 1.5rem; }

/* Hide Astra header/footer if using custom */
.os-custom-nav-active #masthead {
  display: none !important;
}

.os-custom-footer-active .site-footer {
  display: none !important;
}

/* Remove default WordPress entry title if set in customizer */
.entry-title {
  display: none !important;
}

/* Ensure WP blocks use full width */
.wp-block-group,
.wp-block-html {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
