/* ============================================
   CloserCircle Design System
   Dark theme with gold accents
   ============================================ */

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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-accent: #1a1a1a;
    --bg-hover: #1e1e1e;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --gold-glow: rgba(201, 168, 76, 0.08);
    --text-primary: #f5f5f0;
    --text-secondary: #8a8a80;
    --text-muted: #5a5a52;
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --success: #4ade80;
    --radius: 4px;
    --transition: 0.2s ease;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ============================================
   Layout
   ============================================ */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
}

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

.nav-cta {
    font-size: 0.82rem !important;
    color: var(--gold) !important;
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 8px 18px;
    border-radius: var(--radius);
    background: var(--gold-dim);
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: rgba(201, 168, 76, 0.2) !important;
    border-color: var(--gold) !important;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 16px 24px;
        flex-direction: column;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        z-index: 100;
    }
    .nav-links.open { display: flex; }
    .nav { position: relative; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gold);
    color: #0a0a0a;
}

.btn-primary:hover {
    background: var(--gold-light);
    color: #0a0a0a;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.btn-outline-gold:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.84rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Page Hero
   ============================================ */

.page-hero {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.page-hero-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 24px;
    background: var(--gold-dim);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    max-width: 700px;
    margin-bottom: 16px;
}

.page-hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================
   Section Labels
   ============================================ */

.section-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 540px;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* ============================================
   Track Cards (Course Catalog)
   ============================================ */

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 2px;
    margin-bottom: 80px;
}

.track-card {
    background: var(--bg-card);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: background var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.track-card:hover {
    background: var(--bg-hover);
    color: inherit;
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold-dim);
    transition: background var(--transition);
}

.track-card:hover::before {
    background: var(--gold);
}

.track-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.track-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.1);
    line-height: 1;
}

.track-badge {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 600;
}

.badge-free {
    background: rgba(74, 222, 128, 0.12);
    color: var(--success);
}

.badge-beginner {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

.badge-intermediate {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.badge-advanced {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.badge-expert {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

.badge-realtor {
    background: rgba(201, 168, 76, 0.18);
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.3);
    font-weight: 700;
}

.track-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.track-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.track-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.track-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.track-price {
    color: var(--gold) !important;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

/* Mobile: Track cards responsive fix */
@media (max-width: 768px) {
    .tracks-grid {
        grid-template-columns: 1fr !important;
    }

    .track-card {
        padding: 24px 20px;
        grid-column: span 1 !important;
    }

    .track-card .track-number {
        font-size: 2rem;
    }

    .track-card h3 {
        font-size: 1.05rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .track-card p {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .strategy-tags {
        flex-wrap: wrap;
    }
}

/* ============================================
   Course Detail Page
   ============================================ */

.course-detail {
    padding: 48px 0 80px;
}

.course-header {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .course-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.course-info h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.course-info .course-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.course-stats {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.course-stat {
    text-align: center;
}

.course-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.course-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Enrollment card */
.enroll-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    position: sticky;
    top: 24px;
}

.enroll-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.enroll-price-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ---- 50%-off anchor pricing (homepage, IBC, enroll card, modal) ---- */
.cc-anchor-price {
    font-size: 1.1rem;
    color: #6b7280;
    text-decoration: line-through;
}
.cc-real-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.cc-pct-badge {
    background: #c9a84c;
    color: #0a0a0a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge-50off {
    background: var(--gold);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}
.price-anchor-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-primary);
}
.price-anchor-row .price-anchor {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
}
.price-anchor-row .price-real {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}
.enroll-price-anchor {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.enroll-price-anchor s {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
}
.enroll-price-discounted {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.price-rise-banner {
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 6px;
    padding: 14px 20px;
    color: var(--gold);
    font-weight: 600;
    text-align: center;
    margin: 0 0 32px 0;
    letter-spacing: 0.01em;
}
.price-rise-notice {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    margin: 4px 0 12px 0;
    letter-spacing: 0.01em;
}

.enroll-features {
    list-style: none;
    margin-bottom: 24px;
}

.enroll-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.enroll-features li::before {
    content: '\2713';
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.enroll-or {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 16px 0;
    position: relative;
}

.enroll-or::before,
.enroll-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.enroll-or::before { left: 0; }
.enroll-or::after { right: 0; }

/* Lessons list */
.lessons-section {
    margin-bottom: 60px;
}

.lessons-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 24px;
}

.lesson-item {
    background: var(--bg-card);
    padding: 20px 24px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}

.lesson-item:hover {
    background: var(--bg-hover);
}

.lesson-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lesson-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 28px;
    text-align: center;
}

.lesson-title {
    font-size: 0.92rem;
    font-weight: 500;
}

.lesson-duration {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* What you'll learn */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .learn-grid { grid-template-columns: 1fr; }
}

.learn-item {
    background: var(--bg-card);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.learn-item::before {
    content: '\\25B8';
    color: var(--gold);
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   Mentorship Page
   ============================================ */

.mentorship-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 80px;
}

@media (max-width: 900px) {
    .mentorship-packages { grid-template-columns: 1fr; }
}

.package-card {
    background: var(--bg-card);
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card.featured {
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.04) 0%, var(--bg-card) 100%);
}

.package-featured-label {
    position: absolute;
    top: -1px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: var(--gold);
}

.package-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.package-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.package-price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.package-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.package-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.package-features li {
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features li::before {
    content: '\2713';
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Mentor section */
.mentor-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .mentor-section { grid-template-columns: 1fr; gap: 40px; }
}

.mentor-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.mentor-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.mentor-features {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mentor-feature {
    background: var(--bg-card);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mentor-icon {
    width: 36px;
    height: 36px;
    background: var(--gold-dim);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
}

.mentor-feature h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mentor-feature p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Booking Form
   ============================================ */

.booking-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.booking-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238a8a80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-success {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--success);
    display: none;
}

.form-success.visible { display: block; }

/* ============================================
   Pricing Section
   ============================================ */

.pricing-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.pricing-section.bundle-banner {
    margin: 24px 0 32px;
    padding: 32px 0 8px;
    border-top: 1px solid var(--border);
}

.pricing-highlight {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 48px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.pricing-highlight h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.pricing-highlight .price-big {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.pricing-highlight .price-compare {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-highlight .price-compare s {
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */

.app-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

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

@media (max-width: 768px) {
    .app-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   Utilities
   ============================================ */

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.stagger-1 { animation-delay: 0.05s; opacity: 0; }
.stagger-2 { animation-delay: 0.1s; opacity: 0; }
.stagger-3 { animation-delay: 0.15s; opacity: 0; }
.stagger-4 { animation-delay: 0.2s; opacity: 0; }
.stagger-5 { animation-delay: 0.25s; opacity: 0; }
.stagger-6 { animation-delay: 0.3s; opacity: 0; }
.stagger-7 { animation-delay: 0.35s; opacity: 0; }

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--gold);
}

/* Strategies tags */
.strategy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.strategy-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: var(--bg-accent);
    color: var(--text-muted);
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* Nav mentor link highlight */
.nav-mentor-link {
    color: var(--gold) !important;
    font-weight: 600 !important;
}

.form-label-upper {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   AI Mentor - Identify Screen
   ============================================ */

.mentor-identify-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mentor-identify-page .nav {
    padding: 20px 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.mentor-identify {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.mentor-identify-card {
    max-width: 460px;
    width: 100%;
    text-align: center;
}

.mentor-ai-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0a0a0a;
    margin: 0 auto 24px;
}

.mentor-identify-card h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.mentor-identify-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 32px;
}

.mentor-identify-form {
    text-align: left;
    margin-bottom: 16px;
}

.mentor-identify-form .form-group {
    margin-bottom: 16px;
}

.mentor-identify-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.mentor-identify-features {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mif-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mif-icon {
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .mentor-identify-features { grid-template-columns: 1fr; }
}

/* ============================================
   AI Mentor - Onboarding Wizard
   ============================================ */

.onboard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.onboard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-accent);
    border: 2px solid var(--border-light);
    transition: all 0.3s;
}

.onboard-dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

.onboard-line {
    width: 48px;
    height: 2px;
    background: var(--border-light);
    transition: background 0.3s;
}

.onboard-line.active {
    background: var(--gold);
}

.mentor-identify-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.onboard-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.onboard-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
}

.onboard-option:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.onboard-option.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.oo-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.onboard-option strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
}

.oo-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.onboard-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    text-align: left;
}

.onboard-goal {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
}

.onboard-goal:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.onboard-goal.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold);
}

.onboard-nav {
    display: flex;
    gap: 12px;
}

.onboard-nav .btn {
    flex: 1;
}

/* ============================================
   AI Mentor - Chat Interface
   ============================================ */

.mentor-chat-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.mentor-nav {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 10;
    background: var(--bg-dark);
}

.mentor-nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mentor-nav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
}

.mentor-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mentor-nav-link {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
    text-decoration: none;
    font-weight: 500;
}

.mentor-nav-link:hover {
    color: var(--text-secondary) !important;
}

.mentor-sidebar-toggle,
.mentor-new-chat-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mentor-sidebar-toggle:hover,
.mentor-new-chat-btn:hover {
    color: var(--text-primary);
    background: var(--bg-accent);
}

/* Chat app layout */
.mentor-app {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.mentor-sidebar {
    width: 280px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    flex-shrink: 0;
}

.mentor-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.mentor-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.mentor-sidebar-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mentor-conv-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    color: var(--text-secondary);
    transition: all 0.15s;
    margin-bottom: 2px;
    font-family: 'DM Sans', sans-serif;
}

.mentor-conv-item:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

.mentor-conv-item.active {
    background: var(--gold-dim);
    color: var(--text-primary);
}

.mentor-conv-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mentor-conv-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.mentor-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.mentor-profile-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mpb-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.mpb-level {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: capitalize;
    font-weight: 600;
}

/* Main chat area */
.mentor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.mentor-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Empty state */
.mentor-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.mentor-empty-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0a0a0a;
    margin-bottom: 20px;
}

.mentor-empty h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.mentor-empty p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.mentor-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 500px;
}

.mentor-suggestion {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
}

.mentor-suggestion:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}

/* Message bubbles */
.mentor-msg {
    display: flex;
    gap: 12px;
    max-width: 780px;
    animation: fadeIn 0.25s ease;
}

.mentor-msg-user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.mentor-msg-ai {
    align-self: flex-start;
}

.mentor-msg-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #0a0a0a;
    flex-shrink: 0;
    margin-top: 2px;
}

.mentor-msg-content {
    font-size: 0.92rem;
    line-height: 1.65;
    word-break: break-word;
}

.mentor-msg-user .mentor-msg-content {
    background: var(--gold-dim);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 12px 16px;
    border-radius: 16px 16px 4px 16px;
    color: var(--text-primary);
}

.mentor-msg-ai .mentor-msg-content {
    color: var(--text-secondary);
    padding: 4px 0;
}

.mentor-msg-ai .mentor-msg-content strong {
    color: var(--text-primary);
}

.mentor-msg-ai .mentor-msg-content h3,
.mentor-msg-ai .mentor-msg-content h4 {
    color: var(--text-primary);
    margin: 16px 0 8px;
    font-size: 1rem;
}

.mentor-msg-ai .mentor-msg-content h3:first-child,
.mentor-msg-ai .mentor-msg-content h4:first-child {
    margin-top: 0;
}

.mentor-msg-ai .mentor-msg-content p {
    margin-bottom: 10px;
}

.mentor-msg-ai .mentor-msg-content p:last-child {
    margin-bottom: 0;
}

.mentor-msg-ai .mentor-msg-content ul,
.mentor-msg-ai .mentor-msg-content ol {
    margin: 8px 0 12px 20px;
}

.mentor-msg-ai .mentor-msg-content li {
    margin-bottom: 4px;
}

.mentor-msg-ai .mentor-msg-content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--gold);
}

/* Typing indicator */
.mentor-typing {
    color: var(--text-muted);
    font-style: italic;
}

.mentor-typing span {
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Input area */
.mentor-input-area {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    background: var(--bg-dark);
    flex-shrink: 0;
}

.mentor-input-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 780px;
    margin: 0 auto;
}

.mentor-input-form textarea {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    border-radius: 12px;
    resize: none;
    min-height: 44px;
    max-height: 150px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.mentor-input-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.mentor-input-form textarea:disabled {
    opacity: 0.5;
}

.mentor-send-btn {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    color: #0a0a0a;
}

.mentor-send-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.mentor-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mentor-send-btn svg {
    color: #0a0a0a;
}

/* ============================================
   AI Mentor - Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .mentor-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .mentor-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
    }

    .mentor-sidebar.open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
    }

    .mentor-messages {
        padding: 16px;
    }

    .mentor-input-area {
        padding: 12px 16px;
    }

    .mentor-msg {
        max-width: 100%;
    }

    .mentor-nav-link {
        display: none;
    }

    .mentor-identify-card h1 {
        font-size: 1.6rem;
    }
}

/* ============================================
   Onboarding Step Label
   ============================================ */

.ob-step-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Nav path link */
.nav-path-link {
    color: var(--gold) !important;
    font-weight: 600 !important;
}

/* ============================================
   Learning Path Dashboard
   ============================================ */

.lp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.lp-loading-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lp-loading p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Header */
.lp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.lp-header-left {
    flex: 1;
}

.lp-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.lp-header-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Score ring */
.lp-score-card {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lp-score-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lp-score-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.lp-score-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* Stats row */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin: 2px 0;
}

.lp-stat {
    background: var(--bg-card);
    padding: 24px 20px;
    text-align: center;
}

.lp-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lp-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Next milestone banner */
.lp-next-milestone {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 20px 24px;
    margin-top: 24px;
}

.lp-nm-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lp-nm-content {
    flex: 1;
}

.lp-nm-label {
    font-size: 0.68rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.lp-nm-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.lp-nm-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Action box */
.lp-action-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border-left: 3px solid var(--gold);
    padding: 20px 24px;
    margin-top: 24px;
}

.lp-action-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.lp-action-label {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    font-weight: 600;
}

.lp-action-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Track list */
.lp-tracks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 48px;
}

.lp-track-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    padding: 24px;
    transition: background var(--transition);
}

.lp-track-item:hover {
    background: var(--bg-hover);
}

.lp-track-num {
    width: 36px;
    height: 36px;
    background: var(--gold-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.lp-track-info {
    flex: 1;
    min-width: 0;
}

.lp-track-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.lp-track-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.lp-track-title:hover {
    color: var(--gold) !important;
}

.lp-track-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.lp-track-badge.review {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

.lp-track-badge.done {
    background: rgba(74, 222, 128, 0.12);
    color: var(--success);
}

.lp-track-reason {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.lp-track-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-accent);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.lp-track-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.lp-track-progress-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Weekly actions */
.lp-weekly-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 48px;
}

.lp-wa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 16px 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.lp-wa-check {
    font-size: 1.1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Milestones */
.lp-milestones {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 60px;
}

.lp-ms-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    padding: 18px 20px;
    transition: background var(--transition);
}

.lp-ms-item:hover {
    background: var(--bg-hover);
}

.lp-ms-item.completed {
    opacity: 0.6;
}

.lp-ms-check {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lp-ms-info {
    flex: 1;
}

.lp-ms-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.lp-ms-item.completed .lp-ms-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.lp-ms-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.lp-ms-date {
    font-size: 0.72rem;
    color: var(--gold);
    margin-top: 4px;
}

/* ============================================
   Lesson Pages
   ============================================ */

/* Utility */
.ml-4 { margin-left: 16px; }
.mt-6 { margin-top: 24px; }
.link-gold { color: var(--gold); text-decoration: underline; }
.link-gold:hover { color: var(--gold-hover, #d4a017); }

/* Start Lessons btn inside track item */
.lp-start-lessons-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 6px 14px;
}

/* Lessons List Page */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

.lesson-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface, #0d0d0d);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text, #fff);
    transition: background 0.15s;
}

.lesson-card:last-child {
    border-bottom: none;
}

.lesson-card:hover {
    background: var(--card-hover, #161616);
}

.lesson-card.lesson-done .lesson-num {
    background: var(--gold);
    color: #000;
}

.lesson-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.lesson-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.lesson-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lesson-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.lesson-badge.done {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.lesson-badge.progress {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.lesson-badge.coming-soon {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.lesson-badge.animated {
    background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.10));
    color: var(--gold-light, #e8d48b);
    border: 1px solid rgba(201,168,76,0.5);
}

.lesson-arrow {
    font-size: 1.4rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Outer wrapper for the /learn card grid: when the mentor attribution line is
   present we split the row into two sibling <a> elements (main card link +
   mentor link) so the HTML stays valid (no nested anchors). The .lesson-card
   container inherits the previous anchor's flex styling and adds a column
   layout so the mentor line stacks under the card link. Targeting the
   .lesson-card-main wrapper (only present on the card-grid variant) keeps
   the IBC <a class="lesson-card"> tile at app.js:4768 untouched. */
.lessons-list > div.lesson-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
}

.lesson-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
}

.lesson-card-main:hover {
    background: var(--card-hover, #161616);
}

.lesson-mentor {
    display: block;
    padding: 0 20px 14px;
    font-size: 0.78rem;
    color: var(--gold);
    text-decoration: none;
    border-top: 1px solid transparent;
}

.lesson-mentor:hover {
    text-decoration: underline;
}

/* Lesson Player */
.lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.lesson-breadcrumb-link {
    color: var(--gold);
    text-decoration: none;
}

.lesson-breadcrumb-link:hover { text-decoration: underline; }

.lesson-breadcrumb-sep {
    color: var(--text-muted);
}

.lesson-player-header {
    margin-bottom: 1.5rem;
}

.lesson-player-header h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 8px;
}

.lesson-player-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lesson-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #060606;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* Audio/whiteboard lesson — remove 16:9 constraint so controls are fully visible */
.lesson-video-wrap--audio {
    aspect-ratio: unset;
    height: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

/* Native video player container */
.lesson-video-wrap--native {
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* CloserCircle Native Video Player */
.cc-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.cc-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    outline: none;
}

/* Style native controls on supported browsers */
.cc-video-element::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.cc-video-element::-webkit-media-controls-play-button,
.cc-video-element::-webkit-media-controls-timeline,
.cc-video-element::-webkit-media-controls-volume-slider {
    filter: brightness(1.2);
}

/* CloserCircle branding overlay (top-left corner, fades out on play) */
.cc-video-branding {
    position: absolute;
    top: 14px;
    left: 16px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.cc-video-player:hover .cc-video-branding,
.cc-video-player:focus-within .cc-video-branding {
    opacity: 0.3;
}

.cc-video-logo {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    letter-spacing: 0.01em;
}

.cc-video-logo .gold {
    color: #c9a84c;
}

/* Iframe embed */
.lesson-video-frame {
    width: 100%;
    height: 100%;
    display: block;
}

/* Placeholder — video in production */
.lesson-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 2rem;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
}

.lesson-video-ph-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.lesson-video-ph-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.lesson-video-ph-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.65;
    max-width: 380px;
    line-height: 1.5;
}

.lesson-video-ph-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    color: rgba(201,168,76,0.7);
    margin-top: 4px;
}

.ph-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a84c;
    animation: ph-pulse 2s ease-in-out infinite;
}

@keyframes ph-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================
   AI Audio Lesson Player
   ============================================ */
.lesson-audio-wrap {
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #0f0f0d 0%, #141410 60%, #0f0e09 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    gap: 0.75rem;
}
.lesson-audio-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.28);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}
.lesson-audio-icon {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}
.lesson-audio-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}
.lesson-audio-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.lesson-audio-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
    margin: 0.25rem 0;
}
.lesson-audio-wave-bar {
    width: 4px;
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleY(0.25);
    opacity: 0.5;
    transition: transform 0.2s;
}
@keyframes cc-wave {
    0%, 100% { transform: scaleY(0.25); }
    50% { transform: scaleY(1); }
}
.lesson-audio-wave.playing .lesson-audio-wave-bar { opacity: 1; }
.lesson-audio-wave.playing .lesson-audio-wave-bar:nth-child(1) { animation: cc-wave 0.9s ease-in-out infinite 0s; }
.lesson-audio-wave.playing .lesson-audio-wave-bar:nth-child(2) { animation: cc-wave 0.9s ease-in-out infinite 0.13s; }
.lesson-audio-wave.playing .lesson-audio-wave-bar:nth-child(3) { animation: cc-wave 0.9s ease-in-out infinite 0.26s; }
.lesson-audio-wave.playing .lesson-audio-wave-bar:nth-child(4) { animation: cc-wave 0.9s ease-in-out infinite 0.19s; }
.lesson-audio-wave.playing .lesson-audio-wave-bar:nth-child(5) { animation: cc-wave 0.9s ease-in-out infinite 0.07s; }
.lesson-audio-wave.playing .lesson-audio-wave-bar:nth-child(6) { animation: cc-wave 0.9s ease-in-out infinite 0.31s; }
.lesson-audio-wave.playing .lesson-audio-wave-bar:nth-child(7) { animation: cc-wave 0.9s ease-in-out infinite 0.15s; }
.lesson-audio-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #000;
    font-weight: 900;
    transition: all 0.2s;
    flex-shrink: 0;
}
.lesson-audio-play-btn:hover { background: var(--gold-light); transform: scale(1.06); }
.lesson-audio-play-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.lesson-audio-progress-wrap {
    width: 100%;
    max-width: 380px;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.lesson-audio-progress-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.8s linear;
    border-radius: 2px;
}
.lesson-audio-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-height: 18px;
    text-align: center;
}

/* ============================================
   Whiteboard Animation Lesson Player
   ============================================ */
.wb-container {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: visible; /* was: hidden — overflow:hidden on a flex column with overflow-y:auto child collapses height on iOS Safari, clipping controls */
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    font-family: 'Caveat', 'Patrick Hand', cursive, sans-serif;
    display: flex;
    flex-direction: column;
}

.wb-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.4);
    color: #b8923a;
    font-size: 0.72rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    z-index: 2;
}

.wb-board {
    position: relative;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
    border-radius: 12px 12px 0 0; /* top corners match container since overflow:visible no longer clips */
    padding: 28px 24px 20px 24px;
    /* Whiteboard lined background */
    background: #fff;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 31px,
        #e8edf3 31px,
        #e8edf3 32px
    );
    background-position: 0 36px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
}

.wb-board::-webkit-scrollbar { width: 4px; }
.wb-board::-webkit-scrollbar-track { background: #fff; }
.wb-board::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.wb-title {
    font-family: 'Caveat', cursive;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.3;
    padding-right: 80px; /* avoid badge overlap */
}

.wb-segments {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wb-seg {
    display: none;
    min-height: 32px;
    padding: 0 0 2px 0;
    opacity: 0;
    transform: translateY(2px);
}

.wb-seg--revealed {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.wb-seg--active .wb-seg-text::after {
    content: '|';
    animation: wb-cursor 0.55s step-end infinite;
    color: #c9a84c;
    font-weight: 300;
}

@keyframes wb-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.wb-seg-text {
    font-family: 'Caveat', cursive;
    font-size: 1.32rem;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.65;
    display: block;
    word-break: break-word;
}

.wb-seg--done .wb-seg-text {
    color: #4a4a6a;
    font-weight: 400;
}

.wb-loading {
    display: flex;
    align-items: center;
    padding: 8px 0 12px;
    gap: 4px;
}

.wb-loading-dot {
    width: 6px;
    height: 6px;
    background: #c9a84c;
    border-radius: 50%;
    animation: wb-dot-pulse 1.2s ease-in-out infinite;
}

.wb-loading-dot:nth-child(1) { animation-delay: 0s; }
.wb-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.wb-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wb-dot-pulse {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Controls bar */
.wb-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 12px;
    background: #f4f6fa;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px; /* bottom corners match container since overflow:visible no longer clips */
}

.wb-play-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    border: none;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.15s;
    flex-shrink: 0;
}

.wb-play-btn:hover { background: #c9a84c; transform: scale(1.06); }
.wb-play-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.wb-progress-wrap {
    flex: 1;
    height: 5px;
    background: #dce1ea;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.wb-progress-wrap:hover .wb-progress-fill { background: var(--gold-light, #e8d48b); }

.wb-progress-fill {
    height: 100%;
    background: #c9a84c;
    width: 0%;
    border-radius: 3px;
    transition: width 0.25s linear;
}

.wb-seek-btn {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.35);
    color: var(--gold, #c9a84c);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wb-seek-btn:hover { background: rgba(201,168,76,0.08); border-color: var(--gold, #c9a84c); }
.wb-seek-btn:active { transform: scale(0.96); }

/* Dark-context variant for the seek buttons inside the animated and
   teleprompter players (dark .anim-controls background). */
.anim-controls .wb-seek-btn {
    color: var(--gold-light, #e8d48b);
    border-color: rgba(201,168,76,0.45);
}
.anim-controls .wb-seek-btn:hover {
    background: rgba(201,168,76,0.10);
    border-color: var(--gold-light, #e8d48b);
}

.wb-time {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: #7a8599;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

@media (max-width: 520px) {
    .wb-board { padding: 20px 16px 16px; min-height: 240px; }
    .wb-title { font-size: 1.3rem; }
    .wb-seg-text { font-size: 1.15rem; }
    .wb-controls { flex-wrap: wrap; }
}

.lesson-description {
    margin-bottom: 2rem;
    padding: 20px;
    background: var(--surface, #0d0d0d);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.lesson-description h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 10px;
}

.lesson-description p {
    font-size: 0.95rem;
    color: var(--text-secondary, #aaa);
    line-height: 1.6;
}

/* Lesson Transcript Section */
.lesson-transcript {
    margin-bottom: 2rem;
    background: var(--surface, #0d0d0d);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.lesson-transcript-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.lesson-transcript-header:hover {
    background: rgba(201, 168, 76, 0.04);
}

.lesson-transcript-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin: 0;
}

.lesson-transcript-arrow {
    color: var(--text-muted, #666);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.lesson-transcript-body {
    padding: 0 20px 20px;
}

.lesson-transcript-loading {
    padding: 12px 0;
    text-align: center;
}

.lesson-transcript-content p {
    font-size: 0.95rem;
    color: var(--text-secondary, #aaa);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.lesson-transcript-content p:last-child {
    margin-bottom: 0;
}

.lesson-complete-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.lesson-complete-btn {
    min-width: 200px;
}

.lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4rem;
}

.lesson-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: 45%;
    padding: 12px 20px;
    line-height: 1.3;
}

.lesson-nav-btn:last-child {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.lesson-nav-title {
    font-size: 0.78rem;
    opacity: 0.75;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .lp-header {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .lp-header-actions {
        justify-content: center;
    }

    .lp-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-next-milestone {
        flex-direction: column;
        text-align: center;
    }

    .lp-track-item {
        flex-direction: column;
    }

    .lp-ms-item {
        flex-wrap: wrap;
    }

    .lesson-nav {
        flex-direction: column;
        gap: 12px;
    }

    .lesson-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .ibc-grid-responsive {
        grid-template-columns: 1fr !important;
    }

    .ibc-form-responsive {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
    background: var(--bg-card);
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-card-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    background: var(--bg-accent);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    width: fit-content;
}

.pricing-card-gold {
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.03);
}

.pricing-card-featured {
    background: var(--bg-card);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    margin-top: 20px;
    flex: 1;
}

.pricing-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Nav path link */
.nav-path-link {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
}

.nav-path-link:hover {
    color: var(--text-primary) !important;
}

/* ============================================
   AI Investment Strategy Assessment
   ============================================ */

.assessment-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.assessment-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.assessment-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.assessment-step-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.assessment-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    margin-bottom: 28px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.assessment-q-label {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.assessment-q-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.assessment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assessment-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.15s, background 0.15s;
    background: rgba(255,255,255,0.02);
    user-select: none;
}

.assessment-option:hover {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.04);
}

.assessment-option.selected {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
    color: var(--gold);
}

.assessment-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.assessment-input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.06);
}

.assessment-input::placeholder {
    color: var(--text-secondary);
}

.assessment-input.error {
    border-color: #ff6b6b;
    background: rgba(255,107,107,0.06);
}

.assessment-input.error:focus {
    border-color: #ff6b6b;
}

.assessment-field-error {
    color: #ff6b6b;
    font-size: 0.82rem;
    margin-top: 6px;
    line-height: 1.3;
}

@keyframes assessment-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.assessment-card.shake {
    animation: assessment-shake 0.4s ease;
}

.assessment-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.assessment-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.assessment-back {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.assessment-back:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.assessment-next {
    flex: 1;
    max-width: 280px;
    margin-left: auto;
}

.assessment-trust {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Loading state */
.assessment-loader {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.assessment-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(201,168,76,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.assessment-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.loading-step {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.4s ease;
}

.loading-step.active {
    color: var(--gold);
}

/* Results page */
.assessment-results {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.assessment-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.assessment-results-confetti {
    font-size: 3rem;
    margin-bottom: 16px;
}

.assessment-results-header h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

/* Profile card */
.assessment-profile-card {
    background: var(--card-bg);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .assessment-profile-card {
        flex-direction: column;
        gap: 24px;
    }
}

.assessment-profile-left {
    flex: 1;
}

.assessment-profile-right {
    min-width: 140px;
    text-align: center;
}

.assessment-archetype-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.assessment-archetype {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 6px;
    line-height: 1.2;
}

.assessment-archetype-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.assessment-skill-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.assessment-skill-score {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.assessment-skill-bar-bg {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.assessment-skill-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.assessment-skill-tier {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* CTA grid */
.assessment-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .assessment-cta-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA card */
.assessment-cta-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    margin-bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.assessment-cta-card.featured {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.04);
}

.assessment-cta-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.assessment-cta-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.assessment-cta-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.assessment-cta-price {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.assessment-cta-price .price-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
}

.assessment-cta-price .price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.assessment-cta-btn {
    font-size: 1rem;
    padding: 14px 28px;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.assessment-cta-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Strategies */
.assessment-section {
    margin-bottom: 48px;
}

.assessment-strategies {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.assessment-strategy-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.assessment-strategy-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    min-width: 36px;
    line-height: 1;
    padding-top: 2px;
}

.assessment-strategy-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.assessment-strategy-why {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.assessment-strategy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.assessment-strategy-meta span {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Roadmap */
.assessment-roadmap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    position: relative;
}

.assessment-roadmap-week {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.assessment-roadmap-badge {
    min-width: 60px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    margin-top: 2px;
}

.assessment-roadmap-content {
    flex: 1;
}

.assessment-roadmap-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.assessment-roadmap-actions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assessment-roadmap-actions li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.assessment-roadmap-actions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    opacity: 0.7;
}

/* Objection crusher */
.assessment-objection {
    background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.assessment-objection-icon {
    font-size: 1.8rem;
    min-width: 36px;
}

.assessment-objection-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.assessment-objection p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .assessment-card {
        padding: 24px 18px;
    }
    .assessment-q-label {
        font-size: 1.1rem;
    }
    .assessment-results-header h1 {
        font-size: 1.5rem;
    }
    .assessment-cta-card {
        padding: 24px 18px;
    }
    .assessment-strategy-card {
        flex-direction: column;
        gap: 12px;
    }
    .assessment-roadmap-week {
        flex-direction: column;
        gap: 8px;
    }
    .assessment-roadmap-badge {
        width: fit-content;
    }
}

/* ════════════════════════════════════════════════════════
   REAL ESTATE VISUAL IDENTITY — Global SPA Enhancements
   Applied across all app pages (courses, mentor, book, etc.)
   ════════════════════════════════════════════════════════ */

/* Page hero sections: luxury property background texture */
section.page-hero,
.page-hero {
    position: relative;
    overflow: hidden;
}

section.page-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -60px;
    bottom: 0;
    width: 55%;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=900&q=70&auto=format&fit=crop') right center / cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
    border-radius: 0 0 0 40%;
}

section.page-hero h1 em,
.page-hero h1 em {
    font-style: normal;
    color: var(--gold);
}

/* Track cards: property-themed icons */
.track-card {
    position: relative;
    overflow: hidden;
}

.track-card:nth-child(1)::after { content: '🏠'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(2)::after { content: '📋'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(3)::after { content: '🔨'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(4)::after { content: '🔑'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(5)::after { content: '♻️'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(6)::after { content: '📈'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(7)::after { content: '🏢'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(8)::after { content: '🎓'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }
.track-card:nth-child(9)::after { content: '🏚️'; position: absolute; bottom: 12px; right: 14px; font-size: 1.4rem; opacity: 0.12; pointer-events: none; }

/* App footer: subtle RE city background */
footer.app-footer {
    position: relative;
    overflow: hidden;
}

footer.app-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1200&q=60&auto=format&fit=crop') center bottom / cover no-repeat;
    opacity: 0.025;
    pointer-events: none;
}

/* Mentorship cards: add a home icon */
.package-card {
    position: relative;
    overflow: hidden;
}

.package-card::after {
    content: '🏠';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.6rem;
    opacity: 0.07;
    pointer-events: none;
}

.package-card.featured::after {
    content: '🏰';
    opacity: 0.09;
}

/* RE icon pill — reusable accent component */
.re-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(201,168,76,0.8);
    letter-spacing: 0.3px;
}

/* Pricing cards: rooftop image texture */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=300&q=60&auto=format&fit=crop') right top / cover no-repeat;
    opacity: 0.04;
    border-radius: 0 var(--radius) 0 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    section.page-hero::before,
    .page-hero::before {
        width: 100%;
        right: 0;
        border-radius: 0;
        opacity: 0.03;
    }
}

/* ── REFUND GUARANTEE SECTION ────────────────────── */
.refund-section { margin-top: 0; }

.refund-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 12px;
}
.refund-card.refund-eligible {
    border-color: rgba(74,222,128,0.2);
    background: rgba(74,222,128,0.04);
}
.refund-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.refund-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.refund-check { font-size: 1rem; }

.refund-reqs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}
.refund-req {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-accent);
}
.refund-req.done { border-color: rgba(74,222,128,0.15); background: rgba(74,222,128,0.04); }
.refund-req.fail { border-color: rgba(255,80,80,0.15); background: rgba(255,80,80,0.04); }
.refund-req.todo { border-color: rgba(201,168,76,0.15); }
.refund-req-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.refund-req-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.refund-req-sub { font-size: 0.82rem; color: var(--text-muted); }
.refund-link, .refund-link-btn {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}
.refund-link:hover, .refund-link-btn:hover { opacity: 0.8; }

.refund-card-note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}
.refund-eligible-header { margin-bottom: 16px; }

.btn-refund {
    display: inline-block;
    padding: 10px 22px;
    background: #4ade80;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    margin-right: 12px;
    transition: opacity 0.2s;
}
.btn-refund:hover { opacity: 0.85; }

.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 10px 22px;
    transition: opacity 0.2s;
}
.btn-danger:hover { opacity: 0.85; }

.refund-policy-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 12px;
}
.refund-policy-link:hover { color: var(--text-secondary); }

.refund-tier-credit {
    margin-top: 20px;
    padding: 16px;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
}
.refund-tier-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--gold); }
.refund-tier-note { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 12px; }

/* Status boxes */
.refund-status-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-top: 12px;
}
.refund-status-icon { font-size: 1.5rem; flex-shrink: 0; }
.refund-status-label { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.refund-status-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; }
.refund-status-pending { border-color: rgba(201,168,76,0.25); background: rgba(201,168,76,0.04); }
.refund-status-approved { border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.04); }
.refund-status-denied { border-color: rgba(255,80,80,0.25); background: rgba(255,80,80,0.04); }
.refund-status-credit { border-color: rgba(96,165,250,0.25); background: rgba(96,165,250,0.04); }

/* Modal overlay */
.refund-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.refund-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
}
.refund-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.refund-modal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}
.refund-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
}
.refund-modal-close:hover { color: var(--text-primary); }
.refund-modal-sub {
    font-size: 0.87rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form fields */
.rf-field { margin-bottom: 14px; }
.rf-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.rf-field input, .rf-field select, .rf-field textarea {
    width: 100%;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}
.rf-field input:focus, .rf-field select:focus, .rf-field textarea:focus {
    border-color: rgba(201,168,76,0.4);
}
.rf-field textarea { resize: vertical; min-height: 80px; }
.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-error { color: #ef4444; font-size: 0.83rem; margin-bottom: 10px; }
.rf-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ============================================
   Animated Cartoon Mentor Lesson Player
   Pilot: wholesaling #1. Reusable across all
   future animated lessons; only the beat
   screenplay changes per lesson.
   ============================================ */
.anim-stage {
    display: grid;
    grid-template-columns: 40% 60%;
    background: linear-gradient(180deg, #1a1410 0%, #2a1f1a 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.25);
    min-height: 520px;
    position: relative;
}
.anim-character {
    position: relative;
    padding: 12px 8px 0 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.10), transparent 60%),
        linear-gradient(180deg, #1a1410 0%, #2a1f1a 100%);
}
.anim-character svg {
    width: 100%;
    height: auto;
    max-height: 520px;
    pointer-events: none;
    user-select: none;
}
.anim-whiteboard {
    background: #fafaf3;
    color: #1a1a1a;
    padding: 20px;
    min-height: 520px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Patrick Hand', 'Caveat', cursive, sans-serif;
    position: relative;
}
.anim-wb-frame {
    border: 8px solid #6b4423;
    border-radius: 4px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.08);
    background: #fafaf3;
    padding: 18px 20px 24px;
    min-height: 480px;
}
.anim-wb-header { margin-bottom: 14px; }
.anim-wb-badge {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #5a341a;
    background: rgba(201,168,76,0.18);
    border: 1px solid rgba(201,168,76,0.5);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}
.anim-wb-title {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}
.anim-wb-section-title {
    font-family: 'Caveat', cursive;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0a4d22;
    background: linear-gradient(180deg, transparent 60%, rgba(19,115,51,0.18) 60%);
    padding: 0 6px;
    margin-bottom: 8px;
    display: inline-block;
}
/* Teleprompter-style beat sections: each beat is its own <section> appended
   to .anim-wb-body. Older beats stay visible (scrollable), newest is anchored
   to the bottom of the frame via .appendChild + body.scrollTop = scrollHeight. */
.anim-wb-section { padding: 10px 0; border-top: 1px dashed rgba(107,68,35,0.18); }
.anim-wb-section:first-child { border-top: none; }
.anim-wb-section-done { opacity: 0.92; }
.anim-wb-section-active { background: rgba(255,243,205,0.4); }
.anim-wb-section-active .anim-wb-narration {
    /* Never-blank during the typewriter: keep at least one line of height so
       the on-screen text is never invisible while the typewriter ramps up. */
    min-height: 1.4em;
}
.anim-wb-body { margin-top: 4px; }
.anim-wb-narration {
    font-family: 'Patrick Hand', 'Caveat', cursive, sans-serif;
    font-size: 1.18rem;
    line-height: 1.55;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.anim-wb-narration-typed::after {
    content: '▍';
    color: rgba(26,26,26,0.55);
    margin-left: 2px;
    animation: anim-cursor-blink 0.9s linear infinite;
}
@keyframes anim-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.anim-wb-formula {
    color: #137333;
    font-weight: 700;
    font-family: 'Caveat', cursive;
    background: rgba(19,115,51,0.10);
    padding: 12px 18px;
    border-radius: 6px;
    display: block;
    font-size: 1.85rem;
    text-align: center;
    margin-top: 12px;
    border: 2px dashed rgba(19,115,51,0.4);
}
.anim-wb-list {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.18rem;
    background: rgba(201,168,76,0.12);
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 4px solid var(--gold, #c9a84c);
    margin-top: 12px;
    color: #2a1a0a;
    white-space: pre-wrap;
    line-height: 1.5;
}
.anim-wb-list-steps {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
    background: rgba(201,168,76,0.10);
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 4px solid var(--gold, #c9a84c);
}
.anim-wb-list-steps { white-space: pre-wrap; }
.anim-wb-definition {
    border-left: 4px solid var(--gold, #c9a84c);
    padding-left: 14px;
    font-style: normal;
    background: rgba(201,168,76,0.08);
    padding: 12px 14px;
    border-radius: 4px;
    margin-top: 12px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.18rem;
}
.anim-wb-framework {
    border-left: 4px solid #137333;
    background: rgba(19,115,51,0.10);
    padding: 12px 14px;
    border-radius: 4px;
    margin-top: 12px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.18rem;
    white-space: pre-wrap;
}
.anim-wb-mistake {
    color: #b91c1c;
    background: rgba(185,28,28,0.08);
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 12px;
    border-left: 4px solid #b91c1c;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.18rem;
    white-space: pre-wrap;
}
.anim-wb-action {
    color: #0a4d22;
    background: rgba(19,115,51,0.10);
    padding: 12px 14px;
    border-radius: 4px;
    margin-top: 12px;
    border: 2px solid rgba(19,115,51,0.4);
    font-family: 'Patrick Hand', cursive;
    font-size: 1.18rem;
    white-space: pre-wrap;
}

.anim-wb-loading {
    color: #5a341a;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    padding: 12px 0;
}

.anim-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 16px;
    background: #14110d;
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 10px;
}
.anim-speed-group {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}
.anim-speed-btn {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.35);
    color: var(--gold, #c9a84c);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.anim-speed-btn:hover { background: rgba(201,168,76,0.08); }
.anim-speed-btn-active {
    background: rgba(201,168,76,0.20);
    border-color: var(--gold, #c9a84c);
    color: #1a1a2e;
}

/* Dark-context variant for the speed group inside the animated and
   teleprompter players (dark .anim-controls background). Uses gold-light
   text so the buttons remain readable on the dark surface. */
.anim-controls .anim-speed-btn {
    color: var(--gold-light, #e8d48b);
}
.anim-controls .anim-speed-btn-active { color: #fff; }
.anim-express-btn {
    background: transparent;
    border: 1px dashed rgba(201,168,76,0.25);
    color: rgba(232,212,139,0.4);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: not-allowed;
    margin-left: auto;
}

.anim-rail {
    display: flex;
    gap: 4px;
    padding: 6px 10px;
    margin-top: 10px;
    background: #14110d;
    border-radius: 6px;
    overflow-x: auto;
}
.anim-rail-step {
    width: 18px; height: 6px;
    background: rgba(201,168,76,0.18);
    border-radius: 3px;
    flex: 0 0 auto;
}
.anim-rail-step-active {
    background: var(--gold, #c9a84c);
}

/* Teleprompter stage — reuses anim-wb-* styles with the character column collapsed. */
.tp-stage {
    display: block;
    max-width: 920px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a1410 0%, #2a1f1a 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.25);
}
.tp-stage .anim-character { display: none; }
.tp-stage .anim-wb-frame {
    min-height: 480px;
    max-height: 600px;
    overflow-y: auto;
}
@media (max-width: 720px) {
    .tp-stage { max-width: 100%; }
}

@media (max-width: 720px) {
    .anim-stage {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        min-height: 0;
    }
    .anim-character { min-height: 320px; padding: 12px; }
    .anim-character svg { max-height: 320px; }
    .anim-whiteboard { min-height: 380px; max-height: 60vh; }
    .anim-wb-title { font-size: 1.3rem; }
    .anim-wb-narration { font-size: 1.05rem; }
    .anim-controls { flex-wrap: wrap; }
}

@media (max-width: 500px) {
    .rf-row { grid-template-columns: 1fr; }
    .refund-modal { padding: 20px 16px; }
}

/* /pricing tier grid */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin: 24px 0 8px;
}

.tier-card-featured-eyebrow {
    background: rgba(16, 185, 129, 0.15);
    color: #4ade80;
}

.tier-cta {
    font-weight: 600;
    letter-spacing: 0.2px;
}

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

@media (max-width: 768px) {
    .tier-grid { grid-template-columns: 1fr; }
}

/* ============================================
   /learn SPA route — two-column player layout
   + upsell gate card (parity with the in-page
   purchase gate on distressed-leads.html).
   ============================================ */
.learn-player-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
}
.learn-player-left > .lesson-description { margin-bottom: 24px; }
.learn-player-left > .lesson-transcript { margin-bottom: 24px; }
.learn-player-left > .lesson-complete-section { margin-top: 0; }
@media (max-width: 900px) {
    .learn-player-grid { grid-template-columns: 1fr; }
}

.learn-gate {
    background: linear-gradient(135deg, #0d0d0d, #111);
    border: 1px solid var(--border2, rgba(201,168,76,0.2));
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 720px;
    margin: 0 auto 80px;
    text-align: center;
}
.learn-gate h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.learn-gate > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}
.learn-includes-list {
    list-style: none;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 32px;
    padding: 0;
}
.learn-includes-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.learn-includes-list li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.learn-gate-note {
    font-size: 0.78rem;
    color: var(--text-dim, #8b8b8b);
    margin-top: 12px;
}
@media (max-width: 600px) {
    .learn-includes-list { grid-template-columns: 1fr; }
    .learn-gate { padding: 32px 20px; }
}

/* Student dashboard "Your progress" panel — thin cross-track bars.
   Reuses the existing dark-card + gold palette used by .track-card and
   .lp-track-progress-bar so the new panel sits next to the per-tier
   cards without introducing a fresh token. */
.progress-bar-shell {
    width: 100%;
    height: 6px;
    background: var(--bg-accent);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--gold);
    transition: width 200ms ease;
}
.progress-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}
