/* ===================================
   CSS Variables and Reset
   Contemporary & 40+ Friendly Design
   =================================== */

:root {
    /* Base neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #525252;
    --gray-600: #525252;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Black & White accent colors */
    --accent: #111827;
    --accent-hover: #000000;
    --accent-light: #f3f4f6;

    /* Feedback colors */
    --success: #059669;
    --error: #dc2626;

    /* Legacy color mappings for compatibility */
    --color-primary: var(--accent);
    --color-primary-dark: var(--accent-hover);
    --color-accent: var(--success);
    --color-text: var(--gray-900);
    --color-text-muted: var(--gray-600);
    --color-bg: var(--white);
    --color-bg-light: var(--gray-50);
    --color-border: var(--gray-200);

    /* Typography */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows - subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
    /* Increased from 16px for better readability */
}

body {
    font-family: var(--font-family);
    color: var(--gray-900);
    line-height: 1.7;
    overflow-x: hidden;
    /* Increased for better readability */
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    /* Slightly increased for readability */
}

/* Paragraphs and subtitles use gray text */
p {
    color: var(--gray-600);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 10px;
}

/* ===================================
   Container and Grid
   
   Standard Breakpoints:
   - 968px: Tablet/Small Desktop (Grids collapse)
   - 768px: Tablet Portrait (Layout adjustments)
   - 640px: Mobile (Smallest screens)
   =================================== */

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

@media (max-width: 968px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* ===================================
   Header and Navigation
   =================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

@media (max-width: 640px) {
    .header .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    position: relative;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

/* Nav Links Pill Container */
.nav-links-pill {
    display: flex;
    gap: var(--space-lg);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.5rem;
}

.nav-links-pill a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
}

.nav-links-pill a:hover {
    color: var(--gray-900);
}

.nav-links-pill a.active {
    color: var(--gray-900);
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-links-pill a:focus {
    outline: none;
}

/* Locked Nav Link (for Free tier) */
.nav-link-locked {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: not-allowed;
    user-select: none;
}

/* Nav Text Link (for Login) */
.nav-text-link {
    color: var(--gray-900);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-900);
    border-radius: var(--radius-full);
    transition: background 0.2s, color 0.2s;
}

.nav-text-link:hover {
    background: var(--gray-900);
    color: white;
}

.navbar-right {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.navbar-right .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    padding: var(--space-sm);
    color: var(--gray-900);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 200;
    padding: var(--space-xl);
    padding-top: calc(var(--space-xl) + 60px);
    padding-bottom: calc(var(--space-xl) + 44px);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--gray-900);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-logo {
    position: absolute;
    top: var(--space-md);
    left: var(--space-lg);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    line-height: 44px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    padding: var(--space-md) var(--space-sm);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-links a.active {
    color: var(--accent);
    background-color: var(--accent-light);
    border-radius: var(--radius-md);
}

.mobile-auth-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: auto;
}

@media (max-width: 968px) {

    .nav-links,
    .nav-links-pill {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    /* nav-links is already hidden at 968px */
}

/* ===================================
   Buttons - Clean & Accessible
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    border: 1.5px solid var(--gray-300);
    color: var(--accent);
    background: white;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--accent);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: white;
    color: var(--gray-900);
    border: 1.5px solid var(--gray-900);
}

.btn-outline:hover {
    background: var(--gray-900);
    color: white;
}

.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 0 2rem;
    /* Button height scales - increased minimum */
    height: clamp(46px, 6vh, 56px);
    font-size: clamp(1rem, 2vh, 1.15rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-block {
    width: 100%;
}

/* ===================================
   Hero Section - Simplified
   =================================== */

.hero-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--white);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-content {
    /* No animations */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
}

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

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.title-highlight {
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.3em;
    background: rgba(17, 24, 39, 0.1);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-cta-group .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    height: auto;
}

.hero-cta-group .btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.hero-cta-group .btn-lg:hover .btn-icon {
    transform: translateX(3px);
}

/* Hero Image/Visual */
.hero-image {
    position: relative;
}

.hero-visual {
    position: relative;
    padding: var(--space-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e8f5e9 100%);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

/* Decorative background elements */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.02) 100%);
    border-radius: 50%;
    z-index: 0;
}

.visual-card {
    position: relative;
    z-index: 1;
    background: white;
    padding: var(--space-lg);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.visual-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: rgba(5, 150, 105, 0.2);
}

.visual-card:nth-child(1) {
    transform: translateX(0);
}

.visual-card:nth-child(2) {
    transform: translateX(12px);
}

.visual-card:nth-child(3) {
    transform: translateX(24px);
}

.visual-card:nth-child(1):hover {
    transform: translateX(0) translateY(-6px) scale(1.02);
}

.visual-card:nth-child(2):hover {
    transform: translateX(12px) translateY(-6px) scale(1.02);
}

.visual-card:nth-child(3):hover {
    transform: translateX(24px) translateY(-6px) scale(1.02);
}

.visual-card:last-child {
    margin-bottom: 0;
}

.visual-card .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 14px;
    box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.5);
}

.visual-card .icon-wrapper svg {
    width: 26px;
    height: 26px;
    stroke: white;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.visual-card:hover .icon-wrapper svg {
    transform: scale(1.1);
}

.visual-card-content {
    flex: 1;
    padding-top: 2px;
}

.visual-card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.visual-card-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 968px) {
    .hero-section {
        min-height: auto;
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: var(--space-lg) 0 var(--space-xl);
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }

    .hero-cta-group {
        width: 100%;
    }

    .hero-cta-group .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        padding: var(--space-lg);
    }

    .hero-visual::before,
    .hero-visual::after {
        display: none;
    }

    .visual-card {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .visual-card:nth-child(1),
    .visual-card:nth-child(2),
    .visual-card:nth-child(3) {
        transform: translateX(0);
    }

    .visual-card:nth-child(1):hover,
    .visual-card:nth-child(2):hover,
    .visual-card:nth-child(3):hover {
        transform: translateY(-4px) scale(1.01);
    }

    .visual-card .icon-wrapper {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .visual-card .icon-wrapper svg {
        width: 22px;
        height: 22px;
    }

    .visual-card-content h3 {
        font-size: 1rem;
    }

    .visual-card-content p {
        font-size: 0.875rem;
    }
}

/* ===================================
   Features Section
   =================================== */

.features-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    /* No hover animations - stable and predictable */
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gray-900);
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .features-section {
        padding: var(--space-3xl) 0;
    }

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

@media (max-width: 640px) {
    .features-section {
        padding: var(--space-2xl) 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .feature-card {
        padding: var(--space-lg);
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    align-items: flex-start;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.step-text p {
    color: var(--gray-600);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .how-it-works {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 640px) {
    .how-it-works {
        padding: var(--space-2xl) 0;
    }

    .step-item {
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .step-text h3 {
        font-size: 1.1rem;
    }
}

/* ===================================
   Achievements Section
   =================================== */

.achievements-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.achievement-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.achievement-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--gray-700);
}

.achievement-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.achievement-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

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

@media (max-width: 640px) {
    .dashboard-card {
        padding: var(--space-lg) var(--space-md);
    }

    .dashboard-grid .achievements-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .achievements-section {
        padding: var(--space-3xl) 0;
    }

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

    .achievement-card {
        padding: var(--space-lg);
    }
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials-section {
    padding: var(--space-4xl) 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--gray-100);
}

.testimonial-content {
    margin-bottom: var(--space-lg);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
    color: #f59e0b;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.author-role {
    color: var(--gray-500);
    font-size: 0.85rem;
}

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

@media (max-width: 640px) {
    .testimonials-section {
        padding: var(--space-3xl) 0;
    }

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

    .testimonial-card {
        padding: var(--space-lg);
    }
}

/* ===================================
   FAQ Section
   =================================== */

.faq-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: white;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    background: white;
    transition: background-color 0.2s;
    min-height: 64px;
    /* Larger touch target */
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question:focus {
    outline: none;
}

.faq-icon {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--gray-600);
    line-height: 1.8;
}

@media (max-width: 968px) {
    .faq-section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 640px) {
    .faq-section {
        padding: var(--space-2xl) 0;
    }

    .faq-question {
        padding: var(--space-md);
        font-size: 1rem;
        min-height: 56px;
    }

    .faq-answer p {
        padding: 0 var(--space-md) var(--space-md);
    }
}

/* ===================================
   FAQ Page Styles
   =================================== */

.faq-page-section {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: var(--white);
    min-height: calc(100vh - 80px);
}

.faq-page-section .section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.faq-page-section .section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.faq-page-section .section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.faq-categories {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: var(--space-2xl);
}

.faq-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-200);
}

.faq-cta {
    text-align: center;
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.faq-cta p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.faq-cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .faq-page-section .section-header h1 {
        font-size: 2rem;
    }

    .faq-cta-buttons {
        flex-direction: column;
    }

    .faq-cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .faq-page-section {
        padding: var(--space-2xl) 0 var(--space-3xl);
    }

    .faq-page-section .section-header h1 {
        font-size: 1.75rem;
    }

    .faq-category-title {
        font-size: 1.125rem;
    }
}

/* ===================================
   Contact Us Page
   =================================== */

.contact-page-section {
    padding: var(--space-xl) 0 var(--space-2xl);
    background: var(--white);
    min-height: calc(100vh - 80px);
}

.contact-page-section .section-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.contact-page-section .section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-page-section .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.contact-page-section .section-header p {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form .form-group {
    margin-bottom: var(--space-md);
}

.contact-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

.contact-form .form-control {
    width: 100%;
    height: 40px;
    padding: 0 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23525252'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form textarea.form-control {
    height: auto;
    padding: 0.6rem 0.875rem;
    resize: vertical;
    min-height: 90px;
}

.contact-form .form-actions {
    padding-top: 0.25rem;
}

.contact-form .form-actions .btn {
    width: 100%;
}

.contact-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.contact-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-tab:hover {
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.contact-tab.active {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
}

.contact-tab-content {
    display: none;
}

.contact-tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .contact-page-section .section-header h1 {
        font-size: 1.75rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: var(--space-md);
    }
}

@media (max-width: 640px) {
    .contact-page-section {
        padding: var(--space-lg) 0 var(--space-xl);
    }

    .contact-page-section .section-header h1 {
        font-size: 1.5rem;
    }
}

/* ===================================
   Final CTA Section
   =================================== */

.final-cta {
    padding: var(--space-4xl) 0;
    background: var(--white);
    text-align: center;
}

.final-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .final-cta {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 640px) {
    .final-cta {
        padding: var(--space-2xl) 0;
    }

    .final-cta-content {
        max-width: 100%;
    }

    .final-cta h2 {
        font-size: 1.75rem;
    }

    .final-cta p {
        font-size: 1rem;
    }
}

/* ===================================
   Footer - Clean & Simple
   =================================== */

.footer {
    background: #000000;
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-lg);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-column ul li {
        margin-bottom: var(--space-md);
    }

    .footer-column a {
        font-size: 0.95rem;
        display: inline-block;
        padding: 4px 0;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* ===================================
   Cookie Consent
   =================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    padding: var(--space-lg);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-content p {
    flex: 1;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Form Styles - Large & Accessible
   =================================== */

.form-group {
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
    /* Default fluid spacing */
}

.form-group label {
    display: block;
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    /* Default fluid font */
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--gray-900);
}

.form-control {
    width: 100%;
    height: clamp(42px, 5.5vh, 52px);
    /* Default fluid input height */
    padding: 0 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: clamp(0.95rem, 2vh, 1rem);
    transition: border-color 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-control::placeholder {
    color: var(--gray-600);
}

.form-text {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: clamp(0.9rem, 1.8vh, 1rem);
    min-height: auto;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===================================
   Toast Notifications
   =================================== */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 300px;
    max-width: 420px;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    animation: toast-slide-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.toast.toast-hiding {
    animation: toast-fade-out 0.3s ease forwards;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0 0.25rem;
    line-height: 1;
    color: inherit;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.toast-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.toast-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-fade-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 640px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: unset;
        max-width: unset;
    }
}

/* ===================================
   Links
   =================================== */

.link {
    color: var(--accent);
    font-weight: 500;
}

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

.link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===================================
   Utility Classes
   =================================== */

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

/* ===================================
   Reduced Motion (Accessibility)
   =================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   Lessons List Page
   =================================== */

.lessons-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
    min-height: calc(100vh - 200px);
}

.lessons-section .section-header {
    margin-bottom: var(--space-3xl);
}

.lessons-section .section-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.lesson-pill {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.lesson-pill:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.lesson-pill:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lesson-pill-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.lesson-logo {
    display: inline-block;
    object-fit: contain;
}

.lesson-icon-locked .lesson-logo {
    opacity: 0.4;
    filter: grayscale(1);
}

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

.lesson-pill-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.lesson-pill-meta {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.lesson-pill-check {
    flex-shrink: 0;
    margin-left: auto;
}

.lesson-pill.lesson-completed {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.lesson-pill.lesson-completed:hover {
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

/* Locked lesson styles */
.lesson-pill.lesson-locked {
    cursor: not-allowed;
    opacity: 0.6;
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.lesson-pill.lesson-locked:hover {
    border-color: var(--gray-200);
    box-shadow: none;
}

.lesson-pill.lesson-locked .lesson-pill-title {
    color: var(--gray-500);
}

.lesson-pill.lesson-locked .lesson-pill-meta {
    color: var(--gray-400);
}

.lesson-icon-locked {
    opacity: 0.7;
}

/* Day number badge for lessons */
.lesson-pill-day {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.lesson-pill {
    position: relative;
}

.lesson-pill.lesson-locked .lesson-pill-day {
    background: var(--gray-400);
}

.no-lessons {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-600);
    padding: var(--space-3xl);
}

@media (max-width: 968px) {
    .lessons-section {
        padding: var(--space-3xl) 0;
    }

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

@media (max-width: 640px) {
    .lessons-section {
        padding: var(--space-2xl) 0;
    }

    .lessons-section .section-header h1 {
        font-size: 1.75rem;
    }

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

    .lesson-pill {
        padding: var(--space-md);
        gap: var(--space-md);
        min-height: 64px;
    }

    .lesson-pill-icon {
        font-size: 1.75rem;
    }
}

/* ===================================
   Lesson Detail Page
   =================================== */

.lesson-detail-section {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: var(--white);
    min-height: calc(100vh - 200px);
}

.lesson-detail {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
    transition: color 0.2s;
}

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

.back-link:focus {
    outline: none;
}

.lesson-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.lesson-header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.lesson-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
}

.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-600);
    font-size: 0.95rem;
}

.meta-item svg {
    flex-shrink: 0;
}

.lesson-objective {
    background: var(--accent-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    color: var(--gray-900);
    line-height: 1.7;
}

.lesson-objective strong {
    color: var(--accent-hover);
}

/* Lesson Content Formatting */
.lesson-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-900);
}

.lesson-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent);
}

.lesson-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.lesson-content p {
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.lesson-content ul {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-lg);
    list-style-type: disc;
}

.lesson-content ul li {
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
    line-height: 1.7;
}

.lesson-content ul ul {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    list-style-type: circle;
}

/* Lesson Navigation */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.lesson-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    max-width: 280px;
}

.lesson-nav-link:hover {
    background: white;
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.lesson-nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

.lesson-nav-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.lesson-nav-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lesson-nav-title {
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-nav-prev {
    text-align: left;
}

.lesson-nav-next {
    text-align: right;
    flex-direction: row;
}

.lesson-nav-next .lesson-nav-content {
    align-items: flex-end;
}

.lesson-nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.lesson-nav-center:hover {
    color: var(--accent);
}

.lesson-nav-center svg {
    flex-shrink: 0;
}

.lesson-nav-placeholder {
    flex: 1;
    max-width: 280px;
}

@media (max-width: 768px) {
    .lesson-header-top {
        gap: var(--space-sm);
    }

    .lesson-header h1 {
        font-size: 1.35rem;
    }

    .lesson-icon {
        font-size: 2rem;
    }

    .lesson-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .lesson-content h2 {
        font-size: 1.3rem;
    }

    .lesson-content h3 {
        font-size: 1.1rem;
    }

    .lesson-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }

    .lesson-nav-link {
        max-width: 100%;
    }

    .lesson-nav-center {
        order: -1;
        justify-content: center;
        padding: var(--space-sm);
    }

    .lesson-nav-placeholder {
        display: none;
    }
}

@media (max-width: 640px) {
    .lesson-detail-section {
        padding: var(--space-2xl) 0;
    }

    .lesson-icon {
        font-size: 1.75rem;
    }

    .lesson-header h1 {
        font-size: 1.2rem;
    }

    .lesson-nav-title {
        white-space: normal;
        font-size: 0.9rem;
    }

    .lesson-nav-link {
        padding: var(--space-md);
    }

    .lesson-content ul {
        margin-left: var(--space-lg);
    }

    .lesson-continue-container {
        padding: var(--space-lg) 0 calc(var(--space-lg) + 20px);
    }
}

/* ===================================
   Lesson Pagination & Progress
   =================================== */

/* Fixed Progress Sidebar */
.lesson-progress-sidebar {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.progress-sidebar-content {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.progress-sidebar-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.progress-steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px 0;
}

.progress-step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Connecting line between steps */
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 34px;
    width: 2px;
    height: calc(100% - 16px);
    background: var(--gray-200);
    z-index: 1;
    transition: background 0.3s ease;
}

/* Completed step */
.progress-step.completed .progress-step-indicator {
    background: var(--accent);
    color: white;
}

.progress-step.completed:not(:last-child)::after {
    background: var(--accent);
}

/* Current/active step */
.progress-step.active .progress-step-indicator {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
}

/* Hide sidebar on smaller screens */
@media (max-width: 1200px) {
    .lesson-progress-sidebar {
        right: 12px;
    }

    .progress-sidebar-content {
        padding: 10px;
    }

    .progress-step-indicator {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

@media (max-width: 900px) {
    .lesson-progress-sidebar {
        display: none;
    }
}

/* Section visibility */
.lesson-content .section-chunk {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lesson-content .section-chunk.hidden {
    display: none;
}

.lesson-content .section-chunk.revealing {
    animation: fadeInUp 0.4s ease forwards;
}

/* Continue button - sticky at bottom */
.lesson-continue-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: var(--space-lg) 0;
    background: linear-gradient(to top, white 60%, rgba(255, 255, 255, 0.9) 80%, rgba(255, 255, 255, 0) 100%);
    margin-top: var(--space-xl);
    z-index: 10;
}

/* ===================================
   Lesson Completion Modal
   =================================== */

.lesson-complete-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lesson-complete-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.lesson-complete-modal .modal-content {
    position: relative;
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: auto;
    animation: scaleIn 0.4s ease;
    z-index: 1;
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.lesson-complete-modal .modal-content h2 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.lesson-complete-modal .modal-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Confetti Animation
   =================================== */

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 0;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   Responsive Modal
   =================================== */

@media (max-width: 768px) {
    .lesson-complete-modal .modal-content {
        padding: var(--space-xl);
        margin: var(--space-md);
    }

    .completion-icon {
        font-size: 3rem;
    }

    .lesson-complete-modal .modal-content h2 {
        font-size: 1.5rem;
    }

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

    .modal-actions .btn {
        width: 100%;
    }
}

/* ===================================
   Quiz Sections - Enhanced UI
   =================================== */

.quiz-section {
    margin: var(--space-xl) 0;
}

.quiz-container {
    background: var(--gray-50);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    position: relative;
}

.quiz-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quiz-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(4px);
}

.quiz-option:active:not(:disabled) {
    transform: translateX(2px);
}

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

.option-letter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.quiz-option:hover:not(:disabled) .option-letter {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-900);
    font-weight: 500;
}

/* Quiz option states - Correct */
.quiz-option.correct {
    border-color: var(--success);
    border-width: 2px;
    background: #ecfdf5;
}

.quiz-option.correct .option-letter {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Quiz option states - Incorrect */
.quiz-option.incorrect {
    border-color: var(--error);
    border-width: 2px;
    background: #fef2f2;
    animation: shake 0.4s ease;
}

.quiz-option.incorrect .option-letter {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* Quiz feedback */
.quiz-feedback {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    animation: feedbackSlideIn 0.3s ease-out;
}

.quiz-feedback.correct {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.quiz-feedback.incorrect {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
}

.feedback-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.feedback-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feedback-icon svg {
    width: 24px;
    height: 24px;
}

.quiz-feedback.correct .feedback-icon {
    background: #059669;
    color: white;
}

.quiz-feedback.incorrect .feedback-icon {
    background: #dc2626;
    color: white;
}

.feedback-text {
    flex: 1;
    padding-top: 2px;
}

.feedback-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.quiz-feedback.correct .feedback-title {
    color: #047857;
}

.quiz-feedback.incorrect .feedback-title {
    color: #b91c1c;
}

.feedback-message {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

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

/* Quiz warning toast */
.quiz-warning-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: #1f2937;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.quiz-warning-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quiz-warning-toast .quiz-warning-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #fbbf24;
}

.quiz-warning-toast .quiz-warning-icon svg {
    width: 100%;
    height: 100%;
}

.quiz-warning-toast span {
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
}

/* Quiz feedback toast */
.quiz-feedback-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90vw;
}

.quiz-feedback-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quiz-feedback-toast.correct {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.quiz-feedback-toast.incorrect {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.feedback-toast-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: white;
}

.feedback-toast-icon svg {
    width: 100%;
    height: 100%;
}

.feedback-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feedback-toast-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.feedback-toast-message {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.feedback-toast-message strong {
    color: white;
}

/* Animations */
@keyframes correctPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* ===================================
   Quiz Responsive Design
   =================================== */

@media (max-width: 768px) {
    .quiz-container {
        padding: var(--space-md);
    }

    .quiz-question {
        font-size: 0.9375rem;
    }

    .quiz-option {
        padding: 0.875rem 0.75rem;
        gap: 0.75rem;
        min-height: 48px;
    }

    .option-text {
        font-size: 0.8125rem;
    }

    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .quiz-feedback {
        padding: var(--space-md);
    }

    .feedback-icon {
        width: 36px;
        height: 36px;
    }

    .feedback-icon svg {
        width: 20px;
        height: 20px;
    }

    .feedback-title {
        font-size: 1rem;
    }

    .feedback-message {
        font-size: 0.875rem;
    }

    .quiz-feedback-toast {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
        transform: translateY(20px);
        max-width: none;
        padding: var(--space-md) var(--space-lg);
    }

    .quiz-feedback-toast.show {
        transform: translateY(0);
    }

    .quiz-warning-toast {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
        transform: translateY(20px);
    }

    .quiz-warning-toast.show {
        transform: translateY(0);
    }
}

/* ===================================
   Auth Pages (Login/Signup) - Fluid Scaling System
   =================================== */

.auth-section {
    /* Fit content within viewport */
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(0.5rem, 2vh, 2rem) 0;
    background: var(--gray-50);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 3vh, 3rem);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.auth-container--centered {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.auth-hint {
    color: var(--gray-600, #6b7280);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-card {
    background: white;
    padding: clamp(1rem, 2.5vh, 2.5rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem);
}

.auth-header h1 {
    font-size: clamp(1.25rem, 3vh, 1.75rem);
    font-weight: 700;
    margin-bottom: clamp(0.25rem, 0.5vh, 0.5rem);
    color: var(--gray-900);
    line-height: 1.2;
}

.auth-header p {
    color: var(--gray-600);
    font-size: clamp(0.85rem, 1.8vh, 1rem);
    margin-top: 0;
}

.auth-form {
    margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem);
}

.form-group {
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.form-group label {
    display: block;
    font-size: clamp(0.8rem, 1.5vh, 0.95rem);
    font-weight: 600;
    margin-bottom: clamp(0.2rem, 0.5vh, 0.35rem);
    color: var(--gray-900);
}

.form-control {
    width: 100%;
    height: clamp(36px, 5vh, 48px);
    padding: 0 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: clamp(0.875rem, 1.8vh, 1rem);
    transition: border-color 0.2s;
    background: white;
}

.form-text {
    font-size: clamp(0.75rem, 1.5vh, 0.85rem);
    margin-top: 0.15rem;
    color: var(--gray-600);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: clamp(0.8rem, 1.5vh, 0.95rem);
    min-height: auto;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: clamp(18px, 2vh, 20px);
    height: clamp(18px, 2vh, 20px);
    flex-shrink: 0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
    font-size: clamp(0.8rem, 1.5vh, 0.95rem);
}

.btn-lg {
    padding: 0 1.5rem;
    height: clamp(40px, 5vh, 52px);
    font-size: clamp(0.9rem, 1.8vh, 1.1rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-footer {
    text-align: center;
    padding-top: clamp(0.5rem, 1.5vh, 1rem);
    border-top: 1px solid var(--gray-200);
    margin-top: clamp(0.5rem, 1.5vh, 1rem);
}

.auth-footer p {
    color: var(--gray-600);
    font-size: clamp(0.8rem, 1.5vh, 0.95rem);
    margin-bottom: 0;
}

/* Benefits Section */
.auth-benefits {
    padding: 0 1rem;
}

.auth-benefits h2 {
    font-size: clamp(1.25rem, 3vh, 1.6rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    color: var(--gray-900);
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    font-size: clamp(0.875rem, 1.8vh, 1rem);
    color: var(--gray-900);
    line-height: 1.4;
}

.benefits-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    width: clamp(18px, 2.2vh, 24px);
    height: clamp(18px, 2.2vh, 24px);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .auth-section {
        /* On mobile, align to top to ensure scrolling works for tall content */
        justify-content: flex-start;
        padding: var(--space-xl) var(--space-md);
    }

    .auth-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .auth-benefits {
        order: -1;
        text-align: center;
        padding: 0;
    }

    .benefits-list {
        display: inline-block;
        text-align: left;
    }

    .benefits-list li {
        justify-content: flex-start;
    }
}

/* Landscape Mode / Short Screens */
@media (max-height: 800px) {
    .auth-section {
        padding: 0.5rem 0;
    }

    .auth-card {
        padding: 1rem 1.25rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

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

    .auth-header h1 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .auth-header p {
        font-size: 0.85rem;
    }

    .form-control {
        height: 38px;
    }

    .btn-lg {
        height: 42px;
    }

    .auth-footer {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    .password-requirements li {
        padding: 0.1rem 0;
        font-size: 0.7rem;
    }

    .password-strength {
        margin-top: 0.35rem;
    }
}

@media (max-height: 650px) {
    .auth-section {
        padding: 0.25rem 0;
        justify-content: flex-start;
    }

    .auth-card {
        padding: 0.75rem 1rem;
    }

    .form-group {
        margin-bottom: 0.35rem;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .form-control {
        height: 34px;
        font-size: 0.875rem;
    }

    .form-text {
        font-size: 0.7rem;
    }

    .checkbox-label {
        font-size: 0.75rem;
    }

    .btn-lg {
        height: 38px;
        font-size: 0.9rem;
    }

    .password-requirements li {
        padding: 0.05rem 0;
        font-size: 0.65rem;
    }

    .password-strength {
        margin-top: 0.25rem;
        gap: 0.5rem;
    }

    .strength-bar-track {
        height: 4px;
    }
}

/* ===================================
   Password Strength Meter
   =================================== */

.form-control.valid {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control.invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.strength-bar-track {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar-fill.strength-weak {
    background-color: #dc2626;
}

.strength-bar-fill.strength-fair {
    background-color: #f59e0b;
}

.strength-bar-fill.strength-good {
    background-color: #eab308;
}

.strength-bar-fill.strength-strong {
    background-color: #059669;
}

.strength-label {
    font-size: clamp(0.7rem, 1.4vh, 0.8rem);
    font-weight: 600;
    min-width: 3.5rem;
    text-align: right;
}

.strength-label.strength-weak {
    color: #dc2626;
}

.strength-label.strength-fair {
    color: #f59e0b;
}

.strength-label.strength-good {
    color: #eab308;
}

.strength-label.strength-strong {
    color: #059669;
}

.password-requirements {
    list-style: none;
    margin-top: 0.3rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    line-height: 1.4;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-500);
    padding: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.password-requirements li .req-icon::before {
    content: '\25CB';
    font-size: 0.6rem;
    display: inline-block;
    width: 1rem;
    text-align: center;
}

.password-requirements li.met {
    color: #059669;
}

.password-requirements li.met .req-icon::before {
    content: '\2713';
    font-weight: 700;
}

.password-mismatch {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 500;
}

.btn:disabled,
.btn[disabled] {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
    background: var(--gray-300);
    color: var(--gray-500);
    box-shadow: none;
    transform: none;
}

/* Dashboard Pages */
.dashboard-section {
    min-height: calc(100vh - 200px);
    padding: var(--space-xl) 0 var(--space-4xl);
    background: var(--gray-50);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--gray-900);
}

.dashboard-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.dashboard-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.dashboard-card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.card-header h2 {
    margin-bottom: 0;
}

.day-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Progress Card */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.progress-bar-container {
    margin-top: var(--space-xl);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--gray-900);
}

.progress-bar-large {
    width: 100%;
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill-large {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Challenge Footer (start date + reset button) */
.challenge-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
}

.challenge-start-date {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.btn-reset-challenge {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-reset-challenge:hover {
    background: #b91c1c;
}

/* Reset Challenge Modal */
.reset-challenge-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.reset-challenge-modal.active {
    display: flex;
}

.reset-challenge-modal .modal-content {
    position: relative;
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 480px;
    width: 90%;
    margin: auto;
    animation: scaleIn 0.4s ease;
    z-index: 1;
}

.reset-modal-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--error);
}

.reset-challenge-modal .modal-content h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.reset-challenge-modal .modal-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Current Lesson Card */
.lesson-preview {
    text-align: center;
}

.lesson-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.lesson-preview h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.lesson-preview p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.lesson-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    color: var(--gray-600);
}

/* Achievement Card */
.achievement-card {
    grid-column: span 2;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.achievement-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    opacity: 0.5;
}

.achievement-item.unlocked {
    opacity: 1;
    background: var(--accent-light);
    border-color: var(--accent);
}

.achievement-icon {
    margin-bottom: var(--space-sm);
}

.achievement-lucide {
    width: 32px;
    height: 32px;
    stroke: var(--gray-400);
    stroke-width: 1.5;
}

.achievement-item.unlocked .achievement-lucide {
    stroke: var(--accent);
}

.achievement-name {
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--gray-900);
}

.achievement-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Recent Activity Card */
.recent-activity-card {
    grid-column: span 1;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.activity-icon {
    font-size: 1.5rem;
    margin-right: var(--space-md);
}

.activity-name {
    font-weight: 600;
    color: var(--gray-900);
    flex: 1;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Upcoming Lessons Card */
.upcoming-lessons-card {
    grid-column: span 1;
}

.upcoming-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.upcoming-item {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.upcoming-lock {
    font-size: 1.5rem;
    margin-right: var(--space-md);
    opacity: 0.6;
}

.upcoming-info {
    display: flex;
    flex-direction: column;
}

.upcoming-name {
    font-weight: 600;
    color: var(--gray-900);
}

.upcoming-day {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

.empty-state {
    color: var(--gray-500);
    text-align: center;
    padding: var(--space-xl) 0;
}

@media (max-width: 968px) {
    .dashboard-section {
        padding: var(--space-2xl) 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .dashboard-card {
        padding: var(--space-lg);
    }

    .achievement-card {
        grid-column: span 1;
    }

    .dashboard-header {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: flex-start;
        margin-bottom: var(--space-xl);
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .progress-stats {
        grid-template-columns: 1fr;
    }

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

/* ===================================
   Profile Avatar Dropdown
   =================================== */

.profile-dropdown-wrapper {
    position: relative;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.profile-avatar:hover {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.profile-avatar:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 150;
    overflow: hidden;
}

.profile-dropdown.active {
    display: block;
    animation: profileDropdownIn 0.15s ease;
}

@keyframes profileDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.profile-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    line-height: 1;
}

.profile-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-dropdown-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-email {
    color: var(--gray-500);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-plan {
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    width: fit-content;
    margin-top: 2px;
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem var(--space-lg);
    color: var(--gray-700);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    min-height: 44px;
}

.profile-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.profile-dropdown-item:focus {
    outline: none;
    background: var(--gray-50);
}

.profile-dropdown-item-logout:hover {
    background: #fef2f2;
    color: var(--error);
}

.mobile-profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

/* Account Settings Page */
.account-section {
    padding: var(--space-xl) 0 var(--space-2xl);
    min-height: calc(100vh - 200px);
    background: var(--gray-50);
}

.account-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
}

.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.account-nav-item i {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--gray-900);
}

.account-nav-item:hover i {
    transform: scale(1.1);
}

.account-nav-item.active {
    background: linear-gradient(135deg, var(--accent) 0%, #333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.account-nav-item.active i {
    filter: brightness(0) invert(1);
}

.account-nav-item.active:hover {
    background: linear-gradient(135deg, #333 0%, var(--accent) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.12);
}

/* Main Content */
.account-main {
    min-width: 0;
}

.account-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-2xl) var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-top: -2rem;
}

/* Avatar Section */
.account-avatar-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.account-avatar-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-avatar-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.account-avatar-plan {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    width: fit-content;
}

.account-avatar-plan.plan-lifetime {
    background: var(--accent);
    color: white;
}

/* Card Header */
.account-card-header {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.account-card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.account-card-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Errors */
.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin: 0;
}

.form-error + .form-error {
    margin-top: 0.25rem;
}

/* Form */
.account-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.account-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.account-form .form-group {
    margin-bottom: 0;
}

.account-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.account-form .form-control {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.account-form .form-control:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

.form-actions {
    padding-top: var(--space-md);
}

@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 200px 1fr;
    }
}

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

    .account-sidebar {
        position: static;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        gap: var(--space-sm);
    }

    .account-nav-item {
        white-space: nowrap;
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    .account-nav-item.active {
        transform: translateY(-2px);
    }

    .account-form .form-row {
        grid-template-columns: 1fr;
    }

    .account-card {
        padding: var(--space-lg);
    }
}

/* ==============================================
   Subscription Settings
   ============================================== */

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.subscription-detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.subscription-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    min-width: 120px;
    flex-shrink: 0;
}

.subscription-value {
    font-size: 0.9rem;
    color: var(--gray-900);
}

.subscription-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.subscription-badge.active {
    background: #dcfce7;
    color: #166534;
}

.subscription-access-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.subscription-access-list li {
    font-size: 0.875rem;
    color: var(--gray-700);
    position: relative;
    padding-left: 1.25rem;
}

.subscription-access-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 600;
}

/* Refund Section */
.subscription-refund-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.subscription-refund-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.subscription-refund-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.15s ease;
}

.subscription-refund-link:hover {
    opacity: 0.7;
}

/* Refund Form */
.refund-form-container {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.refund-form-header {
    margin-bottom: var(--space-lg);
}

.refund-form-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.refund-form-header p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
}

.refund-form select.form-control {
    height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.refund-form textarea.form-control {
    height: auto;
    padding: 0.75rem 1rem;
    resize: vertical;
    min-height: 100px;
}

.refund-form-actions {
    display: flex;
    gap: var(--space-md);
}

.refund-success {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.refund-success h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: var(--space-md) 0 0.5rem;
}

.refund-success p {
    color: var(--gray-500);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* No Subscription State */
.subscription-empty {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.subscription-empty-icon {
    color: var(--gray-300);
    margin-bottom: var(--space-md);
}

.subscription-empty h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.subscription-empty p {
    color: var(--gray-500);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

@media (max-width: 768px) {
    .subscription-detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .subscription-value {
        text-align: left;
    }

    .refund-form-actions {
        flex-direction: column;
    }
}