@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a7fd4;
  --primary-dark: #1565b0;
  --primary-light: #4fa3e8;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --green: #10b981;
  --green-dark: #059669;
  --bg-dark: #0f1b2d;
  --bg-card: rgba(255,255,255,0.07);
  --text-white: #ffffff;
  --text-muted: rgba(255,255,255,0.6);
  --border: rgba(255,255,255,0.12);
  --shadow-glow: 0 0 60px rgba(26,127,212,0.3);
  --radius: 20px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* ─── Background Blobs ─── */
.bg-blobs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-blobs .blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.bg-blobs .blob-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -200px; animation-delay: 0s; }
.bg-blobs .blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; right: -100px; animation-delay: 3s; }
.bg-blobs .blob-3 { width: 300px; height: 300px; background: var(--green); top: 40%; left: 50%; animation-delay: 1.5s; }
@keyframes blobFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(30px, -30px) scale(1.05); } }

/* ─── Glass Panel ─── */
.glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.glass-white {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  color: #1e293b;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0; background: white; opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 0.1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; box-shadow: 0 8px 24px rgba(26,127,212,0.4);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(26,127,212,0.6); transform: translateY(-2px); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
  color: white; box-shadow: 0 8px 24px rgba(6,182,212,0.4);
}
.btn-accent:hover { box-shadow: 0 12px 32px rgba(6,182,212,0.6); transform: translateY(-2px); }

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white; box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}
.btn-green:hover { box-shadow: 0 12px 32px rgba(16,185,129,0.6); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.3); padding: 12px 30px;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.btn-outline-blue {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); padding: 12px 30px;
}
.btn-outline-blue:hover { background: var(--primary); color: white; }

.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-full { width: 100%; }

/* ─── Form Elements ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px; font-size: 14px;
  font-weight: 500; color: #475569;
}
.form-input {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 2px solid #e2e8f0; background: #f8fafc;
  font-family: 'Outfit', sans-serif; font-size: 15px; color: #1e293b;
  transition: all 0.3s; outline: none;
}
.form-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(26,127,212,0.1); }
.form-input::placeholder { color: #94a3b8; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; width: 20px; height: 20px;
}
.input-icon-wrap .form-input { padding-left: 46px; }
.input-icon-wrap .input-icon-right {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; cursor: pointer; width: 20px; height: 20px;
}
.input-icon-wrap .form-input.has-right-icon { padding-right: 46px; }

/* ─── Divider ─── */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: #94a3b8; font-size: 13px; margin: 20px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* ─── Page Container ─── */
.page { position: relative; z-index: 1; min-height: 100vh; }

/* ─── Navbar ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,27,45,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(15,27,45,0.95); }
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.navbar-brand-text { font-size: 18px; font-weight: 700; color: white; }
.navbar-brand-text span { color: var(--accent-light); }
.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.navbar-links a:hover { color: white; background: rgba(255,255,255,0.1); }
.navbar-links a.active { color: white; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-toggle {
  display: none; background: none; border: none; color: white;
  font-size: 24px; cursor: pointer; padding: 8px; border-radius: 8px;
  line-height: 1;
}
.navbar-toggle:hover { background: rgba(255,255,255,0.1); }

/* ─── About / Mission grids ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; padding-bottom: 80px;
  position: relative; overflow: hidden;
}
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px;
  background: rgba(26,127,212,0.15); border: 1px solid rgba(26,127,212,0.3);
  font-size: 13px; font-weight: 500; color: var(--accent-light);
  margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 17px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: white; }
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ─── Phone Mockup ─── */
.phone-container { position: relative; display: flex; justify-content: center; }
.phone-mockup {
  width: 280px; height: 560px; border-radius: 40px;
  background: #0f1b2d; border: 8px solid rgba(255,255,255,0.15);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), var(--shadow-glow);
  overflow: hidden; position: relative;
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(-2deg); }
}
.phone-screen { width: 100%; height: 100%; background: linear-gradient(160deg, #1a3a5c 0%, #0f1b2d 100%); }
.phone-mockup::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.3); z-index: 5;
}
.phone-glow {
  position: absolute; inset: -40px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26,127,212,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.floating-card {
  position: absolute; padding: 14px 18px; border-radius: 16px;
  background: rgba(255,255,255,0.95); color: #1e293b;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  animation: cardFloat 3s ease-in-out infinite;
}
.floating-card.card-left { left: -60px; top: 30%; animation-delay: 0.5s; }
.floating-card.card-right { right: -60px; top: 60%; animation-delay: 1.5s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating-card-icon { font-size: 20px; margin-bottom: 4px; }

/* ─── Features Section ─── */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-badge { font-size: 13px; font-weight: 600; color: var(--accent-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.feature-card {
  padding: 32px; border-radius: var(--radius);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 24px;
  background: linear-gradient(135deg, rgba(26,127,212,0.2), rgba(6,182,212,0.1));
  border: 1px solid rgba(26,127,212,0.2);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── Splash Screen ─── */
.splash-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1565b0 0%, #0f1b2d 50%, #042a47 100%);
  position: relative; overflow: hidden;
}
.splash-circles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.splash-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.splash-circle-1 { width: 300px; height: 300px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.splash-circle-2 { width: 500px; height: 500px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.splash-circle-3 { width: 700px; height: 700px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.splash-content { text-align: center; z-index: 1; animation: splashIn 1s ease-out; }
@keyframes splashIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.splash-logo { width: 120px; height: 120px; border-radius: 30px; margin: 0 auto 24px; display: block; object-fit: cover; box-shadow: 0 20px 60px rgba(26,127,212,0.5); }
.splash-logo-placeholder {
  width: 120px; height: 120px; border-radius: 30px; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; box-shadow: 0 20px 60px rgba(26,127,212,0.5);
}
.splash-title { font-size: 32px; font-weight: 800; color: white; margin-bottom: 8px; }
.splash-subtitle { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 60px; }
.splash-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash-bar { width: 200px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.splash-progress { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: loadBar 2.5s ease-in-out forwards; }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }
.splash-loading-text { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ─── Onboarding ─── */
.onboarding-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.onboarding-container {
  max-width: 1100px; width: 100%; margin: 0 auto;
}
.onboarding-header { text-align: center; margin-bottom: 60px; }
.onboarding-slides { position: relative; overflow: hidden; }
.slides-track {
  display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  min-width: 100%; display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; padding: 0 40px;
}
.slide-visual {
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(135deg, rgba(26,127,212,0.1), rgba(6,182,212,0.05));
  border-radius: 32px; border: 1px solid rgba(255,255,255,0.08);
  padding: 60px 40px; height: 380px;
}
.slide-illustration { font-size: 100px; text-align: center; }
.slide-content { padding: 20px 0; }
.slide-step { font-size: 13px; font-weight: 600; color: var(--accent-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.slide-title { font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.slide-title .hl { background: linear-gradient(135deg, var(--accent-light), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.slide-desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 40px; }
.slide-dots { display: flex; gap: 8px; margin-bottom: 32px; }
.dot {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.2);
  cursor: pointer; transition: all 0.3s;
}
.dot.active { width: 32px; background: var(--primary); }
.dot:not(.active) { width: 8px; }
.slide-nav { display: flex; gap: 16px; align-items: center; }

/* ─── Auth Pages ─── */
.auth-page {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(160deg, #1a3a6e 0%, #0f1b2d 60%, #042a2d 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 60px; position: relative; overflow: hidden;
}
.auth-left-content { text-align: center; z-index: 1; }
.auth-left-logo { width: 90px; height: 90px; border-radius: 24px; margin: 0 auto 24px; display: block; object-fit: cover; }
.auth-left-logo-placeholder {
  width: 90px; height: 90px; border-radius: 24px; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.auth-left-title { font-size: 28px; font-weight: 800; color: white; margin-bottom: 12px; }
.auth-left-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 320px; margin: 0 auto; }
.auth-features { margin-top: 48px; text-align: left; }
.auth-feature {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8); font-size: 14px;
}
.auth-feature:last-child { border-bottom: none; }
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(26,127,212,0.2); border: 1px solid rgba(26,127,212,0.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 16px;
}
.auth-right {
  background: white; display: flex; align-items: center; justify-content: center;
  padding: 60px 80px;
}
.auth-form-container { width: 100%; max-width: 440px; }
.auth-form-header { margin-bottom: 36px; }
.auth-form-subtitle { font-size: 14px; color: #64748b; margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; }
.auth-form-title { font-size: 30px; font-weight: 800; color: #0f172a; }
.auth-form-title span { color: var(--primary); }
.auth-form-desc { font-size: 15px; color: #64748b; margin-top: 8px; }
.auth-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 20px; border-radius: 12px;
  border: 2px solid #e2e8f0; background: white;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600;
  color: #1e293b; cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.social-btn:hover { border-color: #cbd5e1; background: #f8fafc; transform: translateY(-1px); }
.social-icon { width: 22px; height: 22px; }
.forgot-link { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 500; float: right; }
.forgot-link:hover { text-decoration: underline; }
.terms-text { font-size: 12px; color: #94a3b8; margin-top: 20px; text-align: center; line-height: 1.6; }
.terms-text a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ─── OTP / Verification ─── */
.otp-inputs { display: flex; gap: 12px; justify-content: center; margin: 32px 0; }
.otp-input {
  width: 60px; height: 68px; border-radius: 16px;
  border: 2px solid #e2e8f0; background: #f8fafc;
  font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 700;
  text-align: center; color: #0f172a; outline: none;
  transition: all 0.3s; caret-color: var(--primary);
}
.otp-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(26,127,212,0.1); }
.otp-input.filled { border-color: var(--primary); background: rgba(26,127,212,0.05); }
.verify-phone { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.resend-text { font-size: 14px; color: #64748b; text-align: center; margin-top: 20px; }
.resend-btn { color: var(--primary); font-weight: 600; cursor: pointer; background: none; border: none; font-family: 'Outfit', sans-serif; font-size: 14px; }
.resend-btn:hover { text-decoration: underline; }
.countdown { color: #94a3b8; font-size: 13px; text-align: center; margin-top: 8px; }

/* ─── Phone Inner Screen (for splash/on boarding preview in hero) ─── */
.phone-inner-content {
  padding: 36px 20px 20px; display: flex; flex-direction: column; align-items: center;
  height: 100%; text-align: center;
}
.phone-inner-logo { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, #1a7fd4, #06b6d4); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.phone-inner-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 6px; }
.phone-inner-desc { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.5; }
.phone-progress-bar { width: 80%; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: auto; margin-bottom: 20px; overflow: hidden; }
.phone-progress-fill { height: 100%; background: linear-gradient(90deg, #1a7fd4, #06b6d4); width: 60%; border-radius: 2px; }

/* ─── Footer ─── */
.footer {
  padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-light); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ─── App Shell (Dashboard) ─── */
.app-container { display: flex; min-height: 100vh; background: var(--bg-dark); }
.app-sidebar {
  width: 260px; background: rgba(15,27,45,0.95); border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
  padding: 24px 0; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px; padding: 0 24px; margin-bottom: 40px; text-decoration: none;
}
.sidebar-logo-icon {
  width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sidebar-logo span { font-size: 16px; font-weight: 700; color: white; }
.sidebar-menu { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 16px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(26,127,212,0.1); color: var(--accent-light);
}
.sidebar-link-icon { font-size: 18px; width: 24px; text-align: center; }
.app-main { flex: 1; margin-left: 260px; padding: 40px; min-height: 100vh; display: flex; flex-direction: column; }
.page-header { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; }
.page-title { font-size: 24px; font-weight: 800; color: white; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.user-dropdown { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 50px; background: rgba(255,255,255,0.05); cursor: pointer; }
.user-dropdown img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-dropdown span { font-size: 13px; font-weight: 600; }

/* ─── Transcribe specific ─── */
.transcribe-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; flex: 1; }
.transcribe-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; min-height: 500px; }
.transcribe-area { flex: 1; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 20px; margin-bottom: 20px; font-size: 16px; line-height: 1.6; outline: none; color: white; border: 1px solid rgba(255,255,255,0.05); }
.transcribe-controls { display: flex; justify-content: center; gap: 16px; }
.btn-record { width: 64px; height: 64px; border-radius: 50%; background: #ef4444; color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; border: none; box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); transition: transform 0.2s; }
.btn-record:hover { transform: scale(1.05); }
.transcribe-history { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
.history-list { overflow-y: auto; flex: 1; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.history-item { padding: 16px; background: rgba(255,255,255,0.02); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: background 0.2s; }
.history-item:hover { background: rgba(255,255,255,0.05); }
.history-title { font-size: 14px; font-weight: 600; color: white; margin-bottom: 4px; }
.history-date { font-size: 12px; color: var(--text-muted); }

/* ─── Modal ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #0f1b2d; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 40px; width: 100%; max-width: 400px; text-align: center; transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(16,185,129,0.2); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 20px; }

/* ─── Learning specific ─── */
.learning-layout { display: flex; flex-direction: column; gap: 32px; }
.category-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.category-pill { padding: 8px 20px; border-radius: 50px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: white; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.category-pill.active, .category-pill:hover { background: var(--primary); border-color: var(--primary); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.course-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); overflow: hidden; transition: transform 0.2s; cursor: pointer; }
.course-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.course-thumb { height: 160px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; }
.course-thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.course-card:hover .course-thumb-overlay { opacity: 1; }
.play-btn { width: 48px; height: 48px; border-radius: 50%; background: white; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px; }
.course-info { padding: 16px; }
.course-title { font-size: 15px; font-weight: 600; color: white; margin-bottom: 8px; }
.course-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.course-badge { padding: 4px 8px; border-radius: 4px; background: rgba(26,127,212,0.2); color: var(--accent-light); font-size: 11px; font-weight: 600; }

/* ─── Quiz specific ─── */
.quiz-container { max-width: 680px; margin: 0 auto; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 40px; }
.quiz-header { text-align: center; margin-bottom: 32px; }
.quiz-media { width: 100%; height: 240px; background: rgba(0,0,0,0.3); border-radius: 16px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.quiz-question { font-size: 20px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option { padding: 16px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; font-size: 15px; cursor: pointer; transition: all 0.2s; text-align: left; display: flex; align-items: center; gap: 12px; }
.quiz-option-letter { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.quiz-option:hover { background: rgba(255,255,255,0.1); }
.quiz-option.selected { background: rgba(26,127,212,0.2); border-color: var(--primary); }
.quiz-option.selected .quiz-option-letter { background: var(--primary); color: white; }

/* ─── Profile specific ─── */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.profile-sidebar { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px; align-self: start; }
.profile-avatar-wrap { text-align: center; margin-bottom: 32px; position: relative; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: inline-flex; align-items: center; justify-content: center; font-size: 40px; margin-bottom: 12px; }
.profile-edit-btn { position: absolute; bottom: 10px; right: 50px; width: 32px; height: 32px; border-radius: 50%; background: white; color: var(--primary); display: flex; align-items: center; justify-content: center; border: 2px solid #0f1b2d; cursor: pointer; font-size: 14px; }
.profile-name { font-size: 18px; font-weight: 700; color: white; }
.profile-email { font-size: 14px; color: var(--text-muted); }
.profile-menu { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.profile-menu-item { padding: 12px 16px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.profile-menu-item:hover, .profile-menu-item.active { background: rgba(255,255,255,0.05); color: white; }
.profile-content { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 32px; }

/* ─── Animations ─── */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-in.visible { opacity: 1; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .phone-container { display: none; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .slide { grid-template-columns: 1fr; gap: 40px; }
  .slide-visual { height: 220px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 60px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .transcribe-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

/* ─── Responsive Navbar (mobile menu) ─── */
@media (max-width: 860px) {
  .navbar { flex-wrap: wrap; height: auto; min-height: 72px; padding: 14px 20px; }
  .navbar-toggle { display: flex; align-items: center; justify-content: center; }
  .navbar-links, .navbar-actions {
    flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 8px;
  }
  .navbar-links { margin-top: 12px; }
  .navbar-actions { margin-top: 12px; gap: 12px; }
  .navbar-actions .btn { width: 100%; }
  .navbar.active .navbar-links, .navbar.active .navbar-actions { display: flex; }
  .navbar-links a { padding: 12px 16px; }
  .hero { padding-top: 100px; }
}

@media (max-width: 640px) {
  .navbar { padding: 12px 20px; }
  .hero-content { padding: 0 20px; }
  .section-inner { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .auth-right { padding: 40px 24px; }
  .otp-inputs { gap: 8px; }
  .otp-input { width: 50px; height: 58px; font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { padding: 0 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .slide { padding: 0 20px; }
  .app-sidebar { transform: translateX(-100%); z-index: 1000; width: 280px; }
  .app-sidebar.show { transform: translateX(0); }
  .app-main { margin-left: 0; padding: 20px; padding-top: 80px; }
  .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; background: none; border: none; color: white; font-size: 24px; cursor: pointer; position: fixed; top: 20px; left: 20px; z-index: 99; background: rgba(15,27,45,0.8); padding: 8px; border-radius: 8px; backdrop-filter: blur(10px); }
  .quiz-container { padding: 24px; }
  .profile-content { padding: 20px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 24px; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-stat-offset { margin-top: 0 !important; }
}
