/* ============================================================
   Digital Shadow — style.css
   Production-grade cybersecurity privacy dashboard
   Palette: Jet Black (#050505) · Royal Amethyst (#3B0A6B) · Electric Cyan (#00E5FF)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* User-defined core color scheme */
  --clr-jet-black:     #050505;
  --clr-royal-amethyst:#3b0a6b;
  --clr-electric-cyan: #00e5ff;

  /* Palette surfaces based on Jet Black with Royal Amethyst undertone */
  --clr-bg:           #050505;
  --clr-surface:      #0c0814;
  --clr-surface-2:    #130c1f;
  --clr-surface-3:    #1a102b;
  --clr-surface-4:    #231538;
  --clr-border:       rgba(94, 22, 166, 0.24);
  --clr-border-hover: rgba(0, 229, 255, 0.42);
  --clr-border-strong:rgba(138, 43, 226, 0.45);

  /* Accents */
  --clr-cyan:         #00e5ff;
  --clr-cyan-dim:     rgba(0, 229, 255, 0.12);
  --clr-cyan-glow:    rgba(0, 229, 255, 0.28);
  --clr-cyan-bright:  #38eeff;

  --clr-amethyst:       #3b0a6b;
  --clr-amethyst-light: #5e16a6;
  --clr-amethyst-bright:#8a2be2;
  --clr-amethyst-dim:   rgba(59, 10, 107, 0.25);
  --clr-amethyst-glow:  rgba(94, 22, 166, 0.35);

  /* Blue-removal aliases mapped to Royal Amethyst to eliminate any residual blue */
  --clr-blue:         #5e16a6;
  --clr-blue-dim:     rgba(94, 22, 166, 0.18);
  --clr-blue-glow:    rgba(94, 22, 166, 0.30);
  --clr-purple:       #8a2be2;
  --clr-purple-dim:   rgba(138, 43, 226, 0.18);
  --clr-indigo:       #4a0e87;

  /* Severity */
  --sev-low:          #22c55e;
  --sev-low-dim:      rgba(34, 197, 94, 0.12);
  --sev-medium:       #f59e0b;
  --sev-medium-dim:   rgba(245, 158, 11, 0.12);
  --sev-high:         #f97316;
  --sev-high-dim:     rgba(249, 115, 22, 0.12);
  --sev-critical:     #ef4444;
  --sev-critical-dim: rgba(239, 68, 68, 0.12);

  /* Text */
  --txt-primary:   #f5f3f8;
  --txt-secondary: #a89cb8;
  --txt-muted:     #6b5c82;
  --txt-code:      #00e5ff;
  --txt-inverse:   #050505;

  /* Spacing & geometry */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --gap:       24px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:  140ms;
  --dur-std:   240ms;
  --dur-slow:  480ms;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.85), 0 4px 12px rgba(0,0,0,0.6);
  --shadow-cyan: 0 0 24px rgba(0, 229, 255, 0.28);
  --shadow-amethyst: 0 0 24px rgba(59, 10, 107, 0.45);
  --shadow-blue: 0 0 24px rgba(94, 22, 166, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--txt-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 900px 700px at 75% -5%, rgba(0, 229, 255, 0.045) 0%, transparent 65%),
    radial-gradient(ellipse 800px 600px at 8%  28%, rgba(59, 10, 107, 0.28)  0%, transparent 60%),
    radial-gradient(ellipse 650px 500px at 55%  75%, rgba(94, 22, 166, 0.15) 0%, transparent 55%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--clr-cyan);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--clr-cyan-bright); }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-cyan); }

/* ── Focus visibility (keyboard accessibility) ───────────────── */
:focus-visible {
  outline: 2px solid var(--clr-cyan);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  height: 64px;
  background: rgba(5, 5, 5, 0.90);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--txt-primary);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav-brand:hover { opacity: 0.88; color: var(--txt-primary); }

.nav-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-amethyst) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--txt-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.01em;
}
.nav-link:hover {
  color: var(--txt-primary);
  background: var(--clr-surface-2);
}
.nav-link.active {
  color: var(--clr-cyan);
  background: var(--clr-cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.22);
}

/* ── Hamburger button (hidden on desktop) ───────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.nav-hamburger:hover,
.nav-hamburger:focus-visible {
  background: var(--clr-surface-3);
  border-color: var(--clr-border-strong);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--txt-primary);
  border-radius: 2px;
  transition: transform var(--dur-std) var(--ease), opacity var(--dur-fast) var(--ease);
}

/* ── Footer brand link ──────────────────────────────────────── */
.footer-brand a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.footer-brand a:hover { color: var(--clr-cyan); }

/* nav-badge utility */
.nav-badge {
  background: linear-gradient(90deg, var(--clr-cyan), var(--clr-amethyst-bright));
  color: var(--txt-inverse);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Layout containers ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap);
}
.page-section { padding: 64px 0; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px var(--gap) 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 500px 300px at 50% 30%, rgba(59, 10, 107, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  background: var(--clr-cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.22);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--txt-primary);
  margin-bottom: 24px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--clr-cyan) 0%, #a855f7 50%, var(--clr-amethyst-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--txt-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--clr-cyan);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--clr-border-strong);
}

/* ── Consent / notice box ────────────────────────────────────── */
.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(59, 10, 107, 0.20));
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--txt-secondary);
  line-height: 1.6;
}
.consent-box strong { color: var(--txt-primary); }
.consent-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: border-color var(--dur-std) var(--ease), box-shadow var(--dur-std) var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.012) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}
.card:hover {
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-md);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Section headings ────────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--txt-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--txt-secondary);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Form elements ───────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt-primary);
  letter-spacing: 0.01em;
}

.label-optional {
  font-weight: 400;
  color: var(--txt-muted);
  font-size: 0.8rem;
}

.form-input,
.form-textarea {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--txt-primary);
  font-size: 0.9rem;
  padding: 10px 14px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  outline: none;
  line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--txt-muted); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--clr-cyan);
  background: var(--clr-surface-3);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15), 0 0 16px rgba(59, 10, 107, 0.35);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-hint {
  font-size: 0.8rem;
  color: var(--txt-muted);
  line-height: 1.5;
}

.form-error {
  font-size: 0.8rem;
  color: var(--sev-critical);
  font-weight: 500;
  min-height: 1em;
  display: block;
}

/* ── URL input rows ──────────────────────────────────────────── */
.url-list-container { display: flex; flex-direction: column; gap: 8px; }

.url-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.url-row .form-input { flex: 1; }

.btn-remove-url {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(239,68,68,0.08);
  color: var(--sev-critical);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
  border: 1px solid rgba(239,68,68,0.15);
}
.btn-remove-url:hover { background: rgba(239,68,68,0.18); }

.url-add-btn {
  background: transparent;
  border: 1px dashed var(--clr-border-strong);
  color: var(--clr-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.01em;
}
.url-add-btn:hover {
  background: var(--clr-cyan-dim);
  border-color: var(--clr-cyan);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-amethyst-light) 65%, var(--clr-amethyst) 100%);
  color: #050505;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.28), 0 0 20px rgba(59, 10, 107, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.38), 0 0 22px rgba(94, 22, 166, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--clr-surface-2);
  color: var(--txt-primary);
  border-color: var(--clr-border-strong);
}
.btn-secondary:hover {
  background: var(--clr-surface-3);
  border-color: var(--clr-border-hover);
  color: var(--clr-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--txt-muted);
  border-color: var(--clr-border);
}
.btn-ghost:hover {
  background: var(--clr-surface-2);
  color: var(--txt-primary);
  border-color: var(--clr-border-strong);
}

.btn-danger {
  background: rgba(239,68,68,0.08);
  color: var(--sev-critical);
  border-color: rgba(239,68,68,0.20);
}
.btn-danger:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.40);
}

.btn-lg { padding: 12px 28px; font-size: 0.95rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── File drop zone ──────────────────────────────────────────── */
.file-drop-zone {
  border: 2px dashed var(--clr-border-strong);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-std) var(--ease);
  position: relative;
  background: var(--clr-surface-2);
}
.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--clr-cyan);
  background: var(--clr-cyan-dim);
  box-shadow: inset 0 0 0 1px rgba(0,212,255,0.15);
}
.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-icon { font-size: 2.2rem; margin-bottom: 12px; }
.file-drop-text { font-weight: 600; color: var(--txt-primary); font-size: 0.95rem; }
.file-drop-subtext { font-size: 0.8rem; color: var(--txt-muted); margin-top: 6px; }
.file-selected-name {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--clr-cyan);
  word-break: break-all;
}

/* ── Loader overlay ──────────────────────────────────────────── */
.loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(8px);
  z-index: 900;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.loader-overlay.visible { display: flex; }

.loader-ring {
  width: 56px;
  height: 56px;
  border: 3px solid var(--clr-surface-3);
  border-top-color: var(--clr-cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-size: 0.95rem;
  color: var(--txt-secondary);
  font-weight: 500;
}

/* ── Demo banner ─────────────────────────────────────────────── */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(249,115,22,0.06));
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--sev-medium);
  margin-bottom: 20px;
  font-weight: 500;
}

/* ── Summary pills ───────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.summary-pill {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: border-color var(--dur-std) var(--ease), box-shadow var(--dur-std) var(--ease);
}
.summary-pill:hover {
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-sm);
}

.summary-pill-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  display: block;
  color: var(--txt-primary);
}

.summary-pill-label {
  font-size: 0.7rem;
  color: var(--txt-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}

/* ── Score gauge ─────────────────────────────────────────────── */
.score-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.score-gauge-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.score-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-gauge-track {
  fill: none;
  stroke: var(--clr-surface-3);
  stroke-width: 10;
}

.score-gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease-out), stroke 0.5s var(--ease);
  filter: drop-shadow(0 0 6px currentColor);
}

.score-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  color: var(--txt-primary);
}

.score-max {
  font-size: 0.85rem;
  color: var(--txt-muted);
  font-weight: 500;
}

.score-info { display: flex; flex-direction: column; gap: 16px; }

.score-category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 99px;
  width: fit-content;
  letter-spacing: 0.04em;
}

.score-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.score-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--txt-secondary);
}

.score-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.score-disclaimer {
  font-size: 0.78rem;
  color: var(--txt-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ── Charts ──────────────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chart-wrap {
  position: relative;
  height: 200px;
  margin-top: 12px;
}

/* ── Findings ────────────────────────────────────────────────── */
.findings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.findings-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--txt-muted);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.02em;
}
.filter-btn:hover { color: var(--txt-primary); background: var(--clr-surface-3); }
.filter-btn.active { color: var(--txt-primary); background: var(--clr-surface-3); border-color: var(--clr-border-strong); }
.filter-btn.f-critical.active { color: var(--sev-critical); border-color: rgba(239,68,68,0.4); background: var(--sev-critical-dim); }
.filter-btn.f-high.active    { color: var(--sev-high);     border-color: rgba(249,115,22,0.4); background: var(--sev-high-dim); }
.filter-btn.f-medium.active  { color: var(--sev-medium);   border-color: rgba(245,158,11,0.4); background: var(--sev-medium-dim); }
.filter-btn.f-low.active     { color: var(--sev-low);      border-color: rgba(34,197,94,0.4);  background: var(--sev-low-dim); }

.findings-list { display: flex; flex-direction: column; gap: 10px; }

.finding-item {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  animation: fadeSlideIn 0.3s var(--ease-out) both;
}
.finding-item:hover {
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-sm);
}

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

.finding-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.finding-title {
  font-weight: 600;
  color: var(--txt-primary);
  font-size: 0.92rem;
  flex: 1;
  min-width: 0;
}

.finding-evidence {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  color: var(--txt-code);
  word-break: break-all;
  margin-bottom: 10px;
  line-height: 1.5;
}

.finding-detail {
  font-size: 0.83rem;
  color: var(--txt-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.finding-mitigation {
  font-size: 0.82rem;
  color: var(--sev-low);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 2px solid rgba(34,197,94,0.3);
  margin-top: 8px;
}

/* ── Severity badges ─────────────────────────────────────────── */
.sev-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sev-low      { background: var(--sev-low-dim);      color: var(--sev-low);      border-color: rgba(34,197,94,0.22); }
.sev-medium   { background: var(--sev-medium-dim);   color: var(--sev-medium);   border-color: rgba(245,158,11,0.22); }
.sev-high     { background: var(--sev-high-dim);     color: var(--sev-high);     border-color: rgba(249,115,22,0.22); }
.sev-critical { background: var(--sev-critical-dim); color: var(--sev-critical); border-color: rgba(239,68,68,0.22); }

/* ── Recommendations ─────────────────────────────────────────── */
.recommendations-list { display: flex; flex-direction: column; gap: 10px; }

.rec-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  animation: fadeSlideIn 0.3s var(--ease-out) both;
  transition: border-color var(--dur-fast) var(--ease);
}
.rec-item:hover { border-color: var(--clr-border-hover); }

.rec-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.rec-content { flex: 1; min-width: 0; }

.rec-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--txt-primary);
  margin-bottom: 4px;
}

.rec-action {
  font-size: 0.82rem;
  color: var(--txt-secondary);
  line-height: 1.55;
}

/* ── Toast notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100vw - 48px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.28s var(--ease-out) both;
  color: var(--txt-primary);
}
.toast.toast-success { border-color: rgba(34,197,94,0.3); }
.toast.toast-error   { border-color: rgba(239,68,68,0.3); }
.toast.toast-warning { border-color: rgba(245,158,11,0.3); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Limitations section ─────────────────────────────────────── */
.limitation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.limitation-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--txt-secondary);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  line-height: 1.6;
  transition: border-color var(--dur-fast) var(--ease);
}
.limitation-item:hover { border-color: var(--clr-border-strong); }
.limitation-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; color: var(--sev-medium); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 28px var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--txt-muted);
  background: rgba(5, 5, 5, 0.75);
  margin-top: 64px;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--txt-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  color: var(--txt-muted);
  font-size: 0.82rem;
  transition: color var(--dur-fast) var(--ease);
}
.footer-link:hover { color: var(--clr-cyan); }

/* ── About page ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.about-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color var(--dur-std) var(--ease), box-shadow var(--dur-std) var(--ease), transform var(--dur-std) var(--ease);
}
.about-card:hover {
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.about-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.about-card-text {
  font-size: 0.875rem;
  color: var(--txt-secondary);
  line-height: 1.7;
}

/* ── Report page ─────────────────────────────────────────────── */
.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.report-meta-item {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.report-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.report-meta-value {
  font-size: 0.88rem;
  color: var(--txt-primary);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* ── 404 page ────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 64px 24px;
}

.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--clr-cyan), #a855f7, var(--clr-amethyst));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--txt-primary);
  margin-bottom: 12px;
}

.error-message {
  font-size: 1rem;
  color: var(--txt-secondary);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
    padding: 8px 0 12px;
    z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-link {
    padding: 13px 24px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--clr-border);
  }
  .nav-link:last-child { border-bottom: none; }

  .hero { padding: 64px var(--gap) 48px; }
  .score-panel { grid-template-columns: 1fr; text-align: center; }
  .score-gauge-wrap { margin: 0 auto; }
  .score-stats { justify-content: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-stat-divider { display: none; }
  .page-section { padding: 44px 0; }
  .findings-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .card { padding: 18px 20px; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; text-align: center; justify-content: center; }
  .hero { padding: 48px 16px 40px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .summary-pill { padding: 14px 10px; }
  .summary-pill-value { font-size: 1.6rem; }
  .btn-lg { padding: 11px 20px; font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .card { padding: 14px 14px; }
  .nav { padding: 0 14px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-cyan     { color: var(--clr-cyan); }
.text-muted    { color: var(--txt-muted); }
.text-dim      { color: var(--txt-secondary); }
.text-success  { color: var(--sev-low); }
.text-danger   { color: var(--sev-critical); }
.mono          { font-family: var(--font-mono); }
.hidden        { display: none !important; }
.mt-8          { margin-top: 8px; }
.mt-16         { margin-top: 16px; }
.mt-24         { margin-top: 24px; }
.mb-8          { margin-bottom: 8px; }
.mb-16         { margin-bottom: 16px; }
.gap-section   { margin-top: 48px; }
.w-full        { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Print styles ────────────────────────────────────────────── */
@media print {
  .nav, .footer, .btn-group, .loader-overlay,
  .toast-container, .nav-hamburger { display: none !important; }
  body { background: #fff; color: #111; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}

/* ── Login / Authentication Page ────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px - 85px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gap);
  position: relative;
}

.auth-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 10, 107, 0.45) 0%, rgba(0, 229, 255, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.auth-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(59, 10, 107, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-amethyst) 0%, var(--clr-cyan) 50%, var(--clr-amethyst-bright) 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-shield-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--clr-amethyst) 0%, var(--clr-surface-2) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), 0 0 30px rgba(59, 10, 107, 0.4);
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  background: var(--clr-cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--txt-primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--txt-secondary);
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--clr-surface-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  color: var(--txt-secondary);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  background: none;
  border: none;
}
.auth-tab:hover {
  color: var(--txt-primary);
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--clr-amethyst) 0%, var(--clr-amethyst-light) 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(59, 10, 107, 0.5);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  color: var(--txt-muted);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease);
}

.input-with-icon .form-input {
  padding-left: 42px;
  padding-right: 44px;
}

.input-with-icon .form-input:focus ~ .input-icon,
.input-with-icon .form-input:focus + .input-icon {
  color: var(--clr-cyan);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--txt-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: color var(--dur-fast) var(--ease);
}
.password-toggle-btn:hover {
  color: var(--clr-cyan);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-top: 14px;
  margin-bottom: 22px;
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--txt-secondary);
  cursor: pointer;
  user-select: none;
}
.custom-checkbox-label input[type="checkbox"] {
  accent-color: var(--clr-amethyst-bright);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-forgot-link {
  color: var(--clr-cyan);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.auth-forgot-link:hover {
  text-decoration: underline;
  color: var(--clr-cyan-bright);
}

.btn-auth-submit {
  width: 100%;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-amethyst-light) 65%, var(--clr-amethyst) 100%);
  color: #050505;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3), 0 0 24px rgba(59, 10, 107, 0.4);
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast) var(--ease);
}
.btn-auth-submit:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4), 0 0 30px rgba(94, 22, 166, 0.5);
}
.btn-auth-submit:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--txt-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-border);
}

.btn-demo-quick {
  width: 100%;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius-sm);
  color: var(--txt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.btn-demo-quick:hover {
  background: var(--clr-surface-3);
  border-color: var(--clr-cyan);
  color: var(--clr-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.18);
}

.auth-security-notes {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--txt-muted);
  flex-wrap: wrap;
}

.auth-security-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-flash-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.auth-flash-success {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #67e8f9;
}

/* User avatar pill in navbar when logged in */
.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border-strong);
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--txt-primary);
  text-decoration: none;
}
.nav-user-pill:hover {
  border-color: var(--clr-cyan);
}
.nav-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-cyan), var(--clr-amethyst-bright));
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
}
.nav-logout-btn {
  color: var(--txt-muted);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.nav-logout-btn:hover {
  color: var(--sev-critical);
  background: rgba(239, 68, 68, 0.1);
}
.nav-btn-login {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(59, 10, 107, 0.35) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--clr-cyan) !important;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.nav-btn-login:hover {
  background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-amethyst) 100%);
  color: #050505 !important;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

/* ── Benchmark Laboratory ─────────────────────────────────────────────────── */
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.benchmark-card {
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(59, 10, 107, 0.5);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.benchmark-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.15);
}

.benchmark-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.benchmark-score {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.benchmark-desc {
  font-size: 0.8rem;
  color: var(--txt-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

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

.benchmark-downloads {
  display: flex;
  gap: 6px;
}

.btn-benchmark-file {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-benchmark-file:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: var(--clr-cyan);
  color: #fff;
}

.btn-benchmark-load {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(59, 10, 107, 0.7);
  border: 1px solid rgba(59, 10, 107, 0.9);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-benchmark-load:hover {
  background: var(--clr-amethyst);
  border-color: var(--clr-cyan);
  color: var(--clr-cyan);
}
