* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--foreground-alpha);
    font-size: var(--body-font-size);
    font-weight: var(--body-font-weight);
    overflow-x: hidden;
}

:root {
    /* Light Mode - Aquatic Atmosphere (semantic tokens in HSL) */
    --background: hsl(211, 20%, 96%);
    --foreground: hsl(215, 25%, 17%);
    --primary: hsl(205, 85%, 57%);
    --primary-glow: hsl(205, 90%, 67%);
    --primary-deep: hsl(205, 85%, 48%);
    --secondary: hsl(215, 20%, 65%);
    --card: hsl(0, 0%, 100%);
    --card-glow: hsl(215, 20%, 65%);
    --border: hsl(214, 32%, 91%);

    /* Hero tokens (light) */
    --hero-bg-start: hsl(200, 40%, 96%);
    --hero-bg-end: hsl(210, 60%, 88%);
    --hero-radiance: hsl(195, 80%, 65%);
    --hero-orb-inner: hsl(190, 85%, 60%);
    --hero-orb-outer: hsl(240, 70%, 65%);

    /* Gradients & derived values */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
    --gradient-hero: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
    --hero-radiance-gradient: radial-gradient(ellipse at 50% 40%, rgba(195, 80%, 65%, 0.3), transparent 60%);
    --hero-orb: linear-gradient(135deg, var(--hero-orb-inner), var(--hero-orb-outer));

    /* Shadows */
    --glow: 0 0 60px hsla(205, 85%, 57%, 0.30);
    --strong-glow: 0 0 80px hsla(205, 85%, 57%, 0.50);
    --divine: 0 0 120px hsla(195, 80%, 65%, 0.40);

    /* Radii */
    --radius: 0.75rem;

    /* Typography tokens */
    --font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --heading-letter-spacing: -0.02em;
    --dashboard-title-size: 3rem;
    --dashboard-title-letter-spacing: -0.05em;
    --dashboard-title-weight: 700;
    --card-title-size: 1.5rem;
    --card-title-weight: 600;
    --body-font-size: 1rem;
    --body-font-weight: 400;
    --foreground-alpha: hsla(215, 25%, 17%, 0.95);

    /* Derived foreground alpha variants */
    --fg-70: hsla(215, 25%, 17%, 0.70);
    --fg-66: hsla(215, 25%, 17%, 0.66);
    --fg-60: hsla(215, 25%, 17%, 0.60);
    --fg-55: hsla(215, 25%, 17%, 0.55);

    /* Small utility tokens */
    --white-18: hsla(0, 0%, 100%, 0.18);
    --shadow-08: hsla(0, 0%, 0%, 0.08);
    --logo-shadow-color: hsla(217, 85%, 66%, 0.08);
    --shimmer-stop-a: hsla(0,0%,100%,0.02);
    --shimmer-stop-b: hsla(0,0%,100%,0.10);

    /* Zone accents */
    --zone-supply: hsl(6, 100%, 65%);
    --zone-demand: hsl(153, 70%, 60%);
    
    /* A.M.D. Power Setup accents */
    --amd-accumulation: hsl(45, 90%, 60%);
    --amd-manipulation: hsl(15, 95%, 60%);
    --amd-distribution: hsl(165, 70%, 55%);

    /* Semantic aliases (compatibility with earlier variables) */
    --color-primary: var(--primary);
    --color-secondary: var(--secondary);
    --color-accent: var(--primary-glow);
    --surface: var(--card);
    --muted: hsl(214, 20%, 60%);
}

/* Dark mode via class-based switching */
.dark {
    --background: hsl(240, 10%, 3.9%);
    --foreground: hsl(234, 43%, 93%);
    --primary: hsl(205, 90%, 61%);
    --primary-glow: hsl(205, 95%, 71%);
    --secondary: hsl(240, 6%, 14%);
    --card: hsl(240, 8%, 7%);
    --border: hsl(240, 6%, 18%);

    --hero-bg-start: hsl(220, 40%, 8%);
    --hero-bg-end: hsl(260, 50%, 15%);
    --hero-radiance: hsl(240, 85%, 55%); /* explicit dark hero radiance */
    --hero-orb-inner: hsl(190, 90%, 55%);
    --hero-orb-outer: hsl(250, 90%, 65%);

    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
    --gradient-hero: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
    --hero-radiance-gradient: radial-gradient(ellipse at 50% 40%, rgba(240, 85%, 55%, 0.4), transparent 60%);
    --hero-orb: linear-gradient(135deg, var(--hero-orb-inner), var(--hero-orb-outer));

    --glow: 0 0 60px hsla(205, 90%, 61%, 0.30);
    --strong-glow: 0 0 80px hsla(205, 90%, 61%, 0.50);
    --divine: 0 0 150px hsla(240, 85%, 55%, 0.50);

    /* Typography tokens (dark adjustments if needed) */
    --foreground-alpha: hsla(234, 43%, 93%, 0.95);

    /* Derived foreground alpha variants (dark) */
    --fg-70: hsla(234, 43%, 93%, 0.70);
    --fg-66: hsla(234, 43%, 93%, 0.66);
    --fg-60: hsla(234, 43%, 93%, 0.60);
    --fg-55: hsla(234, 43%, 93%, 0.55);

    /* Small utility tokens (dark) */
    --white-18: hsla(0, 0%, 100%, 0.18);
    --shadow-08: hsla(0, 0%, 0%, 0.08);
    --logo-shadow-color: hsla(217, 85%, 66%, 0.08);
    --shimmer-stop-a: hsla(0,0%,100%,0.02);
    --shimmer-stop-b: hsla(0,0%,100%,0.10);

    /* Zone accents (dark) */
    --zone-supply: hsl(6, 100%, 65%);
    --zone-demand: hsl(153, 70%, 60%);
    
    /* A.M.D. Power Setup accents (dark mode) */
    --amd-accumulation: hsl(45, 85%, 55%);
    --amd-manipulation: hsl(15, 90%, 55%);
    --amd-distribution: hsl(165, 65%, 50%);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    box-shadow: var(--glow);
}

.nav-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--muted-bg);
    border-left-color: var(--color-secondary);
}

.nav-item.active {
    background: var(--overlay-gradient);
    border-left-color: var(--color-secondary);
    color: var(--color-secondary);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Verse of the Day Component */
.verse-of-day {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-left: 3px solid hsl(45, 90%, 60%);
    border-radius: var(--radius);
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verse-of-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px hsla(45, 90%, 60%, 0.2);
}

.verse-icon {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px hsla(45, 90%, 60%, 0.5));
}

.verse-content {
    text-align: center;
}

.verse-text {
    color: var(--foreground-alpha);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.verse-reference {
    color: hsl(45, 90%, 60%);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: var(--heading-letter-spacing);
    margin: 0 0 0.5rem 0;
}

/* Dashboard title */
.dashboard-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    position: relative; /* contain particles */
}

.top-bar {
    background: var(--surface-bg);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.75rem 1rem;
        gap: 0.4rem;
    }
}

/* Floating header variant */
.floating-header {
    position: fixed;
    left: calc(280px + 1rem);
    right: 1rem;
    top: 1rem;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 30px var(--shadow-08);
}

.floating-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--primary) 30%, var(--primary-glow) 70%, rgba(255,255,255,0) 100%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@media (max-width: 768px) {
    .floating-header {
        left: 0.75rem;
        right: 0.75rem;
        top: 0.75rem;
        padding: 0.6rem 1rem;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Clean welcome text - left aligned */
.welcome-text {
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.welcome-text span {
    color: var(--foreground-alpha);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Header actions - right aligned */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activate-btn {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-accent));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: var(--card);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.activate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
}

.theme-toggle:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.theme-toggle .icon-theme {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-theme path {
    stroke: var(--primary);
    transition: stroke 0.3s ease;
}

/* Content Area */
.content-area {
    /* ensure content clears the fixed floating header */
    padding: 5rem 2rem 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 1.25rem;
}

.section-header h1 {
    font-size: 2rem;
    margin-bottom: 0.35rem;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--fg-70);
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
    color: var(--fg-60);
    font-weight: 400;
    letter-spacing: 0.1px;
    line-height: 1.5;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Push dashboard header content lower to clear the floating header */
.dashboard-header {
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow);
    border-color: var(--primary-60);
}

/* Interactive Card Styles */
.interactive-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow);
    border-color: var(--primary-60);
}

.interactive-card:active {
    transform: translateY(-4px);
    transition: transform 0.1s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    border-radius: var(--radius);
}

.interactive-card:hover .card-overlay {
    opacity: 1;
}

.tap-hint {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--white-18);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary);
    font-size: var(--card-title-size);
    margin-bottom: 0.45rem;
    font-weight: var(--card-title-weight);
}

.card-subtitle {
    color: var(--fg-60);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.feature-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Kingdom Insight Text */
.kingdom-insight {
    color: hsl(45, 90%, 60%);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    text-align: center;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--muted-bg);
    border-radius: 999px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.dashboard-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: var(--glow);
}

.main-logo {
    font-size: 3.6rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.6rem;
    text-shadow: 0 6px 30px var(--logo-shadow-color);
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 1.6px;
    color: var(--color-primary);
}

.tagline {
    text-align: center;
    color: var(--fg-66);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    margin-bottom: 2.25rem;
}

.quote-box {
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.quote-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-primary);
    font-style: italic;
}

.mission-section {
    margin: 3rem 0;
    text-align: center;
}

.mission-title {
    color: var(--color-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.6px;
}

.mission-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.north-star {
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subcategories {
    color: rgba(14,26,43,0.6);
    font-size: 0.9rem;
    font-weight: 400;
}

.phase-path {
    text-align: center;
    margin: 3rem 0;
}

.phase-path h2 {
    color: var(--card);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.phase-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.phase-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow);
    border-color: var(--primary-60);
}

.phase-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.phase-card h3 {
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.6px;
}

.phase-card p {
    color: var(--fg-60);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Info Cards */
.info-card, .structure-card, .zone-card, .setup-card, .rule-card, .tool-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.875rem;
}

.info-card h3, .structure-card h3, .zone-card h3, .setup-card h3, .rule-card h3, .tool-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: var(--card-title-weight);
    margin-bottom: 0.5rem;
}

.structure-grid, .zones-grid, .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Broker Grid - 3 Column Layout */
.broker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .broker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Broker Card Styling */
.broker-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.broker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
    border-color: var(--primary-60);
}

.broker-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1;
}

.broker-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.broker-subtitle {
    color: var(--fg-70);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.broker-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.broker-card li {
    color: var(--foreground-alpha);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

.broker-card li::before {
    content: "▸";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.highlight-text {
    color: var(--primary);
    font-weight: 600;
    font-style: italic;
}

/* A.M.D. Power Setup Grid */
.amd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .amd-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amd-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.amd-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.amd-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.amd-subtitle {
    color: var(--fg-70);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amd-definition {
    margin-bottom: 1.25rem;
}

.amd-definition p {
    color: var(--foreground-alpha);
    line-height: 1.6;
    font-size: 0.95rem;
}

.amd-definition strong {
    color: var(--primary);
    font-weight: 600;
}

.amd-insight {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.amd-quote {
    font-style: italic;
    color: var(--fg-70);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 0.75rem;
    background: var(--muted-bg);
    border-left: 3px solid;
    border-radius: 4px;
}

/* A.M.D. Card Color Accents */
.amd-card.accumulation {
    border-left: 4px solid var(--amd-accumulation);
}

.amd-card.accumulation .amd-quote {
    border-left-color: var(--amd-accumulation);
}

.amd-card.manipulation {
    border-left: 4px solid var(--amd-manipulation);
}

.amd-card.manipulation .amd-quote {
    border-left-color: var(--amd-manipulation);
}

.amd-card.distribution {
    border-left: 4px solid var(--amd-distribution);
}

.amd-card.distribution .amd-quote {
    border-left-color: var(--amd-distribution);
}

/* Technical Analysis Combined Section */
.analysis-subsection {
    margin-bottom: 2.5rem;
}

.analysis-subsection:last-child {
    margin-bottom: 0;
}

.subsection-header {
    margin-bottom: 0.875rem;
}

.subsection-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.subsection-header p {
    font-size: 0.95rem;
    color: var(--fg-70);
    margin: 0;
    line-height: 1.5;
}

.section-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--primary-glow) 50%, var(--primary) 80%, transparent);
    margin: 1.25rem 0;
    opacity: 0.3;
    border-radius: 2px;
}

.zone-card.supply {
    border-left: 4px solid var(--zone-supply);
}

.zone-card.demand {
    border-left: 4px solid var(--zone-demand);
}

.setup-card ol {
    padding-left: 1.25rem;
    margin: 0;
}

.setup-card li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Trading Setups - Featured Strategy */
.strategy-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--amd-accumulation);
}

.strategy-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.strategy-subtitle {
    font-size: 1.1rem;
    color: var(--fg-70);
    font-weight: 500;
    margin: 0;
}

.setup-section {
    margin-bottom: 1.25rem;
}

/* Multi-Timeframe Flow */
.timeframe-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.timeframe-step {
    flex: 1;
    min-width: 200px;
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeframe-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.timeframe-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--card);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeframe-step h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.timeframe-step p {
    color: var(--foreground-alpha);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.timeframe-step strong {
    color: var(--primary);
    font-weight: 600;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ORB Card - Gold/Amber Styling */
.orb-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 2px solid hsl(45, 90%, 60%);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1rem;
    position: relative;
    box-shadow: 0 0 40px hsla(45, 90%, 60%, 0.2), inset 0 0 20px hsla(45, 90%, 60%, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.orb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 60px hsla(45, 90%, 60%, 0.35);
}

.orb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.orb-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(45, 90%, 60%);
    margin: 0;
    letter-spacing: -0.01em;
}

.orb-badge {
    display: inline-block;
    background: linear-gradient(135deg, hsl(45, 90%, 60%), hsl(35, 95%, 65%));
    color: hsl(240, 10%, 10%);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px hsla(45, 90%, 60%, 0.3);
}

.orb-steps {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.orb-step {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, hsl(45, 90%, 60%), hsl(35, 95%, 65%));
    color: hsl(240, 10%, 10%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 12px hsla(45, 90%, 60%, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.step-content p {
    color: var(--foreground-alpha);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.step-content strong {
    color: hsl(45, 90%, 60%);
    font-weight: 600;
}

/* Expert Note */
.expert-note {
    display: flex;
    gap: 0.875rem;
    background: var(--muted-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expert-note:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.expert-icon {
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
    margin-top: 0.125rem;
}

.expert-content {
    flex: 1;
}

.expert-content h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.expert-content p {
    color: var(--foreground-alpha);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.expert-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Collapsible Sections */
.collapsible-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-left: 4px solid var(--amd-accumulation);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    justify-content: flex-start;
    transition: all 0.2s ease;
}

.collapsible-header:hover {
    background: var(--surface-bg);
    box-shadow: var(--glow);
    transform: translateY(-2px);
    border-left-color: var(--primary);
}

.toggle-icon {
    display: inline-block;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.collapsible-header.active .toggle-icon {
    transform: rotate(90deg);
}

.collapsible-content {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.collapsible-content.active {
    display: block;
    opacity: 1;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Trader's Playbook Styles */
.intro-card {
    margin-bottom: 2.5rem;
}

.section-divider {
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--fg-60);
    font-weight: 400;
    margin: 0;
}

/* Ticker Grid */
.ticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ticker-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.ticker-card.primary {
    border-left: 4px solid var(--primary);
}

.ticker-card.secondary {
    border-left: 4px solid var(--fg-60);
}

.ticker-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--card);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-badge.secondary-badge {
    background: var(--fg-60);
}

.ticker-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.ticker-specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--fg-60);
    font-size: 0.9rem;
    font-weight: 500;
}

.spec-value {
    color: var(--foreground-alpha);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Trading Hours Compact */
.trading-hours-compact {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.trading-hours-compact p {
    margin: 0;
    color: var(--fg-70);
    font-size: 0.95rem;
}

.trading-hours-compact strong {
    color: var(--primary);
    font-weight: 600;
}

/* Secrets Grid */
.secrets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.secret-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--primary);
}

.secret-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.secret-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.secret-card p {
    color: var(--foreground-alpha);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.secret-card ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.secret-card li {
    color: var(--foreground-alpha);
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.secret-card li::before {
    content: "▸";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.secret-quote {
    font-style: italic;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: var(--muted-bg);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    line-height: 1.5;
}

/* Kingdom/Governance Card Styling */
.governance-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.governance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.kingdom-card {
    border-left: 4px solid hsl(45, 90%, 60%);
    box-shadow: 0 0 30px hsla(45, 90%, 60%, 0.15);
}

.kingdom-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.kingdom-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px hsla(45, 90%, 60%, 0.5));
}

.kingdom-header h3 {
    color: hsl(45, 90%, 60%);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.governance-content {
    color: var(--foreground-alpha);
    line-height: 1.7;
}

.kingdom-quote {
    font-style: italic;
    color: hsl(45, 90%, 60%);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1rem 0 0.5rem 0;
    padding: 1rem;
    background: hsla(45, 90%, 60%, 0.08);
    border-left: 3px solid hsl(45, 90%, 60%);
    border-radius: 4px;
    line-height: 1.6;
}

.kingdom-reference {
    color: hsl(45, 90%, 60%);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: right;
    letter-spacing: 0.5px;
}

.governance-insight {
    margin-top: 1.5rem;
}

.governance-insight p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.governance-insight strong {
    color: hsl(45, 90%, 60%);
    font-weight: 600;
}

.kingdom-wisdom {
    font-style: italic;
    color: hsl(45, 90%, 60%);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: hsla(45, 90%, 60%, 0.05);
    border-left: 3px solid hsl(45, 90%, 60%);
    border-radius: 4px;
}

.seed-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.seed-principle {
    background: var(--muted-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid hsl(45, 90%, 60%);
}

.seed-principle h4 {
    color: hsl(45, 90%, 60%);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.seed-principle p {
    color: var(--foreground-alpha);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.secret-card.kingdom-accent {
    border-left: 4px solid hsl(45, 90%, 60%);
    box-shadow: 0 0 20px hsla(45, 90%, 60%, 0.1);
}

.secret-card.kingdom-accent:hover {
    box-shadow: 0 0 30px hsla(45, 90%, 60%, 0.2);
}

.secret-card.kingdom-accent h3 {
    color: hsl(45, 90%, 60%);
}

.kingdom-quote {
    color: hsl(45, 90%, 60%);
    border-left-color: hsl(45, 90%, 60%);
    background: hsla(45, 90%, 60%, 0.08);
}

/* Capital Defense System */
.defense-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.defense-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-header {
    margin-bottom: 0.5rem;
}

.column-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.column-header p {
    font-size: 0.95rem;
    color: var(--fg-70);
    margin: 0;
    font-style: italic;
}

.defense-card {
    background: var(--surface-bg);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.defense-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Kill Switch Card - Red Glow */
.defense-card.kill-switch {
    border: 2px solid hsl(6, 100%, 65%);
    box-shadow: 0 0 30px hsla(6, 100%, 65%, 0.25), inset 0 0 15px hsla(6, 100%, 65%, 0.1);
}

.defense-card.kill-switch:hover {
    box-shadow: 0 0 50px hsla(6, 100%, 65%, 0.4), inset 0 0 20px hsla(6, 100%, 65%, 0.15);
}

.card-header-red,
.card-header-blue {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.card-header-red h3 {
    color: hsl(6, 100%, 65%);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.card-header-blue h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.card-badge {
    display: inline-block;
    background: hsl(6, 100%, 65%);
    color: hsl(240, 10%, 10%);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.blue {
    background: var(--gradient-primary);
    color: var(--card);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Protocol Items */
.protocol-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    background: var(--muted-bg);
    border-radius: 8px;
    border-left: 3px solid hsl(6, 100%, 65%);
}

.protocol-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.protocol-text {
    flex: 1;
}

.protocol-text strong {
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.protocol-note {
    display: block;
    color: var(--fg-70);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Defense List */
.defense-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.defense-list li {
    color: var(--foreground-alpha);
    padding: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    background: var(--muted-bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.defense-list li strong {
    color: var(--primary);
    font-weight: 700;
}

/* Recovery Matrix Table */
.recovery-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--muted-bg);
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-row:hover {
    transform: translateX(4px);
    box-shadow: var(--glow);
}

.table-row.danger {
    border-left: 4px solid hsl(6, 100%, 65%);
    background: hsla(6, 100%, 65%, 0.05);
}

.table-col {
    color: var(--foreground-alpha);
    font-size: 0.95rem;
    font-weight: 600;
}

.table-row.danger .table-col {
    color: hsl(6, 100%, 65%);
    font-weight: 700;
}

.recovery-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--fg-70);
    font-size: 0.9rem;
    margin: 0;
    padding: 0.75rem;
    background: var(--muted-bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .welcome-text {
        margin-left: 0.5rem;
        font-size: 0.85rem;
        flex: 0 0 auto;
    }
    
    .welcome-text span {
        font-size: 0.85rem;
    }
    
    .header-actions {
        gap: 0.4rem;
        flex-shrink: 0;
    }
    
    .activate-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .theme-toggle {
        padding: 0.4rem;
    }
    
    .content-area {
        padding: 5.5rem 1rem 2rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .dashboard-header {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .quote {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
        margin-bottom: 0;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .structure-grid, .zones-grid, .broker-grid, .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .amd-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ticker-grid, .secrets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .subsection-header {
        margin-bottom: 1.25rem;
    }
    
    .subsection-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .subsection-header p {
        font-size: 0.95rem;
    }
    
    .section-separator {
        margin: 2rem 0;
    }
    
    .analysis-subsection {
        margin-bottom: 2rem;
    }
    
    .ticker-card {
        padding: 1.25rem;
    }
    
    .ticker-card h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .secret-card {
        padding: 1.25rem;
    }
    
    .secret-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }
    
    .secret-card p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    /* Kingdom/Governance Responsive */
    .governance-card {
        padding: 1.25rem;
    }
    
    .kingdom-header h3 {
        font-size: 1.35rem;
    }
    
    .kingdom-icon {
        font-size: 1.5rem;
    }
    
    .seed-principles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .seed-principle {
        padding: 1rem;
    }
    
    .seed-principle h4 {
        font-size: 1rem;
    }
    
    .verse-of-day {
        padding: 0.75rem;
    }
    
    .verse-text {
        font-size: 0.85rem;
    }
    
    .verse-reference {
        font-size: 0.8rem;
    }
    
    .kingdom-insight {
        font-size: 0.8rem;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }
    
    /* ORB Strategy Responsive */
    .strategy-header {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .strategy-header h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .strategy-subtitle {
        font-size: 0.9rem;
    }
    
    .timeframe-flow {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
        margin: 0.25rem 0;
    }
    
    .timeframe-step {
        min-width: 100%;
        padding: 1.25rem;
    }
    
    .timeframe-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.75rem;
    }
    
    .timeframe-step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeframe-step p {
        font-size: 0.9rem;
    }
    
    .orb-card {
        padding: 1rem;
        margin-top: 0.75rem;
    }
    
    .orb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .orb-header h3 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .orb-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.65rem;
    }
    
    .orb-steps {
        gap: 0.75rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .step-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
    
    .expert-note {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.875rem;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .expert-icon {
        font-size: 1.5rem;
    }
    
    .expert-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }
    
    .expert-content p {
        font-size: 0.85rem;
    }
    
    .setup-section {
        margin-bottom: 1rem;
    }
    
    .setup-card {
        padding: 1rem;
    }

    .collapsible-header {
        padding: 1rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .collapsible-content {
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .setup-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .setup-card ol {
        padding-left: 1.25rem;
    }
    
    .setup-card li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    /* Capital Defense System Responsive */
    .defense-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .defense-column {
        gap: 1.25rem;
    }
    
    .column-header h2 {
        font-size: 1.5rem;
    }
    
    .column-header p {
        font-size: 0.9rem;
    }
    
    .defense-card {
        padding: 1.25rem;
    }
    
    .card-header-red h3,
    .card-header-blue h3 {
        font-size: 1.25rem;
    }
    
    .card-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }
    
    .protocol-item {
        padding: 0.6rem;
        gap: 0.75rem;
    }
    
    .protocol-icon {
        font-size: 1.25rem;
    }
    
    .protocol-text {
        font-size: 0.9rem;
    }
    
    .protocol-note {
        font-size: 0.8rem;
    }
    
    .defense-list li {
        padding: 0.6rem;
        padding-left: 1.25rem;
        font-size: 0.9rem;
    }
    
    .table-header,
    .table-row {
        padding: 0.6rem;
        gap: 0.75rem;
    }
    
    .table-header {
        font-size: 0.85rem;
    }
    
    .table-col {
        font-size: 0.9rem;
    }
    
    .recovery-subtitle {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section.active {
    animation: fadeIn 0.5s ease;
}

/* --- Derived tokens & utilities --- */
:root {
    /* translucent / derived values for Light */
    --surface-bg: hsla(0, 0%, 100%, 0.32);
    --muted-bg: hsla(215, 20%, 65%, 0.06);
    --overlay-gradient: linear-gradient(180deg, hsla(205,85%,57%,0.06), hsla(205,90%,67%,0.03));
    --primary-60: hsla(205,85%,57%,0.45);
}

.dark {
    /* translucent / derived values for Dark */
    --surface-bg: hsla(240, 8%, 7%, 0.82);
    --muted-bg: hsla(234, 43%, 93%, 0.06);
    --overlay-gradient: linear-gradient(180deg, hsla(205,90%,61%,0.06), hsla(205,95%,71%,0.03));
    --primary-60: hsla(205,90%,61%,0.45);
}

/* Hero utilities */
.hero-bg {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-radiance {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 70rem;
    height: 40rem;
    pointer-events: none;
    background: var(--hero-radiance-gradient);
    filter: blur(40px);
    opacity: 0.9;
}

.hero-orb {
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: var(--hero-orb);
    box-shadow: 0 20px 80px var(--shadow-08), var(--strong-glow);
}

/* Particles background */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0; /* ensure particles sit behind content */
}

.particle {
    position: absolute;
    border-radius: 999px;
    opacity: 0.55; /* softer default */
    mix-blend-mode: screen;
    will-change: transform, opacity;
    background: var(--primary);
    box-shadow: 0 6px 18px var(--shadow-08);
    animation: particle-float var(--p-dur, 8s) ease-in-out infinite, particle-fade var(--p-dur, 8s) ease-in-out infinite;
}

@keyframes particle-float {
    0% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-60px) translateX(12px) scale(1.08); }
    100% { transform: translateY(0) translateX(0) scale(1); }
}

@keyframes particle-fade {
    0% { opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* Ensure cards and main content render above particles */
.content-area, .cards-grid, .feature-card, .info-card, .section-header, .dashboard-header {
    position: relative;
    z-index: 10;
}

/* Floating header should sit above content */
.top-bar.floating-header { z-index: 120; }

/* Shadow helpers */
.glow { box-shadow: var(--glow) !important; }
.strong-glow { box-shadow: var(--strong-glow) !important; }
.divine { box-shadow: var(--divine) !important; }

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--card);
    border: 0;
    padding: 0.6rem 1rem;
    border-radius: calc(var(--radius) / 1.2);
    font-weight: 700;
}

/* Animations: glow-pulse, fade-in-up (alias), float, ember-rise, shimmer, divine-pulse */
@keyframes glow-pulse {
    0% { box-shadow: 0 0 0 rgba(0,0,0,0); }
    50% { box-shadow: var(--glow); }
    100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
}

@keyframes fade-in-up { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }

@keyframes float { 0% { transform: translateY(0);} 50% { transform: translateY(-8px);} 100% { transform: translateY(0);} }

@keyframes ember-rise { 0% { transform: translateY(8px); opacity: 0;} 80% { opacity: 1;} 100% { transform: translateY(0);} }

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

@keyframes divine-pulse { 0% { box-shadow: 0 0 0 rgba(0,0,0,0);} 50% { box-shadow: var(--divine);} 100% { box-shadow: 0 0 0 rgba(0,0,0,0);} }

.pulse { animation: glow-pulse 2.8s ease-in-out infinite; }
.float { animation: float 6s ease-in-out infinite; }
.ember-rise { animation: ember-rise 1.2s ease forwards; }
.shimmer { background-image: linear-gradient(90deg, var(--shimmer-stop-a) 0%, var(--shimmer-stop-b) 50%, var(--shimmer-stop-a) 100%); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.divine-pulse { animation: divine-pulse 4s ease-in-out infinite; }

/* Ensure radius is used consistently */
img, .feature-card, .info-card, .phase-card, .quote-box, .dashboard-logo { border-radius: var(--radius); }

/* Scrollbar Styling (tokenized) */
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-60);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-60);
}


/* (duplicate scrollbar block removed - tokenized scrollbar above is used) */

