:root {
  --bg: #05080f;
  --bg-2: #080d1a;
  --surface: rgba(13, 21, 40, 0.66);
  --surface-solid: #0c1426;
  --line: rgba(122, 162, 255, 0.14);
  --line-strong: rgba(122, 162, 255, 0.28);
  --text: #e9effc;
  --muted: #8fa0c4;
  --faint: #5b6a8c;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --blue: #5b8cff;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb4d6d;
  --magenta: #e879f9;
  --radius: 18px;
  --font-num: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Space Grotesk", system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(34, 211, 238, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.45), rgba(139, 92, 246, 0.45));
  border-radius: 6px;
  border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(34, 211, 238, 0.8), rgba(139, 92, 246, 0.8)); }

.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52vw 40vw at 12% -6%, rgba(34, 211, 238, 0.13), transparent 62%),
    radial-gradient(46vw 38vw at 88% 8%, rgba(139, 92, 246, 0.15), transparent 60%),
    radial-gradient(60vw 46vw at 50% 108%, rgba(91, 140, 255, 0.10), transparent 65%),
    var(--bg);
}
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(30vw 24vw at 70% 42%, rgba(232, 121, 249, 0.05), transparent 70%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 44px);
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled { background: rgba(5, 8, 15, 0.86); border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 32px; height: 32px; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45)); }
.brand-name { font-family: var(--font-num); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 9px; }
.brand-name em { font-style: normal; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; min-width: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 7px 13px;
  border-radius: 9px; transition: color 0.2s, background 0.2s; white-space: nowrap; flex: none;
}
.nav-links a:hover { color: var(--text); background: rgba(122, 162, 255, 0.08); }
.nav-links a.active { color: var(--cyan); background: rgba(34, 211, 238, 0.1); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 14.5px;
  border: none; border-radius: 12px; cursor: pointer;
  padding: 12px 24px; transition: transform 0.15s, box-shadow 0.25s, filter 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #04121a;
  background: linear-gradient(120deg, #38e0f8, #22d3ee 45%, #7c6cf8);
  box-shadow: 0 4px 22px rgba(34, 211, 238, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 30px rgba(34, 211, 238, 0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-ghost {
  color: var(--cyan); background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.btn-ghost:hover { background: rgba(34, 211, 238, 0.18); }
.btn[disabled] { opacity: 0.55; cursor: wait; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-num); font-size: 12.5px; color: var(--muted);
  background: rgba(122, 162, 255, 0.07); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); }
.chip svg { width: 13px; height: 13px; }
.chip-action { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); font-family: var(--font-body); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  color: var(--faint); background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--cyan); border-color: var(--line-strong); background: rgba(34, 211, 238, 0.07); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) 20px clamp(44px, 7vh, 72px);
  text-align: center;
}
.radar-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0.9;
  mask-image: radial-gradient(ellipse 75% 72% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 72% at 50% 42%, #000 30%, transparent 78%);
}
.radar-bg svg { width: min(88vw, 760px); height: auto; }
.radar-sweep { transform-origin: 300px 300px; animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { animation: blip 3.4s ease-in-out infinite; }
.blip.b2 { animation-delay: 1.1s; }
.blip.b3 { animation-delay: 2.2s; }
@keyframes blip { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-num); font-size: 12px; letter-spacing: 0.32em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}
h1 {
  font-size: clamp(30px, 5.6vw, 54px); font-weight: 900; line-height: 1.22;
  letter-spacing: 0.01em; margin-bottom: 16px;
}
.grad-text {
  background: linear-gradient(105deg, #38e0f8 5%, #5b8cff 48%, #a78bfa 80%, #e879f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(91, 140, 255, 0.35));
}
.hero-sub { color: var(--muted); font-size: clamp(13px, 1.8vw, 15.5px); margin-bottom: 34px; }

.search { max-width: 640px; margin: 0 auto; }
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: rgba(10, 17, 33, 0.82);
  border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 7px 7px 7px 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(34, 211, 238, 0);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-box:focus-within {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45), 0 0 32px rgba(34, 211, 238, 0.18);
}
.search-icon { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search-box input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-num); font-size: 15.5px; padding: 10px 4px;
}
.search-box input::placeholder { color: var(--faint); font-family: var(--font-body); font-size: 14px; }
.search-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 16px; min-height: 30px;
}
.history { display: contents; }
.history-label { font-size: 12px; color: var(--faint); margin-left: 6px; }

/* ---------- Layout ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.result-wrap { padding-bottom: 26px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(160, 190, 255, 0.07);
}
.card-title {
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  margin-right: 2px;
}
.card-title { justify-content: flex-start; }
.title-hint { margin-left: auto; font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }

/* ---------- Identity ---------- */
.identity {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
  border-color: var(--line-strong);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.06), rgba(13, 21, 40, 0.66) 40%, rgba(139, 92, 246, 0.07));
}
.identity-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.flag { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
.flag img { display: block; width: 42px; height: auto; border-radius: 5px; box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 1px rgba(122,162,255,0.2); }
.identity-ip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.identity-ip {
  font-family: var(--font-num); font-size: clamp(22px, 3.4vw, 32px); font-weight: 700;
  letter-spacing: 0.01em; word-break: break-all;
  background: linear-gradient(100deg, #fff, #a5c8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.identity-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.identity-badges { display: flex; gap: 9px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
  background: rgba(122, 162, 255, 0.07); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-version { font-family: var(--font-num); color: var(--blue); border-color: rgba(91, 140, 255, 0.4); background: rgba(91, 140, 255, 0.1); }
.badge.tone-green { color: var(--green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.badge.tone-amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); }
.badge.tone-red { color: var(--red); border-color: rgba(251, 77, 109, 0.5); background: rgba(251, 77, 109, 0.12); }
.badge.tone-blue { color: var(--blue); border-color: rgba(91, 140, 255, 0.45); background: rgba(91, 140, 255, 0.1); }
.badge.tone-violet { color: var(--violet); border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.12); }

/* ---------- Grid ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}
.score-card { grid-column: span 4; display: flex; flex-direction: column; }
.signals-card { grid-column: span 8; }
.location-card { grid-column: span 7; }
.network-card { grid-column: span 5; }

/* ---------- Score gauge ---------- */
.gauge-wrap { position: relative; width: 196px; margin: 4px auto 18px; }
.gauge { width: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(122, 162, 255, 0.12); stroke-width: 13; }
.gauge-fill {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: 527.8; stroke-dashoffset: 527.8;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
  transition: stroke 0.4s;
}
.gauge-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.gauge-num { font-family: var(--font-num); font-size: 52px; font-weight: 700; line-height: 1; }
.gauge-label { font-size: 12px; letter-spacing: 0.22em; color: var(--muted); }

.fraud-block { margin-top: auto; }
.fraud-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fraud-title { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.fraud-value { display: inline-flex; align-items: baseline; gap: 3px; }
.fraud-value b { font-family: var(--font-num); font-size: 30px; font-weight: 700; line-height: 1; color: var(--text); }
.fraud-value i { font-style: normal; font-family: var(--font-num); font-size: 15px; color: var(--muted); }
.fraud-level { font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; margin-left: 8px; align-self: center; color: var(--green); background: rgba(52,211,153,0.13); border: 1px solid rgba(52,211,153,0.3); }
.fraud-level.tone-amber { color: var(--amber); background: rgba(251,191,36,0.13); border-color: rgba(251,191,36,0.35); }
.fraud-level.tone-red { color: var(--red); background: rgba(251,77,109,0.14); border-color: rgba(251,77,109,0.4); }
.fraud-rainbow { position: relative; height: 16px; padding-top: 0; margin: 0 14px; }
.fraud-rainbow-track {
  position: absolute; left: 0; right: 0; top: 6px; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, #22c55e 0%, #84cc16 14%, #eab308 30%, #f59e0b 46%, #f97316 62%, #ef4444 80%, #b91c1c 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4), 0 0 16px rgba(249,115,22,0.18);
}
.fraud-rainbow-track::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: rgba(5,8,15,0.32); }
.fraud-marker { position: absolute; top: 0; left: 0%; transform: translateX(-50%); transition: left 1s cubic-bezier(0.22,1,0.36,1); z-index: 2; }
.fraud-marker::before { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 3px; height: 16px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 2px #000; }
.fraud-marker-tip { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-family: var(--font-num); font-size: 10.5px; font-weight: 600; color: #04121a; background: #fff; padding: 1px 6px; border-radius: 5px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.fraud-ticks { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--faint); margin-top: 8px; margin-left: 14px; margin-right: 14px; font-family: var(--font-num); }
.score-note { margin-top: 18px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }

/* ---------- Signals ---------- */
.signals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.signal {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  background: rgba(8, 13, 26, 0.5); transition: border-color 0.25s, transform 0.2s;
}
.signal:hover { transform: translateY(-2px); }
.signal-icon {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--faint); background: rgba(122,162,255,0.06);
}
.signal-icon svg { width: 18px; height: 18px; }
.signal-body { min-width: 0; }
.signal-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.signal-name { font-size: 13.5px; font-weight: 500; }
.signal-state { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-family: var(--font-num); letter-spacing: 0.04em; }
.signal-desc { font-size: 11.5px; color: var(--faint); line-height: 1.5; margin-top: 4px; }

.signal.clean .signal-icon { color: var(--green); border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.08); }
.signal.clean .signal-state { color: var(--green); background: rgba(52,211,153,0.12); }
.signal.clean { border-color: rgba(52,211,153,0.18); }
.signal.hit .signal-icon { color: var(--red); border-color: rgba(251,77,109,0.45); background: rgba(251,77,109,0.1); box-shadow: 0 0 14px rgba(251,77,109,0.15); }
.signal.hit .signal-state { color: var(--red); background: rgba(251,77,109,0.14); }
.signal.hit { border-color: rgba(251,77,109,0.3); background: rgba(251,77,109,0.04); }

/* ---------- Location / map ---------- */
.map-wrap {
  position: relative; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 16px; height: 250px;
  background: var(--surface-solid);
}
#map { position: absolute; inset: 0; z-index: 1; }
.map-fallback {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--faint); background:
    radial-gradient(circle at 50% 45%, rgba(34,211,238,0.08), transparent 60%), var(--surface-solid);
}
.map-fallback svg { width: 40px; height: 40px; }
.map-fallback p { font-family: var(--font-num); font-size: 13px; }
.leaflet-container { background: var(--surface-solid); font-family: var(--font-body); }
.leaflet-control-attribution { background: rgba(5,8,15,0.7) !important; color: var(--faint) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom a { background: rgba(12,20,38,0.9) !important; color: var(--text) !important; border-color: var(--line) !important; }
.map-pin { position: relative; width: 18px; height: 18px; }
.map-pin::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.map-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34,211,238,0.6); animation: pin-pulse 2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map-open {
  position: absolute; top: 10px; right: 10px; z-index: 800;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; padding: 6px 11px; border-radius: 9px;
  color: var(--text); background: rgba(10,16,30,0.88); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px); text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.map-open:hover { color: var(--cyan); border-color: rgba(34,211,238,0.5); }
.map-open svg { width: 12px; height: 12px; }
.leaflet-tooltip.map-tip {
  background: rgba(10,16,30,0.94); border: 1px solid var(--line-strong);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  color: var(--text); padding: 8px 13px; max-width: 240px; white-space: normal;
}
.leaflet-tooltip.map-tip::before { display: none; }
.map-tip-inner { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.map-tip-row { display: flex; align-items: center; gap: 7px; }
.map-tip-row img { width: 20px; height: 14px; border-radius: 2px; }
.map-tip-row strong { font-family: var(--font-num); font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.map-tip-place { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.45; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.kv > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed rgba(122,162,255,0.1); }
.kv dt { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.kv dd { font-size: 13.5px; color: var(--text); word-break: break-all; font-family: var(--font-num); }

/* ---------- Network / type verdict ---------- */
.type-verdict {
  display: flex; gap: 14px; align-items: center;
  border-radius: 14px; padding: 16px; margin-bottom: 16px;
  border: 1px solid var(--line-strong); background: rgba(8,13,26,0.55);
}
.type-icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); border: 1px solid rgba(52,211,153,0.4); background: rgba(52,211,153,0.09);
  box-shadow: 0 0 18px rgba(52,211,153,0.12);
}
.type-icon svg { width: 23px; height: 23px; }
.type-verdict strong { font-size: 17px; font-weight: 700; display: block; }
.type-verdict p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.type-verdict.tone-amber .type-icon { color: var(--amber); border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.09); box-shadow: 0 0 18px rgba(251,191,36,0.12); }
.type-verdict.tone-blue .type-icon { color: var(--blue); border-color: rgba(91,140,255,0.4); background: rgba(91,140,255,0.09); box-shadow: 0 0 18px rgba(91,140,255,0.12); }
.type-verdict.tone-violet .type-icon { color: var(--violet); border-color: rgba(139,92,246,0.45); background: rgba(139,92,246,0.1); box-shadow: 0 0 18px rgba(139,92,246,0.14); }

/* ---------- Loading & error ---------- */
.loading-panel, .error-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 72px 20px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(8,13,26,0.4); margin-bottom: 20px;
}
.radar-loader { position: relative; width: 84px; height: 84px; }
.radar-loader span { position: absolute; border-radius: 50%; border: 1px solid rgba(34,211,238,0.35); }
.radar-loader span:nth-child(1) { inset: 0; }
.radar-loader span:nth-child(2) { inset: 18px; border-color: rgba(139,92,246,0.4); }
.radar-loader span:nth-child(3) { inset: 36px; border-color: rgba(34,211,238,0.5); }
.radar-loader i {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34,211,238,0.5) 55deg, transparent 80deg);
  animation: sweep 1.6s linear infinite;
}
.loading-text { font-size: 15px; color: var(--text); }
.loading-sub { font-size: 12.5px; color: var(--faint); }
.dots i { animation: dot-blink 1.4s infinite; font-style: normal; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.error-panel svg { width: 40px; height: 40px; color: var(--amber); }
.error-panel p { color: var(--muted); font-size: 14.5px; }

/* ---------- About ---------- */
.about { padding: clamp(40px, 7vh, 72px) 0 30px; }
.section-title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; text-align: center; margin-bottom: 30px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-card h3 { font-size: 16px; margin: 14px 0 8px; }
.about-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.about-icon {
  width: 44px; height: 44px; border-radius: 13px; color: var(--ac);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ac) 40%, transparent);
  background: color-mix(in srgb, var(--ac) 9%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--ac) 14%, transparent);
}
.about-icon svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 34px 20px 40px; margin-top: 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer-sub { font-size: 11.5px; color: var(--faint); margin-top: 5px; font-family: var(--font-num); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(12, 20, 38, 0.95); border: 1px solid rgba(34,211,238,0.4);
  color: var(--text); font-size: 13px; padding: 10px 20px; border-radius: 12px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.5), 0 0 20px rgba(34,211,238,0.15);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .score-card { grid-column: span 5; }
  .signals-card { grid-column: span 7; }
  .location-card { grid-column: span 6; }
  .network-card { grid-column: span 6; }
}
@media (max-width: 820px) {
  .nav { gap: 10px; }
  .nav-links { overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 10px; font-size: 12.5px; }
  .grid { grid-template-columns: 1fr; }
  .score-card, .signals-card, .location-card, .network-card { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .identity { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .brand-name { display: none; }
  .search-box { flex-wrap: wrap; padding: 10px; }
  .search-box input { flex: 1 1 100%; order: -1; padding: 6px 8px 12px; }
  .search-icon { display: none; }
  .search-box .btn { flex: 1; }
  .kv { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .flag { font-size: 32px; }
  .map-wrap { height: 210px; }
  .map-open { top: auto; bottom: 24px; right: 8px; padding: 5px 9px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Views & routing ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.view { animation: view-in 0.45s cubic-bezier(0.22,1,0.36,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view-head { text-align: center; padding: calc(var(--nav-h) + clamp(36px, 6vh, 64px)) 0 clamp(24px, 4vh, 40px); max-width: 760px; margin: 0 auto; }
.view-head h1 { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: 14px; }
.view-sub { color: var(--muted); font-size: clamp(13px, 1.7vw, 15px); line-height: 1.8; }
.view-sub.dim { color: var(--faint); font-size: 12.5px; margin-top: 10px; }
.nav-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 6px; vertical-align: middle; box-shadow: 0 0 8px var(--green); animation: blip 2s ease-in-out infinite; }

/* ---------- Tool cards & bars ---------- */
.tool-card { margin-bottom: 20px; }
.tool-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.card-title.inline { margin-bottom: 0; display: inline-flex; align-items: center; gap: 9px; }
.card-title.inline svg { width: 18px; height: 18px; color: var(--cyan); }
.card-title.inline::before { display: none; }
.tool-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-note { font-size: 12px; color: var(--faint); line-height: 1.7; margin-top: 16px; }
.tool-note.block { margin-top: 0; }
.http-exit { font-size: 11.5px; color: var(--faint); font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.http-exit b { color: var(--cyan); font-family: var(--font-num); }

/* ---------- Connection state ---------- */
.conn-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.conn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 8px currentColor; }
.conn-state.live .conn-dot { background: var(--green); animation: blip 1.6s ease-in-out infinite; }
.conn-state.live { color: var(--green); }
.conn-state.paused .conn-dot { background: var(--amber); }
.conn-state.paused { color: var(--amber); }
.conn-state.error .conn-dot { background: var(--red); }
.conn-state.error { color: var(--red); }
.asn-count { font-size: 12.5px; color: var(--faint); }
.asn-count b { color: var(--cyan); font-family: var(--font-num); }

/* ---------- Data tables ---------- */
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.data-table th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); padding: 12px 16px; background: rgba(8,13,26,0.7); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid rgba(122,162,255,0.08); color: var(--text); font-family: var(--font-num); vertical-align: middle; }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(34,211,238,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: center; width: 60px; }
.data-table .empty-row td { text-align: center; color: var(--faint); padding: 34px 16px; font-family: var(--font-body); }
.data-table .flag-cell { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); }
.data-table .flag-cell img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(122,162,255,0.2); }
.data-table .mono { font-family: var(--font-num); color: var(--cyan); }
.data-table .name-cell { font-family: var(--font-body); color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-new { animation: row-flash 1.1s ease; }
@keyframes row-flash { from { background: rgba(34,211,238,0.16); } to { background: transparent; } }
.tag { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 6px; font-family: var(--font-body); }
.tag.announce { color: var(--green); background: rgba(52,211,153,0.12); }
.tag.withdraw { color: var(--amber); background: rgba(251,191,36,0.12); }
.hit-pill { display: inline-block; min-width: 40px; text-align: center; font-size: 11px; padding: 2px 9px; border-radius: 999px; color: var(--muted); background: rgba(122,162,255,0.1); font-family: var(--font-num); }
.hit-pill.hot { color: var(--green); background: rgba(52,211,153,0.13); }

/* ---------- Verdict banner ---------- */
.verdict-banner { display: flex; gap: 14px; align-items: flex-start; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; border: 1px solid; }
.verdict-banner.good { color: var(--green); border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.07); }
.verdict-banner.bad { color: var(--red); border-color: rgba(251,77,109,0.4); background: rgba(251,77,109,0.08); }
.verdict-banner.warn { color: var(--amber); border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.07); }
.verdict-icon { flex: none; width: 26px; height: 26px; }
.verdict-icon svg { width: 26px; height: 26px; }
.verdict-banner strong { font-size: 15.5px; display: block; }
.verdict-banner p { font-size: 12.5px; margin-top: 4px; opacity: 0.9; line-height: 1.6; }
.loading-inline { display: flex; align-items: center; gap: 16px; padding: 22px 6px; color: var(--muted); font-size: 13.5px; }
.radar-loader.sm { width: 40px; height: 40px; flex: none; }
.radar-loader.sm span:nth-child(2) { inset: 9px; }
.radar-loader.sm span:nth-child(3) { inset: 18px; }

/* ---------- STUN list ---------- */
.stun-list { display: flex; flex-direction: column; gap: 10px; }
.stun-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; background: rgba(8,13,26,0.5); transition: border-color 0.25s; }
.stun-row.leak { border-color: rgba(251,77,109,0.4); background: rgba(251,77,109,0.05); }
.stun-row.ok { border-color: rgba(52,211,153,0.22); }
.stun-info { min-width: 0; }
.stun-host { font-family: var(--font-num); font-size: 13px; color: var(--text); word-break: break-all; }
.stun-tags { display: flex; gap: 6px; margin-top: 6px; }
.stun-tags .tag { color: var(--blue); background: rgba(91,140,255,0.12); }
.stun-tags .tag.org { color: var(--muted); background: rgba(122,162,255,0.1); }
.stun-result { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.stun-result svg { width: 15px; height: 15px; }
.stun-result.ok { color: var(--green); }
.stun-result.leak { color: var(--red); }
.stun-result.pending { color: var(--faint); }
.stun-result .spin { width: 14px; height: 14px; border: 2px solid rgba(122,162,255,0.25); border-top-color: var(--cyan); border-radius: 50%; animation: sweep 0.8s linear infinite; }

/* ---------- Exit section (embedded in query view) ---------- */
.exit-section { margin-top: 6px; padding-top: 26px; border-top: 1px dashed rgba(122,162,255,0.14); }
.exit-section-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.exit-section-head .title-hint { flex: 1; min-width: 180px; }
.exit-section-head .btn { margin-left: auto; }
.exit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.exit-card { position: relative; overflow: hidden; }
.exit-card::before { content: ""; position: absolute; top: -40%; right: -20%; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,0.12), transparent 70%); pointer-events: none; }
.exit-card.v6::before { background: radial-gradient(circle, rgba(139,92,246,0.14), transparent 70%); }
.exit-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.exit-proto { font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.exit-ip { font-family: var(--font-num); font-size: clamp(18px, 2.6vw, 26px); font-weight: 700; overflow-wrap: break-word; color: var(--text); min-height: 34px; }
.exit-ip.none { color: var(--faint); }
.exit-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.exit-summary { font-size: 13px; color: var(--muted); line-height: 1.8; background: rgba(8,13,26,0.6); border: 1px solid var(--line); border-radius: 11px; padding: 12px 16px; margin: 0; }
.exit-summary b { color: var(--cyan); }

/* ---------- API ---------- */
.api-example { position: relative; display: flex; align-items: center; gap: 12px; background: rgba(5,8,15,0.7); border: 1px solid var(--line); border-radius: 11px; padding: 13px 16px; margin-bottom: 12px; }
.api-example:last-child { margin-bottom: 0; }
.api-label { font-size: 11.5px; color: var(--faint); white-space: nowrap; flex: none; }
.api-example code { font-family: var(--font-num); font-size: 12.5px; color: var(--cyan); overflow-x: auto; white-space: nowrap; flex: 1; scrollbar-width: thin; }
.api-copy { flex: none; }
.api-try { display: flex; gap: 10px; margin-bottom: 14px; }
.api-try input { flex: 1; min-width: 0; background: rgba(5,8,15,0.7); border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 15px; color: var(--text); font-family: var(--font-num); font-size: 14px; outline: none; transition: border-color 0.2s; }
.api-try input:focus { border-color: rgba(34,211,238,0.55); }
.api-response { background: rgba(5,8,15,0.85); border: 1px solid var(--line); border-radius: 11px; padding: 16px; font-family: var(--font-num); font-size: 12px; line-height: 1.7; color: #a5e8d8; overflow-x: auto; max-height: 420px; white-space: pre; margin: 0; }
.api-fields { display: grid; gap: 0; }
.api-fields > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(122,162,255,0.1); }
.api-fields > div:last-child { border-bottom: none; }
.api-fields dt { font-family: var(--font-num); font-size: 12.5px; color: var(--cyan); }
.api-fields dd { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.footer { margin-bottom: 10px; }

/* ---------- New responsive ---------- */
@media (max-width: 820px) {
  .exit-grid { grid-template-columns: 1fr; }
  .api-fields > div { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 480px) {
  .tool-bar { gap: 10px; }
  .api-example { flex-wrap: wrap; }
  .api-label { flex: 1 1 100%; }
  .view-head { padding-top: calc(var(--nav-h) + 28px); }
}