/* ══════════════════════════════════════════════════════
   FrenchForIndia — Global Styles
   Navy Blue & Gold — Ed-tech, trust-focused
   ══════════════════════════════════════════════════════ */

:root {
  --navy:       #1a2b6b;
  --navy-dark:  #111d4e;
  --navy-light: #2d3e8c;
  --gold:       #D4AF37;
  --gold-light: #f0d060;
  --gold-dark:  #b8961e;
  --blue-mid:   #4a90d9;
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --grey-light: #eef0f6;
  --grey:       #9aa0b8;
  --text:       #1a1a2e;
  --text-light: #555870;
  --success:    #22c55e;
  --warning:    #f59e0b;
  --error:      #ef4444;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(26,43,107,0.10);
  --shadow-lg:  0 8px 48px rgba(26,43,107,0.18);
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

.punjabi-text { font-family: 'Noto Sans Gurmukhi', 'Raavi', serif; }
.hindi-text   { font-family: 'Noto Sans Devanagari', 'Mangal', serif; }
/* Heading subtitle (English) — always visible, not affected by the toggle */
.en-head { font-weight: 400; font-size: 0.7em; color: var(--grey, #6b7280); }
h3 .en-head, h4 .en-head { display: inline; }
/* Body explanatory glosses — controlled by the language toggle */
.en-sub { color: var(--text-light, #5b6472); }

/* Language toggle bar */
.ffi-langbar { display: inline-flex; border: 1px solid var(--grey-light, #e5e7eb); border-radius: 999px; overflow: hidden; background: #fff; vertical-align: middle; }
.ffi-langbar button { font: inherit; font-size: 0.8rem; font-weight: 600; border: none; background: #fff; color: var(--navy, #1A2B6B); padding: 6px 14px; cursor: pointer; line-height: 1.2; }
.ffi-langbar button + button { border-left: 1px solid var(--grey-light, #e5e7eb); }
.ffi-langbar button.active { background: var(--navy, #1A2B6B); color: #fff; }

/* Toggle: show only the selected language's body glosses */
.lang-en .hindi-text, .lang-en .punjabi-text { display: none !important; }
.lang-hi .en-sub, .lang-hi .punjabi-text { display: none !important; }
.lang-pa .en-sub, .lang-pa .hindi-text { display: none !important; }

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(212,175,55,0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.45); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-gold {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }

.btn-lg { padding: 18px 38px; font-size: 1.1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Navigation ────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1180px; margin: 0 auto;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-logo img { height: 40px; }
.navbar-logo-text { color: var(--white); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.3px; }
.navbar-logo-text span { color: var(--gold); }
.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.95rem; transition: var(--transition);
}
.navbar-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.navbar-links .btn { padding: 10px 20px; font-size: 0.95rem; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white); padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '🇫🇷'; position: absolute; right: -60px; top: -40px;
  font-size: 280px; opacity: 0.05; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4); color: var(--gold);
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.hero-sub-lang { font-size: 1rem; color: rgba(255,255,255,0.65); margin-bottom: 32px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }

.hero-card {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.hero-card-flag { font-size: 4rem; margin-bottom: 16px; }
.hero-card h3 { color: var(--gold); margin-bottom: 8px; }
.hero-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 20px; }
.hero-card-levels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.level-badge {
  background: rgba(212,175,55,0.15); color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}
.level-badge.active { background: var(--gold); color: var(--navy-dark); }

/* ── Urgency Banner ────────────────────────────────────── */
.urgency-banner {
  background: linear-gradient(90deg, #7c2d12, #dc2626, #7c2d12);
  color: var(--white); text-align: center; padding: 14px 24px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2px;
}
.urgency-banner .punjabi-text, .urgency-banner .hindi-text { font-size: 0.9rem; opacity: 0.9; }

/* ── Features ──────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--off-white); border-radius: var(--radius);
  padding: 32px; text-align: center; transition: var(--transition);
  border: 1px solid var(--grey-light);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.feature-icon { font-size: 2.8rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ── Pricing ───────────────────────────────────────────── */
.pricing-section { background: var(--off-white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; position: relative;
  border: 2px solid var(--grey-light); transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--gold); transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy-dark);
  padding: 4px 20px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  white-space: nowrap;
}
.pricing-icon { font-size: 2.4rem; margin-bottom: 16px; }
.pricing-name { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pricing-name-lang { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }
.pricing-price { margin-bottom: 8px; }
.pricing-amount { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-currency { font-size: 1.2rem; font-weight: 600; vertical-align: super; color: var(--navy); }
.pricing-period { font-size: 0.85rem; color: var(--grey); }
.pricing-features { list-style: none; margin: 20px 0 28px; }
.pricing-features li {
  padding: 8px 0; font-size: 0.93rem; color: var(--text-light);
  border-bottom: 1px solid var(--grey-light); display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.no::before { content: '✗'; color: var(--grey); }

/* ── How It Works ──────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.step-card { text-align: center; padding: 28px 16px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h4 { margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 0.9rem; }

/* ── Social/Instagram ──────────────────────────────────── */
.social-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); text-align: center;
}
.instagram-card {
  display: inline-flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 28px 40px; margin-top: 28px;
  text-decoration: none; transition: var(--transition);
}
.instagram-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-4px); }
.instagram-icon { font-size: 3rem; }
.instagram-info h3 { color: var(--gold); font-size: 1.4rem; }
.instagram-info p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ── Forms ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; background: var(--off-white);
  display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
.auth-card {
  background: var(--white); border-radius: var(--radius);
  padding: 48px 40px; width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--grey-light);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h2 { font-size: 1.8rem; }
.auth-logo p { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }
.auth-tabs { display: flex; margin-bottom: 28px; border: 1px solid var(--grey-light); border-radius: var(--radius-sm); overflow: hidden; }
.auth-tab {
  flex: 1; padding: 12px; background: transparent; border: none;
  cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--grey);
  transition: var(--transition);
}
.auth-tab.active { background: var(--navy); color: var(--white); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 13px 16px; border: 2px solid var(--grey-light);
  border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition);
  outline: none; color: var(--text); background: var(--white);
}
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,43,107,0.1); }
.form-divider { text-align: center; color: var(--grey); font-size: 0.85rem; margin: 12px 0; position: relative; }
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px;
  background: var(--grey-light);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }
.form-toggle { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }
.form-toggle a { color: var(--navy); font-weight: 600; text-decoration: none; }
.form-error { background: #fff0f0; border: 1px solid #fca5a5; color: var(--error); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; display: none; }
.form-success { background: #f0fff4; border: 1px solid #86efac; color: #166534; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; display: none; }

/* ── Dashboard ─────────────────────────────────────────── */
.dashboard { background: var(--off-white); min-height: 100vh; }
.dash-header {
  background: var(--navy); color: var(--white); padding: 28px 0;
}
.dash-header-inner { display: flex; justify-content: space-between; align-items: center; }
.dash-greeting h2 { color: var(--white); }
.dash-greeting p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.dash-plan-badge {
  background: var(--gold); color: var(--navy-dark);
  padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 0.85rem;
}
.dash-body { padding: 40px 0; }
.dash-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.dash-sidebar {}
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.sidebar-card h4 { margin-bottom: 16px; font-size: 1rem; }
.progress-ring { text-align: center; margin-bottom: 12px; }
.progress-ring-num { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.progress-ring-label { font-size: 0.8rem; color: var(--grey); }

.module-list { display: flex; flex-direction: column; gap: 16px; }
.module-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  position: relative;
}
.module-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.module-card.locked { opacity: 0.7; cursor: default; }
.module-card.locked:hover { border-color: transparent; transform: none; }
.module-level { display: inline-block; background: var(--navy); color: var(--white); padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.module-level.A1 { background: #22c55e; }
.module-level.A2 { background: #3b82f6; }
.module-level.B1 { background: #8b5cf6; }
.module-level.B2 { background: var(--navy); }
.module-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.module-lang { font-size: 0.82rem; color: var(--text-light); }
.module-meta { display: flex; gap: 12px; margin-top: 12px; font-size: 0.8rem; color: var(--grey); }
.lock-overlay {
  position: absolute; top: 16px; right: 16px;
  font-size: 1.4rem; opacity: 0.5;
}
.free-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--success); color: var(--white);
  padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; font-weight: 700;
}

/* ── Lesson View ───────────────────────────────────────── */
.lesson-view { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.lesson-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--grey-light); }
.lesson-content { line-height: 1.8; }
.phrase-card {
  background: var(--off-white); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 12px;
  border-left: 4px solid var(--gold); display: grid;
  grid-template-columns: auto auto 1fr 1fr; gap: 16px; align-items: center;
}
.phrase-card .french { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.phrase-card .pronunciation { font-size: 0.85rem; color: var(--grey); font-style: italic; }
.tip-box { background: linear-gradient(135deg, rgba(26,43,107,0.05), rgba(212,175,55,0.08)); border: 1px solid rgba(212,175,55,0.3); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; }
.tip-box h4 { color: var(--navy); margin-bottom: 8px; }
.lesson-intro { background: rgba(26,43,107,0.04); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; }

/* ── Quiz ──────────────────────────────────────────────── */
.quiz-section { margin-top: 32px; border-top: 2px solid var(--grey-light); padding-top: 28px; }
.quiz-section h3 { margin-bottom: 20px; }
.quiz-q { background: var(--off-white); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 16px; }
.quiz-q p { font-weight: 600; margin-bottom: 14px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt {
  background: var(--white); border: 2px solid var(--grey-light);
  border-radius: var(--radius-sm); padding: 12px 16px;
  cursor: pointer; font-size: 0.9rem; transition: var(--transition);
  text-align: left;
}
.quiz-opt:hover { border-color: var(--navy); background: var(--off-white); }
.quiz-opt.correct { border-color: var(--success); background: #f0fff4; color: #166534; }
.quiz-opt.wrong   { border-color: var(--error); background: #fff0f0; color: #991b1b; }

/* ── Vocab Table ───────────────────────────────────────── */
.vocab-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.93rem; }
.vocab-table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; }
.vocab-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.vocab-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.vocab-table td { padding: 11px 16px; border-bottom: 1px solid var(--grey-light); }
.vocab-table tr:hover td { background: var(--off-white); }

/* ── Admin Panel ───────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--navy); color: var(--white);
  padding: 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-header h3 { color: var(--gold); font-size: 1rem; }
.admin-sidebar-header p { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 0.92rem; transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.07); color: var(--white);
  border-left-color: var(--gold);
}
.admin-nav a .nav-icon { font-size: 1.1rem; }
.admin-main { flex: 1; background: var(--off-white); }
.admin-topbar {
  background: var(--white); padding: 16px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--grey-light); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-topbar h2 { font-size: 1.2rem; }
.admin-content { padding: 28px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 24px; border: 1px solid var(--grey-light); text-align: center;
}
.stat-card .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--grey); margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--navy); color: var(--white); padding: 14px 18px; text-align: left; font-size: 0.88rem; font-weight: 600; }
.data-table td { padding: 13px 18px; border-bottom: 1px solid var(--grey-light); font-size: 0.9rem; vertical-align: middle; }
.data-table tr:hover td { background: var(--off-white); }
.data-table .actions { display: flex; gap: 8px; }

.admin-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.admin-panel-header { background: var(--navy); color: var(--white); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-panel-header h3 { color: var(--white); font-size: 1rem; }
.admin-panel-body { padding: 24px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; display: none; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--grey-light); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.05rem; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--grey-light); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--grey); line-height: 1; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.badge-free   { background: #e0f2fe; color: #0369a1; }
.badge-tests  { background: #ede9fe; color: #6d28d9; }
.badge-full   { background: rgba(212,175,55,0.15); color: var(--gold-dark); }
.badge-admin  { background: var(--navy); color: var(--white); }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }

/* ── Demo Page ─────────────────────────────────────────── */
.demo-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white); padding: 60px 0; text-align: center;
}
.demo-hero h1 { color: var(--white); }
.demo-hero h1 span { color: var(--gold); }
.demo-body { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.demo-progress { background: var(--off-white); border-radius: 50px; height: 10px; margin-bottom: 32px; overflow: hidden; }
.demo-progress-bar { height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 50px; transition: width 0.5s ease; }
.demo-step { display: none; }
.demo-step.active { display: block; }
.demo-nav { display: flex; justify-content: space-between; margin-top: 32px; }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); margin-bottom: 14px; font-size: 0.95rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); text-decoration: none; margin-bottom: 9px; font-size: 0.9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 400px; margin: 0 auto; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .features-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .navbar-links .hide-mobile { display: none; }
  .navbar-inner { padding: 12px 14px; }
  .navbar-logo { gap: 8px; }
  .navbar-logo-text { font-size: 1.1rem; }
  .navbar-trust { font-size: 0.72rem !important; white-space: nowrap; }
  .navbar-links { gap: 6px; }
  .navbar-links .btn { padding: 8px 12px; font-size: 0.82rem; }
  .auth-card { padding: 32px 24px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .phrase-card { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { gap: 20px; }
}

/* ── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-navy    { color: var(--navy); }
.text-light   { color: var(--text-light); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }

/* Spinner */
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: var(--white); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
#toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  background: var(--navy); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 600;
  transform: translateY(80px); opacity: 0; transition: all 0.3s ease;
  max-width: 340px;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { background: #16a34a; }
#toast.error   { background: #dc2626; }

/* Section heading */
.section-heading { text-align: center; margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p { color: var(--text-light); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.section-heading .lang-sub { font-size: 0.9rem; color: var(--grey); margin-top: 6px; }
