/* ════════════════════════════════════════════════════════════════════════
   AMILMA NETWORK TOOLKIT — PROFESSIONAL EDITION  |  style.css
   Split design: Light corporate exterior · Dark animated speed test
   Light accent: Navy #0D1B3E + Blue #004FCC | Dark zone: #00AAFF + #FF0033
════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* --- Dark zone (speedtest) --- */
  --panel:        rgba(0,4,12,.78);
  --panel-strong: rgba(0,4,12,.94);
  --line:         rgba(0,140,255,.13);
  --line-2:       rgba(0,140,255,.24);
  --txt:   #E8F4FF;
  --txt-2: #9EC8F0;
  --txt-3: #4A7EA0;
  --shadow-deep: 0 24px 64px rgba(0,0,0,.80), 0 4px 16px rgba(0,0,0,.60);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.60), 0 2px 6px rgba(0,0,0,.40);
  --blue:   #00AAFF;
  --red:    #FF0033;
  --green:  #00AAFF;
  --orange: #FF6600;
  --purple: #8800FF;
  --cyan:   #00AAFF;

  /* --- Light zone (corporate) --- */
  --lt-bg:        #EEF3FB;
  --lt-surface:   #FFFFFF;
  --lt-surface-2: #F5F8FF;
  --lt-border:    rgba(13,27,62,.07);
  --lt-border-2:  rgba(13,27,62,.12);
  --lt-txt:       #0D1B3E;
  --lt-txt-2:     #3D5278;
  --lt-txt-3:     #7B8FAB;
  --lt-accent:    #004FCC;
  --lt-accent-2:  #CC0020;
  --lt-shadow:    none;
  --lt-shadow-md: none;

  --blur: 6px;
  --r: 10px; --r-lg: 14px; --r-xl: 18px;
  --ease: 200ms cubic-bezier(.2,.8,.2,1);
  /* Content column: matches across .main-card, .stats-grid, .result-row, .lower-section */
  --content-width: min(960px, calc(100% - clamp(48px, 8vw, 160px)));

  --font-ui:    'Inter', system-ui, sans-serif;
  --font-mono:  'Share Tech Mono', 'Courier New', monospace;
  --font-head:  'Chakra Petch', 'Orbitron', monospace;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

/* ── Root background — white ──────────────────────────────────────────────── */
html {
  background: #FFFFFF;
}

/* ── Body ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-ui);
  color: var(--lt-txt);
  background: transparent;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Cyber canvas background ─────────────────────────────────────────────── */
#webgl-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Atmospheric cinematic smoke (5 animated radial-gradient layers) ─────── */
.atmo-bg { display: none; }

/* ── Global dot-grid hidden — scanlines only inside speedtest zone ──────── */
.dot-grid { display: none; }

/* ── Cinematic smoke blobs ─────────────────────────────────────────────────── */
.smk {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.smk-1 {
  background: radial-gradient(ellipse 65% 55% at 22% 60%, rgba(255,0,34,.14) 0%, transparent 68%);
  animation: smkA 22s ease-in-out infinite alternate;
}
.smk-2 {
  background: radial-gradient(ellipse 55% 48% at 82% 36%, rgba(0,50,200,.12) 0%, transparent 65%);
  animation: smkB 28s ease-in-out infinite alternate;
}
.smk-3 {
  background: radial-gradient(ellipse 80% 42% at 50% 88%, rgba(10,0,40,.22) 0%, transparent 72%);
  animation: smkC 19s ease-in-out infinite alternate;
}
.smk-4 {
  background: radial-gradient(ellipse 45% 65% at 6% 18%, rgba(255,0,34,.07) 0%, transparent 60%);
  animation: smkD 34s ease-in-out infinite alternate;
}
.smk-5 {
  background: radial-gradient(ellipse 60% 38% at 92% 78%, rgba(0,100,255,.06) 0%, transparent 65%);
  animation: smkA 26s 4s ease-in-out infinite alternate-reverse;
}
@keyframes smkA {
  0%   { transform: translate(0,0)    scale(1);    opacity: .7; }
  33%  { transform: translate(6%,3%)  scale(1.10); opacity: 1; }
  66%  { transform: translate(-4%,7%) scale(.96);  opacity: .55; }
  100% { transform: translate(3%,-5%) scale(1.08); opacity: .8; }
}
@keyframes smkB {
  0%   { transform: translate(0,0)      scale(1);    opacity: .6; }
  40%  { transform: translate(-9%,-4%)  scale(1.12); opacity: .9; }
  70%  { transform: translate(5%,6%)    scale(1.05); opacity: .5; }
  100% { transform: translate(-3%,8%)   scale(1.18); opacity: .75; }
}
@keyframes smkC {
  0%   { transform: translate(0,0)   scale(1);   opacity: .8; }
  50%  { transform: translate(4%,-7%) scale(1.09); opacity: .45; }
  100% { transform: translate(-6%,4%) scale(.92); opacity: .9; }
}
@keyframes smkD {
  0%   { transform: translate(0,0)    scale(1);    opacity: .5; }
  50%  { transform: translate(11%,5%) scale(1.22); opacity: .85; }
  100% { transform: translate(-7%,-3%) scale(1.06); opacity: .4; }
}

/* ── Overlay layers ──────────────────────────────────────────────────────── */
.ov-radial {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(255,0,34,.05) 0%, transparent 70%),
    radial-gradient(ellipse 100% 28% at 50% 0%, rgba(255,0,34,.18) 0%, transparent 55%),
    radial-gradient(ellipse 100% 28% at 50% 100%, rgba(0,80,255,.14) 0%, transparent 55%),
    linear-gradient(180deg, rgba(1,1,8,.65) 0%, rgba(1,1,8,0) 16%, rgba(1,1,8,0) 84%, rgba(1,1,8,.65) 100%);
}
.ov-scan {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,.06) 2px, rgba(0,0,0,.06) 4px
  );
}
.ov-vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 90% 85% at 50% 45%, transparent 30%, rgba(0,0,0,.80) 100%);
}

/* ── Corner brackets ─────────────────────────────────────────────────────── */
.brk {
  position: fixed;
  width: 22px; height: 22px;
  z-index: 10; pointer-events: none;
  opacity: 0;
  animation: brkFadeIn .6s forwards;
}
.brk::before, .brk::after {
  content: '';
  position: absolute;
  mix-blend-mode: screen;
}
.brk::before { width: 100%; height: 1.5px; }
.brk::after  { width: 1.5px; height: 100%; }
/* red brackets top, blue brackets bottom */
.brk.tl,
.brk.tr { --brk-color: rgba(255,0,34,.65); --brk-shadow: rgba(255,0,34,.35); }
.brk.bl,
.brk.br { --brk-color: rgba(0,100,255,.65); --brk-shadow: rgba(0,100,255,.35); }
.brk::before, .brk::after {
  background: var(--brk-color);
  box-shadow: 0 0 8px var(--brk-shadow);
}
.brk.tl { top: 14px;  left: 14px;  animation-delay: .8s; }
.brk.tl::before, .brk.tl::after { top: 0; left: 0; }
.brk.tr { top: 14px;  right: 14px; animation-delay: .9s; }
.brk.tr::before { top: 0; right: 0; }
.brk.tr::after  { top: 0; right: 0; }
.brk.bl { bottom: 14px; left: 14px;  animation-delay: 1.0s; }
.brk.bl::before, .brk.bl::after { bottom: 0; left: 0; }
.brk.br { bottom: 14px; right: 14px; animation-delay: 1.1s; }
.brk.br::before { bottom: 0; right: 0; }
.brk.br::after  { bottom: 0; right: 0; }
@keyframes brkFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── All UI content sits above background layers ─────────────────────────── */
.site-header,
#page-wrap {
  position: relative;
  z-index: 2;
}

/* ── Shared mono font class (dark zone / HUD elements only) ──────────────── */
.mono,
#main-number, #main-unit-label,
.tile-value, .tile-unit,
.grade-pill, .phase-chip,
.panel-caption, .g-chip, .grade-label,
.btn-start {
  font-family: var(--font-mono);
}
h1, .tool-card-title, .profile-name {
  font-family: var(--font-head);
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes breatheDot {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(.55); opacity: .4; }
}
@keyframes scanMoveZone {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
@keyframes netScan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(120%); }
}
@keyframes fillTravel {
  from { background-position: 200% 0, 0 0; }
  to   { background-position: -20% 0, 40px 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════════
   HEADER — REMOVED
════════════════════════════════════════════════════════════════════════ */
.site-header { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   PAGE LAYOUT — full-bleed, no box
════════════════════════════════════════════════════════════════════════ */
.page {
  width: 100%;
  padding: 0 0 48px;
  background: #fff;
}

/* ════════════════════════════════════════════════════════════════════════
   CONSOLE TITLE — inside the dark cockpit
════════════════════════════════════════════════════════════════════════ */

/* Hero section is now INSIDE the dark speedtest zone */
.speedtest-zone > .hero-section {
  background: transparent;
  padding: 28px clamp(24px, 5vw, 60px) 0;
  border-bottom: 1px solid rgba(0,140,255,.12);
  margin-bottom: 0;
}
.speedtest-zone .hero { padding: 28px 0 22px; }
.speedtest-zone .console-title h1 {
  color: #E8F4FF;
  text-shadow: 0 0 40px rgba(0,140,255,.18);
}
.speedtest-zone .console-title h1 em {
  color: #00AAFF;
  text-shadow: 0 0 28px rgba(0,170,255,.60), 0 0 60px rgba(0,170,255,.22);
}
.speedtest-zone .console-tag {
  color: rgba(0,210,255,.80);
  border-color: rgba(0,160,255,.28);
  background: rgba(0,120,255,.06);
}
.speedtest-zone .console-sub span {
  color: rgba(160,220,255,.50);
  border-color: rgba(0,140,255,.18);
  background: rgba(0,100,255,.05);
}
.console-title { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero { display: grid; place-items: center; text-align: center; }
.console-tag {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .18em;
  color: var(--lt-accent); text-transform: uppercase;
  border: 1px solid rgba(0,79,204,.18); background: rgba(0,79,204,.04);
  padding: 5px 14px; border-radius: 3px;
  animation: consoleBlink 2.8s step-end infinite;
}
@keyframes consoleBlink {
  0%,90%,100% { border-color: rgba(0,79,204,.18); }
  91%,99%     { border-color: rgba(0,79,204,.55); box-shadow: 0 0 8px rgba(0,79,204,.20); }
}
.console-title h1 {
  font-family: 'Chakra Petch', monospace;
  font-size: clamp(2.0rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.0; letter-spacing: .06em;
  color: var(--lt-txt); text-transform: uppercase;
  margin: 0;
}
.console-title h1 em {
  font-style: normal; color: var(--lt-accent);
}
.console-sub {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.console-sub span {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--lt-txt-3); padding: 4px 10px;
  border: 1px solid var(--lt-border-2); border-radius: 2px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════════
   SPEED TEST ZONE — SUPERCAR DARK COCKPIT
════════════════════════════════════════════════════════════════════════ */

/* ── Supercar animation keyframes ────────────────────────────────────── */
@keyframes rpmPulse {
  0%,100% { opacity: .18; transform: scaleX(1); }
  50%      { opacity: .42; transform: scaleX(1.04); }
}
@keyframes redlineFlash {
  0%,100% { opacity: 0; }
  8%       { opacity: .65; }
  16%      { opacity: 0; }
  24%      { opacity: .40; }
  32%      { opacity: 0; }
}
@keyframes speedStreak {
  0%   { transform: translateX(-110%) skewX(-18deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateX(210%) skewX(-18deg); opacity: 0; }
}
@keyframes ambientBreath {
  0%,100% { opacity: .55; }
  50%      { opacity: 1; }
}
@keyframes engineIdle {
  0%,100% { transform: translateY(0); }
  25%      { transform: translateY(-1px); }
  75%      { transform: translateY(1px); }
}
@keyframes heatShimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes cornerPing {
  0%,70%,100% { opacity: .25; }
  71%          { opacity: 1; box-shadow: 0 0 12px rgba(0,180,255,.8); }
  85%          { opacity: .6; }
}
@keyframes zoneScanDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 42px; }
}
@keyframes zoneSweep {
  0%   { transform: translateX(-140%) skewX(-20deg); opacity: 0; }
  15%  { opacity: .65; }
  100% { transform: translateX(190%) skewX(-20deg); opacity: 0; }
}

.speedtest-zone {
  position: relative;
  /* Carbon fibre base */
  background:
    radial-gradient(ellipse 56% 38% at 22% 8%, rgba(0,170,255,.20) 0%, transparent 62%),
    radial-gradient(ellipse 58% 36% at 84% 88%, rgba(0,200,255,.15) 0%, transparent 64%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px,
      transparent 1px, transparent 6px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px,
      transparent 1px, transparent 6px
    ),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,100,220,.12) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(255,0,51,.07) 0%, transparent 60%),
    #010810;
  border-radius: 0;
  padding: 0 0 28px;
  overflow: hidden;
  /* Top & bottom edge accents only — no side rims */
  box-shadow:
    inset 0 2px 0 rgba(0,170,255,.30),
    inset 0 -2px 0 rgba(0,200,255,.22);
}

/* CRT scanlines */
.speedtest-zone::before {
  content: "";
  position: absolute; inset: 0; border-radius: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(8,255,169,.08) 2px, rgba(0,0,0,.22) 3px
  );
  pointer-events: none; z-index: 1; opacity: .72;
  animation: zoneScanDrift 4.8s linear infinite;
}

/* Speed streak — static ambient glow (animation removed for perf) */
.speedtest-zone::after {
  content: "";
  position: absolute; inset: -20% -40%; border-radius: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0,170,255,.0) 35%, rgba(0,170,255,.22) 50%, rgba(0,170,255,0) 65%, transparent 100%
  );
  pointer-events: none; z-index: 1;
  animation: zoneSweep 7.2s ease-in-out infinite;
}

.speedtest-zone > * { position: relative; z-index: 2; }
.speedtest-zone { color: var(--txt); font-family: var(--font-mono); }

/* RPM ambient bar — static (animation removed for perf) */
.speedtest-zone .main-card {
}

/* ── Glass panel base (dark zone) ──────────────────────────────────────── */
.glass {
  background: rgba(0,6,18,.82);
  border: 1px solid rgba(0,170,255,.22);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

/* ════════════════════════════════════════════════════════════════════════
   MAIN CARD (GAUGE)
════════════════════════════════════════════════════════════════════════ */
.main-card {
  border-radius: var(--r-xl);
  padding: 28px 22px 18px;
  margin: 0 auto 14px;
  max-width: var(--content-width);
  position: relative; overflow: hidden;
  border: 1px solid rgba(0,170,255,.18);
  box-shadow: 0 20px 56px rgba(0,0,0,.72), 0 0 42px rgba(0,255,170,.12);
}
.main-card::before {
  content: "";
  position: absolute; inset: -1px;
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(0,255,170,.14), transparent 70%),
    radial-gradient(400px 200px at 90% 0%, rgba(0,180,255,.10), transparent 70%);
  pointer-events: none;
}
/* corner brackets + redline flash */
.main-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(90deg,   rgba(0,170,255,.70) 18px, transparent 0) top    left  /18px 1px no-repeat,
    linear-gradient(180deg,  rgba(0,170,255,.70) 18px, transparent 0) top    left  /1px 18px no-repeat,
    linear-gradient(270deg,  rgba(0,190,255,.58)  18px, transparent 0) top    right /18px 1px no-repeat,
    linear-gradient(180deg,  rgba(0,190,255,.58)  18px, transparent 0) top    right /1px 18px no-repeat,
    linear-gradient(90deg,   rgba(0,170,255,.70) 18px, transparent 0) bottom left  /18px 1px no-repeat,
    linear-gradient(0deg,    rgba(0,170,255,.70) 18px, transparent 0) bottom left  /1px 18px no-repeat,
    linear-gradient(270deg,  rgba(0,190,255,.58)  18px, transparent 0) bottom right /18px 1px no-repeat,
    linear-gradient(0deg,    rgba(0,190,255,.58)  18px, transparent 0) bottom right /1px 18px no-repeat;
  pointer-events: none;
  animation: cornerPing 5s ease-in-out infinite;
}
.main-card-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}

/* ════════════════════════════════════════════════════════════════════════
   GAUGE / HUD
════════════════════════════════════════════════════════════════════════ */
.gauge-shell {
  width: min(100%, 820px);
  padding: 18px 12px 10px; border-radius: 10px;
  border: 1px solid rgba(0,170,255,.22);
  background:
    linear-gradient(180deg, rgba(0,255,170,.08) 0%, rgba(0,0,0,.30) 100%),
    rgba(0,0,0,.30);
  position: relative; overflow: hidden;
}
.gauge-shell::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(10,255,170,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,255,170,.055) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: .42;
}
/* Horizontal redline streak inside gauge shell */
.gauge-shell::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0,170,255,0) 20%,
    rgba(0,170,255,.95) 50%, rgba(0,170,255,0) 80%, transparent 100%
  );
  animation: rpmPulse 1.8s ease-in-out infinite;
}
.gauge-head {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; gap: 10px; flex-wrap: wrap;
}
.panel-caption {
  color: #00AAFF; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700;
  text-shadow: 0 0 14px rgba(0,170,255,.52);
}
.phase-chip {
  font-size: .76rem; color: rgba(190,255,235,.86); letter-spacing: .10em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
  border: 1px solid rgba(0,170,255,.24); background: rgba(0,170,255,.07);
}
.phase-chip .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
  background: #00AAFF; box-shadow: 0 0 12px rgba(0,170,255,.72);
  animation: breatheDot 1.8s ease-in-out infinite;
}
.gauge-container {
  position: relative; width: 100%;
  max-width: 680px; margin: 0 auto;
  aspect-ratio: 620/360; min-height: 220px;
}
#gauge-svg { width: 100%; height: 100%; overflow: visible; }
.gauge-center {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  text-align: center; width: 90%;
}
#main-number {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700; line-height: 1; letter-spacing: .04em;
  color: var(--blue);
  text-shadow: 0 0 24px rgba(0,170,255,.85), 0 0 50px rgba(0,140,255,.40), 0 0 80px rgba(0,140,255,.16);
  transition: color .22s ease, text-shadow .22s ease;
  font-family: 'Chakra Petch', var(--font-head);
}
#main-unit-label {
  margin-top: 5px; color: var(--txt-3);
  font-size: .80rem; letter-spacing: .18em; text-transform: uppercase;
}
#phase-label {
  margin-top: 10px; min-height: 20px;
  color: rgba(188,238,219,.86); font-size: .86rem; letter-spacing: .04em;
}
.gauge-meta {
  margin-top: 10px;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.g-chip {
  font-size: .74rem; color: rgba(150,205,188,.86);
  border: 1px solid rgba(0,170,255,.18); background: rgba(0,18,14,.58);
  padding: 4px 8px; border-radius: 3px; letter-spacing: .08em; text-transform: uppercase;
}
.g-chip strong { color: #00AAFF; font-weight: 700; text-shadow: 0 0 10px rgba(0,170,255,.40); }

/* ════════════════════════════════════════════════════════════════════════
   START BUTTON
════════════════════════════════════════════════════════════════════════ */
.btn-wrap { margin: 20px 0 14px; }
.btn-start {
  border: none; cursor: pointer; position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; border-radius: 3px;
  color: #fff; font-weight: 700; font-size: .88rem;
  letter-spacing: .22em; text-transform: uppercase;
  font-family: 'Chakra Petch', var(--font-head);
  background: linear-gradient(135deg, #12F8A3, #10DB8F 52%, #0CB56F);
  border: 1px solid rgba(0,170,255,.60);
  box-shadow: 0 0 34px rgba(0,170,255,.40), inset 0 1px 0 rgba(255,255,255,.16);
  color: #001B12;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease), opacity var(--ease);
}
.btn-start::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.btn-start:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(0,170,255,.56), inset 0 1px 0 rgba(255,255,255,.20);
  filter: brightness(1.15);
}
.btn-start:active:not(:disabled) { transform: translateY(0) scale(.996); }
.btn-start:disabled { opacity: .40; cursor: not-allowed; filter: grayscale(.5); }
.btn-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}
.btn-dot.animating {
  background: #00AAFF;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 0 14px rgba(0,170,255,.95), 0 0 24px rgba(0,170,255,.46);
  animation: breatheDot 1.0s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════════════════
   PROGRESS
════════════════════════════════════════════════════════════════════════ */
.progress-area {
  width: 100%; max-width: 560px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.progress-area.show { opacity: 1; transform: translateY(0); }
.progress-bar-track {
  height: 8px; border-radius: 2px; overflow: hidden; position: relative;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(0,170,255,.24);
  box-shadow: inset 0 0 12px rgba(0,0,0,.55);
}
.progress-bar-track::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,.22), transparent);
  transform: translateX(-100%); opacity: 0;
}
.progress-area.scanning .progress-bar-track::before {
  opacity: 1; animation: netScan 1.6s linear infinite;
}
.progress-bar-fill {
  height: 100%; width: 0%; border-radius: 2px; position: relative;
  background: linear-gradient(90deg, rgba(0,120,220,.75), rgba(0,170,255,1));
  box-shadow: 0 0 22px rgba(0,170,255,.70), 0 0 8px rgba(0,170,255,.90) inset;
  transition: width .22s ease, background .22s ease, box-shadow .22s ease;
}
.progress-bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.38) 45%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 10px);
  opacity: .65; background-size: 200% 100%, auto;
  animation: fillTravel 1.3s linear infinite;
}
.progress-bar-fill.ul-phase {
  background: linear-gradient(90deg, rgba(255,0,51,.45), rgba(255,0,51,.95));
  box-shadow: 0 0 18px rgba(255,0,51,.40), inset 0 0 10px rgba(255,255,255,.10);
}
.progress-bar-fill.ping-phase {
  background: linear-gradient(90deg, rgba(255,102,0,.45), rgba(255,102,0,.95));
  box-shadow: 0 0 18px rgba(255,102,0,.38), inset 0 0 10px rgba(255,255,255,.10);
}
.progress-steps {
  margin-top: 10px; display: flex; justify-content: space-between; gap: 8px;
}
.ps {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono);
  color: var(--txt-3); display: flex; align-items: center; gap: 6px;
  transition: color var(--ease);
}
.ps-dot {
  width: 7px; height: 7px; border-radius: 1px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.ps.active { color: #00AAFF; text-shadow: 0 0 10px rgba(0,170,255,.46); }
.ps.active .ps-dot {
  background: #00AAFF; box-shadow: 0 0 12px rgba(0,170,255,.70); transform: scale(1.2);
}
.ps.done { color: var(--txt-2); }
.ps.done .ps-dot { background: var(--green); box-shadow: 0 0 8px rgba(0,170,255,.55); border-radius: 50%; }

/* ════════════════════════════════════════════════════════════════════════
   STAT TILES (dark zone)
════════════════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin: 0 auto 12px;
  max-width: var(--content-width);
  padding: 0;
}
.stat-tile {
  position: relative; border-radius: var(--r); padding: 14px 14px 12px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(0,140,255,.03);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  cursor: default;
}
.stat-tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(180px 70px at 0% 0%, rgba(0,140,255,.04), transparent 60%);
  pointer-events: none;
}
.stat-tile::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--tile-color, rgba(255,255,255,.2));
  opacity: .18; border-radius: var(--r) var(--r) 0 0;
  transition: opacity var(--ease), box-shadow var(--ease);
}
.stat-tile[data-key="dl"]     { --tile-color: var(--blue); }
.stat-tile[data-key="ul"]     { --tile-color: var(--red); }
.stat-tile[data-key="ping"]   { --tile-color: var(--orange); }
.stat-tile[data-key="jitter"] { --tile-color: var(--purple); }
.stat-tile.lit { border-color: color-mix(in srgb, var(--tile-color) 50%, transparent); }
.stat-tile.lit::after { opacity: 1; box-shadow: 0 0 18px color-mix(in srgb, var(--tile-color) 70%, transparent); }
.stat-tile[data-key="dl"].lit     { box-shadow: 0 0 0 1px rgba(0,140,255,.20) inset, 0 0 26px rgba(0,140,255,.20); animation: rpmPulse 2.2s ease-in-out infinite; }
.stat-tile[data-key="ul"].lit     { box-shadow: 0 0 0 1px rgba(255,0,51,.18) inset, 0 0 26px rgba(255,0,51,.18); animation: rpmPulse 2.2s ease-in-out infinite; }
.stat-tile[data-key="ping"].lit   { box-shadow: 0 0 0 1px rgba(255,102,0,.18) inset, 0 0 26px rgba(255,102,0,.16); animation: rpmPulse 2.2s ease-in-out infinite; }
.stat-tile[data-key="jitter"].lit { box-shadow: 0 0 0 1px rgba(136,0,255,.18) inset, 0 0 26px rgba(136,0,255,.16); animation: rpmPulse 2.2s ease-in-out infinite; }
.tile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tile-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); font-weight: 700; font-family: var(--font-mono); }
.tile-icon {
  width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center;
  border: 1px solid rgba(0,140,255,.10); background: rgba(0,0,0,.35);
  color: var(--txt-3); font-size: .88rem; font-family: var(--font-mono);
}
.stat-tile.lit .tile-icon { color: var(--tile-color); box-shadow: 0 0 10px color-mix(in srgb, var(--tile-color) 26%, transparent); }
.tile-value { font-size: 1.85rem; line-height: 1; font-weight: 700; letter-spacing: .02em; color: #EEF6FF; min-height: 1.85rem; font-family: 'Chakra Petch', var(--font-head); }
.tile-value.dl-lit     { color: var(--blue);   text-shadow: 0 0 18px rgba(0,140,255,.65), 0 0 36px rgba(0,140,255,.28); }
.tile-value.ul-lit     { color: var(--red);    text-shadow: 0 0 18px rgba(255,0,51,.55), 0 0 36px rgba(255,0,51,.24); }
.tile-value.ping-lit   { color: var(--orange); text-shadow: 0 0 18px rgba(255,102,0,.55), 0 0 36px rgba(255,102,0,.22); }
.tile-value.jitter-lit { color: var(--purple); text-shadow: 0 0 18px rgba(136,0,255,.55), 0 0 36px rgba(136,0,255,.22); }
.tile-unit { margin-top: 5px; color: var(--txt-3); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-mono); }

/* ════════════════════════════════════════════════════════════════════════
   RESULT BANNER (dark zone)
════════════════════════════════════════════════════════════════════════ */
.result-row {
  display: none; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r);
  margin: 0 auto 12px;
  max-width: var(--content-width);
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.result-row.show { display: flex; }
.result-grade-badge { display: flex; align-items: center; gap: 10px; }
.grade-label { color: var(--txt-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.grade-pill {
  padding: 4px 12px; border-radius: 4px; font-size: .92rem; letter-spacing: .10em;
  color: var(--blue); border: 1px solid rgba(0,140,255,.32); background: rgba(0,140,255,.08);
  box-shadow: 0 0 14px rgba(0,140,255,.16), 0 0 6px rgba(0,140,255,.10) inset;
  font-family: var(--font-head);
}
.result-desc { flex: 1; font-size: .92rem; color: var(--txt-2); }
.btn-share {
  border: 1px solid rgba(0,140,255,.16); background: rgba(0,0,0,.42);
  color: var(--txt); border-radius: 5px; padding: 9px 12px;
  font-size: .80rem; letter-spacing: .10em; text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: all var(--ease); font-family: var(--font-mono);
}
.btn-share:hover { border-color: rgba(0,140,255,.38); color: var(--blue); box-shadow: 0 0 14px rgba(0,140,255,.12); }

/* ════════════════════════════════════════════════════════════════════════
   LOWER SECTION — LIGHT CORPORATE WRAPPER
════════════════════════════════════════════════════════════════════════ */
.lower-section {
  background: #fff;
  /* Match the exact same centering formula used by .stats-grid / .main-card
     in the dark zone so every section shares the same 960px box and margins. */
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 36px 0 32px;
}

/* Scroll anchor offsets for sticky header (64px) */
#toolkit-block,
#history-block {
  scroll-margin-top: 80px;
}

/* History block spacing when JS reveals it */
#history-block {
  margin-top: 8px;
  padding-top: 8px;
}
.history-heading {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.history-heading .section-heading { margin-bottom: 0; }
.btn-clear-history {
  font-size: .78rem; font-weight: 600; font-family: var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--lt-txt-3); background: transparent;
  border: 1px solid var(--lt-border-2); border-radius: 6px;
  padding: 4px 12px; cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.btn-clear-history:hover {
  color: #cc2200; border-color: #cc2200;
  background: rgba(200,30,0,.06);
}

/* ════════════════════════════════════════════════════════════════════════
   SECTION HEADING — LIGHT CORPORATE
════════════════════════════════════════════════════════════════════════ */
.section-heading {
  color: var(--lt-txt); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-head);
  margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.section-heading::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--lt-accent), var(--lt-accent-2));
  flex-shrink: 0;
}
.section-heading::after {
  content: ""; flex: 1; height: 1px;
  background: var(--lt-border-2);
}

/* ════════════════════════════════════════════════════════════════════════
   INFO STRIP — LIGHT CORPORATE
════════════════════════════════════════════════════════════════════════ */
.info-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px; margin-bottom: 32px;
}
.info-item {
  border-radius: 12px; padding: 18px 18px 16px;
  background:
    linear-gradient(rgba(12,255,170,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,255,170,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,16,25,.96) 0%, rgba(0,8,16,.98) 100%);
  background-size: 20px 20px, 20px 20px, auto;
  border: 1px solid rgba(0,170,255,.20);
  border-left: 2px solid var(--info-color, #00AAFF);
  min-width: 0; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 24px rgba(0,170,255,.08);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), filter var(--ease);
}
/* Subtle tinted background wash */
.info-item::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 100% 0%,
      color-mix(in srgb, var(--info-color, #00AAFF) 20%, transparent) 0%,
      transparent 66%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--info-color, #00AAFF) 26%, transparent) 0%,
      transparent 25%);
  pointer-events: none; border-radius: inherit;
}
/* Large icon watermark in top-right */
.info-item::after {
  content: var(--info-glyph, "");
  position: absolute; top: 7px; right: 12px;
  font-size: 1.55rem; opacity: .16; pointer-events: none;
  color: color-mix(in srgb, var(--info-color, #00AAFF) 75%, #B8E8FF);
  font-family: var(--font-mono); line-height: 1;
  transition: opacity var(--ease), transform var(--ease);
}
.info-item:hover {
  border-color: color-mix(in srgb, var(--info-color, #00AAFF) 75%, transparent);
  box-shadow:
    0 14px 34px rgba(0,0,0,.45),
    0 0 32px color-mix(in srgb, var(--info-color, #00AAFF) 30%, transparent);
  transform: translateY(-3px);
  filter: saturate(1.12);
}
.info-item:hover::after {
  opacity: .26;
  transform: translateY(-1px);
}
/* Per-item accent colours + glyphs */
.info-strip > .info-item:nth-child(1) { --info-color: #00AAFF; --info-glyph: "IP"; }
.info-strip > .info-item:nth-child(2) { --info-color: #00E6C7; --info-glyph: "≈"; }
.info-strip > .info-item:nth-child(3) { --info-color: #00C8FF; --info-glyph: "◎"; }
.info-strip > .info-item:nth-child(4) { --info-color: #32FF8D; --info-glyph: "▸"; }
.info-label {
  display: flex; align-items: center; gap: 7px;
  font-size: .68rem; letter-spacing: .17em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 8px;
  color: color-mix(in srgb, var(--info-color, #00AAFF) 90%, #E6F4FF);
  text-shadow: 0 0 10px color-mix(in srgb, var(--info-color, #00AAFF) 42%, transparent);
  font-family: var(--font-head);
}
.info-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 1px; flex-shrink: 0;
  background: var(--info-color, #00AAFF);
  box-shadow: 0 0 10px color-mix(in srgb, var(--info-color, #00AAFF) 60%, transparent);
}
.info-val {
  color: #ECFFF8; font-size: .98rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25; font-family: var(--font-ui);
  text-shadow: 0 0 18px rgba(12,255,170,.12);
}
.info-strip > .info-item:nth-child(1) .info-val {
  font-family: var(--font-head);
  font-size: 1.12rem;
  letter-spacing: .02em;
  color: #F1FFF9;
}
.info-status {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 3px;
  background: rgba(3,28,18,.66);
  border: 1px solid rgba(0,170,255,.36);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 12px rgba(0,170,255,.16);
}
.info-status::before,
.info-status::after {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: rgba(114,255,208,.75);
}
.info-status::before { content: "["; }
.info-status::after  { content: "]"; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #00AAFF; box-shadow: 0 0 10px rgba(0,170,255,.88);
  animation: breatheDot 1.65s ease-in-out infinite;
}
.status-text {
  color: #72FFD0; font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; font-family: var(--font-head); font-weight: 700;
}
.info-item:hover .status-dot { box-shadow: 0 0 14px rgba(0,170,255,1); }

/* ════════════════════════════════════════════════════════════════════════
   TOOLKIT BLOCK — LIGHT CORPORATE
════════════════════════════════════════════════════════════════════════ */
.toolkit-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px; margin-bottom: 28px;
}
.tool-card {
  border-radius: var(--r-lg);
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--lt-border-2);
  min-width: 0;
  transition: border-color var(--ease);
}
.tool-card:hover {
  border-color: rgba(0,79,204,.22);
}
.tool-card-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px; margin-bottom: 14px;
}
.tool-card-kicker {
  color: var(--lt-accent); font-size: .70rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; font-family: var(--font-ui);
}
.tool-card-title {
  color: var(--lt-txt); font-size: .90rem; font-weight: 700;
  margin-top: 4px; letter-spacing: .04em; text-transform: uppercase;
}
.tool-badge {
  color: var(--lt-accent);
  border: 1px solid rgba(0,79,204,.22);
  background: rgba(0,79,204,.06);
  border-radius: 4px; padding: 4px 9px;
  font-size: .70rem; letter-spacing: .10em; text-transform: uppercase;
  white-space: nowrap; font-family: var(--font-ui);
}
.tool-kv {
  border: 1px solid var(--lt-border);
  border-radius: 8px; background: var(--lt-surface-2); overflow: hidden;
}
.kv-row {
  display: grid; grid-template-columns: 84px 1fr;
  gap: 8px; align-items: center; padding: 8px 12px;
  border-bottom: 1px solid var(--lt-border);
}
.kv-row:last-child { border-bottom: none; }
.kv-key { color: var(--lt-txt-3); font-size: .70rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-ui); }
.kv-val { color: var(--lt-txt); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-ui); font-weight: 500; }
.tool-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.tool-btn {
  border: 1px solid var(--lt-border-2);
  background: var(--lt-surface-2);
  color: var(--lt-txt-2); border-radius: 6px;
  padding: 9px 10px; font-size: .74rem;
  letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-ui); font-weight: 600;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.tool-btn:hover {
  border-color: rgba(0,79,204,.30); color: var(--lt-accent);
  background: rgba(0,79,204,.05); transform: translateY(-1px);
}
.tool-btn.tool-btn-ghost { padding: 7px 9px; white-space: nowrap; }
.cmd-hint { margin-top: 10px; color: var(--lt-txt-3); font-size: .72rem; line-height: 1.5; font-family: var(--font-ui); }
.profile-list { display: grid; gap: 7px; }
.profile-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--lt-border); background: var(--lt-surface-2);
}
.profile-name { color: var(--lt-txt); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-head); }
.profile-note { color: var(--lt-txt-3); font-size: .74rem; margin-top: 3px; font-family: var(--font-ui); }
.profile-badge {
  border-radius: 4px; padding: 4px 9px;
  font-size: .70rem; letter-spacing: .08em;
  text-transform: uppercase; font-family: var(--font-ui); font-weight: 600;
  border: 1px solid var(--lt-border-2);
  color: var(--lt-txt-2); background: var(--lt-surface); white-space: nowrap;
}
.profile-badge.ok   { color: #16A34A; border-color: rgba(22,163,74,.24); background: rgba(22,163,74,.06); }
.profile-badge.warn { color: #C26800; border-color: rgba(194,104,0,.24); background: rgba(194,104,0,.06); }
.profile-badge.bad  { color: var(--lt-accent-2); border-color: rgba(204,0,32,.24); background: rgba(204,0,32,.06); }
.profile-badge.neutral { color: var(--lt-txt-3); }

/* ════════════════════════════════════════════════════════════════════════
   ELITE INTELLIGENCE BLOCK
════════════════════════════════════════════════════════════════════════ */
.elite-intel-block {
  margin-bottom: 28px;
}

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

.elite-card {
  border-radius: var(--r-lg);
  padding: 18px 16px;
  background:
    linear-gradient(rgba(0,170,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,100,255,.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(3,16,28,.95) 0%, rgba(2,12,22,.98) 100%);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(0,170,255,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 20px rgba(0,100,255,.08);
  min-width: 0;
}

.elite-card .tool-card-head {
  margin-bottom: 12px;
}

.elite-card .tool-card-kicker {
  color: #8DE9FF;
}

.elite-card .tool-card-title {
  color: #E8FFF8;
}

.elite-card .tool-badge {
  color: #7FC7FF;
  border-color: rgba(0,120,255,.28);
  background: rgba(0,80,255,.08);
}

.elite-card .tool-kv {
  border-color: rgba(0,170,255,.16);
  background: rgba(3,14,24,.72);
}

.elite-card .kv-row {
  border-bottom-color: rgba(0,170,255,.10);
}

.elite-card .kv-key {
  color: #7DB9D8;
}

.elite-card .kv-val {
  color: #E1FFF5;
  font-family: var(--font-mono);
}

.elite-card .kv-val.intel-good {
  color: #9DFFD9;
  text-shadow: 0 0 10px rgba(0,170,255,.28);
}

.elite-card .kv-val.intel-warn {
  color: #FFD08A;
  text-shadow: 0 0 10px rgba(255,180,0,.24);
}

.elite-card .kv-val.intel-bad {
  color: #FF9AA8;
  text-shadow: 0 0 10px rgba(255,20,50,.24);
}

.elite-card .kv-val.intel-neutral {
  color: #B9DFF2;
}

.elite-rec-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.elite-rec-list li {
  border: 1px solid rgba(0,170,255,.12);
  background: rgba(3,20,16,.48);
  color: #C9FBE7;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: .80rem;
  line-height: 1.45;
  position: relative;
  padding-left: 24px;
}

.elite-rec-list li::before {
  content: "▸";
  position: absolute;
  left: 9px;
  top: 8px;
  color: #00AAFF;
  text-shadow: 0 0 8px rgba(0,170,255,.45);
}

@media (max-width: 980px) {
  .elite-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   SEO ABOUT SECTION — keyword-rich, search-crawler-friendly
════════════════════════════════════════════════════════════════════════ */
.seo-about {
  margin-bottom: 28px;
}
.seo-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.seo-card {
  border-radius: var(--r-lg);
  padding: 20px 18px;
  background: var(--lt-surface-2);
  border: 1px solid var(--lt-border-2);
  transition: border-color var(--ease);
}
.seo-card:hover { border-color: rgba(0,79,204,.20); }
.seo-card h3 {
  font-family: var(--font-head);
  font-size: .86rem; font-weight: 700;
  color: var(--lt-txt); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 10px;
}
.seo-card p {
  font-size: .86rem; color: var(--lt-txt-2);
  line-height: 1.70; font-family: var(--font-ui);
}
.seo-card p strong { color: var(--lt-txt); font-weight: 600; }

@media (max-width: 760px) {
  .seo-about-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════
   HISTORY TABLE — LIGHT CORPORATE
════════════════════════════════════════════════════════════════════════ */
.history-table {
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff;
  border: 1px solid var(--lt-border-2);
  margin-bottom: 0;
}
.h-header {
  display: grid; grid-template-columns: 84px 1fr 1fr 84px 84px 62px;
  gap: 8px; align-items: center; padding: 11px 16px;
  background: var(--lt-surface-2);
  border-bottom: 1px solid var(--lt-border-2);
}
.h-col-label {
  font-size: .72rem; color: var(--lt-txt-3);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-family: var(--font-ui);
}
.h-col-label:last-child { text-align: right; }
.h-row {
  display: grid; grid-template-columns: 84px 1fr 1fr 84px 84px 62px;
  gap: 8px; align-items: center; padding: 10px 16px;
  border-bottom: 1px solid var(--lt-border);
  transition: background var(--ease);
}
.h-row:last-child { border-bottom: none; }
.h-row:hover { background: rgba(0,79,204,.03); }
.h-time   { color: var(--lt-txt-2); font-size: .84rem; font-family: var(--font-ui); }
.h-dl     { color: var(--lt-accent); font-size: .86rem; font-weight: 600; font-family: var(--font-ui); }
.h-ul     { color: var(--lt-accent-2); font-size: .86rem; font-weight: 600; font-family: var(--font-ui); }
.h-ping   { color: #C26800; font-size: .84rem; font-family: var(--font-ui); }
.h-jitter { color: #7340CC; font-size: .84rem; font-family: var(--font-ui); }
.h-grade {
  justify-self: end; color: var(--lt-accent); font-size: .78rem; letter-spacing: .08em;
  border-radius: 4px; padding: 2px 8px;
  border: 1px solid rgba(0,79,204,.22); background: rgba(0,79,204,.06);
  font-family: var(--font-head);
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER — THREE-ZONE PREMIUM LAYOUT
════════════════════════════════════════════════════════════════════════ */
footer {
  margin-top: 40px;
  border-top: 2px solid var(--lt-border-2);
  display: flex; flex-direction: column; gap: 0;
}

/* ── Zone 1: Brand + Amilma properties ────────────────────────────── */
.footer-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px;
  padding: 28px 0 22px;
}
.footer-brand {
  display: flex; align-items: center; gap: 16px;
}
.footer-logo-link { flex-shrink: 0; }
.footer-logo {
  height: 34px; width: auto; border-radius: 7px;
  transition: opacity 200ms ease, transform 200ms ease;
}
.footer-logo:hover { opacity: .75; transform: scale(1.04); }
.footer-brand-text { display: flex; flex-direction: column; gap: 4px; }
.footer-tagline {
  font-size: .78rem; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--lt-txt);
  font-family: var(--font-head);
}
.footer-powered {
  font-size: .73rem; color: var(--lt-txt-3);
  font-family: var(--font-ui); letter-spacing: .01em;
}
.footer-sites {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.footer-sites-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lt-txt-3);
  font-family: var(--font-ui);
}
.footer-sites-links {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-sites-links a {
  font-size: .80rem; font-weight: 600; color: var(--lt-accent);
  text-decoration: none; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(0,79,204,.15);
  background: rgba(0,79,204,.04);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  font-family: var(--font-ui);
}
.footer-sites-links a:hover {
  background: rgba(0,79,204,.10); border-color: rgba(0,79,204,.30);
}

/* ── Zone 2: Page links + Copyright ───────────────────────────────── */
.footer-mid {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--lt-border);
  border-bottom: 1px solid var(--lt-border);
}
.footer-links {
  display: flex; align-items: center; gap: 6px;
}
.footer-links a {
  font-size: .82rem; font-weight: 500; color: var(--lt-txt-3);
  text-decoration: none; padding: 3px 2px;
  transition: color 200ms ease;
  font-family: var(--font-ui);
}
.footer-links a:hover { color: var(--lt-accent); }
.footer-sep { color: var(--lt-border-2); font-size: .90rem; user-select: none; }
.footer-copy {
  font-size: .82rem; font-weight: 500; color: var(--lt-txt-2);
  white-space: nowrap; font-family: var(--font-ui);
}
.footer-copy strong { color: var(--lt-accent); font-weight: 700; }
.footer-copy a {
  color: var(--lt-txt-2); text-decoration: none;
  transition: color 200ms ease;
}
.footer-copy a:hover { color: var(--lt-accent); }

/* ── Zone 3: Legal note + Credit ──────────────────────────────────── */
.footer-bottom {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
  padding: 16px 0 4px;
  flex-wrap: wrap;
}
.footer-note {
  flex: 1; min-width: 200px;
  color: var(--lt-txt-3); font-size: .76rem; line-height: 1.65;
  font-family: var(--font-ui);
}
.footer-credit {
  flex-shrink: 0; white-space: nowrap;
  color: var(--lt-txt-3); font-size: .76rem;
  font-family: var(--font-ui); font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════════════
   BODY-PHASE COLOUR STATES (gauge numbers)
════════════════════════════════════════════════════════════════════════ */
body.phase-dl #main-number {
  color: var(--blue);
  text-shadow: 0 0 24px rgba(0,170,255,.90), 0 0 50px rgba(0,140,255,.48), 0 0 80px rgba(0,140,255,.20);
}
body.phase-ul #main-number {
  color: var(--red);
  text-shadow: 0 0 24px rgba(255,0,51,.85), 0 0 50px rgba(255,0,51,.40), 0 0 80px rgba(255,0,51,.18);
}
body.phase-ping #main-number {
  color: var(--orange);
  text-shadow: 0 0 24px rgba(255,102,0,.80), 0 0 50px rgba(255,102,0,.36);
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .stats-grid, .info-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .toolkit-grid             { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .header-inner { padding: 0 16px; }
  nav { display: none; }
  .page { padding: 0 0 32px; }
  .speedtest-zone > .hero-section { padding: 20px 16px 0; }
  .lower-section { padding: 24px 16px 20px; }
  .speedtest-zone .hero { padding: 22px 0 16px; }
  .speedtest-zone { border-radius: 0; }
  .main-card { max-width: calc(100% - 28px); padding: 18px 12px 12px; }
  .stats-grid { max-width: calc(100% - 28px); }
  .result-row { max-width: calc(100% - 28px); align-items: flex-start; }
  .gauge-shell { padding: 10px 8px 4px; }
  .gauge-container { min-height: 170px; }
  .progress-steps { flex-wrap: wrap; row-gap: 6px; }
  .h-header, .h-row { grid-template-columns: 72px 1fr 1fr 70px; }
  .h-col-label:nth-child(5), .h-col-label:nth-child(6),
  .h-jitter, .h-grade-wrap { display: none; }
  .info-item { padding: 16px 14px 14px; }
  .info-val { font-size: .92rem; }
  /* footer responsive — 760px */
  .footer-top  { padding: 20px 0 16px; }
  .footer-mid  { padding: 12px 0; }
}
@media (max-width: 560px) {
  .stats-grid, .info-strip, .toolkit-grid { grid-template-columns: 1fr; }
  .hero-sub { gap: 6px; }
  .speedtest-zone { margin: 0; }
  .info-strip { gap: 10px; }
  .info-val { white-space: normal; }
  /* footer responsive — 3-zone */
  .footer-top    { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-sites  { align-items: flex-start; }
  .footer-sites-links { justify-content: flex-start; }
  .footer-mid    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-credit { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER — fixed top-right
════════════════════════════════════════════════════════════════════════ */
.lang-switcher {
  position: fixed;
  top: 14px; right: 18px;
  z-index: 9999;
  display: flex; gap: 2px; align-items: center;
  background: rgba(0,5,20,.78);
  border: 1px solid rgba(0,140,255,.18);
  border-radius: 9px;
  padding: 4px 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,.40);
}
.lang-btn {
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .10em;
  color: rgba(140,185,240,.50);
  background: transparent; border: none;
  padding: 3px 8px; border-radius: 6px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
  user-select: none;
}
.lang-btn:hover  { color: rgba(180,220,255,.90); background: rgba(0,140,255,.13); }
.lang-btn.active { color: #00BBFF;               background: rgba(0,140,255,.22); }
@media (max-width: 480px) {
  .lang-switcher { top: 8px; right: 8px; padding: 3px 4px; }
  .lang-btn { padding: 2px 6px; font-size: .68rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   GAUGE ENHANCEMENTS — Hub rings + Arc glow trail
════════════════════════════════════════════════════════════════════════ */
@keyframes hubRingPulse {
  0%   { transform: scale(1);   opacity: .60; }
  100% { transform: scale(2.5); opacity: 0;   }
}
#hub-ring-1, #hub-ring-2, #hub-ring-3 {
  transform-box: fill-box; transform-origin: center;
  pointer-events: none;
  will-change: transform, opacity;
}
#hub-ring-1 { animation: hubRingPulse 2.6s ease-out infinite 0s;   }
#hub-ring-2 { animation: hubRingPulse 2.6s ease-out infinite .87s;  }
#hub-ring-3 { animation: hubRingPulse 2.6s ease-out infinite 1.74s; }

@keyframes arcGlowBreath {
  0%,100% { opacity: .10; }
  50%     { opacity: .18; }
}
#arc-outer-glow { animation: arcGlowBreath 2.4s ease-in-out infinite; }

/* ════════════════════════════════════════════════════════════════════════
   NETWORK QUALITY SCORE
════════════════════════════════════════════════════════════════════════ */
.quality-score-block { margin-bottom: 28px; }
.quality-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quality-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 12px 16px;
  background: #fff; border: 1px solid var(--lt-border-2);
  border-radius: var(--r-lg); text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.quality-item:hover {
  border-color: rgba(0,79,204,.22);
  box-shadow: 0 4px 20px rgba(0,79,204,.07);
}
.quality-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,79,204,.06); border: 1px solid rgba(0,79,204,.14);
  color: var(--lt-accent); font-size: .88rem;
}
.quality-label {
  font-size: .70rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--lt-txt-2); font-family: var(--font-ui);
}
.quality-badge {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 16px; border-radius: 100px;
  font-family: var(--font-head); border: 1px solid;
}
.quality-badge.pending { color: var(--lt-txt-3); border-color: var(--lt-border-2); background: var(--lt-surface-2); }
.quality-badge.good    { color: #16A34A; border-color: rgba(22,163,74,.30); background: rgba(22,163,74,.07); }
.quality-badge.average { color: #C26800; border-color: rgba(194,104,0,.30); background: rgba(194,104,0,.07); }
.quality-badge.poor    { color: var(--lt-accent-2); border-color: rgba(204,0,32,.30); background: rgba(204,0,32,.07); }
.quality-sub {
  font-size: .68rem; color: var(--lt-txt-3); font-family: var(--font-ui); min-height: 14px;
}
@media (max-width: 760px) {
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .quality-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════
   MEASUREMENT DETAILS — per-file-size breakdown
════════════════════════════════════════════════════════════════════════ */
.mdetail-section { margin-bottom: 28px; }
.mdetail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mdetail-col {
  background: #fff; border: 1px solid var(--lt-border-2);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--ease);
}
.mdetail-col:hover { border-color: rgba(0,79,204,.18); }
.mdetail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--lt-surface-2);
  border-bottom: 1px solid var(--lt-border-2);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .10em; font-family: var(--font-head); color: var(--lt-txt);
}
.mdetail-avg {
  font-size: .88rem; font-weight: 700; color: var(--lt-accent);
  letter-spacing: .04em; margin-left: auto;
}
.mdetail-row {
  display: grid; grid-template-columns: 60px 1fr 90px;
  gap: 8px; align-items: center; padding: 9px 16px;
  border-bottom: 1px solid var(--lt-border);
  animation: fadeUp .30s ease both;
}
.mdetail-row:last-child { border-bottom: none; }
.mdetail-empty { padding: 18px 16px; color: var(--lt-txt-3); font-size: .80rem; }
.mdetail-size {
  font-size: .74rem; color: var(--lt-txt-3);
  font-family: var(--font-mono); letter-spacing: .06em;
}
.mdetail-bar-wrap {
  height: 7px; border-radius: 4px; overflow: hidden;
  background: var(--lt-surface-2); border: 1px solid var(--lt-border);
}
.mdetail-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width .55s cubic-bezier(.2,.8,.2,1);
}
.mdetail-bar-fill.dl { background: linear-gradient(90deg, #0044BB, #00AAFF); box-shadow: 0 0 8px rgba(0,120,255,.25); }
.mdetail-bar-fill.ul { background: linear-gradient(90deg, #AA0022, #FF0033); box-shadow: 0 0 8px rgba(255,0,51,.22); }
.mdetail-val {
  font-size: .78rem; font-weight: 600; color: var(--lt-txt-2);
  font-family: var(--font-ui); text-align: right; white-space: nowrap;
}
@media (max-width: 760px) { .mdetail-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   PREMIUM DESIGN UPGRADES
════════════════════════════════════════════════════════════════════════ */
/* Lower section — subtle gradient backdrop */
.lower-section {
  background:
    radial-gradient(ellipse 70% 40% at 92% 8%, rgba(0,79,204,.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 8%  92%, rgba(0,79,204,.03) 0%, transparent 60%),
    #fff;
}

/* Tool cards — depth shadows */
.tool-card {
  box-shadow: 0 2px 8px rgba(13,27,62,.05);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.tool-card:hover {
  box-shadow: 0 8px 28px rgba(0,79,204,.10), 0 2px 8px rgba(13,27,62,.06);
  transform: translateY(-2px);
}

/* SEO cards — depth */
.seo-card {
  box-shadow: 0 2px 8px rgba(13,27,62,.04);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.seo-card:hover {
  box-shadow: 0 6px 20px rgba(0,79,204,.08);
  transform: translateY(-2px);
}

/* Stat tiles — stronger top accent when lit */
.stat-tile { transition: border-color 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms cubic-bezier(.2,.8,.2,1), transform 200ms cubic-bezier(.2,.8,.2,1); }

/* Result banner — richer glass feel */
.result-row {
  background: linear-gradient(135deg, rgba(0,5,18,.98) 0%, rgba(0,8,28,.94) 100%);
  border-color: rgba(0,140,255,.22);
  box-shadow: 0 0 40px rgba(0,100,255,.14), var(--shadow-soft);
}

/* ════════════════════════════════════════════════════════════════════════
   IMAGE-INSPIRED PREMIUM DESIGN — Cards · Badges · Typography · Tags
════════════════════════════════════════════════════════════════════════ */

/* ── Extended colour tokens ─────────────────────────────────────── */
:root {
  --ci-blue:   #4F46E5;   /* indigo  – system / download */
  --ci-teal:   #0891B2;   /* cyan    – commands / ISP */
  --ci-violet: #7C3AED;   /* violet  – gaming / jitter */
  --ci-green:  #059669;   /* emerald – streaming / upload */
  --ci-orange: #D97706;   /* amber   – ping */
  --ci-red:    #CC0020;   /* red     – loss / upload */
}

/* ── // code-style kicker prefix ────────────────────────────────── */
.tool-card-kicker { position: relative; }
.tool-card-kicker::before {
  content: "// ";
  font-family: var(--font-mono);
  opacity: .45;
  letter-spacing: 0;
}

/* ── Tool card — top accent border per child ────────────────────── */
.card-has-ribbon { overflow: hidden; }

.toolkit-grid > .tool-card:nth-child(1) {
  border-top: 3px solid var(--ci-blue);
}
.toolkit-grid > .tool-card:nth-child(2) {
  border-top: 3px solid var(--ci-teal);
}
.toolkit-grid > .card-has-ribbon:last-child {
  border-top: 3px solid var(--ci-violet);
}

/* Per-card kicker colour */
.toolkit-grid > .tool-card:nth-child(1) .tool-card-kicker { color: var(--ci-blue); }
.toolkit-grid > .tool-card:nth-child(2) .tool-card-kicker { color: var(--ci-teal); }
.toolkit-grid > .card-has-ribbon:last-child .tool-card-kicker { color: var(--ci-violet); }

/* Per-card badge colour */
.toolkit-grid > .tool-card:nth-child(1) .tool-badge {
  color: var(--ci-blue); border-color: rgba(79,70,229,.25); background: rgba(79,70,229,.06);
}
.toolkit-grid > .tool-card:nth-child(2) .tool-badge {
  color: var(--ci-teal); border-color: rgba(8,145,178,.25); background: rgba(8,145,178,.06);
}
.toolkit-grid > .card-has-ribbon:last-child .tool-badge {
  color: var(--ci-violet); border-color: rgba(124,58,237,.25); background: rgba(124,58,237,.06);
}

/* Larger card titles */
.tool-card-title { font-size: .98rem; }

/* ── Card ribbon corner label ────────────────────────────────────── */
.card-ribbon {
  position: absolute; top: 18px; right: -22px;
  padding: 3px 30px; font-size: .60rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  font-family: var(--font-head); white-space: nowrap;
  transform: rotate(35deg); z-index: 6; pointer-events: none;
  background: var(--ci-violet); color: #fff;
  box-shadow: 0 2px 10px rgba(124,58,237,.38);
}
.card-ribbon.ribbon-blue {
  background: var(--ci-blue);
  box-shadow: 0 2px 10px rgba(79,70,229,.38);
}

/* ── SEO cards — per-card icon + top accent + left text border ─── */
.seo-card { padding: 24px 20px 20px; }

.seo-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.10rem; margin-bottom: 14px;
  border: 1px solid; flex-shrink: 0;
}
.seo-card-icon.sci-blue   { background: rgba(79,70,229,.10);  border-color: rgba(79,70,229,.22);  color: var(--ci-blue); }
.seo-card-icon.sci-teal   { background: rgba(8,145,178,.10);  border-color: rgba(8,145,178,.22);  color: var(--ci-teal); }
.seo-card-icon.sci-violet { background: rgba(124,58,237,.10); border-color: rgba(124,58,237,.22); color: var(--ci-violet); }

.seo-about-grid > .seo-card:nth-child(1) { border-top: 3px solid var(--ci-blue); }
.seo-about-grid > .seo-card:nth-child(2) { border-top: 3px solid var(--ci-teal); }
.seo-about-grid > .seo-card:nth-child(3) { border-top: 3px solid var(--ci-violet); }

.seo-about-grid > .seo-card:nth-child(1) h3 { color: var(--ci-blue); }
.seo-about-grid > .seo-card:nth-child(2) h3 { color: var(--ci-teal); }
.seo-about-grid > .seo-card:nth-child(3) h3 { color: var(--ci-violet); }

.seo-card h3 { font-size: .96rem; margin-bottom: 12px; }

/* Left-border accent on seo-card paragraphs */
.seo-card p {
  padding-left: 14px;
  border-left: 3px solid var(--lt-border-2);
  transition: border-color var(--ease);
}
.seo-about-grid > .seo-card:nth-child(1) p { border-left-color: rgba(79,70,229,.28); }
.seo-about-grid > .seo-card:nth-child(2) p { border-left-color: rgba(8,145,178,.28); }
.seo-about-grid > .seo-card:nth-child(3) p { border-left-color: rgba(124,58,237,.28); }

.info-val { font-size: .98rem; font-weight: 700; }

/* ── Quality score — per-item coloured icons ─────────────────────── */
.quality-icon { width: 44px; height: 44px; font-size: 1.05rem; }

.quality-grid > .quality-item:nth-child(1) .quality-icon {
  background: rgba(0,79,204,.09);    border-color: rgba(0,79,204,.22);    color: #004FCC;
}
.quality-grid > .quality-item:nth-child(2) .quality-icon {
  background: rgba(124,58,237,.09);  border-color: rgba(124,58,237,.22);  color: var(--ci-violet);
}
.quality-grid > .quality-item:nth-child(3) .quality-icon {
  background: rgba(8,145,178,.09);   border-color: rgba(8,145,178,.22);   color: var(--ci-teal);
}
.quality-grid > .quality-item:nth-child(4) .quality-icon {
  background: rgba(204,0,32,.09);    border-color: rgba(204,0,32,.22);    color: var(--ci-red);
}

/* ── Profile rows — status dot + chip tags + bigger badges ──────── */
.profile-row {
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  gap: 14px;
}
.profile-row:hover {
  border-color: rgba(0,79,204,.18);
  background: rgba(0,79,204,.025);
  box-shadow: 0 3px 14px rgba(0,79,204,.07);
}

/* Coloured dot before profile name */
.profile-name {
  display: flex; align-items: center; gap: 8px;
}
.profile-name::before {
  content: "";
  flex-shrink: 0;
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lt-border-2);
  transition: background var(--ease), box-shadow var(--ease);
}
.profile-row.state-ok .profile-name::before,
.profile-row:has(.profile-badge.ok)   .profile-name::before {
  background: #16A34A; box-shadow: 0 0 8px rgba(22,163,74,.55);
}
.profile-row.state-warn .profile-name::before,
.profile-row:has(.profile-badge.warn) .profile-name::before {
  background: var(--ci-orange); box-shadow: 0 0 8px rgba(217,119,6,.50);
}
.profile-row.state-bad .profile-name::before,
.profile-row:has(.profile-badge.bad)  .profile-name::before {
  background: var(--lt-accent-2); box-shadow: 0 0 8px rgba(204,0,32,.50);
}

.profile-badge {
  border-radius: 100px; padding: 5px 13px; font-size: .72rem;
}

/* ── Tag chips — tech stack / requirement badges ─────────────────── */
.tag-chips {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px;
}
.tag-chip {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 100px;
  font-size: .66rem; font-weight: 600; letter-spacing: .04em;
  font-family: var(--font-mono);
  border: 1px solid var(--lt-border-2);
  background: var(--lt-surface-2); color: var(--lt-txt-2);
  transition: border-color var(--ease), color var(--ease);
  user-select: none;
}
.tag-chip.tc-blue   { color: var(--ci-blue);   border-color: rgba(79,70,229,.28);  background: rgba(79,70,229,.06);  }
.tag-chip.tc-teal   { color: var(--ci-teal);   border-color: rgba(8,145,178,.28);  background: rgba(8,145,178,.06);  }
.tag-chip.tc-violet { color: var(--ci-violet); border-color: rgba(124,58,237,.28); background: rgba(124,58,237,.06); }
.tag-chip.tc-orange { color: var(--ci-orange); border-color: rgba(217,119,6,.28);  background: rgba(217,119,6,.06);  }
.tag-chip.tc-green  { color: var(--ci-green);  border-color: rgba(5,150,105,.28);  background: rgba(5,150,105,.06);  }
.tag-chip.tc-red    { color: var(--ci-red);    border-color: rgba(204,0,32,.28);   background: rgba(204,0,32,.06);   }
.tag-chip.tc-dark   { color: #fff; background: rgba(0,0,0,.78); border-color: rgba(255,255,255,.12); }

/* ── Toolkit cyber unification v2 ─────────────────────────────────── */
#toolkit-block .section-heading,
#quality-score-block .section-heading,
#measurement-details .section-heading,
#history-block .section-heading,
.seo-about .section-heading {
  color: #DFFFF3;
  text-shadow: 0 0 14px rgba(0,170,255,.20);
}
#toolkit-block .section-heading::before,
#quality-score-block .section-heading::before,
#measurement-details .section-heading::before,
#history-block .section-heading::before,
.seo-about .section-heading::before {
  background: linear-gradient(180deg, #00AAFF, #00C8FF);
}
#toolkit-block .section-heading::after,
#quality-score-block .section-heading::after,
#measurement-details .section-heading::after,
#history-block .section-heading::after,
.seo-about .section-heading::after {
  background: linear-gradient(90deg, rgba(0,170,255,.34), rgba(0,200,255,.18), transparent 82%);
}

.tool-card {
  background:
    linear-gradient(rgba(12,255,170,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,255,170,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,16,25,.95) 0%, rgba(0,8,16,.98) 100%);
  background-size: 20px 20px, 20px 20px, auto;
  border: 1px solid rgba(0,170,255,.20);
  border-left: 2px solid rgba(0,170,255,.45);
  box-shadow: 0 14px 30px rgba(0,0,0,.40), 0 0 24px rgba(0,170,255,.08);
}
.tool-card:hover {
  border-color: rgba(0,170,255,.45);
  box-shadow: 0 16px 34px rgba(0,0,0,.45), 0 0 32px rgba(0,170,255,.16);
}

.tool-card-head { margin-bottom: 15px; }
.tool-card-kicker {
  color: #86FFD9;
  text-shadow: 0 0 10px rgba(0,170,255,.30);
}
.tool-card-title {
  color: #F1FFF9;
  letter-spacing: .05em;
}

.tool-badge {
  color: #7CFFD5;
  border-color: rgba(0,170,255,.42);
  background: rgba(4,35,25,.76);
  border-radius: 3px;
}

.tool-kv {
  border: 1px solid rgba(0,170,255,.24);
  background: rgba(0,20,18,.58);
}
.kv-row {
  border-bottom: 1px solid rgba(0,170,255,.14);
}
.kv-key {
  color: #89E8C9;
}
.kv-val {
  color: #E8FFF6;
}

.tool-btn {
  border: 1px solid rgba(0,170,255,.28);
  background: rgba(3,28,18,.64);
  color: #AFFFF0;
  border-radius: 4px;
}
.tool-btn:hover {
  border-color: rgba(0,170,255,.52);
  color: #D8FFF4;
  background: rgba(4,44,30,.78);
  box-shadow: 0 0 14px rgba(0,170,255,.24);
}
.tool-btn.tool-btn-ghost {
  background: rgba(0,16,28,.62);
  border-color: rgba(0,200,255,.34);
  color: #A9EAFF;
}

.cmd-hint {
  color: #95CBB8;
}

.profile-row {
  border: 1px solid rgba(0,170,255,.20);
  background: rgba(0,20,18,.56);
}
.profile-row:hover {
  border-color: rgba(0,170,255,.42);
  background: rgba(3,36,26,.68);
  box-shadow: 0 0 18px rgba(0,170,255,.15);
}
.profile-name { color: #EBFFF8; }
.profile-note { color: #9FD8C4; }

.profile-badge.neutral {
  color: #95CAB7;
  background: rgba(3,28,18,.64);
  border-color: rgba(0,170,255,.24);
}

.card-ribbon {
  background: linear-gradient(135deg, #00AAFF, #00C8FF);
  color: #001C14;
  box-shadow: 0 4px 14px rgba(0,170,255,.42);
}
.card-ribbon.ribbon-blue {
  background: linear-gradient(135deg, #00E6C7, #00AFFF);
  color: #001B18;
  box-shadow: 0 4px 14px rgba(0,200,255,.36);
}

.tag-chip {
  background: rgba(3,28,18,.58);
  border-color: rgba(0,170,255,.18);
}

/* ── kv-row key — subtle bullet prefix ───────────────────────────── */
.kv-key {
  display: flex; align-items: center; gap: 6px;
}
.kv-key::before {
  content: ""; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--lt-border-2);
}

/* ── Stat tile icons — colour per metric ─────────────────────────── */
.stat-tile[data-key="dl"]     .tile-icon { color: var(--blue);   border-color: rgba(0,170,255,.22); }
.stat-tile[data-key="ul"]     .tile-icon { color: var(--red);    border-color: rgba(255,0,51,.20); }
.stat-tile[data-key="ping"]   .tile-icon { color: var(--orange); border-color: rgba(255,102,0,.20); }
.stat-tile[data-key="jitter"] .tile-icon { color: var(--purple); border-color: rgba(136,0,255,.20); }

/* ── Measurement detail col colours ───────────────────────────────── */
.mdetail-col:nth-child(1) .mdetail-head { border-left: 3px solid rgba(0,79,204,.50); }
.mdetail-col:nth-child(2) .mdetail-head { border-left: 3px solid rgba(204,0,32,.50); }

/* ════════════════════════════════════════════════════════════════════════
   GSAP INTRO — initial invisible states handled in app.js
   Performance hints: promote needle + progress to own GPU layers
════════════════════════════════════════════════════════════════════════ */
#needle-wrap        { will-change: transform; }
.progress-bar-fill  { will-change: width; }
.lower-section      { content-visibility: auto; contain-intrinsic-size: 0 1200px; }

/* ════════════════════════════════════════════════════════════════════════
   FULL SITE DARK MODE — HACKER EDITION
════════════════════════════════════════════════════════════════════════ */

:root {
  --lt-bg:        #030C14;
  --lt-surface:   #081927;
  --lt-surface-2: #0A1E30;
  --lt-border:    rgba(0,170,255,.10);
  --lt-border-2:  rgba(0,170,255,.22);
  --lt-txt:       #EAF6FF;
  --lt-txt-2:     #A7CFE8;
  --lt-txt-3:     #6C9EC2;
  --lt-accent:    #00AAFF;
  --lt-accent-2:  #00C8FF;
}

@keyframes matrixDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(22px); }
}
@keyframes matrixSweep {
  0%   { transform: translateY(-16px); opacity: .18; }
  50%  { opacity: .34; }
  100% { transform: translateY(16px); opacity: .18; }
}
@keyframes neonPulse {
  0%,100% { opacity: .18; }
  50%     { opacity: .34; }
}
@keyframes glowBreathe {
  0%,100% { box-shadow: 0 0 0 rgba(0,170,255,0); }
  50%     { box-shadow: 0 0 24px rgba(0,170,255,.16); }
}

html,
body {
  background: #030B13;
}

body {
  position: relative;
  color: var(--lt-txt);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    linear-gradient(rgba(255,0,34,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,80,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .28;
  mix-blend-mode: screen;
}
body::after {
  background:
    radial-gradient(ellipse 70% 40% at 15% 8%, rgba(0,170,255,.13), transparent 70%),
    radial-gradient(ellipse 65% 45% at 88% 88%, rgba(0,200,255,.10), transparent 70%),
    radial-gradient(ellipse 40% 24% at 50% 18%, rgba(0,170,255,.09), transparent 72%);
  animation: neonPulse 5.8s ease-in-out infinite;
}

.page { position: relative; z-index: 5; }
.page::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0,170,255,.0) 0px,
      rgba(0,170,255,.0) 14px,
      rgba(0,170,255,.06) 15px,
      rgba(0,170,255,.0) 16px
    );
  opacity: .22;
  animation: matrixSweep 6.4s ease-in-out infinite;
}

#page-wrap { z-index: 2; }

.page {
  background:
    linear-gradient(180deg, #041018 0%, #03101A 48%, #030C14 100%);
}

.lower-section {
  background:
    radial-gradient(ellipse 80% 60% at 10% 15%, rgba(0,170,255,.08) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 92% 86%, rgba(0,200,255,.06) 0%, transparent 68%),
    #04111A;
}

.section-heading {
  color: #DFFFF4;
}

.seo-card,
.quality-item,
.mdetail-col,
.history-table {
  background:
    linear-gradient(rgba(0,170,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4,20,31,.95) 0%, rgba(2,13,22,.98) 100%);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(0,170,255,.20);
  color: #DFFFF5;
}

.seo-card h3,
.quality-label,
.h-col-label,
.mdetail-head {
  color: #AAFFE2;
}

.seo-card p,
.quality-sub,
.h-time,
.h-ping,
.h-jitter,
.mdetail-val,
.mdetail-size {
  color: #9FD2BD;
}

.h-header {
  background: rgba(5,27,24,.78);
  border-bottom: 1px solid rgba(0,170,255,.22);
}

.h-row {
  border-bottom: 1px solid rgba(0,170,255,.12);
}

.h-row:hover {
  background: rgba(0,170,255,.07);
}

.btn-clear-history {
  color: #8EFFE0;
  border-color: rgba(0,170,255,.30);
  background: rgba(3,30,20,.42);
}

.btn-clear-history:hover {
  color: #D7FFF2;
  border-color: rgba(0,170,255,.56);
  background: rgba(3,45,30,.62);
}

footer {
  border-top-color: rgba(0,170,255,.30);
}

.footer-mid {
  border-top-color: rgba(0,170,255,.18);
  border-bottom-color: rgba(0,170,255,.16);
}

.footer-tagline,
.footer-copy,
.footer-copy a,
.footer-note,
.footer-credit,
.footer-sites-label,
.footer-links a {
  color: #9FDAC3;
}

.footer-copy strong,
.footer-links a:hover,
.footer-copy a:hover,
.footer-sites-links a {
  color: #00AAFF;
}

.footer-sites-links a {
  border-color: rgba(0,170,255,.24);
  background: rgba(3,30,20,.40);
}

.footer-sites-links a:hover {
  background: rgba(5,48,34,.64);
  border-color: rgba(0,170,255,.54);
}

.tool-card,
.seo-card,
.quality-item,
.mdetail-col,
.history-table,
.info-item {
  animation: glowBreathe 7s ease-in-out infinite;
}

@keyframes terminalFlicker {
  0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; }
  20%, 62% { opacity: .82; }
}
@keyframes glitchShift {
  0%, 100% { transform: translateX(0); }
  24%      { transform: translateX(.35px); }
  25%      { transform: translateX(-.35px); }
  49%      { transform: translateX(.2px); }
  50%      { transform: translateX(-.2px); }
}

.panel-caption,
.console-tag,
.section-heading,
.tool-card-kicker,
.tool-badge,
.profile-badge,
.quality-badge,
.card-ribbon,
.footer-sites-label {
  animation: terminalFlicker 6.8s steps(2, end) infinite;
}

.panel-caption,
.section-heading,
.tool-card-kicker,
.tool-badge,
.card-ribbon {
  display: inline-block;
  animation:
    terminalFlicker 6.8s steps(2, end) infinite,
    glitchShift 8.6s ease-in-out infinite;
}

.quality-badge,
.profile-badge,
.tool-badge {
  box-shadow: 0 0 10px rgba(0,170,255,.16);
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .page::before,
  .speedtest-zone::before,
  .speedtest-zone::after,
  .tool-card,
  .seo-card,
  .quality-item,
  .mdetail-col,
  .history-table,
  .info-item,
  .panel-caption,
  .console-tag,
  .section-heading,
  .tool-card-kicker,
  .tool-badge,
  .profile-badge,
  .quality-badge,
  .card-ribbon,
  .footer-sites-label {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   BRAND COLORS — RED + BLUE REINFORCEMENT
════════════════════════════════════════════════════════════════════════ */

/* ── Atmospheric depth: red blob bottom-left + blue blob top-right ─── */
body::after {
  background:
    radial-gradient(ellipse 70% 40% at 12%  6%,  rgba(0,170,255,.13),  transparent 70%),
    radial-gradient(ellipse 55% 36% at 90%  10%, rgba(0,120,255,.14),   transparent 66%),
    radial-gradient(ellipse 45% 30% at 6%   90%, rgba(255,20,55,.11),   transparent 66%),
    radial-gradient(ellipse 50% 32% at 82%  88%, rgba(0,180,255,.08),   transparent 70%),
    radial-gradient(ellipse 38% 22% at 50%  50%, rgba(0,60,200,.06),    transparent 72%);
  animation: neonPulse 5.8s ease-in-out infinite;
}

/* ── Lower-section: blue glow top-right + red glow bottom-right ─── */
.lower-section {
  background:
    radial-gradient(ellipse 62% 42% at 4%   16%, rgba(0,170,255,.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 38% at 96%  10%, rgba(0,100,255,.11)  0%, transparent 62%),
    radial-gradient(ellipse 48% 30% at 96%  90%, rgba(255,20,50,.09)  0%, transparent 60%),
    radial-gradient(ellipse 40% 26% at 48%  52%, rgba(0,70,200,.05)   0%, transparent 68%),
    #04111A;
}

/* ── Section heading accent bar: tri-color brand gradient ──────── */
.section-heading::before {
  background: linear-gradient(180deg, #FF2244 0%, #004FCC 50%, #00AAFF 100%);
}

/* ── Info strip: item 2 → brand blue, item 4 → brand red ──────── */
.info-strip > .info-item:nth-child(2) { --info-color: #1A80FF; --info-glyph: "≈"; }
.info-strip > .info-item:nth-child(4) { --info-color: #FF2244; --info-glyph: "▸"; }

/* ── History table: Download = blue, Upload = red ─────────────── */
.h-dl { color: #4AB8FF; }
.h-ul { color: #FF4466; }

.h-grade-wrap {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.h-score {
  color: #8CD9FF;
  border: 1px solid rgba(0,120,255,.28);
  background: rgba(0,80,255,.08);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .68rem;
  letter-spacing: .08em;
  font-family: var(--font-mono);
}

.h-trend {
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .66rem;
  letter-spacing: .08em;
  font-family: var(--font-mono);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #B9DDF2;
}

.h-trend.good {
  color: #9DFFD9;
  border-color: rgba(0,170,255,.28);
  background: rgba(0,170,255,.08);
}

.h-trend.bad {
  color: #FF9AA8;
  border-color: rgba(255,20,50,.28);
  background: rgba(255,20,50,.08);
}

.h-trend.neutral {
  color: #B9DDF2;
  border-color: rgba(0,120,255,.22);
  background: rgba(0,80,255,.08);
}

.h-anom {
  color: #FFD08A;
  border: 1px solid rgba(255,180,0,.24);
  background: rgba(255,140,0,.08);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .65rem;
  letter-spacing: .06em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .h-score,
  .h-trend,
  .h-anom {
    display: none;
  }
}

/* ── Card ribbons: ribbon-blue → brand blue, default → brand red ─ */
.card-ribbon {
  background: linear-gradient(135deg, #CC0030, #FF2244);
  box-shadow: 0 2px 12px rgba(255,30,60,.44);
  color: #fff;
}
.card-ribbon.ribbon-blue {
  background: linear-gradient(135deg, #0044CC, #0066FF);
  box-shadow: 0 2px 14px rgba(0,100,255,.50);
  color: #fff;
}

/* ── Stat tiles: boosted blue (DL) + red (UL) glow on lit state ─ */
.stat-tile[data-key="dl"].lit {
  box-shadow: 0 0 0 1px rgba(0,130,255,.28) inset, 0 0 32px rgba(0,120,255,.24);
  animation: rpmPulse 2.2s ease-in-out infinite;
}
.stat-tile[data-key="ul"].lit {
  box-shadow: 0 0 0 1px rgba(255,20,50,.26) inset, 0 0 32px rgba(255,20,50,.22);
  animation: rpmPulse 2.2s ease-in-out infinite;
}
.tile-value.dl-lit {
  color: #2299FF;
  text-shadow: 0 0 22px rgba(0,150,255,.75), 0 0 44px rgba(0,100,255,.34);
}
.tile-value.ul-lit {
  color: #FF2E50;
  text-shadow: 0 0 22px rgba(255,30,60,.65), 0 0 44px rgba(255,0,40,.28);
}

/* ── Main card corner brackets: top = green+blue, bottom = red+cyan ─ */
.main-card::after {
  background:
    linear-gradient(90deg,  rgba(0,170,255,.72) 18px, transparent 0) top    left  /18px 1px no-repeat,
    linear-gradient(180deg, rgba(0,170,255,.72) 18px, transparent 0) top    left  /1px 18px no-repeat,
    linear-gradient(270deg, rgba(0,140,255,.68)  18px, transparent 0) top    right /18px 1px no-repeat,
    linear-gradient(180deg, rgba(0,140,255,.68)  18px, transparent 0) top    right /1px 18px no-repeat,
    linear-gradient(90deg,  rgba(255,30,60,.62)  18px, transparent 0) bottom left  /18px 1px no-repeat,
    linear-gradient(0deg,   rgba(255,30,60,.62)  18px, transparent 0) bottom left  /1px 18px no-repeat,
    linear-gradient(270deg, rgba(0,190,255,.58)  18px, transparent 0) bottom right /18px 1px no-repeat,
    linear-gradient(0deg,   rgba(0,190,255,.58)  18px, transparent 0) bottom right /1px 18px no-repeat;
}

/* ── Speedtest zone bottom edge: blue glow accent ──────────────── */
.speedtest-zone {
  box-shadow:
    inset 0  2px 0  rgba(0,170,255,.30),
    inset 0 -2px 0  rgba(0,100,255,.40),
    inset 0 -6px 24px rgba(0,80,255,.14);
}

/* ── Start button: green+blue dual glow ──────────────────────── */
.btn-start {
  box-shadow:
    0 0 34px rgba(0,170,255,.38),
    0 0 18px rgba(0,100,255,.22),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-start:hover:not(:disabled) {
  box-shadow:
    0 0 56px rgba(0,170,255,.52),
    0 0 28px rgba(0,100,255,.30),
    inset 0 1px 0 rgba(255,255,255,.20);
  filter: brightness(1.15);
}

/* ── Footer top border: full brand tri-color gradient ──────────── */
footer {
  border-top: none;
  position: relative;
}
footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    #FF2244 0%, #CC1133 12%,
    #004FCC 32%, #0066FF 50%,
    #00AAFF 70%, #00C8FF 100%
  );
  pointer-events: none; z-index: 2;
  box-shadow:
    0 0 18px rgba(0,170,255,.24),
    0 0 28px rgba(0,79,204,.20),
    0 0 14px rgba(255,30,60,.16);
}

/* ── Grade pill: blue brand accent ──────────────────────────── */
.grade-pill {
  color: #2299FF;
  border-color: rgba(0,120,255,.36);
  background: rgba(0,100,255,.10);
  box-shadow: 0 0 14px rgba(0,130,255,.20), 0 0 6px rgba(0,100,255,.12) inset;
}

/* ── Gauge shell: blue left accent, red top edge ────────────── */
.gauge-shell {
  border-color: rgba(0,170,255,.18);
  box-shadow:
    inset -2px 0   0 rgba(0,100,255,.16),
    inset  0   2px 0 rgba(255,30,60,.14);
}

/* ════════════════════════════════════════════════════════════════════════
   DARK MODE ONLY LOCK
════════════════════════════════════════════════════════════════════════ */
html {
  color-scheme: dark;
}

/* Keep dark look even if browser reports light preference */
@media (prefers-color-scheme: light) {
  :root {
    --lt-bg:        #030C14;
    --lt-surface:   #081927;
    --lt-surface-2: #0A1E30;
    --lt-border:    rgba(0,170,255,.10);
    --lt-border-2:  rgba(0,170,255,.22);
    --lt-txt:       #EAF6FF;
    --lt-txt-2:     #A7CFE8;
    --lt-txt-3:     #6C9EC2;
    --lt-accent:    #00AAFF;
    --lt-accent-2:  #00C8FF;
  }

  html,
  body,
  .page,
  .lower-section {
    background-color: #030B13 !important;
    color: #EAF6FF !important;
  }
}

/* ── Main accent override: blue over green ───────────────────────────── */
:root {
  --lt-accent: #00AAFF;
}

.panel-caption,
.g-chip strong,
.ps.active {
  color: #00AAFF !important;
  text-shadow: 0 0 8px rgba(0,170,255,.34) !important;
}

.phase-chip,
.g-chip,
.progress-bar-track,
.main-card,
.glass,
.gauge-shell,
.tool-card,
.info-item,
.elite-card {
  border-color: rgba(0,170,255,.24) !important;
}

.phase-chip .dot,
.btn-dot,
.ps.active .ps-dot,
.status-dot {
  background: #00AAFF !important;
  box-shadow: 0 0 10px rgba(0,170,255,.55) !important;
}

.btn-start {
  border-color: rgba(0,170,255,.60) !important;
  box-shadow: 0 0 28px rgba(0,170,255,.28), inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.btn-start:hover:not(:disabled) {
  box-shadow: 0 0 44px rgba(0,170,255,.42), inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.progress-bar-fill {
  background: linear-gradient(90deg, rgba(0,120,220,.75), rgba(0,170,255,1)) !important;
  box-shadow: 0 0 20px rgba(0,170,255,.44), 0 0 8px rgba(0,170,255,.62) inset !important;
}

.progress-bar-track::before {
  background: linear-gradient(90deg, transparent, rgba(0,170,255,.22), transparent) !important;
}
