/* ============================================================ */
/*  Reveal Scanner — Aurora theme                                 */
/* ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Surfaces */
  --bg-base:           #06070D;
  --bg-base-2:         #0A0B14;
  --bg-surface:        #11131D;
  --bg-surface-2:      #181B28;
  --bg-surface-hover:  #1E2030;
  --bg-input:          #0C0E17;

  /* Borders */
  --border:            rgba(255, 255, 255, 0.06);
  --border-strong:     rgba(255, 255, 255, 0.12);
  --border-accent:     rgba(139, 92, 246, 0.40);

  /* Accent — violet → pink */
  --accent:            #8B5CF6;
  --accent-bright:     #A78BFA;
  --accent-pink:       #EC4899;
  --accent-cyan:       #22D3EE;
  --accent-glow:       rgba(139, 92, 246, 0.45);

  /* Text */
  --text:              #F0F2FA;
  --text-bright:       #FFFFFF;
  --text-secondary:    #9498A8;
  --text-muted:        #5F6376;

  /* Status */
  --success:           #10B981;
  --warn:              #F59E0B;
  --error:             #F43F5E;

  /* Shadows + effects */
  --shadow-sm:         0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md:         0 8px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg:         0 24px 72px rgba(0, 0, 0, 0.55);
  --shadow-glow:       0 0 48px rgba(139, 92, 246, 0.25);

  /* Gradients */
  --grad-accent:       linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --grad-accent-soft:  linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.10) 100%);
  --grad-text:         linear-gradient(135deg, #FFFFFF 0%, #C7CADC 100%);
  --grad-text-vivid:   linear-gradient(135deg, #A78BFA 0%, #F472B6 50%, #22D3EE 100%);
  --grad-card:         linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 8% -10%, rgba(139, 92, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 15%, rgba(236, 72, 153, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(34, 211, 238, 0.05), transparent 55%),
    var(--bg-base);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  z-index: 0;
}

a { color: var(--accent-bright); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text); }

::selection { background: rgba(139, 92, 246, 0.30); color: var(--text-bright); }

/* Headlines use Space Grotesk for that technical-modern feel */
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; }

/* ============================================================ */
/* Legacy container (login/redeem)                                */
/* ============================================================ */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  position: relative;
  z-index: 1;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}
header.brand .dot {
  width: 20px; height: 20px;
  background: var(--grad-accent);
  border-radius: 6px;
  box-shadow: 0 0 24px var(--accent-glow);
}
header.brand span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
}

h1.display {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.lede {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 12px;
  max-width: 620px;
}

.card {
  background: var(--bg-surface);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.3px; }
.card p.muted { color: var(--text-secondary); font-size: 14px; line-height: 1.65; margin: 0 0 18px; }

.eyebrow {
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

button.primary, button.secondary {
  font: inherit;
  border: 0;
  border-radius: 11px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s, border-color 0.15s;
}
button.primary {
  background: var(--grad-accent);
  color: white;
  box-shadow: 0 6px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
button.primary:active { transform: translateY(0); }

button.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
}
button.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}

.codeblock {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: "JetBrains Mono", "Cascadia Mono", monospace;
  font-size: 13.5px;
  color: var(--text);
  user-select: all;
  word-break: break-all;
  margin-top: 12px;
  position: relative;
}
.codeblock .copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  padding: 5px 12px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.codeblock .copy-btn:hover { color: var(--text); border-color: var(--border-strong); }

footer.copyright {
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.error { color: var(--error); }
.muted { color: var(--text-secondary); }

/* ============================================================ */
/* PANEL LAYOUT — sidebar + main                                  */
/* ============================================================ */

.shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: 244px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10, 11, 20, 0.88), rgba(6, 7, 13, 0.94));
  border-right: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.sidebar .brand-card:hover { border-color: var(--border-strong); }
.sidebar .brand-card .logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-accent);
  box-shadow: 0 0 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sidebar .brand-card span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar .section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 10px 14px 8px;
  margin-top: 16px;
}
.sidebar .section-label:first-of-type { margin-top: 0; }

.sidebar a.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.sidebar a.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.sidebar a.nav-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.04));
  color: var(--text);
  font-weight: 500;
}
.sidebar a.nav-item.active::before {
  content: "";
  position: absolute;
  left: -2px; top: 9px; bottom: 9px;
  width: 3px;
  background: var(--grad-accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.7);
}
.sidebar a.nav-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.sidebar .user-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sidebar .user-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar .user-card img {
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border);
}
.sidebar .user-card .name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar .user-card .menu-dots {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
}

/* Main area */
.main {
  flex: 1;
  padding: 44px 56px 88px;
  min-width: 0;
  max-width: 1480px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.page-head h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.9px;
  margin: 0 0 10px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.page-head .subtitle {
  color: var(--text-secondary);
  font-size: 15.5px;
}
.page-head .head-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--grad-accent);
  color: white;
  box-shadow: 0 6px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: white;
  box-shadow: 0 10px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}
.btn svg { width: 14px; height: 14px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-surface);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-accent-soft);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.stat-card:hover::after { opacity: 1; }
.stat-card > * { position: relative; z-index: 1; }
.stat-card .stat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat-card .stat-icon svg { width: 26px; height: 26px; }
.stat-card .stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

.hero-card {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(236, 72, 153, 0.12), transparent 60%),
    var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 36px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent 78%);
  pointer-events: none;
}
.hero-card .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hero-card .hero-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent);
  transform: scale(1.04);
  box-shadow: 0 0 32px var(--accent-glow);
}
.hero-card .hero-headline {
  margin-top: 36px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -2.5px;
  background: var(--grad-text-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
  line-height: 1.05;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 14px 0 20px;
  letter-spacing: -0.3px;
}
.data-table {
  background: var(--bg-surface);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table .row-head, .data-table .row-cell {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 24px;
  font-size: 13.5px;
}
.data-table .row-head {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.data-table .row-cell {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.data-table .row-cell:last-child { border-bottom: 0; }
.data-table .row-cell:hover { background: rgba(255, 255, 255, 0.025); }
.data-table .badge-used {
  color: var(--success);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.data-table .badge-pending {
  color: var(--warn);
  font-size: 12.5px;
}
.data-table .empty {
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.data-table .game-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-bright);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.tabs a {
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.panel-card {
  background: var(--bg-surface);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s;
}
.panel-card:hover { border-color: rgba(255, 255, 255, 0.10); }
.panel-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.panel-card .panel-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

.input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 16px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-base-2);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.input::placeholder { color: var(--text-muted); }

.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  font-family: inherit;
}
.game-chip:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.09);
  transform: translateY(-1px);
}
.game-chip svg { width: 18px; height: 18px; color: var(--accent-bright); }

@media (max-width: 820px) {
  .sidebar { width: 64px; padding: 14px 8px; }
  .sidebar .brand-card span,
  .sidebar .section-label,
  .sidebar a.nav-item span,
  .sidebar .user-card .name,
  .sidebar .user-card .menu-dots { display: none; }
  .sidebar a.nav-item { justify-content: center; padding: 11px; }
  .main { padding: 28px 22px 60px; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* RESULTS PAGE — session.html                                    */
/* ============================================================ */

.breadcrumb {
  font-size: 15px;
  color: var(--accent-bright);
  margin-bottom: 6px;
  font-weight: 500;
}
.breadcrumb a { color: var(--accent-bright); }
.breadcrumb span.crumb-sep { color: var(--text-muted); margin: 0 10px; }
.breadcrumb b { color: var(--text); font-weight: 600; }
.pin-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--text-muted);
}
.pin-badge .pin-id {
  color: var(--accent-bright);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Verdict hero — replaces old "score" cards on top of session.html */
.verdict-hero {
  background: var(--bg-surface);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.verdict-hero.red {
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(244, 63, 94, 0.18), transparent 55%),
    var(--bg-surface);
  border-color: rgba(244, 63, 94, 0.28);
}
.verdict-hero.yellow {
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(245, 158, 11, 0.16), transparent 55%),
    var(--bg-surface);
  border-color: rgba(245, 158, 11, 0.28);
}
.verdict-hero.green {
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(16, 185, 129, 0.16), transparent 55%),
    var(--bg-surface);
  border-color: rgba(16, 185, 129, 0.28);
}
.verdict-hero.gray {
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(148, 152, 168, 0.10), transparent 55%),
    var(--bg-surface);
}
.verdict-hero .verdict-icon {
  width: 80px; height: 80px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.verdict-hero.red .verdict-icon    { background: rgba(244, 63, 94, 0.18);  color: var(--error); }
.verdict-hero.yellow .verdict-icon { background: rgba(245, 158, 11, 0.18); color: var(--warn); }
.verdict-hero.green .verdict-icon  { background: rgba(16, 185, 129, 0.18); color: var(--success); }
.verdict-hero.gray .verdict-icon   { background: rgba(148, 152, 168, 0.12);color: var(--text-secondary); }
.verdict-hero .verdict-icon svg { width: 40px; height: 40px; }
.verdict-hero .verdict-body { flex: 1; min-width: 0; }
.verdict-hero .verdict-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.verdict-hero h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.7px;
  line-height: 1.15;
}
.verdict-hero.red h2    { color: var(--error); }
.verdict-hero.yellow h2 { color: var(--warn); }
.verdict-hero.green h2  { color: var(--success); }
.verdict-hero.gray h2   { color: var(--text); }
.verdict-hero p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; max-width: 720px; }

/* Severity-tinted stat cards */
.stat-card.severity-red .stat-icon    { background: rgba(244, 63, 94, 0.13); color: var(--error); }
.stat-card.severity-yellow .stat-icon { background: rgba(245, 158, 11, 0.13); color: var(--warn); }
.stat-card.severity-orange .stat-icon { background: rgba(255, 150, 80, 0.13); color: #FF9650; }
.stat-card.severity-green .stat-icon  { background: rgba(16, 185, 129, 0.13); color: var(--success); }

.results-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
@media (max-width: 1080px) { .results-grid { grid-template-columns: 1fr; } }

.summary-card .summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.summary-card .summary-head .summary-title { display: flex; align-items: center; gap: 16px; }
.summary-card .summary-head .summary-title .ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.13);
  display: flex; align-items: center; justify-content: center;
  color: var(--error);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.summary-card .summary-head .summary-title .ico svg { width: 24px; height: 24px; }
.summary-card .summary-head .summary-title h3 {
  margin: 0; font-size: 21px;
  letter-spacing: -0.4px;
}
.summary-card .summary-head .summary-title .sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.summary-card .summary-head .summary-filters { display: flex; gap: 8px; }
.summary-card .summary-head .summary-filters button {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.summary-card .summary-head .summary-filters button:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.summary-card .summary-head .summary-filters button.active.red    { color: var(--error);   border-color: var(--error);   background: rgba(244, 63, 94, 0.08); }
.summary-card .summary-head .summary-filters button.active.yellow { color: var(--warn);    border-color: var(--warn);    background: rgba(245, 158, 11, 0.08); }
.summary-card .summary-head .summary-filters button.active.orange { color: #FF9650;        border-color: #FF9650;        background: rgba(255, 150, 80, 0.08); }
.summary-card .summary-head .summary-filters button svg { width: 16px; height: 16px; }

.finding-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.finding-row:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.finding-row.expanded {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}
.finding-row .f-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.finding-row .f-ico.red    { background: rgba(244, 63, 94, 0.16);  color: var(--error); }
.finding-row .f-ico.yellow { background: rgba(245, 158, 11, 0.16); color: var(--warn); }
.finding-row .f-ico.orange { background: rgba(255, 150, 80, 0.16); color: #FF9650; }
.finding-row .f-ico svg { width: 20px; height: 20px; }
.finding-row .f-body { flex: 1; min-width: 0; }
.finding-row .f-title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.15px;
}
.finding-row .f-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.finding-row .f-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 0.4px;
  font-family: "JetBrains Mono", monospace;
}
.finding-row .f-badge.red    { background: rgba(244, 63, 94, 0.13);  color: var(--error);   border: 1px solid rgba(244, 63, 94, 0.32); }
.finding-row .f-badge.yellow { background: rgba(245, 158, 11, 0.13); color: var(--warn);    border: 1px solid rgba(245, 158, 11, 0.32); }
.finding-row .f-badge.orange { background: rgba(255, 150, 80, 0.13); color: #FF9650;        border: 1px solid rgba(255, 150, 80, 0.32); }
.finding-row .f-chev { color: var(--text-muted); transition: transform 0.2s; }
.finding-row.expanded .f-chev { transform: rotate(90deg); }

/* Expanded panel underneath each finding row */
.finding-detail {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-base-2);
  margin: -8px 0 14px;
  padding: 22px;
  overflow: hidden;
}
.finding-detail .d-head {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--accent-bright);
  margin-bottom: 8px;
}
.finding-detail .d-explain {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.finding-detail .d-location {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
  margin-bottom: 18px;
}
.finding-detail .steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.finding-detail .step {
  display: flex; gap: 14px;
  align-items: flex-start;
}
.finding-detail .step-num {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-accent);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
}
.finding-detail .step-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  padding-top: 3px;
}
.finding-detail .step-text code {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--accent-bright);
}

/* System info grid */
.info-grid { display: flex; flex-direction: column; gap: 12px; }
.info-grid .info-row {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 14px;
  transition: border-color 0.15s;
}
.info-grid .info-row:hover { border-color: var(--border-strong); }
.info-grid .info-row .k { color: var(--text-muted); margin-right: 10px; }
.info-grid .info-row .v { color: var(--text); font-weight: 500; }

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
@media (max-width: 1080px) { .feature-row { grid-template-columns: 1fr; } }
.feature-card .feature-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.feature-card .feature-head .ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.13);
  color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.feature-card .feature-head .ico svg { width: 26px; height: 26px; }
.feature-card .feature-head h3 { font-size: 18px; margin: 0; }
.feature-card .feature-head .sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}
.status-pill.warn   { background: rgba(245, 158, 11, 0.10); color: var(--warn);    border-color: rgba(245, 158, 11, 0.32); }
.status-pill.good   { background: rgba(16, 185, 129, 0.10); color: var(--success); border-color: rgba(16, 185, 129, 0.32); }
.status-pill.danger { background: rgba(244, 63, 94, 0.10);  color: var(--error);   border-color: rgba(244, 63, 94, 0.32); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* Waiting */
.waiting-banner {
  background: var(--bg-surface);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.waiting-banner .ico {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: rgba(139, 92, 246, 0.13);
  color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.waiting-banner .ico svg { width: 34px; height: 34px; }
.waiting-banner h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.waiting-banner p { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 24px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
  50%       { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
}
.codeblock-mini {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 20px;
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
}
