/* ================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ================================================ */

:root {
    /* Colors */
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #5b4cdb;
    --accent: #00CEC9;
    --accent-dark: #00b5b0;
    --danger: #e17055;
    --success: #00b894;
    --warning: #fdcb6e;

    /* Backgrounds */
    --bg-main: #0a0a1a;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3e;
    --bg-input: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);

    /* Borders */
    --border: rgba(108, 92, 231, 0.18);
    --border-light: rgba(255, 255, 255, 0.06);

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 24px rgba(108, 92, 231, 0.35);
    --shadow-glow-accent: 0 0 24px rgba(0, 206, 201, 0.35);
    --shadow-glow-strong: 0 0 40px rgba(108, 92, 231, 0.5);

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.35s ease;

    /* Spacing */
    --nav-height: 64px;
    --section-padding: 5rem;
    --container-max: 1280px;
}

/* ================================================
   BASE RESET & BODY
   ================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--text-primary);
}

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

/* ================================================
   GLOW EFFECTS - PREMIUM UI
   ================================================ */

.glow-card {
    background: rgba(18, 18, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 92, 231, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(108, 92, 231, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
}

.glow-card:hover {
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(108, 92, 231, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glow-card-inner {
    background: rgba(22, 22, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.glow-panel {
    background: rgba(18, 18, 42, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.glow-hover {
    transition: var(--transition-slow);
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    border-color: rgba(108, 92, 231, 0.5);
}

/* Button Glow */
.btn-glow {
    background: linear-gradient(135deg, var(--primary), #8b7cf8);
    color: white;
    box-shadow: 
        0 4px 15px rgba(108, 92, 231, 0.4),
        0 0 20px rgba(108, 92, 231, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-glow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(108, 92, 231, 0.5),
        0 0 30px rgba(108, 92, 231, 0.3);
}

.btn-glow:hover::before {
    transform: translateX(100%);
}

.btn-glow.btn-accent {
    background: linear-gradient(135deg, var(--accent), #74b9ff);
    box-shadow: 
        0 4px 15px rgba(0, 206, 201, 0.4),
        0 0 20px rgba(0, 206, 201, 0.2);
}

.btn-glow.btn-accent:hover:not(:disabled) {
    box-shadow: 
        0 8px 25px rgba(0, 206, 201, 0.5),
        0 0 30px rgba(0, 206, 201, 0.3);
}

/* ================================================
   LOADER
   ================================================ */

.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

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

/* ================================================
   ONBOARDING MODAL
   ================================================ */

.onboarding-modal .modal-content {
    max-width: 500px;
    text-align: center;
    padding: 3rem 2rem;
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.onboarding-illustration {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.onboarding-step h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.onboarding-step p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.language-options,
.goal-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.language-options {
    grid-template-columns: repeat(1, 1fr);
}

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

.lang-option-btn,
.goal-option-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option-btn:hover,
.goal-option-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
}

.lang-flag {
    font-size: 1.5rem;
}

.goal-option-btn i {
    font-size: 1.25rem;
    color: var(--primary-light);
}

/* ================================================
   NAVBAR
   ================================================ */

.navbar {
    position: sticky;
    top: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.brand-icon {
    font-size: 1.4rem;
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--primary-light);
}

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

.nav-link {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.nav-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cart-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(225, 112, 85, 0.5);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu {
    position: relative;
}

.user-profile {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(108, 92, 231, 0.15);
    z-index: 200;
    overflow: hidden;
}

.dropdown-header {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dropdown-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dropdown-role {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 500;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--text-primary);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(225, 112, 85, 0.1);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}

/* ================================================
   ROLE BADGES
   ================================================ */

.role-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    background: #6C6C8A;
    color: white;
    letter-spacing: 0.5px;
}

.role-badge.large {
    font-size: 0.75rem;
    padding: 4px 10px;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b7cf8);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #74b9ff);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 206, 201, 0.3);
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ff7675);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.35);
}

.btn-google {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-google:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
    padding: 0.45rem 0.875rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* ================================================
   MODAL
   ================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

/* ================================================
   AUTH MODAL
   ================================================ */

.auth-modal-content {
    max-width: 440px;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary), #8b7cf8);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-error {
    background: rgba(225, 112, 85, 0.12);
    border: 1px solid rgba(225, 112, 85, 0.3);
    color: #ff7675;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

/* ================================================
   UPGRADE MODAL
   ================================================ */

.upgrade-modal-content {
    max-width: 900px;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upgrade-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upgrade-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.upgrade-header p {
    color: var(--text-secondary);
}

.upgrade-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.plan-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    text-align: center;
}

.plan-card.plan-featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.15), rgba(18, 18, 42, 0.6));
}

.plan-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

.plan-save {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.4);
}

.plan-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.plan-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-billed {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.plan-features li i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* ================================================
   PROGRESS MODAL ENHANCEMENTS
   ================================================ */

.progress-activity {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.progress-activity h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.activity-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 100px;
    padding: 0 0.5rem;
}

.activity-bar {
    flex: 1;
    height: var(--height, 50%);
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    position: relative;
    transition: height 0.5s ease;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

.activity-bar::after {
    content: attr(data-day);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.progress-achievements {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.progress-achievements h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    opacity: 0.5;
    transition: var(--transition);
}

.achievement-item.unlocked {
    opacity: 1;
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.achievement-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.achievement-item.unlocked i {
    color: var(--accent);
}

.achievement-item span {
    font-size: 0.75rem;
    text-align: center;
}

/* ================================================
   NOTIFICATION
   ================================================ */

.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3000;
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    min-width: 280px;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success { background: rgba(0, 184, 148, 0.15); border-color: rgba(0, 184, 148, 0.3); }
.notification.error   { background: rgba(225, 112, 85, 0.15); border-color: rgba(225, 112, 85, 0.3); }
.notification.warning { background: rgba(253, 203, 110, 0.12); border-color: rgba(253, 203, 110, 0.3); }
.notification.info    { background: rgba(108, 92, 231, 0.12); border-color: rgba(108, 92, 231, 0.3); }

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.notification.success #notif-icon { color: var(--success); }
.notification.error   #notif-icon { color: var(--danger); }
.notification.warning #notif-icon { color: var(--warning); }
.notification.info    #notif-icon { color: var(--primary-light); }

/* ================================================
   MAIN CONTENT & PAGES - CENTERED
   ================================================ */

#main-content {
    min-height: calc(100vh - var(--nav-height));
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.page-header h1 i {
    color: var(--primary-light);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    right: -100px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #a29bfe;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--primary-light);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.hero-stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual / Preview */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    opacity: 0.9;
}

.classroom-preview {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.preview-dots {
    display: flex;
    gap: 4px;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-avatar {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.preview-avatar.teacher { align-self: flex-start; }
.preview-avatar.student { align-self: flex-start; margin-left: 1rem; }
.preview-avatar.student-adv { align-self: flex-start; margin-left: 1rem; }

.preview-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 220px;
}

.preview-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.preview-cursor {
    width: 2px;
    height: 1rem;
    background: var(--accent);
    animation: blink 1s infinite;
}

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

/* ================================================
   SECTIONS - CENTERED
   ================================================ */

.section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: rgba(108, 92, 231, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(108, 92, 231, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.875rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

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

/* ================================================
   SMART LEARNING SECTION
   ================================================ */

.smart-learning-section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.smart-learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.smart-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-slow);
}

.smart-card:hover {
    transform: translateY(-4px);
}

.smart-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.12), rgba(18, 18, 42, 0.6));
}

.smart-card-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ai-brain-animation {
    position: relative;
    font-size: 4rem;
    color: var(--primary-light);
}

.neural-nodes {
    position: absolute;
    inset: -20px;
}

.neural-nodes span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: neuralPulse 1.5s infinite;
    box-shadow: 0 0 10px var(--accent);
}

.neural-nodes span:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.neural-nodes span:nth-child(2) { top: 50%; right: 0; animation-delay: 0.3s; }
.neural-nodes span:nth-child(3) { bottom: 0; left: 50%; animation-delay: 0.6s; }
.neural-nodes span:nth-child(4) { top: 50%; left: 0; animation-delay: 0.9s; }

@keyframes neuralPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.smart-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    color: var(--primary-light);
}

.smart-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.smart-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.smart-features {
    list-style: none;
    text-align: left;
}

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

.smart-features li i {
    color: var(--success);
}

.progress-demo {
    margin-top: 1rem;
}

.progress-demo-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-demo-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: var(--radius-full);
    animation: progressGrow 2s ease;
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.3);
}

@keyframes progressGrow {
    from { width: 0 !important; }
}

.progress-demo span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.personal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.personal-tags .tag {
    padding: 0.3rem 0.75rem;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* ================================================
   FEATURES SECTION
   ================================================ */

.features-section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

.how-it-works-section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    min-width: 200px;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-connector {
    color: var(--text-muted);
    font-size: 1.5rem;
}

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

/* ================================================
   TESTIMONIALS SECTION
   ================================================ */

.testimonials-section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.testimonial-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.1), rgba(18, 18, 42, 0.6));
}

.testimonial-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.4);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning);
    font-size: 0.875rem;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.author-info strong {
    font-size: 0.9rem;
}

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

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--primary-light);
}

/* ================================================
   PRICING SECTION
   ================================================ */

.pricing-section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.toggle-switch {
    width: 56px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    position: absolute;
    top: 2px;
    left: 3px;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.4);
}

.toggle-indicator.annual {
    transform: translateX(28px);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.save-badge {
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 0.25rem;
    box-shadow: 0 0 8px rgba(0, 184, 148, 0.4);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    text-align: center;
}

.pricing-card.featured {
    border: 1px solid var(--primary);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.1), rgba(18, 18, 42, 0.6));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-billed {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--accent);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    opacity: 0.5;
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

/* ================================================
   FINAL CTA SECTION
   ================================================ */

.final-cta-section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.final-cta-content {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
}

.final-cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.final-cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================
   PROGRAMMES PAGE - NEW DESIGN
   ================================================ */

.programmes-header {
    margin-bottom: 2rem;
}

.language-selector-section {
    margin-bottom: 3rem;
}

.language-selector-title {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.language-selector-title i {
    color: var(--primary-light);
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.lang-select-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    background: rgba(18, 18, 42, 0.6);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-slow);
    min-width: 140px;
}

.lang-select-btn:hover {
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

.lang-select-btn.active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.lang-select-btn.active .lang-glow {
    opacity: 1;
}

.lang-flag-large {
    font-size: 2.5rem;
}

.lang-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.lang-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.lang-select-btn.active .lang-glow {
    opacity: 0.5;
}

/* Programmes Container */
.programmes-container {
    max-width: 900px;
    margin: 0 auto;
}

.programme-lang-section {
    display: none;
}

.programme-lang-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.programme-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.programme-card-large {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
}

.programme-card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.programme-card-large:hover .programme-card-glow {
    opacity: 0.3;
}

.starter-glow {
    background: radial-gradient(circle at center, var(--success), transparent 70%);
}

.expert-glow {
    background: radial-gradient(circle at center, var(--primary), transparent 70%);
}

.programme-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.starter-badge {
    background: var(--success);
    color: white;
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.4);
}

.expert-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

.programme-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.programme-card-large h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.programme-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.programme-features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.programme-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.programme-features-list li i {
    color: var(--accent);
}

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

.programme-price-free {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.programme-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.programme-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ================================================
   TARIFS PAGE - CENTERED DESIGN
   ================================================ */

.tarifs-header {
    margin-bottom: 2rem;
}

.pricing-toggle-centered {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.pricing-grid-centered {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    align-items: start;
}

/* Tarifs FAQ */
.tarifs-faq {
    margin-bottom: 3rem;
}

.tarifs-faq h2 {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.faq-item h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-item h4 i {
    color: var(--primary-light);
}

.faq-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tarifs CTA */
.tarifs-cta {
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto;
}

.tarifs-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tarifs-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ================================================
   COURSE CARDS
   ================================================ */

.courses-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

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

.course-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    cursor: pointer;
    background: rgba(18, 18, 42, 0.6);
    border: 1px solid var(--border);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
}

.course-card.locked {
    opacity: 0.7;
}

.course-thumbnail {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.08));
    position: relative;
}

.lock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.4);
}

.course-info {
    padding: 1.25rem;
}

.course-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.course-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.courses-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    grid-column: 1 / -1;
}

/* ================================================
   COURSE DETAIL / PLAYER
   ================================================ */

.course-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(100vh - var(--nav-height));
}

.course-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

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

.course-sidebar-header h3 {
    font-size: 1rem;
    margin: 1rem 0 0.75rem;
}

.course-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.course-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.3);
}

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

.modules-list {
    padding: 1rem;
}

.module-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.module-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.module-header.locked {
    opacity: 0.6;
}

.module-nodes {
    display: none;
}

.module-item.open .module-nodes {
    display: block;
}

.node-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.node-item:hover {
    background: rgba(108, 92, 231, 0.05);
    color: var(--text-primary);
}

.node-item.active {
    background: rgba(108, 92, 231, 0.1);
    border-left-color: var(--primary);
    color: var(--text-primary);
}

.node-item.completed {
    color: var(--success);
}

.node-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.course-main {
    padding: 2rem;
    overflow-y: auto;
}

.video-container {
    margin-bottom: 2rem;
}

.video-player-wrapper {
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 1rem;
}

.video-placeholder i {
    font-size: 3rem;
}

.lesson-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lesson-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.lesson-text p {
    margin-bottom: 1rem;
}

.lesson-qcm {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.qcm-question {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.qcm-option {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.qcm-option:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--primary);
}

.qcm-option.correct {
    background: rgba(0, 184, 148, 0.15);
    border-color: var(--success);
}

.qcm-option.incorrect {
    background: rgba(225, 112, 85, 0.15);
    border-color: var(--danger);
}

/* ================================================
   CLASSROOM
   ================================================ */

.classroom-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.classroom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.classroom-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.classroom-header h1 i {
    color: var(--primary-light);
}

.classroom-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.classroom-select {
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 200px;
}

.classroom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.classroom-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
}

.classroom-stage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.teacher-video-area {
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.teacher-avatar-placeholder {
    position: relative;
    display: inline-block;
}

.avatar-circle.large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.teacher-name-tag {
    margin-top: 1rem;
}

.tag-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.tag-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.students-area {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
}

.ai-student {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    min-width: 120px;
}

.ai-student .avatar-circle {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.student-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ai-student.user-student .avatar-circle {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.speaking-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    gap: 2px;
}

.speaking-indicator span {
    width: 4px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px;
    animation: soundWave 0.5s infinite alternate;
}

.speaking-indicator span:nth-child(2) { animation-delay: 0.1s; }
.speaking-indicator span:nth-child(3) { animation-delay: 0.2s; }

@keyframes soundWave {
    from { transform: scaleY(0.3); }
    to { transform: scaleY(1); }
}

.classroom-chat {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

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

.chat-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.live {
    background: var(--accent);
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 8px var(--accent);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-welcome {
    text-align: center;
    padding: 2rem 1rem;
}

.chat-welcome i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.chat-welcome p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 85%;
}

.chat-message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
}

.teacher-avatar { background: linear-gradient(135deg, var(--primary), #8b7cf8); }
.beginner-avatar { background: linear-gradient(135deg, #e17055, #ff7675); }
.intermediate-avatar { background: linear-gradient(135deg, var(--accent), #74b9ff); }
.user-avatar-circle { background: linear-gradient(135deg, #636e72, #2d3436); }

.message-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 100%;
}

.chat-message.user .message-content {
    background: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.3);
}

.message-sender {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.625rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area {
    padding: 0.875rem;
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-input-wrapper input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.chat-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}

.btn-send {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-send:hover {
    background: var(--primary-dark);
}

.ai-usage-counter {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ai-usage-counter a {
    color: var(--primary-light);
}

/* Lock Overlay */
.lock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lock-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 400px;
}

.lock-content i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.lock-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.lock-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ================================================
   CART SIDEBAR
   ================================================ */

.cart-sidebar {
    position: fixed;
    inset: 0;
    z-index: 1500;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

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

.cart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-close:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cart-item-info .price {
    color: var(--primary-light);
    font-weight: 600;
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 112, 85, 0.1);
    border: 1px solid rgba(225, 112, 85, 0.3);
    border-radius: 50%;
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: rgba(225, 112, 85, 0.2);
}

.cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.875rem;
    font-size: 1.1rem;
}

/* ================================================
   SHOP
   ================================================ */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.shop-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    cursor: pointer;
    background: rgba(18, 18, 42, 0.6);
    border: 1px solid var(--border);
}

.shop-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.shop-thumbnail {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.05));
}

.shop-info {
    padding: 1.25rem;
}

.shop-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.shop-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* ================================================
   TEACHER DASHBOARD
   ================================================ */

.dashboard-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-header h1 i {
    color: var(--primary-light);
}

.dashboard-header p {
    color: var(--text-secondary);
}

/* Teacher Stats Grid */
.teacher-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.teacher-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.stat-icon.students { background: rgba(108, 92, 231, 0.15); color: var(--primary-light); }
.stat-icon.courses { background: rgba(0, 206, 201, 0.15); color: var(--accent); }
.stat-icon.completions { background: rgba(0, 184, 148, 0.15); color: var(--success); }
.stat-icon.revenue { background: rgba(253, 203, 110, 0.15); color: var(--warning); }

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dashboard-card.large {
    grid-column: span 2;
}

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

.card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.gen-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.gen-result h4 {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.gen-result pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.teacher-ai-chat {
    display: flex;
    flex-direction: column;
    height: 300px;
}

.teacher-ai-chat .chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.teacher-courses-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teacher-course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.analytics-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.analytics-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-light);
}

.analytics-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ================================================
   PROFILE PAGE
   ================================================ */

.profile-layout {
    max-width: 500px;
    margin: 0 auto;
}

.profile-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-header-card {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.1));
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    color: white;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.profile-header-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-details {
    padding: 1.5rem;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

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

.profile-field label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.profile-field span {
    font-weight: 500;
}

.profile-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ================================================
   PROGRESS STATS
   ================================================ */

.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

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

.progress-level {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.xp-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

/* ================================================
   FOOTER
   ================================================ */

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

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

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

.footer-brand .brand-text {
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 120px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }
}

@media (max-width: 1024px) {
    .smart-learning-grid,
    .features-grid,
    .testimonials-grid,
    .pricing-grid,
    .pricing-grid-centered,
    .courses-grid,
    .shop-grid,
    .programme-cards-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .classroom-layout {
        grid-template-columns: 1fr;
    }

    .classroom-chat {
        height: 400px;
    }

    .course-layout {
        grid-template-columns: 280px 1fr;
    }

    .dashboard-card.large {
        grid-column: span 2;
    }

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

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

    .upgrade-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

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

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

    .hero {
        min-height: 70vh;
        padding: 3rem 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

    .smart-learning-grid,
    .features-grid,
    .testimonials-grid,
    .pricing-grid,
    .pricing-grid-centered,
    .courses-grid,
    .shop-grid,
    .programme-cards-grid,
    .faq-grid,
    .steps-grid,
    .upgrade-plans {
        grid-template-columns: 1fr;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .course-layout {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 300px;
    }

    .dashboard-grid,
    .dashboard-card.large {
        grid-template-columns: 1fr;
    }

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

    .cart-panel {
        width: 100%;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .language-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lang-select-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .teacher-stats-grid,
    .progress-stats,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .students-area {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .classroom-controls {
        width: 100%;
    }

    .classroom-controls select,
    .classroom-controls button {
        width: 100%;
    }
}

/* ================================================
   LANGUAGE SWITCHER
   ================================================ */

.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.15);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(108, 92, 231, 0.1);
    z-index: 200;
    overflow: hidden;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Role badge colors */
.role-badge.role-free {
    background: #6C6C8A;
}

.role-badge.role-pro {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.role-badge.role-teacher {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

/* User avatar button */
.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    border: none;
    color: white;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.user-avatar-btn .role-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
}

/* Text utilities */
.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}
