/* ═══════════════════════════════════════════════════════════════
   INTERCONNECTED SYSTEMS INC. — styles.css
   Modern Dark Theme · ISI Brand Colors
   ═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  /* Brand palette — derived from existing ISI site */
  --isi-navy:        #122656;   /* paletteColor1 */
  --isi-blue:        #3d5693;   /* paletteColor2 */
  --isi-slate:       #475671;   /* paletteColor3 */
  --isi-dark:        #293241;   /* paletteColor4 */
  --isi-light:       #E7E9EF;   /* paletteColor5 */
  --isi-off-white:   #f3f4f7;   /* paletteColor6 */

  /* Backgrounds */
  --bg-base:         #080e1c;
  --bg-alt:          #0d1629;
  --bg-card:         rgba(18, 38, 86, 0.35);
  --bg-card-hover:   rgba(18, 38, 86, 0.55);
  --bg-input:        rgba(255,255,255,0.05);
  --bg-tag:          rgba(61,86,147,0.2);

  /* Accents */
  --accent:          #5b8cff;   /* bright blue over dark navy */
  --accent-2:        #a9e2f9;   /* the header link colour from original site */
  --accent-glow:     rgba(91,140,255,0.25);

  /* Text */
  --txt-primary:     #e7e9ef;
  --txt-secondary:   #94a3b8;
  --txt-muted:       #4a5a7a;

  /* Borders */
  --border:          rgba(61,86,147,0.3);
  --border-accent:   rgba(91,140,255,0.4);

  /* Gradients */
  --grad:            linear-gradient(135deg, #5b8cff 0%, #a9e2f9 100%);
  --grad-text:       linear-gradient(135deg, #5b8cff 0%, #a9e2f9 100%);
  --grad-card:       linear-gradient(135deg, rgba(18,38,86,0.6) 0%, rgba(41,50,65,0.4) 100%);

  /* Shadows */
  --shadow:          0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow:     0 0 32px rgba(91,140,255,0.18);

  /* Sizing */
  --radius-sm:       6px;
  --radius:          12px;
  --radius-lg:       18px;
  --nav-h:           70px;
  --topbar-h:        36px;

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

  /* Motion */
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --dur:             0.25s;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--txt-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--accent-2); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: #fff; }
ul   { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea, button { font-family: var(--font); }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: var(--bg-alt); }
::-webkit-scrollbar-thumb  { background: var(--isi-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── SELECTION ───────────────────────────────────────────────── */
::selection { background: rgba(91,140,255,0.3); color: #fff; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--txt-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--txt-secondary); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section     { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { margin: 0.5rem 0 0.9rem; }
.section-header p  { font-size: 1.03rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(169,226,249,0.1);
  border: 1px solid rgba(169,226,249,0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* ── TOP BAR ─────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--isi-navy);
  border-bottom: 1px solid rgba(61,86,147,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #a9e2f9;
  letter-spacing: 0.04em;
}
.topbar-link:hover { color: #daf4ff; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,14,28,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#navbar.scrolled {
  background: rgba(8,14,28,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.isi-logo  { height: 44px; width: auto; max-width: 220px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt-secondary);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--txt-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent-2); }

.btn-nav {
  background: rgba(91,140,255,0.12) !important;
  border: 1px solid rgba(91,140,255,0.35) !important;
  color: var(--accent-2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 1rem !important;
}
.btn-nav:hover { background: rgba(91,140,255,0.22) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--txt-primary);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(18,38,86,0.55) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(8,14,28,0.1) 0%, rgba(8,14,28,0.55) 60%, rgba(8,14,28,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--accent-2);
  background: rgba(169,226,249,0.08);
  border: 1px solid rgba(169,226,249,0.2);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00ff9d;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,157,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0,255,157,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,157,0); }
}

.hero-h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #eaeaec;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-l {
  font-size: 0.74rem;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0.25rem;
}
.stat-sep { width: 1px; height: 38px; background: var(--border); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color var(--dur) var(--ease);
}
.scroll-hint:hover { border-color: var(--accent-2); }
.scroll-hint span {
  width: 4px; height: 8px;
  background: var(--txt-secondary);
  border-radius: 2px;
  animation: scrollDn 2s infinite;
}
@keyframes scrollDn {
  0%   { transform: translateY(0);   opacity: .8; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--grad);
  color: #080e1c;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); color: #080e1c; }
.btn-primary.full-w { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--txt-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-1px); }

/* ── INTRO ───────────────────────────────────────────────────── */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-text .section-tag { margin-bottom: 0.75rem; }
.intro-text h2 { margin: 0.5rem 0 1.25rem; }
.intro-text p  { margin-bottom: 1rem; font-size: 0.975rem; }

.intro-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(91,140,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.svc-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.svc-card:hover::after { opacity: 1; }

.svc-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: rgba(91,140,255,0.1);
  border: 1px solid rgba(91,140,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.svc-icon svg { width: 20px; height: 20px; color: var(--accent-2); }
.svc-card h3  { margin-bottom: 0.65rem; font-size: 1.1rem; }
.svc-card p   { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.1rem; }

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.svc-tags li {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(169,226,249,0.08);
  border: 1px solid rgba(169,226,249,0.18);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

/* ── TECHNOLOGIES ────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.tech-vendor-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.cisco-label   { background: rgba(0,188,235,0.12); color: #00bceb; border: 1px solid rgba(0,188,235,0.25); }
.juniper-label { background: rgba(0,179,104,0.12); color: #00b368; border: 1px solid rgba(0,179,104,0.25); }
.hpe-label     { background: rgba(1,169,130,0.12); color: #01a982; border: 1px solid rgba(1,169,130,0.25); }
.telecom-label { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.auto-label    { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.ai-label      { background: rgba(236,72,153,0.12); color: #ec4899; border: 1px solid rgba(236,72,153,0.25); }

.tech-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.tech-card p  { font-size: 0.875rem; line-height: 1.65; margin-bottom: 0.9rem; }

.tech-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tech-pills span {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--txt-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.18rem 0.5rem;
}

/* ── TOOLS ───────────────────────────────────────────────────── */
.tools-tabbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt-muted);
  background: none;
  border: none;
  padding: 0.6rem 0.9rem 0.85rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab-btn:hover  { color: var(--txt-primary); }
.tab-btn.active { color: var(--accent-2); border-bottom-color: var(--accent-2); }

.tab-panel       { display: none; }
.tab-panel.active{ display: block; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.15rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: border-color var(--dur) var(--ease);
}
.tool-card:hover { border-color: var(--border-accent); }

.tool-h {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.92rem; font-weight: 700;
  color: var(--txt-primary);
  margin-bottom: 0.9rem;
}
.tool-h svg { color: var(--accent-2); flex-shrink: 0; }

.tool-desc { font-size: 0.82rem; color: var(--txt-secondary); margin-bottom: 0.9rem; line-height: 1.6; }

.tool-row {
  display: flex; gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.t-input {
  flex: 1;
  min-width: 130px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.85rem;
  color: var(--txt-primary);
  font-size: 0.84rem;
  font-family: var(--mono);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.t-input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(169,226,249,0.1); }
.t-input::placeholder { color: var(--txt-muted); }
.t-input.half { flex: 0 0 calc(50% - 0.225rem); min-width: 110px; }

.t-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.7rem;
  color: var(--txt-primary);
  font-size: 0.84rem;
  outline: none; cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.t-select:focus { border-color: var(--accent-2); }
.t-select option { background: var(--bg-alt); }

.t-check {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--txt-secondary);
  cursor: pointer; user-select: none;
}
.t-check input[type="checkbox"] {
  accent-color: var(--accent-2); width: 14px; height: 14px; cursor: pointer;
}

.t-btn {
  background: var(--grad);
  color: #080e1c;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.52rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.t-btn:hover   { opacity: 0.84; transform: translateY(-1px); }
.t-btn:active  { transform: translateY(0); }
.t-btn.full-w  { width: 100%; padding: 0.6rem; font-size: 0.875rem; }
.t-btn:disabled{ opacity: 0.45; cursor: not-allowed; }
.t-btn-stop {
  background: transparent;
  color: #f87171;
  border: 1px solid #f87171;
  font-weight: 600;
}
.mt6 { margin-top: 0.375rem; }

.t-result {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--txt-secondary);
  min-height: 44px;
  overflow-x: auto;
  line-height: 1.9;
}
.t-result:empty::before   { content: 'Result will appear here…'; color: var(--txt-muted); font-style: italic; }
.t-result .row  { display: flex; justify-content: space-between; gap: 1rem; padding: 0.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.t-result .row:last-child  { border-bottom: none; }
.t-result .lbl  { color: var(--txt-muted); flex-shrink: 0; max-width: 46%; }
.t-result .val  { color: #7dd3fc; text-align: right; word-break: break-all; }
.t-result .val.green { color: #86efac; }
.t-result .err  { color: #f87171; }
.t-result .info { color: var(--accent-2); }
.t-result .load { color: var(--txt-muted); font-style: italic; }
.t-result .head { font-weight: 600; color: var(--accent-2); padding: 0.2rem 0 0.4rem; border-bottom: 1px solid var(--border); margin-bottom: 0.3rem; display: block; }

/* CIDR Table */
.cidr-table-wrap { overflow-y: auto; max-height: 260px; }
.cidr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  font-family: var(--mono);
}
.cidr-table th {
  position: sticky; top: 0;
  background: var(--bg-alt);
  color: var(--txt-muted);
  font-weight: 700;
  padding: 0.38rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cidr-table td { padding: 0.28rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--txt-secondary); }
.cidr-table tr:hover td { background: rgba(255,255,255,0.03); color: var(--txt-primary); }
.cidr-table td:first-child { color: var(--accent-2); }
.cidr-table td:last-child  { color: #86efac; }

/* BGP Looking Glass Grid */
.lg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.lg-link {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  gap: 0.2rem;
}
.lg-link:hover { background: rgba(169,226,249,0.06); border-color: var(--border-accent); }
.lg-name  { font-size: 0.85rem; font-weight: 700; color: var(--accent-2); }
.lg-desc  { font-size: 0.72rem; color: var(--txt-muted); }

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.res-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.res-group h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
.res-list li {
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.res-list li:last-child { border-bottom: none; }
.res-list a  { font-size: 0.875rem; font-weight: 600; color: var(--txt-primary); transition: color var(--dur) var(--ease); }
.res-list a:hover { color: var(--accent-2); }
.res-list span { font-size: 0.73rem; color: var(--txt-muted); margin-top: 0.08rem; }

/* ── WHY US ──────────────────────────────────────────────────── */
.why-tag { background: rgba(61,86,147,0.2); color: #a9e2f9; border-color: rgba(61,86,147,0.4); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.why-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  /* Keep original icon appearance */
  filter: none;
}

.why-card h3 { margin-bottom: 0.65rem; font-size: 1.1rem; }
.why-card p  { font-size: 0.875rem; line-height: 1.7; }

.why-cta-text { text-align: center; color: var(--txt-secondary); font-size: 0.95rem; }
.inline-link  { color: var(--accent-2); font-weight: 600; }
.inline-link:hover { color: #fff; }

/* ── CLIENTS ─────────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.client-tile {
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.client-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--shadow-glow);
  border-color: var(--border-accent);
}
.client-tile img {
  max-width: 150px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none; /* preserve original colours */
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-tag { margin-bottom: 0.75rem; }
.about-text h2 { margin: 0.5rem 0 1.25rem; }
.about-text p  { margin-bottom: 1rem; font-size: 0.95rem; }

.cert-row { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.75rem; }
.cert-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
}
.cert-star { color: var(--accent-2); font-size: 1rem; flex-shrink: 0; }
.cert-item strong { display: block; font-size: 0.9rem; color: var(--txt-primary); }
.cert-item small  { font-size: 0.74rem; color: var(--txt-muted); }

.about-img-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }

.ci-item { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(91,140,255,0.08);
  border: 1px solid rgba(91,140,255,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 17px; height: 17px; color: var(--accent-2); }
.ci-item strong { display: block; font-size: 0.75rem; color: var(--txt-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.2rem; }
.ci-item a, .ci-item span { font-size: 0.95rem; color: var(--txt-secondary); }
.ci-item a:hover { color: var(--accent-2); }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; }
.fg label { font-size: 0.76rem; font-weight: 600; color: var(--txt-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.fg label span { color: var(--accent-2); }

.fg input, .fg select, .fg textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.9rem;
  color: var(--txt-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: vertical;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--txt-muted); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(169,226,249,0.1);
}
.fg select { cursor: pointer; }
.fg select option { background: var(--bg-alt); }

#formStatus { font-size: 0.875rem; text-align: center; min-height: 1.4rem; margin-top: 0.25rem; }
#formStatus.ok  { color: #86efac; }
#formStatus.err { color: #f87171; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--isi-navy);
  border-top: 1px solid rgba(61,86,147,0.5);
  padding: 3rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo  { height: 42px; width: auto; max-width: 200px; }
.footer-brand p { font-size: 0.84rem; color: rgba(169,226,249,0.6); line-height: 1.65; max-width: 280px; }
.footer-phone   { font-size: 0.9rem; font-weight: 700; color: var(--accent-2); }
.footer-phone:hover { color: #fff; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--txt-primary); margin-bottom: 0.9rem; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a  { font-size: 0.84rem; color: rgba(169,226,249,0.5); }
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid rgba(61,86,147,0.4);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p   { font-size: 0.79rem; color: rgba(169,226,249,0.35); }
.footer-bottom a   { color: rgba(169,226,249,0.35); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ── SCROLL ANIMATIONS ───────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .intro-layout  { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-image   { order: -1; }
  .about-layout  { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout{ grid-template-columns: 1fr; gap: 2rem; }
  .footer-top    { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8,14,28,0.98);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .btn-nav { text-align: center; }
  .hero-ctas  { flex-direction: column; align-items: center; }
  .hero-stats { gap: 1.25rem; }
  .stat-sep   { display: none; }
  .services-grid  { grid-template-columns: 1fr; }
  .tech-grid      { grid-template-columns: 1fr; }
  .tools-grid     { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .clients-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-cols    { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .tab-btn svg    { display: none; }
}
@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols  { grid-template-columns: 1fr; }
  .t-input.half { flex: 1 1 100%; }
  .lg-grid      { grid-template-columns: 1fr; }
}

/* ── ROUTING REFERENCE TAB ───────────────────────────────────── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
}
.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}
.ref-card h3 {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--accent-2);
  margin-bottom: 0.9rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.ref-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.73rem; font-family: var(--mono); margin-bottom: 0.6rem;
}
.ref-table th {
  color: var(--txt-muted); font-weight: 700; text-align: left;
  padding: 0.22rem 0.4rem; font-size: 0.65rem; letter-spacing: 0.06em;
  text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.ref-table td {
  padding: 0.22rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--txt-secondary); vertical-align: top;
}
.ref-table td:first-child { color: var(--accent-2); white-space: nowrap; }
.ref-table tr:hover td { background: rgba(255,255,255,0.03); }
.ref-sub { font-size: 0.67rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--txt-muted); margin: 0.65rem 0 0.3rem; }
.ref-note { font-size: 0.7rem; color: var(--txt-muted); line-height: 1.5; margin-top: 0.4rem; font-family: var(--mono); }

/* ── DTMF KEYPAD ─────────────────────────────────────────────── */
.dtmf-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.dtmf-seq {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  min-height: 2.2rem;
  text-align: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
}
.dtmf-pad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.dtmf-key {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 0.25rem;
  cursor: pointer;
  line-height: 1.2;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.dtmf-key small { font-size: 0.58rem; font-weight: 400; color: var(--txt-muted); }
.dtmf-key:hover  { background: var(--bg-card-hover); border-color: var(--border-accent); }
.dtmf-key:active { background: rgba(91,140,255,0.25); }
.dtmf-clear {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--txt-muted);
  font-size: 0.75rem; padding: 0.3rem; cursor: pointer;
  transition: color var(--dur), border-color var(--dur);
}
.dtmf-clear:hover { color: var(--accent-2); border-color: var(--border-accent); }

/* ── SIP REFERENCE TABLE ─────────────────────────────────────── */
.sip-table-wrap { overflow-y: auto; max-height: 280px; }
.sip-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.76rem; font-family: var(--mono);
}
.sip-table th {
  position: sticky; top: 0; background: var(--bg-alt);
  color: var(--txt-muted); font-weight: 700; text-align: left;
  padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--border);
  font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.sip-table td { padding: 0.25rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--txt-secondary); }
.sip-table tr:hover td { background: rgba(255,255,255,0.03); }
.sip-table .sip-group td { color: var(--accent-2); font-weight: 700; background: rgba(61,86,147,0.15); font-family: var(--font); }
.sip-table td:first-child { color: var(--accent-2); width: 3.5rem; }

/* ── WIFI CHANNEL TABLE ──────────────────────────────────────── */
.wifi-ch-wrap { overflow-y: auto; max-height: 260px; }
.wifi-ch-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; font-family: var(--mono); }
.wifi-ch-table th {
  position: sticky; top: 0; background: var(--bg-alt);
  color: var(--txt-muted); font-weight: 700; text-align: left;
  padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border);
  font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.wifi-ch-table td { padding: 0.22rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--txt-secondary); }
.wifi-ch-table tr:hover td { background: rgba(255,255,255,0.03); }
.wifi-ch-table td:first-child { color: var(--accent-2); }
.wifi-ch-table .ch-nonov td:first-child { color: #86efac; font-weight: 700; }
.wifi-ch-table .ch-dfs td:nth-child(3) { color: #f59e0b; }

/* ── Widget expand button ─────────────────────────────────────── */
.tool-h {
  position: relative;
}
.tool-expand-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--txt-muted);
  padding: 0.25rem 0.3rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  line-height: 0;
}
.tool-card:hover .tool-expand-btn,
.tool-expand-btn:focus-visible {
  opacity: 1;
  border-color: var(--border);
}
.tool-expand-btn:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}
.in-modal .tool-expand-btn {
  display: none;
}

/* ── Widget modal overlay ─────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.widget-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.widget-modal[hidden] { display: none; }

.widget-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.widget-modal-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(95vw, 1100px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.18s var(--ease) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.widget-modal-close {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  float: right;
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt-secondary);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  margin-bottom: 1rem;
  z-index: 2;
}
.widget-modal-close:hover { color: var(--accent-2); border-color: var(--accent-2); }

.widget-modal-body .tool-card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.widget-modal-body .tool-card.in-modal .t-result {
  max-height: 55vh;
  overflow-y: auto;
}

.widget-placeholder {
  display: none;
}

/* ── Route Views Terminal ─────────────────────────────────────── */
.rv-card { grid-column: 1 / -1; }  /* full width across tools grid */

.rv-terminal {
  height: 420px;
  margin-top: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d1117;
}
.rv-terminal .xterm { height: 100%; padding: 4px; }
.rv-terminal .xterm-viewport { border-radius: var(--radius-sm); }
.in-modal .rv-terminal { height: 62vh; }

.rv-cmds {
  gap: 0.4rem;
  flex-wrap: wrap;
}
.t-btn-cmd {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt-secondary);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.t-btn-cmd:hover { color: var(--accent-2); border-color: var(--accent-2); }
.t-btn-cmd:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Connection Quality Tester ──────────────────────────────────────── */

/* Two-column parallel results layout */
.cqt-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 0.75rem;
}
.cqt-col {
  min-width: 0;  /* prevent grid blowout */
}

/* Centered gauge + protocol label stacked vertically */
.cqt-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.cqt-unavail { margin-top: 0.5rem; }

/* Force 2×2 grid inside each column */
.cqt-metrics-2col {
  grid-template-columns: 1fr 1fr !important;
}

/* Remove the 55vh scroll cap in modal for this widget */
.widget-modal-body .tool-card.in-modal #cqtOut,
.in-modal #cqtOut {
  max-height: none !important;
  overflow-y: visible !important;
}

/* Narrow screens: stack the columns */
@media (max-width: 600px) {
  .cqt-results-grid { grid-template-columns: 1fr; }
  .cqt-metrics-2col { grid-template-columns: 1fr 1fr !important; }
}

/* Step indicator dots */
.cqt-steps {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.cqt-step {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--txt-muted);
  background: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
}
.cqt-step.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.cqt-step.done {
  border-color: #4ade80;
  background: #4ade80;
}

/* Progress bar */
.cqt-progress-wrap {
  margin: 0.6rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cqt-progress-track {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.cqt-progress-bar {
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}
.cqt-progress-label {
  font-size: 0.75rem;
  color: var(--txt-muted);
  font-style: italic;
}

/* Protocol section header */
.cqt-proto-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.9rem 0 0.6rem;
  flex-wrap: wrap;
}
.cqt-proto-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--txt-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Gauge */
.cqt-gauge-arc {
  stroke-dasharray: 0 9999;
  transition: stroke-dasharray 1.1s var(--ease);
}

/* Live RTT chart */
.cqt-live-chart-wrap {
  margin: 0.4rem 0 0.2rem;
}
.cqt-chart-label {
  font-size: 0.7rem;
  color: var(--txt-muted);
  font-family: var(--mono);
  margin-bottom: 0.15rem;
}

/* Metric tiles grid */
.cqt-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.65rem;
  margin: 0.6rem 0;
}
.cqt-tile {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.cqt-tile .metric-lbl {
  font-size: 0.68rem;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.cqt-tile .metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--mono);
  line-height: 1.1;
  color: var(--txt-primary);
}
.cqt-tile .metric-sub {
  font-size: 0.74rem;
  color: var(--txt-secondary);
  font-family: var(--mono);
}
.cqt-tile .metric-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}
.cqt-tile .metric-chart { margin-top: 0.35rem; }

/* Throughput speed bar */
.cqt-spd-wrap {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cqt-spd-track {
  flex: 1;
  background: var(--bg-alt);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cqt-spd-bar {
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.7s var(--ease);
  width: 0%;
}
.cqt-spd-val {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--txt-secondary);
  white-space: nowrap;
  min-width: 64px;
}

/* Comparison table */
.cqt-compare-wrap { margin-top: 0.8rem; overflow-x: auto; }
.cqt-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.cqt-compare th {
  color: var(--txt-muted);
  font-weight: 600;
  text-align: left;
  padding: 0.28rem 0.55rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cqt-compare td {
  padding: 0.28rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--mono);
  vertical-align: middle;
}
.cqt-compare .delta-better { color: #86efac; }
.cqt-compare .delta-worse  { color: #f87171; }
.cqt-compare .delta-eq     { color: var(--txt-muted); }

/* Delta mini-bar (centered axis) */
.cqt-delta-bar-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}
.cqt-delta-axis { width: 1px; height: 10px; background: var(--border); flex-shrink: 0; }
.cqt-delta-seg {
  height: 6px;
  border-radius: 2px;
  min-width: 2px;
  transition: width 0.5s var(--ease);
}

/* UDP dot */
.cqt-udp-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0.2rem;
  font-size: 0.82rem;
  font-family: var(--mono);
}
.cqt-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cqt-dot.reachable  { background: #4ade80; }
.cqt-dot.blocked    { background: #f87171; }
.cqt-dot.testing {
  background: var(--accent);
  animation: cqt-pulse 1.4s ease infinite;
}

@keyframes cqt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,140,255,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(91,140,255,0); }
}

/* ── CQT Geo Map ─────────────────────────────────────────────── */
.cqt-map-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(30,58,95,0.6);
  margin-bottom: .85rem;
  background: #050d1e;
}
.cqt-route-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .85rem;
  background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(30,58,95,0.55);
  font-family: var(--mono);
  font-size: .74rem;
  flex-wrap: wrap;
  row-gap: .2rem;
}
.cqt-rb-server { color: #f59e0b; font-weight: 600; white-space: nowrap; }
.cqt-rb-arrow  { color: var(--txt-muted); flex-shrink: 0; }
.cqt-rb-client { color: #22d3ee; font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cqt-rb-dist   { margin-left: auto; color: var(--txt-muted); font-size: .7rem; white-space: nowrap; padding-left: .5rem; }
.cqt-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Arc flow animation */
@keyframes cqt-arc-flow {
  to { stroke-dashoffset: -18; }
}
.cqt-arc-dash {
  animation: cqt-arc-flow 1.1s linear infinite;
}

/* Ping ring pulse */
@keyframes cqt-ring-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(4.5); opacity: 0;   }
}
.cqt-ring {
  fill: none;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: cqt-ring-pulse 2.2s ease-out infinite;
}
.cqt-ring-2 { animation-delay: -1.1s; }

/* ── CQT Geo Info Cards ──────────────────────────────────────── */
.cqt-geo-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .6rem;
  align-items: center;
  margin-bottom: .85rem;
  padding: .7rem .85rem;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cqt-geo-card {
  padding: .5rem .65rem;
  border-left: 2px solid var(--gc, #22d3ee);
  background: rgba(0,0,0,.2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  min-width: 0;
}
.cqt-geo-role {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gc, #22d3ee);
  margin-bottom: .25rem;
}
.cqt-geo-city {
  font-size: .88rem;
  font-weight: 600;
  color: var(--txt-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cqt-geo-org {
  font-size: .72rem;
  color: var(--txt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .15rem;
}
.cqt-geo-coords {
  font-size: .68rem;
  font-family: var(--mono);
  color: var(--txt-muted);
  opacity: .7;
  margin-top: .1rem;
}
.cqt-geo-unavail {
  font-size: .78rem;
  color: var(--txt-muted);
  font-style: italic;
}
.cqt-geo-ip {
  font-size: .72rem;
  font-family: var(--mono);
  color: var(--txt-secondary);
  margin-bottom: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cqt-geo-ip-label {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--txt-muted);
  margin-right: .4rem;
  min-width: 2.4rem;
}
.cqt-geo-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 0 .3rem;
}
.cqt-geo-sep-line {
  width: 1px;
  flex: 1;
  min-height: 10px;
  background: var(--border);
  opacity: .5;
}
.cqt-geo-dist {
  font-size: .68rem;
  font-family: var(--mono);
  color: var(--txt-muted);
  white-space: nowrap;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  padding: .15rem 0;
}

@media (max-width: 520px) {
  .cqt-geo-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .cqt-geo-sep {
    flex-direction: row;
  }
  .cqt-geo-sep-line {
    width: 100%;
    height: 1px;
    flex: 1;
    min-height: unset;
  }
  .cqt-geo-dist {
    writing-mode: horizontal-tb;
  }
}

/* ── RBL / DNSBL Blacklist Checker ──────────────────────────────── */
.rbl-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  margin-bottom: .85rem;
  font-size: .82rem;
}
.rbl-summary-icon { font-size: 1rem; flex-shrink: 0; }
.rbl-summary-text { flex: 1; color: var(--txt-secondary); }
.rbl-summary-text strong { color: var(--txt-primary); }
.rbl-summary.listed  { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.rbl-summary.clean   { border-color: rgba(134,239,172,.3);  background: rgba(134,239,172,.07); }
.rbl-summary.partial { border-color: rgba(251,191,36,.3);   background: rgba(251,191,36,.07);  }

.rbl-meta {
  font-size: .72rem;
  color: var(--txt-muted);
  margin-bottom: .7rem;
}

.rbl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
.rbl-table thead th {
  text-align: left;
  color: var(--txt-muted);
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .4rem .4rem;
  border-bottom: 1px solid var(--border);
}
.rbl-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background var(--dur) var(--ease);
}
.rbl-table tbody tr:last-child { border-bottom: none; }
.rbl-table tbody tr:hover { background: rgba(255,255,255,.03); }
.rbl-table td {
  padding: .3rem .4rem;
  vertical-align: middle;
}

.rbl-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .15rem .45rem;
  border-radius: 3px;
  white-space: nowrap;
}
.rbl-badge-listed  { background: rgba(248,113,113,.18); color: #fca5a5; border: 1px solid rgba(248,113,113,.3); }
.rbl-badge-clean   { background: rgba(134,239,172,.12); color: #86efac; border: 1px solid rgba(134,239,172,.25); }
.rbl-badge-timeout { background: rgba(148,163,184,.1);  color: #94a3b8; border: 1px solid rgba(148,163,184,.2); }
.rbl-badge-error   { background: rgba(148,163,184,.1);  color: #64748b; border: 1px solid rgba(148,163,184,.15); }

.rbl-name { font-weight: 500; color: var(--txt-primary); white-space: nowrap; }
.rbl-desc { color: var(--txt-muted); font-size: .74rem; }
.rbl-codes {
  font-family: var(--mono);
  font-size: .7rem;
  color: #fbbf24;
}
.rbl-cat-label {
  font-size: .65rem;
  color: var(--txt-muted);
  font-style: italic;
  padding-left: .2rem;
  white-space: nowrap;
}

@media (max-width: 580px) {
  .rbl-table thead th.rbl-col-desc,
  .rbl-table td.rbl-col-desc { display: none; }
  .rbl-table td { padding: .28rem .25rem; }
}

/* ── IP Reputation (iprep) & URL Checker ────────────────────────── */
.iprep-intel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
  margin-bottom: .85rem;
}
.iprep-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: .55rem .7rem;
  background: rgba(255,255,255,.03);
  transition: border-color var(--dur) var(--ease);
}
.iprep-card.listed  { border-color: rgba(248,113,113,.4);  background: rgba(248,113,113,.07); }
.iprep-card.warn    { border-color: rgba(251,191,36,.35);  background: rgba(251,191,36,.06);  }
.iprep-card.clean   { border-color: rgba(134,239,172,.25); background: rgba(134,239,172,.05); }
.iprep-card-header  { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.iprep-card-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--txt-muted);
}
.iprep-card.listed  .iprep-card-dot { background: #f87171; box-shadow: 0 0 6px #f8717155; }
.iprep-card.warn    .iprep-card-dot { background: #fbbf24; box-shadow: 0 0 6px #fbbf2455; }
.iprep-card.clean   .iprep-card-dot { background: #86efac; }
.iprep-card-name    { font-size: .78rem; font-weight: 600; color: var(--txt-primary); }
.iprep-card-detail  { font-size: .73rem; color: var(--txt-secondary); line-height: 1.45; }
.iprep-card-desc    { font-size: .68rem; color: var(--txt-muted); margin-top: .15rem; }

.iprep-talos-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91,140,255,.25);
  background: rgba(91,140,255,.07);
  font-size: .78rem;
  color: var(--accent-2);
  margin-bottom: .85rem;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.iprep-talos-link:hover {
  background: rgba(91,140,255,.14);
  border-color: rgba(91,140,255,.45);
  color: #fff;
}
.iprep-talos-icon { font-size: 1rem; flex-shrink: 0; }
.iprep-talos-text { flex: 1; }
.iprep-talos-text strong { display: block; }
.iprep-talos-text small  { color: var(--txt-muted); font-size: .69rem; }

.iprep-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--txt-muted);
  margin: .6rem 0 .35rem;
}

/* URL checker verdict cards */
.urlchk-sources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .45rem;
  margin-bottom: .7rem;
}
.urlchk-meta {
  font-size: .72rem;
  color: var(--txt-muted);
  margin-bottom: .6rem;
  line-height: 1.6;
}
.urlchk-meta code {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--txt-secondary);
  background: rgba(255,255,255,.05);
  padding: .05rem .3rem;
  border-radius: 3px;
}

/* ── Email Address Validator ─────────────────────────────────────── */
.emailchk-disclaimer {
  margin: .6rem 0 .5rem;
  font-size: .75rem;
  color: var(--txt-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}
.emailchk-disclaimer summary {
  cursor: pointer;
  padding: .35rem .55rem;
  font-weight: 600;
  color: var(--txt-secondary);
  list-style: none;
  user-select: none;
}
.emailchk-disclaimer summary::-webkit-details-marker { display: none; }
.emailchk-disclaimer summary::before {
  content: '▸ ';
  font-size: .7rem;
  color: var(--txt-muted);
}
.emailchk-disclaimer[open] summary::before { content: '▾ '; }
.emailchk-disclaimer ul {
  padding: .4rem .75rem .55rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  list-style: disc;
  color: var(--txt-muted);
  line-height: 1.55;
}
.emailchk-disclaimer li code {
  font-family: var(--mono);
  font-size: .7rem;
  background: rgba(255,255,255,.05);
  padding: .05rem .3rem;
  border-radius: 3px;
  color: var(--txt-secondary);
}

.emailchk-summary {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  margin-bottom: .8rem;
}
.emailchk-score-ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.emailchk-score-ring.good   { border-color: #86efac; color: #86efac; }
.emailchk-score-ring.warn   { border-color: #fbbf24; color: #fbbf24; }
.emailchk-score-ring.bad    { border-color: #f87171; color: #f87171; }
.emailchk-verdict-block { flex: 1; min-width: 0; }
.emailchk-verdict {
  font-size: .88rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.emailchk-verdict.deliverable  { color: #86efac; }
.emailchk-verdict.risky        { color: #fbbf24; }
.emailchk-verdict.rejected,
.emailchk-verdict.undeliverable,
.emailchk-verdict.invalid      { color: #f87171; }
.emailchk-verdict.disposable   { color: #fb923c; }
.emailchk-addr { font-size: .75rem; color: var(--txt-muted); margin-top: .1rem; font-family: var(--mono); }

.emailchk-checks { width: 100%; border-collapse: collapse; font-size: .8rem; }
.emailchk-checks tr { border-bottom: 1px solid rgba(255,255,255,.04); }
.emailchk-checks tr:last-child { border-bottom: none; }
.emailchk-checks tr:hover { background: rgba(255,255,255,.025); }
.emailchk-checks td { padding: .28rem .4rem; vertical-align: middle; }
.emailchk-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0; margin-right: .45rem;
}
.emailchk-dot.ok      { background: #86efac; }
.emailchk-dot.warn    { background: #fbbf24; }
.emailchk-dot.bad     { background: #f87171; }
.emailchk-dot.neutral { background: var(--txt-muted); }
.emailchk-label { font-weight: 500; color: var(--txt-primary); white-space: nowrap; }
.emailchk-detail { color: var(--txt-secondary); font-size: .75rem; }
.emailchk-code  { font-family: var(--mono); font-size: .7rem; color: var(--txt-muted); }
