/* 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;
}
.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.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; }
  .primary-cta { width: 100%; justify-content: center; flex-wrap: wrap; }
  .primary-cta #scanBtn { flex: 0 1 auto; 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 {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Design tokens */
:root{
  --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: #60a5fa;
  --accent-2: #7df9ff;
  --success: #10b981;
  --danger: #f43f5e;
  --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(125, 249, 255, 0.1);
  --regional-heading: rgba(125, 249, 255, 0.95);
  --regional-card-bg: rgba(255,255,255,0.02);
  --regional-card-border: rgba(125, 249, 255, 0.15);
  --regional-title: rgba(255,255,255,0.95);
  --regional-text: rgba(255,255,255,0.6);
  --regional-badge-bg: rgba(125, 249, 255, 0.15);
  --regional-badge-text: rgba(125, 249, 255, 0.9);
  --regional-chevron: rgba(125, 249, 255, 0.5);
}

html, body {
  height: 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;
  position: relative;
  overflow-x: hidden;
}

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.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.5;
  padding: 0 16px;
  animation: subtleGlow 6s ease-in-out infinite;
}

@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(0, 0, 0, 0.5);
  animation: subtleGlowLight 6s ease-in-out infinite;
}

@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(96,165,250,0.55), rgba(96,165,250,0) 40%),
              radial-gradient(circle at 70% 20%, rgba(125,249,255,0.55), rgba(125,249,255,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(37,99,235,0.45), rgba(37,99,235,0) 38%),
              radial-gradient(circle at 75% 70%, rgba(16,185,129,0.35), rgba(16,185,129,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;
}

/* 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; }

/* 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: #60a5fa;
  --accent-2: #7df9ff;
  --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;
  --warning: #d97706;
  --shadow: 0 10px 30px rgba(15,23,42,0.08);
  --regional-border: rgba(37,99,235,0.2);
  --regional-heading: #1e40af;
  --regional-card-bg: rgba(37,99,235,0.03);
  --regional-card-border: rgba(37,99,235,0.15);
  --regional-title: #0b1324;
  --regional-text: #4b5563;
  --regional-badge-bg: rgba(37,99,235,0.1);
  --regional-badge-text: #2563eb;
  --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(37,99,235,0.25);
  border-color: rgba(37,99,235,0.25);
  color: var(--text);
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.08), 0 0 0 0 rgba(37,99,235,0.1);
}

[data-theme="light"] textarea:focus {
  border-color: rgba(37,99,235,0.7);
  box-shadow: 0 6px 18px rgba(37,99,235,0.12), inset 0 -4px 10px rgba(0,0,0,0.08), 0 0 0 3px rgba(37,99,235,0.15);
}
[data-theme="light"] button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}
[data-theme="light"] button.primary:hover {
  box-shadow: 0 8px 24px rgba(37,99,235,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.95); }
[data-theme="light"] .language-menu button { color: #0b1324; }
[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"] .summary-list li { color: var(--muted); }
[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.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
[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.65);
}

/* =========================
   LOGO
========================= */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.25rem;
  color: #ffffff;
}

.logo .orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7df9ff, #4f8cff);
  box-shadow: 0 0 10px rgba(125, 249, 255, 0.6), 0 0 20px rgba(79, 140, 255, 0.45);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Animated Scanner Logo */
.animated-scanner {
  display: block;
  width: 32px;
  height: 32px;
}

.scanner-bars {
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-scanner .bar {
  fill: #7df9ff;
  filter: drop-shadow(0 0 2px rgba(125, 249, 255, 0.6));
  animation: scan-pulse 1.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform-origin: bottom;
}

@keyframes scan-pulse {
  0%, 100% {
    opacity: 0.4;
    height: 40% !important;
  }
  50% {
    opacity: 1;
    height: 100% !important;
  }
}

/* Light theme variant */
[data-theme="light"] .animated-scanner .bar {
  fill: #2563eb;
  filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.5));
}

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

#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;
}

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

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

.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: #7df9ff;
}

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

/* =========================
   HEADLINE / TYPOGRAPHY
========================= */
.headline {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 20px;
  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;
}
@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;
  margin: 28px auto 60px;
  padding: 28px;
  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 { padding: 12px 4vw; max-width: 100vw; }
  .input-row { flex-direction: column; gap: 8px; }
  .mic-controls { align-self: flex-end; gap: 8px; }
  .education-section { padding: 0 4vw; }
}

@media (max-width: 480px) {
  .container { padding: 4vw 2vw; }
  .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; }
  .education-section { padding: 0 2vw; }
}

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

/* =========================
   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: vertical;
  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;
}

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%;
}
.input-type-badge {
  position: absolute;
  top: 12px;
  right: 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;
}
@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:10px; 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(96,165,250,0.12), rgba(125,249,255,0.03)); color: var(--accent-2); border-color: rgba(96,165,250,0.14); box-shadow: 0 6px 18px rgba(96,165,250,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;} }

@media (max-width: 480px) {
  .input-row { flex-direction: row; }
  .mic-button { height: 44px; width: 44px; }
}

/* =========================
   BUTTONS (modernized)
========================= */
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(37,99,235,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(37,99,235,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(37,99,235,0.35), 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: 10px;
  cursor: pointer;
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

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(255,255,255,0.02);
  transform: translateY(-2px);
  color: var(--text);
}

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

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

/* =========================
   QR MODAL
========================= */
.qr-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.7);
  z-index: 999;
  overflow-y: auto;
}

.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: 999;
  padding: 16px;
}

.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%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: slideUp 0.3s ease;
  position: relative;
}

[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: rgba(20,20,25,0.95);
  padding: 24px;
  border-radius: 12px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  margin-top: 0;
}

/* =========================
  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%;
  }
  
  .feedback-trigger .secondary {
    width: 100%;
  }
}

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

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

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

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

.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 var(--accent);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.scam-examples strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.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;
}

.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 28px;
  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);
}

.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 .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;
}

.scam-learn-more {
  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:hover {
  color: var(--accent-2);
  transform: translateX(4px);
}

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

.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;
}

.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-top: 24px;
  }
  .qr-box {
    width: 94%;
    max-width: 360px;
  }
}

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

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

.spinner-ring {
  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;
}

@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);
}

.analysis-message {
  margin-top: 24px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(239,68,68,0.35), rgba(244,63,94,0.3), rgba(248,113,113,0.25));
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 2.5px solid rgba(239,68,68,0.6);
  border-radius: 20px;
  box-shadow: 
    0 0 60px rgba(239,68,68,0.5),
    0 20px 60px rgba(239,68,68,0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: slideUp 400ms cubic-bezier(0.34, 1.56, 0.64, 1), 
             pulseProminence 2.5s ease-in-out infinite;
  letter-spacing: 0.6px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .analysis-message {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(239,68,68,0.5), rgba(244,63,94,0.45), rgba(248,113,113,0.4));
  border: 2.5px solid rgba(239,68,68,0.85);
  box-shadow: 
    0 0 75px rgba(239,68,68,0.7),
    0 20px 75px rgba(239,68,68,0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.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: 10px;
  margin-top: 20px;
  padding: 0;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(96,165,250,0.12), rgba(125,249,255,0.08));
  border: 1.5px solid rgba(125,249,255,0.25);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  box-shadow: 0 4px 16px rgba(96,165,250,0.15);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
}

.summary-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(96,165,250,0.25);
  border-color: rgba(125,249,255,0.4);
}

/* 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;
}

.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);
}

.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;
}

.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;
}

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

.progress {
  margin-top: 24px;
  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 {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 80px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(125, 249, 255, 0.4) 30%, 
    rgba(125, 249, 255, 0.8) 50%, 
    rgba(125, 249, 255, 0.4) 70%, 
    transparent
  );
  box-shadow: 0 0 20px rgba(125, 249, 255, 0.6);
  animation: scan 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: 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);
}

/* =========================
   RESULTS
========================= */
#result {
  margin-top: 24px;
}

.results-section.modern {
  margin-top: 36px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.verdict-card {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(2,6,23,0.18);
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-fast) ease, border var(--transition-fast) ease;
}

.risk-analysis-header {
  padding: 24px 24px 20px 24px;
  background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(125,249,255,0.05));
  border-bottom: 1px solid var(--glass-border);
}

.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(0,0,0,0.6);
}

[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;
}
.verdict-card:hover {
  box-shadow: 0 12px 40px rgba(2,6,23,0.28);
  border-color: var(--accent-2);
}

/* 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: var(--panel);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .stat-card:hover {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .stat-card:hover {
  background: rgba(0,0,0,0.03);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(125,249,255,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

[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(0,0,0,0.65);
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1px;
}

[data-theme="light"] .stat-value {
  color: rgba(0,0,0,0.85);
}

.stat-value.risk-value {
  color: #ef4444;
  font-size: 1.1rem;
}

/* Verdict Meter Card */
.verdict-meter-card {
  padding: 20px 24px 24px 24px;
  background: var(--panel);
}

/* Meter header (removed for cleaner UI) */
.meter-header {
  display: none;
}

.meter-icon {
  display: none;
}

.meter-title {
  display: none;
}

/* 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: #7df9ff;
  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: #7df9ff;
}

.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: 10px 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.risk-bar {
  flex: 1;
  height: 12px;
  background: linear-gradient(90deg, #34d399, #f59e0b, #f43f5e);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  position: relative;
}
#riskBarFill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #34d399, #f59e0b, #f43f5e);
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(.2,.9,.2,1), background 0.3s ease;
}
.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 {
  flex: 1;
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.risk-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #34d399, #f59e0b, #f43f5e);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(244,63,94,0.35);
  transition: width 0.4s ease;
}
.risk-bar span.low { box-shadow: 0 4px 14px rgba(52,211,153,0.35); background: linear-gradient(90deg, #22c55e, #34d399); }
.risk-bar span.medium { box-shadow: 0 4px 14px rgba(245,158,11,0.35); background: linear-gradient(90deg, #f59e0b, #f97316); }
.risk-bar span.high { box-shadow: 0 4px 14px rgba(244,63,94,0.35); background: linear-gradient(90deg, #f43f5e, #ef4444); }

.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;
}

.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;
}
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 16px;
  backdrop-filter: blur(var(--glass-blur));
  animation: slideUp 300ms ease;
}

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

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

.edu-message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.edu-message-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.edu-message-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(16, 185, 129, 0.95);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(125, 249, 255, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .edu-message-title {
  color: rgba(5,150,105,0.9);
  background: none;
  -webkit-text-fill-color: unset;
}

.edu-message-content {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

[data-theme="light"] .edu-message-content {
  color: rgba(0,0,0,0.8);
}

[data-theme="light"] .edu-message-content strong {
  color: rgba(0,0,0,0.95);
}

.edu-message-content strong {
  color: rgba(255, 255, 255, 0.95);
}

.edu-message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  color: rgba(16, 185, 129, 0.95);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  text-decoration: none;
}

.edu-link:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.edu-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.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: 18px 22px 18px 22px;
  color: var(--text);
  font-size: 1.01rem;
  line-height: 1.6;
}

.details-content .card {
  margin-bottom: 14px;
}

.details-content .card:last-child {
  margin-bottom: 0;
}

.details-content .details-brief {
  margin-bottom: 18px;
  line-height: 1.7;
}

.feedback-trigger {
  text-align: center;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.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); }
#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; padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
  .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: 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #1e293b; /* slightly dark modal button */
  color: #fff;
  transition: all 0.2s ease;
}

[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-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-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%;
  }
}

/* ==========================
   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;
}

/* 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;
  }
}

/* =========================
   AUTH/ACCOUNT/PRICING STYLES
========================= */

/* Pricing Section */
.pricing-section {
  margin-top: 26px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricing-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.pricing-title {
  margin: 0;
  font-size: 20px;
}

.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;
}

@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.12), rgba(48, 176, 255, 0.08));
  border: 2px solid var(--accent);
}

.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);
}

.pricing-card .price {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-2);
}

.pricing-card .price span {
  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;
}

.pricing-card .features li:first-child {
  padding-top: 0;
}

.subscribe-btn {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  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: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #ffffff;
}

.subscribe-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.4);
}

/* 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);
}

.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;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upgrade-btn,
.billing-btn,
.logout-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;
}

.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
}

.billing-btn,
.logout-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.billing-btn:hover,
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Auth Modal */
.auth-modal {
  max-width: 420px;
  width: 90%;
}

.auth-form {
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.auth-tab.active {
  background: var(--accent);
  color: #ffffff;
}

.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;
}

.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.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.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;
}

.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: 1000px;
  width: 95%;
}

.upgrade-modal h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
}

.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;
  }
}