/* X-PRESS // NOC — red on black, CRT-adjacent, editorial-bangla */

:root {
  --bg:         #07070a;
  --bg-panel:   #0c0c11;
  --bg-raised:  #111118;
  --bg-inset:   #05050a;
  --line:       #1c1c24;
  --line-2:     #262632;
  --ink-0:      #f2f2f5;
  --ink-1:      #c6c6cd;
  --ink-2:      #8a8a95;
  --ink-3:      #5a5a65;
  --ink-4:      #36363f;
  --red:        oklch(0.55 0.23 28);
  --red-hot:    oklch(0.65 0.25 28);
  --red-dim:    oklch(0.38 0.17 28);
  --red-glow:   color-mix(in oklch, var(--red), transparent 70%);
  --amber:      oklch(0.84 0.15 80);
  --green:      oklch(0.76 0.17 150);
  --cyan:       oklch(0.78 0.11 200);
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; overflow-x: hidden; }
body { margin: 0; padding: 0; width: 100%; }
html { background: var(--bg); color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--ink-0);
  font-family: 'Space Grotesk', 'Hind Siliguri', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #000; }

/* === global atmosphere: scanlines + grid + vignette === */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0.4) 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 2px);
  background-size: 100% 3px;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
  opacity: 0.35;
}

/* type utilities */
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "ss01","ss02"; }
.bn { font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; }
.bn-serif { font-family: 'Noto Serif Bengali', serif; }
.uppr { text-transform: uppercase; letter-spacing: 0.12em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.kbd { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-raised); color: var(--ink-1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--ink-0);
  text-decoration: none; transition: all 120ms ease;
  position: relative;
}
.btn:hover { border-color: var(--red); color: var(--red-hot); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-hot); color: #fff; border-color: var(--red-hot); box-shadow: 0 0 24px var(--red-glow); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-1); }
.btn-sm { padding: 8px 14px; font-size: 11px; }

/* panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  position: relative;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-2);
}
.panel-head::before {
  content: "●"; color: var(--red); margin-right: 8px; font-size: 8px;
  animation: blink 1.6s infinite;
}
.panel-head-r { color: var(--ink-3); }
.panel-body { padding: 16px; }

/* headings */
.display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; letter-spacing: -0.035em; line-height: 0.95;
}
.display-bn {
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.05;
}

/* === top status bar === */
.topbar {
  position: relative; z-index: 50;
  background: rgba(7,7,10,0.92);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
}
.topbar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 10px 24px;
}
.tb-cluster { display: inline-flex; align-items: center; gap: 18px; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-item strong { color: var(--ink-0); font-weight: 600; }
.tb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.tb-dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.tb-dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.tb-ticker { overflow: hidden; white-space: nowrap; color: var(--ink-3); }
.tb-ticker-inner { display: inline-block; padding-left: 100%; animation: ticker 60s linear infinite; }

/* === primary nav === */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7,7,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: 1440px; margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-0); }
.logo-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--red); background: rgba(220,40,50,0.08);
  color: var(--red); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 20px;
  letter-spacing: -0.04em;
}
.logo-text {
  display: flex; flex-direction: column; gap: 2px; line-height: 1;
}
.logo-text-top { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.logo-text-top em { color: var(--red); font-style: normal; }
.logo-text-sub { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em; white-space: nowrap; }
.logo-svg { height: 36px; width: auto; }

.nav-links { display: flex; gap: 0; align-items: stretch; }
.nav-links > a,
.nav-dropdown > a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-2); text-decoration: none;
  padding: 10px 16px; border-right: 1px solid var(--line);
  display: inline-flex; align-items: center;
  transition: all 120ms ease;
}
.nav-links > a:first-child { border-left: 1px solid var(--line); }
.nav-links a:hover { color: var(--red-hot); background: rgba(220,40,50,0.06); }
.nav-links a .idx { color: var(--ink-4); margin-right: 6px; }

/* nav dropdown */
.nav-dropdown { position: relative; display: flex; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg-panel); border: 1px solid var(--line);
  min-width: 140px; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-1); text-decoration: none;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); border-left: 0 !important; border-right: 0 !important;
}
.nav-dropdown-menu a:last-child { border-bottom: 0; }
.nav-dropdown-menu a:hover { color: var(--red-hot); background: rgba(220,40,50,0.06); }

/* hamburger — hidden on desktop */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.ham-line {
  display: block; width: 22px; height: 2px; background: var(--ink-1);
  transition: transform 0.3s, opacity 0.3s;
}
.ham-line.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-line.open:nth-child(2) { opacity: 0; }
.ham-line.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu — only visible when open */
.mobile-menu {
  display: flex; flex-direction: column;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu a {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-1); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--red-hot); }
.mobile-menu a .idx { color: var(--ink-4); margin-right: 8px; }
.mobile-submenu { padding-left: 20px; }
.mobile-submenu a { font-size: 12px !important; color: var(--ink-2) !important; padding: 8px 0 !important; border-bottom: 1px dashed var(--line) !important; }

/* === HERO / NOC MAIN === */
.hero {
  position: relative; z-index: 3;
  padding: 24px 24px 24px;
  max-width: 1440px; margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 24px;
  align-items: stretch;
}
.hero-center { min-height: 560px; display: flex; flex-direction: column; gap: 24px; }

.hero-headline {
  position: relative;
  padding: 12px 0 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
html.fonts-ready .hero-headline {
  opacity: 1;
}
.hero-headline .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--red); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-headline .kicker::before { content: ""; width: 24px; height: 1px; background: var(--red); }
.hero-headline h1 {
  margin: 0; font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-weight: 700; font-size: clamp(48px, 7.5vw, 104px); line-height: 0.98; letter-spacing: -0.02em;
  color: var(--ink-0);
  font-synthesis: none;
}
.hero-headline h1 .strike { color: var(--red); font-style: italic; font-family: 'Noto Serif Bengali', 'Noto Sans Bengali', serif; font-weight: 700; }
.hero-headline h1 .rotating-strike {
  display: inline-block;
  margin-left: 0.12em;
  width: clamp(420px, 48vw, 760px);
  font-size: 0.74em;
  line-height: 1.06;
  white-space: nowrap;
  transition: opacity 260ms ease, transform 320ms ease, filter 260ms ease;
  will-change: opacity, transform, filter;
  transform: translateY(0);
  filter: blur(0);
}
.hero-headline h1 .rotating-strike.is-fading {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(1px);
}
.hero-headline .en {
  margin-bottom: 0;
  display: block;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(18px, 1.2vw, 30px);
  line-height: 1.28;
  color: color-mix(in oklch, var(--ink-1), var(--ink-2) 55%);
  letter-spacing: -0.005em;
  margin-top: 18px;
  width: 44ch;
  max-width: 44ch;
  padding-left: 14px;
  border-left: 1px solid color-mix(in oklch, var(--red), transparent 58%);
  text-wrap: balance;
  text-shadow: 0 0 18px color-mix(in oklch, var(--red), transparent 92%);
}
.hero-headline .en .en-line { display: block; }
.hero-headline .en .en-line-nowrap { white-space: nowrap; }

/* big live metric tiles */
.metric-tile {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.metric-tile::after {
  content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 100%;
  background: var(--red); opacity: 0.7;
}
.metric-tile .label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ink-3);
}
.metric-tile .value {
  font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 600;
  color: var(--ink-0); font-variant-numeric: tabular-nums; line-height: 1;
  display: flex; align-items: baseline; gap: 6px;
}
.metric-tile .value .unit { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.metric-tile .spark { height: 28px; margin-top: 4px; }
.metric-tile .spark path { fill: none; stroke: var(--red); stroke-width: 1.2; }
.metric-tile .spark .fill { fill: var(--red-glow); stroke: none; opacity: 0.5; }

.hero-side {
  display: flex; flex-direction: column; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.side-head {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-3); padding: 8px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}

/* === terminal === */
.terminal {
  background: #03030a;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-0);
  overflow: hidden;
  max-width: 100%;
}
.term-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0b0b14, #05050a);
  border-bottom: 1px solid var(--line);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.term-dots span:nth-child(1) { background: var(--red); }
.term-dots span:nth-child(2) { background: var(--amber); }
.term-dots span:nth-child(3) { background: var(--green); }
.term-body {
  padding: 18px 18px 6px;
  max-height: 360px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  user-select: text; -webkit-user-select: text;
  cursor: text;
}
.term-line { padding: 2px 0; }
.term-line .prompt { color: var(--red); margin-right: 8px; user-select: none; }
.term-line .cmd { color: var(--ink-0); }
.term-out { color: var(--ink-2); padding: 4px 0 8px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.term-out.compact { padding: 1px 0; }
.term-ascii { color: var(--ink-2); white-space: pre; font-size: min(1.8vw, 13px); line-height: 1.2; padding: 4px 0; overflow: hidden; }
.term-out.ok { color: var(--green); }
.term-out.warn { color: var(--amber); }
.term-out.err { color: var(--red); }
.term-out.dim { color: var(--ink-3); }
.term-out strong { color: var(--ink-0); font-weight: 600; }
.term-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line);
}
.term-enter-btn {
  background: none; border: 1px solid var(--line-2); color: var(--ink-3);
  font-size: 16px; width: 28px; height: 28px; border-radius: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color 0.2s, color 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.term-enter-btn:hover { border-color: var(--red); color: var(--red-hot); }
.term-input-row .prompt { color: var(--red); }
.term-input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ink-0); font-family: 'JetBrains Mono', monospace; font-size: 13px;
  caret-color: transparent;
}
.term-input-wrap {
  flex: 1; position: relative; display: flex; align-items: center; min-width: 0;
}
.term-input-wrap .term-cursor {
  width: 8px; height: 16px; background: var(--red); display: inline-block;
  animation: blink-cursor 1s step-end infinite;
  position: absolute; pointer-events: none;
}
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.term-hint {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 14px;
}
.term-hint button {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 4px 8px; background: transparent;
  border: 1px solid var(--line-2); color: var(--ink-2);
  cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em;
}
.term-hint button:hover { border-color: var(--red); color: var(--red-hot); }

/* === section scaffolding === */
section[id] { scroll-margin-top: 80px; }
.sec {
  position: relative; z-index: 3;
  padding: 96px 24px;
  max-width: 1440px; margin: 0 auto;
}
.sec-head {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px; align-items: end;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.sec-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--red); letter-spacing: 0.2em;
}
.sec-num .big { display: block; font-size: 48px; color: var(--ink-0); line-height: 1; margin-top: 4px; }
.sec-title {
  margin: 0; font-family: 'Hind Siliguri', sans-serif; font-weight: 700;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink-0); max-width: 22ch;
}
.sec-title em { color: var(--red); font-style: italic; font-family: 'Noto Serif Bengali', serif; }
.sec-title .en {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.38em; font-weight: 400; color: var(--ink-2);
  letter-spacing: -0.01em; margin-top: 8px;
}
.sec-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em;
  text-align: right;
}

/* === packet journey === */
.journey {
  position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(220,40,50,0.02), transparent);
}
.journey-rail {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  padding: 40px 0;
}
.journey-rail::before {
  content: ""; position: absolute; top: 50%; left: 5%; right: 5%;
  height: 1px; background: var(--line-2);
}
.hop {
  position: relative; z-index: 2;
  padding: 0 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hop-glyph {
  width: 72px; height: 72px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  display: grid; place-items: center;
  position: relative;
  transition: all 180ms ease;
}
.hop.active .hop-glyph { border-color: var(--red); box-shadow: 0 0 24px var(--red-glow); }
.hop.active .hop-glyph svg { color: var(--red); }
.hop-glyph svg { width: 32px; height: 32px; color: var(--ink-1); transition: color 180ms ease; }
.hop-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-1); }
.hop-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.packet {
  position: absolute; top: 50%; left: 10%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red), 0 0 24px var(--red-glow);
  transform: translate(-50%, -50%);
  transition: left 800ms cubic-bezier(0.6, 0, 0.4, 1);
  z-index: 3;
}
.packet-trail {
  position: absolute; top: 50%; left: 10%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--red));
  transform: translateY(-50%);
  opacity: 0.6; pointer-events: none;
  transition: width 800ms cubic-bezier(0.6, 0, 0.4, 1);
}

.journey-readout {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.journey-readout > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.journey-readout > div:last-child { border-right: 0; }
.journey-readout .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3); }
.journey-readout .val { font-size: 18px; color: var(--ink-0); font-variant-numeric: tabular-nums; }

/* branches from core */
.journey-branches {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.jbranch-group {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.jbranch-group:last-child { border-right: 0; }
.jbranch-header {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--red); margin-bottom: 10px;
}
.jbranch-header svg { width: 18px; height: 18px; color: var(--red); }
.jbranch-items { display: flex; flex-direction: column; gap: 4px; }
.jbranch-item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-1); padding: 4px 0;
}
.jb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.jb-ms { margin-left: auto; color: var(--ink-3); font-size: 10px; font-variant-numeric: tabular-nums; }

/* === split compare === */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  position: relative;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent 28%);
}
.split-col {
  padding: 40px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 20px;
}
.split-col.left { background: linear-gradient(180deg, #0a0607, #090509); border-right: 1px solid var(--line); }
.split-col.right { background: linear-gradient(135deg, #070a0a, #050707 65%); }
.split-col h3 {
  margin: 0; font-family: 'Hind Siliguri', sans-serif; font-weight: 700;
  font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -0.01em; line-height: 1.18;
}
.split-col.left h3 { color: #d08088; }
.split-col.right h3 { color: var(--ink-0); }
.split-col h3 em { font-style: italic; font-family: 'Noto Serif Bengali', serif; }
.split-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 4px 8px; border: 1px solid currentColor;
  display: inline-block; width: max-content;
}
.split-col.left .split-tag { color: #e85870; }
.split-col.right .split-tag { color: var(--green); }

.split-demo { flex: 1; position: relative; border: 1px solid var(--line); background: var(--bg-inset); overflow: hidden; min-height: 220px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015); }
.split-demo .mock-video {
  position: absolute; inset: 12px;
  background: linear-gradient(135deg, #1a1a22, #0a0a11);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-demo .mock-video .play {
  width: 58px; height: 58px; border-radius: 50%; background: var(--ink-1); display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04);
}
.split-demo .mock-video .play::before { content: ""; width: 0; height: 0; border: 10px solid transparent; border-left-color: #000; margin-left: 4px; }
.buffer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  display: grid; place-items: center;
  color: #e85870; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  animation: flicker 1.8s infinite;
}
.buffer-overlay::after { content: "buffering..."; }
.ping-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 4px 8px; background: #000; border: 1px solid;
  position: absolute; top: 12px; right: 12px;
  font-variant-numeric: tabular-nums;
}
.split-col.left .ping-chip { color: #e85870; border-color: #582530; }
.split-col.right .ping-chip { color: var(--green); border-color: color-mix(in oklch, var(--green), transparent 60%); }

.split-col ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.split-col li {
  padding: 8px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-2);
  display: flex; gap: 10px; border-top: 1px dashed rgba(255,255,255,0.06);
}
.split-col li:first-child { border-top: 0; }
.split-col.left li::before { content: "✗"; color: #e85870; flex-shrink: 0; width: 12px; }
.split-col.right li::before { content: "✓"; color: var(--green); flex-shrink: 0; width: 12px; }
.split-live-toggle {
  margin-left: 10px; padding: 4px 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.12em;
  cursor: pointer;
}
.split-live-toggle.on { border-color: var(--green); color: var(--green); }
.split-mini-graph {
  border: 1px solid color-mix(in oklch, #e85870, transparent 65%);
  background: rgba(232,88,112,0.06);
  height: 56px; padding: 6px 8px; position: relative;
}
.split-mini-graph.good {
  border-color: color-mix(in oklch, var(--green), transparent 65%);
  background: color-mix(in oklch, var(--green), transparent 95%);
}
.split-mini-graph svg { width: 100%; height: 32px; display: block; }
.split-mini-graph polyline { fill: none; stroke: #e85870; stroke-width: 2; vector-effect: non-scaling-stroke; }
.split-mini-graph.good polyline { stroke: var(--green); }
.split-mini-graph span {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.split-probe {
  border: 1px dashed var(--line); border-top: 0;
  padding: 12px 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,0.01);
}

/* === dhaka map === */
.map-wrap {
  display: grid; grid-template-columns: 1fr 320px; gap: 0;
  border: 1px solid var(--line);
}
.map-canvas {
  position: relative;
  background: radial-gradient(ellipse at center, #0d0d14, #05050a);
  padding: 24px;
  min-height: 520px;
  overflow: hidden;
}
.map-svg { width: 100%; height: 100%; min-height: 480px; display: block; }
.map-svg .trunk { stroke: var(--red); stroke-width: 1.5; fill: none; opacity: 0.9; }
.map-svg .trunk-dim { stroke: var(--line-2); stroke-width: 1; fill: none; }
.map-svg .river { fill: rgba(40,70,120,0.14); stroke: rgba(80,120,180,0.3); stroke-width: 0.5; }
.map-svg .zone { fill: var(--bg-raised); stroke: var(--line-2); stroke-width: 0.8; cursor: pointer; transition: all 150ms ease; }
.map-svg .zone:hover { fill: rgba(220,40,50,0.12); stroke: var(--red); }
.map-svg .zone.active { fill: rgba(220,40,50,0.22); stroke: var(--red); }
.map-svg .zone.rollout { fill: rgba(240,170,40,0.08); stroke-dasharray: 3 3; stroke: var(--amber); }
.map-svg .node { fill: var(--red); }
.map-svg .node-ring { fill: none; stroke: var(--red); stroke-width: 1; }
.map-svg .label { font-family: 'JetBrains Mono', monospace; font-size: 9px; fill: var(--ink-2); text-transform: uppercase; letter-spacing: 0.1em; pointer-events: none; }
.map-svg .label.hot { fill: var(--red-hot); }

.map-side {
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.map-side h4 {
  margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-3); font-weight: 500;
}
.map-side-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-height: 320px; overflow-y: auto; }
.map-side-zone {
  padding: 6px 8px; font-size: 11px;
  border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer;
  transition: all 120ms;
}
.map-side-zone:hover { border-color: var(--red); color: var(--red-hot); }
.map-side-zone.rollout { color: var(--amber); border-color: color-mix(in oklch, var(--amber), transparent 60%); }
.map-side-detail {
  border-top: 1px solid var(--line); padding-top: 16px;
}
.map-side-detail .name { font-size: 16px; color: var(--ink-0); margin-bottom: 6px; }
.map-side-detail .status { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; }
.map-side-detail .status.live { color: var(--green); }
.map-side-detail .status.rollout { color: var(--amber); }
.map-side-detail .kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 11px; color: var(--ink-2); }
.map-side-detail .kv strong { color: var(--ink-0); font-weight: 400; }

/* === POP topology map (Dhaka) === */
.pop-wrap {
  display: grid; grid-template-columns: 1fr 340px; gap: 0;
  border: 1px solid var(--line); background: #0a0a12;
}
.pop-canvas {
  position: relative;
  background:
    radial-gradient(ellipse at 55% 55%, rgba(40,20,60,0.45), transparent 60%),
    radial-gradient(ellipse at center, #0f0d1a, #05050c);
  min-height: 620px; overflow: hidden;
}
.pop-svg { width: 100%; height: 100%; min-height: 620px; display: block; }
.pop-svg .thana-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em; pointer-events: none; }
.pop-svg .pop-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; font-weight: 600; pointer-events: none; }
.pop-svg .compass-n { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: var(--ink-2); letter-spacing: 0.12em; }

.pop-side {
  background: var(--bg-panel); border-left: 1px solid var(--line);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
}

.div-switch {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  padding: 4px; border: 1px solid var(--line);
  background: var(--bg-inset);
}
.div-btn {
  position: relative;
  padding: 12px 8px 10px; background: transparent; border: 0;
  color: var(--ink-2); cursor: pointer; font-family: inherit;
  display: flex !important; flex-direction: column !important; align-items: center; justify-content: center;
  gap: 5px;
  transition: color 120ms, background 120ms;
  text-align: center; line-height: 1;
  min-height: 52px;
}
.div-btn > * { display: block !important; width: 100%; }
.div-btn::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color 120ms;
  pointer-events: none;
}
.div-btn .bn {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 16px; font-weight: 600; line-height: 1;
  display: block;
}
.div-btn .en {
  font-size: 9px; letter-spacing: 0.2em; color: var(--ink-3);
  text-transform: uppercase; line-height: 1; display: block;
  font-family: 'JetBrains Mono', monospace;
}
.div-btn:hover { color: var(--red-hot); background: rgba(255,255,255,0.02); }
.div-btn:hover::before { border-color: var(--red-dim); }
.div-btn:hover .en { color: var(--red-hot); }
.div-btn.on {
  color: var(--red-hot);
  background: color-mix(in oklch, var(--red) 14%, transparent);
}
.div-btn.on::before { border-color: var(--red); }
.div-btn.on .en { color: var(--red-hot); }
.div-btn.on .bn::before {
  content: '◆'; margin-right: 6px; font-size: 9px; vertical-align: 3px;
  color: var(--red-hot);
}

.side-sub { float: right; color: var(--ink-2); font-weight: 400; letter-spacing: 0.12em; }
.pop-side-head {
  font-size: 10px; letter-spacing: 0.24em; color: var(--ink-3); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.pop-zones {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  overflow-y: auto; padding-right: 4px;
}
.pop-zones::-webkit-scrollbar { width: 6px; }
.pop-zones::-webkit-scrollbar-thumb { background: var(--line-2); }
.zone-pill {
  padding: 8px 10px; background: transparent; border: 1px solid var(--line);
  color: var(--ink-1); cursor: pointer; font-family: inherit; font-size: 11px;
  text-align: left; letter-spacing: 0.04em;
  transition: border-color 120ms, color 120ms, background 120ms;
}
.zone-pill:hover { border-color: var(--red-dim); color: var(--red-hot); }
.zone-pill.on {
  border-color: var(--red); color: var(--red-hot);
  background: color-mix(in oklch, var(--red) 10%, transparent);
}
.zone-pill.planned { color: var(--ink-2); font-style: italic; }
.zone-pill.planned.on { color: var(--amber); border-color: var(--amber); }

.pop-detail {
  padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.pop-detail-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600;
  color: var(--ink-0); letter-spacing: -0.01em;
}
.pop-detail-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.pop-detail-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.pop-detail-status.live { color: var(--green); }
.pop-detail-status.live .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.pop-detail-status.planned { color: var(--amber); }
.pop-detail-status.planned .dot { background: var(--amber); }

.pop-detail-spec {
  margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px;
  font-size: 11px;
}
.pop-detail-spec dt { color: var(--ink-3); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pop-detail-spec dd { margin: 0; color: var(--ink-0); padding: 8px 0; border-bottom: 1px dashed var(--line); text-align: right; }

/* map markers */
.map-pin { position: relative; display: flex; align-items: center; justify-content: center; }
.map-pin-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); box-shadow: 0 0 8px var(--red-glow); }
.map-pin.active .map-pin-dot { width: 14px; height: 14px; background: var(--red-hot); box-shadow: 0 0 16px var(--red-hot); }
.map-pin-pulse { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--red-hot); animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.map-tooltip { background: var(--bg-panel) !important; color: var(--ink-1) !important; border: 1px solid var(--line) !important; font-family: 'JetBrains Mono', monospace !important; font-size: 9px !important; letter-spacing: 0.12em !important; padding: 3px 8px !important; box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important; }
.map-tooltip-active { background: var(--red) !important; color: #fff !important; border-color: var(--red-hot) !important; font-weight: 600 !important; }
.map-tooltip::before, .leaflet-tooltip-top::before { border-top-color: var(--bg-panel) !important; }
.map-tooltip-active::before { border-top-color: var(--red) !important; }
.leaflet-control-zoom a { background: var(--bg-panel) !important; color: var(--ink-1) !important; border-color: var(--line) !important; }
.leaflet-control-zoom a:hover { background: var(--bg-raised) !important; color: var(--ink-0) !important; }

.area-pill-btn { cursor: pointer; border-color: var(--line) !important; color: var(--ink-1) !important; font-size: 12px; transition: border-color 0.2s, color 0.2s; }
.area-pill-btn:hover { border-color: var(--red) !important; color: var(--ink-0) !important; }
.area-pill-btn .dot-sm { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; }
.pop-areas { margin-top: 16px; }
.pop-areas-title { font-size: 10px; color: var(--red); letter-spacing: 0.14em; margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.pop-areas-list { max-height: 200px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.pop-area-item { font-size: 11px; color: var(--ink-1); padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-area-item .dot-sm { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; }
.pop-areas-list::-webkit-scrollbar { width: 4px; }
.pop-areas-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }

/* === custom SVG coverage map (Option B) === */
.cov-wrap .cov-canvas { padding: 0; display: flex; align-items: stretch; }
.cov-svg {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(220,40,50,0.08), transparent 58%),
    radial-gradient(ellipse at center, #0f0d1a, #05050c);
}
.cov-grid line {
  stroke: rgba(255,255,255,0.04);
  stroke-width: 1;
}
.cov-link {
  stroke: color-mix(in oklch, var(--red), transparent 55%);
  stroke-width: 1.2;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.cov-link.dim { opacity: 0.12; }
.cov-thana.dim { opacity: 0.35; }
.cov-thana-node {
  fill: var(--red);
  stroke: rgba(0,0,0,0.45);
  stroke-width: 1.5;
  transition: r 0.2s, fill 0.2s;
}
.cov-thana.active .cov-thana-node {
  fill: var(--red-hot);
  filter: url(#covPulse);
}
.cov-thana-ring {
  fill: none;
  stroke: var(--red-hot);
  stroke-width: 1.5;
  opacity: 0.55;
  animation: pulse-ring 2.4s ease-out infinite;
}
.cov-thana-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: var(--ink-1);
  letter-spacing: 0.12em;
  pointer-events: none;
}
.cov-thana.active .cov-thana-label { fill: #fff; font-weight: 700; }
.cov-thana-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--ink-3);
  letter-spacing: 0.08em;
  pointer-events: none;
}
.cov-area-link {
  stroke: color-mix(in oklch, var(--green), transparent 35%);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.85;
}
.cov-area-node {
  fill: var(--green);
  stroke: rgba(0,0,0,0.35);
  stroke-width: 1;
  transition: r 0.15s, fill 0.15s;
}
.cov-area.pick .cov-area-node,
.cov-area:hover .cov-area-node {
  fill: #9dff9d;
}
.cov-area-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  fill: var(--ink-0);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.cov-area.pick .cov-area-label { fill: var(--green); font-weight: 700; }
.cov-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--ink-3);
  letter-spacing: 0.14em;
  pointer-events: none;
}
.cov-back-btn {
  align-self: flex-start;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cov-back-btn:hover { border-color: var(--red); color: var(--red-hot); }

.cov-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 620px;
  background: #05050c;
  z-index: 0;
}
.map-area-pin { position: relative; display: flex; align-items: center; justify-content: center; }
.map-area-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(100,200,100,0.6);
}
.map-area-pin.active .map-area-dot {
  width: 11px; height: 11px;
  background: #9dff9d;
  box-shadow: 0 0 14px rgba(157,255,157,0.8);
}
.map-area-tooltip {
  background: var(--bg-panel) !important;
  color: var(--ink-1) !important;
  border: 1px solid var(--green) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.06em !important;
  padding: 3px 8px !important;
}
.map-area-tooltip-active {
  background: rgba(100,200,100,0.15) !important;
  color: var(--green) !important;
  font-weight: 600 !important;
}

/* === plans === */
.plans {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  font-family: 'JetBrains Mono', monospace;
}
.plans-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #0b0b14, #05050a);
  border-bottom: 1px solid var(--line);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.plans-flags { display: flex; gap: 4px; }
.plans-flags button {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 6px 12px; background: transparent;
  border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.plans-flags button.on { border-color: var(--red); color: var(--red-hot); background: rgba(220,40,50,0.06); }

.plans-body { padding: 0; }
.plans-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 120px 120px 160px;
  gap: 0;
  padding: 20px 20px;
  border-bottom: 1px dashed var(--line);
  align-items: center;
  transition: background 120ms ease;
}
.plans-row:hover { background: rgba(220,40,50,0.04); }
.plans-row:last-child { border-bottom: 0; }
.plans-row.header {
  padding: 10px 20px; background: var(--bg-inset);
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-3); border-bottom: 1px solid var(--line);
}
.plans-row.header:hover { background: var(--bg-inset); }
.plans-row .pcode { color: var(--red); font-size: 12px; }
.plans-row .pname {
  font-family: 'Hind Siliguri', sans-serif; font-weight: 600;
  font-size: 18px; color: var(--ink-0);
}
.plans-row .pname .en { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; font-weight: 400; }
.plans-row .pspeed {
  font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--red); text-shadow: 0 0 20px var(--red-glow);
}
.plans-row .pspeed .u { color: var(--ink-3); font-size: 11px; font-weight: 400; text-shadow: none; }
.plans-row .pbdix { font-size: 12px; color: var(--ink-1); }
.plans-row .pprice { font-size: 22px; color: var(--ink-0); font-variant-numeric: tabular-nums; }
.plans-row .pprice .u { color: var(--ink-3); font-size: 11px; }
.plans-row .pprice .save { display: block; font-size: 10px; color: var(--green); margin-top: 2px; letter-spacing: 0.1em; }
.plans-row .paction { text-align: right; }
.plans-show-all {
  display: block; width: 100%; padding: 14px; margin-top: 2px;
  background: var(--bg-inset); border: 1px solid var(--line); border-top: 0;
  color: var(--red); font-family: 'JetBrains Mono', monospace; font-size: 13px;
  letter-spacing: 0.08em; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.plans-show-all:hover { background: rgba(220,40,50,0.06); color: var(--red-hot); }

/* === parental control === */
.pc-container { border: 1px solid var(--line); background: var(--bg-panel); }
.pc-hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 36px; gap: 32px;
  background: linear-gradient(135deg, rgba(220,40,50,0.06), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.pc-hero-content { max-width: 500px; }
.pc-hero-badge {
  display: inline-block; padding: 4px 12px; margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.16em; color: var(--green); border: 1px solid var(--green);
}
.pc-hero-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700;
  color: var(--ink-0); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em;
}
.pc-hero-title em { color: var(--red); font-style: italic; font-family: 'Hind Siliguri', serif; }
.pc-hero-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin: 0; }

.pc-hero-right { display: flex; flex-direction: row; align-items: stretch; gap: 12px; }

/* network info box */
.pc-netinfo {
  flex: 1; padding: 20px; border: 1px solid var(--line); border-right: 0;
  background: var(--bg); font-family: 'JetBrains Mono', monospace;
  display: flex; flex-direction: column; justify-content: center;
}
.pc-netinfo.xpress { border-color: var(--green); border: 1px solid var(--green); }
.pc-netinfo.other { border-color: var(--amber); border: 1px solid var(--amber); }
.pc-netinfo-loading { font-size: 10px; color: var(--ink-3); padding: 8px 0; }
.pc-netinfo-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pc-netinfo-dot { width: 6px; height: 6px; border-radius: 50%; }
.pc-netinfo-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.pc-netinfo-dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.pc-netinfo-label { font-size: 9px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }
.pc-netinfo-ip { font-size: 18px; font-weight: 700; color: var(--ink-0); letter-spacing: 0.02em; }
.pc-netinfo-isp { font-size: 11px; color: var(--ink-1); margin-top: 2px; }
.pc-netinfo-loc { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.pc-netinfo-status { font-size: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pc-netinfo-status.ok { color: var(--green); }
.pc-netinfo-status.warn { color: var(--amber); }
.pc-netinfo-cta {
  display: block; margin-top: 6px; font-size: 10px; color: var(--red-hot);
  text-decoration: none; letter-spacing: 0.1em;
}
.pc-netinfo-cta:hover { text-decoration: underline; }
.pc-shield-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px; background: var(--bg);
  border: 1px solid var(--line-2); cursor: pointer;
  transition: all 0.3s; position: relative; overflow: hidden;
  animation: shield-breathe 3s ease-in-out infinite;
}
@keyframes shield-breathe {
  0%, 100% { border-color: var(--line-2); box-shadow: 0 0 5px rgba(200,40,50,0), 0 0 0 rgba(200,40,50,0); }
  50% { border-color: var(--red); box-shadow: 0 0 25px rgba(200,40,50,0.25), 0 0 60px rgba(200,40,50,0.1), inset 0 0 30px rgba(200,40,50,0.05); }
}
.pc-shield-btn:hover { border-color: var(--red); box-shadow: 0 0 40px var(--red-glow); animation: none; }
.pc-shield-btn:disabled { cursor: wait; }
.pc-shield-btn.scanning { border-color: var(--red-hot); animation: none; box-shadow: 0 0 40px var(--red-glow); }
.pc-shield-icon { width: 48px; height: 56px; color: var(--red); transition: transform 0.3s, color 0.3s; }
.pc-shield-btn:hover .pc-shield-icon { transform: scale(1.15); color: var(--red-hot); }
.pc-shield-btn.scanning .pc-shield-icon { animation: shield-pulse 1s ease-in-out infinite; color: var(--red-hot); }
@keyframes shield-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.pc-shield-check { stroke-dasharray: 24; stroke-dashoffset: 24; animation: check-draw 1.5s ease forwards 0.5s; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.pc-shield-text {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  color: var(--ink-0); text-transform: uppercase; letter-spacing: 0.12em;
}
.pc-shield-sub {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.06em;
}

.pc-status-bar.safe { border-left: 3px solid var(--green); }
.pc-status-bar.unsafe { border-left: 3px solid var(--red); }
.pc-status-bar.partial { border-left: 3px solid var(--amber); }
.pc-status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-panel));
}
.pc-status-left { display: flex; align-items: center; gap: 14px; }
.pc-shield { font-size: 32px; }
.pc-status-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; color: var(--ink-0); }
.pc-status-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.06em; }
.pc-retest {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 8px 16px;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-2);
  cursor: pointer; letter-spacing: 0.1em; transition: all 0.2s;
}
.pc-retest:hover { border-color: var(--red); color: var(--red-hot); }
.pc-retest:disabled { opacity: 0.4; cursor: not-allowed; }

.pc-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pc-result-card {
  padding: 24px 20px; text-align: center; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: background 0.3s;
}
.pc-result-card:last-child { border-right: 0; }
.pc-result-card.blocked { background: rgba(100,200,100,0.04); }
.pc-result-card.open { background: rgba(220,40,50,0.04); }
.pc-result-card.testing { background: rgba(200,200,100,0.04); }
.pc-result-icon { font-size: 28px; }
.pc-result-category { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.12em; }
.pc-result-status { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; }
.pc-pending { color: var(--ink-4); }
.pc-blocked { color: var(--green); padding: 3px 10px; border: 1px solid var(--green); background: rgba(100,200,100,0.08); }
.pc-open { color: var(--red); padding: 3px 10px; border: 1px solid var(--red); background: rgba(220,40,50,0.08); }
.pc-testing-anim { color: var(--amber); animation: blink-cursor 0.6s step-end infinite; }

.pc-bottom { padding: 24px; border-top: 1px solid var(--line); }
.pc-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pc-info-item strong { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-0); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.pc-info-item p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.pc-info-item a { color: var(--red-hot); text-decoration: none; }
.pc-info-item a:hover { text-decoration: underline; }
.pc-enable-btn { display: block; text-align: center; margin-top: 20px; }

.pc-time-feature {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(220,40,50,0.04), transparent 42%);
}
.pc-time-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}
.pc-time-feature-copy {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}
.pc-time-feature-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.pc-time-feature-title {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.pc-time-feature-title em {
  color: var(--red);
  font-style: italic;
  font-family: 'Hind Siliguri', serif;
}
.pc-time-feature-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 52ch;
}
.pc-time-feature-desc a { color: var(--red-hot); text-decoration: none; }
.pc-time-feature-desc a:hover { text-decoration: underline; }
.pc-time-feature-steps {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
}
.pc-time-feature-steps a { color: var(--red-hot); text-decoration: none; }
.pc-time-feature-steps a:hover { text-decoration: underline; }
.pc-time-feature-steps strong { color: var(--ink-0); font-weight: 600; }
.pc-time-feature-cta { display: inline-block; }
.pc-time-feature-list {
  display: flex;
  flex-direction: column;
}
.pc-time-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  transition: background 0.2s;
}
.pc-time-feature-item:last-child { border-bottom: 0; }
.pc-time-feature-item:hover { background: var(--bg-raised); }
.pc-time-feature-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.pc-time-feature-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--ink-0);
  margin-bottom: 4px;
}
.pc-time-feature-item span {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
}

.pc-block-request { padding: 24px; border-top: 1px solid var(--line); }
.pc-br-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pc-br-icon { font-size: 24px; }
.pc-br-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink-0); }
.pc-br-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.pc-br-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-br-input {
  flex: 1; min-width: 180px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--ink-0); font-family: 'JetBrains Mono', monospace; font-size: 12px; outline: none;
}
.pc-br-input:focus { border-color: var(--red); }
.pc-br-input::placeholder { color: var(--ink-4); }
.pc-br-submit {
  padding: 10px 20px; background: var(--red); color: #fff; border: 0; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap; transition: background 0.2s;
}
.pc-br-submit:hover { background: var(--red-hot); }
.pc-br-success { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--green); }

/* === bdix board === */
.bdix {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line);
}
.bdix-left { padding: 40px; border-right: 1px solid var(--line); background: var(--bg-panel); }
.bdix-left h3 { margin: 0 0 16px; font-family: 'Hind Siliguri', sans-serif; font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.bdix-left h3 em { color: var(--red); font-style: italic; font-family: 'Noto Serif Bengali', serif; }
.bdix-left p { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
.bdix-left ul { list-style: none; margin: 0; padding: 0; }
.bdix-left li { padding: 8px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-1); display: flex; gap: 10px; border-top: 1px dashed var(--line); }
.bdix-left li span { color: var(--red); }

.bdix-right { padding: 0; background: var(--bg-inset); font-family: 'JetBrains Mono', monospace; }
.bdix-right-head {
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3); display: flex; justify-content: space-between;
}
.cache-row {
  display: grid; grid-template-columns: 120px 1fr 60px;
  gap: 14px; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px dashed var(--line); font-size: 12px;
}
.cache-row:last-child { border-bottom: 0; }
.cache-name { color: var(--ink-1); display: flex; align-items: center; gap: 8px; }
.cache-status { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.cache-bar { height: 6px; background: var(--bg); position: relative; overflow: hidden; border: 1px solid var(--line); }
.cache-bar-fill { height: 100%; background: linear-gradient(90deg, var(--red-dim), var(--red)); transition: width 800ms ease; }
.cache-ping { text-align: right; color: var(--red-hot); font-variant-numeric: tabular-nums; font-size: 13px; }
.cache-ping span { color: var(--ink-3); font-size: 10px; margin-left: 2px; }

/* === install / order flow === */
.install {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 480px;
}
.install-left {
  padding: 36px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.install-left h3 { margin: 0; font-family: 'Hind Siliguri', sans-serif; font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-0); }
.install-left h3 em { color: var(--red); font-style: italic; font-family: 'Noto Serif Bengali', serif; }
.install-left p { color: var(--ink-2); font-size: 14px; margin: 0; max-width: 40ch; }
.install-contact-block { margin-top: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); }
.install-contact-block strong { display: block; color: var(--ink-0); font-size: 14px; margin-bottom: 4px; font-weight: 400; }
.install-contact-block a { color: var(--red-hot); text-decoration: none; }

.install-right {
  padding: 28px; background: #03030a;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--ink-1);
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.install-line { padding: 4px 0; white-space: pre-wrap; }
.install-line .prompt { color: var(--red); margin-right: 8px; }
.install-line.dim { color: var(--ink-3); }
.install-line.ok { color: var(--green); }
.install-line.err { color: #ff4444; }
.install-line.warn { color: var(--amber); }
.install-input {
  background: transparent; border: 0; outline: 0;
  color: var(--ink-0); font-family: 'JetBrains Mono', monospace;
  font-size: 12px; flex: 1; caret-color: var(--red);
}
.install-input-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.install-pick { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 0 10px 22px; }
.install-pick button {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 5px 10px; background: transparent;
  border: 1px solid var(--line-2); color: var(--ink-1); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.install-pick button:hover,
.install-pick button.on { border-color: var(--red); color: var(--red-hot); background: rgba(220,40,50,0.06); }
.install-pick.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.plan-pick-btn { display: flex; flex-direction: column; align-items: flex-start !important; padding: 8px 12px !important; }
.plan-pick-name { font-weight: 600; font-size: 12px !important; }
.plan-pick-detail { font-size: 9px !important; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.06em; }
.install-form-fields { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px 22px; }
.install-form-fields .install-input { width: 100%; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-0); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.install-form-fields .install-input:focus { border-color: var(--red); outline: none; }
.install-form-fields .install-input::placeholder { color: var(--ink-3); }
.install-submit { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 10px 16px; background: var(--red); color: #fff; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; transition: background 0.2s; }
.install-submit:hover { background: var(--red-hot); }
.install-right { max-height: 500px; overflow-y: auto; }
.install-right::-webkit-scrollbar { width: 4px; }
.install-right::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.install-progress {
  height: 4px; background: var(--bg); margin: 12px 0;
  position: relative; overflow: hidden;
}
.install-progress-fill { height: 100%; background: var(--red); transition: width 500ms ease; }
.install-success { color: var(--green); padding: 16px 0; }
.install-success strong { color: var(--green); font-size: 14px; display: block; margin-bottom: 8px; }

/* === footer === */
.foot {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
  padding: 60px 24px 20px;
  margin-top: 60px;
}
.foot-inner { max-width: 1440px; margin: 0 auto; }
.foot-shutdown {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); padding-bottom: 40px; border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.foot-shutdown .line { padding: 2px 0; }
.foot-shutdown .ok { color: var(--green); }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 40px;
}
.foot-brand { font-size: 13px; color: var(--ink-2); max-width: 38ch; }
.foot-brand .logo { margin-bottom: 20px; }
.foot-col h5 { margin: 0 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3); font-weight: 500; }
.foot-col a { display: block; padding: 4px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-1); text-decoration: none; }
.foot-col a:hover { color: var(--red-hot); }
.foot-bottom {
  display: flex; justify-content: space-between; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3);
}

/* === animations === */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}
@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes flicker {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.75; }
  52% { opacity: 0.95; }
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.cursor { display: inline-block; width: 8px; height: 1em; background: var(--red); margin-left: 2px; vertical-align: text-bottom; animation: cursor-blink 1s steps(1) infinite; }
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.5); opacity: 0; }
}
.pulse-ring {
  animation: pulse-ring 2.4s ease-out infinite;
  transform-origin: center;
}

/* === tweaks panel === */
.tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--red);
  box-shadow: 0 0 40px var(--red-glow), 0 8px 30px rgba(0,0,0,0.6);
  font-family: 'JetBrains Mono', monospace;
}
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: linear-gradient(180deg, #160a0c, #0a0609);
  border-bottom: 1px solid var(--red);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--red-hot);
}
.tweaks-head button { background: transparent; border: 0; color: var(--ink-2); cursor: pointer; font-family: inherit; font-size: 12px; }
.tweaks-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; }
.tweak-row label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3); }
.tweak-opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-opts button {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 5px 9px; background: transparent;
  border: 1px solid var(--line-2); color: var(--ink-1); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tweak-opts button.on { border-color: var(--red); color: var(--red-hot); }

/* tweaks (app layer -- overrides .tweak-* legacy ones) */
.tweaks { display: flex; flex-direction: column; }
.tweaks-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border-bottom: 1px solid var(--line);
}
.tweaks-row:last-child { border-bottom: 0; }
.tweaks-row label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3);
}
.tweaks-row label code { color: var(--red-hot); font-size: 10px; letter-spacing: 0; }
.tweaks-row input[type="range"] { width: 100%; accent-color: var(--red); }
.tweaks-swatches { display: flex; gap: 6px; margin-top: 4px; }
.tweaks-swatches button { width: 22px; height: 22px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.tweaks-swatches button:hover { border-color: #fff; }
.tweaks-pick { display: flex; gap: 4px; }
.tweaks-pick button {
  flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 6px; background: transparent; border: 1px solid var(--line-2);
  color: var(--ink-1); cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em;
}
.tweaks-pick button.on { border-color: var(--red); color: var(--red-hot); background: rgba(220,40,50,0.06); }
.tweaks-toggle {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 6px 12px; background: transparent; border: 1px solid var(--line-2);
  color: var(--ink-2); cursor: pointer; letter-spacing: 0.14em;
  align-self: flex-start;
}
.tweaks-toggle.on { border-color: var(--red); color: var(--red-hot); background: rgba(220,40,50,0.06); }

/* CRT off = remove the scanline atmosphere */
body.no-crt::before, body.no-crt::after { display: none; }

/* boot sequence */
.boot {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  display: grid; place-items: center;
  animation: boot-flicker 0.08s linear 3;
}
.boot-inner {
  width: min(680px, 92vw);
  font-size: 12px; line-height: 1.7;
  color: var(--green);
  padding: 24px;
}
.boot-line { opacity: 0; animation: boot-type 0.2s forwards; }
.boot-line:nth-child(1) { animation-delay: 0s; }
.boot-line:nth-child(2) { animation-delay: 0.1s; }
.boot-line:nth-child(3) { animation-delay: 0.2s; }
.boot-line:nth-child(4) { animation-delay: 0.3s; }
.boot-line:nth-child(5) { animation-delay: 0.4s; }
.boot-line:nth-child(6) { animation-delay: 0.5s; color: var(--red-hot); font-weight: 700; }
.boot-cursor {
  display: inline-block; color: var(--green); animation: blink 1s infinite;
  margin-top: 6px;
}
@keyframes boot-type { to { opacity: 1; } }
@keyframes boot-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

/* font-head override for headline typeface tweak */
.sec-title, .hero-big, .split-col h3, h2, h3 {
  font-family: var(--font-head, 'Space Grotesk','Hind Siliguri', sans-serif);
}

/* loading */
.loading {
  min-height: 100vh; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; color: var(--ink-2); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em;
}
.loading::before { content: "[...]"; color: var(--red); margin-right: 12px; animation: blink 1s infinite; }

/* responsive-ish */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-col.left { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-wrap { grid-template-columns: 1fr; }
  .map-side { border-left: 0; border-top: 1px solid var(--line); }
  .pop-wrap { grid-template-columns: 1fr; }
  .pop-side { border-left: 0; border-top: 1px solid var(--line); }
  .bdix, .install { grid-template-columns: 1fr; }
  .bdix-left, .install-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .plans-row { grid-template-columns: 60px 1fr 1fr; row-gap: 8px; }
  .plans-row > .pbdix, .plans-row > .paction { grid-column: span 3; }
}

@media (max-width: 768px) {
  /* === GLOBAL: 16px horizontal padding everywhere === */

  /* topbar */
  .topbar-row { padding: 6px 16px; gap: 8px; overflow: hidden; }
  .tb-cluster { gap: 8px; }
  .tb-cluster:last-child { display: none; }
  .tb-item { font-size: 9px; }
  .tb-ticker { font-size: 9px; }

  /* nav */
  .nav-links { display: none; }
  .nav-cta { display: none !important; }
  .nav-inner { padding: 12px 16px; }
  .logo-svg { height: 28px; }
  .hamburger { display: flex !important; }
  .btn-sm { font-size: 10px; padding: 8px 12px; }

  /* sections — consistent 16px sides */
  .sec { padding: 48px 16px; overflow: hidden; max-width: 100vw; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .sec-num { display: flex; align-items: center; gap: 12px; }
  .sec-num .big { display: inline; font-size: 28px; margin-top: 0; }
  .sec-title { font-size: 24px; }
  .sec-title .en { font-size: 11px; }
  .sec-meta { font-size: 9px; }

  /* hero */
  .hero { padding: 24px 16px 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .hero-main { padding: 24px 0; }
  .hero-headline .en {
    margin-top: 16px;
    width: 100%;
    max-width: 32ch;
    padding-left: 10px;
    line-height: 1.3;
  }
  .hero-headline .en .en-line-nowrap {
    white-space: normal;
  }
  .hero-headline h1 .rotating-strike {
    width: auto;
    font-size: 0.74em;
  }

  /* terminal */
  .terminal { font-size: 11px; overflow: hidden; width: 100%; box-sizing: border-box; }
  .term-head { padding: 8px 12px; font-size: 8px; }
  .term-head-title { display: none; }
  .term-head-info { font-size: 8px; }
  .term-body { padding: 12px; max-height: 280px; overflow-x: hidden; }
  .term-out { font-size: 10px; word-break: break-word; overflow-wrap: anywhere; }
  .term-line { font-size: 11px; }
  .term-input-row { padding: 8px 12px; }
  .term-input { font-size: 12px; min-width: 0; }
  .term-hint { padding: 4px 12px 10px; gap: 4px; flex-wrap: wrap; }
  .term-hint button { font-size: 8px; padding: 3px 5px; }
  .install-pick { padding: 6px 0 10px 16px; gap: 4px; }
  .install-pick button { font-size: 10px; padding: 6px 8px; }
  .install-pick.plan-grid { grid-template-columns: 1fr; padding-left: 16px; }
  .panel { overflow: hidden; }

  /* journey — vertical layout */
  .journey-rail {
    grid-template-columns: 1fr; grid-template-rows: repeat(5, auto);
    padding: 20px 16px; gap: 0;
  }
  .journey-rail::before {
    top: 5%; bottom: 5%; left: 40px; right: auto;
    width: 1px; height: auto;
  }
  .hop {
    flex-direction: row; text-align: left; gap: 12px; padding: 10px 0;
  }
  .hop-glyph { width: 48px; height: 48px; flex-shrink: 0; }
  .hop-glyph svg { width: 22px; height: 22px; }
  .hop-label { font-size: 10px; }
  .packet {
    left: 40px !important; top: auto !important;
    transform: translate(-50%, -50%);
    transition: top 800ms cubic-bezier(0.6, 0, 0.4, 1);
  }
  .packet-trail {
    left: 40px !important; top: 10% !important;
    width: 2px !important; height: 0;
    background: linear-gradient(180deg, transparent, var(--red)) !important;
    transform: translateX(-50%) !important;
    transition: height 800ms cubic-bezier(0.6, 0, 0.4, 1);
  }
  .journey-branches { grid-template-columns: 1fr 1fr; }
  .jbranch-group { padding: 12px 16px; }
  .jbranch-header { font-size: 9px; }
  .jbranch-item { font-size: 10px; }
  .journey-readout { grid-template-columns: 1fr 1fr; }
  .journey-readout > div:nth-child(2) { border-right: 0; }

  /* plans */
  .plans-row { grid-template-columns: 1fr; row-gap: 4px; padding: 14px 16px; }
  .plans-row > .pcode { display: none; }
  .plans-row > .pbdix { display: none; }
  .plans-row > .paction { margin-top: 8px; }
  .plans-row.header { display: none; }
  .plans-head { flex-direction: column; gap: 8px; padding: 10px 16px; }
  .plans-head span { font-size: 10px; word-break: break-all; }
  .plans-flags { flex-wrap: wrap; }
  .plans-flags button { font-size: 10px; }
  .plans-show-all { font-size: 11px; padding: 12px 16px; }
  .pspeed { font-size: 22px !important; }

  /* coverage / map */
  .pop-wrap { grid-template-columns: 1fr; }
  .pop-canvas { min-height: 250px; max-height: 300px; }
  .cov-leaflet-map { min-height: 280px; }
  .pop-side { border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .pop-svg { min-height: 250px; }
  .pop-zones { grid-template-columns: 1fr 1fr; gap: 4px; }
  .zone-pill { font-size: 11px; padding: 6px 8px; }
  .pop-detail-name { font-size: 18px; }
  .pop-areas-list { grid-template-columns: 1fr; }
  .div-btn { padding: 8px 12px; }

  /* split */
  .split { grid-template-columns: 1fr; }
  .split-col { padding: 24px 16px; }
  .split-col.left { border-right: 0; border-bottom: 1px solid var(--line); }

  /* parental control */
  .pc-hero { flex-direction: column; padding: 24px 16px; text-align: center; gap: 20px; }
  .pc-hero-content { max-width: 100%; }
  .pc-hero-title { font-size: 22px; }
  .pc-hero-right { width: 100%; flex-direction: column; gap: 8px; }
  .pc-netinfo { border: 1px solid var(--green) !important; }
  .pc-netinfo.other { border-color: var(--amber) !important; }
  .pc-shield-btn { padding: 16px; flex-direction: row; gap: 14px; }
  .pc-shield-text { font-size: 10px; text-align: left; }
  .pc-shield-sub { font-size: 9px; text-align: left; }
  .pc-shield-icon { width: 36px; height: 42px; flex-shrink: 0; }
  .pc-shield-text { font-size: 11px; }
  .pc-shield-sub { font-size: 9px; text-align: left; }
  .pc-status-bar { flex-direction: column; gap: 12px; padding: 16px; align-items: flex-start; }
  .pc-block-request { padding: 16px; }
  .pc-br-form { flex-direction: column; }
  .pc-br-input { min-width: auto; width: 100%; }
  .pc-results { grid-template-columns: 1fr 1fr; }
  .pc-result-card { padding: 16px 12px; }
  .pc-result-card:nth-child(2) { border-right: 0; }
  .pc-result-card:nth-child(1), .pc-result-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pc-info { grid-template-columns: 1fr; gap: 16px; }
  .pc-bottom { padding: 16px; }
  .pc-time-feature-grid { grid-template-columns: 1fr; }
  .pc-time-feature-copy {
    padding: 24px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pc-time-feature-title { font-size: 22px; }

  /* bdix */
  .bdix { grid-template-columns: 1fr; }
  .bdix-left { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 16px; }

  /* install */
  .install { grid-template-columns: 1fr; min-height: auto; overflow: hidden; }
  .install-left { padding: 24px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .install-left h3 { font-size: 24px; }
  .install-right { padding: 16px; max-height: 400px; font-size: 11px; }
  .install-input-row { gap: 4px; }

  /* footer */
  .foot { padding: 32px 16px 16px; margin-top: 32px; }
  .foot-inner { padding: 0; }
  .foot-shutdown { padding-bottom: 20px; margin-bottom: 20px; font-size: 11px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 20px; }
  .foot-brand { font-size: 12px; grid-column: 1 / -1; max-width: 100%; }
  .foot-brand .logo { margin-bottom: 10px; }
  .foot-col h5 { margin-bottom: 8px; font-size: 10px; }
  .foot-col a { font-size: 12px; padding: 3px 0; }
  .foot-bottom { flex-direction: column; gap: 6px; font-size: 10px; padding-top: 12px; }
}
