/* ============================================
   CHEMISTRY CODE - SHARED STYLES
   Prof. Ayman Mansour
   ============================================ */

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

:root {
    --primary: #20E2D7;
    --primary-dark: #00b4d8;
    --bg-dark: #0a0e1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-nav: rgba(10, 14, 26, 0.95);
    --navy: #1A2238;
    --orange: #FF6B35;
    --grey-light: #F1F4F9;
    --grey-ice: #f8f9fb;
    --text-white: #ffffff;
    --text-grey: #888888;
    --text-light: #aaaaaa;
    --text-dark: #cccccc;
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(32, 226, 215, 0.3);
    --shadow-glow: 0 0 30px rgba(32, 226, 215, 0.3);
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}
.particle:nth-child(2){left:20%;animation-delay:2s;animation-duration:20s}
.particle:nth-child(3){left:40%;animation-delay:4s;animation-duration:18s}
.particle:nth-child(4){left:60%;animation-delay:1s;animation-duration:22s}
.particle:nth-child(5){left:80%;animation-delay:3s;animation-duration:16s}
.particle:nth-child(6){left:10%;animation-delay:5s;animation-duration:25s}
.particle:nth-child(7){left:50%;animation-delay:0s;animation-duration:19s}
.particle:nth-child(8){left:70%;animation-delay:6s;animation-duration:21s}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(32, 226, 215, 0.1);
    transition: all 0.3s ease;
}
.navbar.scrolled { padding: 10px 5%; background: rgba(10,14,26,0.98); }

.logo { display: flex; flex-direction: column; }
.logo-main {
    font-size: 1.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub { font-size: 0.7rem; color: #888; font-weight: 300; letter-spacing: 1px; }

.nav-links {
    display: flex; gap: 25px;
    list-style: none; align-items: center;
}
.nav-links a {
    color: #ccc; font-size: 0.9rem; font-weight: 600;
    transition: color 0.3s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -5px; right: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

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

.nav-user {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 15px;
    background: rgba(32,226,215,0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}
.nav-user .avatar {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg-dark); font-weight: 800; font-size: 0.8rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 30px; border: none; border-radius: 50px;
    font-family: 'Cairo', sans-serif; font-weight: 700;
    font-size: 0.95rem; cursor: pointer; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(32,226,215,0.5); }

.btn-secondary {
    background: transparent; color: var(--text-white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--border-glow);
}
.btn-outline:hover { background: rgba(32,226,215,0.1); }

.btn-small { padding: 8px 20px; font-size: 0.85rem; }
.btn-orange {
    background: linear-gradient(135deg, var(--orange), #ff8c61);
    color: white;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,107,53,0.4); }

.btn-login { padding: 8px 20px; font-size: 0.85rem; }
.btn-logout {
    background: rgba(255,107,53,0.15); color: var(--orange);
    padding: 8px 18px; font-size: 0.82rem;
}
.btn-logout:hover { background: rgba(255,107,53,0.3); }

.menu-toggle {
    display: none; background: none; border: none;
    color: var(--primary); font-size: 1.8rem; cursor: pointer;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 140px 5% 60px;
    text-align: center;
    position: relative; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(32,226,215,0.05) 0%, transparent 70%);
}
.page-header h1 {
    font-size: 2.5rem; font-weight: 900; margin-bottom: 15px;
}
.page-header h1 .highlight { color: var(--primary); }
.page-header p { color: var(--text-grey); font-size: 1.05rem; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 5% 80px;
    position: relative; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(32,226,215,0.05) 0%, transparent 70%);
}
.hero-content { max-width: 800px; }
.hero-badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(32,226,215,0.1);
    border: 1px solid var(--border-glow);
    border-radius: 50px; font-size: 0.85rem;
    color: var(--primary); margin-bottom: 30px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(32,226,215,0.3); }
    50% { box-shadow: 0 0 0 15px rgba(32,226,215,0); }
}
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-light); line-height: 1.8; margin-bottom: 40px; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION TITLE ===== */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; }
.section-title h2 .highlight { color: var(--primary); }
.section-title p { color: var(--text-grey); font-size: 1rem; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0); transition: transform 0.4s;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
    transform: translateY(-8px);
    background: rgba(32,226,215,0.05);
    border-color: rgba(32,226,215,0.2);
    box-shadow: 0 20px 60px rgba(32,226,215,0.1);
}

/* ===== FEATURES GRID ===== */
.features { padding: 100px 5%; position: relative; z-index: 1; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.feature-icon { font-size: 3rem; margin-bottom: 20px; display: block; text-align: center; }
.feature-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; color: var(--primary); text-align: center; }
.feature-card p { color: var(--text-grey); font-size: 0.95rem; line-height: 1.8; text-align: center; }

/* ===== WEEKLY CODE ===== */
.weekly-code { padding: 80px 5%; position: relative; z-index: 1; }
.code-box {
    max-width: 700px; margin: 0 auto;
    background: linear-gradient(135deg, rgba(32,226,215,0.1), rgba(0,180,216,0.05));
    border: 1px solid var(--border-glow);
    border-radius: 25px; padding: 50px 40px;
    text-align: center; position: relative; overflow: hidden;
}
.code-box::before {
    content: '{ }'; position: absolute; top: -20px; left: -20px;
    font-size: 8rem; opacity: 0.03; font-weight: 900;
}
.code-box .badge {
    display: inline-block; padding: 5px 15px;
    background: rgba(255,107,53,0.2); color: var(--orange);
    border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 20px;
}
.code-box h2 { font-size: 1.8rem; margin-bottom: 20px; }
.code-content { font-size: 1.2rem; color: var(--primary); line-height: 2; margin-bottom: 20px; font-weight: 600; }
.code-note { color: var(--text-grey); font-size: 0.9rem; }

/* ===== LESSONS ===== */
.lessons { padding: 100px 5%; position: relative; z-index: 1; }
.lessons-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.lesson-card {
    background: rgba(10,14,26,0.8);
    border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden; transition: all 0.4s;
}
.lesson-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.lesson-thumb {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, var(--navy), var(--bg-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; position: relative;
}
.lesson-thumb .play-btn {
    position: absolute; width: 60px; height: 60px;
    background: rgba(32,226,215,0.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s;
}
.lesson-card:hover .play-btn { opacity: 1; }
.play-btn::after { content: '▶'; color: var(--bg-dark); font-size: 1.2rem; margin-right: -3px; }
.lesson-info { padding: 25px; }
.lesson-tag {
    display: inline-block; padding: 3px 12px;
    background: rgba(32,226,215,0.1); color: var(--primary);
    border-radius: 50px; font-size: 0.75rem; font-weight: 700; margin-bottom: 10px;
}
.lesson-tag.free { background: rgba(255,107,53,0.15); color: var(--orange); }
.lesson-tag.locked { background: rgba(255,255,255,0.05); color: #666; }
.lesson-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.lesson-info p { color: var(--text-grey); font-size: 0.85rem; line-height: 1.6; }
.lesson-meta {
    display: flex; justify-content: space-between;
    margin-top: 15px; padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666; font-size: 0.8rem;
}

/* ===== LESSON PAGE (single) ===== */
.lesson-page { padding: 120px 5% 60px; position: relative; z-index: 1; }
.lesson-container { max-width: 900px; margin: 0 auto; }
.video-wrapper {
    width: 100%; aspect-ratio: 16/9;
    background: var(--navy); border-radius: 20px;
    overflow: hidden; margin-bottom: 30px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; position: relative;
}
.video-wrapper iframe {
    width: 100%; height: 100%; border: none;
}
.video-placeholder {
    text-align: center; color: var(--text-grey);
}
.video-placeholder .big-icon { font-size: 5rem; margin-bottom: 15px; display: block; }

.lesson-details { margin-bottom: 30px; }
.lesson-details h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.lesson-details .meta {
    display: flex; gap: 20px; color: var(--text-grey); font-size: 0.9rem;
    margin-bottom: 20px; flex-wrap: wrap;
}
.lesson-details .description { color: var(--text-light); line-height: 1.8; font-size: 1rem; }
.lesson-outcomes {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 15px; padding: 25px 30px; margin: 30px 0;
}
.lesson-outcomes h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; }
.lesson-outcomes ul { list-style: none; }
.lesson-outcomes li { padding: 6px 0; color: var(--text-light); font-size: 0.95rem; }
.lesson-outcomes li::before { content: '✅ '; margin-left: 5px; }

.download-section {
    background: linear-gradient(135deg, rgba(32,226,215,0.1), rgba(0,180,216,0.05));
    border: 1px solid var(--border-glow);
    border-radius: 15px; padding: 25px 30px;
    display: flex; justify-content: space-between;
    align-items: center; margin: 30px 0; flex-wrap: wrap; gap: 15px;
}
.download-section .info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.download-section .info p { color: var(--text-grey); font-size: 0.85rem; }

/* LOCKED OVERLAY */
.locked-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,14,26,0.95);
    backdrop-filter: blur(5px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-radius: 20px; z-index: 10; text-align: center; padding: 20px;
}
.locked-overlay .lock-icon { font-size: 4rem; margin-bottom: 15px; }
.locked-overlay h3 { font-size: 1.3rem; margin-bottom: 10px; }
.locked-overlay p { color: var(--text-grey); margin-bottom: 20px; font-size: 0.95rem; }

/* ===== PRICING ===== */
.pricing { padding: 100px 5%; position: relative; z-index: 1; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; max-width: 1100px; margin: 0 auto; align-items: start;
}
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 25px; padding: 40px 30px;
    text-align: center; transition: all 0.4s; position: relative;
}
.price-card.featured {
    background: rgba(32,226,215,0.05);
    border-color: var(--border-glow);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(32,226,215,0.15);
}
.price-card:hover { transform: translateY(-5px); }
.price-card.featured:hover { transform: scale(1.05) translateY(-5px); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 5px 20px;
    background: linear-gradient(135deg, var(--orange), #ff8c61);
    color: #fff; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.plan-icon { font-size: 2.5rem; margin-bottom: 15px; }
.price-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.price { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin-bottom: 5px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-grey); }
.price-note { color: #666; font-size: 0.85rem; margin-bottom: 25px; }
.price-features { list-style: none; text-align: right; margin-bottom: 30px; }
.price-features li {
    padding: 8px 0; color: var(--text-light);
    font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.price-features li::before { content: '✅ '; margin-left: 8px; }
.price-features li.disabled { color: #555; text-decoration: line-through; }
.price-features li.disabled::before { content: '❌ '; }

/* ===== PAYMENT SECTION ===== */
.payment-section {
    padding: 60px 5%; position: relative; z-index: 1;
}
.payment-container {
    max-width: 800px; margin: 0 auto;
}
.payment-methods {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-bottom: 40px;
}
.payment-method {
    background: var(--bg-card); border: 2px solid var(--border);
    border-radius: 15px; padding: 25px; text-align: center;
    cursor: pointer; transition: all 0.3s;
}
.payment-method:hover, .payment-method.selected {
    border-color: var(--primary);
    background: rgba(32,226,215,0.05);
}
.payment-method .pay-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.payment-method h4 { font-size: 1rem; margin-bottom: 5px; }
.payment-method p { color: var(--text-grey); font-size: 0.8rem; }

.payment-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
}
.payment-form h3 { font-size: 1.3rem; margin-bottom: 25px; color: var(--primary); }

.order-summary {
    background: linear-gradient(135deg, rgba(32,226,215,0.1), rgba(0,180,216,0.05));
    border: 1px solid var(--border-glow);
    border-radius: 15px; padding: 25px; margin-bottom: 30px;
}
.order-summary h4 { margin-bottom: 15px; font-size: 1.1rem; }
.order-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; color: var(--text-light); font-size: 0.95rem;
}
.order-row.total {
    border-top: 1px solid var(--border-glow);
    margin-top: 10px; padding-top: 15px;
    color: var(--primary); font-weight: 700; font-size: 1.1rem;
}

/* ===== AUTH PAGES (Login/Register) ===== */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 5% 60px;
    position: relative; z-index: 1;
}
.auth-box {
    width: 100%; max-width: 450px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 25px; padding: 50px 40px;
    position: relative; overflow: hidden;
}
.auth-box::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--orange));
}
.auth-box .auth-logo { text-align: center; margin-bottom: 30px; }
.auth-box .auth-logo .logo-main { font-size: 1.8rem; }
.auth-box h2 { text-align: center; font-size: 1.5rem; margin-bottom: 10px; }
.auth-box .subtitle { text-align: center; color: var(--text-grey); margin-bottom: 30px; font-size: 0.9rem; }

.auth-box .divider {
    display: flex; align-items: center; gap: 15px;
    margin: 25px 0; color: #555; font-size: 0.85rem;
}
.auth-box .divider::before, .auth-box .divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-box .auth-footer {
    text-align: center; margin-top: 25px;
    color: var(--text-grey); font-size: 0.9rem;
}
.auth-box .auth-footer a { color: var(--primary); font-weight: 700; }
.auth-box .auth-footer a:hover { text-decoration: underline; }

/* ===== DASHBOARD ===== */
.dashboard { padding: 120px 5% 60px; position: relative; z-index: 1; }
.dashboard-header {
    max-width: 1200px; margin: 0 auto 40px;
    background: linear-gradient(135deg, rgba(32,226,215,0.1), rgba(0,180,216,0.05));
    border: 1px solid var(--border-glow);
    border-radius: 25px; padding: 40px;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 20px;
}
.dash-welcome h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; }
.dash-welcome p { color: var(--text-grey); font-size: 0.95rem; }
.dash-stats {
    display: flex; gap: 25px; flex-wrap: wrap;
}
.stat-box {
    background: rgba(10,14,26,0.5); border: 1px solid var(--border);
    border-radius: 15px; padding: 20px 25px; text-align: center; min-width: 100px;
}
.stat-box .stat-num { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-box .stat-label { color: var(--text-grey); font-size: 0.8rem; }

.dash-grid {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.dash-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 30px;
}
.dash-section h3 {
    font-size: 1.2rem; margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.dash-lesson-item {
    display: flex; justify-content: space-between;
    align-items: center; padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dash-lesson-item:last-child { border-bottom: none; }
.dash-lesson-info h4 { font-size: 0.95rem; margin-bottom: 3px; }
.dash-lesson-info span { color: var(--text-grey); font-size: 0.8rem; }
.progress-bar {
    width: 120px; height: 8px;
    background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.plan-badge {
    display: inline-block; padding: 5px 15px;
    background: rgba(32,226,215,0.1); color: var(--primary);
    border-radius: 50px; font-size: 0.8rem; font-weight: 700;
    margin-bottom: 15px;
}
.plan-badge.vip { background: rgba(255,107,53,0.15); color: var(--orange); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px;
    color: var(--text-light); font-size: 0.9rem; font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem; transition: border-color 0.3s; direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(32,226,215,0.1);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group select option { background: var(--navy); color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-error { color: var(--orange); font-size: 0.8rem; margin-top: 5px; display: none; }
.form-group.error input { border-color: var(--orange); }
.form-group.error .form-error { display: block; }

.remember-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 25px; font-size: 0.85rem;
}
.remember-row label { display: flex; align-items: center; gap: 8px; color: var(--text-grey); cursor: pointer; }
.remember-row input[type="checkbox"] { accent-color: var(--primary); }
.remember-row a { color: var(--primary); font-size: 0.85rem; }

/* ===== CONTACT ===== */
.contact { padding: 60px 5% 100px; position: relative; z-index: 1; }
.contact-wrapper {
    max-width: 600px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 25px; padding: 50px 40px;
}
.contact-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 900px; margin: 0 auto 50px;
}
.contact-info-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 15px; padding: 25px; text-align: center;
    transition: all 0.3s;
}
.contact-info-card:hover { border-color: var(--border-glow); }
.contact-info-card .info-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 5px; }
.contact-info-card p { color: var(--text-grey); font-size: 0.85rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 100px 5%; background: rgba(255,255,255,0.02); position: relative; z-index: 1; }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.testimonial-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px; padding: 35px; transition: all 0.3s;
}
.testimonial-card:hover { border-color: rgba(32,226,215,0.2); }
.stars { color: var(--orange); font-size: 1rem; margin-bottom: 15px; }
.testimonial-card p {
    color: var(--text-dark); font-size: 0.95rem;
    line-height: 1.8; margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--bg-dark); font-size: 1.1rem;
}
.author-info h4 { font-size: 0.9rem; font-weight: 700; }
.author-info span { color: var(--text-grey); font-size: 0.8rem; }

/* ===== FOOTER ===== */
.footer {
    padding: 50px 5% 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative; z-index: 1;
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 40px; margin-bottom: 40px;
}
.footer-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.footer-section p, .footer-section a {
    color: var(--text-grey); font-size: 0.9rem;
    line-height: 2; display: block; transition: color 0.3s;
}
.footer-section a:hover { color: var(--primary); }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: all 0.3s;
}
.social-links a:hover { background: var(--primary); color: var(--bg-dark); border-color: var(--primary); }
.footer-bottom {
    text-align: center; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #555; font-size: 0.85rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed; bottom: 30px; left: 30px;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark); border: none; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; z-index: 100;
    opacity: 0; transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}
.scroll-top.visible { opacity: 1; }
.scroll-top:hover { transform: translateY(-3px); }

/* ===== ALERT / TOAST ===== */
.toast {
    position: fixed; top: 100px; left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 15px 30px; border-radius: 15px;
    font-weight: 700; font-size: 0.95rem; z-index: 9999;
    opacity: 0; transition: all 0.4s ease;
    text-align: center; min-width: 300px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(32,226,215,0.2); border: 1px solid var(--primary); color: var(--primary); }
.toast.error { background: rgba(255,107,53,0.2); border: 1px solid var(--orange); color: var(--orange); }
.toast.info { background: rgba(0,180,216,0.2); border: 1px solid var(--primary-dark); color: var(--primary); }

/* ===== POPUP / MODAL ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--navy); border: 1px solid var(--border-glow);
    border-radius: 25px; padding: 50px 40px; max-width: 500px;
    text-align: center; position: relative; animation: popIn 0.5s ease;
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-close {
    position: absolute; top: 15px; left: 15px;
    width: 35px; height: 35px; border: none;
    background: rgba(255,255,255,0.1); color: #fff;
    border-radius: 50%; font-size: 1.1rem; cursor: pointer;
    transition: background 0.3s;
}
.modal-close:hover { background: rgba(255,107,53,0.3); }
.modal-box h2 { font-size: 1.5rem; margin-bottom: 15px; }
.modal-box p { color: var(--text-light); line-height: 1.8; margin-bottom: 25px; font-size: 0.95rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .features-grid, .lessons-grid, .pricing-grid,
    .testimonials-grid, .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dash-grid { grid-template-columns: 1fr; }
    .payment-methods { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute;
        top: 100%; right: 0; width: 100%;
        background: rgba(10,14,26,0.98);
        flex-direction: column; padding: 20px; gap: 15px;
        border-bottom: 1px solid rgba(32,226,215,0.1);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .features-grid, .lessons-grid, .pricing-grid,
    .testimonials-grid, .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .price-card.featured { transform: scale(1); }
    .price-card.featured:hover { transform: translateY(-5px); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .auth-box { padding: 35px 25px; }
    .payment-methods { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; text-align: center; }
    .dash-stats { justify-content: center; }
    .page-header h1 { font-size: 1.8rem; }
    .download-section { flex-direction: column; text-align: center; }
}