/* ── Perfping v2 — Design System ──────────────────────────────────────────
   Fonturi: IBM Plex Mono (mono) + Inter (sans)
   Categorii: Network=Verde, DNS=Albastru, Security=Violet, Web=Roșu
   Culori: pastelate, lizibile zi/noapte
   ─────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens Light ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #f4f3f0;
  --bg-card:    #ffffff;
  --bg-sub:     #eeece8;
  --bg-hov:     #e8e6e1;

  /* Text */
  --text:       #1c1c1e;
  --t2:         #6b6b70;
  --t3:         #aeaeb2;

  /* Borders */
  --bd:         rgba(0,0,0,0.07);
  --bd2:        rgba(0,0,0,0.12);
  --bd3:        rgba(0,0,0,0.18);

  /* ── Category: Network (Verde pastel) */
  --net:        #2d9c6e;
  --net-light:  #e6f5ef;
  --net-mid:    #a3d9c0;
  --net-dark:   #1a7a52;
  --net-glow:   rgba(45,156,110,0.12);

  /* ── Category: DNS (Albastru pastel) */
  --dns:        #2c7be5;
  --dns-light:  #e8f1fd;
  --dns-mid:    #a3c4f5;
  --dns-dark:   #1a5dc0;
  --dns-glow:   rgba(44,123,229,0.12);

  /* ── Category: Security (Violet pastel) */
  --sec:        #7c4dcc;
  --sec-light:  #f0eafa;
  --sec-mid:    #c4a8e8;
  --sec-dark:   #5e35a8;
  --sec-glow:   rgba(124,77,204,0.12);

  /* ── Category: Web (Roșu pastel) */
  --web:        #e05252;
  --web-light:  #fdeaea;
  --web-mid:    #f5a8a8;
  --web-dark:   #c03030;
  --web-glow:   rgba(224,82,82,0.12);

  /* Semantic */
  --ok:         #2d9c6e;
  --ok-bg:      #e6f5ef;
  --fail:       #e05252;
  --fail-bg:    #fdeaea;
  --warn:       #d97706;
  --warn-bg:    #fef3c7;

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

  /* Layout */
  --r:    8px;
  --rl:   12px;
  --rx:   20px;
  --sh-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh:    0 4px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
}

/* ── Tokens Dark ──────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #111113;
    --bg-card:   #1c1c1f;
    --bg-sub:    #242428;
    --bg-hov:    #2c2c30;
    --text:      #e8e8ec;
    --t2:        #8a8a96;
    --t3:        #52525c;
    --bd:        rgba(255,255,255,0.07);
    --bd2:       rgba(255,255,255,0.12);
    --bd3:       rgba(255,255,255,0.18);
    --net:       #3dbf88;
    --net-light: #0d2a1c;
    --net-mid:   #1d6645;
    --net-dark:  #5de0a8;
    --dns:       #5b9ef5;
    --dns-light: #0c1e3a;
    --dns-mid:   #1a4a8c;
    --dns-dark:  #7fbaf8;
    --sec:       #a07de0;
    --sec-light: #1a0d30;
    --sec-mid:   #4a2890;
    --sec-dark:  #c4a8f0;
    --web:       #f07070;
    --web-light: #2a0d0d;
    --web-mid:   #8c2020;
    --web-dark:  #f59898;
    --ok:        #3dbf88;
    --ok-bg:     #0d2a1c;
    --fail:      #f07070;
    --fail-bg:   #2a0d0d;
    --warn:      #f5a623;
    --warn-bg:   #2a1800;
    --sh-sm:     0 1px 3px rgba(0,0,0,0.3);
    --sh:        0 4px 16px rgba(0,0,0,0.4);
  }
}

/* ── Base ──────────────────────────────────────────────────────────────── */
html { font-size: 14px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--bd);
}

/* ── Logo — terminal prompt style ─────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-sub);
  border: 0.5px solid var(--bd2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--net);
  letter-spacing: -0.05em;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--net);
  opacity: 0;
  animation: blink 1.1s step-end infinite;
  margin-left: 1px;
  border-radius: 1px;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

.logo-text {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-text em { color: var(--net); font-style: normal; }

.hdr-right { display: flex; align-items: center; gap: 6px; }

.node-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--rx);
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  border: 0.5px solid var(--bd2);
  background: var(--bg-card);
  font-family: var(--mono);
}

.nd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--net);
  animation: np 2s ease-in-out infinite;
}
@keyframes np { 0%,100%{opacity:1}50%{opacity:.3} }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 40px 0 28px;
  text-align: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--net);
  background: var(--net-light);
  border: 0.5px solid var(--net-mid);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero-label::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--net); }

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text);
}

.hero h1 .cat-color { color: var(--net); transition: color .3s; }
.hero p { font-size: 13px; color: var(--t2); max-width: 500px; margin: 0 auto; }

/* ── Category tabs ──────────────────────────────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-sub);
  border-radius: var(--rx);
  border: 0.5px solid var(--bd);
  width: fit-content;
  margin: 0 auto 24px;
}

.ctab {
  padding: 8px 20px;
  border-radius: calc(var(--rx) - 4px);
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ctab:hover { color: var(--text); }
.ctab .ct-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .5;
}

.ctab[data-cat="net"]  .ct-dot { background: var(--net); }
.ctab[data-cat="dns"]  .ct-dot { background: var(--dns); }
.ctab[data-cat="sec"]  .ct-dot { background: var(--sec); }
.ctab[data-cat="web"]  .ct-dot { background: var(--web); }

.ctab.on {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--sh-sm);
  border: 0.5px solid var(--bd2);
}
.ctab.on .ct-dot { opacity: 1; }

.ctab[data-cat="net"].on  { color: var(--net); }
.ctab[data-cat="dns"].on  { color: var(--dns); }
.ctab[data-cat="sec"].on  { color: var(--sec); }
.ctab[data-cat="web"].on  { color: var(--web); }

/* ── Panels ─────────────────────────────────────────────────────────────── */
.panel { display: none; }
.panel.on { display: block; }

/* ── Search bar ─────────────────────────────────────────────────────────── */
.sbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bd2);
  border-radius: var(--rl);
  padding: 8px 8px 8px 16px;
  box-shadow: var(--sh-sm);
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 14px;
}
.sbar:focus-within {
  border-color: var(--cat-color, var(--net));
  box-shadow: 0 0 0 3px var(--cat-glow, var(--net-glow)), var(--sh-sm);
}

.sbar-icon { flex-shrink:0; width:16px; height:16px; opacity:.4; color: var(--text); }

.sbar input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.sbar input::placeholder { font-family: var(--sans); font-weight: 400; color: var(--t3); }

.sbar-sep { width: 0.5px; height: 22px; background: var(--bd2); flex-shrink:0; }

/* Go button — coloare per categorie */
.go-btn {
  padding: 9px 20px;
  background: var(--cat-color, var(--net));
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, transform .1s;
  letter-spacing: -.01em;
}
.go-btn:hover   { opacity: .88; }
.go-btn:active  { transform: scale(.98); }
.go-btn:disabled { opacity: .45; cursor: wait; }

/* Panel cu variabile de culoare */
#panel-net { --cat-color: var(--net); --cat-light: var(--net-light); --cat-mid: var(--net-mid); --cat-glow: var(--net-glow); }
#panel-dns { --cat-color: var(--dns); --cat-light: var(--dns-light); --cat-mid: var(--dns-mid); --cat-glow: var(--dns-glow); }
#panel-sec { --cat-color: var(--sec); --cat-light: var(--sec-light); --cat-mid: var(--sec-mid); --cat-glow: var(--sec-glow); }
#panel-web { --cat-color: var(--web); --cat-light: var(--web-light); --cat-mid: var(--web-mid); --cat-glow: var(--web-glow); }

/* ── Tool pills ─────────────────────────────────────────────────────────── */
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--bd2);
  background: var(--bg-card);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: all .15s;
  box-shadow: var(--sh-sm);
}
.pill:hover { border-color: var(--bd3); color: var(--text); }
.pill.on {
  background: var(--cat-color, var(--net));
  color: #fff;
  border-color: var(--cat-color, var(--net));
}

.pill-d {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  flex-shrink: 0;
}
.pill.on .pill-d { opacity: 1; }

/* ── DNS buttons ─────────────────────────────────────────────────────────── */
.tool-btns { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.tool-btn {
  padding: 7px 13px;
  border: 0.5px solid var(--bd2);
  background: var(--bg-card);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: all .15s;
  box-shadow: var(--sh-sm);
}
.tool-btn:hover { color: var(--text); border-color: var(--bd3); }
.tool-btn.on {
  background: var(--cat-color, var(--dns));
  color: #fff;
  border-color: var(--cat-color, var(--dns));
}

/* ── IP info strip ──────────────────────────────────────────────────────── */
.ip-strip {
  display: none;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 0.5px solid var(--bd);
  border-radius: var(--r);
  margin-bottom: 14px;
  box-shadow: var(--sh-sm);
}
.ip-strip.on { display: flex; }
.ip-strip .iv { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }
.ip-sep { width: 0.5px; height: 16px; background: var(--bd2); }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--mono);
}
.b-default { background: var(--bg-sub); color: var(--t2); border: 0.5px solid var(--bd); }
.b-ok      { background: var(--ok-bg);   color: var(--ok);   }
.b-fail    { background: var(--fail-bg); color: var(--fail); }
.b-warn    { background: var(--warn-bg); color: var(--warn); }
.b-cat     { background: var(--cat-light); color: var(--cat-color); border: 0.5px solid var(--cat-mid); }

/* ── Results header ──────────────────────────────────────────────────────── */
.res-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.res-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.chk-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-sub);
  border: 0.5px solid var(--bd);
  border-radius: 20px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
}
.chk-pill b { color: var(--cat-color, var(--net)); font-weight: 600; }

.run-s { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--t2); }
.rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--cat-color, var(--net)); flex-shrink: 0; }
.rdot.spin { animation: rsp 1.2s ease-in-out infinite; }
@keyframes rsp { 0%,100%{opacity:1}50%{opacity:.15} }

.run-stats { display: flex; gap: 10px; font-size: 12px; color: var(--t2); }
.run-stats b { font-weight: 600; color: var(--text); }

.btn-sm {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--bg-card);
  border: 0.5px solid var(--bd2);
  border-radius: var(--r);
  font-size: 11px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--sans);
}
.btn-sm:hover { border-color: var(--bd3); color: var(--text); }

/* ── Region filter ───────────────────────────────────────────────────────── */
.rfilt { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.rfilt::-webkit-scrollbar { display: none; }
.rfb {
  padding: 4px 11px;
  border-radius: 20px;
  border: 0.5px solid var(--bd);
  background: var(--bg-card);
  font-size: 11px;
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}
.rfb:hover { border-color: var(--bd3); color: var(--text); }
.rfb.on { background: var(--cat-color, var(--net)); color: #fff; border-color: var(--cat-color, var(--net)); }

/* ── Results table ───────────────────────────────────────────────────────── */
.tbl {
  background: var(--bg-card);
  border: 0.5px solid var(--bd2);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--sh);
}

.tbl-h {
  display: grid;
  grid-template-columns: 46px 1fr 70px 200px 115px;
  padding: 8px 16px;
  background: var(--bg-sub);
  border-bottom: 0.5px solid var(--bd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--t3);
  font-family: var(--mono);
}

.tbl-r {
  display: grid;
  grid-template-columns: 46px 1fr 70px 200px 115px;
  padding: 0 16px;
  align-items: center;
  border-bottom: 0.5px solid var(--bd);
  min-height: 52px;
  transition: background .12s;
}
.tbl-r:last-child { border-bottom: none; }
.tbl-r:hover { background: var(--bg-hov); }
.tbl-r.pending-row { opacity: .75; }

/* Animație apariție rând */
.tbl-r { opacity: 0; transform: translateY(5px); animation: ri .2s ease forwards; }
@keyframes ri { to { opacity: 1; transform: none; } }

.tbl-h.http, .tbl-r.http { grid-template-columns: 46px 1fr 55px 72px 160px 115px; }
.tbl-h.tcp,  .tbl-r.tcp  { grid-template-columns: 46px 1fr 88px 70px 1fr 115px; }

/* Progress bar */
.prog-bar { height: 3px; background: var(--bg-sub); overflow: hidden; }
.prog-f {
  height: 100%;
  background: linear-gradient(90deg, var(--cat-color, var(--net)), var(--cat-mid, var(--net-mid)));
  transition: width .4s ease;
}

/* Cells */
.c-flag { font-size: 18px; line-height: 1; }
.c-loc  { display: flex; flex-direction: column; gap: 1px; }
.loc-c  { font-size: 13px; font-weight: 600; color: var(--text); }
.loc-s  { font-size: 10px; color: var(--t3); font-family: var(--mono); }
.ok-t   { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ok); }
.fail-t { font-family: var(--mono); font-size: 12px; color: var(--fail); }
.warn-t { font-family: var(--mono); font-size: 12px; color: var(--warn); }
.c-ip   { font-family: var(--mono); font-size: 10px; color: var(--t3); }

.rtt-w  { display: flex; align-items: center; gap: 9px; }
.rtt-v  { font-family: var(--mono); font-size: 11px; color: var(--t2); white-space: nowrap; }
.bar-t  { flex:1; height: 3px; background: var(--bg-sub); border-radius: 2px; overflow: hidden; max-width: 52px; }
.bar-f  { height: 100%; border-radius: 2px; transform-origin: left; animation: bg .55s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes bg { from{transform:scaleX(0)} to{transform:scaleX(1)} }
.bg-ok   { background: var(--ok); }
.bg-warn { background: var(--warn); }
.bg-fail { background: var(--fail); }

.sb { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.sb-ok   { background: var(--ok-bg);   color: var(--ok);   }
.sb-fail { background: var(--fail-bg); color: var(--fail); }
.sb-warn { background: var(--warn-bg); color: var(--warn); }

.tr-l { font-family: var(--mono); font-size: 10px; color: var(--warn); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }

/* ── Pending dots animation ──────────────────────────────────────────────── */
.pending-dots { display: flex; align-items: center; gap: 4px; }
.pending-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--t3);
  animation: pd 1.4s ease-in-out infinite;
}
.pending-dots span:nth-child(2) { animation-delay: .2s; }
.pending-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pd { 0%,100%{opacity:.25;transform:scale(.8)} 50%{opacity:1;transform:scale(1.1)} }
.pending-text { color: var(--t3); font-style: italic; font-family: var(--mono); font-size: 11px; }

/* ── Skeleton ────────────────────────────────────────────────────────────── */
.sk-r { display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 0.5px solid var(--bd); min-height: 52px; }
.sk { border-radius: 4px; background: var(--bg-sub); animation: sh 1.6s ease-in-out infinite; }
@keyframes sh { 0%,100%{opacity:.35}50%{opacity:.8} }

/* ── DNS result card ─────────────────────────────────────────────────────── */
.rc {
  background: var(--bg-card);
  border: 0.5px solid var(--bd2);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--sh);
}
.rc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--bg-sub);
  border-bottom: 0.5px solid var(--bd);
  border-left: 3px solid var(--cat-color, var(--dns));
}
.rc-title { font-size: 13px; font-weight: 600; color: var(--text); }
.rc-sub   { font-size: 11px; color: var(--t3); margin-top: 1px; }
.rc-el    { font-family: var(--mono); font-size: 11px; color: var(--t3); }

/* DNS table — semi-raw */
.dns-tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.dns-tbl th {
  padding: 6px 14px;
  background: var(--bg-sub);
  border-bottom: 0.5px solid var(--bd);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t3);
  text-align: left;
}
.dns-tbl td {
  padding: 8px 14px;
  border-bottom: 0.5px solid var(--bd);
  vertical-align: top;
  word-break: break-all;
}
.dns-tbl tr:last-child td { border-bottom: none; }
.dns-tbl tr:hover td { background: var(--bg-hov); }
.dns-type { color: var(--cat-color, var(--dns)); font-weight: 600; white-space: nowrap; }
.dns-ttl  { color: var(--t3); white-space: nowrap; }
.dns-val  { color: var(--text); }
.dns-info {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--t2);
  padding: 9px 14px;
  background: var(--cat-light, var(--dns-light));
  border-top: 0.5px solid var(--cat-mid, var(--dns-mid));
}

/* ── Security result ─────────────────────────────────────────────────────── */
.grade-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  font-family: var(--mono); font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.g-a  { background: var(--ok-bg);   color: var(--ok);   }
.g-b  { background: var(--dns-light); color: var(--dns); }
.g-c  { background: var(--warn-bg); color: var(--warn); }
.g-d, .g-f { background: var(--fail-bg); color: var(--fail); }

.sec-grid { display: grid; grid-template-columns: 1fr 1fr; }
.sf { padding: 9px 14px; border-bottom: 0.5px solid var(--bd); font-size: 12px; }
.sf:nth-child(odd) { border-right: 0.5px solid var(--bd); }
.sf-l { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.sf-v { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 11px; }
.sf-v.expiring { color: var(--warn); }
.sf-v.expired  { color: var(--fail); }

.san-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 14px; border-top: 0.5px solid var(--bd); }
.san-p { font-family: var(--mono); font-size: 10px; padding: 2px 7px; background: var(--bg-sub); border: 0.5px solid var(--bd); border-radius: 4px; color: var(--t2); }

.h-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; border-bottom: 0.5px solid var(--bd); font-size: 12px; }
.h-row:last-child { border-bottom: none; }
.h-ico { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; }
.h-ok   { background: var(--ok-bg);   border: 1.5px solid var(--ok);   }
.h-miss { background: var(--fail-bg); border: 1.5px solid var(--fail); }
.h-warn { background: var(--warn-bg); border: 1.5px solid var(--warn); }
.h-name { font-family: var(--mono); font-weight: 500; color: var(--text); }
.h-val  { font-family: var(--mono); font-size: 10px; color: var(--t2); word-break: break-all; margin-top: 2px; }
.h-tip  { font-size: 11px; color: var(--t3); margin-top: 2px; font-style: italic; }

.dnsbl-sum { display: flex; align-items: center; gap: 14px; padding: 14px; border-bottom: 0.5px solid var(--bd); }
.dnsbl-st { text-align: center; }
.dnsbl-n { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.dnsbl-l { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }
.dnsbl-rows { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.dnsbl-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; border-bottom: 0.5px solid var(--bd); font-size: 12px; }
.dnsbl-row:last-child { border-bottom: none; }
.dnsbl-name { color: var(--t2); font-family: var(--mono); font-size: 11px; }
.dnsbl-ok   { color: var(--ok);   font-family: var(--mono); font-size: 10px; font-weight: 600; }
.dnsbl-bad  { color: var(--fail); font-family: var(--mono); font-size: 10px; font-weight: 600; }

.hop-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-bottom: 0.5px solid var(--bd); font-size: 12px; }
.hop-row:last-child { border-bottom: none; }
.hop-n { font-family: var(--mono); font-size: 10px; font-weight: 600; width: 22px; flex-shrink: 0; color: var(--t3); padding-top: 2px; }
.hop-url { font-family: var(--mono); font-size: 11px; color: var(--dns); word-break: break-all; }
.hop-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.hop-ms { font-family: var(--mono); font-size: 10px; color: var(--t3); }

/* ── MY IP panel ─────────────────────────────────────────────────────────── */
.myip-hero-card {
  background: var(--bg-card);
  border: 0.5px solid var(--bd);
  border-left: 3px solid var(--net);
  border-radius: var(--rl);
  padding: 22px 26px;
  margin-bottom: 12px;
  box-shadow: var(--sh);
}
.myip-detected-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.myip-detected-label { font-size: 12px; color: var(--t2); }
.myip-addr-row { display: flex; align-items: center; gap: 12px; }
.myip-big-ip {
  font-family: var(--mono); font-size: 36px; font-weight: 600; color: var(--text);
  letter-spacing: .02em; line-height: 1.1; word-break: break-all;
}
.myip-big-ip.is-ipv6 { font-size: 20px; }
.myip-copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-sub); border: 0.5px solid var(--bd); color: var(--t2);
  cursor: pointer; flex-shrink: 0; transition: all .15s;
}
.myip-copy-btn:hover { border-color: var(--bd2); color: var(--text); }
.myip-loc { font-size: 13px; color: var(--t2); margin-top: 8px; }

.myip-threat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media(max-width:500px){ .myip-threat-grid { grid-template-columns: 1fr; } }

.myip-tc {
  background: var(--bg-card); border: 0.5px solid var(--bd);
  border-radius: var(--rl); padding: 16px 18px; box-shadow: var(--sh-sm);
}
.myip-tc-warn { border-color: var(--warn); background: var(--warn-bg); }
.myip-tc-icon { font-size: 22px; margin-bottom: 8px; }
.myip-tc-label { font-size: 10px; color: var(--t2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 4px; }
.myip-tc-val { font-size: 20px; font-weight: 700; font-family: var(--mono); }
.myip-tc-val.ok      { color: var(--ok);   }
.myip-tc-val.warn    { color: var(--warn); }
.myip-tc-val.loading { color: var(--t3); font-size: 16px; }
.myip-tc-sub { font-size: 11px; color: var(--t2); margin-top: 3px; font-family: var(--mono); }

.myip-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media(max-width:640px){ .myip-data-grid { grid-template-columns: 1fr; } }

.myip-card { background: var(--bg-card); border: 0.5px solid var(--bd); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh-sm); }
.myip-card-h {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px;
  background: var(--bg-sub); border-bottom: 0.5px solid var(--bd);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--t3);
}
.myip-cd { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.myip-dr {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 7px 14px; border-bottom: 0.5px solid var(--bd); gap: 12px;
}
.myip-dr:last-child { border-bottom: none; }
.myip-dk { font-size: 12px; color: var(--t2); flex-shrink: 0; max-width: 45%; }
.myip-dv { font-size: 12px; color: var(--text); font-family: var(--mono); text-align: right; word-break: break-all; }

.myip-run-btn {
  width: 100%; padding: 13px;
  background: var(--net); color: #fff; border: none; border-radius: var(--r);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.myip-run-btn:hover { opacity: .88; }

/* ── Web placeholder ─────────────────────────────────────────────────────── */
.web-ph {
  text-align: center; padding: 56px 20px;
  background: var(--bg-card); border: 0.5px solid var(--bd); border-radius: var(--rl);
  box-shadow: var(--sh-sm);
}
.web-ph h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.web-ph p  { font-size: 13px; color: var(--t2); margin-bottom: 14px; }
.wip {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: var(--web-light); border: 0.5px solid var(--web-mid);
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  color: var(--web); text-transform: uppercase; font-family: var(--mono);
}

/* ── Validation error ────────────────────────────────────────────────────── */
.val-err {
  padding: 10px 14px;
  background: var(--fail-bg);
  border: 0.5px solid var(--fail);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--fail);
  margin-bottom: 14px;
  display: none;
  font-family: var(--mono);
}
.val-err.on { display: block; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; font-family: var(--sans); box-shadow: 0 4px 16px rgba(0,0,0,0.18); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: none; }
.toast.out  { opacity: 0; transform: translateY(-6px); }
.toast-ok   { background: var(--ok);   color: #fff; }
.toast-info { background: var(--bg-card); color: var(--text); border: 0.5px solid var(--bd2); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--bg-card); border-top: 0.5px solid var(--bd); margin-top: 64px; padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-bottom: 14px; font-family: var(--mono); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--t2); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-col ul li a .cat-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand .f-icon {
  width: 26px; height: 26px; background: var(--bg-sub); border: 0.5px solid var(--bd2);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--net);
}
.footer-brand span { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.footer-brand span em { color: var(--net); font-style: normal; }
.footer-desc { font-size: 13px; color: var(--t2); line-height: 1.7; margin-bottom: 14px; }

.nodes-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.node-badge {
  display: flex; align-items: center; gap: 5px; padding: 3px 9px;
  background: var(--bg-sub); border: 0.5px solid var(--bd); border-radius: 20px;
  font-size: 11px; font-weight: 500; color: var(--t2); font-family: var(--mono);
}
.node-badge .nb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--net); animation: np 2s ease-in-out infinite; }

.footer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.fstat { background: var(--bg-sub); border-radius: var(--r); padding: 10px 12px; }
.fstat-n { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); }
.fstat-l { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 0.5px solid var(--bd);
}
.footer-copy { font-size: 12px; color: var(--t3); }
.footer-links { display: flex; gap: 14px; }
.footer-links a { font-size: 12px; color: var(--t3); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--t2); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:740px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1/-1; }
}
@media(max-width:480px){
  .footer-grid { grid-template-columns: 1fr; }
  .cat-tabs { flex-wrap: wrap; width: 100%; }
  .myip-big-ip { font-size: 26px; }
  .tbl-h, .tbl-r { grid-template-columns: 34px 1fr 58px 1fr; }
  .tbl-h .ip-hd, .tbl-r .c-ip { display: none; }
  .tbl-h.http, .tbl-r.http { grid-template-columns: 34px 1fr 44px 60px 100px; }
  .sec-grid { grid-template-columns: 1fr; }
  .hdr-right { gap: 4px; }
}

/* ── DNS/Security pills folosesc aceeași clasă .pill dar cu culoarea categoriei ── */
/* Pill-ul activ în DNS panel → albastru */
#panel-dns  .pill.on { background: var(--dns); border-color: var(--dns); color: #fff; }
#panel-dns  .pill:hover { border-color: var(--dns); color: var(--dns); }

/* Pill-ul activ în Security panel → violet */
#panel-sec  .pill.on { background: var(--sec); border-color: var(--sec); color: #fff; }
#panel-sec  .pill:hover { border-color: var(--sec); color: var(--sec); }

/* Go button full-width sub pills */
.go-btn-full {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    border-radius: var(--r);
    margin-top: 2px;
}

/* Scoatem .tool-btn — nu mai e folosit */
