/* Mic button inside textarea (standard input style) */
.input-mic-row .textarea-wrapper {
  width: 100%;
}
.input-mic-row textarea {
  width: 100%;
  box-sizing: border-box;
  background-clip: padding-box;
  position: relative;
  z-index: 1;
}
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.cta-stack.cta-stack-no-primary {
  gap: 10px;
  margin-top: 10px;
}

.cta-stack.cta-stack-no-primary .secondary-actions {
  width: 100%;
  max-width: 740px;
}

.cta-stack.cta-stack-no-primary .secondary-actions .feature-action {
  flex: 1 1 220px;
}

.cta-stack.cta-stack-no-primary .secondary-actions .secondary {
  width: 100%;
}
.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.feature-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.feature-action-primary {
  min-width: 210px;
  position: relative;
  z-index: 20000;
  isolation: isolate;
}

.feature-action button {
  width: 100%;
}

.primary-cta .feature-action {
  width: auto;
}

.primary-cta .feature-action button {
  width: auto;
  min-width: 210px;
}

.scan-mode-panel {
  width: 100%;
  max-width: 100%;
  margin: 32px auto 28px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background:
    radial-gradient(700px circle at 50% 0%, rgba(59, 130, 246, 0.20), transparent 58%),
    linear-gradient(180deg, rgba(9, 14, 24, 0.86), rgba(5, 8, 15, 0.72));
  box-shadow:
    0 24px 54px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(96, 165, 250, 0.08);
  position: relative;
  overflow: hidden;
}

.scan-mode-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125, 249, 255, 0.08), transparent 32%, rgba(167, 139, 250, 0.08) 68%, transparent 100%);
  pointer-events: none;
}

.scan-mode-intro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  text-align: center;
  margin-bottom: 14px;
}

.scan-mode-kicker {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.30);
  background: rgba(125, 211, 252, 0.10);
  color: #bfe8ff;
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 800;
}

.scan-mode-intro h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.scan-mode-intro p {
  margin: 0 auto;
  max-width: 700px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.95rem;
  line-height: 1.5;
}

#scanBtn {
  position: relative;
  z-index: 20001;
  pointer-events: auto !important;
  touch-action: manipulation;
  display: inline-flex;
}

#scanBtn.scan-debug-pressed {
  transform: scale(0.985);
  box-shadow: 0 0 0 4px rgba(125, 249, 255, 0.28), 0 16px 36px rgba(37, 99, 235, 0.36);
}

.local-scan-debug-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  min-height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(10,132,255,0.35);
  cursor: pointer;
}

.local-scan-debug-btn:active {
  transform: scale(0.98);
}

.local-scan-debug-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.44);
  backdrop-filter: blur(10px);
}

.local-scan-debug-bar button,
.local-scan-debug-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.local-scan-debug-bar .primary-action {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  color: #fff;
}

.local-scan-debug-bar .secondary-action {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
}

@media (max-width: 780px) {
  .local-scan-debug-bar {
    width: calc(100% - 20px);
    border-radius: 18px;
    padding: 10px;
    flex-direction: column;
  }

  .local-scan-debug-bar button,
  .local-scan-debug-bar a {
    width: 100%;
  }
}

.feature-trial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.35);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.feature-trial-badge[data-state="upgrade"] {
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
  border-color: rgba(251,191,36,0.32);
}

.auto-detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.35);
}

.auto-detect-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auto-detect-reason {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

.auto-detect-badge.active {
  background: linear-gradient(135deg, rgba(125,249,255,0.2), rgba(96,165,250,0.15));
  border-color: rgba(125,249,255,0.45);
  color: #818cf8;
}

[data-theme="light"] .auto-detect-badge {
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
  border-color: rgba(59,130,246,0.3);
}
.primary-cta #scanBtn { min-width: 210px; }
.mic-combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mic-combo .mic-button { height: 48px; width: 48px; }
.mic-combo .mic-toggle { height: 48px; }
@media (max-width: 700px) {
  .cta-stack { gap: 10px; }
  .cta-stack.cta-stack-no-primary { margin-top: 6px; }
  .primary-cta { width: 100%; justify-content: center; flex-wrap: wrap; }
  .primary-cta #scanBtn { flex: 0 1 auto; width: auto; max-width: 80vw; }
  .scam-coach-cta { width: auto; max-width: 80vw; }
  .mic-combo { flex-wrap: nowrap; }
  .mic-combo .mic-button { width: 44px; height: 44px; }
  .mic-combo .mic-toggle { width: 44px; padding: 0 6px; }
  .mic-toggle-label { display: none; }

  .secondary-actions,
  .scam-coach-prompt {
    width: 100%;
  }

  .scan-mode-panel {
    margin: 24px auto;
    padding: 16px 14px 14px;
    border-radius: 20px;
  }

  .scan-mode-intro {
    gap: 6px;
    margin-bottom: 12px;
  }

  .scan-mode-intro p {
    font-size: 0.9rem;
  }

  .feature-action,
  .secondary-actions .feature-action {
    width: 100%;
    max-width: 100%;
  }

  .feature-trial-badge {
    width: 100%;
    white-space: normal;
  }

  .scam-coach-copy {
    font-size: 0.8rem;
  }

  .scam-coach-chip {
    width: 100%;
    text-align: center;
  }

  .secondary-actions .secondary,
  #directoryBtn,
  .pricing-card .subscribe-btn,
  #upgradeModal .subscribe-btn {
    width: auto;
    max-width: 80vw;
    margin: 0 auto;
    justify-content: center;
  }
}
.secondary-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.secondary-actions .feature-action {
  flex: 0 1 auto;
  max-width: 235px;
}

.secondary-actions .secondary {
  width: 100%;
  min-height: 44px;
  padding: 0 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(14, 165, 233, 0.08));
  border-color: rgba(59, 130, 246, 0.7);
  color: #f8fafc;
  box-shadow:
    0 12px 32px rgba(10, 132, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1.5px rgba(59, 130, 246, 0.4);
  font-weight: 800;
}

/* Scan-mode card buttons: center icon+label and avoid right-side slack */

/* Strong overrides for scan-mode card (beat cta-stack grow rules) */
.cta-stack.cta-stack-no-primary .scan-mode-panel .secondary-actions {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.cta-stack.cta-stack-no-primary .scan-mode-panel .secondary-actions .feature-action {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.cta-stack.cta-stack-no-primary .scan-mode-panel .secondary-actions .secondary {
  width: auto;
  min-width: 160px;
  padding: 0 12px;
  justify-content: center;
}

.scan-mode-panel .secondary-actions .secondary span {
  flex: 0 0 auto;
  text-align: center;
}

.secondary-actions .secondary:hover {
  background: linear-gradient(180deg, rgba(20, 30, 48, 1), rgba(10, 16, 28, 0.98));
  border-color: rgba(125, 211, 252, 0.95);
  color: #f8fafc;
  box-shadow:
    0 14px 32px rgba(37, 99, 235, 0.28),
    0 0 22px rgba(56, 189, 248, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .scan-mode-panel {
  border-color: rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(700px circle at 50% 0%, rgba(59, 130, 246, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94));
  box-shadow:
    0 18px 44px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 1px rgba(37, 99, 235, 0.06);
}

:root[data-theme="light"] .scan-mode-panel::before {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.10), transparent 34%, rgba(167, 139, 250, 0.08) 68%, transparent 100%);
}

:root[data-theme="light"] .scan-mode-intro h3 {
  color: #0f172a;
}

:root[data-theme="light"] .scan-mode-intro p {
  color: rgba(15, 23, 42, 0.74);
}

:root[data-theme="light"] .scan-mode-kicker {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

:root[data-theme="light"] .secondary-actions .secondary {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(243,247,255,0.98));
  border-color: rgba(37, 99, 235, 0.20);
  color: #0f172a;
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(37, 99, 235, 0.05);
}

:root[data-theme="light"] .secondary-actions .secondary:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.14),
    0 0 18px rgba(125, 211, 252, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.scam-coach-cta {
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.45) !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.10), rgba(37, 99, 235, 0.08)) !important;
  color: #e0f2fe !important;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform var(--transition-fast) ease, border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease, background var(--transition-fast) ease;
}

.scam-coach-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 255, 0.75) !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.14)) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28), 0 0 18px rgba(56, 189, 248, 0.22);
}

.scam-coach-cta[aria-expanded="true"] {
  border-color: rgba(125, 249, 255, 0.85) !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.18)) !important;
  box-shadow: 0 0 0 3px rgba(125, 249, 255, 0.18), 0 12px 28px rgba(37, 99, 235, 0.28);
}

.scam-coach-cta i,
.scam-coach-cta svg {
  width: 18px;
  height: 18px;
  color: #8ab4ff;
  stroke: #8ab4ff;
}

.scam-coach-prompt {
  width: 100%;
  max-width: 740px;
  margin: 6px auto 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.6), rgba(8, 12, 20, 0.45));
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scam-coach-prompt.hidden {
  display: none;
}

.scam-coach-prompt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scam-coach-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(56, 189, 248, 0.10);
  color: #8ab4ff;
}

.scam-coach-prompt[data-state="post-analysis"] .scam-coach-state-pill {
  border-color: rgba(167, 243, 208, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.scam-coach-copy {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(219, 234, 254, 0.94);
  font-weight: 600;
  flex: 1;
  min-width: 200px;
}

.scam-coach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scam-coach-chip {
  appearance: none;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast) ease, border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease, background var(--transition-fast) ease;
}

.scam-coach-prompt[data-state="post-analysis"] .scam-coach-chip {
  border-color: rgba(167, 243, 208, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.scam-coach-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 255, 0.68);
  background: rgba(96, 165, 250, 0.14);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.scam-coach-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 249, 255, 0.24);
}

.scam-coach-chip.is-sending {
  pointer-events: none;
  opacity: 0.7;
  border-color: rgba(125, 249, 255, 0.85);
  background: rgba(56, 189, 248, 0.18);
}

.inline-analysis-preview {
  width: 100%;
  max-width: 740px;
  margin: 2px auto 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.55), rgba(8, 12, 20, 0.38));
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.22), inset 0 1px 0 rgba(255,255,255,0.05);
  display: grid;
  gap: 7px;
}

.inline-analysis-preview.hidden {
  display: none;
}

.inline-analysis-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-analysis-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: #8ab4ff;
}

.inline-analysis-score {
  font-size: 0.82rem;
  font-weight: 800;
  color: #e0f2fe;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.inline-analysis-summary {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(219, 234, 254, 0.94);
}

[data-theme="light"] .inline-analysis-preview {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 250, 255, 0.95));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .inline-analysis-kicker {
  color: #1d4ed8;
}

[data-theme="light"] .inline-analysis-score {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .inline-analysis-summary {
  color: #1e293b;
}
/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Design tokens */
:root{
  --page-pad: 28px;
  --bg-900: #05070c;
  --bg-800: #0b0f17;
  --bg-700: #121420;
  --panel: rgba(255,255,255,0.03);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.06);
  --muted: rgba(255,255,255,0.55);
  --text: #e9eef8;
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --success: #10b981;
  --danger: #f43f5e;
  --risk-red: #ef4444;
  --risk-red-rgb: 239, 68, 68;
  --warning: #f59e0b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(2,6,23,0.6);
  --glass-blur: 12px;
  --transition-fast: 160ms;
  --transition-medium: 260ms;
  --regional-border: rgba(10, 132, 255, 0.12);
  --regional-heading: rgba(138, 180, 255, 0.95);
  --regional-card-bg: rgba(255,255,255,0.02);
  --regional-card-border: rgba(10, 132, 255, 0.18);
  --regional-title: rgba(255,255,255,0.95);
  --regional-text: rgba(255,255,255,0.6);
  --regional-badge-bg: rgba(10, 132, 255, 0.18);
  --regional-badge-text: rgba(138, 180, 255, 0.95);
  --regional-chevron: rgba(94, 92, 230, 0.6);
}

@media (max-width: 640px) {
  :root { --page-pad: 16px; }
}

@media (max-width: 480px) {
  :root { --page-pad: 12px; }
}

html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 30% 20%, var(--bg-700) 0%, var(--bg-800) 45%, var(--bg-900) 100%);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

html {
  /* Enable smooth scrolling and GPU acceleration */
  scroll-behavior: smooth;
  /* Reduce repaints on scroll */
  contain: layout style paint;
}

/* Optimize scrolling performance */
section, [class*="section"], .card, .results-section {
  /* Enable GPU acceleration for frequently repainted elements */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: auto;
}

/* Optimize animated elements */
.results-section.modern,
.kb-card,
.kb-card-read,
.scam-likelihood-result {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: auto;
}

body {
  position: relative;
}

@media (max-width: 900px) {
  html {
    contain: none;
  }

  body {
    touch-action: pan-y;
    overflow-x: hidden;
  }

  html::before,
  body::before,
  body::after {
    animation: none !important;
    transform: none !important;
  }
}

html::before {
  content: "";
  position: fixed;
  top: -50%;
  left: 50%;
  width: 120%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(96,165,250,0.15) 0%, rgba(125,249,255,0.08) 25%, transparent 65%);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  animation: iosGlowPulse 6s ease-in-out infinite;
}

/* Wisdom Quote */
.wisdom-quote {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.55);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 12px;
  font-style: italic;
  line-height: 1.5;
  padding: 0 16px;
  animation: none;
  letter-spacing: 0.3px;
}

@keyframes subtleGlow {
  0% {
    color: var(--muted);
    text-shadow: 0 0 0px rgba(96, 165, 250, 0);
  }
  50% {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
  }
  100% {
    color: var(--muted);
    text-shadow: 0 0 0px rgba(96, 165, 250, 0);
  }
}

@keyframes iosGlowPulse {
  0% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.18;
  }
  100% {
    opacity: 0.12;
  }
}

[data-theme="light"] .wisdom-quote {
  color: rgba(100, 116, 139, 0.52);
  animation: none;
}

@keyframes subtleGlowLight {
  0% {
    color: rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 0px rgba(37, 99, 235, 0);
  }
  50% {
    color: rgba(0, 0, 0, 0.75);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
  }
  100% {
    color: rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 0px rgba(37, 99, 235, 0);
  }
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  transform: translate3d(0,0,0);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

body::before {
  background: radial-gradient(circle at 20% 30%, rgba(10,132,255,0.45), rgba(10,132,255,0) 40%),
              radial-gradient(circle at 70% 20%, rgba(94,92,230,0.4), rgba(94,92,230,0) 38%),
              radial-gradient(circle at 50% 60%, rgba(244,63,94,0.35), rgba(244,63,94,0) 40%);
}

body::after {
  inset: auto -15% -25% -5%;
  height: 60vh;
  background: radial-gradient(circle at 30% 60%, rgba(10,132,255,0.35), rgba(10,132,255,0) 38%),
              radial-gradient(circle at 75% 70%, rgba(94,92,230,0.3), rgba(94,92,230,0) 36%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

@keyframes aurora-drift {
  0%   { transform: translate3d(0, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.05); opacity: 0.5; }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.08); opacity: 0.42; }
}

/* =========================
   HEADER
========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.header-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-business-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: rgba(96, 165, 250, 0.12);
  transition: transform var(--transition-fast) ease, border-color var(--transition-fast) ease, background var(--transition-fast) ease;
}

.header-business-link:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 255, 0.7);
  background: rgba(96, 165, 250, 0.2);
}

[data-theme="light"] .header-business-link {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .header-business-link:hover {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.16);
}

@media (max-width: 900px) {
  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .header-business-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d6d9df;
  transition: transform var(--transition-fast) ease, background var(--transition-fast) ease;
}
.theme-toggle:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; }

.header-auth-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.56));
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-auth-link {
  position: relative;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.015em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast) ease, background-color var(--transition-fast) ease, border-color var(--transition-fast) ease, transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.header-auth-link:hover {
  color: #f8fbff;
  transform: translateY(-1px);
}

.header-auth-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 249, 255, 0.16);
}

.header-auth-link:active {
  transform: translateY(0);
}

#headerLoginLink {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(148, 163, 184, 0.08));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#headerLoginLink:hover {
  border-color: rgba(125, 249, 255, 0.34);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(125, 249, 255, 0.1));
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255,255,255,0.12);
}

#headerSignupLink {
  color: #f8fbff;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  border-color: rgba(125, 249, 255, 0.36);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255,255,255,0.24);
}

#headerSignupLink:hover {
  border-color: rgba(125, 249, 255, 0.5);
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36), 0 0 22px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255,255,255,0.28);
}

.header-auth-separator {
  display: none;
}

.header-greeting {
  color: #dbeafe;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

[data-theme="light"] .header-auth-link,
[data-theme="light"] .header-greeting {
  color: #1e3a8a;
}

[data-theme="light"] .header-auth-links {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241, 245, 249, 0.94));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.92);
}

[data-theme="light"] .header-auth-link:hover {
  color: #0f172a;
}

[data-theme="light"] #headerLoginLink {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(226, 232, 240, 0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] #headerLoginLink:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(224, 242, 254, 0.86));
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
}

[data-theme="light"] #headerSignupLink {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255,255,255,0.28);
}

[data-theme="light"] #headerSignupLink:hover {
  border-color: rgba(37, 99, 235, 0.44);
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255,255,255,0.22);
}

@media (max-width: 760px) {
  .header-auth-links {
    gap: 6px;
    padding: 4px;
  }

  .header-auth-link {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

.home-dashboard-hub {
  margin: 16px 0 24px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #0f172a, #0b1220);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  position: sticky;
  top: 12px;
  z-index: 20;
  transition: padding var(--transition-fast) ease, border-color var(--transition-fast) ease, background-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.home-dashboard-hub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.home-dashboard-hub-copy {
  min-width: 0;
}

.home-dashboard-hub-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8ab4ff;
}

.home-dashboard-hub-copy h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  transition: font-size var(--transition-fast) ease, opacity var(--transition-fast) ease;
}

.home-dashboard-hub-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-dashboard-hub-toggle,
.home-dashboard-hub-link {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(15, 23, 42, 0.44);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.home-dashboard-hub-toggle:hover,
.home-dashboard-hub-link:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.58);
  background: rgba(15, 23, 42, 0.68);
  color: #8ab4ff;
}

.home-dashboard-hub .home-dashboard {
  margin: 12px 0 0;
}

.home-dashboard-hub.is-compact {
  padding: 10px 12px;
  border-color: rgba(125, 211, 252, 0.3);
  background: linear-gradient(180deg, #111b32, #0a1428);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}

.home-dashboard-hub.is-compact .home-dashboard-hub-copy h3 {
  font-size: 0.84rem;
  opacity: 0.9;
}

.home-dashboard {
  margin: 0 0 22px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, 0.11), transparent 55%),
    linear-gradient(170deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.58));
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-dashboard-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.home-dashboard-main {
  min-width: 0;
}

.home-dashboard-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-dashboard-eyebrow {
  margin: 0 0 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ab4ff;
  opacity: 0.95;
}

.home-dashboard-main h2 {
  margin: 0;
  font-size: 1.24rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.home-dashboard-subtitle {
  margin: 7px 0 0;
  font-size: 0.88rem;
  max-width: 560px;
  color: var(--muted);
}

.home-dashboard-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-dashboard-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.32);
  min-width: 0;
}

.home-dashboard-meta-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.home-dashboard-meta-item strong {
  font-size: 0.84rem;
  color: var(--text);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dashboard-logout {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.42);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color var(--transition-fast) ease, color var(--transition-fast) ease, background-color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.home-dashboard-logout:hover {
  border-color: rgba(125, 211, 252, 0.62);
  color: #8ab4ff;
  background: rgba(15, 23, 42, 0.66);
  transform: translateY(-1px);
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-dashboard-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.22));
  display: grid;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.home-dashboard-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.home-dashboard-card strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

[data-theme="light"] .home-dashboard {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(59, 130, 246, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246, 250, 255, 0.98));
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .home-dashboard-hub {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.92);
}

[data-theme="light"] .home-dashboard-hub.is-compact {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, #ffffff, #ecf4ff);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.95);
}

[data-theme="light"] .home-dashboard-hub-kicker {
  color: #1d4ed8;
}

[data-theme="light"] .home-dashboard-hub-toggle,
[data-theme="light"] .home-dashboard-hub-link {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(255,255,255,0.9);
}

[data-theme="light"] .home-dashboard-hub-toggle:hover,
[data-theme="light"] .home-dashboard-hub-link:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(219, 234, 254, 0.72);
}

[data-theme="light"] .home-dashboard-eyebrow {
  color: #1d4ed8;
}

[data-theme="light"] .home-dashboard-meta-item {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .home-dashboard-meta-label {
  color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .home-dashboard-meta-item strong {
  color: #0b1324;
}

[data-theme="light"] .home-dashboard-logout {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #0b1324;
}

[data-theme="light"] .home-dashboard-logout:hover {
  border-color: rgba(37, 99, 235, 0.52);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .home-dashboard-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

@media (max-width: 820px) {
  .home-dashboard-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-dashboard-actions,
  .home-dashboard-logout {
    width: 100%;
  }

  .home-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-dashboard-hub {
    padding: 12px;
    margin: 14px 0 18px;
    position: static;
  }

  .home-dashboard-hub-actions {
    width: 100%;
  }

  .home-dashboard-hub-toggle,
  .home-dashboard-hub-link {
    width: 100%;
  }

  .home-dashboard {
    padding: 16px;
  }

  .home-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .home-dashboard-meta-item {
    justify-content: space-between;
  }
}

/* Hide the button to the right of the theme toggle */
#loginBtn {
  display: none !important;
}

/* Theme variables overrides */
:root[data-theme="dark"] {
  --bg-900: #05070c;
  --bg-800: #0b0f17;
  --bg-700: #121420;
  --panel: rgba(255,255,255,0.03);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.06);
  --muted: rgba(255,255,255,0.55);
  --text: #e9eef8;
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --success: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;
}

:root[data-theme="light"] {
  --bg-900: #f6f8fb;
  --bg-800: #eff4f9;
  --bg-700: #e8eef6;
  --panel: rgba(0,0,0,0.02);
  --glass: rgba(255,255,255,0.75);
  --glass-border: rgba(0,0,0,0.08);
  --muted: rgba(0,0,0,0.55);
  --text: #0b1324;
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --success: #10b981;
  --danger: #dc2626;
  --risk-red: #ef4444;
  --risk-red-rgb: 239, 68, 68;
  --warning: #d97706;
  --shadow: 0 10px 30px rgba(15,23,42,0.08);
  --regional-border: rgba(6,182,212,0.2);
  --regional-heading: #0891b2;
  --regional-card-bg: rgba(6,182,212,0.03);
  --regional-card-border: rgba(6,182,212,0.15);
  --regional-title: #0b1324;
  --regional-text: #4b5563;
  --regional-badge-bg: rgba(6,182,212,0.1);
  --regional-badge-text: #0891b2;
  --regional-chevron: #64748b;
}

/* Subtle adjustments for light theme */
[data-theme="light"] body {
  background: radial-gradient(circle at top, var(--bg-700) 0%, var(--bg-800) 40%, var(--bg-900) 100%);
}
[data-theme="light"] .container {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
  color: #0b1324;
}
[data-theme="light"] .container:hover { box-shadow: 0 12px 32px rgba(15,23,42,0.1); }
[data-theme="light"] textarea::placeholder { color: rgba(0,0,0,0.45); }
[data-theme="light"] .summary-chips, [data-theme="light"] .summary-item, [data-theme="light"] .detail-item,
[data-theme="light"] .detail-content, [data-theme="light"] .verdict-header-text, [data-theme="light"] .stat-label {
  color: #0b1324 !important;
}
[data-theme="light"] textarea {
  background: rgba(255,255,255,0.96);
  border: 2px solid rgba(10,132,255,0.25);
  border-color: rgba(10,132,255,0.25);
  color: var(--text);
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.08), 0 0 0 0 rgba(10,132,255,0.1);
}

[data-theme="light"] textarea:focus {
  border-color: rgba(10,132,255,0.7);
  box-shadow: 0 6px 18px rgba(10,132,255,0.12), inset 0 -4px 10px rgba(0,0,0,0.08), 0 0 0 3px rgba(10,132,255,0.15);
}
[data-theme="light"] button.primary {
  color: #ffffff;
  background: radial-gradient(120% 140% at 0% 0%, rgba(94, 92, 230, 0.35) 0%, rgba(94, 92, 230, 0) 55%), linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
  box-shadow: 0 4px 16px rgba(10,132,255,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}
[data-theme="light"] button.primary:hover {
  box-shadow: 0 8px 24px rgba(10,132,255,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
[data-theme="light"] button.primary svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
[data-theme="light"] .headline {
  background: linear-gradient(90deg, #0b1324, #1e293b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .language-menu { background: rgba(255,255,255,0.98); border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 8px 24px rgba(15,23,42,0.12); }
[data-theme="light"] .language-menu button { color: #1f2937; }
[data-theme="light"] .language-menu button.selected { background: rgba(10,132,255,0.12); color: #0066cc; }
[data-theme="light"] .language-menu button:hover { background: rgba(10,132,255,0.08); color: #0a84ff; }
[data-theme="light"] .region-menu { background: rgba(255,255,255,0.98); border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 8px 24px rgba(15,23,42,0.12); }
[data-theme="light"] .region-menu button { color: #1f2937; }
[data-theme="light"] .region-menu button.selected { background: rgba(10,132,255,0.12); color: #0066cc; }
[data-theme="light"] .region-menu button:hover { background: rgba(10,132,255,0.08); color: #0a84ff; }
[data-theme="light"] .mic-button svg { color: #334155; }
[data-theme="light"] #langIcon { color: #1f2937; border-color: rgba(0,0,0,0.12); background: rgba(255,255,255,0.9); }
[data-theme="light"] #langIcon .lang-icon { stroke: currentColor; }
[data-theme="light"] #langIcon .lang-caret { stroke: currentColor; }
[data-theme="light"] #regionIcon { color: #1f2937; border-color: rgba(0,0,0,0.12); background: rgba(255,255,255,0.9); }
[data-theme="light"] #regionIcon svg { stroke: currentColor; }
[data-theme="light"] .theme-toggle { color: #1f2937; border-color: rgba(0,0,0,0.12); background: rgba(255,255,255,0.9); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .logo { color: var(--text); }
[data-theme="light"] .mic-button { color: var(--text); background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.05); box-shadow: 0 6px 16px rgba(15,23,42,0.08); }
[data-theme="light"] .mic-button.recording { box-shadow: 0 4px 10px rgba(220,38,38,0.16); }
[data-theme="light"] button.secondary { color: #0b1324; border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.04); }
[data-theme="light"] button.secondary:hover { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .secondary-actions .secondary {
  background: #ffffff;
  background-color: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .secondary-actions .secondary:hover {
  background: #f8fafc;
  background-color: #f8fafc;
  border-color: rgba(37, 99, 235, 0.6);
  color: #1d4ed8;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .scam-coach-cta {
  border-color: rgba(37, 99, 235, 0.38) !important;
  color: #0f172a;
  background: #ffffff;
}

[data-theme="light"] .scam-coach-prompt {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 250, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .scam-coach-copy {
  color: #1e293b;
}

[data-theme="light"] .scam-coach-chip {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .scam-coach-chip:hover {
  background: rgba(219, 234, 254, 0.66);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
}
[data-theme="light"] .summary-list li { 
  color: rgba(0,0,0,0.85) !important; 
  background: rgba(0,0,0,0.08) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
[data-theme="light"] .summary-list li.high { 
  background: rgba(220,38,38,0.12) !important; 
  color: #991b1b !important;
  border-color: rgba(220,38,38,0.25) !important;
}
[data-theme="light"] .summary-list li.medium { 
  background: rgba(217,119,6,0.12) !important; 
  color: #92400e !important;
  border-color: rgba(217,119,6,0.25) !important;
}
[data-theme="light"] .summary-list li.low { 
  background: rgba(5,150,105,0.12) !important; 
  color: #065f46 !important;
  border-color: rgba(5,150,105,0.25) !important;
}
[data-theme="light"] .regional-scams-section { border-top: 1px solid var(--regional-border); }
[data-theme="light"] .regional-scams-section h3 { color: var(--regional-heading); }
[data-theme="light"] .regional-scam-card { background: var(--regional-card-bg); border: 1px solid var(--regional-card-border); }
[data-theme="light"] .regional-scam-card h4 { color: var(--regional-title); }
[data-theme="light"] .regional-scam-card p { color: var(--regional-text); }
[data-theme="light"] .regional-scam-card span { background: var(--regional-badge-bg); color: var(--regional-badge-text); }
[data-theme="light"] .progress {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .progress-track {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .progress-bar {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}
[data-theme="light"] .progress-label {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
}

/* =========================
   LOGO
========================= */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.25rem;
  color: #ffffff;
  --logo-lockup-gradient: linear-gradient(90deg, #0a84ff 0%, #3d9eff 28%, #5e5ce6 62%, #0a84ff 100%);
}

#appName,
.brand-text strong {
  background: var(--logo-lockup-gradient);
  background-size: 220px 100%;
  background-position: -42px 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] #appName,
[data-theme="light"] .brand-text strong {
  background: var(--logo-lockup-gradient);
  background-size: 220px 100%;
  background-position: -42px 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0a84ff;
  box-shadow:
    0 10px 22px rgba(10, 132, 255, 0.34),
    0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease;
}

.logo:hover .orb {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(10, 132, 255, 0.48),
    0 4px 10px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* Scan Sweep Logo */
.electric-logo {
  display: block;
  width: 24px;
  height: 29.0763px;
  color: #0a84ff;
  filter:
    drop-shadow(0 10px 22px rgba(10, 132, 255, 0.34))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), filter 0.22s ease;
}

[data-theme="light"] .electric-logo {
  color: #0a84ff;
  filter:
    drop-shadow(0 8px 18px rgba(10, 132, 255, 0.22))
    drop-shadow(0 2px 6px rgba(15, 23, 42, 0.14));
}

.logo:hover .electric-logo {
  transform: translateY(-1px);
  filter:
    drop-shadow(0 14px 30px rgba(10, 132, 255, 0.48))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.24));
}

.electric-logo #SB-logo path,
.electric-logo .brand-logo-path {
  fill: currentColor !important;
}

/* Legacy scanner bars removed */

/* =========================
   LANGUAGE DROPDOWN
========================= */
.language-dropdown {
  position: relative;
}

@media (max-width: 760px) {
  header {
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
    gap: 10px;
  }

  .header-left {
    flex: 1;
    min-width: 0;
  }

  #appName {
    font-size: 1.05rem;
  }

  .language-dropdown {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .header-auth-links {
    padding: 3px;
    gap: 4px;
  }

  .header-auth-link {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  #headerGreeting,
  #headerLogoutLink {
    display: none !important;
  }
}

#langIcon {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #d6d9df; /* icon color */
  transition: transform var(--transition-fast) ease, background var(--transition-fast) ease, border-color var(--transition-fast) ease;
}

#langIcon .lang-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor; /* Lucide uses stroke */
}

#langIcon .lang-caret {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

#langIcon:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }

/* Region selector (same style as language) */
#regionIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  gap: 2px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
  transition: transform var(--transition-fast) ease, background var(--transition-fast) ease, border-color var(--transition-fast) ease;
}

#regionIcon:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }

.region-menu {
  position: absolute;
  top: 36px;
  right: 0;
  background: rgba(20,20,25,0.95);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 90px;
  z-index: 1000;
}
.region-menu.hidden { display: none; }

.region-menu button {
  background: transparent;
  border: none;
  color: #d6d9df;
  padding: 7px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.region-menu .region-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.9;
}

.region-menu .region-icon svg {
  width: 16px;
  height: 16px;
}

.region-menu .region-label {
  display: inline-block;
}

.region-menu button.selected {
  background: rgba(125, 249, 255, 0.2);
  color: #818cf8;
}

.region-menu button:hover {
  background: rgba(125, 249, 255, 0.1);
  color: #818cf8;
}

.language-menu {
  position: absolute;
  top: 36px;
  right: 0;
  background: rgba(20,20,25,0.95);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 60px;
  z-index: 1000;
}
.language-menu.hidden { display: none; }

.language-menu button {
  background: transparent;
  border: none;
  color: #d6d9df;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.language-menu button.selected {
  background: rgba(125, 249, 255, 0.2);
  color: #818cf8;
}

.language-menu button:hover {
  background: rgba(125, 249, 255, 0.1);
  color: #818cf8;
}

/* =========================
   HEADLINE / TYPOGRAPHY
========================= */
.headline {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  background: linear-gradient(90deg, #eff6ff, #bde6ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Inter", "SF Pro Display", -apple-system, sans-serif;
}
.headline-subtitle {
  text-align: center;
  margin: 0 auto 20px;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.8);
  letter-spacing: 0.01em;
}

.safety-flow-section {
  margin: 32px 0 28px;
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  background: 
    radial-gradient(ellipse 140% 100% at 0% -10%, rgba(10, 132, 255, 0.12), transparent 48%),
    radial-gradient(ellipse 100% 90% at 100% 100%, rgba(94, 92, 230, 0.1), transparent 44%),
    linear-gradient(165deg, rgba(17, 24, 39, 0.78), rgba(8, 12, 20, 0.68));
  box-shadow: 
    0 24px 48px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(10, 132, 255, 0.05) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.scam-warning-ticker + .safety-flow-section {
  margin-top: 18px;
}

.safety-flow-header {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.safety-flow-header h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  color: #f0f9ff;
  line-height: 1.15;
}

.safety-flow-header p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(186, 230, 253, 0.76);
  line-height: 1.6;
  max-width: 58ch;
}

.safety-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.safety-flow-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 240ms cubic-bezier(.22,.61,.36,1), border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.safety-flow-item:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.05);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.32);
}

.safety-flow-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f0f9ff;
  border: 1px solid rgba(10, 132, 255, 0.22);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.14), rgba(94, 92, 230, 0.14));
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.08);
}

.safety-flow-copy h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #e0f2fe;
  letter-spacing: -0.01em;
}

.safety-flow-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(10, 132, 255, 0.6);
}

.scam-stats-section {
  margin: 32px 0 28px;
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  background:
    radial-gradient(ellipse 140% 100% at 100% 0%, rgba(94, 92, 230, 0.12), transparent 48%),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgba(10, 132, 255, 0.1), transparent 44%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.78), rgba(8, 12, 20, 0.68));
  box-shadow: 
    0 24px 48px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(10, 132, 255, 0.05) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.scam-stats-header {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.scam-stats-header h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  color: #f0f9ff;
  line-height: 1.15;
}

.scam-stats-header p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(186, 230, 253, 0.76);
  line-height: 1.6;
  max-width: 62ch;
}

.scam-stats-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.scam-stat-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
  transition: transform 240ms cubic-bezier(.22,.61,.36,1), border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.scam-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.05);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.32);
}

.scam-stat-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 132, 255, 0.56);
  font-weight: 700;
}

.scam-stat-value {
  font-size: 1.48rem;
  letter-spacing: -0.026em;
  color: #f0f9ff;
  font-weight: 800;
}

.scam-stat-footnote {
  font-size: 0.82rem;
  line-height: 1.52;
  color: rgba(10, 132, 255, 0.58);
}

.scam-stats-visuals {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.scam-chart-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
}

.scam-chart-card h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.scam-bars {
  display: grid;
  gap: 9px;
}

.scam-chart-caption {
  margin: -2px 0 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(219, 234, 254, 0.72);
}

.scam-distribution {
  display: grid;
  gap: 14px;
}

.scam-distribution-bar {
  display: flex;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148,163,184,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.scam-distribution-segment {
  flex: 0 0 var(--segment-width);
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.scam-segment-sms   { background: linear-gradient(90deg, #0a84ff, #0066cc); }
.scam-segment-email { background: linear-gradient(90deg, #0066cc, #5e5ce6); }
.scam-segment-phone { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.scam-segment-social { background: linear-gradient(90deg, #a855f7, #ec4899); }

.scam-distribution-legend {
  display: grid;
  gap: 10px;
}

.scam-distribution-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #dbeafe;
}

.scam-distribution-item strong {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.scam-legend-chip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

.scam-bar-row {
  display: grid;
  grid-template-columns: 86px 1fr 42px;
  align-items: center;
  gap: 8px;
}

.scam-bar-row span,
.scam-bar-row strong {
  font-size: 0.8rem;
  color: #dbeafe;
}

.scam-bar-row strong {
  text-align: right;
}

.scam-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,0.24);
  overflow: hidden;
}

.scam-bar-fill {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #0ea5e9);
  box-shadow: 0 0 14px rgba(34,211,238,0.28);
  animation: scamBarRise 900ms ease both;
}

@keyframes scamBarRise {
  from { width: 0; }
  to { width: var(--bar); }
}

.scam-trend {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(15,23,42,0.42);
  padding: 8px 8px 28px;
  min-height: 134px;
}

.scam-trend-grid {
  position: absolute;
  inset: 8px 8px 28px;
  border-radius: 8px;
  background:
    linear-gradient(to right, rgba(148,163,184,0.08) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(to top, rgba(148,163,184,0.08) 1px, transparent 1px) 0 0 / 100% 25%;
}

.scam-trend svg {
  position: relative;
  width: 100%;
  height: 92px;
}

.scam-trend svg path {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(34,211,238,0.35));
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: scamTrendDraw 1200ms ease forwards;
}

@keyframes scamTrendDraw {
  to { stroke-dashoffset: 0; }
}

.scam-trend-labels {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(148,163,184,0.95);
}

.scam-stats-disclaimer {
  margin: 10px 2px 2px;
  font-size: 0.76rem;
  color: rgba(148,163,184,0.9);
}

@media (max-width: 860px) {
  .safety-flow-grid {
    grid-template-columns: 1fr;
  }

  .scam-stats-cards,
  .scam-stats-visuals {
    grid-template-columns: 1fr;
  }
}

[data-theme="light"] .safety-flow-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 251, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .safety-flow-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .safety-flow-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .safety-flow-icon {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.16));
}

[data-theme="light"] .safety-flow-header h2 {
  color: #0f172a;
}

[data-theme="light"] .safety-flow-header p {
  color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .safety-flow-copy h4 {
  color: #1e293b;
}

[data-theme="light"] .safety-flow-copy p {
  color: #2563eb;
}

[data-theme="light"] .scam-stats-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 250, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .scam-stat-card,
[data-theme="light"] .scam-chart-card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .scam-stat-kicker,
[data-theme="light"] .scam-trend-labels,
[data-theme="light"] .scam-stats-disclaimer {
  color: rgba(15, 23, 42, 0.62);
}

[data-theme="light"] .scam-stat-value,
[data-theme="light"] .scam-bar-row span,
[data-theme="light"] .scam-bar-row strong {
  color: #0f172a;
}

[data-theme="light"] .scam-trend {
  background: rgba(255,255,255,0.9);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .scam-trend-grid {
  background:
    linear-gradient(to right, rgba(6,182,212,0.08) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(to top, rgba(6,182,212,0.08) 1px, transparent 1px) 0 0 / 100% 25%;
}

[data-theme="light"] .scam-trend svg path {
  stroke: #0891b2;
}

@media (max-width: 480px){ .headline { font-size: 1.25rem; margin-top: 16px; padding: 0 16px; } }

body { font-size: 15.5px; }

.summary-list li { background: rgba(255,255,255,0.02); padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight:600; border: 1px solid rgba(255,255,255,0.03); }


/* =========================
   CONTAINER (modernized)
========================= */
.container {
  max-width: 980px;
  width: 100%;
  margin: 32px auto 60px;
  padding: 28px 36px;
  background: linear-gradient(180deg, rgba(17,24,39,0.6), rgba(6,9,14,0.35));
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
  position: relative;
  z-index: 1;
}
.container:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(2,6,23,0.7); }

@media (min-width: 1000px) { .container { padding: 36px; } }

/* Responsive: container and input row */
@media (max-width: 700px) {
  .container {
    width: calc(100% - (var(--page-pad) * 2));
    margin: 24px auto 0;
    padding: 16px;
    max-width: 980px;
  }
  .input-row { flex-direction: column; gap: 8px; }
  .mic-controls { align-self: flex-end; gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 12px; }
  .input-row { flex-direction: column; gap: 6px; }
  .mic-controls { align-self: flex-end; gap: 6px; }
  .mic-button, .mic-toggle { width: 40px; height: 40px; font-size: 0.8rem; }
  .mic-toggle-label { display: none; }
}

/* =========================
   TEXTAREA
========================= */
textarea {
  width: 100%;
  min-height: 140px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 2px solid rgba(96,165,250,0.3);
  border-radius: 12px;
  padding: 18px;
  font-size: 1rem;
  color: var(--text);
  resize: none;
  outline: none;
  box-shadow: inset 0 -6px 18px rgba(0,0,0,0.35), 0 0 0 0 rgba(96,165,250,0.15);
  transition: all var(--transition-medium) ease;
  overflow: hidden;
}

textarea:focus {
  border-color: rgba(96,165,250,0.9);
  box-shadow: 0 8px 30px rgba(46,140,255,0.12), inset 0 -6px 18px rgba(0,0,0,0.35), 0 0 0 3px rgba(96,165,250,0.2);
}

textarea::placeholder {
  color: rgba(255,255,255,0.45);
  font-style: italic;
  animation: typingPlaceholder 8s steps(65, end) infinite;
}

@keyframes typingPlaceholder {
  0% {
    content: '';
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.45;
  }
}

/* Input row with microphone */
.input-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.textarea-wrapper {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}
.sender-meta-grid {
  width: min(676px, calc((100vw - 32px) * 0.6895));
  max-width: 100%;
  margin: 8px auto 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.sender-meta-grid input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.sender-meta-grid input::placeholder {
  color: var(--muted);
}

@media (max-width: 700px) {
  .sender-meta-grid {
    width: 100%;
    max-width: 850px;
  }
}

.input-type-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(96, 165, 250, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
  animation: slideIn 200ms ease;
}

.input-corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 11;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mic-controls { display:flex; gap:10px; align-items:center; }
.mic-button { position: relative; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); color: #fff; padding: 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; height: 48px; width: 48px; }
.mic-button svg { color: #cbd5e1; }
.mic-button.recording { background: rgba(244,63,94,0.14); border-color: rgba(244,63,94,0.28); box-shadow: 0 2px 8px rgba(244,63,94,0.12); }
.mic-button.recording svg { filter: drop-shadow(0 2px 6px rgba(244,63,94,0.14)); color: #f43f5e; }
.mic-button.continuous::after { content: '∞'; position: absolute; top: 6px; left: 6px; font-size: 10px; color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.12); padding: 1px 4px; border-radius: 8px; }
.mic-indicator { display:inline-block; width:8px; height:8px; background:#f43f5e; border-radius:999px; margin-left:8px; box-shadow:0 0 8px rgba(244,63,94,0.6); animation: pulse 1s infinite; }
.mic-toggle { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; background:transparent; border:1px solid rgba(255,255,255,0.04); color:var(--muted); border-radius:999px; cursor:pointer; font-weight:600; font-size:0.86rem; transition: background var(--transition-fast) ease, color var(--transition-fast) ease, transform var(--transition-fast) ease; }
.mic-toggle:hover{ background: rgba(255,255,255,0.02); transform: translateY(-2px); }
.mic-toggle.active{ background: linear-gradient(90deg, rgba(10,132,255,0.12), rgba(94,92,230,0.03)); color: var(--accent-2); border-color: rgba(10,132,255,0.14); box-shadow: 0 6px 18px rgba(10,132,255,0.06); }
.mic-toggle-indicator{ font-size:0.85rem; }
.mic-toggle-label{ font-size:0.82rem; opacity:0.95; }
@keyframes pulse { 0% { transform:scale(1); opacity:1;} 70% { transform:scale(1.6); opacity:.6;} 100% { transform:scale(1); opacity:1;} }

.results-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.results-actions .secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .input-row { flex-direction: row; }
  .mic-button { height: 44px; width: 44px; }
  .sender-meta-grid { grid-template-columns: 1fr; }
}

/* =========================
   BUTTONS (modernized)
========================= */
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(94, 92, 230, 0.45) 0%, rgba(94, 92, 230, 0) 55%), linear-gradient(135deg, #0a84ff 0%, #0066cc 55%, #0a4fb3 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(10,132,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  position: relative;
  overflow: hidden;
}

button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast) ease;
}

button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,132,255,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}

button.primary:hover::before {
  opacity: 1;
}

button.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(10,132,255,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

button.primary svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease, border-color var(--transition-fast) ease, color var(--transition-fast) ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: normal;
}

button.secondary i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: opacity var(--transition-fast) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.secondary svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: opacity var(--transition-fast) ease;
}

button.secondary span {
  flex: 1;
  text-align: left;
}

button.secondary:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(125, 211, 252, 0.45);
  transform: translateY(-2px);
  color: var(--text);
}

button.secondary:hover i {
  opacity: 1;
}

button.secondary:hover svg {
  opacity: 1;
}

/* =========================
   QR MODAL
========================= */
.qr-feature-action {
  display: none;
}

@media (max-width: 760px) {
  .qr-feature-action {
    display: flex;
  }
}

.qr-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.7);
  z-index: 1200;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .qr-modal {
    align-items: center;
  }
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal.hidden {
  display: none !important;
}

/* General Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  padding: 16px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-box {
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: slideUp 0.3s ease;
  position: relative;
}

.smart-scan-box {
  max-width: 460px;
  display: grid;
  gap: 12px;
}

#smartScanModal.modal {
  background:
    radial-gradient(1200px 700px at 50% 8%, rgba(10, 132, 255, 0.22), transparent 45%),
    radial-gradient(900px 520px at 80% 0%, rgba(94, 92, 230, 0.16), transparent 42%),
    rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  padding: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

#smartScanModal .smart-scan-box {
  position: fixed;
  top: var(--smart-scan-top, 20px);
  left: var(--smart-scan-left, 12px);
  width: min(460px, calc(100vw - 24px));
  max-height: min(78dvh, 560px);
  margin: 0;
  z-index: 10000;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 12, 20, 0.98), rgba(14, 20, 34, 0.96)),
    radial-gradient(circle at top, rgba(10,132,255,0.08), transparent 55%);
  border: 1px solid rgba(125, 249, 255, 0.18);
  box-shadow:
    0 28px 90px rgba(2, 6, 23, 0.72),
    0 0 0 1px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

#smartScanModal .smart-scan-box::before {
  content: 'ScanBeyond · Smart Scan';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 32px);
  margin: -16px -16px 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(10,132,255,0.18), rgba(94,92,230,0.18));
  color: #eaf3ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(125, 249, 255, 0.14);
}

@media (max-width: 760px) {
  #smartScanModal .smart-scan-box {
    width: min(460px, calc(100vw - 16px));
    left: var(--smart-scan-left, 8px);
    max-height: min(82dvh, 560px);
  }
}

.smart-scan-box h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

#smartScanModal .smart-scan-box h3 {
  position: relative;
  padding-top: 4px;
}

#smartScanModal .smart-scan-box h3::after {
  content: '';
  display: block;
  width: 74px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a84ff, #5e5ce6);
  box-shadow: 0 0 18px rgba(10,132,255,0.45);
}

.smart-scan-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.smart-scan-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -4px 0 0;
}

.smart-scan-switch-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--accent, #60a5fa);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.smart-scan-switch-link:hover {
  opacity: 0.8;
}

.smart-scan-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.smart-scan-action {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.smart-scan-action i,
.smart-scan-action svg {
  width: 18px;
  height: 18px;
}

#smartScanModal .smart-scan-box .smart-scan-actions .primary {
  background: radial-gradient(120% 140% at 0% 0%, rgba(94, 92, 230, 0.32) 0%, rgba(94, 92, 230, 0) 56%), linear-gradient(135deg, #0a84ff 0%, #2563eb 56%, #0a4fb3 100%);
  box-shadow: 0 10px 28px rgba(10,132,255,0.32), inset 0 1px 0 rgba(255,255,255,0.16);
}

#smartScanModal .smart-scan-box .smart-scan-actions .secondary {
  border-color: rgba(125, 249, 255, 0.18);
  background: rgba(255,255,255,0.03);
}

#smartScanModal .smart-scan-box .smart-scan-actions .secondary:hover {
  background: rgba(10,132,255,0.08);
  border-color: rgba(125,249,255,0.35);
}

#smartScanModal .close-modal {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(125,249,255,0.16);
  box-shadow: 0 8px 20px rgba(2,6,23,0.25);
}

#smartScanModal .close-modal:hover {
  color: #fff;
  background: rgba(10,132,255,0.18);
}

@media (max-width: 560px) {
  .smart-scan-box {
    padding: 20px 16px;
    gap: 10px;
  }

  .smart-scan-box h3 {
    font-size: 1.05rem;
  }

  .smart-scan-box p {
    font-size: 0.86rem;
  }
}

.qr-upgrade-box {
  max-width: 460px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(9, 12, 20, 0.98));
  border: 1px solid rgba(125, 249, 255, 0.18);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.75);
}

.qr-upgrade-header {
  text-align: center;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.qr-upgrade-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 249, 255, 0.12);
  color: #818cf8;
}

.qr-upgrade-icon svg {
  width: 26px;
  height: 26px;
}

.qr-upgrade-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.qr-upgrade-header p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.qr-upgrade-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-upgrade-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 4px 16px rgba(10,132,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.qr-upgrade-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,132,255,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}

.qr-upgrade-tooltip {
  position: fixed;
  z-index: 1001;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(9, 12, 20, 0.98));
  border: 1px solid rgba(125, 249, 255, 0.2);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
  color: var(--text);
  display: grid;
  gap: 8px;
  animation: tooltipFade 0.2s ease;
}

.qr-upgrade-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(15, 23, 42, 0.98);
}

.qr-tooltip-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.qr-tooltip-body {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.qr-tooltip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  width: fit-content;
}

.qr-tooltip-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}

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

[data-theme="light"] .qr-upgrade-box {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .qr-upgrade-header h3 {
  color: #0b1324;
}

[data-theme="light"] .qr-upgrade-header p {
  color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .qr-upgrade-tooltip {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  color: #0b1324;
}

[data-theme="light"] .qr-upgrade-tooltip::after {
  border-bottom-color: #ffffff;
}

[data-theme="light"] .qr-tooltip-body {
  color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .modal-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  color: #0b1324;
}

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

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) ease;
}

.close-modal:hover {
  color: var(--accent);
}

.qr-box {
  background:
    linear-gradient(180deg, rgba(9, 12, 20, 0.98), rgba(14, 20, 34, 0.95)),
    radial-gradient(circle at top, rgba(10,132,255,0.08), transparent 55%);
  padding: 18px;
  border-radius: 18px;
  max-width: 460px;
  width: min(460px, calc(100vw - 20px));
  max-height: calc(100dvh - 32px);
  text-align: center;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow-y: auto;
  border: 1px solid rgba(125, 249, 255, 0.18);
  box-shadow:
    0 28px 90px rgba(2, 6, 23, 0.72),
    0 0 0 1px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.qr-box::before {
  content: 'ScanBeyond · Live Scanner';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 36px);
  margin: -18px -18px 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(10,132,255,0.18), rgba(94,92,230,0.18));
  color: #eaf3ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(125, 249, 255, 0.14);
}

.qr-box::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,132,255,0.18), rgba(94,92,230,0.18)) top left / 72px 1px no-repeat,
    linear-gradient(90deg, rgba(10,132,255,0.18), rgba(94,92,230,0.18)) top right / 72px 1px no-repeat,
    linear-gradient(90deg, rgba(10,132,255,0.18), rgba(94,92,230,0.18)) bottom left / 72px 1px no-repeat,
    linear-gradient(90deg, rgba(10,132,255,0.18), rgba(94,92,230,0.18)) bottom right / 72px 1px no-repeat;
  opacity: 0.65;
}

[data-theme="light"] .qr-box {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)),
    radial-gradient(circle at top, rgba(37,99,235,0.06), transparent 55%);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow:
    0 26px 80px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(37,99,235,0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

[data-theme="light"] .qr-box::before {
  background: linear-gradient(90deg, rgba(37,99,235,0.14), rgba(94,92,230,0.12));
  color: #0f172a;
  border-bottom-color: rgba(37,99,235,0.12);
}

[data-theme="light"] .qr-box::after {
  background:
    linear-gradient(90deg, rgba(37,99,235,0.18), rgba(94,92,230,0.18)) top left / 72px 1px no-repeat,
    linear-gradient(90deg, rgba(37,99,235,0.18), rgba(94,92,230,0.18)) top right / 72px 1px no-repeat,
    linear-gradient(90deg, rgba(37,99,235,0.18), rgba(94,92,230,0.18)) bottom left / 72px 1px no-repeat,
    linear-gradient(90deg, rgba(37,99,235,0.18), rgba(94,92,230,0.18)) bottom right / 72px 1px no-repeat;
}

.qr-box h3 {
  width: 100%;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .qr-box h3 {
  color: #0b1324;
}

#qr-reader {
  width: min(100%, 340px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,132,255,0.12), rgba(94,92,230,0.08)),
    rgba(0,0,0,0.3);
  aspect-ratio: 1 / 1;
  min-height: clamp(200px, 42dvh, 320px);
  max-height: min(52dvh, 380px);
  max-width: 100%;
  border: 1px solid rgba(125, 249, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 14px 36px rgba(2,6,23,0.28);
}

#qr-reader > div,
#qr-reader video,
#qr-reader canvas,
#qr-reader img {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: inherit;
}

#qr-reader video,
#qr-reader canvas {
  height: 100% !important;
  object-fit: cover;
}

.qr-camera-error {
  width: 100%;
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(244, 63, 94, 0.38);
  background: rgba(127, 29, 29, 0.26);
  color: #fecaca;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
}

[data-theme="light"] .qr-camera-error {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 242, 242, 0.95);
  color: #991b1b;
}

[data-theme="light"] #qr-reader {
  background:
    linear-gradient(180deg, rgba(37,99,235,0.10), rgba(94,92,230,0.06)),
    rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.6),
    0 14px 36px rgba(15,23,42,0.12);
}

.qr-context-sheet {
  width: 100%;
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid rgba(125, 249, 255, 0.2);
  border-radius: 10px;
  background: rgba(14, 22, 38, 0.78);
  text-align: left;
}

.qr-context-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 4px;
}

.qr-context-copy {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.86);
}

#qrContextInput {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.45);
  color: #e2e8f0;
  padding: 10px 11px;
  font-size: 0.9rem;
}

#qrContextInput::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

#qrContextInput:focus {
  outline: none;
  border-color: rgba(96,165,250,0.65);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}

.qr-context-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.qr-context-actions .secondary,
.qr-context-actions .primary {
  flex: 1;
  justify-content: center;
}

[data-theme="light"] .qr-context-sheet {
  border-color: rgba(37,99,235,0.2);
  background: rgba(241, 245, 249, 0.95);
}

[data-theme="light"] .qr-context-title {
  color: #0f172a;
}

[data-theme="light"] .qr-context-copy {
  color: rgba(15, 23, 42, 0.75);
}

[data-theme="light"] #qrContextInput {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
}

[data-theme="light"] #qrContextInput::placeholder {
  color: rgba(71, 85, 105, 0.8);
}

#closeQR {
  width: 100%;
  margin-top: 0;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
}

#closeQR {
  border-color: rgba(125,249,255,0.18);
  background: rgba(255,255,255,0.03);
}

#closeQR:hover {
  background: rgba(10,132,255,0.08);
  border-color: rgba(125,249,255,0.35);
}

[data-theme="light"] #closeQR {
  background: rgba(37,99,235,0.04);
  border-color: rgba(37,99,235,0.16);
}

[data-theme="light"] #closeQR:hover {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.28);
}

@supports (position: sticky) {
  @media (orientation: landscape) and (max-height: 560px),
         (max-height: 640px) {
    .qr-box h3 {
      position: sticky;
      top: 0;
      z-index: 2;
      padding: 2px 0 10px;
      background: linear-gradient(180deg, rgba(20,20,25,0.985), rgba(20,20,25,0.9));
      box-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    #closeQR {
      position: sticky;
      bottom: 0;
      z-index: 2;
      margin-top: auto;
      border-top-left-radius: 14px;
      border-top-right-radius: 14px;
      border-bottom-left-radius: 14px;
      border-bottom-right-radius: 14px;
      background: linear-gradient(180deg, rgba(20,20,25,0.94), rgba(20,20,25,0.985));
      box-shadow: 0 -10px 22px rgba(2, 6, 23, 0.28);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .qr-box {
      padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    [data-theme="light"] .qr-box h3 {
      background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(255,255,255,0.92));
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    [data-theme="light"] #closeQR {
      background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.985));
      box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.12);
    }
  }
}

/* =========================
  RATING AND FEEDBACK WRAPPER
========================= */
.rating-feedback-wrapper {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.rating-feedback-wrapper.hidden {
  display: none;
}

/* =========================
  RATING BLOCK
========================= */
.rating-block {
  flex: 1;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rating-title { font-weight: 600; }

.rating-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.rating-stars {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.rating-stars button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.25);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rating-stars button svg {
  width: 22px;
  height: 22px;
  stroke: none;
  fill: currentColor;
  transition: all var(--transition-fast) ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

[data-theme="light"] .rating-stars button {
  color: rgba(0,0,0,0.35);
}
[data-theme="light"] .rating-stars button:hover {
  color: #fbbf24;
}
[data-theme="light"] .rating-stars button.selected {
  color: #fbbf24;
}

.rating-stars button:hover {
  transform: scale(1.15);
  color: #fbbf24;
}

.rating-stars button:hover svg {
  fill: rgba(251,191,36,0.2);
  filter: drop-shadow(0 2px 4px rgba(251,191,36,0.3));
}

.rating-stars button.selected {
  color: #fbbf24;
  background: transparent;
}

.rating-stars button.selected svg {
  fill: #fbbf24;
  stroke: none;
  filter: drop-shadow(0 2px 6px rgba(251,191,36,0.4));
}

.rating-thanks {
  font-size: 0.95rem;
  color: var(--success);
}

/* Feedback Trigger (aligned with rating) */
.feedback-trigger {
  display: flex;
  align-items: flex-start;
}

.feedback-trigger .secondary {
  margin: 0;
}

/* Mobile: Stack vertically */
@media (max-width: 640px) {
  .rating-feedback-wrapper {
    flex-direction: column;
  }
  
  .feedback-trigger {
    width: 100%;

[data-theme="light"] #smartScanModal.modal {
  background:
    radial-gradient(1200px 700px at 50% 8%, rgba(37, 99, 235, 0.10), transparent 45%),
    radial-gradient(900px 520px at 80% 0%, rgba(94, 92, 230, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.46);
}

[data-theme="light"] #smartScanModal .smart-scan-box {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)),
    radial-gradient(circle at top, rgba(37,99,235,0.06), transparent 55%);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow:
    0 26px 80px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="light"] #smartScanModal .smart-scan-box::before {
  background: linear-gradient(90deg, rgba(37,99,235,0.14), rgba(94,92,230,0.12));
  color: #0f172a;
  border-bottom-color: rgba(37,99,235,0.12);
}

[data-theme="light"] #smartScanModal .smart-scan-box h3::after {
  background: linear-gradient(90deg, #2563eb, #5e5ce6);
  box-shadow: 0 0 16px rgba(37,99,235,0.35);
}

[data-theme="light"] #smartScanModal .smart-scan-box .smart-scan-actions .secondary {
  border-color: rgba(37,99,235,0.18);
  background: rgba(37,99,235,0.04);
}

[data-theme="light"] #smartScanModal .smart-scan-box .smart-scan-actions .secondary:hover {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.28);
}
  }
  
  .feedback-trigger .secondary {
    width: 100%;
  }
}

/* =========================
   EDUCATIONAL SECTION
   ========================= */
.education-section {
  margin: 30px auto 40px;
  max-width: 980px;
  width: 100%;
  padding: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Homepage KB search bar */
.home-kb-search-wrap { display: flex; justify-content: center; margin: -4px 0 18px; }
.home-kb-search-wrap--top {
  width: 100%;
  max-width: 980px;
  margin: 12px auto 18px;
  padding: 0;
}
.home-kb-search-wrap--top .home-kb-search-form {
  width: 100%;
  max-width: none;
}
.home-kb-search-form { width: 100%; max-width: 980px; }
.home-kb-search-inner {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.65);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.home-kb-search-inner:focus-within { border-color: rgba(56,189,248,0.45); box-shadow: 0 0 0 3px rgba(56,189,248,0.1); }
.home-kb-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #475569; pointer-events: none; flex-shrink: 0; }
.home-kb-search-input {
  flex: 1;
  padding: 10px 12px 10px 40px;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.home-kb-search-input::placeholder { color: #475569; }
.home-kb-browse-link {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 100%;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  border-left: 1px solid rgba(148,163,184,0.15);
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
  flex-shrink: 0;
}
.home-kb-browse-link:hover { color: #8ab4ff; background: rgba(56,189,248,0.07); }

.home-kb-quick-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.home-kb-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(15,23,42,0.55);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-kb-quick-link i {
  width: 14px;
  height: 14px;
  color: #7dd3fc;
}

.home-kb-quick-link:hover {
  color: #e2e8f0;
  border-color: rgba(125,211,252,0.45);
  background: rgba(30,41,59,0.82);
  transform: translateY(-1px);
}

[data-theme="light"] .home-kb-search-inner {
  background: rgba(248,250,252,0.98);
  border-color: rgba(100,116,139,0.3);
}

[data-theme="light"] .home-kb-search-inner:focus-within {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

[data-theme="light"] .home-kb-search-icon {
  color: #475569;
}

[data-theme="light"] .home-kb-search-input {
  color: #0f172a;
}

[data-theme="light"] .home-kb-search-input::placeholder {
  color: #64748b;
}

[data-theme="light"] .home-kb-browse-link {
  color: #1e40af;
  border-left-color: rgba(100,116,139,0.2);
}

[data-theme="light"] .home-kb-browse-link:hover {
  color: #1e3a8a;
  background: rgba(59,130,246,0.1);
}

[data-theme="light"] .home-kb-quick-link {
  background: rgba(219, 234, 254, 0.5);
  border-color: rgba(37, 99, 235, 0.4);
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .home-kb-quick-link i {
  color: #1e40af;
}

[data-theme="light"] .home-kb-quick-link:hover {
  color: #0c0a16;
  border-color: rgba(37,99,235,0.6);
  background: rgba(191, 219, 254, 0.75);
}

@media (max-width: 700px) {
  .home-kb-search-wrap--top {
    margin: 10px auto 14px;
    width: calc(100% - (var(--page-pad) * 2));
    padding: 0;
  }

  .home-kb-search-wrap--top .home-kb-search-form {
    width: 100%;
    max-width: none;
  }

  /* Stack the input and "Browse all articles" link so the search field is full-width on mobile */
  .home-kb-search-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    overflow: visible;
  }
  .home-kb-search-input {
    padding: 12px 14px 12px 40px;
    width: 100%;
    font-size: 15px;
    line-height: 1.2;
    height: 44px;
  }
  /* Pin the search icon to the input row only (not the whole stacked container) */
  .home-kb-search-icon {
    top: 22px;
    transform: translateY(-50%);
  }
  .home-kb-browse-link {
    border-left: none;
    border-top: 1px solid rgba(148,163,184,0.15);
    justify-content: center;
    padding: 11px 16px;
    height: auto;
    min-height: 0;
    width: 100%;
  }
  [data-theme="light"] .home-kb-browse-link {
    border-top-color: rgba(100,116,139,0.2);
  }

  .home-kb-quick-menu {
    gap: 6px;
    margin-top: 8px;
  }

  .home-kb-quick-link {
    font-size: 0.76rem;
    padding: 6px 9px;
    gap: 6px;
  }

  .home-kb-quick-link i {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .home-kb-quick-menu {
    gap: 5px;
  }

  .home-kb-quick-link {
    font-size: 0.73rem;
    padding: 5px 8px;
    gap: 5px;
  }

  .home-kb-quick-link i {
    width: 11px;
    height: 11px;
  }
}

.education-section.hidden {
  opacity: 0;
  pointer-events: none;
}

.education-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

#eduToggleText,
.modal .education-title,
.modal-box .education-title {
  text-align: left;
}

.modal .education-title,
.modal-box .education-title,
.modal .education-section-title,
.modal-box .education-section-title,
.modal .education-paragraph,
.modal-box .education-paragraph,
.modal .education-list,
.modal-box .education-list {
  text-align: left !important;
}

/* Educational Videos Section */
.education-videos-section {
  margin: 30px auto 40px;
  max-width: 980px;
  width: 100%;
  padding: 0;
}

.education-videos-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.education-videos-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.education-videos-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.education-video-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.education-video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-filter-btn {
  border: 1px solid rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.08);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.video-filter-btn:hover {
  background: rgba(96,165,250,0.16);
  border-color: rgba(96,165,250,0.55);
}

.video-filter-btn.active {
  background: linear-gradient(135deg, rgba(96,165,250,0.35), rgba(125,249,255,0.2));
  color: #e0f2fe;
  border-color: rgba(125,249,255,0.6);
}

.education-video-nav {
  display: inline-flex;
  gap: 8px;
}

.video-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.08);
  color: var(--accent-2);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) ease;
}

.video-nav-btn:hover {
  background: rgba(96,165,250,0.2);
  border-color: rgba(96,165,250,0.6);
}

.video-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.education-video-carousel {
  position: relative;
  overflow: hidden;
}

.education-video-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.education-video-track::-webkit-scrollbar {
  height: 6px;
}

.education-video-track::-webkit-scrollbar-thumb {
  background: rgba(96,165,250,0.35);
  border-radius: 999px;
}

.education-video-category {
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.education-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.education-video-category {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 22px rgba(2,6,23,0.35);
}

.education-video-category-header h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
}

.education-video-category-header p {
  color: var(--muted);
  font-size: 0.92rem;
}

.education-video-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.education-video-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 8px 22px rgba(2,6,23,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.education-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: rgba(15,23,42,0.6);
}

.education-video-embed::before {
  content: "Add a YouTube URL";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
}

.education-video-embed.has-video::before {
  content: "";
}

.education-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 280ms ease;
}

.education-video-embed.is-loaded iframe {
  opacity: 1;
}

.education-video-embed.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.02) 20%, rgba(255,255,255,0.1) 45%, rgba(255,255,255,0.02) 70%);
  animation: embedShimmer 1.2s linear infinite;
}

@keyframes embedShimmer {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}

.education-video-meta {
  padding: 14px 16px 18px;
  display: grid;
  gap: 8px;
}

.education-video-meta h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.education-video-meta p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.education-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(96,165,250,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
}

.education-video-link:hover {
  color: var(--accent-2);
  border-color: rgba(96,165,250,0.55);
  background: rgba(96,165,250,0.12);
}

[data-theme="light"] .education-video-embed {
  background: rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .education-video-embed::before {
  color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .education-video-card {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}

[data-theme="light"] .education-video-category {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}

[data-theme="light"] .video-filter-btn {
  color: #1d4ed8;
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

[data-theme="light"] .video-filter-btn.active {
  color: #0b1324;
  background: rgba(37,99,235,0.2);
}

[data-theme="light"] .video-nav-btn {
  color: #1d4ed8;
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

/* Scam Warning Ticker */
.scam-warning-ticker {
  max-width: 980px;
  margin: 40px auto;
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(15, 23, 42, 0.55));
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.22);
}

.scam-warning-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e0eeff;
  border-right: 1px solid rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.18);
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0a84ff;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: tickerPulse 1.8s infinite;
}

@keyframes tickerPulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.scam-warning-ticker-track {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.scam-warning-ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  white-space: nowrap;
  transform: translateX(0);
}

.scam-warning-ticker-content.is-ready {
  animation: tickerScroll var(--ticker-duration, 40s) linear infinite;
}

.scam-warning-ticker-track:hover .scam-warning-ticker-content.is-ready {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.ticker-item:hover {
  color: #fff;
  text-decoration: underline;
}

.ticker-source {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.78rem;
}

.ticker-separator {
  color: rgba(248, 250, 252, 0.45);
  font-size: 0.85rem;
}

.ticker-fallback {
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.86rem;
}

[data-theme="light"] .scam-warning-ticker {
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(239, 246, 255, 0.95));
}

[data-theme="light"] .scam-warning-ticker-label {
  color: #0369a1;
  border-right-color: rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .ticker-item {
  color: #0f172a;
}

[data-theme="light"] .ticker-item:hover {
  color: #1e293b;
}

[data-theme="light"] .ticker-source,
[data-theme="light"] .ticker-separator,
[data-theme="light"] .ticker-fallback {
  color: rgba(15, 23, 42, 0.62);
}

@media (max-width: 700px) {
  .scam-warning-ticker {
    max-width: none;
    margin: 30px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .scam-warning-ticker-label {
    border-right: 0;
    border-bottom: 1px solid rgba(10, 132, 255, 0.25);
  }

  .scam-warning-ticker-content {
    padding: 10px 0;
  }
}

/* Regional Scams Section */
.regional-scams-section {
  margin: 40px auto;
  max-width: 980px;
  width: 100%;
  padding: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.regional-scams-section.hidden {
  opacity: 0;
  pointer-events: none;
}

.regional-scams-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--regional-heading);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.regional-title-icon {
  width: 20px;
  height: 20px;
  color: var(--regional-heading);
  flex-shrink: 0;
}

.regional-scams-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.regional-loading-state {
  grid-column: 1 / -1;
  border: 1px solid rgba(125, 249, 255, 0.18);
  background: rgba(15, 23, 42, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

[data-theme="light"] .regional-loading-state {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.04);
  color: rgba(15, 23, 42, 0.72);
}

.regional-scam-card {
  background: var(--regional-card-bg);
  border: 1px solid var(--regional-card-border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s ease;
}

.regional-scam-card:hover {
  border-color: var(--regional-heading);
  box-shadow: 0 8px 24px rgba(125, 249, 255, 0.1);
  transform: translateY(-2px);
}

.regional-scam-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.regional-scam-icon {
  width: 24px;
  height: 24px;
  color: var(--regional-heading);
  flex-shrink: 0;
}

.regional-scam-title {
  font-weight: 600;
  color: var(--regional-title);
  font-size: 0.95rem;
}

.regional-scam-preview {
  font-size: 0.85rem;
  color: var(--regional-text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.regional-scams-content .regional-scam-link {
  display: block;
  text-decoration: none;
  text-align: center;
  background: transparent;
  border: 1px solid var(--regional-badge-bg);
  color: var(--regional-badge-text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.regional-scams-content .regional-scam-link:hover {
  background: var(--regional-badge-bg);
  border-color: var(--regional-heading);
}

.regional-scam-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--regional-card-border);
  color: var(--regional-text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.regional-scam-details h2,
.regional-scam-details h3,
.regional-scam-details h4 {
  color: var(--regional-title);
  margin: 10px 0 6px;
  font-size: 0.95rem;
}

.regional-scam-details ul,
.regional-scam-details ol {
  padding-left: 18px;
  margin: 6px 0 10px;
}

.regional-scam-details a {
  color: var(--accent-2);
  text-decoration: none;
}

.regional-scam-details a:hover {
  text-decoration: underline;
}

.regional-scam-sources {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(125, 249, 255, 0.08);
  border: 1px solid var(--regional-card-border);
}

.regional-scam-sources strong {
  display: block;
  margin-bottom: 6px;
  color: var(--regional-title);
  font-size: 0.85rem;
}

.regional-scam-sources ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.regional-alerts {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--regional-card-border);
  border-radius: 14px;
  background: var(--regional-card-bg);
  display: grid;
  gap: 14px;
}

.regional-alerts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.regional-alerts-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--regional-title);
}

.regional-alerts-header p {
  margin: 4px 0 0;
  color: var(--regional-text);
  font-size: 0.85rem;
}

.regional-alerts-updated {
  font-size: 0.75rem;
  color: var(--regional-text);
  background: var(--regional-badge-bg);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.regional-alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.regional-alert-source {
  border: 1px solid var(--regional-card-border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 10px;
}

.regional-alert-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.regional-alert-source-header h5 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--regional-title);
}

.regional-alert-source-header a {
  font-size: 0.78rem;
  color: var(--accent-2);
  text-decoration: none;
}

.regional-alert-source-header a:hover {
  text-decoration: underline;
}

.regional-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.regional-alert-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.regional-alert-list a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.regional-alert-list a:hover {
  text-decoration: underline;
}

.regional-alert-list span {
  font-size: 0.75rem;
  color: var(--regional-text);
}

.regional-alert-empty {
  color: var(--regional-text);
  font-size: 0.85rem;
}

.edu-content {
  display: grid;
  gap: 12px;
}

.edu-item {
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255,255,255,0.01);
}

.edu-header {
  width: 100%;
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.edu-body {
  padding: 8px 12px 14px 12px;
  color: rgba(255,255,255,0.82);
}

.edu-body.hidden { display: none !important; }
.edu-body.expanded { display: block !important; }

.scam-category {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all var(--transition-medium) ease;
}

.scam-category:hover {
  border-color: rgba(96,165,250,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: 0 4px 16px rgba(96,165,250,0.08);
}

.category-toggle {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-medium) ease;
}

.category-toggle:hover {
  background: rgba(255,255,255,0.02);
}

.toggle-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.category-toggle .chevron {
  transition: transform var(--transition-medium) ease;
  opacity: 0.6;
  stroke: var(--accent-2);
  flex-shrink: 0;
}

.category-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.category-content {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

.category-content.hidden {
  display: none;
}

.category-content > * {
  padding: 0 18px 16px 18px;
}

.scam-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.scam-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  transition: all var(--transition-medium) ease;
}

.scam-category:hover .scam-icon-badge {
  transform: translateY(-2px);
}

.scam-icon-badge svg {
  width: 24px;
  height: 24px;
  color: rgba(96,165,250,0.85);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

[data-theme="light"] .scam-icon-badge {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

[data-theme="light"] .scam-category:hover .scam-icon-badge {
  transform: translateY(-2px);
}

[data-theme="light"] .scam-icon-badge svg {
  color: rgba(37,99,235,0.8);
}

.scam-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}

.scam-description {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.scam-examples {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.015);
  border-radius: 10px;
  border-left: 3px solid rgba(239, 68, 68, 0.6);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.scam-examples strong {
  color: rgba(239, 68, 68, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.scam-examples strong svg {
  width: 16px;
  height: 16px;
  stroke: rgba(239, 68, 68, 0.9);
  fill: none;
  flex-shrink: 0;
}

.scam-examples ul {
  margin: 8px 0 0 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  list-style: none;
}

.edu-brand-link {
  color: #818cf8;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast) ease, text-shadow var(--transition-fast) ease;
}

.edu-brand-link:hover {
  color: #bffcff;
  text-shadow: 0 0 10px rgba(125, 249, 255, 0.35);
}

.edu-brand-link:focus-visible {
  outline: 2px solid rgba(125, 249, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

[data-theme="light"] .edu-brand-link {
  color: #2563eb;
}

[data-theme="light"] .edu-brand-link:hover {
  color: #1d4ed8;
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .edu-brand-link:focus-visible {
  outline-color: rgba(37, 99, 235, 0.45);
}

.scam-examples .modern-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scam-examples .list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(96,165,250,0.1);
  transition: all var(--transition-fast) ease;
  animation: slideIn 0.3s ease both;
  animation-delay: calc(var(--item-index) * 30ms);
}

.scam-examples .list-item:hover {
  background: rgba(96,165,250,0.08);
  border-color: rgba(96,165,250,0.3);
  transform: translateX(4px);
}

.scam-examples .list-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(96,165,250,0.2);
  color: rgba(96,165,250,0.9);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.scam-examples .list-text {
  color: var(--muted);
  transition: color var(--transition-fast) ease;
}

.scam-examples .list-item:hover .list-text {
  color: rgba(255,255,255,0.85);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[data-theme="light"] .education-title {
  color: var(--text);
}

[data-theme="light"] .scam-category {
  border-color: rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

[data-theme="light"] .scam-category:hover {
  border-color: rgba(37,99,235,0.2);
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 12px rgba(37,99,235,0.06);
}

[data-theme="light"] .category-toggle:hover {
  background: rgba(37,99,235,0.04);
}

[data-theme="light"] .edu-toggle {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

[data-theme="light"] .edu-toggle:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

[data-theme="light"] .scam-card {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.08);
  box-shadow: inset 0 -2px 8px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.05);
}

[data-theme="light"] .scam-card:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(37,99,235,0.2);
  box-shadow: inset 0 -2px 8px rgba(0,0,0,0.04), 0 4px 16px rgba(37,99,235,0.06);
}

[data-theme="light"] .scam-card-header {
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .scam-examples {
  background: rgba(0,0,0,0.02);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
  border-left-color: rgba(37,99,235,0.5);
}

[data-theme="light"] .scam-examples .list-item {
  background: rgba(37,99,235,0.04);
  border-color: rgba(37,99,235,0.15);
}

[data-theme="light"] .scam-examples .list-item:hover {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.3);
}

[data-theme="light"] .scam-examples .list-marker {
  background: rgba(37,99,235,0.15);
  color: rgba(37,99,235,0.9);
}

[data-theme="light"] .scam-examples .list-text {
  color: rgba(0,0,0,0.7);
}

[data-theme="light"] .scam-examples .list-item:hover .list-text {
  color: rgba(0,0,0,0.85);
}

[data-theme="light"] .toggle-header {
  color: var(--text);
}

[data-theme="light"] .category-toggle {
  color: var(--text);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   ARTICLE VIEW
========================= */
.article-view {
  margin: 30px auto 40px;
  max-width: 980px;
  width: 100%;
  padding: 0;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-view.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
}

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

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  margin-bottom: 24px;
}

.back-button:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateX(-4px);
}

/* Learn more buttons match Back button style */
.scam-learn-more,
.regional-scam-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  text-decoration: none;
}

.scam-learn-more:hover,
.regional-scam-link:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateX(-4px);
  color: var(--accent-2);
}

.back-button i {
  width: 18px;
  height: 18px;
}

.article-content {
  line-height: 1.7;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}

.article-content p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--muted);
}

.article-content li {
  margin: 8px 0;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content .inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.article-content .inline-icon svg {
  width: 16px;
  height: 16px;
}

.article-content .warning-box {
  padding: 16px 18px;
  background: rgba(244, 63, 94, 0.08);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  margin: 20px 0;
}

.article-content .tip-box {
  padding: 16px 18px;
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  margin: 20px 0;
}

.article-content .info-box {
  padding: 16px 18px;
  background: rgba(96, 165, 250, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin: 20px 0;
}

/* Report links in articles */
.article-content .report-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-fast) ease;
}

.article-content .report-link:hover {
  color: var(--accent-light);
}

[data-theme="light"] .article-content .report-link {
  color: #2563eb;
}

[data-theme="light"] .article-content .report-link:hover {
  color: #1d4ed8;
}

/* Bible verse tooltip styling */
.bible-verse {
  position: relative;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  transition: color var(--transition-fast) ease;
}

.bible-verse:hover {
  color: var(--accent-light);
}

.bible-verse-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.98);
  color: rgba(241, 245, 249, 0.95);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 280px;
  width: max-content;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast) ease;
  font-style: italic;
}

.bible-verse-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(30, 41, 59, 0.98);
}

.bible-verse.show-tooltip .bible-verse-tooltip {
  opacity: 1;
  pointer-events: auto;
}

[data-theme="light"] .bible-verse-tooltip {
  background: rgba(255, 255, 255, 0.98);
  color: rgba(30, 41, 59, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bible-verse-tooltip::after {
  border-top-color: rgba(255, 255, 255, 0.98);
}

@media (max-width: 768px) {
  .bible-verse-tooltip {
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100vw - 40px);
    padding: 16px 20px;
    font-size: 0.9375rem;
  }
  
  .bible-verse-tooltip::after {
    display: none;
  }
}

.scam-learn-more.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 8px;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.scam-learn-more.inline-link:hover {
  color: var(--accent-2);
  transform: translateX(4px);
}

.scam-learn-more.inline-link i {
  width: 16px;
  height: 16px;
}

.edu-kb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.edu-kb-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast) ease;
}

.edu-kb-link:hover {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.55);
  color: var(--accent-2);
}

.edu-kb-link-category {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.edu-kb-link-category:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.58);
  color: #6ee7b7;
}

.edu-inline-article {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  line-height: 1.6;
}

.edu-inline-article.hidden {
  display: none;
}

.edu-inline-article h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.edu-inline-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.edu-inline-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.edu-inline-back::before {
  content: "←";
  font-size: 1rem;
  line-height: 1;
}

.edu-inline-back:hover {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.6);
  color: var(--accent-2);
}

.edu-inline-body {
  display: grid;
  gap: 10px;
}

.edu-inline-open {
  border-top: 1px solid rgba(96, 165, 250, 0.15);
  padding-top: 12px;
}

.edu-inline-article p {
  margin: 0 0 10px 0;
  color: var(--muted);
}

.edu-inline-article .inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.edu-inline-article .inline-icon svg {
  width: 16px;
  height: 16px;
}

.edu-inline-article ul,
.edu-inline-article ol {
  margin: 8px 0 10px 18px;
  color: var(--muted);
}

[data-theme="light"] .edu-inline-article {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

.inline-article-link {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline;
  color: var(--accent);
  font-weight: 650;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  vertical-align: baseline;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition-fast) ease;
  letter-spacing: inherit;
}

:root[data-theme="dark"] .category-content a,
:root[data-theme="dark"] .edu-inline-article a,
:root[data-theme="dark"] .inline-article-link,
:root[data-theme="dark"] .edu-brand-link {
  color: #818cf8;
  text-shadow: 0 0 10px rgba(125, 249, 255, 0.22);
}

:root[data-theme="dark"] .category-content a:hover,
:root[data-theme="dark"] .edu-inline-article a:hover,
:root[data-theme="dark"] .inline-article-link:hover,
:root[data-theme="dark"] .edu-brand-link:hover {
  color: #bffcff;
  text-shadow: 0 0 14px rgba(125, 249, 255, 0.35);
}

.inline-article-link:hover {
  color: var(--accent-2);
}

.inline-article-link:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

[data-theme="light"] .inline-article-link:focus-visible {
  outline-color: rgba(37, 99, 235, 0.45);
}

[data-theme="light"] .back-button {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: rgba(37, 99, 235, 0.9);
}

[data-theme="light"] .back-button:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
}

[data-theme="light"] .article-content {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .article-content .warning-box {
  background: rgba(244, 63, 94, 0.06);
}

[data-theme="light"] .article-content .tip-box {
  background: rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .article-content .info-box {
  background: rgba(37, 99, 235, 0.06);
}

@media (max-width: 700px) {
  .article-view {
    padding: 0 20px;
    margin: 20px auto 30px;
  }
  
  .article-content {
    padding: 16px;
  }
  
  .article-content h1 {
    font-size: 1.5rem;
  }
  
  .article-content h2 {
    font-size: 1.25rem;
    margin-top: 24px;
  }
  
  .article-content h3 {
    font-size: 1.1rem;
  }
  
  .back-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 700px) {
  .image-confirmation {
    margin-top: 12px;
    padding: 12px;
  }
  .confirmation-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .confirmation-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .confirmation-actions button {
    width: calc(50% - 4px);
    min-width: 0;
  }
  .confirmation-filename {
    max-width: 100%;
  }
  .qr-modal {
    align-items: flex-start;
    padding: 12px;
  }
  .qr-box {
    width: min(100%, 420px);
    max-width: min(420px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 14px;
    border-radius: 14px;
  }
  #qr-reader {
    width: min(100%, 320px);
    min-height: clamp(190px, 40dvh, 300px);
    max-height: min(48dvh, 320px);
  }
  #closeQR {
    min-height: 44px;
    font-size: 0.98rem;
  }
  .qr-context-actions {
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 1100px) and (min-height: 700px) {
  .qr-box {
    max-width: 520px;
    width: min(520px, calc(100vw - 40px));
    padding: 22px;
  }

  #qr-reader {
    width: min(100%, 400px);
    min-height: min(400px, calc(100dvh - 250px));
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .qr-modal {
    align-items: flex-start;
    padding:
      max(8px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .qr-box {
    width: min(100%, 540px);
    max-height: calc(100dvh - 16px);
    padding: 10px 12px;
    gap: 8px;
  }

  .qr-box h3 {
    font-size: 16px;
  }

  #qr-reader {
    width: min(100%, 250px);
    min-height: min(250px, calc(100dvh - 150px));
  }

  .qr-camera-error,
  .qr-context-sheet {
    margin-bottom: 8px;
    padding: 10px;
  }

  #closeQR {
    padding: 10px;
    min-height: 40px;
    font-size: 0.92rem;
  }
}

@media (max-width: 420px), (max-height: 760px) {
  .qr-modal {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .qr-box {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    padding: 12px;
    gap: 10px;
  }

  #qr-reader {
    width: min(100%, 300px);
    min-height: clamp(180px, 36dvh, 260px);
    max-height: min(44dvh, 280px);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .headline-subtitle,
  .wisdom-quote,
  .safety-flow-copy p,
  .feature-trial-badge,
  .ticker-item,
  .ticker-source,
  .scam-warning-ticker-label {
    font-size: 0.95rem;
  }

  .container,
  .scam-warning-ticker,
  .textarea-wrapper,
  .secondary-actions,
  .primary-cta,
  .input-row,
  .sender-meta-grid {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body.qr-focus-mode,
  html.qr-focus-mode {
    overflow: hidden;
  }

  body.qr-focus-mode header,
  body.qr-focus-mode .headline,
  body.qr-focus-mode .headline-subtitle,
  body.qr-focus-mode .scam-warning-ticker,
  body.qr-focus-mode #homeDashboardHub,
  body.qr-focus-mode #safetyFlowSection,
  body.qr-focus-mode .reverse-lookup-section,
  body.qr-focus-mode #results,
  body.qr-focus-mode .education-section,
  body.qr-focus-mode .education-videos-section,
  body.qr-focus-mode .regional-scams-section,
  body.qr-focus-mode #footerText {
    display: none !important;
  }

  body.qr-focus-mode .container {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.qr-focus-mode #qrModal {
    display: flex !important;
  }
}

/* =========================
   iOS SPINNER
========================= */
.ios-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 10px;
}

.ios-spinner.hidden {
  display: none !important;
}

.spinner-shell {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(125, 211, 252, 0.16), rgba(37, 99, 235, 0.08));
  box-shadow: 0 12px 34px rgba(2, 8, 23, 0.35), inset 0 1px 0 rgba(255,255,255,0.14);
}

.spinner-ring {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 3px solid rgba(96, 165, 250, 0.2);
  border-top: 3px solid rgba(96, 165, 250, 0.9);
  border-right: 3px solid rgba(96, 165, 250, 0.7);
  border-radius: 50%;
  animation: iosRotate 1s linear infinite;
}

.spinner-ring-alt {
  width: 34px;
  height: 34px;
  border-width: 2.5px;
  border-color: rgba(125, 211, 252, 0.15);
  border-left-color: rgba(125, 211, 252, 0.8);
  border-bottom-color: rgba(125, 211, 252, 0.55);
  animation-direction: reverse;
  animation-duration: 1.45s;
}

.spinner-message {
  font-size: 0.86rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.82);
  text-align: center;
  max-width: 520px;
  min-height: 1.4em;
}

@keyframes iosRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

[data-theme="light"] .spinner-ring {
  border: 3px solid rgba(37, 99, 235, 0.15);
  border-top: 3px solid rgba(37, 99, 235, 0.9);
  border-right: 3px solid rgba(37, 99, 235, 0.7);
}

[data-theme="light"] .spinner-shell {
  background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.16), inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] .spinner-message {
  color: rgba(15, 23, 42, 0.74);
}

.analysis-message {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

[data-theme="light"] .analysis-message {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(185,28,28,0.85), rgba(220,38,38,0.8), rgba(239,68,68,0.75));
  border: 2.5px solid rgba(185,28,28,0.9);
  box-shadow: 
    0 0 75px rgba(185,28,28,0.6),
    0 20px 75px rgba(185,28,28,0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.analysis-message::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(239,68,68,0.25) 0%, transparent 70%);
  animation: shimmerProminence 3s ease-in-out infinite;
}

@keyframes shimmerProminence {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(15px, 15px); opacity: 0.8; }
}

@keyframes pulseProminence {
  0%, 100% { 
    box-shadow: 
      0 0 60px rgba(239,68,68,0.4),
      0 20px 60px rgba(239,68,68,0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% { 
    box-shadow: 
      0 0 80px rgba(239,68,68,0.6),
      0 24px 80px rgba(239,68,68,0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.analysis-message-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(244,63,94,0.25));
  border-radius: 12px;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(239,68,68,0.3);
  color: #ef4444;
}

.analysis-message-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.analysis-message-text {
  z-index: 1;
  text-align: left;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 48px rgba(96,165,250,0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  50% { box-shadow: 0 12px 56px rgba(96,165,250,0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
}

.analysis-message.hidden {
  display: none;
}

/* Summary Chips - Modern pill design */
.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  padding: 0;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.2px;
  color: var(--text);
  transition: all 0.2s ease;
}

.summary-chip-icon {
  display: none;
}

.summary-chip-text {
  display: inline-block;
}

[data-theme="light"] .summary-chip {
  background: rgba(15,23,42,0.05);
  border-color: rgba(15,23,42,0.12);
  color: rgba(0,0,0,0.85);
}

.summary-chip:hover {
  border-color: rgba(125,249,255,0.22);
}

.summary-overflow-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.external-sources-section {
  margin-top: 16px;
}

.external-sources-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
  margin-bottom: 10px;
}

.external-sources-chips .summary-chip {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #b9f8e4;
}

[data-theme="light"] .external-sources-chips .summary-chip {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(5, 150, 105, 0.26);
  color: #065f46;
}

/* Details Panel - Card style */
.details-panel {
  margin-top: 20px;
  padding: 0;
  background: var(--panel);
  border-radius: 16px;
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(2,6,23,0.15);
  overflow: hidden;
}

[data-theme="light"] .details-panel {
  background: rgba(255,255,255,0.95);
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 8px 32px rgba(37,99,235,0.12);
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-item {
  padding: 18px 24px;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.2s ease;
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item:hover {
  background: rgba(96,165,250,0.05);
}

[data-theme="light"] .detail-item {
  border-bottom-color: rgba(37,99,235,0.1);
}

[data-theme="light"] .detail-item:hover {
  background: rgba(59,130,246,0.08);
}

.detail-content {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .detail-content {
  color: rgba(15,23,42,0.9);
  font-weight: 500;
}

.detail-content svg {
  flex-shrink: 0;
  min-width: 16px;
  color: rgba(239,68,68,0.7);
}

.detail-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

[data-theme="light"] .detail-title {
  color: #0f172a;
}

.detail-description {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  letter-spacing: 0.2px;
}

[data-theme="light"] .detail-description {
  color: rgba(15,23,42,0.75);
  font-weight: 500;
}

.progress {
  margin-top: 24px;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
}

.progress-bar {
  height: 4px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0A84FF, #5E5CE6);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.4);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scan-line {
  display: none;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw));
    opacity: 0;
  }
}


.progress-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  letter-spacing: 0.01em;
}

[data-theme="light"] .progress-label {
  color: rgba(0, 0, 0, 0.7);
}

/* =========================
   REVERSE LOOKUP
========================= */
.reverse-lookup-section {
  max-width: 980px;
  width: 100%;
  margin: 40px auto 24px auto;
  padding: 24px 20px;
  background: var(--panel);
  border-radius: 20px;
  border: 2px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.reverse-lookup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reverse-lookup-icon {
  color: #3b82f6;
  filter: drop-shadow(0 2px 6px rgba(59,130,246,0.3));
}

.reverse-lookup-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.reverse-lookup-description {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.reverse-lookup-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.reverse-lookup-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
}

.reverse-lookup-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.reverse-lookup-btn {
  min-width: 140px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reverse-lookup-results {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--glass-border);
}

.reverse-lookup-results.hidden {
  display: none;
}

.lookup-result-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.lookup-result-card.card-scam {
  border-color: var(--glass-border);
  box-shadow: inset 0 0 0 1px rgba(239,68,68,0.12), inset 0 0 20px rgba(239,68,68,0.16);
}

.lookup-result-card.card-official {
  border-color: var(--glass-border);
  box-shadow: inset 0 0 0 1px rgba(16,185,129,0.12), inset 0 0 20px rgba(16,185,129,0.16);
}

.lookup-result-card.lookup-result-label {
  padding: 16px 20px;
  border-style: dashed;
  background: rgba(96,165,250,0.08);
}

.lookup-result-label .lookup-org-type {
  background: rgba(125,249,255,0.15);
  color: #818cf8;
}

[data-theme="light"] .lookup-result-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
}

.lookup-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.lookup-org-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}

.lookup-org-type {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="light"] .lookup-org-type {
  background: rgba(59,130,246,0.2);
  color: #1d4ed8;
}

/* Data source badges */
.lookup-source-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lookup-source-badge.local {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.1));
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.3);
}

.lookup-source-badge.external {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.1));
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
}

.lookup-source-badge.scam {
  background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(239,68,68,0.15));
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.5);
  font-weight: 600;
  animation: pulse-warning 2s ease-in-out infinite;
}

.lookup-source-badge.scam-indicator,
.lookup-source-badge.official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lookup-source-badge.scam-indicator {
  background: linear-gradient(135deg, rgba(239,68,68,0.35), rgba(239,68,68,0.2));
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.6);
  font-weight: 700;
}

.lookup-source-badge.official {
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(16,185,129,0.15));
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.45);
  font-weight: 700;
}

.lookup-source-badge.scam-indicator svg,
.lookup-source-badge.official svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

[data-theme="light"] .lookup-source-badge.local {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.08));
  color: #7c3aed;
  border: 1px solid rgba(139,92,246,0.4);
}

[data-theme="light"] .lookup-source-badge.external {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.08));
  color: #059669;
  border: 1px solid rgba(16,185,129,0.4);
}

[data-theme="light"] .lookup-source-badge.scam {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.1));
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.4);
}

.lookup-risk-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 12px;
  min-width: 100px;
}

.lookup-risk-badge.safe {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.1));
  border: 2px solid rgba(16,185,129,0.3);
}

.lookup-risk-badge.suspicious {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.1));
  border: 2px solid rgba(245,158,11,0.3);
}

.lookup-risk-badge.high-risk {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.1));
  border: 2px solid rgba(239,68,68,0.3);
}

.lookup-risk-score {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.lookup-risk-badge.safe .lookup-risk-score {
  color: #10b981;
}

.lookup-risk-badge.suspicious .lookup-risk-score {
  color: #f59e0b;
}

.lookup-risk-badge.high-risk .lookup-risk-score {
  color: #ef4444;
}

.lookup-risk-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.lookup-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.lookup-related-services {
  margin: 10px 0 6px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
}

.lookup-related-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #10b981;
  margin-bottom: 6px;
}

.lookup-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lookup-related-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16,185,129,0.15);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
}

.lookup-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  font-size: 0.95rem;
}

[data-theme="light"] .lookup-contact-item {
  background: rgba(0,0,0,0.03);
}

.lookup-contact-icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.lookup-contact-label {
  font-weight: 600;
  color: var(--muted);
  min-width: 80px;
}

.lookup-contact-value {
  color: var(--text);
  word-break: break-all;
}

.lookup-contact-value a {
  color: #3b82f6;
  text-decoration: none;
}

.lookup-contact-value a:hover {
  text-decoration: underline;
}

.lookup-notes {
  background: rgba(59,130,246,0.08);
  border-left: 3px solid #3b82f6;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
}

.lookup-notes-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  font-weight: 700;
  color: #ef4444;
}

.lookup-notes-text {
  display: block;
  align-self: start;
}

.lookup-note-icon {
  width: 16px;
  height: 16px;
  color: #ef4444;
  flex-shrink: 0;
}

[data-theme="light"] .lookup-notes {
  background: rgba(59,130,246,0.12);
}

.lookup-no-match {
  text-align: center;
  padding: 40px 20px;
}

.lookup-no-match-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  color: #ef4444;
  opacity: 0.6;
}

.lookup-no-match h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.lookup-no-match p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .reverse-lookup-section {
    width: 100%;
    padding: 20px 16px;
  }
  
  .reverse-lookup-input-row {
    flex-direction: column;
  }
  
  .reverse-lookup-btn {
    width: 100%;
  }
  
  .lookup-result-header {
    flex-direction: column;
  }
  
  .lookup-risk-badge {
    align-self: flex-start;
  }
}

/* =========================
   SCAM ANALYSIS CARD STYLES (matching reverse lookup design)
========================= */
.scam-result-card {
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.92), rgba(12, 18, 28, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(2, 8, 23, 0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

[data-theme="light"] .scam-result-card {
  background: rgba(255,255,255,0.96);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.scam-result-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .scam-result-header {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.scam-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2px;
}

.scam-analysis-kicker {
  display: none;
}

.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;
}

.result-verdict-line {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.scam-analysis-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.scam-input-type {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.technical-pill {
  display: none !important;
}

.scam-input-type span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: rgba(59,130,246,0.14);
  color: #bfdbfe;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12px;
  border: 1px solid rgba(59,130,246,0.28);
}

#resultTypePill::before,
#sourceInfo::before,
#modelBadge::before {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid currentColor;
  opacity: 0.9;
}

#resultTypePill::before {
  content: 'I';
}

#sourceInfo::before {
  content: 'S';
}

#modelBadge::before {
  content: 'M';
}

[data-theme="light"] .scam-input-type span {
  background: rgba(59,130,246,0.12);
  color: #1e40af;
  border-color: rgba(59,130,246,0.25);
}

.scam-source-badge {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.1)) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139,92,246,0.3);
}

[data-theme="light"] .scam-source-badge {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.08)) !important;
  color: #7c3aed !important;
}

.scam-risk-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  min-width: 92px;
  --risk-percent: 0;
  --risk-hue: calc(120 - (var(--risk-percent) * 1.2));
  background: linear-gradient(180deg,
    hsla(var(--risk-hue), 70%, 16%, 0.55),
    hsla(var(--risk-hue), 80%, 12%, 0.35)
  );
  border: 1.5px solid hsla(var(--risk-hue), 70%, 45%, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.scam-risk-badge.safe {
  background: none;
  border-color: hsla(var(--risk-hue), 70%, 45%, 0.45);
}

.scam-risk-badge.suspicious {
  background: none;
  border-color: hsla(var(--risk-hue), 70%, 45%, 0.45);
}

.scam-risk-badge.high-risk {
  background: none;
  border-color: hsla(var(--risk-hue), 70%, 45%, 0.45);
}

.scam-risk-score {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.scam-risk-badge.safe .scam-risk-score {
  color: #10b981;
}

.scam-risk-badge.suspicious .scam-risk-score {
  color: #f59e0b;
}

.scam-risk-badge.high-risk .scam-risk-score {
  color: var(--risk-red);
}

.scam-risk-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  opacity: 0.75;
  text-align: center;
  width: 100%;
}
.lookup-risk-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lookup-risk-label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.scam-risk-badge.safe .scam-risk-label {
  color: #10b981;
}

.scam-risk-badge.suspicious .scam-risk-label {
  color: #f59e0b;
}

.scam-risk-badge.high-risk .scam-risk-label {
  color: var(--risk-red);
}

.scam-details-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scam-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

[data-theme="light"] .scam-detail-item {
  background: rgba(0,0,0,0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.detail-icon {
  color: #60a5fa;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
}

.detail-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.detail-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}

.scam-meter-section {
  padding: 0;
  background: none;
  border: none;
}

[data-theme="light"] .scam-meter-section {
  background: none;
}

.scam-meter-section .meter-header h4 {
  display: none;
}

.scam-findings-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 8px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-actions-section {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.quick-actions-section h4 {
  margin: 0 0 10px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-actions-list {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.quick-action-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 8px;
}

.quick-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.22);
  color: #60a5fa;
  line-height: 1;
  flex-shrink: 0;
}

.quick-action-icon svg,
.quick-action-icon i {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.quick-action-body {
  display: grid;
  gap: 2px;
}

.quick-action-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}

.quick-action-body > span:last-child {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}

[data-theme="light"] .quick-actions-section {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .quick-action-icon {
  color: #1e40af;
  background: rgba(59, 130, 246, 0.13);
  border-color: rgba(59, 130, 246, 0.24);
}

.quick-actions-section.quick-risk-low {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.24);
}

.quick-actions-section.quick-risk-low .quick-action-icon {
  color: #86efac;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.34);
}

.quick-actions-section.quick-risk-medium {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.24);
}

.quick-actions-section.quick-risk-medium .quick-action-icon {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.34);
}

.quick-actions-section.quick-risk-high {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.24);
}

.quick-actions-section.quick-risk-high .quick-action-icon {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.34);
}

.qr-risk-breakdown {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: rgba(14, 165, 233, 0.08);
}

.qr-risk-breakdown h4 {
  margin: 0 0 10px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qr-risk-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qr-risk-factor {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(15, 23, 42, 0.35);
}

.qr-risk-factor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.qr-risk-factor-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(226,232,240,0.92);
}

.qr-risk-factor-score {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qr-risk-factor-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.qr-risk-factor-fill {
  height: 100%;
  width: calc(var(--factor-score, 0) * 1%);
  border-radius: 999px;
  transition: width 260ms ease;
  background: linear-gradient(90deg, #22c55e, #f59e0b 60%, #ef4444);
}

.qr-risk-factor-note {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(203, 213, 225, 0.76);
}

@media (max-width: 640px) {
  .qr-risk-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

[data-theme="light"] .qr-risk-breakdown {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(2, 132, 199, 0.28);
}

[data-theme="light"] .qr-risk-factor {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(30, 41, 59, 0.14);
}

[data-theme="light"] .qr-risk-factor-label {
  color: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .qr-risk-factor-note {
  color: rgba(51, 65, 85, 0.85);
}

[data-theme="light"] .quick-actions-section.quick-risk-low {
  background: rgba(5, 150, 105, 0.09);
  border-color: rgba(5, 150, 105, 0.24);
}

[data-theme="light"] .quick-actions-section.quick-risk-low .quick-action-icon {
  color: #047857;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.36);
}

[data-theme="light"] .quick-actions-section.quick-risk-medium {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.26);
}

[data-theme="light"] .quick-actions-section.quick-risk-medium .quick-action-icon {
  color: #b45309;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.36);
}

[data-theme="light"] .quick-actions-section.quick-risk-high {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.26);
}

[data-theme="light"] .quick-actions-section.quick-risk-high .quick-action-icon {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.36);
}

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

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

.verdict-card.result-reveal {
  animation: verdictCardReveal 420ms cubic-bezier(0.22, 0.8, 0.33, 1);
}

.verdict-card.result-reveal .scam-result-card > * {
  opacity: 0;
  animation: verdictSectionReveal 460ms cubic-bezier(0.22, 0.8, 0.33, 1) forwards;
}

.verdict-card.result-reveal .scam-result-card > *:nth-child(1) { animation-delay: 40ms; }
.verdict-card.result-reveal .scam-result-card > *:nth-child(2) { animation-delay: 85ms; }
.verdict-card.result-reveal .scam-result-card > *:nth-child(3) { animation-delay: 130ms; }
.verdict-card.result-reveal .scam-result-card > *:nth-child(4) { animation-delay: 175ms; }
.verdict-card.result-reveal .scam-result-card > *:nth-child(5) { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  .verdict-card.result-reveal,
  .verdict-card.result-reveal .scam-result-card > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 700px) {
  .scam-result-header {
    grid-template-columns: 1fr;
  }
  
  .scam-risk-badge {
    align-self: flex-start;
  }
  
  .scam-result-card {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .scam-result-card {
    padding: 15px;
    gap: 10px;
    border-radius: 18px;
  }

  .scam-card-toolbar {
    margin-bottom: 0;
  }

  .scan-flip-back-btn {
    font-size: 0.76rem;
    padding: 7px 11px 7px 9px;
    gap: 6px;
  }

  .scam-result-header {
    gap: 10px;
    padding-bottom: 10px;
  }

  .scam-analysis-kicker {
    margin-bottom: 4px;
    font-size: 0.64rem;
  }

  .scam-analysis-info h3 {
    font-size: 1.03rem;
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .scam-input-type span {
    font-size: 0.68rem;
    padding: 5px 9px;
  }

  .scam-risk-badge {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
  }

  .scam-risk-score {
    font-size: 1.35rem;
  }

  .scam-risk-label {
    width: auto;
    align-self: auto;
    text-align: right;
    font-size: 0.62rem;
    letter-spacing: 0.8px;
  }

  .scam-meter-section {
    padding: 12px;
  }

  .scam-meter-section .meter-header h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .meter-level-badge {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .risk-bar {
    height: 12px;
  }

  .risk-bar-indicator {
    width: 18px;
    height: 18px;
    left: calc((var(--risk-score) * 1%) - 9px);
  }

  .risk-bar-progress-level {
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 0.72rem;
    align-self: flex-start;
  }
}

/* =========================
   RESULTS
========================= */
#result {
  margin-top: 24px;
}

.results-section.modern {
  margin-top: 48px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  position: relative;
}

.results-section.modern::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, rgba(59,130,246,0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="light"] .results-section.modern::before {
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
}

.verdict-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 15, 24, 0.92));
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(2,6,23,0.45),
              inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.verdict-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, rgba(59,130,246,0.55), rgba(96,165,250,0.45));
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
  z-index: 10;
}

[data-theme="light"] .verdict-card {
  background: rgba(255,255,255,0.98);
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 16px 56px rgba(37,99,235,0.18),
              0 0 0 1px rgba(37,99,235,0.08),
              inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] .verdict-card::before {
  background: linear-gradient(90deg, rgba(59,130,246,0.7), rgba(96,165,250,0.7));
}

.risk-analysis-header {
  padding: 32px 32px 28px 32px;
  background: linear-gradient(135deg, rgba(96,165,250,0.12) 0%, rgba(125,249,255,0.08) 50%, rgba(96,165,250,0.06) 100%);
  border-bottom: 2px solid rgba(96,165,250,0.15);
  position: relative;
}

.risk-analysis-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.4), transparent);
}

[data-theme="light"] .risk-analysis-header {
  background: linear-gradient(135deg, rgba(59,130,246,0.14) 0%, rgba(96,165,250,0.10) 50%, rgba(59,130,246,0.08) 100%);
  border-bottom: 2px solid rgba(37,99,235,0.2);
}

[data-theme="light"] .risk-analysis-header::after {
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.5), transparent);
}

.risk-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.risk-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(125,249,255,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.risk-header-icon.risk-high {
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(220,38,38,0.2));
  color: #ef4444;
}

.risk-header-icon.risk-medium {
  background: linear-gradient(135deg, rgba(251,146,60,0.25), rgba(249,115,22,0.2));
  color: #fb923c;
}

.risk-header-icon.risk-low {
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(22,163,74,0.2));
  color: #22c55e;
}

.risk-header-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

[data-theme="light"] .risk-header-title {
  color: rgba(15,23,42,0.7);
}

[data-theme="light"] .risk-header-title {
  color: rgba(0,0,0,0.6);
}

.risk-header-score {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}

[data-theme="light"] .risk-header-score {
  color: #0f172a !important;
}
.verdict-card:hover {
  box-shadow: 0 24px 64px rgba(2,6,23,0.55),
              inset 0 1px 0 rgba(255,255,255,0.08);
  border-color: rgba(148, 163, 184, 0.28);
}

.verdict-card.result-ready {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 22px 70px rgba(14, 116, 255, 0.34), inset 0 1px 0 rgba(255,255,255,0.12);
}

.verdict-card.result-ready::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  pointer-events: none;
  border: 1px solid rgba(125, 211, 252, 0.42);
  animation: resultGlowPulse 2.8s ease-in-out 2;
}

@keyframes resultGlowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.85; }
}

.result-context-education {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.result-context-education h4 {
  margin: 0 0 6px 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7dd3fc;
}

.result-context-education p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.result-context-links {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.contextual-education-links {
  display: grid;
  gap: 6px;
}

.contextual-education-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #7dd3fc;
  text-decoration: none;
}

.contextual-education-link::before {
  content: '↗';
  font-size: 0.75rem;
  opacity: 0.85;
}

.contextual-education-link:hover {
  text-decoration: underline;
}

[data-theme="light"] .result-context-education {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(2, 132, 199, 0.32);
}

[data-theme="light"] .result-context-education h4 {
  color: #0369a1;
}

[data-theme="light"] .contextual-education-link {
  color: #075985;
}

/* iOS Dashboard Stats Grid */
.verdict-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-card:last-child::before {
  display: none;
}

[data-theme="light"] .stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
}

[data-theme="light"] .stat-card::before {
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.12), transparent);
}

.stat-card:hover {
  background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(96,165,250,0.04));
  transform: translateX(4px);
}

[data-theme="light"] .stat-card:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(59,130,246,0.06));
  transform: translateX(4px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(125,249,255,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(96,165,250,0.2),
              inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
}

.stat-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

[data-theme="light"] .stat-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(59,130,246,0.08));
  color: #1d4ed8;
}

[data-theme="light"] .stat-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(59,130,246,0.08));
  color: #1d4ed8;
}

.stat-icon.risk-icon {
  background: linear-gradient(135deg, rgba(244,63,94,0.15), rgba(248,113,113,0.10));
  color: #ef4444;
  transition: all 0.3s ease;
}

[data-theme="light"] .stat-icon.risk-icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(244,63,94,0.12));
  color: #dc2626;
}

[data-theme="light"] .stat-icon.risk-icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(244,63,94,0.12));
  color: #dc2626;
}

.stat-icon.risk-icon.risk-high {
  background: linear-gradient(135deg, rgba(244,63,94,0.20), rgba(248,113,113,0.15));
  color: #ef4444;
}

.stat-icon.risk-icon.risk-medium {
  background: linear-gradient(135deg, rgba(245,158,11,0.20), rgba(251,191,36,0.15));
  color: #f59e0b;
}

.stat-icon.risk-icon.risk-low {
  background: linear-gradient(135deg, rgba(52,211,153,0.20), rgba(16,185,129,0.15));
  color: #10b981;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
  font-weight: 600;
}

[data-theme="light"] .stat-label {
  color: rgba(0,0,0,0.65);
}

[data-theme="light"] .stat-label {
  color: rgba(15,23,42,0.65);
  font-weight: 700;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1px;
}

[data-theme="light"] .stat-value {
  color: #0f172a;
  font-weight: 800;
}

.stat-value.risk-value {
  color: #ef4444;
  font-size: 1.1rem;
}

/* Verdict Meter Card */
.verdict-meter-card {
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
  position: relative;
}

.verdict-meter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

[data-theme="light"] .verdict-meter-card {
  background: linear-gradient(180deg, rgba(37,99,235,0.03) 0%, rgba(37,99,235,0.01) 100%);
}

[data-theme="light"] .verdict-meter-card::before {
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.15), transparent);
}

/* Meter header */
.meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
}

.meter-level-badge {
  display: none;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.meter-level-badge.low {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.meter-level-badge.medium {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.meter-level-badge.high {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.meter-icon {
  width: 32px;
  height: 32px;
  color: #3b82f6;
  filter: drop-shadow(0 2px 8px rgba(59,130,246,0.4));
  animation: spin 8s linear infinite;
}

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

.meter-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .meter-title {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Report Card (removed - consolidated into stats grid) */
.report-card {
  display: none;
}

.report-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(125,249,255,0.12), rgba(96,165,250,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
}

.report-content {
  flex: 1;
  min-width: 0;
}

.verdict-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verdict-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.pill-type {
  background: linear-gradient(135deg, rgba(125,249,255,0.12), rgba(96,165,250,0.10));
  border-color: rgba(125,249,255,0.35);
  color: #818cf8;
}

.pill-risk {
  background: linear-gradient(135deg, rgba(244,63,94,0.15), rgba(244,114,182,0.10));
  border-color: rgba(244,63,94,0.35);
  color: #f43f5e;
}

.pill-risk.medium { color: #f59e0b; border-color: rgba(245,158,11,0.4); background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(252,211,77,0.08)); }
.pill-risk.low { color: #34d399; border-color: rgba(52,211,153,0.35); background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(16,185,129,0.08)); }

[data-theme="light"] .pill {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.85);
}

[data-theme="light"] .pill-type {
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(125,249,255,0.12));
  border-color: rgba(96,165,250,0.4);
  color: #1d4ed8;
}

[data-theme="light"] .pill-risk {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(244,63,94,0.12));
  border-color: rgba(239,68,68,0.4);
  color: #dc2626;
}

[data-theme="light"] .pill-risk.medium { 
  color: #d97706; 
  border-color: rgba(217,119,6,0.4); 
  background: linear-gradient(135deg, rgba(217,119,6,0.15), rgba(251,146,60,0.12)); 
}

[data-theme="light"] .pill-risk.low { 
  color: #059669; 
  border-color: rgba(5,150,105,0.4); 
  background: linear-gradient(135deg, rgba(5,150,105,0.15), rgba(16,185,129,0.12)); 
}

.verdict-headline {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1px;
  color: var(--text);
}

.verdict-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
  font-weight: 600;
}

.meta-value {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.verdict-meter {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.verdict-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(125,249,255,0.12));
  box-shadow: 0 6px 20px rgba(96,165,250,0.15);
  color: #60a5fa;
}

.verdict-icon.risk-high {
  background: linear-gradient(135deg, rgba(244,63,94,0.16), rgba(248,113,113,0.12));
  box-shadow: 0 8px 24px rgba(244,63,94,0.25);
  color: #ef4444;
}

.verdict-icon.risk-high svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

.verdict-icon.potential {
  background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(251,191,36,0.12));
  box-shadow: 0 8px 24px rgba(245,158,11,0.25);
  color: #f59e0b;
}

.verdict-icon.potential svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}
.verdict-text {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.risk-bar-container {
  width: 100%;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.risk-bar {
  --risk-score: 0;
  flex: 1;
  height: 14px;
  border-radius: 999px;
  overflow: visible;
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.55));
  border: none;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22), 0 8px 20px rgba(2,6,23,0.24);
}
#riskBarFill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.9) 0%, rgba(251, 191, 36, 0.92) 50%, rgba(244, 63, 94, 0.94) 100%);
  border-radius: 999px;
  transition: width 0.92s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, filter 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 0 18px rgba(96, 165, 250, 0.2);
}

#riskBar::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 45%);
  pointer-events: none;
}

@keyframes risk-indicator-settle {
  0% {
    transform: translateY(-50%) scale(0.94);
  }
  55% {
    transform: translateY(-50%) scale(1.045);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

@keyframes risk-indicator-settle-mobile {
  0% {
    transform: translateY(-50%) scale(0.97);
  }
  55% {
    transform: translateY(-50%) scale(1.02);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

.risk-bar-indicator {
  position: absolute;
  top: 50%;
  left: calc((var(--risk-score) * 1%) - 11px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.55);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.75) 35%, rgba(226,232,240,0.45) 72%, rgba(15,23,42,0.24));
  box-shadow: 0 8px 20px rgba(2,6,23,0.45), 0 0 0 3px rgba(255,255,255,0.14);
  transition: left 0.92s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: risk-indicator-settle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  pointer-events: none;
}

.risk-bar-indicator.low {
  box-shadow: 0 8px 20px rgba(4,120,87,0.35), 0 0 0 3px rgba(16,185,129,0.2);
  border-color: rgba(167,243,208,0.75);
}

.risk-bar-indicator.medium {
  box-shadow: 0 8px 20px rgba(217,119,6,0.36), 0 0 0 3px rgba(245,158,11,0.2);
  border-color: rgba(253,230,138,0.75);
}

.risk-bar-indicator.high {
  box-shadow: 0 8px 22px rgba(185,28,28,0.38), 0 0 0 3px rgba(239,68,68,0.22);
  border-color: rgba(254,202,202,0.78);
}
.risk-label {
  min-width: 54px;
  text-align: right;
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 600;
}

.meter-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-bar-top-labels,
.risk-bar-bottom-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.risk-bar-top-labels {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.risk-bar-top-labels .legend-item {
  justify-content: center;
}

.risk-bar-top-labels .legend-item.active {
  color: #e2e8f0;
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.28);
}

.risk-bar-bottom-labels {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.risk-bar-bottom-labels .risk-bar-label {
  justify-self: center;
  text-align: center;
}

.scam-detail-item.risk-level-item {
  display: none;
}

.risk-bar-progress-level {
  display: none;
  margin-top: 8px;
  align-self: flex-end;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.scam-meter-section .risk-bar-top-labels,
.scam-meter-section .risk-bar-bottom-labels {
  display: none;
}

.scam-meter-section #riskBar::before {
  display: none;
}

.scam-meter-section .risk-bar-progress-level {
  display: inline-flex;
}

.risk-bar-progress-level.low {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.risk-bar-progress-level.medium {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.risk-bar-progress-level.high {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.risk-bar-top-labels .legend-item:first-child,
.risk-bar-bottom-labels .risk-bar-label:first-child {
  justify-content: flex-start;
  justify-self: start;
  text-align: left;
}

.risk-bar-top-labels .legend-item:last-child,
.risk-bar-bottom-labels .risk-bar-label:last-child {
  justify-content: flex-end;
  justify-self: end;
  text-align: right;
}

[data-theme="light"] .risk-bar-top-labels {
  color: rgba(0,0,0,0.55);
}

[data-theme="light"] .risk-bar {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.92), rgba(226, 232, 240, 0.74));
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), inset 0 -1px 0 rgba(148,163,184,0.28), 0 8px 18px rgba(15,23,42,0.12);
}

[data-theme="light"] .risk-bar-indicator {
  border-color: rgba(148,163,184,0.55);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.98), rgba(248,250,252,0.9) 38%, rgba(226,232,240,0.9) 75%, rgba(148,163,184,0.32));
  box-shadow: 0 8px 18px rgba(15,23,42,0.16), 0 0 0 3px rgba(148,163,184,0.14);
}

[data-theme="light"] .risk-bar-top-labels .legend-item.active {
  color: #0f172a;
  text-shadow: none;
}

[data-theme="light"] .risk-bar-bottom-labels {
  color: #0f172a;
}

[data-theme="light"] .risk-bar-progress-level.low {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .risk-bar-progress-level.medium {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .risk-bar-progress-level.high {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  #riskBarFill {
    transition: width 0.01ms linear;
  }

  .risk-bar-indicator {
    transition: left 0.01ms linear, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: none;
  }
}

@media (max-width: 640px) {
  .risk-bar-indicator {
    animation: risk-indicator-settle-mobile 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

.meter-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(6,182,212,0.08));
  border-radius: 16px;
  border: 2px solid rgba(59,130,246,0.3);
}

.meter-score-value {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -2px;
}

.meter-score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

[data-theme="light"] .meter-score-display {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.12));
  border-color: rgba(59,130,246,0.4);
}

[data-theme="light"] .meter-score-value {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .meter-score-label {
  color: rgba(0,0,0,0.7);
}

/* Legacy risk bar styles removed: modern #riskBar/#riskBarFill styles above are the source of truth. */

.meter-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 12px;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.7rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.legend-low .legend-dot {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}

.legend-medium .legend-dot {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

.legend-high .legend-dot {
  background: linear-gradient(135deg, #dc2626, #f43f5e);
  box-shadow: 0 2px 8px rgba(220,38,38,0.4);
}

[data-theme="light"] .meter-legend {
  color: rgba(0,0,0,0.6);
}

.meter-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.meter-score svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

.educational-details {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(30, 41, 59, 0.45));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: slideUp 300ms ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

[data-theme="light"] .educational-details {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(8, 145, 178, 0.08));
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.educational-details::before {
  display: none;
}

.educational-details.risk-low {
  border-color: rgba(16, 185, 129, 0.3);
  border-left: 4px solid rgba(16, 185, 129, 0.8);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
}

.educational-details.risk-medium {
  border-color: rgba(245, 158, 11, 0.35);
  border-left: 4px solid rgba(245, 158, 11, 0.8);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.04));
}

.educational-details.risk-high {
  border-color: rgba(239, 68, 68, 0.4);
  border-left: 4px solid rgba(239, 68, 68, 0.85);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.04));
}

.educational-details.hidden {
  display: none;
}

.education-detail-card {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
  box-shadow: none;
  animation: slideUp 300ms ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.education-detail-card.hidden {
  display: none;
}

.education-detail-card .education-detail {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.education-detail-card .education-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.education-detail-card .education-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.education-detail-card .education-pill {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.education-detail-card .education-pill strong {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: var(--accent-2);
  font-weight: 700;
}

.education-detail-card .education-section,
.education-detail-card .education-paragraph {
  margin: 0;
}

.education-detail-card .education-section:not(:first-child) {
  margin-top: 18px;
}

.education-detail-card .education-section-title {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.education-detail-card .scam-learn-more,
.education-detail-card .regional-scam-link {
  width: auto;
  align-self: flex-start;
}

.details-content .scam-learn-more,
.details-content .regional-scam-link {
  width: auto;
  align-self: flex-start;
}

[data-theme="light"] .education-detail-card {
  background: rgba(255,255,255,0.5);
  border-color: var(--glass-border);
  box-shadow: none;
}

[data-theme="light"] .education-detail-card .education-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0b1324;
}

[data-theme="light"] .education-detail-card .education-pill strong {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #1d4ed8;
}
.education-detail-card .evidence-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.education-detail-card .evidence-chip {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  min-height: 32px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.education-detail-card .evidence-chip:hover,
.education-detail-card .evidence-chip.active {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.18);
  color: var(--accent-2);
}
.education-detail-card .evidence-chip:hover {
  transform: translateY(-1px);
}
.education-detail-card .evidence-chip:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 2px;
  border-color: rgba(96, 165, 250, 0.7);
}
.education-detail-card .evidence-chip.active {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.22);
}
.education-detail-card .evidence-reason {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
}
[data-theme="light"] .education-detail-card .evidence-chip {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: #0b1324;
}
[data-theme="light"] .education-detail-card .evidence-chip:hover,
[data-theme="light"] .education-detail-card .evidence-chip.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
[data-theme="light"] .education-detail-card .evidence-chip:focus-visible {
  outline-color: rgba(37, 99, 235, 0.55);
  border-color: rgba(37, 99, 235, 0.45);
}
[data-theme="light"] .education-detail-card .evidence-chip.active {
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
}
[data-theme="light"] .education-detail-card .evidence-reason {
  color: #0b1324;
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.2);
}

@media (max-width: 640px) {
  .education-detail-card .evidence-chip-grid {
    gap: 10px;
  }

  .education-detail-card .evidence-chip {
    font-size: 0.88rem;
    min-height: 40px;
    padding: 9px 13px;
  }

  .education-detail-card .evidence-reason {
    font-size: 0.9rem;
    margin-top: 10px;
  }
}

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

.edu-message-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
}

.edu-message-icon {
  font-size: 1.6rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(14, 116, 144, 0.15));
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #8ab4ff;
}

.edu-message-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="light"] .edu-message-title {
  color: var(--accent);
}

.edu-message-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  padding: 0;
}

.edu-message-content strong {
  color: var(--text);
  font-weight: 700;
}

.edu-message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.edu-link {
  display: none;
}

.details-summary {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
  padding: 14px 22px 12px 22px;
  cursor: pointer;
  outline: none;
  border-radius: var(--radius);
  background: transparent;
  transition: background var(--transition-fast) ease;
}
.details-panel[open] .details-summary {
  color: var(--accent-2);
  background: rgba(125,249,255,0.04);
}
.details-content {
  padding: 24px 28px;
  color: var(--text);
  font-size: 1.01rem;
  line-height: 1.7;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(8, 145, 178, 0.02));
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.08);
}

.details-content .education-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: rgba(17, 24, 39, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.details-content .education-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-2);
}
.details-content .education-paragraph {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}
.details-content .education-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
}
.details-content .education-section-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.details-content .education-pill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.details-content .education-pill {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.details-content .education-pill strong {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.details-content .card {
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(17, 24, 39, 0.4);
  border-radius: 10px;
  border-left: 3px solid rgba(96, 165, 250, 0.3);
  transition: all 0.2s ease;
}

.details-content .card:hover {
  background: rgba(17, 24, 39, 0.6);
  border-left-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.details-content .card:last-child {
  margin-bottom: 0;
}

.details-content .details-brief {
  margin-bottom: 20px;
  line-height: 1.8;
  padding: 16px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.details-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-content li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.details-content li::before {
  content: '▸';
  color: rgba(96, 165, 250, 0.6);
  flex-shrink: 0;
  font-weight: bold;
  margin-top: 2px;
}

.feedback-trigger {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(96, 165, 250, 0.1);
}

.feedback-trigger button {
  min-width: 180px;
}

/* Mic controls below form */
.mic-controls-below {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 0 0;
}

@media (max-width: 700px) {
  .verdict-card, .details-panel { padding-left: 10px; padding-right: 10px; }
  .details-summary, .details-content { padding-left: 10px; padding-right: 10px; }
  .mic-controls-below { gap: 8px; }
}
@media (max-width: 480px) {
  .verdict-card { padding: 14px 4vw 10px 4vw; }
  .details-panel { padding: 0; }
  .details-summary, .details-content { padding-left: 4vw; padding-right: 4vw; }
  .mic-controls-below { gap: 4px; }
}

.verdict {
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 12px;
  display:flex;gap:10px;justify-content:center;align-items:center;color:var(--muted);
}
.verdict strong{ color: var(--text); font-weight:800; margin:0 6px; }

.risk-meter {
  height: 12px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.45);
}

.risk-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #f59e0b, #f97316, #ef4444);
  transition: width 0.9s cubic-bezier(.2,.9,.2,1), background 0.3s ease;
  box-shadow: 0 6px 20px rgba(45,120,255,0.06);
}

/* =========================
   SUMMARY PILLS
========================= */
.summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}

.summary-list li {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f5f7fa; /* readable on dark background */
}

/* Risk tinting */
.summary-list li.high { background: rgba(248,113,113,0.15); }
.summary-list li.medium { background: rgba(255,149,0,0.18); }
.summary-list li.low { background: rgba(52,199,89,0.18); }

/* Mobile adjustments */
@media (max-width: 480px) {
  .summary-list li { font-size: 0.88rem; padding: 7px 12px; }
}

/* =========================
   DETAILED EXPLANATION CARDS
========================= */
#detailedText {
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

/* Make each detail entry appear as a compact pill */
#detailedText .card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.35;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease, background var(--transition-fast) ease;
  box-sizing: border-box;
  /* default: full-width on small screens */
  flex: 0 1 100%;
  max-width: 100%;
  backdrop-filter: blur(6px);
}
#detailedText .card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(2,6,23,0.4); }
#detailedText .card .card-text { color: var(--text); font-weight: 500; }
#detailedText .card.card-link { border-left: 3px solid rgba(96,165,250,0.16); }
#detailedText .card.card-urgent { border-left: 3px solid rgba(244,63,94,0.18); }
#detailedText .card.card-payment { border-left: 3px solid rgba(34,197,94,0.12); }

[data-theme="light"] #detailedText .card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #0b1324 !important;
}
[data-theme="light"] #detailedText .card .card-text {
  color: #0b1324 !important;
}
[data-theme="light"] #detailedText .card:hover {
  box-shadow: 0 8px 30px rgba(15,23,42,0.15);
}
#detailedText .card.card-info { border-left: 3px solid rgba(56,189,248,0.12); }


#detailedText .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

#detailedText .card .card-icon { font-weight: 700; font-size: 14px; flex-shrink: 0; }

#detailedText .card-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

#detailedText .card-expand {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: transform 0.18s ease, right 0.12s ease, top 0.12s ease;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none; /* clicks handled by card */
}
#detailedText .card-expand svg { transition: transform 0.18s ease, color 0.18s ease; stroke: currentColor; color: rgba(255,255,255,0.6); }
#detailedText .card.expanded .card-expand svg { transform: rotate(45deg) scale(1.02); color: rgba(255,255,255,0.92); }

/* Expanded card state */
#detailedText .card.expanded {
  align-items: flex-start;
  white-space: normal;
  word-break: break-word;
  padding: 12px 44px 12px 16px; /* extra right padding to avoid overlap with icon */
  flex-wrap: wrap;
  transition: background var(--transition-medium) ease, transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

#detailedText .card.expanded .card-text {
  white-space: normal;
  word-break: break-word;
  flex-basis: 100%;
  opacity: 0;
  animation: fadeInUp 320ms var(--transition-fast) ease both;
}

#detailedText .card.expanded .card-expand {
  transform: translateY(-50%) rotate(45deg);
  color: rgba(255,255,255,0.9);
}

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

/* Focus outlines for keyboard users */
:focus-visible { outline: 3px solid rgba(96,165,250,0.18); outline-offset: 3px; border-radius: 8px; }

/* Details reveal */
.details { transition: max-height 260ms ease, opacity 260ms ease; }
.details.expanded .detail-block-content { animation: fadeInUp 280ms ease both; }


/* Color accents for pill types */
#detailedText .card-link { background: rgba(96,165,250,0.08); color: #60a5fa; border-color: rgba(96,165,250,0.14); }
#detailedText .card-urgent { background: rgba(248,113,113,0.08); color: #f87171; border-color: rgba(248,113,113,0.14); }
#detailedText .card-payment { background: rgba(74,222,128,0.08); color: #4ade80; border-color: rgba(74,222,128,0.14); }
#detailedText .card-info { background: rgba(56,189,248,0.08); color: #38bdf8; border-color: rgba(56,189,248,0.14); }
#detailedText .card-general { background: rgba(203,213,225,0.04); color: #cbd5e1; border-color: rgba(203,213,225,0.06); }

/* Keep the tip as a full-width informational block */
#detailedText .card-tip {
  display: block;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(96,165,250,0.06), rgba(125,249,255,0.02));
  color: #f1f5f9;
  font-weight: 600;
  border-left: 4px solid rgba(96,165,250,0.18);
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.45);
}

@media (max-width: 480px) {
  #detailedText { gap: 8px; }
  #detailedText .card { padding: 7px 10px; font-size: 0.9rem; }
  #detailedText .card-text { overflow: hidden; text-overflow: ellipsis; }
}

/* Desktop: use multi-column layout to avoid overflow */
@media (min-width: 601px) and (max-width: 999px) {
  #detailedText .card { flex: 0 1 calc(48% - 10px); max-width: calc(48% - 10px); }
}

@media (min-width: 1000px) {
  #detailedText .card { flex: 0 1 calc(33.333% - 10px); max-width: calc(33.333% - 10px); }
}

/* Responsive: pills/cards */
@media (max-width: 700px) {
  #detailedText .card { flex: 0 1 100%; max-width: 100%; }
}
@media (min-width: 701px) and (max-width: 999px) {
  #detailedText .card { flex: 0 1 calc(48% - 10px); max-width: calc(48% - 10px); }
}
@media (min-width: 1000px) {
  #detailedText .card { flex: 0 1 calc(33.333% - 10px); max-width: calc(33.333% - 10px); }
}

/* Make the details toggle appear like a heading */
.details-toggle {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e6eefc;
  background: transparent;
  border: none;
  padding: 8px 0;
  margin: 6px 0 12px;
  cursor: pointer;
}

.details-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.12);
  border-radius: 6px;
}


/* =========================
   FOOTER
========================= */
footer {
  margin: 40px auto;
  max-width: 720px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 640px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  }
  .logo { flex: 1 1 auto; }
  .language-dropdown {
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .headline { font-size: 1.5rem; margin-top: 16px; margin-bottom: 24px; }
  .container { margin: 0 12px; padding: 20px; }
  button.primary, button.secondary { width: 90%; font-size: 1rem; padding: 12px; }
  .progress-bar { height: 6px; }
}
/* =========================
   FEEDBACK MODAL FIX
========================= */
#feedbackModal.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#feedbackModal.modal .modal-box {
  background: #14141f;
  border-radius: 22px;
  padding: 24px;
  width: 100%;
  max-width: 420px; /* limit width */
  margin: 0 16px;   /* spacing from edges */
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] #feedbackModal.modal .modal-box {
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  color: #0b1324;
}

/* Feedback textarea */
#feedbackModal.modal .modal-box textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  color: #fff;
  resize: vertical;
}

[data-theme="light"] #feedbackModal.modal .modal-box textarea {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.15);
  color: #0b1324;
}

/* Buttons inside modal */
#feedbackModal.modal .feedback-options {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin: 12px 0 0;
}

#feedbackModal.modal .feedback-options button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #1e293b; /* slightly dark modal button */
  color: #fff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#feedbackModal.modal .feedback-options button svg {
  width: 18px;
  height: 18px;
}

.feedback-label {
  display: inline-block;
}

[data-theme="light"] #feedbackModal.modal .feedback-options button {
  background: rgba(0,0,0,0.08);
  color: #0b1324;
}

#feedbackModal.modal .feedback-options button.selected {
  background: #60a5fa; /* highlight selected */
  box-shadow: 0 6px 18px rgba(96,165,250,0.35);
}

[data-theme="light"] #feedbackModal.modal .feedback-options button.selected {
  background: #2563eb;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}

#feedbackModal.modal .modal-box h3 {
  color: #fff;
  margin: 0 0 8px 0;
}

[data-theme="light"] #feedbackModal.modal .modal-box h3 {
  color: #0b1324;
}

/* Close button (optional) */
#feedbackModal.modal .close-btn {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
/* =========================
   IMAGE CONFIRMATION
========================= */
.image-confirmation {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

.image-confirmation.hidden {
  display: none !important;
}

.confirmation-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.confirmation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  color: rgba(16, 185, 129, 0.9);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.confirmation-icon svg {
  width: 16px;
  height: 16px;
}

.confirmation-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.confirmation-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.confirmation-filename {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirmation-preview {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  font-style: italic;
}

.confirmation-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.confirmation-actions button {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-width: auto;
}

[data-theme="light"] .image-confirmation {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .confirmation-icon {
  background: rgba(16, 185, 129, 0.12);
  color: rgba(16, 185, 129, 0.85);
}

/* ==========================
   SCAM REPORT SECTION
============================ */

.report-section {
  margin-top: 28px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: slideDown 0.35s ease;
}

.report-section.hidden {
  display: none;
}

.report-header {
  margin-bottom: 20px;
}

.report-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.report-explanation {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Auto-detected Category Display */
.detected-category {
  margin-bottom: 18px;
}

.category-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-display {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(125,249,255,0.1));
  border: 1px solid rgba(96,165,250,0.3);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.category-icon-wrapper {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96,165,250,0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.category-icon-wrapper i {
  width: 24px;
  height: 24px;
  color: rgba(96,165,250,0.9);
  stroke-width: 2;
}

.category-info {
  flex: 1;
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.category-confidence {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* Privacy Notice (Compact) */
.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(96,165,250,0.05);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.privacy-icon {
  width: 18px;
  height: 18px;
  color: rgba(96,165,250,0.7);
  flex-shrink: 0;
  margin-top: 1px;
  stroke-width: 2;
}

/* Opt-in Checkbox */
.report-opt-in {
  margin-bottom: 18px;
}

.opt-in-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background var(--transition-fast) ease;
}

.opt-in-label:hover {
  background: rgba(255,255,255,0.02);
}

.opt-in-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.opt-in-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  user-select: none;
}

/* Privacy Warning Box */
.privacy-warning {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.warning-icon {
  width: 20px;
  height: 20px;
  color: rgba(245,158,11,0.8);
  flex-shrink: 0;
  stroke-width: 2;
}

.warning-content {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.warning-content strong {
  color: var(--text);
}

/* Action Buttons */
.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn-submit,
.btn-skip {
  flex: 1;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium) ease;
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent), rgba(96,165,250,0.8));
  color: white;
  box-shadow: 0 4px 12px rgba(96,165,250,0.3);
}

.btn-submit:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(96,165,250,0.5);
  transform: translateY(-2px);
}

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

.btn-skip {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
}

.btn-skip:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

/* Success Message */
.report-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  margin-top: 16px;
  animation: slideDown 0.3s ease;
}

.report-success.hidden {
  display: none;
}

.success-icon {
  width: 20px;
  height: 20px;
  color: rgba(34,197,94,0.9);
  flex-shrink: 0;
  stroke-width: 2;
}

.success-text {
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Light Theme Overrides */
[data-theme="light"] .report-section {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-theme="light"] .category-display {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(96,165,250,0.05));
  border-color: rgba(37,99,235,0.2);
}

[data-theme="light"] .category-icon-wrapper {
  background: rgba(37,99,235,0.1);
}

[data-theme="light"] .category-icon-wrapper i {
  color: rgba(37,99,235,0.8);
}

[data-theme="light"] .privacy-notice {
  background: rgba(96,165,250,0.04);
  border-color: rgba(96,165,250,0.12);
}

/* Regional Scam Cards */
.regional-scam-card:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(125, 249, 255, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(125, 249, 255, 0.1);
}

.regional-scams-section h3 {
  color: var(--regional-heading);
  border-top: 1px solid var(--regional-border);
}

.regional-scam-card {
  background: var(--regional-card-bg);
  border: 1px solid var(--regional-card-border);
}

.regional-scam-card h4 {
  color: var(--regional-title);
}

.regional-scam-card p {
  color: var(--regional-text);
}

.regional-scam-card span {
  background: var(--regional-badge-bg);
  color: var(--regional-badge-text);
}

[data-theme="light"] .privacy-icon {
  color: rgba(37,99,235,0.7);
}

[data-theme="light"] .opt-in-label:hover {
  background: rgba(0,0,0,0.02);
}

[data-theme="light"] .btn-skip {
  border-color: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.6);
}

[data-theme="light"] .btn-skip:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
}

[data-theme="light"] .report-success {
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.2);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .report-section {
    padding: 18px 16px;
  }
  
  .report-title {
    font-size: 1.1rem;
  }
  
  .report-actions {
    flex-direction: column;
  }
  
  .btn-submit,
  .btn-skip {
    width: 100%;
  }
}

/* ==========================
   FRAUD HELP SECTION
============================ */

.fraud-help-section {
  margin-top: 30px;
}

.fraud-help-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.18);
  color: var(--muted);
  margin-bottom: 16px;
}

.fraud-help-note strong {
  color: var(--text);
}

.fraud-help-note-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(245,158,11,0.85);
  stroke-width: 2;
}

.fraud-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fraud-help-card {
  background: rgba(10,132,255,0.04);
  border: 1px solid rgba(10,132,255,0.14);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: inset 0 1px 0 rgba(10,132,255,0.06);
  transition: border-color 0.2s, background 0.2s;
}

.fraud-help-card:hover {
  border-color: rgba(10,132,255,0.28);
  background: rgba(10,132,255,0.07);
}

.fraud-help-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fraud-help-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.fraud-help-card-title i {
  width: 18px;
  height: 18px;
  color: #0a84ff;
}

.fraud-help-pill {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10,132,255,0.12);
  border: 1px solid rgba(10,132,255,0.28);
  color: #0a84ff;
  white-space: nowrap;
}

.fraud-help-pill.secondary {
  background: rgba(94,92,230,0.12);
  border-color: rgba(94,92,230,0.28);
  color: #5e5ce6;
}

.fraud-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.fraud-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(10,132,255,0.1);
}

.fraud-step:first-child {
  border-top: none;
  padding-top: 0;
}

.fraud-step-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0a84ff;
  background: rgba(10,132,255,0.10);
  border: 1px solid rgba(10,132,255,0.22);
}

.fraud-step-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.fraud-step-body strong {
  color: var(--text);
}

.fraud-help-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fraud-help-links-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.fraud-help-links ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  line-height: 1.5;
  font-size: 0.92rem;
}

.fraud-help-links a {
  color: #0a84ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(10,132,255,0.35);
}

.fraud-help-links a:hover {
  color: #5e5ce6;
  border-bottom-color: rgba(94,92,230,0.6);
}

@media (max-width: 860px) {
  .fraud-help-grid {
    grid-template-columns: 1fr;
  }

  .fraud-help-card {
    width: 100%;
    max-width: 100%;
  }

  .fraud-help-card-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .fraud-help-card-title {
    min-width: 0;
    flex: 1 1 auto;
  }

  .fraud-help-pill {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .fraud-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .fraud-step-body,
  .fraud-help-links ul {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

[data-theme="light"] .fraud-help-card {
  background: rgba(255,255,255,0.95);
  border-color: rgba(37,99,235,0.2);
}

[data-theme="light"] .fraud-step {
  border-top-color: rgba(37,99,235,0.15);
}

[data-theme="light"] .fraud-help-links {
  border-top-color: rgba(37,99,235,0.15);
}

[data-theme="light"] .fraud-help-pill {
  background: rgba(59,130,246,0.14);
  border-color: rgba(59,130,246,0.35);
  color: #1d4ed8;
}

[data-theme="light"] .fraud-step-num {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: #1d4ed8;
}

[data-theme="light"] .scam-chart-card h3 {
  color: #0f172a;
}

[data-theme="light"] .scam-chart-caption {
  color: rgba(15,23,42,0.68);
}

[data-theme="light"] .scam-distribution-item {
  color: #0f172a;
}

[data-theme="light"] .scam-distribution-item strong {
  color: #0f172a;
}

/* ==========================
   VERIFICATION SECTION STYLES
   ========================== */

.verification-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  margin: 32px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.verification-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
}

.verification-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
}

.verification-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.verification-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -2px;
}

.verification-tab:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.02);
}

.verification-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

[data-theme="light"] .verification-tab:hover {
  background: rgba(0,0,0,0.03);
}

.verification-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.verification-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.verification-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.verify-btn {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.verify-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.verify-btn:active {
  transform: translateY(0);
}

.verification-results {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
}

.verification-results.hidden {
  display: none;
}

.verification-content {
  font-size: 1rem;
  line-height: 1.6;
}

.verification-safe {
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.verification-warning {
  color: #ef4444;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.verification-details {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  font-size: 0.9rem;
}

[data-theme="light"] .verification-details {
  background: rgba(0,0,0,0.03);
}

/* Source display styling */
.sources-list {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.sources-list-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.source-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.source-item.scam {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}

.source-item.safe {
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid #10b981;
}

.source-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.source-name {
  font-weight: 600;
  color: var(--text);
}

.source-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 8px;
  color: white;
}

.source-badge.internal {
  background: #8b5cf6;
}

.source-badge.external {
  background: #3b82f6;
}

.source-description {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.source-meta {
  margin: 4px 0;
  font-size: 0.85rem;
}

.verification-action {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.report-scam-btn {
  padding: 10px 20px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-scam-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.report-form {
  margin-top: 24px;
  padding: 20px;
  border: 2px solid #fbbf24;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 12px;
}

.report-form.hidden {
  display: none;
}

.report-form-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.report-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.report-description {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: all 0.2s ease;
}

.report-description:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.report-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.submit-report-btn {
  padding: 12px 24px;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.submit-report-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.cancel-report-btn {
  padding: 12px 24px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-report-btn:hover {
  background: var(--bg-primary);
  transform: translateY(-1px);
}

.report-success-msg {
  margin-top: 16px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10b981;
  border-radius: 8px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scam-contact-form {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  overflow: hidden;
  max-height: 1600px;
  opacity: 1;
  transform: translateY(0);
  transform-origin: top;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, margin-top 0.25s ease;
}

.scam-contact-form.collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scam-contact-form {
    transition: none;
  }
}

#scamContactReportSection {
  width: 100%;
  max-width: 980px;
  margin: 30px auto;
}

.report-header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.report-header-row .report-title {
  flex: 1 1 220px;
  margin: 0;
}

.report-toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.4);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-toggle-btn .toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.report-toggle-btn.is-open .toggle-icon {
  transform: rotate(180deg);
}

.report-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

[data-theme="light"] .report-toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.report-field {
  display: grid;
  gap: 6px;
}

.report-field label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.report-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(10, 20, 40, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 72px;
}

[data-theme="light"] .report-field textarea {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(15, 23, 42, 0.15);
}

.report-field textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.report-error-msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

/* Comparison + Positioning Sections */
.comparison-section {
  width: 100%;
  max-width: 980px;
  margin: 30px auto 22px;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.16), transparent 38%),
    linear-gradient(165deg, rgba(17, 24, 39, 0.72), rgba(8, 12, 20, 0.58));
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.46), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: clip;
}

.comparison-section::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 220px;
  background: radial-gradient(circle at 20% 20%, rgba(125, 249, 255, 0.2), rgba(125, 249, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.comparison-section > * {
  position: relative;
  z-index: 1;
}

.comparison-header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-kicker,
.positioning-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #8ab4ff;
}

.comparison-header h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.25;
}

.comparison-header h2 em {
  font-style: italic;
  background: linear-gradient(120deg, #8ab4ff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.comparison-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.comparison-lede strong { color: var(--text); }

/* Collapsed by default — premium disclosure */
.comparison-details {
  margin-top: 4px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.comparison-details[open] {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.comparison-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.comparison-toggle::-webkit-details-marker { display: none; }
.comparison-toggle:hover { background: rgba(125, 211, 252, 0.08); }
.comparison-toggle:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.65);
  outline-offset: 2px;
}

.comparison-toggle__label {
  display: grid;
  gap: 2px;
  text-align: left;
}

.comparison-toggle__title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.comparison-toggle__sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.comparison-toggle__chevron {
  width: 20px;
  height: 20px;
  color: #8ab4ff;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  flex-shrink: 0;
}

.comparison-details[open] .comparison-toggle__chevron {
  transform: rotate(180deg);
}

/* Cards inside the collapsed panel */
.comparison-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 16px 18px;
  animation: comparison-fade 360ms cubic-bezier(.2,.8,.2,1);
}

@keyframes comparison-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.comparison-card {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.comparison-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.30);
}

.comparison-card--scanbeyond {
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.18), rgba(34, 211, 238, 0.08));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255,255,255,0.09);
}

.comparison-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.comparison-card__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 211, 252, 0.14);
  color: #8ab4ff;
  flex-shrink: 0;
}

.comparison-card--scanbeyond .comparison-card__icon {
  background: rgba(125, 211, 252, 0.22);
  color: #e0f2fe;
}

.comparison-card__icon svg { width: 16px; height: 16px; }

.comparison-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}

.comparison-card__pill,
.comparison-card__sub {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-basis: 100%;
}

.comparison-card__pill {
  background: rgba(125, 211, 252, 0.18);
  color: #bae6fd;
  border: 1px solid rgba(125, 211, 252, 0.35);
  flex-basis: auto;
}

.comparison-card__sub {
  background: transparent;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0;
}

.comparison-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.comparison-card__list li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.comparison-card--scanbeyond .comparison-card__list li {
  color: rgba(224, 242, 254, 0.92);
}

.comparison-card--scanbeyond .comparison-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 3px;
  margin-top: 7px;
  background: #8ab4ff;
  box-shadow: 0 0 6px rgba(125, 211, 252, 0.7);
  flex-shrink: 0;
}

.comparison-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(245,245,247,0.85);
  flex-shrink: 0;
}

.comparison-tag.tag-accent {
  background: rgba(125, 211, 252, 0.18);
  color: #bae6fd;
}

.positioning-section {
  width: 100%;
  max-width: 1060px;
  margin: 10px auto 28px;
}

.positioning-panel {
  border-radius: 22px;
  border: 1px solid rgba(10, 132, 255, 0.15);
  background:
    radial-gradient(ellipse 110% 90% at 0% 0%, rgba(10, 132, 255, 0.1), transparent 52%),
    radial-gradient(ellipse 80% 100% at 100% 100%, rgba(94, 92, 230, 0.12), transparent 52%),
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(94, 92, 230, 0.08), transparent 44%),
    linear-gradient(155deg, rgba(2, 6, 23, 0.92), rgba(8, 47, 73, 0.78));
  padding: 0;
  box-shadow:
    0 36px 72px rgba(2, 6, 23, 0.52),
    0 0 0 1px rgba(10, 132, 255, 0.04) inset,
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Background glow orbs */
.pos-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.pos-orb-1 {
  width: 380px;
  height: 380px;
  right: -80px;
  top: -100px;
  background: radial-gradient(circle at center, rgba(10, 132, 255, 0.14), transparent 65%);
  filter: blur(50px);
}
.pos-orb-2 {
  width: 300px;
  height: 300px;
  left: -60px;
  bottom: -90px;
  background: radial-gradient(circle at center, rgba(94, 92, 230, 0.14), transparent 65%);
  filter: blur(44px);
}

/* Two-column grid */
.positioning-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

/* Left: headline + body + CTAs + trust */
.positioning-left {
  padding: 40px 36px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(10, 132, 255, 0.1);
}

.pos-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #0a84ff;
  margin-bottom: 16px;
}

.pos-headline {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.038em;
  color: #f0f9ff;
  font-weight: 800;
}

.pos-headline em {
  font-style: normal;
  background: linear-gradient(105deg, #0a84ff 10%, #5e5ce6 52%, #0a84ff 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pos-body {
  margin: 0 0 24px;
  color: rgba(186, 230, 253, 0.82);
  font-size: 0.97rem;
  line-height: 1.74;
  max-width: 52ch;
}

/* CTAs */
.positioning-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.positioning-actions .subscribe-btn {
  width: auto;
  min-width: 180px;
  justify-content: center;
}

.positioning-actions .subscribe-btn.primary {
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3), 0 0 20px rgba(56, 189, 248, 0.14);
}

.pos-ghost-btn {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  color: #dbeafe !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pos-ghost-btn:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(125, 249, 255, 0.5) !important;
  color: #f8fbff !important;
}

/* Trust row */
.pos-trust-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 132, 255, 0.12);
}

.pos-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: rgba(10, 132, 255, 0.62);
  font-weight: 500;
}

.pos-trust-item svg {
  color: rgba(10, 132, 255, 0.48);
  flex-shrink: 0;
}

.pos-trust-sep {
  color: rgba(10, 132, 255, 0.2);
  font-size: 1rem;
}

/* Right: feature cards */
.positioning-right {
  padding: 32px 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.pos-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(10, 132, 255, 0.1);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms cubic-bezier(.22,.61,.36,1);
  cursor: default;
}

.pos-feature-card:hover {
  background: rgba(10, 132, 255, 0.05);
  border-color: rgba(10, 132, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.24);
}

.pos-feature-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(94, 92, 230, 0.12));
  border: 1px solid rgba(10, 132, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a84ff;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(10, 132, 255, 0.08);
}

.pos-feature-text strong {
  display: block;
  font-size: 0.91rem;
  font-weight: 700;
  color: #e0f2fe;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.pos-feature-text p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.62;
  color: rgba(148, 210, 252, 0.68);
}

/* Staggered scroll reveal for positioning section children */
.positioning-reveal-1.reveal-block { transition-delay: 0ms; }
.positioning-reveal-2.reveal-block { transition-delay: 130ms; }
.positioning-reveal-3.reveal-block { transition-delay: 260ms; }

/* Staggered scroll reveal for safety-flow section */
.safety-flow-reveal-1.reveal-block { transition-delay: 0ms; }
.safety-flow-reveal-2.reveal-block { transition-delay: 120ms; }
.safety-flow-reveal-3.reveal-block { transition-delay: 240ms; }
.safety-flow-reveal-4.reveal-block { transition-delay: 360ms; }

/* Staggered scroll reveal for scam-stats section */
.scam-stats-reveal-1.reveal-block { transition-delay: 0ms; }
.scam-stats-reveal-2.reveal-block { transition-delay: 110ms; }
.scam-stats-reveal-3.reveal-block { transition-delay: 220ms; }
.scam-stats-reveal-4.reveal-block { transition-delay: 330ms; }

/* Cinematic reveal system (used by comparison/positioning blocks) */
.reveal-block {
  --reveal-y: 22px;
  --reveal-scale: 0.985;
  --reveal-opacity: 0;
  opacity: var(--reveal-opacity);
  transform: translateY(var(--reveal-y)) scale(var(--reveal-scale));
  filter: saturate(0.92) blur(1px);
  transition:
    opacity 700ms cubic-bezier(.22,.61,.36,1),
    transform 820ms cubic-bezier(.22,.61,.36,1),
    filter 700ms ease;
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1) blur(0);
}

.comparison-col.reveal-block:nth-child(1) { transition-delay: 40ms; }
.comparison-col.reveal-block:nth-child(2) { transition-delay: 110ms; }
.comparison-col.reveal-block:nth-child(3) { transition-delay: 180ms; }
.comparison-col.reveal-block:nth-child(4) { transition-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-block {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .verification-section {
    padding: 20px 16px;
  }
  
  .verification-title {
    font-size: 1.2rem;
  }
  
  .verification-input-group {
    flex-direction: column;
  }
  
  .verify-btn {
    width: 100%;
    justify-content: center;
  }
  
  .verification-tabs {
    gap: 8px;
  }
  
  .verification-tab {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .report-form-actions {
    flex-direction: column;
  }
  
  .submit-report-btn,
  .cancel-report-btn {
    width: 100%;
    justify-content: center;
  }

  .comparison-grid,
  .comparison-matrix {
    grid-template-columns: 1fr;
  }

  .comparison-section { padding: 22px 16px; }
  .comparison-header h2 { font-size: 1.25rem; }
  .comparison-toggle { padding: 14px 16px; }
  .comparison-matrix { padding: 4px 12px 14px; }

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

  .positioning-left {
    padding: 28px 20px 22px;
    border-right: none;
    border-bottom: 1px solid rgba(10, 132, 255, 0.1);
  }

  .positioning-right {
    padding: 20px 20px 26px;
    gap: 10px;
  }

  .pos-headline {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }

  .positioning-actions {
    flex-direction: column;
  }

  .positioning-actions .subscribe-btn {
    width: 100%;
    min-width: 0;
  }

  .pos-trust-row {
    gap: 4px 8px;
  }

  .safety-flow-section {
    padding: 24px 18px;
    margin: 24px 0;
  }

  .safety-flow-header {
    margin-bottom: 20px;
  }

  .safety-flow-header h2 {
    font-size: 1.35rem;
  }

  .safety-flow-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .safety-flow-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .safety-flow-icon {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .scam-stats-section {
    padding: 24px 18px;
    margin: 24px 0;
  }

  .scam-stats-header {
    margin-bottom: 20px;
  }

  .scam-stats-header h2 {
    font-size: 1.35rem;
  }

  .scam-stats-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .scam-stat-card {
    padding: 14px 16px;
  }

  .scam-stat-value {
    font-size: 1.2rem;
  }

  .pos-feature-card {
    padding: 13px 14px;
  }

  .pos-feature-icon-wrap {
    width: 36px;
    height: 36px;
  }
}

/* =========================
   AUTH/ACCOUNT/PRICING STYLES
========================= */

/* Pricing Section */
.pricing-section {
  width: 100%;
  max-width: 980px;
  margin: 30px auto;
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.72), rgba(8, 12, 20, 0.62));
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.52), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

#pricingSection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(96,165,250,0.92), rgba(125,249,255,0.95));
  box-shadow: 0 0 14px rgba(96,165,250,0.45);
}

#pricingSection::after {
  content: '';
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 180px;
  background: radial-gradient(circle at 50% 0%, rgba(96,165,250,0.20), rgba(96,165,250,0));
  pointer-events: none;
}

.pricing-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.pricing-cycle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.45);
  width: fit-content;
}

.pricing-cycle-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.pricing-cycle-btn.active {
  background: linear-gradient(135deg, rgba(96,165,250,0.35), rgba(125,249,255,0.22));
  color: #e2e8f0;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.pricing-story {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.pricing-intro {
  margin: 0;
  max-width: 760px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.pricing-value-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pricing-value-point {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-value-point h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.98rem;
}

.pricing-value-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pricing-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #dbeafe, #8ab4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#pricingSection .pricing-card {
  border-color: rgba(125, 211, 252, 0.24);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.34);
}

#pricingSection .pricing-card:hover {
  transform: translateY(-6px);
}

#pricingSection .pricing-card.featured {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14), inset 0 1px 0 rgba(255,255,255,0.06);
}

@media (min-width: 960px) {
  .pricing-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pricing-card {
  position: relative;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all var(--transition-medium) ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(48, 176, 255, 0.05));
  border: 1px solid rgba(125, 211, 252, 0.42);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--text);
}

.plan-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-title-row h3 {
  margin: 0;
}

.plan-google-icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  stroke-width: 2;
}

[data-theme="light"] .plan-google-icon {
  color: #1e3a8a;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.24);
}

.pricing-card .plan-description {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 72px;
}

.pricing-card .price {
  margin-bottom: 14px;
  font-size: 36px;
  font-weight: 700;
  color: #0a84ff;
}

.pricing-card .plan-fit {
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.18);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-card .plan-fit-label {
  color: var(--text);
  font-weight: 700;
}

.pricing-card .price .price-value {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.pricing-card .price .price-interval {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card .features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-card .features li {
  padding: 8px 0;
  color: var(--text);
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card .features .feature-icon {
  width: 16px;
  height: 16px;
  color: #0a84ff;
  flex-shrink: 0;
}

.pricing-card .features .feature-icon.negative {
  color: var(--danger);
}

.pricing-card .features .feature-text {
  display: inline-block;
}

.pricing-card .features li:first-child {
  padding-top: 0;
}

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.subscribe-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.subscribe-btn.primary {
  background: radial-gradient(120% 140% at 0% 0%, rgba(94, 92, 230, 0.5) 0%, rgba(94, 92, 230, 0) 55%), linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(10, 132, 255, 0.35);
  gap: 8px;
}

.subscribe-btn.primary:hover {
  background: radial-gradient(120% 140% at 0% 0%, rgba(94, 92, 230, 0.6) 0%, rgba(94, 92, 230, 0) 55%), linear-gradient(135deg, #3d9eff 0%, #0a84ff 55%, #0066cc 100%);
  box-shadow: 0 8px 28px rgba(10, 132, 255, 0.45);
  transform: translateY(-2px);
}

/* Homepage conversion overrides (must stay in actively parsed zone) */
.scam-stats-section,
#fraudHelpSection,
#directorySection,
.education-section,
.positioning-section,
.scam-warning-ticker,
#regionalScamsSection,
#scamContactReportSection,
.education-videos-section {
  display: none !important;
}

/* Allow direct quick-link access to hidden knowledge sections */
#directorySection:target,
#commonScamsSection:target {
  display: block !important;
}

.trust-bar-section {
  padding: 48px 16px;
  margin: 64px 0;
  background: transparent;
}

.trust-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.trust-card {
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 24px 48px -28px rgba(125, 211, 252, 0.45);
}

.trust-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(196, 181, 253, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.trust-card-icon i {
  width: 22px;
  height: 22px;
  color: #bae6fd;
}

.trust-card-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e9eef8;
  letter-spacing: -0.01em;
}

.trust-card-text {
  font-size: 0.85rem;
  color: rgba(233, 238, 248, 0.65);
  line-height: 1.4;
}

#pricingSection {
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(125, 211, 252, 0.14), transparent 56%),
    radial-gradient(140% 90% at 100% 100%, rgba(196, 181, 253, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.46);
}

#pricingSection .pricing-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #7dd3fc;
}

#pricingSection .pricing-title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #e0f2fe 0%, #c4b5fd 55%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#pricingSection .pricing-subtitle {
  color: rgba(233, 238, 248, 0.72);
  max-width: 720px;
}

#pricingSection .pricing-value-point {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border-color: rgba(125, 211, 252, 0.18);
}

[data-theme="light"] .trust-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
  border-color: rgba(59,130,246,0.18);
  box-shadow: 0 16px 30px rgba(15,23,42,0.08);
}

[data-theme="light"] .trust-card-icon {
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(14,165,233,0.14));
  border-color: rgba(59,130,246,0.24);
}

[data-theme="light"] .trust-card-icon i {
  color: #1e3a8a;
}

[data-theme="light"] .trust-card-label {
  color: #0f172a;
}

[data-theme="light"] .trust-card-text {
  color: #334155;
}

[data-theme="light"] #pricingSection {
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(56,189,248,0.16), transparent 56%),
    radial-gradient(140% 90% at 100% 100%, rgba(99,102,241,0.12), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border-color: rgba(59,130,246,0.22);
  box-shadow: 0 24px 54px rgba(15,23,42,0.12);
}

[data-theme="light"] #pricingSection .pricing-kicker {
  color: #0284c7;
}

[data-theme="light"] #pricingSection .pricing-title {
  background: linear-gradient(120deg, #1d4ed8 0%, #6366f1 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] #pricingSection .pricing-subtitle,
[data-theme="light"] #pricingSection .pricing-intro {
  color: #334155;
}

[data-theme="light"] #pricingSection .pricing-value-point {
  background: rgba(255,255,255,0.92);
  border-color: rgba(59,130,246,0.18);
}

[data-theme="light"] #pricingSection .pricing-value-point h4 {
  color: #0f172a;
}

[data-theme="light"] #pricingSection .pricing-value-point p {
  color: #334155;
}

@media (max-width: 760px) {
  .trust-bar-section {
    padding: 32px 12px;
    margin: 48px 0;
  }
  .trust-bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .trust-card {
    padding: 18px;
  }
}

[data-theme="light"] .pricing-value-point {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .comparison-section {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247, 251, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .comparison-section::before {
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
}

[data-theme="light"] .comparison-kicker,
[data-theme="light"] .positioning-kicker {
  color: #1d4ed8;
}

[data-theme="light"] .comparison-col {
  background: rgba(255,255,255,0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .comparison-col:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .comparison-col--scanbeyond {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08));
  border-color: rgba(37, 99, 235, 0.34);
}

[data-theme="light"] .comparison-col li {
  color: rgba(15, 23, 42, 0.74);
}

[data-theme="light"] .positioning-panel {
  background: linear-gradient(160deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.95));
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .positioning-panel::after {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0));
}

[data-theme="light"] .positioning-panel h3 {
  color: #0f172a;
}

[data-theme="light"] .positioning-panel p {
  color: rgba(15, 23, 42, 0.75);
}

[data-theme="light"] .pricing-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 251, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .pricing-cycle-toggle {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.22);
}

[data-theme="light"] .pricing-cycle-btn.active {
  color: #0f172a;
}

[data-theme="light"] .pricing-title {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .pricing-card .plan-fit {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.14);
}

@media (max-width: 768px) {
  .pricing-card .plan-description {
    min-height: 0;
  }
}

/* Login Button */
.login-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 10px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.login-button:hover {
  background: rgba(10, 132, 255, 0.2);
  border-color: rgba(10, 132, 255, 0.5);
  transform: translateY(-1px);
}

.login-button svg {
  opacity: 0.9;
}

/* Account Menu */
.account-menu {
  position: relative;
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 50%;
  color: var(--accent-2);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.account-button:hover {
  background: rgba(10, 132, 255, 0.2);
  border-color: rgba(10, 132, 255, 0.5);
  transform: translateY(-1px);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

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

.account-tier {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.account-email,
.subscription-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.tier-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge[data-tier="free"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.tier-badge[data-tier="trial"] {
  background: rgba(52, 199, 89, 0.2);
  color: var(--success);
}

.tier-badge[data-tier="basic"] {
  background: rgba(10, 132, 255, 0.2);
  color: var(--accent-2);
}

.tier-badge[data-tier="pro"] {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.3), rgba(48, 176, 255, 0.3));
  color: #ffffff;
}

.tier-badge[data-tier="enterprise"] {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.3), rgba(255, 59, 48, 0.3));
  color: #ffb84d;
}

.account-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.stat-label {
  color: var(--muted);
}

.stat-value {
  font-weight: 700;
  color: var(--text);
}

.account-scans {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-scans-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.account-scans-total {
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.recent-scans-empty {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.recent-scans-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-scan-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-scan-top,
.recent-scan-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-scan-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.recent-scan-risk {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.recent-scan-risk.low {
  background: rgba(52, 199, 89, 0.18);
  color: var(--success);
}

.recent-scan-risk.medium {
  background: rgba(255, 204, 0, 0.18);
  color: #ffd60a;
}

.recent-scan-risk.high {
  background: rgba(255, 69, 58, 0.18);
  color: var(--danger);
}

.recent-scan-preview {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}

.recent-scan-date,
.recent-scan-source {
  font-size: 11px;
  color: var(--muted);
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upgrade-btn,
.billing-btn,
.logout-btn,
.account-link-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  text-align: center;
}

.upgrade-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upgrade-btn svg {
  width: 16px;
  height: 16px;
}

.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
}

.billing-btn,
.account-link-btn,
.logout-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.billing-btn:hover,
.account-link-btn:hover,
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Auth Modal */
.auth-modal {
  max-width: 420px;
  width: 90%;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: linear-gradient(170deg, rgba(12, 20, 36, 0.96), rgba(8, 12, 22, 0.96));
  box-shadow: 0 26px 64px rgba(2, 6, 23, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-form {
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-tab {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.auth-form h3 {
  margin-bottom: 8px;
  font-size: 22px;
  color: var(--text);
}

.trial-badge {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 20px;
  background: rgba(52, 199, 89, 0.15);
  border-radius: 8px;
  color: var(--success);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trial-badge svg {
  width: 16px;
  height: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  transition: all var(--transition-fast) ease;
}

.form-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

/* Password visibility toggle */
.password-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-input-wrap input {
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  z-index: 2;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.pw-toggle .eye-icon {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.pw-toggle:hover {
  color: var(--text);
}

.pw-toggle .eye-slash-line {
  display: none;
}

.pw-toggle[aria-pressed="true"] .eye-slash-line {
  display: block;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.close-modal {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
}

.close-modal:hover {
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(125, 211, 252, 0.12);
}

[data-theme="light"] .auth-modal {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 251, 255, 0.98));
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .auth-tabs {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .form-group input {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .form-group input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

[data-theme="light"] .close-modal {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(15, 23, 42, 0.72);
}

[data-theme="light"] .close-modal:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
}

.error-message {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  color: var(--danger);
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
}

.auth-note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.auth-note a {
  color: var(--accent);
  text-decoration: none;
}

.auth-note a:hover {
  text-decoration: underline;
}

.auth-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px 0;
  margin-top: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.auth-link:hover {
  text-decoration: underline;
}

.liability-modal {
  max-width: 560px;
  width: 92%;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: linear-gradient(170deg, rgba(12, 20, 36, 0.97), rgba(8, 12, 22, 0.97));
}

.liability-modal h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.liability-copy {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

.liability-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 10px;
  color: var(--text);
  font-size: 14px;
}

.liability-check input {
  margin-top: 3px;
}

.liability-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.liability-actions .account-link-btn,
.liability-actions .primary {
  flex: 1;
  min-width: 180px;
}

[data-theme="light"] .liability-modal {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 251, 255, 0.98));
  border-color: rgba(37, 99, 235, 0.18);
}

.reset-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text);
}

.reset-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.reset-divider {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.8;
}

.reset-divider::before,
.reset-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,0.08);
}

.reset-message {
  padding: 10px 12px;
  margin: 10px 0 12px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.reset-message.success {
  border-color: rgba(52, 199, 89, 0.25);
  background: rgba(52, 199, 89, 0.12);
}

.reset-message.error {
  border-color: rgba(255, 59, 48, 0.25);
  background: rgba(255, 59, 48, 0.10);
}

/* Upgrade Modal */
.upgrade-modal {
  max-width: 1100px;
  width: 100%;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.upgrade-modal .close-modal {
  position: sticky;
  top: 0;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 19px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  margin: -8px -8px 4px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.upgrade-modal .close-modal:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}

.upgrade-modal h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
}

.upgrade-modal .pricing-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 720px) {
  .upgrade-modal {
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
    max-height: calc(100dvh - 24px);
  }
  .upgrade-modal h2 { font-size: 22px; }
  .upgrade-subtitle { margin-bottom: 18px; font-size: 14px; }
  .upgrade-modal .pricing-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .upgrade-modal .pricing-card {
    padding: 18px;
    border-radius: 14px;
  }
  .upgrade-modal .pricing-card .price-value { font-size: 26px; }
  .upgrade-modal .close-modal {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

.upgrade-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}

/* Responsive Auth Styles */
@media (max-width: 700px) {
  .login-button span {
    display: none;
  }
  
  .login-button {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  
  .account-dropdown {
    right: -10px;
    min-width: 260px;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .upgrade-modal h2 {
    font-size: 24px;
  }
}

/* =========================
   Contact Directory Search
========================= */
.directory-section {
  max-width: 980px;
  margin: 50px auto;
  width: 100%;
  padding: 0;
  scroll-margin-top: 30px;
}

.directory-container {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur));
}

.directory-section .directory-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 12px;
}

.directory-section h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.directory-card-outer {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur));
}

.directory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.directory-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.directory-title-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.directory-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.directory-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.directory-subtitle {
  color: var(--muted);
  margin-top: 6px;
}

.directory-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.directory-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
}

.directory-btn svg {
  width: 18px;
  height: 18px;
}

.directory-filters {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.directory-filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.directory-filter-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

[data-theme="light"] .directory-filter-label {
  color: rgba(15, 23, 42, 0.75);
  font-weight: 700;
}

.directory-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: rgba(147, 197, 253, 0.95);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
}

[data-theme="light"] .directory-filter-chip {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

.directory-filter-chip:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.directory-filter-chip.active {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.6);
  color: rgba(147, 197, 253, 1);
  font-weight: 600;
}

[data-theme="light"] .directory-filter-chip.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.55);
  color: #0f172a;
}

.directory-filter-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-filter-letter {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: rgba(147, 197, 253, 0.95);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
}

[data-theme="light"] .directory-filter-letter {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

.directory-filter-letter:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.directory-filter-letter.active {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.6);
  color: rgba(147, 197, 253, 1);
}

[data-theme="light"] .directory-filter-letter.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.55);
  color: #0f172a;
}

.directory-filter-letter.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.directory-search:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.directory-search > svg, .directory-search > i > svg, .directory-search > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  pointer-events: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.directory-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px 10px 40px;
  outline: none;
}

.directory-search input::placeholder {
  color: var(--muted);
}

:root[data-theme="dark"] .directory-search input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

/* Style the search clear button (x) */
.directory-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(148,163,184,0.8)" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
  background-size: 16px 16px;
  background-repeat: no-repeat;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.directory-search input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 1;
}

.directory-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.directory-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.directory-result {
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.22), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.directory-result:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 255, 0.22);
  background: linear-gradient(160deg, rgba(125, 249, 255, 0.08), rgba(96, 165, 250, 0.04));
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.28), 0 0 0 1px rgba(125, 249, 255, 0.08), inset 0 1px 0 rgba(255,255,255,0.08);
}

.directory-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.directory-name {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
  min-width: 0;
}

.directory-type {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #9cc6ff;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.directory-type-filter {
  cursor: pointer;
  transition: all 180ms ease;
}

.directory-type-filter:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.directory-type-filter:active {
  transform: translateY(0);
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.directory-meta a {
  text-decoration: none;
}

.directory-link,
.directory-support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.directory-link {
  background: linear-gradient(135deg, rgba(125,249,255,0.12), rgba(96,165,250,0.10));
  border-color: rgba(125,249,255,0.35);
  color: #818cf8;
}

.directory-support {
  background: rgba(255,255,255,0.05);
  border-color: rgba(148,163,184,0.16);
  color: rgba(226,232,240,0.92);
  word-break: break-word;
}

.directory-link:hover,
.directory-support:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 255, 0.42);
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.2), 0 0 0 1px rgba(125, 249, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}

.directory-link:hover {
  background: linear-gradient(135deg, rgba(125,249,255,0.16), rgba(96,165,250,0.14));
  color: #9cf7ff;
}

.directory-support:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.96);
}

.directory-meta a.directory-contact-locked {
  filter: blur(4px);
  opacity: 0.78;
  pointer-events: auto;
  user-select: none;
  cursor: not-allowed;
}

.directory-meta a.directory-contact-locked:hover {
  filter: blur(3px);
  opacity: 0.86;
}

.directory-description {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0.5em 0;
}

.directory-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid rgba(239, 68, 68, 0.6);
  padding: 10px 12px;
  margin: 0.5em 0;
  border-radius: 4px;
  font-size: 0.85em;
  line-height: 1.4;
  color: var(--text-primary);
}

.warning-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: rgba(239, 68, 68, 0.9);
}

.directory-warning span {
  flex: 1;
}

/* Scam tactics toggle */
.scam-tactics-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0 0 0;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  color: rgba(239, 68, 68, 0.95);
  font-size: 0.87em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.scam-tactics-toggle:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

.scam-tactics-toggle .toggle-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: rgba(239, 68, 68, 0.8);
  transition: transform 0.2s ease;
}

.scam-tactics-toggle.open .toggle-icon {
  transform: rotate(90deg);
}

.scam-tactics-content {
  margin: 0;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.03);
  border-left: 3px solid rgba(239, 68, 68, 0.3);
  border-radius: 0 0 6px 6px;
}

.scam-tactics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scam-tactics-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  color: var(--text-primary);
  font-size: 0.85em;
  line-height: 1.5;
}

.scam-tactics-list li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: rgba(239, 68, 68, 0.7);
  font-weight: bold;
}

.scam-tactics-list li:not(:last-child) {
  border-bottom: 1px solid rgba(239, 68, 68, 0.1);
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.directory-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.directory-related-services {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.directory-related-title {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.directory-service-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.directory-service-item:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.25);
}

.directory-service-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.95);
}

.directory-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pill-small {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.directory-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-related-chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  color: rgba(147, 197, 253, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.directory-tag {
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px dashed var(--glass-border);
}

/* Directory Type Sections */
.directory-type-section {
  margin-bottom: 32px;
}

.directory-type-section:last-child {
  margin-bottom: 0;
}

.directory-type-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(125, 249, 255, 0.2);
  letter-spacing: 0.02em;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  text-align: left;
}

.directory-type-heading-filter {
  cursor: pointer;
  transition: all 200ms ease;
}

.directory-type-heading-filter:hover {
  color: #818cf8;
  border-bottom-color: rgba(125, 249, 255, 0.4);
  padding-left: 8px;
}

.directory-type-heading-filter:active {
  transform: translateY(1px);
}

.directory-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.directory-result-compact {
  padding: 12px 13px;
}

.directory-result-compact .directory-name {
  font-size: 0.93rem;
  margin-bottom: 6px;
}

.directory-result-compact .directory-meta {
  margin: 5px 0;
  gap: 5px;
}

.directory-result-compact .directory-note {
  font-size: 0.85rem;
  margin-top: 6px;
}

.directory-result-compact .directory-description {
  font-size: 0.88rem;
  margin: 0.35rem 0 0.45rem;
}

.directory-result-compact .directory-type {
  padding: 5px 9px;
  font-size: 0.8rem;
}
  .inline-analysis-summary {
    font-size: 0.8rem;
  }
.directory-result-compact .directory-link,
.directory-result-compact .directory-support {
  padding: 5px 9px;
  font-size: 0.8rem;
}

.directory-result-compact .directory-tags {
  margin-top: 6px;
  gap: 5px;
}

.directory-result-compact .directory-tag {
  padding: 3px 7px;
  font-size: 0.74rem;
}

@media (min-width: 600px) {
  .directory-result-compact .directory-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    align-items: stretch;
  }

  .directory-result-compact .directory-link,
  .directory-result-compact .directory-support {
    width: 100%;
    justify-content: flex-start;
  }

  .directory-result-compact .directory-support {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .directory-section {
    margin: 30px auto;
  }
  
  .directory-container {
    padding: 18px;
  }
  
  .directory-header { flex-direction: column; align-items: flex-start; }
  .directory-title { font-size: 1.05rem; }
  
  .directory-search-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .directory-search {
    width: 100%;
    padding: 9px 10px;
  }
  
  .directory-btn {
    width: auto;
    max-width: 80vw;
    margin: 0 auto;
  }

  .directory-filters {
    padding: 12px;
  }

  .directory-filter-section {
    gap: 8px;
  }

  .directory-filter-chip {
    font-size: 0.82rem;
    padding: 7px 12px;
  }

  .directory-filter-letter {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .directory-type-grid {
    grid-template-columns: 1fr;
  }
  
  .directory-type-heading {
    font-size: 1rem;
  }
}

[data-theme="light"] .directory-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .directory-search {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="light"] .directory-result {
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(248,250,255,0.92));
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.65);
}

[data-theme="light"] .directory-result:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(239,246,255,0.95));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.09), inset 0 1px 0 rgba(255,255,255,0.75);
}

[data-theme="light"] .directory-empty {
  color: #4a5568;
}

[data-theme="light"] .directory-type {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .directory-link {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.08));
  border-color: rgba(37, 99, 235, 0.25);
  color: #1e40af;
}

[data-theme="light"] .directory-link:hover {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.12));
}

[data-theme="light"] .directory-support {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #1f2937;
}

[data-theme="light"] .directory-support:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  border-color: rgba(15, 23, 42, 0.15);
}

/* ========================= 
   Directory Button - Prominent
========================= */
.directory-cta-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0 30px;
  padding: 0 20px;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 6px;
  animation: pulse-badge 2s ease-in-out infinite;
}

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

@media (max-width: 700px) {
  .primary-cta {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .directory-cta-wrapper {
    margin: 30px 0 20px;
  }
  
  .directory-btn {
    width: 100%;
    max-width: 100%;
  }
}



[data-theme="light"] .directory-btn .badge-new {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* =========================
   Icon alignment for badges
========================= */
.lookup-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lookup-source-badge .badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.lookup-title-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

.lookup-no-match h3,
.lookup-result-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(148, 163, 184, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  will-change: opacity, visibility, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  color: rgba(147, 197, 253, 0.95);
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:active {
  transform: translateY(0) translateZ(0);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 16px;
    left: 16px;
    right: auto;
    width: 40px;
    height: 40px;
  }

/* ============================================================
   INLINE CHAT HISTORY — replaces the blank state above the form
   ============================================================ */
.inline-chat-history {
  display: none;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding: 16px 6px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.inline-chat-history:not(:empty) {
  display: flex;
  margin-bottom: 14px;
}
.inline-chat-history::-webkit-scrollbar { width: 4px; }
.inline-chat-history::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }

.inline-chat-msg {
  max-width: 84%;
  padding: 11px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(2,6,23,0.18);
  transform-origin: 50% 100%;
  animation: icMsgIn .36s cubic-bezier(.16,.84,.34,1.08) both;
  transition: transform 140ms ease, box-shadow 180ms ease;
}
@keyframes icMsgIn {
  0%   { opacity: 0; transform: translateY(10px) scale(0.97); }
  68%  { opacity: 1; transform: translateY(-2px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.inline-chat-msg.user:hover,
.inline-chat-msg.assistant:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2,6,23,0.24);
}

/* User bubble — right-aligned, accent colour */
.inline-chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(34,211,238,0.9), rgba(59,130,246,0.86));
  color: #0a0e1a;
  border-radius: 16px 16px 6px 16px;
  font-weight: 500;
}

/* Assistant bubble — left-aligned, glass dark */
.inline-chat-msg.assistant {
  align-self: flex-start;
  background: rgba(255,255,255,.07);
  color: var(--text, #e2e8f0);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px 16px 16px 16px;
}

/* Typing / loading indicator */
.inline-chat-msg.typing {
  align-self: flex-start;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px 16px 16px 16px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inline-chat-msg.typing::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  animation: icPulse 1s ease-in-out infinite;
}
@keyframes icPulse {
  0%,100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* Risk-level colour tints on the assistant bubble */
.inline-chat-msg.assistant.risk-safe     { border-color: rgba(16,185,129,.3); }
.inline-chat-msg.assistant.risk-medium   { border-color: rgba(245,158,11,.3); }
.inline-chat-msg.assistant.risk-high     { border-color: rgba(239,68,68,.3); }

/* Risk emoji prefix */
.inline-chat-msg.assistant .ic-risk-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.inline-chat-msg.assistant.risk-safe   .ic-risk-pill { background: rgba(16,185,129,.18); color: #34d399; }
.inline-chat-msg.assistant.risk-medium .ic-risk-pill { background: rgba(245,158,11,.18); color: #fbbf24; }
.inline-chat-msg.assistant.risk-high   .ic-risk-pill { background: rgba(239,68,68,.18);  color: #f87171; }

.ic-findings {
  margin-top: 7px;
  font-size: 0.82rem;
  opacity: .86;
}

/* Scroll down hint link inside assistant bubble */
.ic-scroll-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent, #22d3ee);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ic-scroll-hint:hover {
  opacity: 0.88;
}

[data-theme="light"] .inline-chat-history {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,251,255,0.92));
  border-color: rgba(37,99,235,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 10px 22px rgba(15,23,42,0.06);
}

[data-theme="light"] .inline-chat-msg.user {
  color: #f8fafc;
}

[data-theme="light"] .inline-chat-msg.assistant {
  background: rgba(255,255,255,0.95);
  border-color: rgba(37,99,235,0.16);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}

@media (max-width: 600px) {
  .inline-chat-history { max-height: 260px; }
  .inline-chat-msg { max-width: 94%; font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .inline-chat-msg {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   CARD FLIP — scan form ↔ results
   ============================================================ */
.scan-flip-card {
  perspective: 1600px;
  width: 100%;
  /* height is set dynamically by JS during flip */
}

.scan-flip-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.scan-flip-inner.flipped {
  transform: rotateY(180deg);
}

.scan-flip-face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front face — normal flow */
.scan-flip-front {
  position: relative;
}

/* Back face — absolutely positioned (rotated 180°), same width */
.scan-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: rotateY(180deg);
  overflow: hidden;
  pointer-events: none;
  /* When card is flipped, the back face becomes the rendered side */
}

/* Disable pointer events on the hidden face */
.scan-flip-inner.flipped .scan-flip-front {
  pointer-events: none;
}
.scan-flip-inner.flipped .scan-flip-back {
  pointer-events: auto;
}

/* "New Scan" back button */
.scan-flip-back-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  margin-bottom: 2px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.scan-flip-back-btn:hover,
.scan-flip-back-btn:focus-visible {
  border-color: rgba(10, 132, 255, 0.55);
  background: rgba(10, 132, 255, 0.14);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.18);
  outline: none;
}

/* Prevent layout shift — card height is managed by JS */
.scan-flip-card.flip-locked {
  overflow: hidden;
}

/* Smooth height transition when flipping */
.scan-flip-card {
  transition: height 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 760px) {
  .scan-flip-back-btn {
    padding: 8px 14px 8px 11px;
    font-size: 0.8rem;
  }
}

/* ===== CONVERSION FOCUS: Hide non-essential sections ===== */
.scam-stats-section,
#fraudHelpSection,
#directorySection,
.education-section,
.positioning-section,
.scam-warning-ticker,
#regionalScamsSection,
#scamContactReportSection,
.education-videos-section {
  display: none !important;
}

/* Trust Bar Section - Glassmorphism Cards */
.trust-bar-section {
  padding: 48px 16px;
  margin: 64px 0;
  background: transparent;
}

.trust-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.trust-card {
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 24px 48px -28px rgba(125, 211, 252, 0.45);
}

.trust-card-icon {
  font-size: 32px;
  line-height: 1;
}

.trust-card-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e9eef8;
  letter-spacing: -0.01em;
}

.trust-card-text {
  font-size: 0.85rem;
  color: rgba(233, 238, 248, 0.65);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .trust-bar-section {
    padding: 32px 12px;
    margin: 48px 0;
  }
  .trust-bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .trust-card {
    padding: 18px;
  }
  .trust-card-icon {
    width: 36px;
    height: 36px;
  }
  .trust-card-icon i {
    width: 18px;
    height: 18px;
  }
  .trust-card-label {
    font-size: 0.9rem;
  }
  .trust-card-text {
    font-size: 0.8rem;
  }
}

/* Homepage pricing refresh (features-page visual language) */
#pricingSection {
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(125, 211, 252, 0.14), transparent 56%),
    radial-gradient(140% 90% at 100% 100%, rgba(196, 181, 253, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#pricingSection .pricing-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #7dd3fc;
}

#pricingSection .pricing-title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #e0f2fe 0%, #c4b5fd 55%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#pricingSection .pricing-subtitle {
  color: rgba(233, 238, 248, 0.72);
  max-width: 720px;
}

#pricingSection .pricing-intro {
  color: rgba(233, 238, 248, 0.86);
}

#pricingSection .pricing-value-point {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border-color: rgba(125, 211, 252, 0.18);
  border-radius: 14px;
}

#pricingSection .pricing-value-point h4 {
  color: #e9eef8;
}

#pricingSection .pricing-value-point p {
  color: rgba(233, 238, 248, 0.68);
}

#pricingSection .pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.36);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#pricingSection .pricing-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 211, 252, 0.15), transparent 38%);
  opacity: 0;
  transition: opacity .25s ease;
}

#pricingSection .pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: 0 24px 44px rgba(2, 6, 23, 0.44);
}

#pricingSection .pricing-card:hover::before {
  opacity: 1;
}

#pricingSection .pricing-card.featured {
  border-color: rgba(125, 211, 252, 0.42);
  background:
    radial-gradient(420px circle at 0% 0%, rgba(125, 211, 252, 0.16), transparent 62%),
    radial-gradient(420px circle at 100% 100%, rgba(196, 181, 253, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

#pricingSection .pricing-card .price {
  color: #bae6fd;
}

#pricingSection .pricing-card .plan-fit {
  background: rgba(125, 211, 252, 0.1);
  border-color: rgba(125, 211, 252, 0.24);
}

#pricingSection .pricing-card .features li {
  color: rgba(233, 238, 248, 0.86);
}

#pricingSection .pricing-card .feature-icon {
  color: #7dd3fc;
}

#pricingSection .subscribe-btn.primary {
  background: linear-gradient(120deg, #7dd3fc, #a5b4fc);
  color: #0b1324;
  box-shadow: 0 14px 28px rgba(125, 211, 252, 0.3);
}

#pricingSection .subscribe-btn.primary:hover {
  box-shadow: 0 18px 34px rgba(125, 211, 252, 0.4);
}

@media (max-width: 768px) {
  #pricingSection {
    border-radius: 18px;
  }

  #pricingSection .pricing-value-points {
    grid-template-columns: 1fr;
  }
}

/* ===== CONVERSION FOCUS: Hide non-essential sections ===== */
.scam-stats-section,
#fraudHelpSection,
#directorySection,
.education-section,
.positioning-section,
.scam-warning-ticker,
#regionalScamsSection,
#scamContactReportSection,
.education-videos-section {
  display: none !important;
}