/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #07070d;
    --bg-card: #0e0e18;
    --surface: #111119;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(108, 92, 231, 0.35);
    --text: #eaeaf0;
    --text-secondary: #b0b0c4;
    --text-muted: #72728a;
    --accent: #7c6cf0;
    --accent-light: #a99ff5;
    --accent-cyan: #38d9c8;
    --gradient: linear-gradient(135deg, #7c6cf0, #38d9c8);
    --gradient-wide: linear-gradient(135deg, #7c6cf0, #38d9c8, #7c6cf0);
    --gradient-btn: linear-gradient(135deg, #7c6cf0 0%, #9b8df5 100%);
    --shadow-accent: 0 0 60px rgba(124, 108, 240, 0.12);
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 4px 40px rgba(124, 108, 240, 0.25);
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1120px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    color: var(--text);
    line-height: 1.2;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--gradient-btn);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    text-align: center;
    letter-spacing: 0.01em;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 44px;
    font-size: 1.05rem;
    letter-spacing: 0.015em;
}

.btn-full {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 2px 20px rgba(124, 108, 240, 0.15);
}

.btn-glow:hover {
    box-shadow: 0 3px 30px rgba(124, 108, 240, 0.25);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
    background: rgba(7, 7, 13, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.25s ease;
}

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

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

.nav-cta {
    margin-left: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 200px 0 140px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
}

.hero-glow--1 {
    top: -200px;
    left: 50%;
    transform: translateX(-60%);
    width: 600px;
    height: 400px;
    background: rgba(124, 108, 240, 0.05);
}

.hero-glow--2 {
    top: -100px;
    left: 50%;
    transform: translateX(-30%);
    width: 400px;
    height: 300px;
    background: rgba(56, 217, 200, 0.03);
}

.hero-glow--3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 350px;
    background: rgba(124, 108, 240, 0.04);
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(124, 108, 240, 0.08);
    border: 1px solid rgba(124, 108, 240, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-wide);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease infinite;
}

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

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 44px;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ===== PROOF BAR ===== */
.proof-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 44px 0;
}

.proof-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.proof-number {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.proof-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== COURSES ===== */
.courses {
    padding: 110px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px 32px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent);
}

.course-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 108, 240, 0.08);
    border: 1px solid rgba(124, 108, 240, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.course-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
}

.course-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 4px 12px;
    background: rgba(124, 108, 240, 0.1);
    border: 1px solid rgba(124, 108, 240, 0.2);
    color: var(--accent-light);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 50px;
}

.course-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.course-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 22px;
    line-height: 1.65;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}

.course-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.8rem;
}

/* ===== PRICING ===== */
.pricing {
    padding: 110px 0;
    background: var(--surface);
}

.pricing-card {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 52px 44px;
    text-align: center;
    box-shadow: var(--shadow-accent), var(--shadow-card);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 26px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.pricing-old {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-current {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "\2713";
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pricing-note {
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 110px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    transition: transform 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.testimonial-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.star {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: #e8b427;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.testimonial-card blockquote {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq {
    padding: 110px 0;
    background: var(--surface);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.25s ease;
    line-height: 1.5;
}

.faq-question:hover {
    color: var(--accent-light);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--accent-light);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    top: 50%;
    left: 2px;
    right: 2px;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    left: 50%;
    top: 2px;
    bottom: 2px;
    width: 2px;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 26px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ===== FINAL CTA ===== */
.final-cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.final-cta-content {
    position: relative;
}

.final-cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.final-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
    background: var(--surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    text-align: center;
}

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

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 7, 13, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 28px;
        gap: 22px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open a::after {
        display: none;
    }

    .hero {
        padding: 150px 0 100px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 36px;
    }

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

    .proof-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        text-align: center;
    }

    .proof-divider {
        display: none;
    }

    .courses,
    .pricing,
    .testimonials,
    .faq,
    .final-cta {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pricing-card {
        padding: 44px 28px;
    }

    .footer-content {
        flex-direction: column;
        gap: 36px;
    }

    .footer-links {
        gap: 36px;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 20px 22px;
    }

    .faq-answer p {
        padding: 0 22px 20px;
        font-size: 0.88rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .proof-number {
        font-size: 1.5rem;
    }

    .pricing-current {
        font-size: 2.8rem;
    }
}

/* ===== AUTH PAGES ===== */
.auth-body {
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 28px 60px;
    position: relative;
    overflow: hidden;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
}

.auth-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 108, 240, 0.12);
}

.auth-error {
    display: none;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 10px;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.auth-footer-text {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--accent-light);
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer-text a:hover {
    color: var(--text);
}

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

.nav-link-auth {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-link-auth:hover {
    color: var(--text);
}

.nav-user {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== PROFILE DROPDOWN ===== */
.nav-profile {
    position: relative;
}

.nav-profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 14px 5px 5px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-profile-toggle:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.nav-profile-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-profile.open .nav-profile-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.nav-profile.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-header {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.nav-dropdown-header .dropdown-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.nav-dropdown-header .dropdown-email {
    font-size: 0.76rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.nav-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.nav-dropdown-item.logout-item {
    color: #e05555;
}

.nav-dropdown-item.logout-item:hover {
    background: rgba(224, 85, 85, 0.08);
    color: #ff6b6b;
}

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

.btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--text);
    background: transparent;
    box-shadow: none;
    filter: none;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 36px 24px;
    }

    .nav-auth-links {
        gap: 10px;
    }

    .nav-user {
        display: none;
    }

    .nav-profile-name {
        display: none;
    }

    .nav-profile-toggle {
        padding: 4px;
        border-radius: 50%;
    }

    .nav-profile-chevron {
        display: none;
    }

    .nav-dropdown {
        right: -8px;
        width: 220px;
    }
}

/* ===== DASHBOARD ===== */
.dashboard-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

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

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-active {
    background: rgba(56, 217, 200, 0.1);
    border: 1px solid rgba(56, 217, 200, 0.25);
    color: var(--accent-cyan);
}

.status-locked {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.locked-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(124, 108, 240, 0.06), rgba(56, 217, 200, 0.04));
    border: 1px solid rgba(124, 108, 240, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-bottom: 48px;
    text-align: center;
    overflow: hidden;
}

.locked-banner-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(124, 108, 240, 0.15), transparent 70%);
    pointer-events: none;
}

.locked-banner-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 108, 240, 0.12), rgba(56, 217, 200, 0.08));
    border: 1px solid rgba(124, 108, 240, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent-light);
}

.locked-banner h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.locked-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.locked-banner-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.locked-banner-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.locked-banner-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dash-course-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 24px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.dash-course-card:not(.locked):hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent);
}

.dash-course-card .course-icon-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
}

.dash-course-card .course-icon-wrap svg {
    width: 22px;
    height: 22px;
    color: var(--accent-light);
}

.dash-course-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.dash-course-card > p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.lesson-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-outline-lock {
    background: transparent;
    border: 1px solid rgba(124, 108, 240, 0.3);
    color: var(--accent-light);
    font-size: 0.78rem;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-lock:hover {
    background: rgba(124, 108, 240, 0.1);
    border-color: rgba(124, 108, 240, 0.5);
}

.dash-course-card.locked {
    opacity: 1;
    pointer-events: auto;
    cursor: default;
}

.dash-course-card.locked:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 108, 240, 0.25);
}

.dash-course-card.locked h3 {
    color: var(--text-secondary);
}

.locked-overlay-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, rgba(124, 108, 240, 0.12), rgba(56, 217, 200, 0.08));
    border: 1px solid rgba(124, 108, 240, 0.25);
    color: var(--accent-light);
}

.status-free {
    background: rgba(124, 108, 240, 0.08);
    border: 1px solid rgba(124, 108, 240, 0.2);
    color: var(--accent-light);
}

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

@media (max-width: 768px) {
    .dashboard-page {
        padding: 100px 0 40px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .locked-banner {
        padding: 32px 20px;
    }

    .locked-banner h3 {
        font-size: 1.2rem;
    }

    .locked-banner-features {
        gap: 8px 16px;
    }
}

/* ===== COURSE PAGE ===== */
.course-page {
    display: flex;
    min-height: 100vh;
    padding-top: 64px;
}

.course-sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 108, 240, 0.08);
    border: 1px solid rgba(124, 108, 240, 0.15);
    border-radius: 10px;
    margin-bottom: 14px;
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-light);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.lesson-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.lesson-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

.lesson-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.lesson-link.active {
    background: rgba(124, 108, 240, 0.1);
    color: var(--accent-light);
}

.lesson-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--text-muted);
}

.lesson-link.active .lesson-number {
    background: rgba(124, 108, 240, 0.2);
    color: var(--accent-light);
}

.lesson-title {
    flex: 1;
}

.sidebar-back {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: block;
}

.sidebar-back:hover {
    color: var(--text);
}

.sidebar-toggle {
    display: none;
}

.course-content {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
}

.course-content-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

/* Course content typography */
.course-content-inner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.course-content-inner h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
}

.course-content-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.course-content-inner ul,
.course-content-inner ol {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
    list-style: disc;
}

.course-content-inner ol {
    list-style: decimal;
}

.course-content-inner li {
    margin-bottom: 6px;
}

.course-content-inner strong {
    color: var(--text);
    font-weight: 600;
}

.course-content-inner em {
    color: var(--accent-light);
    font-style: italic;
    background: rgba(124, 108, 240, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .course-sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        z-index: 900;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }

    .course-sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 24px;
        left: 24px;
        z-index: 800;
        padding: 12px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 50px;
        color: var(--text);
        font-family: inherit;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: var(--shadow-card);
        transition: border-color 0.2s ease;
    }

    .sidebar-toggle:hover {
        border-color: var(--border-hover);
    }

    .course-content-inner {
        padding: 32px 24px 80px;
    }
}

/* ===== CHATBOT ===== */
.chat-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 950;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-btn);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(124, 108, 240, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(124, 108, 240, 0.45);
}

.chat-toggle svg {
    width: 24px;
    height: 24px;
    color: #fff;
    transition: transform 0.3s ease;
}

.chat-toggle.open svg {
    transform: rotate(90deg);
}

.chat-toggle-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-btn);
    opacity: 0;
    animation: chatPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes chatPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.15); }
}

.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 949;
    width: 400px;
    max-height: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.chat-header-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.chat-header-info span {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 200px;
    max-height: 340px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.chat-msg-user {
    align-self: flex-end;
    background: var(--gradient-btn);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg-bot {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-msg-bot strong {
    color: var(--text);
    font-weight: 600;
}

.chat-msg-bot ul,
.chat-msg-bot ol {
    padding-left: 18px;
    margin: 8px 0;
}

.chat-msg-bot li {
    margin-bottom: 4px;
}

.chat-msg-bot code {
    background: rgba(124, 108, 240, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--accent-light);
}

.chat-msg-bot h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.chat-typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.chat-typing-dot {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 14px;
    flex-shrink: 0;
}

.chat-suggestion {
    padding: 7px 14px;
    background: rgba(124, 108, 240, 0.08);
    border: 1px solid rgba(124, 108, 240, 0.18);
    border-radius: 50px;
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.chat-suggestion:hover {
    background: rgba(124, 108, 240, 0.15);
    border-color: rgba(124, 108, 240, 0.3);
}

.chat-input-bar {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-btn);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}

.chat-send:hover {
    filter: brightness(1.1);
}

.chat-send svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

@media (max-width: 768px) {
    .chat-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .chat-messages {
        max-height: none;
        flex: 1;
    }

    .chat-toggle {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 900px) {
    .chat-toggle {
        bottom: 20px;
        right: 20px;
    }

    .sidebar-toggle {
        bottom: 20px;
        left: 20px;
    }
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-content ul {
    padding-left: 24px;
    list-style: disc;
}

.legal-back {
    display: block;
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.legal-back:hover {
    color: var(--text);
}

/* ===== 404 PAGE ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-content {
    position: relative;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.error-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* ===== PAGE TRANSITIONS ===== */

/* ===== SKELETON LOADERS ===== */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 24px;
    position: relative;
    overflow: hidden;
}

.skeleton-line {
    height: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-line--sm {
    width: 40%;
    height: 10px;
}

.skeleton-line--md {
    width: 70%;
}

.skeleton-line--icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: skeletonShimmer 1.5s ease infinite;
}

@keyframes skeletonShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== PROGRESS BARS ===== */
.progress-bar-wrap {
    margin-bottom: 16px;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
    min-width: 0;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.lesson-complete-bar {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.lesson-complete-btn.completed {
    background: rgba(56, 217, 200, 0.1);
    border: 1px solid rgba(56, 217, 200, 0.25);
    color: var(--accent-cyan);
    cursor: default;
    box-shadow: none;
}

.lesson-complete-btn.completed:hover {
    transform: none;
    filter: none;
    box-shadow: none;
}

.lesson-number.completed {
    background: rgba(56, 217, 200, 0.15);
    color: var(--accent-cyan);
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.overall-progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.overall-progress .progress-bar-track {
    flex: 1;
}

.overall-progress .progress-text {
    margin-top: 0;
    white-space: nowrap;
}

/* ===== CHECKLISTS ===== */
.lesson-checklist {
    margin-top: 40px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.lesson-checklist h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 0;
}

.checklist-progress-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.checklist-item:hover {
    color: var(--text);
}

.checklist-item.checked .checklist-text {
    text-decoration: line-through;
    opacity: 0.5;
}

.checklist-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checklist-item.checked .checklist-check {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.checklist-item.checked .checklist-check::after {
    content: "\2713";
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.checklist-item input {
    display: none;
}

/* ===== DASHBOARD SEARCH ===== */
.dashboard-search {
    position: relative;
    margin-bottom: 32px;
}

.dashboard-search input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-search input::placeholder {
    color: var(--text-muted);
}

.dashboard-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 108, 240, 0.12);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-match-hint {
    font-size: 0.78rem;
    color: var(--accent-light);
    margin-top: 4px;
    padding: 2px 0;
}

.no-results-message {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== PROFILE PAGE ===== */
.profile-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.profile-container {
    max-width: 640px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 32px;
}

.profile-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

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

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.profile-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.profile-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.profile-field-static {
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

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

.profile-stat:last-child {
    border-bottom: none;
}

.profile-stat-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.profile-success {
    display: none;
    padding: 12px 16px;
    background: rgba(56, 217, 200, 0.1);
    border: 1px solid rgba(56, 217, 200, 0.25);
    border-radius: 10px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* ===== QUIZ ===== */
.quiz-container {
    max-width: 640px;
}

.quiz-header {
    margin-bottom: 32px;
}

.quiz-progress {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quiz-container h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.quiz-option {
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.quiz-option:hover {
    border-color: var(--border-hover);
    background: rgba(124, 108, 240, 0.05);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: rgba(124, 108, 240, 0.1);
    color: var(--text);
}

.quiz-option.correct {
    border-color: var(--accent-cyan);
    background: rgba(56, 217, 200, 0.1);
    color: var(--accent-cyan);
}

.quiz-option.wrong {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.quiz-option:disabled {
    cursor: default;
}

.quiz-nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.quiz-results {
    text-align: center;
    padding: 60px 0;
}

.quiz-results h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.quiz-score {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    line-height: 1;
}

.quiz-results p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.quiz-trigger {
    margin-top: 48px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    text-align: center;
}

.quiz-trigger h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
}

.quiz-trigger p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ===== CERTIFICATES ===== */
.certificate-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.certificate-card {
    background: #0a0a14;
    border: 2px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.cert-border {
    border: 1px solid rgba(124, 108, 240, 0.2);
    border-radius: 16px;
    padding: 60px 48px;
    text-align: center;
    background: linear-gradient(180deg, rgba(124, 108, 240, 0.03) 0%, transparent 100%);
}

.cert-logo {
    font-size: 1.3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
}

.cert-border h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.cert-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cert-name {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.cert-course {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.cert-score {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 32px;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cert-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    font-family: monospace;
}

.cert-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.completed-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: rgba(56, 217, 200, 0.1);
    border: 1px solid rgba(56, 217, 200, 0.25);
    color: var(--accent-cyan);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 50px;
}

.dash-course-card.course-completed {
    border-color: rgba(56, 217, 200, 0.3);
}

@media print {
    body * { visibility: hidden; }
    .certificate-card, .certificate-card * { visibility: visible; }
    .certificate-card { position: absolute; left: 0; top: 0; width: 100%; border-color: #333; }
    .cert-actions, .navbar { display: none !important; }
    body { background: #fff; }
}

/* ===== RESOURCES ===== */
.lesson-resources {
    margin-top: 32px;
}

.lesson-resources h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: border-color 0.2s ease, color 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.resource-link:hover {
    border-color: var(--accent);
    color: var(--text);
}

.resource-link svg {
    flex-shrink: 0;
    color: var(--accent-light);
}

.resource-page {
    padding: 40px 0;
    min-height: 100vh;
}

.resource-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.resource-header .logo {
    display: block;
    margin-bottom: 16px;
}

.resource-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.resource-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
}

.resource-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--accent-light);
}

.resource-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.resource-content ul,
.resource-content ol {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    padding-left: 24px;
    list-style: disc;
    margin-bottom: 16px;
}

.resource-content ol {
    list-style: decimal;
}

.resource-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.resource-content th,
.resource-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.resource-content th {
    color: var(--text);
    font-weight: 600;
    background: var(--surface);
}

.resource-content td {
    color: var(--text-secondary);
}

.resource-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ===== REFERRAL ===== */
.referral-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.referral-link-box input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.referral-stats {
    display: flex;
    gap: 24px;
}

.referral-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.referral-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-stat .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.copy-success {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    margin-top: 6px;
}

/* ===== ONBOARDING ===== */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.onboarding-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 440px;
    width: 90%;
    text-align: center;
}

.onboarding-modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.onboarding-modal p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.onboarding-step-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 16px;
}

.onboarding-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.onboarding-highlight {
    box-shadow: 0 0 0 4px rgba(124, 108, 240, 0.6), 0 0 30px rgba(124, 108, 240, 0.4), 0 0 60px rgba(124, 108, 240, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    position: relative;
    z-index: 2001;
}

/* ===== LIVE COUNTER ===== */
.live-counter-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
    .profile-section {
        padding: 24px 20px;
    }

    .cert-border {
        padding: 40px 24px;
    }

    .cert-name {
        font-size: 1.5rem;
    }

    .cert-border h1 {
        font-size: 1.4rem;
    }

    .cert-actions {
        flex-direction: column;
        align-items: center;
    }

    .onboarding-modal {
        padding: 28px 20px;
    }

    .resource-actions {
        flex-direction: column;
    }

    .referral-link-box {
        flex-direction: column;
    }

    .quiz-score {
        font-size: 3rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .subscription-plan {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== FREE PREVIEW ===== */
.locked-btns {
    display: flex;
    gap: 8px;
}

.btn-preview {
    background: transparent;
    border: 1px solid rgba(56, 217, 200, 0.3);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-preview:hover {
    background: rgba(56, 217, 200, 0.08);
    border-color: rgba(56, 217, 200, 0.5);
}

.lesson-locked {
    opacity: 0.5;
}

.lesson-locked .lesson-number {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-free-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(56, 217, 200, 0.12);
    color: var(--accent-cyan);
    letter-spacing: 0.04em;
    margin-left: 6px;
    vertical-align: middle;
}

.preview-upgrade {
    text-align: center;
    padding: 80px 32px;
}

.preview-upgrade-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(124, 108, 240, 0.08);
    border: 1px solid rgba(124, 108, 240, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: var(--accent-light);
}

.preview-upgrade h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.preview-upgrade p {
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.preview-upgrade-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 14px;
}

.preview-banner {
    margin-top: 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124, 108, 240, 0.08), rgba(56, 217, 200, 0.05));
    border: 1px solid rgba(124, 108, 240, 0.2);
    padding: 20px 24px;
}

.preview-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.preview-banner-inner span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== EXIT INTENT POPUP ===== */
.exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.exit-overlay.visible .exit-popup {
    transform: translateY(0) scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 1.1rem;
    line-height: 1;
}

.exit-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.exit-popup h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

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

.exit-popup .btn {
    width: 100%;
    margin-bottom: 12px;
}

.exit-popup-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 8px;
}

.exit-popup-skip:hover {
    color: var(--text-secondary);
}

/* ===== SOCIAL PROOF TOAST ===== */
.proof-toast {
    position: fixed;
    bottom: 28px;
    left: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 340px;
}

.proof-toast.visible {
    transform: translateX(0);
}

.proof-toast-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
}

.proof-toast-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.proof-toast-text strong {
    color: var(--text);
    font-weight: 600;
}

.proof-toast-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

/* ===== STICKY BUY BAR ===== */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 7, 13, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-bar-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-bar-price {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sticky-bar-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.sticky-bar-old {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .proof-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .sticky-bar-label, .sticky-bar-old {
        display: none;
    }

    .exit-popup {
        padding: 36px 24px;
    }

    .preview-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .locked-btns {
        flex-direction: column;
    }
}

/* ===== PRO BADGE (nav) ===== */
.nav-pro-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}

/* ===== MEMBER BADGE ===== */
.hero-badge--member {
    background: linear-gradient(135deg, rgba(56, 217, 200, 0.15), rgba(124, 108, 240, 0.15));
    border-color: rgba(56, 217, 200, 0.35);
    color: var(--accent-cyan);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 28px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.success-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(56, 217, 200, 0.1);
    border: 2px solid rgba(56, 217, 200, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--accent-cyan);
}

.success-page h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.success-redirect {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* ===== SUBSCRIPTION STATUS (Profile) ===== */
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.subscription-plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.subscription-detail {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

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