/* ============================================================
   Income Factory — Design System (Redesigned)
   ============================================================
   Fonts: Playfair Display (headings), Source Sans 3 (body)
   Colors: Green-tinted palette with gold accent
   Desktop-first responsive design
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    /* Primary palette (mockup) */
    --green-deep: #0F2A1D;
    --green-dark: #1B3D2F;
    --green-mid: #2D5F4A;
    --green-soft: #3D7A62;
    --green-light: #E8F0EC;
    --green-mist: #F2F7F4;

    /* Gold accent */
    --gold: #C4993C;
    --gold-warm: #D4A843;
    --gold-light: #F5ECD7;
    --gold-glow: rgba(196, 153, 60, 0.12);

    /* Text */
    --text-primary: #1B2B23;
    --text-secondary: #556B5E;
    --text-muted: #8A9B90;

    /* Backgrounds */
    --bg: #FAFBF9;
    --bg-warm: #F8F7F3;
    --white: #FFFFFF;

    /* Borders */
    --border: #DDE5DF;
    --border-light: #EBF0ED;

    /* Status */
    --red: #B8453A;
    --red-light: #FDF0EE;
    --blue: #2E6B8A;
    --blue-light: #EBF3F7;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15,42,29,0.06);
    --shadow-md: 0 4px 16px rgba(15,42,29,0.08);
    --shadow-lg: 0 12px 48px rgba(15,42,29,0.1);
    --shadow-glow: 0 0 40px rgba(196,153,60,0.15);

    /* ── Backward-compatible aliases ──────────────────────────── */
    --color-green-dark: var(--green-dark);
    --color-green-mid: var(--green-mid);
    --color-green-light: var(--green-soft);
    --color-navy-dark: #1B2A4A;
    --color-navy-mid: #2C3E6B;
    --color-gold: var(--gold-warm);
    --color-gold-light: var(--gold-light);
    --color-bg: var(--bg);
    --color-surface: var(--white);
    --color-border: var(--border);
    --color-text: var(--text-primary);
    --color-text-muted: var(--text-muted);
    --color-text-light: var(--text-muted);
    --color-success: #059669;
    --color-warning: #D97706;
    --color-error: var(--red);
    --color-info: var(--blue);

    /* Spacing scale (4px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Sizing */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.65;
    min-height: 100vh;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--green-dark);
}

h1 { font-size: 2rem; margin-bottom: var(--space-6); }
h2 { font-size: 1.75rem; margin-bottom: var(--space-5); }
h3 { font-size: 1.375rem; margin-bottom: var(--space-4); }
h4 { font-size: 1.125rem; margin-bottom: var(--space-3); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

a {
    color: var(--green-mid);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 2.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-nav-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--green-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-nav-brand:hover {
    color: var(--green-dark);
    text-decoration: none;
}

.site-nav-mark {
    width: 28px;
    height: 28px;
    background: var(--green-dark);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.site-nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.site-nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.site-nav-links a:hover {
    color: var(--text-primary);
    background: var(--green-mist);
    text-decoration: none;
}

.site-nav-links a.active {
    color: var(--green-dark);
    background: var(--green-light);
    font-weight: 600;
}

.site-nav-links .nav-login { color: var(--gold) !important; font-weight: 600; }
.site-nav-links .nav-login:hover { color: var(--gold-warm) !important; background: transparent; }

.site-nav-links .nav-cta {
    background: var(--green-dark);
    color: var(--white) !important;
    font-weight: 600;
    margin-left: 0.5rem;
}

.site-nav-links .nav-cta:hover {
    background: var(--green-mid);
    color: var(--white) !important;
}

.site-nav-user {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-3);
    padding-left: var(--space-4);
    border-left: 1px solid var(--border);
}

.site-nav-name {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.site-nav-logout {
    color: var(--text-muted) !important;
    font-size: 0.82rem;
    text-decoration: none;
}

.site-nav-logout:hover {
    color: var(--green-dark) !important;
    text-decoration: none;
}

.site-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    flex-direction: column;
    gap: 5px;
}

.site-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-dark);
    border-radius: 1px;
}

/* Old class aliases for backward compat */
.site-nav-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--green-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.site-nav-logo:hover { color: var(--green-dark); text-decoration: none; }
.site-nav-logo span { font-weight: 400; }
.site-nav-logo strong { font-weight: 700; }

@media (max-width: 768px) {
    .site-nav {
        padding: 0 var(--space-4);
    }

    .site-nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-3) var(--space-4) var(--space-5);
        gap: 0;
        z-index: 100;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-light);
    }

    .site-nav-links.open {
        display: flex;
    }

    .site-nav-links a {
        padding: var(--space-3);
        width: 100%;
    }

    .site-nav-links .nav-cta {
        margin-left: 0;
        margin-top: var(--space-2);
        text-align: center;
    }

    .site-nav-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: var(--space-2);
        padding-top: var(--space-3);
        border-top: 1px solid var(--border);
        width: 100%;
        justify-content: space-between;
    }

    .site-nav-toggle {
        display: flex;
    }

    .site-nav-inner {
        position: relative;
    }
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 0.35rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.card-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    justify-content: center;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--green-dark);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--green-mid);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-primary.lg { padding: 0.7rem 2rem; font-size: 1rem; }

.btn-secondary {
    background: var(--white);
    color: var(--green-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--green-dark);
    background: var(--green-mist);
    color: var(--green-dark);
    text-decoration: none;
}

.btn-ghost {
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-gold {
    background: var(--gold);
    color: var(--green-deep);
    font-weight: 700;
}

.btn-gold:hover { background: var(--gold-warm); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

.btn-nav-login {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    border: none;
    font-weight: 600;
}
.btn-nav-login:hover {
    background: var(--green-mid) !important;
    color: var(--white) !important;
    text-decoration: none;
}

/* ── Flash Messages ────────────────────────────────────────── */
.flash-messages {
    padding: var(--space-4) var(--space-6);
    max-width: var(--max-width);
    margin: 0 auto;
}

.flash {
    padding: var(--space-3) var(--space-4);
    border-radius: 8px;
    margin-bottom: var(--space-3);
    font-size: 0.9375rem;
}

.flash-success { background: #E8F8EF; color: #1B8A4A; border: 1px solid #A7F3D0; }
.flash-error { background: var(--red-light); color: var(--red); border: 1px solid #FECACA; }
.flash-info { background: var(--blue-light); color: var(--blue); border: 1px solid #BFDBFE; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(45,95,74,0.1);
}

.form-input-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
    width: auto;
    min-width: 140px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.form-group input, .form-group select {
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ── Tables ────────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-conservative { background: var(--blue-light); color: var(--blue); }
.badge-moderate { background: var(--green-light); color: var(--green-mid); }
.badge-aggressive { background: var(--gold-light); color: #8B6914; }
.badge-growth { background: #FFF3E0; color: #E67E22; }
.badge-covered { background: var(--green-light); color: var(--green-mid); }
.badge-open { background: var(--gold-light); color: #8B6914; }
.badge-ineligible { background: #F5F5F3; color: #999; }
.badge-recommend { background: var(--green-light); color: var(--green-mid); }
.badge-skip { background: var(--gold-light); color: #8B6914; }
.badge-action { background: var(--red-light); color: var(--red); }
.badge-done { background: #E8F8EF; color: #1B8A4A; padding: 0.25rem 0.65rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.badge-skipped { background: var(--bg-warm); color: var(--text-muted); padding: 0.25rem 0.65rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }

/* ============================================================ */
/* LANDING PAGE                                                  */
/* ============================================================ */

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem 1rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(45,95,74,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 30% at 80% 80%, rgba(196,153,60,0.04) 0%, transparent 50%),
        var(--bg);
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196,153,60,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.hero-eyebrow::before, .hero-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-headline {
    font-size: 3.5rem;
    color: var(--green-dark);
    max-width: 680px;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.hero-headline em { font-style: italic; color: var(--gold); }

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--green-dark);
    color: var(--white);
    padding: 0.9rem 2.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(45,95,74,0.3);
    position: relative;
    z-index: 1;
}

.hero-cta:hover {
    background: var(--green-mid);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(45,95,74,0.1);
    text-decoration: none;
}

.hero-cta .arrow { transition: transform 0.2s; }
.hero-cta:hover .arrow { transform: translateX(3px); }

.hero-trust {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.hero-secondary {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.hero-secondary a { color: var(--green-mid); text-decoration: none; }
.hero-secondary a:hover { text-decoration: underline; }

/* How it works strip */
.how-strip {
    background: var(--green-deep);
    padding: 4.5rem 2rem;
    position: relative;
    overflow: hidden;
}


.how-strip-title {
    text-align: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 3rem;
    opacity: 0.9;
    font-family: var(--font-heading);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.how-step {
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.how-step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -0.5rem;
    top: 1.25rem;
    color: rgba(196,153,60,0.4);
    font-size: 1.2rem;
}

.how-step-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.how-step-text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

.how-step-text strong { color: rgba(255,255,255,0.9); font-weight: 600; }

/* Market Note card (homepage) */
.market-note-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
}
.market-note-card {
    background: #F7F5F0;
    border: 1px solid #E2DFD8;
    border-radius: 12px;
    padding: 1.75rem 2rem;
}
.market-note-date {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.market-note-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green-mid);
    background: rgba(45, 95, 74, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.market-note-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 1rem;
}
.market-note-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green-mid);
    text-decoration: none;
}
.market-note-link:hover { color: var(--green-dark); }

/* Landing footer */
.landing-footer {
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

.landing-footer a { color: var(--text-muted); text-decoration: none; }
.landing-footer a:hover { color: var(--green-dark); }

/* ============================================================ */
/* STEP INDICATOR                                                */
/* ============================================================ */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    position: relative;
}

.step-indicator .step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.step-indicator .step.active { color: var(--green-dark); font-weight: 600; }

.step-indicator .step .num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    border: 2px solid var(--border);
    color: var(--text-muted);
    background: var(--white);
}

.step-indicator .step.active .num { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.step-indicator .step.done .num { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }

.step-line { width: 64px; height: 2px; background: var(--border); margin: 0 0.75rem; }
.step-line.done { background: var(--green-mid); }

/* ============================================================ */
/* HOLDINGS FORM (Analyze Page)                                  */
/* ============================================================ */

.holdings-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.holdings-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 32px;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.holdings-row:last-child { border-bottom: none; }

.holdings-row.header {
    background: var(--green-mist);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.6rem 1.25rem;
}

.holdings-input {
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.holdings-input:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(45,95,74,0.1);
}

.price-display { font-weight: 600; color: var(--green-mid); font-size: 0.9rem; }

.remove-btn {
    width: 28px; height: 28px;
    border: none; background: none;
    color: var(--text-muted); cursor: pointer;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: all 0.15s;
}

.remove-btn:hover { background: var(--red-light); color: var(--red); }

.add-holding-link {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--green-mid);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border-top: 1px dashed var(--border);
    transition: background 0.15s;
}

.add-holding-link:hover { background: var(--green-mist); }

/* ============================================================ */
/* ACCOUNT TYPE SELECTOR                                         */
/* ============================================================ */

.account-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.account-card-title { font-weight: 700; color: var(--green-dark); font-size: 0.98rem; margin-bottom: 0.2rem; }
.account-card-sub { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.account-card-sub a { color: var(--green-mid); text-decoration: none; border-bottom: 1px dotted var(--green-mid); }

.account-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }

.account-opt {
    padding: 1rem; border: 2px solid var(--border);
    border-radius: 10px; text-align: center;
    cursor: pointer; transition: all 0.2s;
}

.account-opt:hover { border-color: var(--green-mid); background: var(--green-mist); }
.account-opt.selected { border-color: var(--green-mid); background: var(--green-light); box-shadow: 0 0 0 3px rgba(45,95,74,0.1); }
.account-opt-name { font-weight: 700; font-size: 0.9rem; color: var(--green-dark); margin-bottom: 0.15rem; }
.account-opt-desc { font-size: 0.75rem; color: var(--text-muted); }

.tax-bracket-bar {
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: 1.25rem;
    margin-top: 1rem;
}

.tax-bracket-bar select {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem; font-family: inherit;
    background: var(--white); min-width: 120px;
}

/* ============================================================ */
/* RESULTS PAGE v3                                               */
/* ============================================================ */

/* ── Sticky Scoreboard Bar ── */
.sticky-scoreboard {
    position: sticky; top: 61px; z-index: 100;
    background: rgba(15,42,29,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.65rem 1.5rem;
    transition: box-shadow 0.3s ease;
}
.sticky-scoreboard.stuck { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.scoreboard-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.scoreboard-left { display: flex; align-items: baseline; gap: 0.35rem; }
.scoreboard-income { font-family: var(--font-heading); font-size: 1.625rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.scoreboard-yr { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.scoreboard-dot { color: rgba(255,255,255,0.3); margin: 0 0.25rem; }
.scoreboard-yield { font-size: 0.88rem; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.scoreboard-right { display: flex; align-items: center; gap: 0.4rem; }
.scoreboard-pill { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 600; }
.scoreboard-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.15); }

/* ── Hero Income Section ── */
.v3-hero { background: #FAFBF9; padding: 3rem 1.5rem 2rem; text-align: center; }
.v3-hero-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #8A9B90; margin-bottom: 0.75rem; }
.v3-hero-amount { font-family: var(--font-heading); font-size: 3.5rem; color: #1B3D2F; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.v3-hero-yr { font-family: 'Source Sans 3', sans-serif; font-size: 1.5rem; font-weight: 400; color: #556B5E; }
.v3-hero-sub { font-size: 0.9375rem; color: #556B5E; margin-top: 0.5rem; font-variant-numeric: tabular-nums; }
.v3-hero-divider { width: 40px; height: 2px; background: var(--border); margin: 1.5rem auto; }

/* ── Account Type Tabs ── */
.account-tabs { display: inline-flex; background: #F5F4F0; border-radius: 8px; padding: 3px; margin-bottom: 1rem; }
.account-tab {
    padding: 0.4rem 1rem; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s; color: #8A9B90;
    border: none; background: none; font-family: inherit;
}
.account-tab:hover { color: #556B5E; }
.account-tab.sel { background: var(--white); color: #1B3D2F; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* ── After-Tax & Roth Upsell ── */
.v3-after-tax { font-size: 0.88rem; color: #556B5E; margin-top: 0.75rem; font-variant-numeric: tabular-nums; }
.v3-after-tax strong { color: #1B3D2F; }
.v3-roth-upsell { font-size: 0.8125rem; color: #2D5F4A; font-weight: 600; margin-top: 0.4rem; }

/* ── Strategy Box ── */
.strategy-box {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 1.5rem; overflow: hidden;
}
.strategy-box-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.strategy-box-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8A9B90; font-weight: 700; }
.strategy-toggle-v3 { display: inline-flex; background: #F5F4F0; border-radius: 8px; padding: 3px; }
.strategy-pill {
    padding: 0.35rem 0.9rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s; color: #8A9B90;
    border: none; background: none; font-family: inherit;
}
.strategy-pill:hover { color: #556B5E; }
.strategy-pill.sel { background: #1B3D2F; color: var(--white); }
.strategy-box-desc { padding: 1rem 1.25rem; font-size: 0.875rem; color: #556B5E; line-height: 1.6; }
.strategy-box-desc strong { color: #1B3D2F; }

/* ── Coverage Explainer ── */
.coverage-explainer {
    background: #F9F8F5; border: 1px solid #F0EDE8; border-radius: 10px;
    padding: 1rem 1.25rem; margin-bottom: 1.5rem;
    font-size: 0.8125rem; color: #556B5E; line-height: 1.6;
}
.coverage-explainer strong { color: #1B3D2F; }

/* ── Holdings List ── */
.holdings-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem;
}
.holding-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light, #f0ede8);
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.holding-row.visible { opacity: 1; transform: translateY(0); }
.holding-row.last { border-bottom: none; }
.holding-left { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.holding-symbol { font-size: 1.0625rem; font-weight: 700; color: #1B3D2F; min-width: 56px; }
.holding-badge { font-size: 0.6875rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 4px; white-space: nowrap; }
.holding-badge-growth_volatile { color: #E8913A; background: #FFF4E8; }
.holding-badge-moderate { color: #2D5F4A; background: #E8F0EC; }
.holding-badge-stable_income { color: #2E6B8A; background: #E3EFF5; }
.holding-badge-index { color: #6B5E8A; background: #EFEBF5; }
.holding-meta { font-size: 0.78rem; color: var(--text-muted); margin-left: 0.5rem; white-space: nowrap; }
.holding-right { text-align: right; flex-shrink: 0; padding-left: 1rem; }
.holdings-card .holding-income { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.holding-yr { font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; color: var(--text-muted); }
.holding-pct { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.1rem; }
.holding-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    background: #F9F8F5; border-top: 2px solid var(--border);
    font-weight: 700; color: #1B3D2F;
}
.holding-total-amount { font-family: var(--font-heading); font-size: 1.125rem; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ── Income Update Animation ── */
.income-updating { opacity: 0.4; transition: opacity 0.15s ease; }

/* ── Issues Section ── */
.v3-issues { margin-bottom: 1.5rem; }
.v3-issues-title { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.v3-issue-row {
    background: #FFFBF0; border: 1px solid #F0EDE8; border-radius: 8px;
    padding: 0.75rem 1rem; margin-bottom: 0.5rem;
    display: flex; align-items: baseline; gap: 0.5rem;
    font-size: 0.85rem; color: #556B5E;
}
.v3-issue-row strong { color: #1B3D2F; flex-shrink: 0; }
.v3-issue-reason { color: #8A9B90; }

/* ── Disclaimer ── */
.v3-disclaimer { font-size: 0.6875rem; color: #8A9B90; text-align: center; margin-bottom: 2rem; }

/* ── CTA Section (Progress Bar + Value Props) ── */
.cta-v3 {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 16px; padding: 2.5rem 2rem 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

/* Progress bar */
.cta-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; }
.cta-step { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; position: relative; }
.cta-circle {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.cta-circle.done { background: #2D5F4A; color: var(--white); }
.cta-circle.gold { background: #D4A843; color: var(--white); }
.cta-step-label { font-size: 0.7rem; font-weight: 600; color: #556B5E; white-space: nowrap; }
.cta-step-label.gold-text { color: #D4A843; }
.cta-line { width: 48px; height: 2px; flex-shrink: 0; margin-bottom: 1.2rem; }
.cta-line.done { background: #2D5F4A; }
.cta-line.gold { background: #E2DFD8; }

/* CTA body */
.cta-v3-body { text-align: center; }
.cta-v3-title { font-family: var(--font-heading); font-size: 1.5rem; color: #1B3D2F; margin-bottom: 0.5rem; }
.cta-v3-sub { font-size: 0.875rem; color: #556B5E; max-width: 460px; margin: 0 auto 1.75rem; line-height: 1.55; }

/* Value props */
.cta-v3-props { display: flex; flex-direction: column; gap: 1rem; max-width: 460px; margin: 0 auto 2rem; text-align: left; }
.cta-v3-prop { display: flex; gap: 0.75rem; align-items: flex-start; }
.cta-icon-tile {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.cta-v3-prop strong { display: block; font-size: 0.88rem; color: #1B3D2F; margin-bottom: 0.15rem; }
.cta-v3-prop span { font-size: 0.8rem; color: #8A9B90; line-height: 1.4; }

/* CTA form */
.cta-v3-form { max-width: 460px; margin: 0 auto; }
.cta-input-group {
    display: flex; gap: 0.5rem;
    background: #F9F8F5; border: 1px solid var(--border);
    border-radius: 10px; padding: 0.4rem;
}
.cta-input-group input[type="email"] {
    flex: 1; min-width: 0; padding: 0.65rem 0.85rem;
    border: none; background: transparent;
    font-size: 0.9rem; font-family: inherit; color: var(--text-primary);
}
.cta-input-group input[type="email"]::placeholder { color: var(--text-muted); }
.cta-input-group input[type="email"]:focus { outline: none; }
.cta-v3-btn {
    padding: 0.75rem 1.5rem; white-space: nowrap;
    font-size: 0.9rem; font-weight: 700; border-radius: 8px;
    background: var(--green-dark); color: var(--white);
    border: none; cursor: pointer; font-family: inherit;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(27,61,47,0.15);
}
.cta-v3-btn:hover {
    background: var(--green-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27,61,47,0.25);
}
.cta-v3-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(27,61,47,0.15);
}
.cta-v3-note { margin-top: 0.75rem; font-size: 0.75rem; color: #8A9B90; text-align: center; }

/* ── Scroll Reveal Animation ── */
.section-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Footer Actions ── */
.v3-footer-actions { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; padding-bottom: 2rem; }

/* Portfolio summary card (two-tier layout) */
.portfolio-summary { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.portfolio-hero { display: flex; border-bottom: 1px solid var(--border); }
.portfolio-hero-stat { flex: 1; padding: 1.75rem 2rem; text-align: center; }
.portfolio-hero-stat:first-child { border-right: 1px solid var(--border); }
.portfolio-hero-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7C74; margin-bottom: 0.5rem; }
.portfolio-hero-value { font-family: var(--font-heading); font-size: 2.375rem; font-weight: 700; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.portfolio-hero-sub { font-size: 0.8125rem; color: #6B7C74; margin-top: 0.375rem; }
.portfolio-supporting { display: flex; }
.portfolio-supporting-stat { flex: 1; padding: 1rem 0.75rem; text-align: center; }
.portfolio-supporting-stat + .portfolio-supporting-stat { border-left: 1px solid var(--border); }
.portfolio-supporting-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7C74; margin-bottom: 0.375rem; }
.portfolio-supporting-value { font-family: var(--font-heading); font-size: 1.375rem; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.portfolio-supporting-value.gold { color: var(--gold); }
.portfolio-supporting-sub { font-size: 0.72rem; color: #6B7C74; margin-top: 0.1rem; }

/* CTA section (learn pages, landing) */
.cta-section { background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(196,153,60,0.08) 0%, transparent 60%), var(--green-deep); border-radius: 16px; padding: 3.5rem 2.5rem; text-align: center; margin-top: 3rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(196,153,60,0.4), transparent); }
.cta-section h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 0.5rem; }
.cta-section p { color: rgba(255,255,255,0.55); font-size: 0.95rem; margin-bottom: 2rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-email-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.cta-email-input { flex: 1; padding: 0.7rem 1rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; font-size: 0.9rem; font-family: inherit; background: rgba(255,255,255,0.08); color: var(--white); backdrop-filter: blur(4px); }
.cta-email-input::placeholder { color: rgba(255,255,255,0.35); }
.cta-email-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,153,60,0.15); }
.cta-email-submit { padding: 0.7rem 1.5rem; background: var(--gold); color: var(--green-deep); border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; white-space: nowrap; }
.cta-email-submit:hover { background: var(--gold-warm); transform: translateY(-1px); }
.cta-free-note { margin-top: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ============================================================ */
/* PORTFOLIO PAGE                                                */
/* ============================================================ */

.filter-bar { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.filter-btn { padding: 0.4rem 0.9rem; border-radius: 24px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border); background: var(--white); color: var(--text-secondary); cursor: pointer; transition: all 0.15s; font-family: inherit; }
.filter-btn:hover { border-color: var(--green-mid); color: var(--green-dark); }
.filter-btn.active { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }

.action-row { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }

.table-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }

.holdings-table { width: 100%; border-collapse: collapse; }
.holdings-table th { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--border); font-weight: 700; background: var(--green-mist); white-space: nowrap; }
.holdings-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; vertical-align: middle; }
.holdings-table tr:last-child td { border-bottom: none; }
.holdings-table tr:hover { background: var(--bg); }
.holdings-table .ticker, .ticker { font-weight: 700; color: var(--green-dark); font-size: 0.95rem; }
.holdings-table .company, .company { color: var(--text-muted); font-size: 0.78rem; }
.holdings-table .money { font-weight: 600; }
.holdings-table .money.gold { color: var(--gold); font-family: var(--font-heading); font-size: 0.95rem; }

.strategy-toggle { display: inline-flex; gap: 2px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.strategy-opt { padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--text-muted); user-select: none; }
.strategy-opt:hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.strategy-opt.sel { background: var(--green-dark); color: var(--white); box-shadow: var(--shadow-sm); }
.strategy-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }

.portfolio-strategy-bar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: var(--space-4); }
.portfolio-strategy-label { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); white-space: nowrap; }
.portfolio-strategy-bar .strategy-opt { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.portfolio-strategy-hint { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.call-status { font-size: 0.75rem; color: var(--text-muted); }
.call-badge { display: inline-block; padding: 0.18rem 0.55rem; border-radius: 5px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.call-badge-covered { background: var(--green-light); color: var(--green-mid); }
.call-badge-open { background: var(--gold-light); color: #8B6914; }
.call-badge-attention { background: var(--gold-light); color: #8B6914; }
.call-badge-ineligible { background: #F5F5F3; color: #999; }
.call-detail { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.holding-income { font-weight: 600; font-variant-numeric: tabular-nums; }

.add-holding-zone { background: var(--green-mist); border: 2px dashed var(--green-mid); border-radius: 12px; padding: 1.75rem; margin-bottom: 1.75rem; }
.add-holding-zone h3 { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 1rem; }
.add-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }

.projected-bar { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.projected-label { font-size: 0.82rem; color: var(--text-secondary); }
.projected-amount { font-family: var(--font-heading); font-size: 1.4rem; color: var(--gold); }
.projected-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.log-section { margin-top: 2.5rem; }
.log-section h2 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 0.3rem; }
.log-section > p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.log-form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-5); box-shadow: var(--shadow-sm); }
.log-form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }

.strategy-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-4); line-height: 1.5; font-style: italic; }
.context-note { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 2rem; }
.context-note strong { color: var(--text-primary); }
.context-note a { color: var(--green-mid); text-decoration: none; }
.context-note a:hover { text-decoration: underline; }

.portfolio-empty { text-align: center; padding: var(--space-16) var(--space-6); background: var(--white); border: 1px solid var(--border); border-radius: 12px; }
.portfolio-empty p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.6; margin-bottom: var(--space-6); max-width: 400px; margin-left: auto; margin-right: auto; }
.portfolio-count { font-size: 0.8125rem; color: var(--text-muted); text-align: center; margin-top: var(--space-8); padding-bottom: var(--space-8); }
.portfolio-action-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); gap: var(--space-4); }
.portfolio-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ============================================================ */
/* TRANSACTION HISTORY PAGE                                      */
/* ============================================================ */

.tx-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tx-table th { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0.65rem 0.75rem; text-align: left; border-bottom: 2px solid var(--border); font-weight: 700; background: var(--green-mist); }
.tx-table td { padding: 0.75rem 0.75rem; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.tx-table tr:hover { background: var(--bg); }

.tx-type { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 4px; display: inline-block; }
.tx-type.sell { background: rgba(45,95,74,0.1); color: var(--green-mid); }
.tx-type.roll { background: rgba(46,107,138,0.1); color: var(--blue); }
.tx-type.close { background: rgba(196,153,60,0.15); color: #8B6914; }
.tx-type.assigned { background: rgba(184,69,58,0.08); color: var(--red); }
.tx-type.expired { background: var(--bg-warm); color: var(--text-muted); }

.tx-notes { font-size: 0.78rem; color: var(--text-secondary); max-width: 220px; line-height: 1.45; }

.tx-source { font-size: 0.7rem; padding: 0.12rem 0.4rem; border-radius: 4px; font-weight: 700; }
.tx-source.rec { background: var(--green-light); color: var(--green-mid); }
.tx-source.action { background: var(--gold-light); color: #8B6914; }
.tx-source.manual { background: var(--red-light); color: var(--red); }

.pagination { display: flex; justify-content: center; gap: 0.3rem; margin-top: 1.5rem; }
.pagination a { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: all 0.15s; }
.pagination a:hover { border-color: var(--green-mid); color: var(--green-dark); text-decoration: none; }
.pagination a.active { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.pagination-info { font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================ */
/* WEEKLY UPDATES PAGE                                           */
/* ============================================================ */

.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 2rem; }
.tab-nav a { padding: 0.65rem 1.25rem; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.tab-nav a:hover { color: var(--text-primary); text-decoration: none; }
.tab-nav a.active { color: var(--green-dark); border-bottom-color: var(--green-dark); font-weight: 600; }

.week-block { margin-bottom: 2.5rem; }
.week-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--green-dark); }
.week-date, .week-title { font-family: var(--font-heading); font-size: 1.15rem; color: var(--green-dark); margin-bottom: 0; }
.week-status, .week-email-status { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #27AE60; display: inline-block; flex-shrink: 0; }
.status-dot-green { background: #27AE60; }

.email-preview { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.email-head { background: var(--green-mist); padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-secondary); }
.email-head strong { color: var(--text-primary); }
.email-body { padding: 1.75rem 1.5rem; font-size: 0.9rem; line-height: 1.75; }
.email-body h3 { font-size: 1.05rem; color: var(--green-dark); margin: 1.5rem 0 0.6rem; }
.email-body h3:first-child { margin-top: 0; }

.email-rec { background: var(--green-light); border-left: 4px solid var(--green-mid); padding: 0.85rem 1.15rem; border-radius: 0 8px 8px 0; margin: 0.6rem 0; position: relative; }
.email-rec.action { background: var(--gold-light); border-left-color: var(--gold); }
.email-rec strong { color: var(--green-dark); }
.email-rec .details { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.35rem; }
.email-rec .floor { font-size: 0.82rem; color: var(--green-mid); margin-top: 0.25rem; }
.email-rec-skip { color: var(--text-muted); font-style: italic; font-size: 0.88rem; margin: 0.3rem 0; }

.email-foot { padding: 0.85rem 1.5rem; background: var(--green-mist); border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); }
.email-foot a { color: var(--text-muted); text-decoration: none; }
.email-foot a:hover { color: var(--green-dark); }

.btn-mark-done { background: var(--white); border: 1.5px solid var(--green-mid); color: var(--green-mid); padding: 0.3rem 0.75rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all 0.15s; font-family: inherit; flex-shrink: 0; margin-left: auto; }
.btn-mark-done:hover { background: var(--green-mid); color: var(--white); }

.done-badge { background: #E8F8EF; color: #1B8A4A; padding: 0.25rem 0.65rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.confirm-summary { font-size: 0.78rem; color: #1B8A4A; margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px dashed rgba(27,138,74,0.2); }

.confirm-form { background: var(--white); border: 1.5px solid var(--green-mid); border-radius: 0 0 10px 10px; margin-top: -4px; margin-bottom: 0.75rem; overflow: hidden; }
.confirm-form-header { background: var(--green-light); padding: 0.65rem 1.15rem; font-size: 0.82rem; font-weight: 600; color: var(--green-dark); border-bottom: 1px solid rgba(45,95,74,0.12); }
.confirm-form-body { padding: 1.15rem; }
.confirm-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.confirm-input { padding: 0.45rem 0.65rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; font-family: inherit; }
.confirm-total { font-family: var(--font-heading); font-size: 1.2rem; color: var(--gold); padding: 0.3rem 0; }
.confirm-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border-light); }
.confirm-hint { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin-left: auto; }

.week-collapsed { background: var(--white); border: 1px solid var(--border); border-radius: 10px; text-align: center; padding: 1.15rem; color: var(--text-muted); font-size: 0.88rem; cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow-sm); }
.week-collapsed:hover { border-color: var(--green-mid); background: var(--green-mist); }
.week-collapsed strong { color: var(--green-dark); }

.rec-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-5); margin-bottom: var(--space-3); transition: border-color 0.2s, opacity 0.2s; }
.rec-card-recommend { border-left: 4px solid var(--green-mid); }
.rec-card-action_needed { border-left: 4px solid var(--gold); }
.rec-card-skip { border-left: 4px solid var(--border); opacity: 0.7; }
.rec-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.rec-card-symbol { font-weight: 700; font-size: 1.125rem; color: var(--green-dark); margin-right: var(--space-2); }
.rec-card-text { font-size: 0.9375rem; line-height: 1.6; color: var(--text-primary); margin-bottom: var(--space-2); }
.rec-card-floor { font-size: 0.82rem; color: var(--green-mid); margin-bottom: var(--space-3); }
.rec-card-income { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.rec-income-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.rec-income-amount { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--gold); }

/* Status update cards */
.status-section { margin-top: 1rem; }
.status-section-title { font-family: var(--font-heading); font-size: 1rem; color: var(--green-dark); margin-bottom: 0.75rem; }
.status-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid #5B8DEF; border-radius: 0 8px 8px 0; padding: 0.85rem 1.15rem; margin: 0.5rem 0; }
.status-card-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.status-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: #EBF0FA; color: #5B8DEF; }
.status-dte { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.status-card-body { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.status-metric { display: flex; flex-direction: column; }
.status-metric-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.status-metric-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.status-profit { color: #059669; }
.status-loss { color: #DC2626; }
.status-warning { color: #D97706; }
.status-warnings { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.status-warning-badge { display: inline-block; padding: 0.18rem 0.55rem; border-radius: 5px; font-size: 0.6875rem; font-weight: 600; background: #FEF3C7; color: #92400E; }

/* Status update accuracy improvements (Phase 4C) */
.status-timestamp { font-size: 0.78rem; font-style: italic; color: var(--text-muted); margin-bottom: 0.6rem; }
.uncertainty-badge { display: inline-block; background: #FEF3C7; color: #92400E; font-size: 0.65rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 4px; margin-left: 0.35rem; cursor: help; vertical-align: middle; letter-spacing: 0.02em; }
.expiration-week-banner { border-left: 3px solid #F97316; background: #FFF7ED; padding: 0.6rem 0.85rem; margin-top: 0.5rem; border-radius: 0 4px 4px 0; font-size: 0.82rem; color: #9A3412; line-height: 1.5; }

/* Position management guidance cards (Phase 2B) */
.guidance-card { padding: 0.75rem 1rem; margin-top: 0.6rem; border-radius: 6px; font-size: 0.85rem; line-height: 1.5; }
.guidance-headline { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.35rem; }
.guidance-explanation { color: var(--text-secondary); font-size: 0.82rem; }
.guidance-info { background: #EBF0FA; border-left: 3px solid #5B8DEF; }
.guidance-suggested { background: #FEF3C7; border-left: 3px solid #C9A227; }
.guidance-recommended { background: #D1FAE5; border-left: 3px solid #2D5F4A; }
.guidance-urgent { background: #FEE2E2; border-left: 3px solid #DC2626; }

.split-warning { padding: 0.75rem 1rem; margin-top: 0.5rem; background: #FEE2E2; border-left: 3px solid #DC2626; border-radius: 4px; font-size: 0.85rem; color: #991B1B; font-weight: 600; }
.dividend-note { padding: 0.5rem 0.75rem; margin-top: 0.5rem; background: #FEF3C7; border-left: 3px solid #C4993C; border-radius: 4px; font-size: 0.85rem; color: #92400E; }
.dividend-icon { margin-right: 0.3rem; }

/* Portfolio concentration (Phase 4A) */
.concentration-section { margin-top: 1.5rem; }
.concentration-heading { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--green-dark); }

/* Income distribution stacked bar */
.concentration-bar { display: flex; height: 32px; border-radius: 6px; overflow: hidden; background: var(--border); }
.concentration-segment { display: flex; align-items: center; justify-content: center; min-width: 2px; transition: width 0.3s ease; }
.concentration-label { font-size: 0.72rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.concentration-none { background: var(--green-mid); }
.concentration-caution { background: #D4A843; }
.concentration-warning { background: #F97316; }
.concentration-critical { background: #DC2626; }

/* Sector bars */
.sector-row { margin-bottom: 0.5rem; }
.sector-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 2px; }
.sector-name { font-weight: 600; color: var(--text); }
.sector-pct { color: var(--text-light); }
.sector-bar-bg { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.sector-bar-fill { height: 100%; border-radius: 5px; transition: width 0.3s ease; }
.sector-bar-none { background: var(--green-mid); }
.sector-bar-caution { background: #D4A843; }
.sector-bar-warning { background: #F97316; }
.sector-symbols { font-size: 0.78rem; color: var(--text-light); margin-top: 1px; }

/* Concentration warning boxes */
.concentration-warning { padding: 0.75rem 1rem; margin-top: 0.75rem; border-radius: 6px; font-size: 0.85rem; line-height: 1.5; }
.concentration-warning-caution { background: #FEF3C7; border-left: 3px solid #C4993C; color: #92400E; }
.concentration-warning-warning { background: #FFF7ED; border-left: 3px solid #F97316; color: #9A3412; }
.concentration-warning-critical { background: #FEE2E2; border-left: 3px solid #DC2626; color: #991B1B; }
.concentration-note { font-size: 0.82rem; color: var(--text-light); margin-top: 0.5rem; font-style: italic; }
.concentration-warnings { margin-top: 1rem; }

.mark-done-form { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed var(--border); }
.mark-done-header { font-weight: 600; font-size: 0.9375rem; color: var(--green-dark); margin-bottom: var(--space-4); }
.mark-done-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-bottom: var(--space-3); }
.mark-done-fields .form-group { margin-bottom: 0; }
.mark-done-fields .form-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.mark-done-floor { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: var(--space-3); }
.mark-done-actions { display: flex; gap: var(--space-3); }

.week-summary-card { margin-top: var(--space-4); }
.summary-income { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }

.week-block-collapsed .week-body { display: none; }
.week-block-collapsed .week-collapsed-summary { display: block; }
.week-block:not(.week-block-collapsed) .week-collapsed-summary { display: none; }
.week-block-collapsed .week-header { cursor: pointer; }
.week-collapsed-summary { font-size: 0.875rem; color: var(--text-muted); cursor: pointer; }

/* Monthly Analysis vs Weekly Check-in block types (free tier) */
.week-type-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 5px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.week-type-analysis { background: #FEF3C7; color: #92400E; }
.week-type-status { background: #F3F4F6; color: #6B7280; }

.week-block-analysis { border-left: 3px solid var(--gold); padding-left: 0.75rem; }
.week-block-analysis .week-header { border-bottom-color: var(--gold); }

.week-block-status .week-date { font-size: 1rem; }
.week-block-status .week-header { border-bottom-color: var(--border); }

.checkin-context { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.75rem; padding: 0.5rem 0; }

/* ============================================================ */
/* UTILITY CLASSES                                               */
/* ============================================================ */

.section-title { font-family: var(--font-heading); font-size: 1.35rem; color: var(--green-dark); margin-bottom: 0.4rem; }
.section-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-green { color: var(--green-mid); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* ============================================================ */
/* BACKWARD COMPATIBILITY                                        */
/* (Styles for templates not being restyled)                     */
/* ============================================================ */

.analyze-header { margin-bottom: var(--space-8); }
.analyze-header h1 { margin-bottom: var(--space-2); }
.analyze-header .lead { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.6; }

.step-pills { display: flex; gap: var(--space-3); margin-bottom: var(--space-6); }
.step-pill { font-size: 0.8125rem; font-weight: 500; padding: var(--space-1) var(--space-4); border-radius: 999px; background: var(--bg); color: var(--text-muted); }
.step-pill.active { background: var(--green-dark); color: white; }
.step-pill.completed { background: var(--green-light); color: var(--green-mid); }

.holding-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--border); }
.holding-row-header { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--bg); padding: var(--space-3) var(--space-5); }
.holding-row .form-input { margin: 0; padding: var(--space-2) var(--space-3); font-size: 0.9375rem; }
.holding-remove-btn { width: 32px; height: 32px; border: none; background: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.holding-remove-btn:hover:not(:disabled) { background: var(--red-light); color: var(--red); }
.holding-remove-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.holding-add-btn { display: block; width: 100%; padding: var(--space-3) var(--space-5); background: none; border: none; color: var(--green-mid); font-size: 0.9375rem; font-weight: 500; cursor: pointer; text-align: left; }
.holding-add-btn:hover { background: var(--bg); color: var(--green-dark); }

.stock-status { font-size: 0.8125rem; font-weight: 500; }
.stock-status-valid { color: var(--color-success); }
.stock-status-invalid { color: var(--red); font-size: 0.75rem; }
.stock-status-loading { color: var(--text-muted); }

.result-hero { text-align: center; padding: var(--space-10) var(--space-6); background: linear-gradient(165deg, var(--green-deep) 0%, var(--green-dark) 50%, #1A3B2C 100%); border-radius: 16px; color: white; margin-bottom: var(--space-8); box-shadow: var(--shadow-lg); }
.result-hero-label { font-size: 1rem; opacity: 0.8; margin-bottom: var(--space-2); }
.result-hero-amount { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--gold-warm); }
.result-hero-range { font-size: 1rem; opacity: 0.8; margin-top: var(--space-2); }
.result-hero-yield { display: inline-block; margin-top: var(--space-3); padding: var(--space-1) var(--space-4); background: rgba(255,255,255,0.1); border-radius: 24px; font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,0.7); }

.result-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.result-summary-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-5); text-align: center; }
.result-summary-label { font-size: 0.8125rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.result-summary-value { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; color: var(--green-dark); }
.result-summary-subtext { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-1); }

.section-header { margin: var(--space-8) 0 var(--space-4); }
.section-header h2 { margin-bottom: var(--space-1); }
.section-header p { color: var(--text-muted); font-size: 0.9375rem; }

.category-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.category-growth_volatile { background: #FFF3E0; color: #E67E22; }
.category-moderate { background: var(--green-light); color: var(--green-mid); }
.category-stable_income { background: var(--blue-light); color: var(--blue); }
.category-index_stable { background: #F0E6F6; color: #7B2D8E; }

.holdings-list { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
.holding-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-5) var(--space-6); box-shadow: var(--shadow-sm); }
.holding-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-4); }
.holding-card-symbol { display: flex; align-items: center; gap: var(--space-3); }
.holding-card-symbol strong { font-size: 1.125rem; color: var(--green-dark); }
.holding-card-name { font-size: 0.9375rem; color: var(--text-primary); margin-top: var(--space-1); }
.holding-card-meta { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-1); }
.holding-card-income { text-align: right; flex-shrink: 0; }
.holding-income-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-1); font-weight: 600; }
.holding-income-amount { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--gold); }

.strategy-legend-item { font-size: 0.875rem; line-height: 1.5; }
.strategy-legend-item strong { color: var(--green-dark); margin-right: var(--space-2); }
.strategy-legend-item span { color: var(--text-muted); }

.account-type-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.account-type-option { cursor: pointer; }
.account-type-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.account-type-option-body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-4) var(--space-3); background: var(--bg); border: 2px solid var(--border); border-radius: 10px; text-align: center; transition: border-color 0.2s, background-color 0.2s; }
.account-type-option-body strong { font-size: 0.9375rem; color: var(--green-dark); }
.account-type-option-body span { font-size: 0.8125rem; color: var(--text-muted); }
.account-type-option input:checked + .account-type-option-body { border-color: var(--green-mid); background: var(--green-light); }
.account-type-option:hover .account-type-option-body { border-color: var(--green-mid); }

.after-tax-section { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.15); }
.after-tax-amount { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; color: #FFFFFF; }
.after-tax-label { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-bottom: var(--space-2); }

.issue-badge { font-size: 0.8125rem; color: var(--color-warning); font-weight: 500; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-10); }
.pricing-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-5); }
.pricing-card h3 { margin-bottom: var(--space-1); }
.pricing-price { margin: var(--space-3) 0; }
.price-crossed { text-decoration: line-through; color: var(--text-muted); font-size: 1.125rem; margin-right: var(--space-2); }
.price-free { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; color: var(--green-dark); }
.pricing-features { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; }
.pricing-features li { padding: var(--space-1) 0; padding-left: 1.25em; position: relative; }
.pricing-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }
.pricing-features .pricing-feature-excluded { color: var(--text-muted); text-decoration: line-through; }
.pricing-features .pricing-feature-excluded::before { content: "\2717"; color: var(--text-muted); }

.result-cta { text-align: center; padding: var(--space-10) var(--space-6); background: var(--bg); border-radius: 16px; margin: var(--space-10) 0; }
.result-cta h2 { color: var(--green-dark); margin-bottom: var(--space-2); }
.result-cta p { color: var(--text-muted); margin-bottom: var(--space-6); }
.result-cta-form { display: flex; gap: var(--space-3); max-width: 480px; margin: 0 auto; justify-content: center; }
.result-cta-form .form-input { flex: 1; min-width: 0; }
.result-cta-form .btn-primary { white-space: nowrap; flex-shrink: 0; }

.filter-pills { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); flex-wrap: wrap; }
.filter-pill { display: inline-block; padding: var(--space-2) var(--space-4); border-radius: 24px; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); background: var(--white); border: 1px solid var(--border); text-decoration: none; transition: all 0.2s; }
.filter-pill:hover { color: var(--green-dark); border-color: var(--green-mid); text-decoration: none; }
.filter-pill.active { color: var(--white); background: var(--green-dark); border-color: var(--green-dark); }
.filter-pill.active:hover { color: var(--white); }

.filter-bar-form { display: flex; align-items: center; gap: var(--space-3); }

.action-badge { display: inline-block; padding: 2px var(--space-2); border-radius: 5px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.action-badge-green { background: var(--green-light); color: var(--green-mid); }
.action-badge-blue { background: var(--blue-light); color: var(--blue); }
.action-badge-gold { background: var(--gold-light); color: #8B6914; }
.action-badge-red { background: var(--red-light); color: var(--red); }
.action-badge-gray { background: var(--bg-warm); color: var(--text-muted); }

.source-badge { display: inline-block; padding: 2px var(--space-2); border-radius: 5px; font-size: 0.6875rem; font-weight: 700; }
.source-badge-green { background: var(--green-light); color: var(--green-mid); }
.source-badge-gold { background: var(--gold-light); color: #8B6914; }
.source-badge-red { background: var(--red-light); color: var(--red); }

.txn-notes { max-width: 200px; font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.analyze-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.analyze-table thead th { text-align: left; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: var(--space-3) var(--space-4); background: var(--green-mist); border-bottom: 2px solid var(--border); }
.analyze-table tbody td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-light); }

.category-explanation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-8); }

.add-holding-row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: flex-end; }
.add-holding-field { display: flex; flex-direction: column; gap: var(--space-1); }
.add-holding-field label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.add-holding-field input, .add-holding-field select { padding: 0.55rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.9rem; width: 140px; }
.add-holding-field input:focus, .add-holding-field select:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(45,95,74,0.1); }
.add-holding-status { font-size: 0.8125rem; min-height: 1.2em; }

.log-form-field { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; min-width: 120px; }
.log-form-field label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.log-form-field select, .log-form-field input { padding: 0.55rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.9rem; }

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .container, .container-narrow { padding: 0 var(--space-4); }
    .page { padding: 1.5rem 1rem 3rem; }

    .landing-hero { min-height: auto; padding: 3rem 1.5rem; }
    .hero-headline { font-size: 2.25rem; }
    .hero-sub { font-size: 1rem; }
    .how-steps { grid-template-columns: 1fr; gap: 2rem; max-width: 300px; }
    .how-step:not(:last-child)::after { display: none; }
    .how-strip { padding: 3rem 1.5rem; }

    .holdings-row { grid-template-columns: 1fr 80px auto auto; }
    .holdings-row.header { display: none; }
    .account-options { grid-template-columns: 1fr; }

    .portfolio-hero { flex-direction: column; }
    .portfolio-hero-stat:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    .portfolio-hero-value { font-size: 1.75rem; }
    .portfolio-hero-stat { padding: 1.25rem 1.5rem; }
    .portfolio-supporting-value { font-size: 1.125rem; }
    .portfolio-supporting-stat { padding: 0.75rem 0.5rem; }

    /* Results v3 responsive */
    .scoreboard-right { display: none; }
    .scoreboard-income { font-size: 1.25rem; }
    .v3-hero-amount { font-size: 2.5rem; }
    .account-tabs { flex-wrap: wrap; justify-content: center; }
    .strategy-box-top { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .strategy-toggle-v3 { width: 100%; }
    .strategy-pill { flex: 1; text-align: center; }
    .holding-row { flex-wrap: wrap; gap: 0.25rem; }
    .holding-meta { display: none; }
    .cta-input-group { flex-direction: column; }
    .cta-v3-btn { width: 100%; }
    .cta-line { width: 28px; }
    .cta-v3 { padding: 2rem 1.25rem 1.5rem; }

    .pricing-grid { grid-template-columns: 1fr; }

    .portfolio-action-row, .action-row { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .add-row { grid-template-columns: 1fr; }
    .log-form-grid { grid-template-columns: 1fr; }
    .projected-bar { flex-direction: column; gap: var(--space-2); text-align: center; }

    .table-card { overflow-x: auto; }
    .holdings-table { font-size: 0.8125rem; }
    .holdings-table th, .holdings-table td { padding: var(--space-2) var(--space-3); }
    .hide-mobile { display: none; }

    .add-holding-row { flex-direction: column; }
    .add-holding-field { width: 100%; }
    .add-holding-field input, .add-holding-field select { width: 100%; }
    .log-form-field { min-width: 100%; }

    .table th, .table td { white-space: nowrap; font-size: 0.8125rem; padding: var(--space-2) var(--space-3); }
    .week-header { flex-direction: column; gap: var(--space-2); }
    .mark-done-fields { grid-template-columns: 1fr 1fr; }
    .confirm-row { flex-direction: column; }

    .holding-card-header { flex-direction: column; }
    .holding-card-income { text-align: left; }
    .holding-row { grid-template-columns: 1fr 80px auto auto; }
    .holding-row-header { display: none; }

    .site-nav-user { margin-left: 0; padding-left: 0; border-left: none; margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); width: 100%; justify-content: space-between; }
    .tab-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tab-nav a { white-space: nowrap; padding: 0.65rem 0.85rem; font-size: 0.82rem; }
    .account-type-options { grid-template-columns: 1fr; }
}


/* ============================================================
   Learn Section — Hub, Articles, Callouts, Glossary
   ============================================================ */

/* ── Learn Hub ── */
.learn-hub { max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.learn-hub-header { margin-bottom: 1.5rem; }
.learn-hub-header h1 { font-size: 2rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.learn-hub-header p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; }

/* ── START HERE hero card ── */
.learn-start-here {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #fffcf5 0%, #fff 100%);
  transition: all 0.2s;
}
.learn-start-here:hover {
  border-color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(196, 153, 60, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.learn-start-here h2 {
  font-size: 1.35rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}
.learn-start-here:hover h2 { border-bottom: 1.5px solid var(--green-dark); width: fit-content; }
.learn-start-here p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}
.learn-badge-start-here {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* ── Article cards grid ── */
.learn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.learn-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; text-decoration: none; color: inherit; transition: all 0.2s; display: flex; flex-direction: column; }
.learn-card:hover { border-color: var(--green-mid); box-shadow: 0 4px 12px rgba(27, 61, 47, 0.08); transform: translateY(-2px); text-decoration: none; }
.learn-card:hover h3 { border-bottom: 1.5px solid var(--green-dark); width: fit-content; }
.learn-card .card-number { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 0.5rem; }
.learn-card h3 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.learn-card p { font-size: 0.9rem; color: var(--text-secondary); flex: 1; }
.learn-card .read-time { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }
.learn-card-full { grid-column: 1 / -1; }

/* ── THE BASICS badge (subtle, gray) ── */
.learn-badge-basics {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

/* ── Article page ── */
.article { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.article-breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.article-breadcrumb a { color: var(--green-mid); text-decoration: none; }
.article h1 { font-size: 2rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.article .subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.article .read-time { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article h2 { font-size: 1.35rem; color: var(--green-dark); margin: 2.25rem 0 0.75rem; }
.article h3 { font-size: 1.1rem; color: var(--green-dark); margin: 1.75rem 0 0.5rem; }
.article p { margin-bottom: 1rem; font-size: 1rem; color: var(--text-primary); line-height: 1.7; }

/* ── Callout boxes ── */
.callout { border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.callout-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.35rem; }
.callout p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.callout p:last-child { margin-bottom: 0; }

.callout-analogy { background: var(--gold-light); border-left: 4px solid var(--gold); }
.callout-analogy .callout-label { color: var(--gold); }

.callout-key { background: var(--green-light); border-left: 4px solid var(--green-mid); }
.callout-key .callout-label { color: var(--green-mid); }

.callout-warning { background: #FFF8F0; border-left: 4px solid #E67E22; }
.callout-warning .callout-label { color: #E67E22; }

.callout-example { background: var(--blue-light); border-left: 4px solid var(--blue); }
.callout-example .callout-label { color: var(--blue); }

/* ── Inline term link ── */
.term { color: var(--green-mid); text-decoration: none; border-bottom: 1px dotted var(--green-mid); cursor: help; }
.term:hover { color: var(--green-dark); border-bottom-style: solid; }

/* ── Example recommendation block ── */
.rec-example { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 1.5rem 0; }
.rec-example-header { background: var(--green-dark); color: var(--white); padding: 0.6rem 1.25rem; font-size: 0.82rem; font-weight: 600; }
.rec-example-body { padding: 1.25rem; }
.rec-example-body .rec-line { padding: 0.6rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; }
.rec-example-body .rec-line:last-child { border-bottom: none; }
.rec-line .rec-part { font-weight: 700; color: var(--green-dark); white-space: nowrap; min-width: 140px; font-size: 0.9rem; }
.rec-line .rec-explain { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Glossary ── */
.glossary-grid { display: grid; gap: 0; }
.glossary-entry { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.glossary-entry:last-child { border-bottom: none; }
.glossary-term { font-weight: 700; color: var(--green-dark); font-size: 1rem; margin-bottom: 0.2rem; }
.glossary-def { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.glossary-see { font-size: 0.8rem; color: var(--green-mid); }
.glossary-letter { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--gold); margin-top: 1.5rem; margin-bottom: 0.5rem; padding-bottom: 0.25rem; border-bottom: 2px solid var(--gold-light); }

/* ── CTA box ── */
.cta-box { background: var(--green-dark); border-radius: 10px; padding: 2rem 2.5rem; text-align: center; margin: 3rem 0 1rem; }
.cta-box h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.5rem; }
.cta-box p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 1.25rem; }
.cta-box .btn { display: inline-block; background: var(--gold); color: var(--green-dark); padding: 0.65rem 1.5rem; border-radius: 6px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.cta-box .btn:hover { background: var(--gold-light); }

/* ── Prev/Next article nav ── */
.article-nav { display: flex; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article-nav a { text-decoration: none; color: var(--green-mid); font-size: 0.9rem; font-weight: 600; }
.article-nav a:hover { color: var(--green-dark); }
.article-nav .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: block; margin-bottom: 0.15rem; font-weight: 400; }

/* ── How It Works tour ── */
.tour-section { padding: 3rem 0; }
.section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 0.75rem; }
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 1.6rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.section-header p { font-size: 1.05rem; color: var(--text-secondary); max-width: 640px; }

.screenshot-frame { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); }
.screenshot-chrome { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: #F5F5F5; border-bottom: 1px solid var(--border); }
.screenshot-dot { width: 10px; height: 10px; border-radius: 50%; }
.screenshot-dot.red { background: #FF5F56; }
.screenshot-dot.yellow { background: #FFBD2E; }
.screenshot-dot.green { background: #27C93F; }
.screenshot-url { margin-left: 1rem; font-size: 0.78rem; color: var(--text-muted); background: var(--white); padding: 0.2rem 0.75rem; border-radius: 4px; border: 1px solid var(--border); }
.screenshot-body { padding: 1.75rem; background: var(--white); }

.annotation { margin-top: 1.5rem; }
.annotation-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--green-light); border-radius: 8px; padding: 1.25rem 1.5rem; }
.annotation-number { width: 28px; height: 28px; border-radius: 50%; background: var(--green-dark); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.annotation-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Tour mock elements ── */
.mock-rec { border-left: 4px solid var(--green-mid); padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: 0 8px 8px 0; background: var(--bg); }
.mock-rec-label { font-weight: 700; font-size: 0.82rem; color: var(--green-dark); margin-bottom: 0.35rem; }
.mock-rec-action { border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; background: #FFFDF5; }
.mock-rec-action .mock-rec-label { color: #8B6914; }
.mock-gold { color: var(--gold); font-weight: 700; }
.mock-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }
.mock-badge.mod { background: var(--green-light); color: var(--green-mid); }
.mock-badge.gv { background: #EBF3F7; color: var(--blue); }
.mock-badge.si { background: var(--gold-light); color: #8B6914; }
.mock-ticker { font-weight: 700; color: var(--green-dark); }
.mock-company { font-size: 0.78rem; color: var(--text-muted); }
.mock-row { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.2fr 1.2fr 1fr; gap: 1rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.mock-row.header { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.mock-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; font-size: 0.72rem; font-weight: 600; }
.mock-toggle span { padding: 0.2rem 0.5rem; }
.mock-toggle .sel { background: var(--green-dark); color: var(--white); }
.mock-term { color: var(--green-mid); border-bottom: 1px dotted var(--green-mid); cursor: help; }
.mock-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--green-dark); color: var(--white); padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.82rem; width: 280px; line-height: 1.5; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 10; }
.mock-confirm { background: var(--green-light); border-radius: 0 0 8px 8px; }
.mock-confirm-header { padding: 0.75rem 1rem; font-weight: 700; font-size: 0.88rem; color: var(--green-dark); border-bottom: 1px solid rgba(45,95,74,0.15); }
.mock-confirm-body { padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.mock-input { padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: 5px; font-size: 0.82rem; width: 80px; font-family: inherit; }
.mock-input-ro { padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: 5px; font-size: 0.82rem; width: 110px; background: #f9f9f9; color: var(--text-muted); font-family: inherit; }
.mock-btn { background: var(--green-dark); color: var(--white); padding: 0.35rem 0.85rem; border-radius: 5px; font-size: 0.82rem; font-weight: 700; border: none; cursor: pointer; }
.mock-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mock-stat { text-align: center; }
.mock-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.mock-stat-value { font-size: 1.3rem; font-weight: 700; color: var(--green-dark); margin: 0.25rem 0; }
.mock-stat-value.gold { color: var(--gold); }
.mock-stat-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ── Learn CMS: Category filters ── */
.category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--green-mid); color: var(--green-mid); text-decoration: none; }
.filter-pill.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

.active-filter-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}
.clear-filter {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.clear-filter:hover { color: var(--text-primary); }

.learn-category-section { margin-bottom: 2.5rem; }
.learn-category-section h2 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 1rem; }

.learn-empty { text-align: center; padding: 3rem 1rem; color: var(--text-light); }
.learn-empty a { color: var(--green-mid); }

/* ── Learn CMS: Article tags + badges ── */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.article-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.15s;
}
.article-tag:hover { border-color: var(--green-mid); text-decoration: none; }

.foundational-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gold-light);
    color: #8B6914;
    margin-bottom: 1rem;
}

.article-card-tags { display: flex; gap: 0.35rem; margin-top: 0.75rem; }
.article-card-tags span {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.1rem 0.4rem;
    background: var(--bg);
    border-radius: 3px;
}

/* ── Learn CMS: Related articles ── */
.related-articles, .category-articles {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.related-articles h3, .category-articles h3 {
    font-size: 1.05rem;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
}
.related-articles-list, .category-articles-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.related-article-link {
    color: var(--green-mid);
    text-decoration: none;
    font-size: 0.9rem;
}
.related-article-link:hover { text-decoration: underline; }

/* ── Learn CMS: Article Graphics ── */
.article-graphic {
    margin: 2rem 0;
    background: #F7F5F0;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px 16px 16px;
}
.article-graphic svg { width: 100%; height: auto; display: block; }

/* ── Learn CMS: Article CTA ── */
.article-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--green-light);
    border-radius: 8px;
    text-align: center;
}
.article-cta p { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 1rem; }

/* ── Waitlist inline forms ── */
.waitlist-inline { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.waitlist-or { display: block; font-size: 0.875rem; color: var(--text-light); margin-bottom: 0.75rem; }
.waitlist-inline-row { display: flex; gap: 0.5rem; max-width: 380px; margin: 0 auto; }
.waitlist-inline-row input {
    flex: 1; padding: 0.5rem 0.75rem; border: 1px solid var(--border);
    border-radius: 6px; font-family: inherit; font-size: 0.9rem;
}
.waitlist-inline-row input:focus { border-color: var(--green-mid); outline: none; box-shadow: 0 0 0 3px rgba(45,95,74,0.1); }
.waitlist-inline-row button {
    padding: 0.5rem 1rem; background: var(--green-dark); color: #fff;
    border: none; border-radius: 6px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; font-family: inherit; white-space: nowrap;
}
.waitlist-inline-row button:hover { background: var(--green-mid); }
.waitlist-inline-dark { border-top-color: rgba(255,255,255,0.2); }
.waitlist-inline-dark .waitlist-or { color: rgba(255,255,255,0.65); }
.waitlist-inline-dark .waitlist-inline-row input { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.waitlist-inline-dark .waitlist-inline-row input::placeholder { color: rgba(255,255,255,0.4); }
.waitlist-inline-dark .waitlist-inline-row button { background: var(--gold); color: var(--green-dark); }
.waitlist-inline-dark .waitlist-inline-row button:hover { background: var(--gold-light); }

/* ── Learn section responsive ── */
@media (max-width: 640px) {
    .learn-cards { grid-template-columns: 1fr; }
    .learn-card-full { grid-column: auto; }
    .learn-hub-header h1 { font-size: 1.6rem; }
    .learn-start-here { padding: 1.5rem; }
    .learn-start-here h2 { font-size: 1.15rem; }
    .article h1 { font-size: 1.6rem; }
    .category-filters { gap: 0.35rem; }
    .filter-pill { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
    .rec-line { flex-direction: column; gap: 0.25rem; }
    .rec-line .rec-part { min-width: auto; }
    .article-nav { flex-direction: column; gap: 1rem; }
    .section-header h2 { font-size: 1.3rem; }
    .mock-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.82rem; }
    .mock-summary { grid-template-columns: 1fr 1fr; }
    .annotation-card { flex-direction: column; }
}

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-10);
}
.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--green-mid);
    text-decoration: underline;
}
.site-footer-sep {
    margin: 0 0.4rem;
}

/* ── Private Beta Badge ──────────────────────────────────── */
.beta-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--green-light);
    color: var(--green-mid);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 0.5rem;
    vertical-align: middle;
}
