/* ══════════════════════════════════════════════════════════════════════
   Frauda — B2C SaaS Design System
   Single source of truth for all colors via CSS custom properties.
   Pages: Landing (/), Verify (/verify), Dashboard (/dashboard)
══════════════════════════════════════════════════════════════════════ */

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

/* ── Global Theme Transition ─────────────────────────────────────────── */
*,
*::before,
*::after {
  transition: background-color 0.35s ease, color 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Design Tokens (Light) ────────────────────────────────────────────── */
:root {
  --bg: #f8f9fb;
  --bg-alt: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #ebedf0;
  --border: #dfe2e8;
  --border-light: #eceef2;
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #f0fdfa;
  --accent-border: #99f6e4;
  --accent-glow: rgba(13, 148, 136, .12);

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;

  /* Risk colours (same as old) */
  --risk-red: #b91c1c;
  --risk-red-bg: #fef2f2;
  --risk-red-border: #fecaca;
  --risk-yellow: #b45309;
  --risk-yellow-bg: #fffbeb;
  --risk-yellow-border: #fde68a;
  --risk-green: #15803d;
  --risk-green-bg: #f0fdf4;
  --risk-green-border: #bbf7d0;

  /* Dashboard aliases */
  --red: #b91c1c; --red-bg: #fef2f2; --red-border: #fecaca;
  --amber: #b45309; --amber-bg: #fffbeb; --amber-border: #fde68a;
  --green: #15803d; --green-bg: #f0fdf4; --green-border: #bbf7d0;

  /* Typography */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Cascadia Code', 'Fira Code', monospace;

  /* Spacing & Shape */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);

  /* Transitions */
  --transition-theme: background-color .35s ease, color .25s ease, border-color .3s ease, box-shadow .3s ease;

  /* Brand Palette */
  --navy: #0D1F3C;
  --blue: #1A6BFF;
  --teal: #00C9B1;
  --frauda-red: #E8274B;
  --light-gray: #D1D8E4;

  /* Navbar specific (light theme — bright security blue) */
  --navbar-bg: #1351B4;
  --navbar-border: rgba(0, 0, 0, 0.2);
  --navbar-text: #FFFFFF;
  --navbar-text-muted: rgba(255, 255, 255, .75);
  --navbar-btn-border: rgba(255, 255, 255, .22);
  --navbar-btn-hover-bg: rgba(255, 255, 255, .13);
  --navbar-btn-hover-border: rgba(255, 255, 255, .38);
  --navbar-link-hover: #FFFFFF;
  --navbar-link-active: #7EE8DE;

  /* Page background (blue-tinted for security feel) */
  --bg: #E8F0FE;
  --bg-alt: #DBE8FD;
}

/* ── Design Tokens (Dark) ─────────────────────────────────────────────── */
html[data-theme="dark"] {
  --bg: #07101E;
  --bg-alt: #08121F;
  --surface: #0C1C35;
  --surface-2: #102240;
  --surface-3: #162A4B;
  --border: #1B3560;
  --border-light: #152D54;
  --text-1: #e8ebf0;
  --text-2: #adb5c0;
  --text-3: #7b8694;

  --accent-light: #134e4a;
  --accent-border: #2dd4bf33;
  --accent-glow: rgba(45, 212, 191, .1);

  --danger-bg: #450a0a44;
  --danger-border: #7f1d1d;
  --warning-bg: #451a0344;
  --warning-border: #78350f;
  --success-bg: #05260a44;
  --success-border: #166534;

  --risk-red-bg: #450a0a44; --risk-red-border: #7f1d1d;
  --risk-yellow-bg: #451a0344; --risk-yellow-border: #78350f;
  --risk-green-bg: #05260a44; --risk-green-border: #166534;

  --red-bg: #450a0a44; --red-border: #7f1d1d;
  --amber-bg: #451a0344; --amber-border: #78350f;
  --green-bg: #05260a44; --green-border: #166534;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.25);
  --shadow: 0 1px 3px rgba(0,0,0,.36), 0 1px 2px rgba(0,0,0,.22);
  --shadow-lg: 0 6px 16px rgba(0,0,0,.38);

  /* Navbar specific (dark theme — deep security navy) */
  --navbar-bg: #071328;
  --navbar-border: rgba(26, 107, 255, 0.15);
  --navbar-text: #FFFFFF;
  --navbar-text-muted: #D1D8E4;
  --navbar-btn-border: rgba(255, 255, 255, 0.15);
  --navbar-btn-hover-bg: rgba(26, 107, 255, 0.1);
  --navbar-btn-hover-border: rgba(26, 107, 255, 0.3);
  --navbar-link-hover: #FFFFFF;
  --navbar-link-active: #00C9B1;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 112.5%; /* 18px base for scaling */ }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  transition: var(--transition-theme);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--text-1); }

/* ── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  transition: var(--transition-theme);
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Logo SVG styling */
.nav-logo-svg {
  height: 30px;
  width: auto;
}
.nav-logo-svg path:first-child { fill: var(--blue); }
.nav-logo-svg path:last-child { fill: #ffffff; }

/* Logo image styling — no filters to distort */
.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Legacy PNG logo (fallback) */
.nav-logo { height: 30px; width: auto; object-fit: contain; }

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--navbar-text); letter-spacing: -.03em;
}
.nav-sep { width: 1px; height: 20px; background: var(--navbar-btn-border); margin: 0 6px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 0.833rem; font-weight: 500;
  color: var(--navbar-text-muted); text-decoration: none;
  padding: 8px 10px; border-radius: 8px;
  letter-spacing: 0.01em;
  transition: all .15s;
  min-width: 36px;
}
.nav-link:hover { background: var(--navbar-btn-hover-bg); color: var(--navbar-link-hover); }
.nav-link.active { color: var(--navbar-link-active); background: transparent; }
.nav-user-area { display: flex; align-items: center; gap: 10px; }
.nav-username {
  font-size: 0.722rem; color: var(--navbar-text-muted);
  font-family: var(--font-mono);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--navbar-text-muted);
}
.nav-mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--navbar-bg);
  padding: 16px 24px;
  flex-direction: column; gap: 8px; z-index: 199;
  border-top: 1px solid var(--navbar-border);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link { font-size: 1rem; padding: 12px 16px; }

/* ── Shared Nav Buttons (unified style) ──────────────────────────────── */
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--navbar-btn-border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.778rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--navbar-text);
  cursor: pointer;
  transition: all .15s;
}
.nav-btn:hover {
  background: var(--navbar-btn-hover-bg);
  border-color: var(--navbar-btn-hover-border);
}
.nav-btn-profile {
  min-width: 120px;
  text-align: center;
}

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--navbar-btn-border);
  color: var(--navbar-text); border-radius: 8px;
  font-size: 1rem; font-weight: 500; font-family: var(--font-body);
  padding: 6px 10px; cursor: pointer; transition: all .15s;
  min-width: 36px;
}
.theme-btn:hover {
  background: var(--navbar-btn-hover-bg);
  border-color: var(--navbar-btn-hover-border);
}
.theme-icon {
  font-size: 0.889rem;
  line-height: 1;
  color: var(--navbar-text);
  display: inline-block;
  transition: transform 0.4s ease;
}
.theme-icon.rotating { transform: rotate(180deg); }

.lang-btn {
  font-size: 0.667rem; font-weight: 700; font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--navbar-btn-border);
  color: var(--navbar-text);
  border-radius: 8px;
  min-width: 40px; height: 28px; padding: 0 12px;
  cursor: pointer; transition: all .15s; letter-spacing: .06em;
}
.lang-btn:hover {
  background: var(--navbar-btn-hover-bg);
  border-color: var(--navbar-btn-hover-border);
}

/* ══════════════════════════════════════════════════════════════════════
   BUTTONS (Global)
══════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: 8px;
  font-size: 1rem; font-weight: 500; font-family: var(--font-body);
  cursor: pointer; border: 1px solid transparent;
  transition: all .15s; white-space: nowrap;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text-1); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: #c9cdd4; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover:not(:disabled) { background: var(--accent-light); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; padding: 8px 14px; font-size: 0.889rem; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-1); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 0.833rem; min-height: 36px; border-radius: 6px; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; min-height: 52px; border-radius: 10px; }

/* ══════════════════════════════════════════════════════════════════════
   FORMS (Global)
══════════════════════════════════════════════════════════════════════ */
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-1);
  font-size: 14px; font-family: var(--font-body);
  padding: 9px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.field-help { font-size: 12px; color: var(--text-3); }
.field-error { font-size: 12px; color: var(--danger); min-height: 16px; display: none; }
.field-error:not(:empty) { display: block; }
.is-invalid { border-color: var(--danger) !important; background: var(--danger-bg); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 14px; }
.form-actions { margin-top: 8px; display: flex; gap: 8px; justify-content: flex-end; }
.inline-error { display: none; margin-top: 8px; color: var(--danger); font-size: 13px; font-weight: 500; }
.inline-success { display: none; margin-top: 8px; color: var(--success); font-size: 13px; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════════
   MODALS / OVERLAYS
══════════════════════════════════════════════════════════════════════ */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.overlay.visible { display: flex; }
.modal-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-card h2 { font-size: 20px; margin-bottom: 8px; }
.modal-card p { color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.credentials-hint { margin-top: 10px; font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

/* ── Slide-over Panel ─────────────────────────────────────────────────── */
.panel-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .4);
  backdrop-filter: blur(2px);
  z-index: 900;
}
.panel-overlay.visible { display: block; }
.slide-panel {
  position: fixed; top: 0; right: -480px; bottom: 0;
  width: min(480px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 901;
  transition: right .3s ease;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.slide-panel.open { right: 0; }
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  position: sticky; top: 0; z-index: 1;
}
.panel-header h3 { font-size: 16px; }
.panel-close {
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text-3); padding: 4px;
  line-height: 1;
}
.panel-close:hover { color: var(--text-1); }
.panel-body { padding: 20px; flex: 1; }

/* ══════════════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  z-index: 0;
}
/* Animated grid lines background */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  opacity: .08;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: .06; }
  50% { opacity: .12; }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  margin-bottom: 20px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2.5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 560px; margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Shield SVG visual in hero */
.hero-visual {
  margin-top: 48px;
  display: flex; justify-content: center;
}
.hero-visual svg {
  width: 240px; height: auto;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}

/* ── Section containers ───────────────────────────────────────────────── */
.landing-section {
  padding: 64px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.landing-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none; }
.landing-section.alt > .section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 8px;
}
.section-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px; color: var(--text-2);
  max-width: 640px; line-height: 1.6;
  margin-bottom: 40px;
}

/* ── Problem Statement ────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-theme);
}
.problem-card-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  margin-bottom: 12px;
}
.problem-card-icon.red { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.problem-card-icon.amber { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.problem-card-icon.blue { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); }
.problem-card h4 { font-size: 15px; margin-bottom: 6px; }
.problem-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ── How It Works (Steps) ─────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: var(--transition-theme);
}
.step-card::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent); color: white;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  margin: 0 auto 12px;
}
.step-card h4 { font-size: 14px; margin-bottom: 6px; }
.step-card p { font-size: 12px; color: var(--text-2); line-height: 1.5; }
/* Connector line between steps */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute; top: 40px; right: -12px;
  width: 24px; height: 1px;
  background: var(--border);
}

/* ── Features Grid ────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  display: flex; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-theme);
}
.feature-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow); }
.feature-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 8px; font-size: 18px;
}
.feature-text h4 { font-size: 14px; margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ── Trust Section ────────────────────────────────────────────────────── */
.trust-badges {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.trust-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.trust-badge-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); color: var(--accent);
  border-radius: 8px; font-size: 18px;
}
.trust-badge-text { font-size: 13px; font-weight: 500; color: var(--text-1); }
.trust-badge-sub { font-size: 11px; color: var(--text-3); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  transition: var(--transition-theme);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text-1); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-3); width: 100%; text-align: center; margin-top: 12px; }

/* ══════════════════════════════════════════════════════════════════════
   VERIFY PAGE
══════════════════════════════════════════════════════════════════════ */
.verify-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.verify-layout.enter-up { animation: verifyEnter .4s ease both; }
@keyframes verifyEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.verify-header { margin-bottom: 24px; }
.verify-header h1 { font-size: 22px; margin-bottom: 4px; }
.verify-header p { font-size: 14px; color: var(--text-2); }

.verify-primary-card { border-color: var(--accent-border); box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow); }
.verify-primary-card .input-area .btn.btn-lg { min-width: 240px; justify-content: center; }
.verify-primary-card .btn-primary { font-weight: 600; }

.verify-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.verify-footer-actions .btn {
  opacity: .8;
}
.verify-footer-actions .btn:hover {
  opacity: 1;
}

/* ── Card sections ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-theme);
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2);
}
.card-title {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .06em;
}
.card-body { padding: 18px; }

/* ── Input mode tabs ──────────────────────────────────────────────────── */
.input-tabs {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.input-tab {
  padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
  cursor: pointer; transition: all .15s;
}
.input-tab:hover { background: var(--surface-3); }
.input-tab.active {
  background: var(--accent-light); color: var(--accent);
  border-color: var(--accent-border);
}

/* ── Verify action buttons ────────────────────────────────────────────── */
.verify-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

/* ── Tab navigation for verify sub-sections ───────────────────────────── */
.verify-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.verify-tab {
  padding: 10px 18px;
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  border: none; background: none;
  cursor: pointer; transition: all .15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.verify-tab:hover { color: var(--text-1); }
.verify-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Verify: Metadata Fields Grid ─────────────────────────────────────── */
.verify-metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 767px) {
  .verify-metadata-grid { grid-template-columns: 1fr; }
}
.verify-metadata-grid .form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-3);
  margin-bottom: 6px;
  display: block;
}
.verify-metadata-grid .form-field input,
.verify-metadata-grid .form-field select,
.verify-metadata-grid .form-field textarea {
  width: 100%;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  background: var(--surface-2);
  color: var(--text-1);
  transition: border-color 0.2s;
}
.verify-metadata-grid .form-field input:focus,
.verify-metadata-grid .form-field select:focus,
.verify-metadata-grid .form-field textarea:focus {
  border-color: var(--blue);
  outline: none;
}
html[data-theme="light"] .verify-metadata-grid .form-field label { color: #4A5568; }

/* ── Verify: Voice Upload Area ──────────────────────────────────────────── */
.voice-upload-area {
  border: 2px dashed var(--light-gray);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface-2);
}
.voice-upload-area:hover {
  border-color: var(--blue);
  background: rgba(26, 107, 255, 0.05);
}
.voice-upload-area.has-file {
  border-color: var(--teal);
  background: rgba(0, 201, 177, 0.05);
}
.voice-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--text-3);
}
.voice-upload-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.voice-upload-formats {
  font-size: 0.85rem;
  color: var(--text-3);
}
.voice-file-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.voice-file-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal);
}
.voice-file-remove {
  background: transparent;
  border: 1px solid var(--frauda-red);
  color: var(--frauda-red);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.voice-file-remove:hover {
  background: var(--frauda-red);
  color: white;
}
.voice-duration-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.voice-duration-inputs input {
  width: 70px;
  text-align: center;
}
.voice-duration-inputs span {
  font-size: 0.85rem;
  color: var(--text-3);
}
.voice-submit-success {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(0, 201, 177, 0.1);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 500;
  text-align: center;
}

/* ── Report Button States ───────────────────────────────────────────────── */
.btn-report-active {
  background: var(--frauda-red);
  color: white;
  opacity: 1;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: fit-content;
  padding: 8px 20px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.btn-report-active:hover {
  box-shadow: 0 0 12px rgba(232, 39, 75, 0.4);
}
.btn-report-inactive {
  background: var(--light-gray);
  color: #8A94A6;
  opacity: 0.6;
  cursor: default;
  position: relative;
  white-space: nowrap;
  min-width: fit-content;
  padding: 8px 20px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.btn-report-inactive:hover { opacity: 0.6; box-shadow: none; }
.btn-report-inactive .report-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
  margin-left: 6px;
}
.btn-report-reported {
  background: var(--light-gray);
  color: #6B7280;
  cursor: not-allowed;
  opacity: 0.8;
}

/* ── Report Tooltip ─────────────────────────────────────────────────────── */
.report-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid #D1D8E4;
  border-radius: 10px;
  padding: 14px 18px;
  max-width: 320px;
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 100;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
html[data-theme="dark"] .report-tooltip {
  background: #1A2744;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn-report-inactive:hover .report-tooltip,
.btn-report-inactive:focus .report-tooltip,
.report-tooltip.visible {
  opacity: 1;
  visibility: visible;
}
.report-tooltip p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 12px;
}
.report-tooltip a {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.report-tooltip a:hover { text-decoration: underline; }

/* ── Report Success Banner ──────────────────────────────────────────────── */
.report-success-banner {
  background: rgba(0, 201, 177, 0.1);
  border-left: 4px solid var(--teal);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ── Report Confirmation Modal ──────────────────────────────────────────── */
.report-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.report-modal {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  position: relative;
}
html[data-theme="dark"] .report-modal { background: #1A2744; }
.report-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-1);
}
.report-modal-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 20px;
}
.report-modal-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.report-modal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.report-modal-checkbox label {
  font-size: 0.9rem;
  color: var(--text-2);
}
.report-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.report-modal-actions .btn-confirm {
  background: var(--frauda-red);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.report-modal-actions .btn-confirm:hover {
  box-shadow: 0 0 12px rgba(232, 39, 75, 0.3);
}
.report-modal-actions .btn-cancel {
  background: transparent;
  border: 1px solid var(--light-gray);
  color: var(--text-2);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.report-modal-actions .btn-cancel:hover {
  background: var(--surface-2);
}

/* ── Profile Danger Section ─────────────────────────────────────────────── */
.profile-danger-section {
  border-color: rgba(220, 38, 38, 0.2) !important;
}
.profile-danger-title {
  color: var(--danger) !important;
}
.profile-danger-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-danger-hint {
  font-size: 0.82rem;
  color: var(--text-3);
}
.profile-logout-btn {
  gap: 8px;
}

/* ── Profile Page ───────────────────────────────────────────────────────── */
.profile-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}
.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
}
html[data-theme="dark"] .profile-section {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.profile-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-1);
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 767px) {
  .profile-form-grid { grid-template-columns: 1fr; }
}
.profile-form-grid .form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-3);
  margin-bottom: 6px;
  display: block;
}
.profile-form-grid .form-field input {
  width: 100%;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  background: var(--surface-2);
  color: var(--text-1);
  transition: border-color 0.2s;
}
.profile-form-grid .form-field input:focus {
  border-color: var(--blue);
  outline: none;
}
.profile-save-btn {
  margin-top: 20px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-save-btn:hover {
  box-shadow: 0 0 12px rgba(0, 201, 177, 0.3);
}
.profile-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.profile-save-success {
  display: inline-block;
  margin-left: 12px;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ── Profile History Table ──────────────────────────────────────────────── */
.profile-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.profile-history-table th,
.profile-history-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.profile-history-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-3);
  background: var(--surface-2);
}
.profile-history-table td {
  color: var(--text-1);
}
.profile-history-table tr:hover td {
  background: var(--surface-2);
}
.profile-history-summary {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-risk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.profile-risk-badge.green { background: rgba(0, 201, 177, 0.15); color: var(--teal); }
.profile-risk-badge.yellow { background: rgba(245, 166, 35, 0.15); color: #F5A623; }
.profile-risk-badge.red { background: rgba(232, 39, 75, 0.15); color: var(--frauda-red); }
.profile-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.profile-status-badge.checked { background: var(--light-gray); color: #374151; }
.profile-status-badge.reported { background: rgba(245, 166, 35, 0.2); color: #B45309; }
.profile-status-badge.blocked { background: var(--teal); color: white; }
html[data-theme="dark"] .profile-status-badge.checked { background: rgba(209, 216, 228, 0.2); color: #D1D8E4; }
html[data-theme="dark"] .profile-status-badge.reported { background: rgba(245, 166, 35, 0.2); color: #F5A623; }

/* ── Profile History Cards (Mobile) ─────────────────────────────────────── */
.profile-history-cards {
  display: none;
}
@media (max-width: 767px) {
  .profile-history-table { display: none; }
  .profile-history-cards { display: block; }
}
.profile-history-card {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.profile-history-card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.profile-history-card-row:last-child { margin-bottom: 0; }
.profile-history-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.profile-history-card-value {
  font-size: 0.9rem;
  color: var(--text-1);
}

/* ── Profile Pagination ─────────────────────────────────────────────────── */
.profile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.profile-pagination-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}
.profile-pagination-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}
.profile-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.profile-pagination-info {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ── Profile Empty State ────────────────────────────────────────────────── */
.profile-history-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
}

/* ── Process Flow ─────────────────────────────────────────────────────── */
.process-flow { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.process-step { flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.process-step:not(:last-child)::after  { content: ''; position: absolute; top: 14px; right: -1px; width: 50%; height: 1px; background: var(--border); z-index: 1; }
.process-step:not(:first-child)::before { content: ''; position: absolute; top: 14px; left: -1px; width: 50%; height: 1px; background: var(--border); z-index: 1; }
.step-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  position: relative; z-index: 2; transition: all .2s;
}
.step-icon.active { background: var(--accent); border-color: var(--accent); color: white; }
.step-icon.done { background: var(--success); border-color: var(--success); color: white; }
.step-label { font-size: 11px; color: var(--text-3); margin-top: 6px; line-height: 1.3; }
.step-label.active { color: var(--accent); font-weight: 500; }
.step-label.done { color: var(--success); font-weight: 500; }

/* ── Submit Buttons ───────────────────────────────────────────────────── */
.input-area { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Loading Animation ────────────────────────────────────────────────── */
.loading-area { display: none; padding: 28px 18px; }
.loading-area.visible { display: block; }
.loading-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.loading-label { font-size: 14px; font-weight: 500; color: var(--text-1); }
.loading-pct { font-size: 13px; color: var(--text-2); font-family: var(--font-mono); }
.progress-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; transition: width .4s ease; }
.loading-steps { display: flex; flex-direction: column; gap: 6px; }
.loading-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); transition: color .2s; }
.loading-step.done { color: var(--success); }
.loading-step.active { color: var(--text-1); font-weight: 500; }
.loading-step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.loading-step.done .loading-step-dot { background: var(--success); }
.loading-step.active .loading-step-dot { background: var(--accent); animation: pulse-dot 1s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Awaiting ─────────────────────────────────────────────────────────── */
.awaiting-area { padding: 36px 18px; text-align: center; color: var(--text-3); font-size: 14px; border-top: 1px solid var(--border-light); }

/* ── Result Area ──────────────────────────────────────────────────────── */
.result-area { display: none; }
.result-area.visible { display: block; }

.score-row { display: flex; align-items: center; gap: 20px; padding: 18px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; }
.score-gauge { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.score-number { font-size: 38px; font-weight: 600; font-family: var(--font-mono); line-height: 1; }
.score-number.red { color: var(--risk-red); }
.score-number.yellow { color: var(--risk-yellow); }
.score-number.green { color: var(--risk-green); }
.score-unit { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.risk-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 5px; font-size: 12px; font-weight: 600; border: 1px solid; }
.risk-badge.red { background: var(--risk-red-bg); color: var(--risk-red); border-color: var(--risk-red-border); }
.risk-badge.yellow { background: var(--risk-yellow-bg); color: var(--risk-yellow); border-color: var(--risk-yellow-border); }
.risk-badge.green { background: var(--risk-green-bg); color: var(--risk-green); border-color: var(--risk-green-border); }

.score-meta { flex: 1; min-width: 200px; }
.score-summary { font-size: 15px; font-weight: 500; color: var(--text-1); margin-bottom: 4px; }
.score-note { font-size: 13px; color: var(--text-2); }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.meta-card { background: var(--surface); padding: 12px 16px; }
.meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 3px; font-weight: 600; }
.meta-value { font-size: 13px; font-weight: 500; color: var(--text-1); font-family: var(--font-mono); }

.transcript-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--surface-2); }
.transcript-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.transcript-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }

.msg { display: flex; gap: 10px; max-width: 88%; }
.msg.victim { align-self: flex-end; flex-direction: row-reverse; }
.msg.scammer { align-self: flex-start; }
.msg-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; margin-top: 2px; }
.msg.victim .msg-avatar { background: #6366f1; }
.msg.scammer .msg-avatar { background: #94a3b8; }
.msg-bubble { padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.msg.victim .msg-bubble { background: var(--accent-light); border: 1px solid var(--accent-border); color: var(--text-1); border-bottom-right-radius: 2px; }
.msg.scammer .msg-bubble { background: var(--bg); border: 1px solid var(--border); color: var(--text-1); border-bottom-left-radius: 2px; }
.msg-role { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; margin-bottom: 3px; }

.text-msg { padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; line-height: 1.6; color: var(--text-1); }

.indicators-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; }
.indicator-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.indicator-rank { font-size: 11px; font-weight: 700; color: white; background: var(--accent); border-radius: 3px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.indicator-rank.red { background: var(--risk-red); }
.indicator-rank.yellow { background: #d97706; }
.indicator-text strong { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.indicator-text span { font-size: 12px; color: var(--text-2); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border-light); background: var(--surface-2); }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.actions-bar { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border-light); background: var(--surface-2); flex-wrap: wrap; align-items: center; }
.copy-success { font-size: 12px; color: var(--success); opacity: 0; transition: opacity .3s; margin-left: 4px; }
.copy-success.show { opacity: 1; }

/* ── Report & Submission Lists ────────────────────────────────────────── */
.state-card {
  border: 1px dashed var(--border);
  border-radius: 7px; padding: 16px;
  background: var(--surface-2); color: var(--text-2);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.report-list { display: flex; flex-direction: column; gap: 8px; }
.report-item {
  border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface-2);
  padding: 10px 14px;
  display: flex; justify-content: space-between; gap: 8px;
}
.report-item.report-item-detail { padding: 0; overflow: hidden; display: block; }
.report-expand {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
.report-expand:hover { background: var(--surface-3); }
.report-detail-body {
  border-top: 1px solid var(--border-light);
  padding: 10px 14px 12px;
  background: var(--surface);
}
.report-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.report-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.report-body { font-size: 12px; color: var(--text-2); margin-top: 5px; max-width: 640px; word-break: break-word; }
.status-pill {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 8px;
  font-size: 10px; font-weight: 600;
}
.status-pill.in-work { color: var(--risk-yellow); background: var(--risk-yellow-bg); border-color: var(--risk-yellow-border); }
.status-pill.success { color: var(--risk-green); background: var(--risk-green-bg); border-color: var(--risk-green-border); }
.status-pill.fail { color: var(--risk-red); background: var(--risk-red-bg); border-color: var(--risk-red-border); }
.history-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.history-filter select {
  font-family: var(--font-body); font-size: 12px; color: var(--text-1);
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 8px;
}

/* ── Toast ─────────────────────────────────────────────────────────────── */
.top-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 1100;
  min-width: 280px;
  max-width: min(92vw, 520px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-1);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}
.top-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.top-toast.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.top-toast.error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }

/* ── Fullscreen shield reveal ─────────────────────────────────────────── */
.shield-reveal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, var(--accent-glow), rgba(0,0,0,.78));
  opacity: 0;
}
.shield-reveal.playing { opacity: 1; }
.shield-reveal.done { opacity: 0; transition: opacity .28s ease; }
.shield-reveal-core {
  position: relative;
  width: min(240px, 48vw);
  aspect-ratio: 1 / 1.14;
  transform: scale(1);
  transition: transform .45s ease;
}
.shield-leaf {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border: 2px solid var(--accent-border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 0 24px var(--accent-glow);
}
.shield-left {
  left: 0;
  border-right: none;
  border-radius: 120px 0 0 140px;
  transform-origin: left center;
}
.shield-right {
  right: 0;
  border-left: none;
  border-radius: 0 120px 140px 0;
  transform-origin: right center;
}
.shield-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 72px;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}
.shield-reveal.open .shield-left { transform: translateX(-62%) rotateY(65deg) skewY(-5deg); opacity: .16; transition: transform .85s ease, opacity .85s ease; }
.shield-reveal.open .shield-right { transform: translateX(62%) rotateY(-65deg) skewY(5deg); opacity: .16; transition: transform .85s ease, opacity .85s ease; }
.shield-reveal.open .shield-symbol { opacity: .12; transform: scale(1.08); transition: all .85s ease; }
.shield-reveal.open .shield-reveal-core { transform: scale(1.06); }

/* ── Highlight marks ──────────────────────────────────────────────────── */
mark.hl { padding: 1px 2px; border-radius: 2px; font-style: normal; }
mark.hl-red { background: #fecaca; color: #991b1b; }
mark.hl-yellow { background: #fef3c7; color: #92400e; }
mark.hl-green { background: #d1fae5; color: #065f46; }

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD PAGE
══════════════════════════════════════════════════════════════════════ */
.dash-layout { max-width: 1280px; margin: 0 auto; padding: 20px 20px 60px; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.dash-header h1 { font-size: 20px; }
.dash-header-actions { display: flex; gap: 8px; align-items: center; }

/* ── Filter bar ───────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 16px; margin-bottom: 14px; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; box-shadow: var(--shadow);
  transition: var(--transition-theme);
}
.filter-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.filter-sep { width: 1px; height: 18px; background: var(--border); }
select, input[type=date] {
  font-family: var(--font-body); font-size: 12px; color: var(--text-1);
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 5px 8px; cursor: pointer; outline: none;
  transition: border-color .15s;
}
select:focus, input[type=date]:focus { border-color: var(--accent); }
.btn-refresh {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  background: var(--accent); color: #fff; border: none; border-radius: 5px;
  font-size: 12px; font-weight: 500; font-family: var(--font-body); cursor: pointer;
  margin-left: auto; transition: background .15s;
}
.btn-refresh:hover { background: var(--accent-hover); }

/* ── KPI cards ────────────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); transition: var(--transition-theme); }
.kpi-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 5px; }
.kpi-value { font-size: 22px; font-weight: 600; font-family: var(--font-mono); color: var(--text-1); line-height: 1.1; }
.kpi-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; margin-top: 4px; }
.kpi-trend.up { color: var(--red); }
.kpi-trend.dn { color: var(--green); }

/* ── Dashboard sections ───────────────────────────────────────────────── */
.dashboard-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-theme);
}
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border-light); }
.section-title { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.section-meta { font-size: 11px; color: var(--text-3); }
.section-body { padding: 16px; }

/* ── Chart grids ──────────────────────────────────────────────────────── */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 800px) { .chart-grid { grid-template-columns: 1fr; } }

/* ── SVG chart ────────────────────────────────────────────────────────── */
.chart-canvas-wrap { width: 100%; overflow: hidden; }
svg.line-chart { width: 100%; height: 160px; display: block; }

/* ── Strategy bars ────────────────────────────────────────────────────── */
.strat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.strat-rank { width: 16px; font-size: 10px; font-weight: 700; color: var(--text-3); font-family: var(--font-mono); text-align: right; flex-shrink: 0; }
.strat-label { width: 160px; flex-shrink: 0; font-size: 12px; color: var(--text-2); }
.strat-track { flex: 1; background: var(--border-light); border-radius: 3px; height: 16px; position: relative; overflow: hidden; }
.strat-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.strat-pct { font-size: 11px; font-family: var(--font-mono); color: var(--text-2); width: 36px; text-align: right; flex-shrink: 0; }
.strat-trend { font-size: 10px; width: 40px; text-align: right; flex-shrink: 0; font-weight: 500; }
.strat-trend.up { color: var(--red); }
.strat-trend.dn { color: var(--green); }

/* ── Age bars ─────────────────────────────────────────────────────────── */
.grouped-legend { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.g-leg-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.g-leg-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.grouped-chart { overflow-x: auto; }
.grouped-inner { min-width: 320px; }
.age-row { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.age-label { width: 50px; font-size: 11px; color: var(--text-2); flex-shrink: 0; font-weight: 500; }
.age-bars { display: flex; gap: 3px; flex: 1; }
.age-bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.age-bar { height: 14px; border-radius: 2px; min-width: 2px; transition: width .5s ease; }

/* ── Gender bars ──────────────────────────────────────────────────────── */
.gender-grid { display: flex; flex-direction: column; gap: 10px; }
.gender-row { display: flex; align-items: center; gap: 8px; }
.gender-label { width: 70px; font-size: 11px; color: var(--text-2); flex-shrink: 0; }
.gender-bars { flex: 1; display: flex; gap: 3px; }
.gender-seg { height: 22px; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.85); min-width: 22px; transition: width .5s ease; white-space: nowrap; overflow: hidden; padding: 0 3px; }

/* ── Keywords ─────────────────────────────────────────────────────────── */
.kw-grid { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0; }
.kw-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; border: 1px solid; }
.kw-tag.h { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.kw-tag.m { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.kw-tag.l { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.kw-count { font-family: var(--font-mono); font-size: 10px; opacity: .8; }

/* ── Metadata tiles ───────────────────────────────────────────────────── */
.meta-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 600px) { .meta-tiles { grid-template-columns: 1fr 1fr; } }
.meta-tile { padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border-light); border-radius: 5px; }
.meta-tile-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 6px; }
.mini-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mini-bar-label { width: 72px; flex-shrink: 0; font-size: 10px; color: var(--text-2); }
.mini-bar-track { flex: 1; background: var(--border); border-radius: 2px; height: 8px; overflow: hidden; }
.mini-bar-fill { height: 100%; border-radius: 2px; }
.mini-bar-val { width: 28px; text-align: right; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); flex-shrink: 0; }

/* ── Weekday bars ─────────────────────────────────────────────────────── */
.weekday-bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; padding-top: 8px; }
.wd-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wd-bar { width: 100%; border-radius: 3px 3px 0 0; transition: height .5s ease; min-height: 2px; }
.wd-label { font-size: 10px; color: var(--text-3); font-weight: 500; }
.wd-val { font-size: 9px; font-family: var(--font-mono); color: var(--text-2); }

/* ── Intelligence cards ───────────────────────────────────────────────── */
.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .intel-grid { grid-template-columns: 1fr; } }
.intel-card { padding: 12px 14px; border-radius: 5px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.intel-card.red { background: var(--red-bg); border-color: var(--red-border); }
.intel-card.amber { background: var(--amber-bg); border-color: var(--amber-border); }
.intel-card.blue { background: var(--accent-light); border-color: var(--accent-border); }
.intel-card.green { background: var(--green-bg); border-color: var(--green-border); }
.intel-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.intel-text strong { font-size: 12px; font-weight: 600; display: block; margin-bottom: 3px; }
.intel-text span { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ── Alerts ───────────────────────────────────────────────────────────── */
.alert-list { display: flex; flex-direction: column; gap: 7px; }
.alert-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 5px; border: 1px solid; }
.alert-item.crit { background: var(--red-bg); border-color: var(--red-border); }
.alert-item.warn { background: var(--amber-bg); border-color: var(--amber-border); }
.alert-item.info { background: var(--accent-light); border-color: var(--accent-border); }
.alert-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; margin-top: 1px; }
.alert-badge.crit { background: var(--red); color: #fff; }
.alert-badge.warn { background: #d97706; color: #fff; }
.alert-badge.info { background: var(--accent); color: #fff; }
.alert-text { font-size: 12px; line-height: 1.5; color: var(--text-1); }
.alert-text strong { font-weight: 600; }
.alert-ts { font-size: 10px; color: var(--text-3); margin-left: auto; flex-shrink: 0; font-family: var(--font-mono); margin-top: 2px; }

/* ── Table ────────────────────────────────────────────────────────────── */
.data-table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: left; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); white-space: nowrap; }
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-light); color: var(--text-1); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.pill { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; border: 1px solid; }
.pill.red { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.pill.amber { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.pill.green { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.pill.blue { background: var(--accent-light); border-color: var(--accent-border); color: var(--accent); }
.trend-cell { font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.trend-cell.up { color: var(--red); }
.trend-cell.dn { color: var(--green); }
.phrase-list { display: flex; gap: 4px; flex-wrap: wrap; }
.phrase-chip { font-size: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; color: var(--text-2); }

/* ── Tooltip ──────────────────────────────────────────────────────────── */
.tooltip { position: fixed; background: var(--text-1); color: var(--bg); font-size: 11px; padding: 5px 9px; border-radius: 4px; pointer-events: none; z-index: 999; white-space: nowrap; opacity: 0; transition: opacity .15s; }

/* ── Quick Submit (Dashboard) ─────────────────────────────────────────── */
.quick-submit { display: flex; gap: 8px; align-items: flex-start; }
.quick-submit textarea {
  flex: 1; min-height: 40px; max-height: 80px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text-1);
  font-family: var(--font-body); font-size: 13px;
  padding: 8px 12px; resize: vertical;
}
.quick-submit textarea:focus { border-color: var(--accent); outline: none; }

/* ══════════════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .25s ease forwards; }
.dashboard-section, .kpi, .filter-bar { animation: fadeUp .3s ease both; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }

  .landing-section { padding: 40px 16px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card:not(:last-child)::after { display: none; }

  .verify-layout { padding: 16px 12px 48px; }
  .dash-layout { padding: 12px 12px 48px; }

  .form-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .intel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 12px; }
  .nav-brand { font-size: 15px; }

  .hero { padding: 36px 12px 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-badges { flex-direction: column; }

  .score-row { gap: 12px; }
  .score-number { font-size: 28px; }
  .msg { max-width: 100%; }

  .filter-bar { gap: 6px; }
  select, input[type=date] { font-size: 11px; }
  .kpi-value { font-size: 18px; }
  .strat-label { width: 110px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ── Desktop: show nav links, hide hamburger ──────────────────────────── */
@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
  .nav-mobile-menu { display: none !important; }
}

/* ── Utility ──────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.gap-8 { gap: 8px; }


/* ══════════════════════════════════════════════════════════════════════
   LANDING REDESIGN (homepage.html integration)
══════════════════════════════════════════════════════════════════════ */

/* Dark theme landing page — unified gradient background with geometric pattern */
.landing-page {
  --landing-blue: #3B7DDD;
  --landing-teal: #00C9B1;
  --landing-teal-hover: #00B59F;
  --landing-red: #E8274B;
  --landing-bg: transparent;
  --landing-card: rgba(255, 255, 255, 0.04);
  --landing-card-border: rgba(255, 255, 255, 0.06);
  --landing-section: transparent;
  --landing-text: #FFFFFF;
  --landing-text-2: #B0B8C8;
  --landing-text-3: #6B7588;
  --landing-border: rgba(255, 255, 255, 0.04);
  --landing-hero-start: #0B1929;
  --landing-hero-end: #101E35;
  --landing-stats-bg: transparent;
  --landing-footer-bg: transparent;
  --landing-footer-text: rgba(255, 255, 255, .6);
  --landing-glass: rgba(255, 255, 255, .04);
  --landing-glass-border: rgba(255, 255, 255, .06);
  --landing-step-bg: rgba(255, 255, 255, 0.04);
  --landing-step-shadow: rgba(0, 0, 0, .15);
  --landing-transition: .4s;
  position: relative;
  background: linear-gradient(175deg, #050E1C 0%, #071630 30%, #0A1A38 60%, #050E1C 100%);
  min-height: 100vh;
  color: var(--landing-text);
}

/* Geometric pattern overlay for dark theme */
.landing-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(30deg, #1A6BFF 12%, transparent 12.5%, transparent 87%, #1A6BFF 87.5%, #1A6BFF),
    linear-gradient(150deg, #1A6BFF 12%, transparent 12.5%, transparent 87%, #1A6BFF 87.5%, #1A6BFF),
    linear-gradient(30deg, #1A6BFF 12%, transparent 12.5%, transparent 87%, #1A6BFF 87.5%, #1A6BFF),
    linear-gradient(150deg, #1A6BFF 12%, transparent 12.5%, transparent 87%, #1A6BFF 87.5%, #1A6BFF),
    linear-gradient(60deg, #00C9B1 25%, transparent 25.5%, transparent 75%, #00C9B1 75%, #00C9B1),
    linear-gradient(60deg, #00C9B1 25%, transparent 25.5%, transparent 75%, #00C9B1 75%, #00C9B1);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  pointer-events: none;
  z-index: 0;
}

/* Light theme override — bright security blue */
html[data-theme="light"] .landing-page {
  --landing-blue: #7EB8FF;
  --landing-bg: transparent;
  --landing-card: rgba(255, 255, 255, 0.12);
  --landing-card-border: rgba(255, 255, 255, 0.18);
  --landing-section: transparent;
  --landing-text: #FFFFFF;
  --landing-text-2: rgba(255, 255, 255, .82);
  --landing-text-3: rgba(255, 255, 255, .55);
  --landing-border: rgba(255, 255, 255, 0.12);
  --landing-hero-start: #1046A0;
  --landing-hero-end: #1755C4;
  --landing-stats-bg: transparent;
  --landing-footer-bg: rgba(0, 0, 0, 0.1);
  --landing-footer-text: rgba(255, 255, 255, .72);
  --landing-glass: rgba(255, 255, 255, .1);
  --landing-glass-border: rgba(255, 255, 255, .18);
  --landing-step-bg: rgba(255, 255, 255, 0.1);
  --landing-step-shadow: rgba(0, 0, 0, .18);
  background: linear-gradient(175deg, #1046A0 0%, #1351B4 30%, #1755C4 60%, #1046A0 100%);
}

/* Light theme geometric pattern (same intensity as dark) */
html[data-theme="light"] .landing-page::before {
  opacity: 0.04;
}

html[data-theme="dark"] .landing-page {
  --landing-blue: #5A93E6;
  --landing-bg: transparent;
  --landing-card: rgba(26, 107, 255, 0.06);
  --landing-card-border: rgba(26, 107, 255, 0.1);
  --landing-section: transparent;
  --landing-text: #FFFFFF;
  --landing-text-2: #B0B8C8;
  --landing-text-3: #6B7588;
  --landing-border: rgba(26, 107, 255, 0.08);
  --landing-hero-start: #050E1C;
  --landing-hero-end: #0A1A36;
  --landing-stats-bg: transparent;
  --landing-footer-bg: transparent;
  --landing-footer-text: rgba(255, 255, 255, .5);
  --landing-glass: rgba(26, 107, 255, .05);
  --landing-glass-border: rgba(26, 107, 255, .1);
  --landing-step-bg: rgba(26, 107, 255, 0.06);
  --landing-step-shadow: rgba(0, 0, 0, .3);
  background: linear-gradient(175deg, #050E1C 0%, #071630 30%, #0A1A38 60%, #050E1C 100%);
}

.landing-page .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.landing-hero {
  position: relative;
  padding-top: 64px;
  min-height: 820px;
  background: transparent;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background var(--landing-transition);
}

.landing-hero-geo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-hero-geo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.landing-hero-text h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 3.1rem;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--landing-text);
  margin-bottom: 1.5rem;
}

.landing-hero-text p {
  color: var(--landing-text-2);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

/* Dark theme hero text overrides */
html[data-theme="dark"] .landing-hero-text h1 { color: #fff; }
html[data-theme="dark"] .landing-hero-text p { color: rgba(255, 255, 255, .72); }

/* Default (unified dark) hero text — white */
.landing-page .landing-hero-text h1 { color: #fff; }
.landing-page .landing-hero-text p { color: rgba(255, 255, 255, .72); }

/* Light theme hero text — stays white on blue background */
html[data-theme="light"] .landing-page .landing-hero-text h1 { color: #fff; }
html[data-theme="light"] .landing-page .landing-hero-text p { color: rgba(255, 255, 255, .82); }

.landing-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-btn-primary,
.landing-btn-secondary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 32px;
  text-decoration: none;
}

.landing-btn-primary {
  background: var(--teal);
  color: #fff;
  border: none;
}

.landing-btn-primary:hover {
  background: var(--landing-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 201, 177, .3);
}

.landing-btn-secondary {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.landing-btn-secondary:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .1);
}

.landing-hero-card-wrap {
  position: relative;
}

/* Demo card — always dark navy background in both themes */
.landing-demo {
  background: #0F1C30;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(26, 107, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  transform: rotate(1.5deg);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
  width: min(480px, 90vw);
  padding: 28px 24px;
}

/* Light theme keeps demo card dark for contrast */
html[data-theme="light"] .landing-demo {
  background: #0F1C30;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.landing-demo:hover {
  transform: rotate(0) translateY(-4px);
}

.landing-demo-head {
  padding: 0 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.landing-demo-score-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.landing-demo-score {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--frauda-red);
  line-height: 1;
}

.landing-demo-score-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .05em;
}

.landing-demo-badge {
  display: inline-block;
  padding: .25rem .6rem;
  background: rgba(232, 39, 75, .18);
  color: #FF8A9B;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 5px;
  margin-top: .1rem;
}

.landing-demo-verdict {
  color: rgba(255, 255, 255, .85);
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 240px;
  line-height: 1.4;
  margin-top: .5rem;
}

.landing-demo-type {
  color: rgba(255, 255, 255, .4);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.landing-demo-meta {
  display: flex;
  gap: 0;
  padding: 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.landing-demo-meta-item {
  flex: 1;
  padding: .6rem .5rem;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.landing-demo-meta-item:last-child {
  border-right: none;
}

.landing-demo-meta-item:not(:first-child) {
  padding-left: .5rem;
}

.landing-demo-meta-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}

.landing-demo-meta-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

.landing-demo-message {
  padding: 1rem 0;
}

.landing-demo-block-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.landing-demo-message-box {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 1rem;
}

.landing-demo-message-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.7;
}

.landing-demo-red {
  background: rgba(232, 39, 75, .25);
  color: var(--frauda-red);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.landing-demo-link {
  color: #7AABE8;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.landing-demo-orange {
  background: rgba(232, 39, 75, .25);
  color: var(--frauda-red);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.landing-demo-indicators {
  padding: 1rem 0;
}

.landing-demo-indicator {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.landing-demo-indicator:last-child {
  border-bottom: none;
}

.landing-demo-indicator-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--frauda-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.landing-demo-indicator-title {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
}

.landing-demo-indicator-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .5);
  margin-top: .1rem;
}

.landing-demo-actions {
  padding: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: .5rem;
}

.landing-demo-actions-right {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.landing-demo-btn-outline,
.landing-demo-btn-danger,
.landing-demo-btn-ghost {
  font-family: 'Inter', sans-serif;
  font-size: 0.778rem;
  cursor: pointer;
}

.landing-demo-btn-outline {
  padding: .4rem .8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: rgba(255, 255, 255, .65);
  font-weight: 600;
}

.landing-demo-btn-danger {
  padding: .4rem .9rem;
  border-radius: 6px;
  border: none;
  background: var(--frauda-red);
  color: #fff;
  font-weight: 700;
}

.landing-demo-btn-ghost {
  padding: .4rem .7rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
}

.landing-hero-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: var(--landing-blue);
  filter: blur(120px);
  opacity: .18;
}

.landing-stats {
  background: transparent;
  padding: 5.5rem 0;
  transition: background var(--landing-transition);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--landing-border);
}

/* Section divider instead of gradient transitions */
.landing-stats::before {
  display: none;
}

.landing-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.landing-stats-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.landing-stats-intro h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--landing-text);
  margin-bottom: .75rem;
}

.landing-stats-intro p {
  color: var(--landing-text-2);
  font-size: .92rem;
  line-height: 1.65;
}

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

.landing-stat-number {
  color: var(--landing-teal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
}

.landing-stat-label {
  color: var(--landing-text-3);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
}

.landing-stats-source {
  color: var(--landing-text-3);
  opacity: 0.5;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
}

.landing-trust {
  background: transparent;
  padding: 1.5rem 0;
  box-shadow: none;
  position: relative;
  z-index: 2;
  transition: background var(--landing-transition);
}

/* Remove gradient transition */
.landing-trust::before {
  display: none;
}

.landing-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.landing-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.landing-trust-item .material-symbols-outlined {
  color: var(--landing-blue);
  font-size: 1.3rem;
}

.landing-trust-item span:last-child {
  font-size: .82rem;
  font-weight: 600;
  color: var(--landing-text);
  transition: color var(--landing-transition);
}

.landing-how {
  background: transparent;
  padding: 6rem 0;
  transition: background var(--landing-transition);
  position: relative;
  border-top: 1px solid var(--landing-border);
}

/* Remove gradient transition */
.landing-how::before {
  display: none;
}

.landing-how-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-how-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--landing-text);
  text-align: center;
  margin-bottom: 3.5rem;
}

.landing-how-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.landing-how-line {
  position: absolute;
  top: 27px;
  left: 15%;
  width: 70%;
  height: 0;
  border-top: 2px dashed var(--landing-border);
  z-index: 0;
}

.landing-how-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-how-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--landing-card);
  box-shadow: 0 6px 20px var(--landing-step-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.landing-how-icon .material-symbols-outlined {
  color: var(--landing-blue);
  font-size: 1.5rem;
}

.landing-how-card {
  background: var(--landing-step-bg);
  border: 1px solid var(--landing-card-border, rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(4px);
  padding: 1.7rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--landing-step-shadow);
  height: 100%;
}

html[data-theme="light"] .landing-how-card {
  box-shadow: 0 2px 8px rgba(13, 31, 60, 0.04);
}

.landing-how-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--landing-text);
  margin-bottom: .6rem;
}

.landing-how-card p {
  color: var(--landing-text-2);
  font-size: .85rem;
  line-height: 1.65;
}

.landing-community {
  background: transparent;
  padding: 6rem 0;
  transition: background var(--landing-transition);
  position: relative;
  border-top: 1px solid var(--landing-border);
}

/* Remove gradient transition */
.landing-community::before {
  display: none;
}

.landing-community-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.landing-community-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--landing-text);
  margin-bottom: 1rem;
}

.landing-community-text > p {
  color: var(--landing-text-2);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.landing-community-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-community-feature {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.landing-community-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--landing-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-community-feature-icon .material-symbols-outlined {
  color: var(--landing-blue);
  font-size: 1.2rem;
}

.landing-community-feature h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--landing-text);
}

.landing-community-feature p {
  font-size: .8rem;
  color: var(--landing-text-2);
  line-height: 1.5;
  margin-top: .15rem;
}

.landing-community-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.landing-community-stat-card {
  background: var(--landing-section);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.landing-community-stat-big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--landing-teal);
}

.landing-community-stat-label {
  font-size: .85rem;
  color: var(--landing-text-2);
  margin-top: .35rem;
}

.landing-community-stat-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 340px;
}

.landing-community-stat-small {
  flex: 1;
  background: var(--landing-section);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.landing-community-small-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--landing-blue);
}

.landing-community-small-label {
  font-size: .72rem;
  color: var(--landing-text-3);
  margin-top: .2rem;
}

.landing-community-disclaimer {
  font-size: .65rem;
  color: var(--landing-text-3);
  text-align: center;
  margin-top: .5rem;
}

.landing-footer {
  background: transparent;
  border-top: 1px solid var(--landing-border);
  padding: 3rem 2rem;
}

html[data-theme="light"] .landing-footer {
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.landing-footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--landing-text, #fff);
  margin-bottom: .3rem;
}

.landing-footer-copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .62rem;
  color: var(--landing-footer-text);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.landing-footer-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .68rem;
  color: var(--landing-footer-text);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}

.landing-footer-links a:hover {
  color: var(--landing-teal);
}

.landing-footer-universities {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
}

.landing-footer-university {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .68rem;
  color: var(--landing-footer-text);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.landing-footer-university .material-symbols-outlined {
  font-size: .85rem;
}

@media (max-width: 768px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
  }

  .landing-hero-card-wrap {
    display: none;
  }

  .landing-hero-text h1 {
    font-size: 2.1rem;
  }

  .landing-how-grid {
    grid-template-columns: 1fr;
  }

  .landing-how-line {
    display: none;
  }

  .landing-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .landing-community-inner {
    grid-template-columns: 1fr;
  }

  .landing-community-visual {
    order: -1;
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-footer-universities {
    align-items: center;
  }

  .landing-trust-inner {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE & TABLET OPTIMIZATION
══════════════════════════════════════════════════════════════════════ */

/* Prevent horizontal overflow on mobile */
html, body {
  overflow-x: hidden;
}

/* Global mobile tap targets */
@media (max-width: 768px) {
  button, a, [role="button"], select, input[type="submit"] {
    min-height: 44px;
  }
}

/* Prevent iOS zoom on input focus */
@media (max-width: 480px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Safe area insets for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-sheet-modal,
  .mobile-drawer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Touch feedback - active states for mobile */
@media (max-width: 768px) {
  button:active, .btn:active, .nav-link:active, .input-tab:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }
}

/* Hover styles only for non-touch devices */
@media (hover: hover) {
  .btn:hover:not(:disabled) { filter: brightness(1.05); }
  .nav-link:hover { background: var(--navbar-btn-hover-bg); }
}

/* ── Navbar Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    height: 54px;
    padding: 0 16px;
  }

  .nav-left { gap: 8px; }
  .nav-sep { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-right {
    gap: 8px;
  }

  .nav-btn, .theme-btn, .lang-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  /* Hide "Theme" text on mobile, keep icon only */
  .theme-btn span[data-i18n] {
    display: none;
  }

  .nav-btn-profile {
    min-width: auto;
    padding: 6px 12px;
  }

  /* Shorten profile button: show icon or first letter */
  .nav-btn-profile {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 48px;
    padding: 0 12px;
  }

  .nav-logo-img {
    height: 24px;
  }

  .nav-brand {
    font-size: 0.95rem;
  }

  .nav-btn, .theme-btn, .lang-btn {
    padding: 4px 8px;
    font-size: 0.68rem;
  }
}

/* ── Mobile Drawer (slide-in menu) ─────────────────────────────────────── */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--navbar-bg);
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  z-index: 250;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav-mobile-menu.open {
  display: flex;
  transform: translateX(0);
}

.nav-mobile-menu .nav-link {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 8px;
}

.nav-mobile-menu .nav-link:hover,
.nav-mobile-menu .nav-link.active {
  background: var(--navbar-btn-hover-bg);
}

/* Mobile drawer backdrop */
.nav-mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 249;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile drawer close button */
.nav-mobile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--navbar-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.nav-mobile-close:hover {
  background: var(--navbar-btn-hover-bg);
}

/* Mobile drawer logout at bottom */
.nav-mobile-menu .nav-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

@media (max-width: 380px) {
  .nav-mobile-menu {
    width: 100%;
  }
}

/* ── Homepage Mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .landing-hero {
    padding: 60px 16px 40px;
  }

  .landing-hero-inner {
    gap: 32px;
  }

  .landing-hero-text h1 {
    font-size: 2rem;
  }

  .landing-hero-text p {
    font-size: 1rem;
  }

  .landing-hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .landing-hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Show demo card on tablet */
  .landing-hero-card-wrap {
    display: block;
    max-width: 100%;
  }

  /* Stats section */
  .landing-stats {
    padding: 40px 16px;
  }

  .landing-stats-grid {
    gap: 20px;
  }

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

  /* How it works section */
  .landing-how {
    padding: 40px 16px;
  }

  .landing-how-step {
    padding: 20px 16px;
  }

  /* Community section */
  .landing-community {
    padding: 40px 16px;
  }

  /* Footer */
  .landing-footer {
    padding: 30px 16px;
  }
}

@media (max-width: 480px) {
  .landing-hero {
    padding: 40px 16px 30px;
  }

  .landing-hero-text h1 {
    font-size: 1.7rem;
  }

  .landing-hero-text p {
    font-size: 0.95rem;
  }

  /* Hide demo card on small phones */
  .landing-hero-card-wrap {
    display: none;
  }

  .landing-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ── Verify Page Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .verify-layout {
    padding: 20px 16px 40px;
  }

  .verify-header h1 {
    font-size: 1.4rem;
  }

  /* Input mode tabs - horizontal scroll or wrap */
  .input-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .input-tab {
    flex: 1;
    min-width: fit-content;
    text-align: center;
    padding: 10px 12px;
    min-height: 44px;
  }

  /* Voice upload area taller on mobile */
  .voice-upload-area {
    padding: 40px 16px;
  }

  /* Submit button full width */
  .verify-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Result card full width */
  .card {
    border-radius: 8px;
  }

  .card-header {
    padding: 12px 14px;
  }

  .card-body {
    padding: 14px;
  }

  /* Metadata row - convert to 2-column grid */
  .meta-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Key indicators - stack */
  .key-indicators {
    gap: 8px;
  }

  /* Actions bar - stack buttons vertically */
  .actions-bar {
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .actions-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* Pipeline steps - compact horizontal strip */
  .pipeline-steps {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .step-card {
    min-width: 100px;
    padding: 10px;
  }

  .step-card h4 {
    font-size: 12px;
  }

  .step-card p {
    display: none;
  }

  .step-card::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .verify-layout {
    padding: 16px 12px 32px;
  }

  .verify-header h1 {
    font-size: 1.3rem;
  }

  /* Metadata row - single column on very small phones */
  .meta-tiles {
    grid-template-columns: 1fr;
  }

  .input-tab {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  /* Full transcript text */
  .transcript-bubble {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 12px;
  }
}

/* ── Report Modal Mobile (Bottom Sheet) ────────────────────────────────── */
@media (max-width: 480px) {
  .report-modal-overlay {
    align-items: flex-end;
  }

  .report-modal {
    width: 100vw;
    max-width: 100vw;
    border-radius: 16px 16px 0 0;
    padding: 24px 20px 32px;
    margin: 0;
    transform: translateY(100%);
    animation: bottomSheetUp 0.3s ease forwards;
  }

  @keyframes bottomSheetUp {
    to { transform: translateY(0); }
  }

  .report-modal-title {
    font-size: 1.2rem;
  }

  .report-modal-text {
    font-size: 0.9rem;
  }

  .report-modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .report-modal-buttons .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .report-modal-checkbox label {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .report-modal {
    width: 90vw;
    max-width: 440px;
  }
}

/* ── Profile Page Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .profile-layout {
    padding: 20px 16px;
  }

  .profile-section {
    padding: 20px 16px;
  }

  .profile-section-title {
    font-size: 1.1rem;
  }

  .profile-save-btn {
    width: 100%;
  }

  /* Pagination buttons stack on mobile */
  .profile-pagination {
    flex-direction: column;
    gap: 10px;
  }

  .profile-pagination-btn {
    width: 100%;
    justify-content: center;
  }

  /* History cards already switch via existing media query */
  .profile-history-card {
    padding: 14px;
  }

  .profile-history-card-value {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .profile-layout {
    padding: 16px 12px;
  }

  .profile-section {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .profile-section-title {
    font-size: 1rem;
    margin-bottom: 16px;
  }
}

/* ── Dashboard Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-layout {
    padding: 20px 16px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .chart-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-card {
    min-height: 200px;
  }

  /* Table horizontal scroll */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

@media (max-width: 480px) {
  .dash-layout {
    padding: 16px 12px;
  }

  .kpi-card {
    padding: 14px 12px;
  }

  .kpi-value {
    font-size: 1.4rem;
  }

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