/* ============ SafeScope core styles ============ */
:root {
  --bg: #050912;
  --bg-2: #0a1222;
  --panel: rgba(16, 26, 46, 0.72);
  --panel-solid: #0f1a2e;
  --panel-2: rgba(22, 36, 62, 0.8);
  --line: rgba(120, 170, 255, 0.14);
  --line-strong: rgba(120, 190, 255, 0.32);
  --text: #e6eefc;
  --muted: #8ea0c0;
  --dim: #5d6d8c;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #a78bfa;
  --pink: #f472b6;
  --green: #34d399;
  --lime: #a3e635;
  --amber: #fbbf24;
  --orange: #fb923c;
  --red: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 30px -4px rgba(34, 211, 238, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.eyebrow .ico { width: 14px; height: 14px; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, 0.35); }

/* ---------- animated background ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.bg-glow { position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--bg);
}
.bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); padding: 6px 12px; border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px; background: rgba(34, 211, 238, 0.07); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grad { background: linear-gradient(92deg, var(--cyan), var(--blue) 40%, var(--violet) 75%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 9, 18, 0.7); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.7); }
.brand-logo svg { width: 20px; height: 20px; color: #04101c; stroke-width: 2.4; }
.brand span b { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: flex; align-items: center; gap: 7px; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.nav-links a svg { width: 16px; height: 16px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(120, 170, 255, 0.1); text-decoration: none; }
.nav-links a.active { color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1120px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    background: rgba(5, 9, 18, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #031220; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.8); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(34, 211, 238, 1); }
.btn-ghost { background: rgba(120, 170, 255, 0.08); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(120, 170, 255, 0.16); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.card.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.6), transparent 35%, transparent 65%, rgba(167, 139, 250, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(34, 211, 238, 0.12); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.28); }
.icon-badge svg { width: 24px; height: 24px; }
.c-violet { --c: var(--violet); } .c-cyan { --c: var(--cyan); } .c-green { --c: var(--green); } .c-amber { --c: var(--amber); }
.c-pink { --c: var(--pink); } .c-red { --c: var(--red); } .c-blue { --c: var(--blue); } .c-orange { --c: var(--orange); }
.icon-badge[class*="c-"] { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 35%, transparent); }

/* tool cards */
.tool-card { display: flex; flex-direction: column; color: var(--text); transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s; overflow: hidden; }
.tool-card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 60px -25px rgba(34, 211, 238, 0.45); }
.tool-card p { color: var(--muted); font-size: 15px; flex: 1; }
.tool-card .go { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; font-size: 14px; margin-top: 8px; }
.tool-card .go svg { width: 16px; height: 16px; transition: transform 0.2s; }
.tool-card:hover .go svg { transform: translateX(4px); }
.tool-card .shine { position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--cyan)) 35%, transparent), transparent 70%); opacity: 0.5; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.tag.ext { background: rgba(167, 139, 250, 0.12); color: var(--violet); border-color: rgba(167, 139, 250, 0.3); }
.tag.paid { background: rgba(251, 191, 36, 0.12); color: var(--amber); border-color: rgba(251, 191, 36, 0.3); }
.tag svg { width: 12px; height: 12px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- hero ---------- */
.hero { padding: 70px 0 40px; }
.hero h1 { margin: 18px 0 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.page-hero { padding: 56px 0 10px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-top: 16px; }

/* ---------- live scan panel ---------- */
.scan { margin-top: 40px; padding: 0; overflow: hidden; }
.scan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 18, 0.5); font-family: var(--mono); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.scan-dots { display: flex; gap: 7px; }
.scan-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.scan-dots i:nth-child(2) { background: #febc2e; } .scan-dots i:nth-child(3) { background: #28c840; }
.scan-status { display: flex; align-items: center; gap: 8px; color: var(--green); }
.scan-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.2s infinite; }
.scan-body { display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .scan-body { grid-template-columns: 1fr; } }
.scan-left { padding: 26px; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .scan-left { border-right: 0; border-bottom: 1px solid var(--line); } }
.ip-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ip-big { font-family: var(--mono); font-weight: 700; font-size: clamp(26px, 4.4vw, 44px); letter-spacing: -0.02em; color: var(--cyan);
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.55); word-break: break-all; margin: 4px 0 6px; min-height: 1.2em; }
.ip-sub { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flag { font-size: 22px; line-height: 1; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
@media (max-width: 500px) { .kv-grid { grid-template-columns: 1fr; } }
.kv { background: rgba(5, 9, 18, 0.45); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; min-width: 0; }
.kv .k { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.kv .k svg { width: 13px; height: 13px; }
.kv .v { font-family: var(--mono); font-size: 14px; color: var(--text); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv .v.wrap { white-space: normal; word-break: break-word; }
.kv.warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.07); }
.kv.bad { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.07); }
.kv.good { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.06); }
.scan-right { position: relative; min-height: 360px; display: flex; flex-direction: column; }
#map { flex: 1; min-height: 300px; background: #0b1424; }
.map-note { font-size: 12px; color: var(--dim); padding: 10px 16px; border-top: 1px solid var(--line); }
.scan-lines { position: absolute; inset: 0; pointer-events: none; z-index: 500;
  background: repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.04) 0 2px, transparent 2px 4px); }
.scan-beam { position: absolute; left: 0; right: 0; height: 80px; z-index: 501; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.18), transparent); animation: beam 3.2s linear infinite; }
.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 22px 26px 26px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.leaflet-container { background: #0b1424 !important; font-family: var(--font); }
.leaflet-control-attribution { background: rgba(5, 9, 18, 0.75) !important; color: var(--dim) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.pulse-marker { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.8); animation: ring 1.8s infinite; border: 3px solid #fff; }

.skeleton { display: inline-block; min-width: 80px; height: 1em; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, rgba(120, 170, 255, 0.08), rgba(120, 170, 255, 0.22), rgba(120, 170, 255, 0.08)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 22px; text-align: left; }
.stat .num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-size: 14px; }
.stat .src { color: var(--dim); font-size: 11px; margin-top: 6px; }

/* ---------- forms ---------- */
.field { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 6px 6px 6px 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.field:focus-within { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.field > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 12px 0; font-size: 17px; font-family: var(--mono); }
.field input::placeholder { color: var(--dim); font-family: var(--font); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(120, 170, 255, 0.06);
  color: var(--muted); cursor: pointer; flex-shrink: 0; transition: color 0.2s, background 0.2s; }
.icon-btn:hover { color: var(--text); background: rgba(120, 170, 255, 0.14); }
.icon-btn svg { width: 19px; height: 19px; }
.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green); margin-top: 12px; }
.privacy-note svg { width: 15px; height: 15px; flex-shrink: 0; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(5, 9, 18, 0.4); cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle .sw { width: 42px; height: 24px; border-radius: 999px; background: rgba(120, 170, 255, 0.18); position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle .sw::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.toggle input:checked + .sw { background: var(--cyan); }
.toggle input:checked + .sw::after { transform: translateX(18px); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--cyan) var(--p, 50%), rgba(120, 170, 255, 0.18) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.35), 0 4px 10px rgba(0, 0, 0, 0.4); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.35); }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line); gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.on { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #031220; }

/* ---------- password tools ---------- */
.gen-output { font-family: var(--mono); font-size: clamp(18px, 3vw, 26px); font-weight: 600; word-break: break-all; padding: 22px 20px; border-radius: 14px;
  background: rgba(5, 9, 18, 0.7); border: 1px solid var(--line-strong); min-height: 76px; display: flex; align-items: center; gap: 12px; }
.gen-output .pw { flex: 1; min-width: 0; letter-spacing: 0.02em; }
.gen-output .pw .d { color: var(--cyan); } .gen-output .pw .s { color: var(--pink); } .gen-output .pw .u { color: #fff; } .gen-output .pw .l { color: #c8d4ea; }
.gen-output .pw .sep { color: var(--dim); }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 8px; }
.meter i { height: 8px; border-radius: 999px; background: rgba(120, 170, 255, 0.14); transition: background 0.3s, box-shadow 0.3s; }
.meter-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); flex-wrap: wrap; gap: 6px; }
.meter-label b { color: var(--text); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }
.len-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.len-row .len-val { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--cyan); min-width: 48px; text-align: right; }

.crack-hero { text-align: center; padding: 26px 16px; border-radius: 16px; background: rgba(5, 9, 18, 0.55); border: 1px solid var(--line); margin-top: 20px; position: relative; overflow: hidden; }
.crack-hero .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crack-hero .time { font-size: clamp(30px, 5.5vw, 54px); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0; transition: color 0.3s; }
.crack-hero .sub { color: var(--muted); font-size: 14px; }
.attackers { display: grid; gap: 12px; margin-top: 18px; }
.atk { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.atk .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(120, 170, 255, 0.08); border: 1px solid var(--line); color: var(--muted); }
.atk .ic svg { width: 20px; height: 20px; }
.atk .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.atk .top .name { color: var(--text); font-weight: 600; }
.atk .top .t { font-family: var(--mono); font-weight: 700; }
.atk .rate { font-size: 12px; color: var(--dim); }
.bar { height: 10px; border-radius: 999px; background: rgba(120, 170, 255, 0.1); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.6s cubic-bezier(.2, .8, .2, 1), background 0.3s; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(120, 170, 255, 0.08); border: 1px solid var(--line); color: var(--muted); transition: all 0.2s; }
.chip svg { width: 14px; height: 14px; }
.chip.on { color: var(--green); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.pattern-map { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pat { border-radius: 10px; padding: 6px 10px; font-family: var(--mono); font-size: 14px; border: 1px solid; }
.pat small { display: block; font-family: var(--font); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.pat.dictionary { color: var(--red); border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.1); }
.pat.spatial { color: var(--orange); border-color: rgba(251, 146, 60, 0.45); background: rgba(251, 146, 60, 0.1); }
.pat.repeat, .pat.sequence { color: var(--amber); border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); }
.pat.date, .pat.regex { color: var(--pink); border-color: rgba(244, 114, 182, 0.45); background: rgba(244, 114, 182, 0.1); }
.pat.bruteforce { color: var(--green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.3); font-size: 14px; }
.feedback ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.feedback b { color: var(--amber); }

/* ---------- result / alerts ---------- */
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 9, 18, 0.5); }
.alert > svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.alert.good { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); } .alert.good > svg { color: var(--green); }
.alert.warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); } .alert.warn > svg { color: var(--amber); }
.alert.bad { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.09); } .alert.bad > svg { color: var(--red); }
.alert.info > svg { color: var(--cyan); }
.alert h4 { margin: 0 0 4px; font-size: 16px; }
.alert p { margin: 0; color: var(--muted); font-size: 14px; }

/* gauge */
.gauge-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
@media (max-width: 700px) { .gauge-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.gauge { position: relative; width: 220px; height: 220px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: rgba(120, 170, 255, 0.12); stroke-width: 14; }
.gauge .val { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1), stroke 0.4s; filter: drop-shadow(0 0 8px currentColor); }
.gauge .center-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .center-txt .n { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.gauge .center-txt .l { font-size: 12px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.verdict { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin-bottom: 6px; }
.findings { display: grid; gap: 10px; margin-top: 22px; }
.finding { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: rgba(5, 9, 18, 0.5); border: 1px solid var(--line); animation: fadeUp 0.4s both; }
.finding .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.finding .fi svg { width: 18px; height: 18px; }
.finding.bad .fi { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.finding.warn .fi { background: rgba(251, 191, 36, 0.14); color: var(--amber); }
.finding.good .fi { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.finding.info .fi { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.finding h4 { margin: 0 0 2px; font-size: 15px; }
.finding p { margin: 0; color: var(--muted); font-size: 14px; }
.finding .pts { font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.url-break { font-family: var(--mono); font-size: 15px; word-break: break-all; padding: 14px 16px; border-radius: 12px; background: rgba(5, 9, 18, 0.6); border: 1px dashed var(--line-strong); margin-top: 16px; }
.url-break .scheme { color: var(--dim); } .url-break .sub { color: var(--amber); } .url-break .reg { color: var(--cyan); font-weight: 700; background: rgba(34, 211, 238, 0.12); border-radius: 4px; padding: 0 3px; }
.url-break .path { color: var(--muted); }
.link-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- phishing anatomy ---------- */
.mail { background: #f7f8fb; color: #1d2433; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); position: relative; }
.mail-bar { background: #e9ecf3; padding: 10px 16px; display: flex; gap: 7px; }
.mail-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .mail-bar i:nth-child(2) { background: #febc2e; } .mail-bar i:nth-child(3) { background: #28c840; }
.mail-head { padding: 18px 22px; border-bottom: 1px solid #e3e6ee; font-size: 14px; }
.mail-head .row { margin: 3px 0; } .mail-head .row b { color: #5a6378; font-weight: 600; display: inline-block; width: 64px; }
.mail-body { padding: 22px; font-size: 15px; line-height: 1.6; }
.mail-body .logo { font-weight: 800; font-size: 22px; color: #1f4fbf; margin-bottom: 14px; font-style: italic; }
.mail-body .fake-btn { display: inline-block; background: #1f4fbf; color: #fff; padding: 11px 22px; border-radius: 6px; font-weight: 700; margin: 8px 0 14px; }
.hot { position: relative; background: rgba(248, 113, 113, 0.18); border-radius: 4px; outline: 2px dashed rgba(220, 38, 38, 0.6); outline-offset: 1px; cursor: pointer; }
.pin { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; background: #dc2626; color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25); animation: ring-red 1.8s infinite; z-index: 2; font-family: var(--font); font-style: normal; }
.flag-list { display: grid; gap: 10px; counter-reset: f; }
.flag-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.flag-item .n { width: 30px; height: 30px; border-radius: 50%; background: rgba(248, 113, 113, 0.15); color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.flag-item h4 { margin: 3px 0 2px; font-size: 15px; }
.flag-item p { margin: 0; color: var(--muted); font-size: 14px; }
.flag-item.active { border-color: rgba(248, 113, 113, 0.6); background: rgba(248, 113, 113, 0.08); }
.hot.active { background: rgba(248, 113, 113, 0.4); }

/* quiz */
.quiz-card { max-width: 760px; margin: 0 auto; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz-progress i { flex: 1; height: 6px; border-radius: 999px; background: rgba(120, 170, 255, 0.14); }
.quiz-progress i.done-ok { background: var(--green); } .quiz-progress i.done-bad { background: var(--red); } .quiz-progress i.cur { background: var(--cyan); }
.msg { border-radius: 14px; padding: 18px; background: #0b1324; border: 1px solid var(--line-strong); font-size: 15px; }
.msg .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: grid; gap: 2px; }
.msg .meta b { color: var(--text); font-weight: 600; }
.msg .kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet); margin-bottom: 10px; }
.msg .kind svg { width: 14px; height: 14px; }
.msg.sms { background: #0f1b2f; } .msg .bubble { background: #1e2d48; padding: 12px 14px; border-radius: 16px 16px 16px 4px; display: inline-block; max-width: 100%; }
.quiz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.quiz-actions .btn { padding: 16px; font-size: 16px; }
.btn-scam { background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.45); color: var(--red); }
.btn-scam:hover { background: rgba(248, 113, 113, 0.24); }
.btn-legit { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.45); color: var(--green); }
.btn-legit:hover { background: rgba(52, 211, 153, 0.22); }
.quiz-result { margin-top: 16px; animation: fadeUp 0.35s both; }
.score-big { font-size: 72px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }

/* ---------- steps / timeline ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.step::before { counter-increment: s; content: counter(s); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.2)); border: 1px solid var(--line-strong); color: var(--cyan); }
.step h4 { margin: 4px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- checklist ---------- */
.check-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .check-layout { grid-template-columns: 1fr; } }
.score-panel { position: sticky; top: 90px; text-align: center; }
@media (max-width: 900px) { .score-panel { position: static; } }
.ring { position: relative; width: 200px; height: 200px; margin: 0 auto 10px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(120, 170, 255, 0.12); stroke-width: 12; }
.ring .val { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease, stroke 0.4s; }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; }
.ring .c .n { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ring .c .l { font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.grade { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cat-bars { display: grid; gap: 10px; margin-top: 18px; text-align: left; }
.cat-bars .row { font-size: 13px; color: var(--muted); }
.cat-bars .row .top { display: flex; justify-content: space-between; }
.check-cat { margin-bottom: 18px; padding: 0; overflow: hidden; }
.check-cat-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.check-cat-head .icon-badge { margin: 0; width: 42px; height: 42px; }
.check-cat-head h3 { margin: 0; font-size: 18px; }
.check-cat-head .cnt { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.check-item { border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: 0; }
.check-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 14px 22px; cursor: pointer; }
.check-row:hover { background: rgba(120, 170, 255, 0.04); }
.cbox { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: all 0.2s; }
.cbox svg { width: 16px; height: 16px; color: #04131f; opacity: 0; transform: scale(0.5); transition: all 0.2s; stroke-width: 3.5; }
.check-item.done .cbox { background: var(--green); border-color: var(--green); box-shadow: 0 0 14px -2px var(--green); }
.check-item.done .cbox svg { opacity: 1; transform: scale(1); }
.check-item.done .check-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(142, 160, 192, 0.5); }
.check-title { font-weight: 600; font-size: 15px; }
.check-sub { font-size: 13px; color: var(--dim); }
.how-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.how-btn:hover { color: var(--text); border-color: var(--line-strong); }
.how { display: none; padding: 0 22px 16px 66px; font-size: 14px; color: var(--muted); }
.how.open { display: block; animation: fadeUp 0.25s both; }
.how ol, .how ul { margin: 6px 0; padding-left: 18px; }
.how li { margin: 3px 0; }
.how b { color: var(--text); }
.prio { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.prio.high { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.prio.med { background: rgba(251, 191, 36, 0.15); color: var(--amber); }

/* ---------- link directory ---------- */
.link-card { display: flex; gap: 14px; align-items: flex-start; color: var(--text); padding: 18px; transition: transform 0.2s, border-color 0.2s; }
.link-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--line-strong); }
.link-card .icon-badge { margin: 0; flex-shrink: 0; width: 44px; height: 44px; }
.link-card h4 { margin: 0 0 3px; font-size: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.link-card h4 svg { width: 14px; height: 14px; color: var(--dim); }
.link-card p { margin: 0; color: var(--muted); font-size: 14px; }
.link-card .tags { margin: 8px 0 0; }

.search-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.search-buttons a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 9, 18, 0.45); color: var(--text); font-size: 14px; font-weight: 500; }
.search-buttons a:hover { text-decoration: none; border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.search-buttons a svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }

/* tips */
.tip { display: flex; flex-direction: column; }
.tip .num { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.tip p { color: var(--muted); font-size: 15px; }

.cta-band { text-align: center; padding: 48px 24px; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(600px 200px at 50% 0%, rgba(34, 211, 238, 0.18), transparent), radial-gradient(500px 200px at 50% 100%, rgba(167, 139, 250, 0.15), transparent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 30px; color: var(--muted); font-size: 14px; background: rgba(5, 9, 18, 0.6); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: 14px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 12px; color: var(--dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 100; background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; transition: all 0.25s; box-shadow: var(--shadow); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--green); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes beam { 0% { top: -80px; } 100% { top: 100%; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); } 70% { box-shadow: 0 0 0 22px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
@keyframes ring-red { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); } 70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.9s linear infinite; }

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

/* about page */
.about-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 600px) { .about-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.about-avatar { width: 132px; height: 132px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet), var(--pink)); box-shadow: 0 0 50px -10px rgba(34, 211, 238, 0.7); }
.about-avatar span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--cyan); }

/* dark map from free OpenStreetMap tiles */
.dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.5); }
.flag-img { display: inline-block; vertical-align: -2px; border-radius: 3px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.ip-sub .flag-img { margin-right: 2px; }

/* exposure score */
.exposure { display: grid; grid-template-columns: 300px 1fr; gap: 30px; margin-top: 24px; align-items: start; }
@media (max-width: 900px) { .exposure { grid-template-columns: 1fr; } }
.exposure .findings { margin-top: 16px; }
.finding .fix { margin-top: 6px; font-size: 13px; color: var(--cyan); }
.finding .fix b { color: var(--text); font-weight: 600; }
.fp-box { margin-top: 16px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-strong); background: rgba(5, 9, 18, 0.5); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
@media (max-width: 640px) { .fp-box { grid-template-columns: 1fr; } }
.fp-id { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--violet); letter-spacing: 0.04em; text-shadow: 0 0 20px rgba(167, 139, 250, 0.5); white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--cyan); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

/* ---------- scam checker tabs ---------- */
.tabs { display: flex; gap: 6px; max-width: 900px; margin: 0 auto 18px; padding: 6px; border-radius: 16px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 0; border-radius: 11px; background: none; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.tab .ico { width: 18px; height: 18px; }
.tab:hover { color: var(--text); background: rgba(120, 170, 255, 0.08); }
.tab.on { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #031220; box-shadow: 0 8px 24px -10px rgba(34, 211, 238, 0.8); }
@media (max-width: 560px) { .tab { padding: 10px 10px; font-size: 13px; gap: 6px; } .tab .ico { width: 16px; height: 16px; } }
.tool-box { max-width: 900px; margin-left: auto; margin-right: auto; }
.tool-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.tool-label .ico { color: var(--cyan); }
textarea { width: 100%; resize: vertical; min-height: 140px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; color: var(--text); font: 15px/1.55 var(--mono); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
textarea:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
textarea::placeholder { color: var(--dim); font-family: var(--font); }
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.examples { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 13px; }
.howto { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: rgba(5, 9, 18, 0.45); border: 1px solid var(--line); font-size: 14px; }
.howto summary { cursor: pointer; color: var(--cyan); font-weight: 600; }
.howto ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.howto b { color: var(--text); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.hl { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
mark { color: inherit; border-radius: 4px; padding: 0 2px; }
.hl-bad { background: rgba(248, 113, 113, 0.35); box-shadow: inset 0 -2px 0 var(--red); }
.hl-warn { background: rgba(251, 191, 36, 0.28); box-shadow: inset 0 -2px 0 var(--amber); }
.hl-link { background: rgba(34, 211, 238, 0.22); box-shadow: inset 0 -2px 0 var(--cyan); }
.msg-preview { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #0b1324; border: 1px solid var(--line-strong); font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }
.found { display: block; margin-top: 6px; font-size: 13px; color: var(--dim); }
.found q { color: var(--text); background: rgba(120, 170, 255, 0.1); border-radius: 6px; padding: 1px 6px; margin-right: 4px; quotes: none; display: inline-block; margin-top: 3px; }
.msg-link { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(5, 9, 18, 0.5); border: 1px solid var(--line); margin-top: 8px; }
.ml-txt { min-width: 0; }
@media (max-width: 520px) { .msg-link { grid-template-columns: auto 1fr; } .msg-link .btn { grid-column: 1 / -1; } }
.score-pill { display: inline-grid; place-items: center; min-width: 42px; height: 34px; padding: 0 8px; border-radius: 10px; font-family: var(--mono); font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.score-pill.big { min-width: 60px; height: 52px; font-size: 22px; border-radius: 14px; }
.qr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.qr-stage { position: relative; margin-top: 16px; border-radius: 16px; overflow: hidden; background: #000; max-width: 480px; aspect-ratio: 4 / 3; }
.qr-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-frame { position: absolute; inset: 15%; border: 3px solid var(--cyan); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35), 0 0 30px rgba(34, 211, 238, 0.6); pointer-events: none; }
.qr-stage .btn { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
.qr-link-row { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.auth-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.auth-chip { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1px solid; }
.auth-chip.good { color: var(--green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.auth-chip.warn { color: var(--amber); border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); }
.auth-chip.bad { color: var(--red); border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); }
.hops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.hops li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 8px 0; position: relative; }
.hops li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: -8px; width: 2px; background: var(--line-strong); }
.hop-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(120, 170, 255, 0.1); border: 1px solid var(--line-strong); color: var(--muted); }
.hops li.origin .hop-n { background: rgba(34, 211, 238, 0.18); color: var(--cyan); border-color: var(--cyan); }

/* crack time table */
.ct-scroll { overflow-x: auto; border-radius: 12px; }
.crack-table { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 640px; font-size: 13px; }
.crack-table th { color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 4px; text-align: center; }
.crack-table tbody th { font-family: var(--mono); color: var(--text); font-size: 14px; }
.crack-table td { text-align: center; padding: 9px 4px; border-radius: 8px; font-family: var(--mono); font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s; }
.crack-table td.you { background: var(--c); color: #04101c; transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 24px var(--c); position: relative; z-index: 1; }
.ct-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.ct-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ct-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* breach search */
.breach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 760px) { .breach-grid { grid-template-columns: 1fr; } }
.breach { padding: 16px; border-radius: 14px; background: rgba(5, 9, 18, 0.55); border: 1px solid var(--line); animation: fadeUp 0.35s both; min-width: 0; }
.br-head { display: flex; gap: 12px; align-items: center; }
.br-head h4 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.br-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; padding: 4px; flex-shrink: 0; }
.br-logo-x { display: grid; place-items: center; background: rgba(120, 170, 255, 0.15); color: var(--cyan); font-weight: 800; font-size: 20px; }
.br-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.br-stats div { padding: 8px 10px; border-radius: 10px; background: rgba(120, 170, 255, 0.06); border: 1px solid var(--line); }
.br-stats b { display: block; font-family: var(--mono); font-size: 15px; color: var(--red); }
.br-stats span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.br-desc { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.dcs { display: flex; flex-wrap: wrap; gap: 5px; }
.dc { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(120, 170, 255, 0.08); border: 1px solid var(--line); color: var(--muted); }
.dc.dc-hot { color: var(--red); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }

/* phishing page additions */
.country-seg { flex-wrap: wrap; margin-top: 12px; }
.country-seg button { padding: 7px 12px; font-size: 13px; }
.report-panel ul { padding-left: 18px; margin: 12px 0 0; font-size: 15px; display: grid; gap: 9px; color: var(--muted); }
.report-panel b { color: var(--text); }
.report-panel .mono { color: var(--cyan); }
.scam-cards .card { position: relative; overflow: hidden; }
.scam-amt { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-weight: 800; font-size: 22px; color: var(--red); text-shadow: 0 0 18px rgba(248, 113, 113, 0.45); }
.flagline { font-size: 14px; color: var(--muted); margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.flagline b { color: var(--amber); }

/* glossary */
.g-search { position: sticky; top: 76px; z-index: 5; }
.g-jump { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.g-jump a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.g-jump a:hover { color: var(--cyan); border-color: var(--cyan); text-decoration: none; }
.g-letter { font-size: 34px; margin: 34px 0 12px; color: var(--cyan); scroll-margin-top: 230px; }
.g-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .g-list { grid-template-columns: 1fr; } .g-search { position: static; } .g-letter { scroll-margin-top: 90px; } }
.g-item { padding: 18px 20px; scroll-margin-top: 230px; }
.g-item h3 { font-size: 17px; margin-bottom: 6px; }
.g-item p { color: var(--muted); font-size: 15px; margin: 0; }
.g-rel { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.g-target { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* accessibility */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--cyan); color: #031220; font-weight: 700; padding: 10px 16px; border-radius: 10px; transition: top 0.2s; }
.skip-link:focus { top: 12px; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.field input:focus-visible, textarea:focus-visible { outline: none; }
.tab-panel[hidden], [hidden] { display: none !important; }

/* mobile fixes */
.exposure > *, .gauge-wrap > *, .scan-body > *, .check-layout > * { min-width: 0; }
@media (max-width: 560px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .tab { padding: 11px 8px; }
  .exposure { padding: 20px 16px; }
  .fp-id { font-size: 19px; }
}
.findings > * { min-width: 0; }
.finding > div { min-width: 0; overflow-wrap: anywhere; }
.hibp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.hibp-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: var(--text); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.35); }
.hibp-badge:hover { text-decoration: none; border-color: var(--cyan); }
.hibp-badge .ico { width: 14px; height: 14px; color: var(--cyan); }

/* scam alerts */
.alert-feature h2 { margin: 10px 0 10px; }
.alert-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; margin: 6px 0 8px; }
.alert-meta .muted { display: inline-flex; align-items: center; gap: 6px; }
.alert-meta .ico { width: 14px; height: 14px; }
.alert-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.alert-cols > * { min-width: 0; }
@media (max-width: 760px) { .alert-cols { grid-template-columns: 1fr; } }
.alert-cols h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.alert-cols h4 .ico { color: var(--cyan); width: 18px; height: 18px; }
.alert-steps { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; font-size: 15px; }
.flag-box, .todo-box { padding: 16px 18px; border-radius: 14px; }
.flag-box { background: rgba(248, 113, 113, 0.07); border: 1px solid rgba(248, 113, 113, 0.3); }
.flag-box h4 .ico { color: var(--red); }
.todo-box { background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.3); }
.todo-box h4 .ico { color: var(--green); }
.flag-box ul, .todo-box ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 15px; }
.alert-list details { padding-bottom: 6px; }
.alert-list details > p { color: var(--muted); }
.alert-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; color: var(--text); border-color: rgba(251, 191, 36, 0.35); background: linear-gradient(90deg, rgba(251, 191, 36, 0.09), rgba(16, 26, 46, 0.72) 40%); transition: transform 0.2s, border-color 0.2s; }
.alert-banner:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--amber); }
.ab-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.ab-icon .ico { width: 24px; height: 24px; }
.ab-txt { display: grid; gap: 2px; min-width: 0; }
.ab-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.ab-txt b { font-size: 18px; }
.ab-txt .muted { font-size: 14px; }
.alert-banner .go { color: var(--amber); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.alert-banner .go .ico { width: 16px; height: 16px; }
@media (max-width: 640px) { .alert-banner { grid-template-columns: auto 1fr; } .alert-banner .go { grid-column: 1 / -1; } }

/* feedback */
.fb-btn { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(15, 26, 46, 0.92); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); transition: border-color 0.2s, transform 0.2s; }
.fb-btn:hover { border-color: var(--cyan); transform: translateY(-2px); }
.fb-btn .ico { color: var(--cyan); width: 18px; height: 18px; }
@media (max-width: 640px) { .fb-btn span { display: none; } .fb-btn { padding: 12px; right: 14px; bottom: 14px; } }
.fb-panel { position: fixed; right: 18px; bottom: 76px; z-index: 61; width: min(340px, calc(100vw - 28px)); padding: 16px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: fadeUp 0.2s both; }
.fb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fb-head .icon-btn { width: 34px; height: 34px; }
.fb-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; color: var(--text); border: 1px solid var(--line); margin-top: 8px; background: rgba(5, 9, 18, 0.45); }
.fb-opt:hover { text-decoration: none; border-color: var(--cyan); }
.fb-opt .ico { color: var(--cyan); width: 20px; height: 20px; margin-top: 2px; }
.fb-opt span { display: grid; }
.fb-opt small { color: var(--muted); font-size: 13px; }
.fb-note { font-size: 12px; color: var(--dim); margin: 10px 0 0; }
@media (max-width: 1280px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: rgba(5, 9, 18, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}

/* language switch */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(5, 9, 18, 0.5); margin-left: auto; margin-right: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 5px 8px; border-radius: 7px; color: var(--muted); line-height: 1; }
.lang-switch a:hover { color: var(--text); text-decoration: none; background: rgba(120, 170, 255, 0.12); }
.lang-switch .on { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #031220; }
.nav .nav-links { order: 2; }
.nav .lang-switch { order: 3; margin-left: 10px; margin-right: 0; }
.nav .nav-toggle { order: 4; }
@media (max-width: 1280px) { .nav .lang-switch { margin-left: auto; margin-right: 8px; } }
.lang-bar { position: relative; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.14)); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-bar span { display: inline-flex; align-items: center; gap: 8px; }
.lang-bar .ico { color: var(--cyan); }
.lang-bar .icon-btn { width: 32px; height: 32px; }

.nav-links a { white-space: nowrap; }
