/* PulseID — Dark/nightlife site styles
   Built on PulseTech tokens (assets/tokens.css) with a dark canvas. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  /* Canvas */
  --pid-bg:         #0a1628;
  --pid-bg-soft:    #0d1b30;
  --pid-bg-elev:    #122340;
  --pid-bg-deep:    #07101e;

  /* Hairlines */
  --pid-line:        rgba(255,255,255,0.07);
  --pid-line-strong: rgba(255,255,255,0.14);

  /* Brand */
  --pid-cyan:        #1a93e0;
  --pid-cyan-bright: #47c2ff;
  --pid-cyan-glow:   rgba(26,147,224,0.22);
  --pid-cyan-faint:  rgba(26,147,224,0.10);

  /* Text on dark */
  --pid-ink:   #ffffff;
  --pid-body:  #94a4b8;
  --pid-muted: #5b6a80;
  --pid-dim:   #364457;

  /* Semantic */
  --pid-ok:    #34d399;
  --pid-ok-bg: rgba(52,211,153,0.12);
  --pid-warn:  #fbbf24;
  --pid-warn-bg: rgba(251,191,36,0.12);
  --pid-err:   #f87171;
  --pid-err-bg: rgba(248,113,113,0.14);

  --pid-section: 96px;
  --pid-radius:  12px;
}

/* Artboard reset — each variation is rendered inside a 1280-wide artboard */
.pid {
  background: var(--pid-bg);
  color: var(--pid-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pid * { box-sizing: border-box; }
.pid img { display: block; }

.pid-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ============================ NAV ============================ */
.pid-nav {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--pid-line);
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.pid-nav__left  { display: flex; align-items: center; gap: 36px; }
.pid-nav__logo img { height: 22px; display: block; }
.pid-nav__menu  { display: flex; gap: 26px; }
.pid-nav__link  { font: 500 13.5px/1 var(--font-sans); color: var(--pid-body); text-decoration: none; }
.pid-nav__link:hover { color: var(--pid-ink); }
.pid-nav__right { display: flex; align-items: center; gap: 12px; }
.pid-nav__signin { font: 500 13.5px/1 var(--font-sans); color: var(--pid-body); text-decoration: none; }
.pid-nav__signin:hover { color: var(--pid-ink); }

/* ============================ BUTTONS ============================ */
.pid-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px;
  font: 500 14px/1 var(--font-sans);
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease-out, border-color 120ms ease-out, transform 120ms ease-out;
}
.pid-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.pid-btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.pid-btn--primary  { background: var(--pid-ink); color: #07101e; border-color: var(--pid-ink); }
.pid-btn--primary:hover { background: #e6eef9; }
.pid-btn--cyan     { background: var(--pid-cyan); color: #fff; border-color: var(--pid-cyan); }
.pid-btn--cyan:hover { background: var(--pid-cyan-bright); border-color: var(--pid-cyan-bright); }
.pid-btn--ghost    { background: transparent; color: var(--pid-ink); border-color: var(--pid-line-strong); }
.pid-btn--ghost:hover { border-color: rgba(255,255,255,0.32); }

/* Pills / eyebrows */
.pid-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  font: 600 10.5px/1 var(--font-sans);
  letter-spacing: 0.88px; text-transform: uppercase;
  border-radius: 9999px;
}
.pid-pill--line  { background: transparent; color: var(--pid-body); border: 1px solid var(--pid-line-strong); }
.pid-pill--cyan  { background: var(--pid-cyan-faint); color: var(--pid-cyan-bright); border: 1px solid rgba(71,194,255,0.25); }
.pid-pill--ok    { background: var(--pid-ok-bg); color: var(--pid-ok); }
.pid-pill--warn  { background: var(--pid-warn-bg); color: var(--pid-warn); }
.pid-pill--err   { background: var(--pid-err-bg); color: var(--pid-err); }

.pid-eyebrow {
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: 0.88px; text-transform: uppercase;
  color: var(--pid-cyan-bright);
  display: inline-flex; align-items: center; gap: 8px;
}
.pid-eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 9999px; background: var(--pid-cyan);
  box-shadow: 0 0 0 4px var(--pid-cyan-glow);
}

/* ============================ SECTIONS ============================ */
.pid-section { padding: var(--pid-section) 0; position: relative; }
.pid-section--tight { padding: 64px 0; }
.pid-section__head { max-width: 720px; margin-bottom: 56px; }
.pid-section__title {
  font: 600 44px/1.1 var(--font-sans);
  letter-spacing: -1.32px;
  color: var(--pid-ink);
  margin: 16px 0 16px;
}
.pid-section__sub {
  font: 400 17px/1.55 var(--font-sans);
  color: var(--pid-body);
  margin: 0;
  max-width: 600px;
}

/* ============================ HERO atmospherics ============================ */
.pid-hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.pid-hero__wash {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(26,147,224,0.22) 0%, rgba(26,147,224,0.05) 35%, rgba(10,22,40,0) 70%),
    radial-gradient(40% 30% at 80% 20%, rgba(71,194,255,0.10) 0%, rgba(10,22,40,0) 60%);
}
.pid-hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.35; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.pid-hero__inner { position: relative; z-index: 1; }

/* ============================ RADAR (decorative) ============================ */
.pid-radar { position: relative; width: 100%; aspect-ratio: 1/1; }
.pid-radar__ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  border-radius: 9999px; border: 1px solid rgba(71,194,255,0.25);
}
.pid-radar__ring--1 { width: 22%; height: 22%; border-color: rgba(71,194,255,0.55); }
.pid-radar__ring--2 { width: 40%; height: 40%; border-color: rgba(71,194,255,0.35); }
.pid-radar__ring--3 { width: 60%; height: 60%; border-color: rgba(71,194,255,0.22); }
.pid-radar__ring--4 { width: 82%; height: 82%; border-color: rgba(255,255,255,0.10); }
.pid-radar__ring--5 { width: 100%; height: 100%; border-color: rgba(255,255,255,0.06); }
.pid-radar__dot {
  position: absolute; width: 6px; height: 6px; background: var(--pid-cyan-bright);
  border-radius: 9999px; transform: translate(-50%,-50%);
  box-shadow: 0 0 0 4px rgba(71,194,255,0.18);
}
@keyframes pid-pulse {
  0%   { transform: translate(-50%,-50%) scale(0.8); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}
.pid-radar__pulse {
  position: absolute; left: 50%; top: 50%;
  width: 40%; height: 40%; border-radius: 9999px;
  border: 1px solid var(--pid-cyan-bright);
  animation: pid-pulse 3.2s ease-out infinite;
}
.pid-radar__pulse.d2 { animation-delay: 1.6s; }
.pid-radar__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
}

/* ============================ FEATURE CARDS ============================ */
.pid-fgrid { display: grid; gap: 16px; }
.pid-fgrid--3 { grid-template-columns: repeat(3, 1fr); }
.pid-fgrid--2 { grid-template-columns: repeat(2, 1fr); }
.pid-fcard {
  background: var(--pid-bg-soft);
  border: 1px solid var(--pid-line);
  border-radius: var(--pid-radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 140ms ease-out, transform 140ms ease-out;
}
.pid-fcard:hover {
  border-color: var(--pid-line-strong);
  transform: translateY(-2px);
}
.pid-fcard__icon {
  width: 36px; height: 36px;
  background: rgba(71,194,255,0.08);
  border: 1px solid rgba(71,194,255,0.18);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pid-cyan-bright);
  margin-bottom: 6px;
}
.pid-fcard__title { font: 600 17px/1.35 var(--font-sans); color: var(--pid-ink); margin: 0; letter-spacing: -0.2px; }
.pid-fcard__body  { font: 400 14px/1.55 var(--font-sans); color: var(--pid-body); margin: 0; }

/* ============================ WORKFLOW STEPS ============================ */
.pid-wflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--pid-radius); border: 1px solid var(--pid-line); overflow: hidden; }
.pid-wstep { padding: 28px; border-right: 1px solid var(--pid-line); position: relative; }
.pid-wstep:last-child { border-right: none; }
.pid-wstep__num { font: 600 11px/1 var(--font-mono); color: var(--pid-cyan-bright); letter-spacing: 0.88px; margin-bottom: 18px; }
.pid-wstep__title { font: 600 19px/1.3 var(--font-sans); color: var(--pid-ink); margin: 0 0 8px; letter-spacing: -0.3px; }
.pid-wstep__body  { font: 400 14px/1.55 var(--font-sans); color: var(--pid-body); margin: 0; }

/* ============================ PRICING ============================ */
.pid-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pid-tier {
  background: var(--pid-bg-soft);
  border: 1px solid var(--pid-line);
  border-radius: var(--pid-radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.pid-tier--featured {
  background: linear-gradient(180deg, rgba(26,147,224,0.10), rgba(26,147,224,0.02));
  border-color: rgba(71,194,255,0.30);
  position: relative;
}
.pid-tier__name { font: 600 14px/1 var(--font-sans); color: var(--pid-cyan-bright); margin: 0; letter-spacing: 0.5px; text-transform: uppercase; }
.pid-tier__price { font: 600 44px/1 var(--font-sans); letter-spacing: -1.2px; color: var(--pid-ink); margin: 8px 0 0; }
.pid-tier__unit  { font: 400 14px/1 var(--font-sans); color: var(--pid-body); margin-left: 6px; }
.pid-tier__tag   { font: 400 14px/1.5 var(--font-sans); color: var(--pid-body); margin: 0 0 12px; min-height: 42px; }
.pid-tier__feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pid-tier__feats li { font: 400 14px/1.5 var(--font-sans); color: var(--pid-body); padding-left: 24px; position: relative; }
.pid-tier__feats li:before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--pid-cyan-bright);
  border-bottom: 1.5px solid var(--pid-cyan-bright);
  transform: rotate(-45deg);
}
.pid-tier .pid-btn { margin-top: auto; width: 100%; }

/* ============================ USE CASE CARDS ============================ */
.pid-uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pid-use {
  background: var(--pid-bg-soft);
  border: 1px solid var(--pid-line);
  border-radius: var(--pid-radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  aspect-ratio: 1/1.2;
}
.pid-use__icon { color: var(--pid-cyan-bright); }
.pid-use__title { font: 600 17px/1.3 var(--font-sans); color: var(--pid-ink); margin: auto 0 4px; letter-spacing: -0.2px; }
.pid-use__body  { font: 400 13px/1.5 var(--font-sans); color: var(--pid-body); margin: 0; }
.pid-use__pat   { position: absolute; right: -20px; top: -20px; opacity: 0.12; color: var(--pid-cyan-bright); }

/* Outcome chips (policy engine: 4 outcomes) */
.pid-outcome {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font: 700 10.5px/1 var(--font-sans);
  letter-spacing: 0.88px; text-transform: uppercase;
  border-radius: 6px;
}
.pid-outcome--full   { background: rgba(52,211,153,0.16); color: #34d399; box-shadow: inset 0 0 0 1px rgba(52,211,153,0.32); }
.pid-outcome--entry  { background: rgba(251,191,36,0.16); color: #fbbf24; box-shadow: inset 0 0 0 1px rgba(251,191,36,0.32); }
.pid-outcome--review { background: rgba(251,146,60,0.16); color: #fdba74; box-shadow: inset 0 0 0 1px rgba(251,146,60,0.32); }
.pid-outcome--deny   { background: rgba(248,113,113,0.16); color: #f87171; box-shadow: inset 0 0 0 1px rgba(248,113,113,0.32); }

.pid-outcome-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 9999px; flex-shrink: 0;
}
.pid-outcome-dot--full   { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,0.18); }
.pid-outcome-dot--entry  { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,0.18); }
.pid-outcome-dot--review { background: #fb923c; box-shadow: 0 0 0 3px rgba(251,146,60,0.18); }
.pid-outcome-dot--deny   { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.18); }

/* ============================ APP STORE BADGES ============================ */
.pid-store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px;
  border: 1px solid var(--pid-line-strong);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  transition: border-color 120ms ease-out, background 120ms ease-out;
}
.pid-store:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.04); }
.pid-store__svg { width: 22px; height: 22px; color: var(--pid-ink); }
.pid-store__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.pid-store__small { font: 500 9.5px/1 var(--font-sans); color: var(--pid-body); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; }
.pid-store__big   { font: 600 15px/1 var(--font-sans); color: var(--pid-ink); letter-spacing: -0.2px; }

/* ============================ FOOTER ============================ */
.pid-footer {
  background: var(--pid-bg-deep);
  border-top: 1px solid var(--pid-line);
  padding: 72px 0 40px;
}
.pid-footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--pid-line); }
.pid-footer__logo { height: 28px; display: block; margin-bottom: 16px; }
.pid-footer__tag  { font: 400 14px/1.55 var(--font-sans); color: var(--pid-body); max-width: 300px; margin: 0 0 20px; }
.pid-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pid-footer__h    { font: 600 11px/1.4 var(--font-sans); letter-spacing: 0.88px; text-transform: uppercase; color: var(--pid-ink); margin-bottom: 16px; }
.pid-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pid-footer__col a { font: 400 14px/1.4 var(--font-sans); color: var(--pid-body); text-decoration: none; }
.pid-footer__col a:hover { color: var(--pid-ink); }
.pid-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font: 400 13px/1.4 var(--font-sans); color: var(--pid-muted); }

/* ============================ PHONE FRAME ============================ */
.pid-phone {
  width: 280px; height: 580px;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 0 6px #1a1f28 inset;
  position: relative;
}
.pid-phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #000; border-radius: 9999px; z-index: 3;
}
.pid-phone__screen {
  position: relative; width: 100%; height: 100%;
  background: #07101e;
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* ─────────────────── Bouncer app — matches the real product ───────────────────
   Top half: full-bleed outcome color (green/yellow/orange/red).
   Bottom half: near-black with photo, status chip, reason bullet, Next-scan CTA. */
.pid-phone__screen--real { background: #0a0e15; padding: 0; }

.pid-real { display: flex; flex-direction: column; height: 100%; width: 100%; }
.pid-real__top {
  flex: 0 0 48%;
  padding: 16px 22px 22px;
  display: flex; flex-direction: column;
  color: #fff;
  position: relative;
}
.pid-real__statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font: 600 13px/1 var(--font-sans); color: #fff;
  padding-top: 14px;
}
.pid-real__statusbar i {
  width: 3px; background: #fff; border-radius: 1px;
}
.pid-real__signal { display: inline-flex; gap: 3px; align-items: end; }
.pid-real__signal i:nth-child(1) { height: 4px; }
.pid-real__signal i:nth-child(2) { height: 6px; }
.pid-real__signal i:nth-child(3) { height: 8px; }
.pid-real__signal i:nth-child(4) { height: 10px; }
.pid-real__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-top: 22px;
}
.pid-real__label { font: 600 13.5px/1 var(--font-sans); color: rgba(255,255,255,0.95); }
.pid-real__age   { font: 800 44px/1 var(--font-sans); color: #fff; letter-spacing: -1.8px; }
.pid-real__center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 6px;
  margin-top: -10px;
}
.pid-real__decision { font: 800 38px/1 var(--font-sans); color: #fff; letter-spacing: -1.6px; }
.pid-real__decision--lg { font-size: 38px; }
.pid-real__decision--md { font-size: 32px; }
.pid-real__sub { font: 500 14.5px/1.3 var(--font-sans); color: #fff; opacity: 0.96; }

.pid-real__bottom {
  flex: 1 1 52%;
  background: #0a0e15;
  padding: 12px 14px 14px;
  display: flex; flex-direction: column;
  gap: 10px;
}

/* ID-card preview — a stylized "photographed" MN driver's license */
.pid-real__idcard {
  aspect-ratio: 1.55/1;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0)),
    linear-gradient(180deg, #2a1f0e 0%, #1c1c1c 35%, #1c1c1c 100%);
  overflow: hidden;
  position: relative;
}
.pid-real__idcard::before {
  /* the actual license, tilted */
  content: ""; position: absolute;
  inset: 16% 14% 18% 12%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.18)),
    linear-gradient(135deg, #f0d896 0%, #d4b97a 60%, #c9a965 100%);
  border-radius: 4px;
  transform: rotate(-2.5deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.pid-real__idcard__mn {
  position: absolute; top: 23%; left: 18%; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  font: 700 9px/1 var(--font-sans); color: #1f3a5f;
  letter-spacing: -0.1px;
  transform: rotate(-2.5deg);
}
.pid-real__idcard__mn-logo {
  display: inline-block; width: 12px; height: 12px;
  background: #1f3a5f; border-radius: 2px;
  position: relative;
}
.pid-real__idcard__mn-logo::after {
  content: "m1"; position: absolute; inset: 0;
  font: 700 7px/12px var(--font-sans); color: #4ade80; text-align: center;
}
.pid-real__idcard__dl {
  position: absolute; top: 24%; right: 22%; z-index: 2;
  font: 800 7.5px/1.1 var(--font-sans); color: #b91c1c;
  text-align: right; letter-spacing: 0.2px;
  transform: rotate(-2.5deg);
}
.pid-real__idcard__redact {
  position: absolute; height: 8px; background: #0a0a0a; z-index: 3;
  transform: rotate(-2.5deg); border-radius: 2px;
}

.pid-real__chip {
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 9999px;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font: 600 11px/1 var(--font-sans);
}
.pid-real__chip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 11px; height: 11px; border-radius: 9999px;
  border: 1.4px solid rgba(255,255,255,0.55);
  position: relative;
}
.pid-real__chip-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.4px; background: rgba(255,255,255,0.55);
  transform: rotate(-45deg);
}

.pid-real__reason {
  font: 500 11.5px/1.4 var(--font-sans); color: rgba(255,255,255,0.95);
  padding: 0 4px;
}

.pid-real__nextscan {
  margin-top: auto;
  height: 44px;
  background: #5b8def;
  color: #fff;
  border: none;
  border-radius: 12px;
  font: 700 15px/1 var(--font-sans);
  cursor: pointer;
}

/* In-app scan UI */
.pid-app {
  padding: 56px 18px 16px;
  height: 100%;
  display: flex; flex-direction: column;
  background:
    radial-gradient(80% 50% at 50% 20%, rgba(26,147,224,0.18) 0%, rgba(7,16,30,0) 60%),
    linear-gradient(180deg, #0a1628 0%, #07101e 100%);
}
.pid-app__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pid-app__crumb { font: 500 10px/1 var(--font-sans); color: var(--pid-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.pid-app__time  { font: 600 12px/1 var(--font-sans); color: var(--pid-ink); }
.pid-app__signal { display: inline-flex; gap: 3px; align-items: center; }
.pid-app__signal i { width: 3px; background: var(--pid-ink); border-radius: 1px; }
.pid-app__signal i:nth-child(1) { height: 4px; }
.pid-app__signal i:nth-child(2) { height: 6px; }
.pid-app__signal i:nth-child(3) { height: 8px; }
.pid-app__signal i:nth-child(4) { height: 10px; }

/* Result card (Granted / Flagged / Warning) */
.pid-result {
  border-radius: 14px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--pid-line);
  background: var(--pid-bg-soft);
}
.pid-result__head { display: flex; align-items: center; gap: 10px; }
.pid-result__pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 9999px;
  font: 700 9.5px/1 var(--font-sans); letter-spacing: 0.8px; text-transform: uppercase;
}
.pid-result__pill.ok   { background: var(--pid-ok-bg); color: var(--pid-ok); }
.pid-result__pill.err  { background: var(--pid-err-bg); color: var(--pid-err); }
.pid-result__pill.warn { background: var(--pid-warn-bg); color: var(--pid-warn); }
.pid-result__pill.orange { background: rgba(251,146,60,0.16); color: #fdba74; }
.pid-result__time { margin-left: auto; font: 500 10px/1 var(--font-mono); color: var(--pid-muted); }

.pid-result__photo {
  width: 100%; aspect-ratio: 1.5/1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #1a2540, #0f1a2e);
  display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 12px;
  align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--pid-line);
}
.pid-result__photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, transparent 49%, rgba(71,194,255,0.06) 50%, transparent 51%);
  background-size: 8px 100%;
}
.pid-id-avatar {
  width: 60px; height: 60px; border-radius: 8px; position: relative; z-index: 1;
  background: linear-gradient(180deg, #2a3a55, #1a2540);
  display: flex; align-items: end; justify-content: center;
}
.pid-id-avatar svg { color: rgba(255,255,255,0.5); }
.pid-id-fields { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.pid-id-name  { font: 600 12px/1.1 var(--font-sans); color: var(--pid-ink); letter-spacing: -0.1px; }
.pid-id-dob   { font: 500 9.5px/1 var(--font-mono); color: var(--pid-body); }
.pid-id-num   { font: 500 9.5px/1 var(--font-mono); color: var(--pid-muted); }

.pid-rows { display: flex; flex-direction: column; gap: 8px; }
.pid-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 6px; background: rgba(255,255,255,0.03); }
.pid-row__k { font: 500 10px/1 var(--font-sans); color: var(--pid-body); letter-spacing: 0.4px; text-transform: uppercase; }
.pid-row__v { font: 600 12px/1 var(--font-sans); color: var(--pid-ink); }
.pid-row__v.ok  { color: var(--pid-ok); }
.pid-row__v.err { color: var(--pid-err); }

.pid-cta-strip {
  margin-top: auto;
  display: flex; gap: 8px;
}
.pid-cta-strip .pid-btn { flex: 1; height: 38px; font-size: 12.5px; }

/* Active door queue card (used inside phones / dashboards) */
.pid-queue { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pid-q-row {
  display: grid; grid-template-columns: 24px 1fr 60px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--pid-line);
  align-items: center; gap: 8px;
}
.pid-q-row__init {
  width: 24px; height: 24px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font: 600 10px/1 var(--font-sans); color: var(--pid-ink);
  background: var(--pid-bg-elev);
}
.pid-q-row__name { font: 600 11px/1.1 var(--font-sans); color: var(--pid-ink); }
.pid-q-row__sub  { font: 500 9px/1 var(--font-mono); color: var(--pid-muted); margin-top: 2px; }
.pid-q-row__time { font: 500 10px/1 var(--font-mono); color: var(--pid-muted); text-align: right; }

/* ============================ CODE / LOG SURFACE ============================ */
.pid-log {
  background: var(--pid-bg-deep);
  border: 1px solid var(--pid-line);
  border-radius: var(--pid-radius);
  overflow: hidden;
}
.pid-log__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pid-line);
  background: rgba(255,255,255,0.02);
}
.pid-log__dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--pid-ok); box-shadow: 0 0 0 4px var(--pid-ok-bg); animation: pid-blink 1.6s ease-in-out infinite; }
@keyframes pid-blink { 50% { box-shadow: 0 0 0 2px var(--pid-ok-bg); } }
.pid-log__name { font: 600 12px/1 var(--font-sans); color: var(--pid-ink); letter-spacing: -0.1px; }
.pid-log__meta { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--pid-muted); }
.pid-log__rows { padding: 8px 0; max-height: 380px; overflow: hidden; }
.pid-log__row {
  display: grid; grid-template-columns: 60px 70px 1fr 90px 80px;
  gap: 12px; padding: 10px 16px; align-items: center;
  font: 500 12px/1 var(--font-mono);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pid-log__row:last-child { border-bottom: none; }
.pid-log__t  { color: var(--pid-muted); }
.pid-log__st { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; font-family: var(--font-sans); justify-self: start; }
.pid-log__st.ok   { background: var(--pid-ok-bg); color: var(--pid-ok); }
.pid-log__st.err  { background: var(--pid-err-bg); color: var(--pid-err); }
.pid-log__st.warn { background: var(--pid-warn-bg); color: var(--pid-warn); }
.pid-log__name-c { color: var(--pid-ink); font-family: var(--font-sans); font-weight: 500; font-size: 13px; }
.pid-log__id { color: var(--pid-body); }
.pid-log__door { color: var(--pid-muted); text-align: right; }

/* ============================ DASHBOARD MOCK ============================ */
.pid-dash {
  background: var(--pid-bg-deep);
  border: 1px solid var(--pid-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.pid-dash__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--pid-line);
  background: rgba(255,255,255,0.02);
}
.pid-dash__dots { display: flex; gap: 6px; }
.pid-dash__dots i { width: 10px; height: 10px; border-radius: 9999px; background: #2c3a52; }
.pid-dash__addr { font: 500 11px/1 var(--font-mono); color: var(--pid-muted); margin-left: 16px; }
.pid-dash__body { display: grid; grid-template-columns: 180px 1fr; min-height: 420px; }
.pid-dash__side { padding: 16px 12px; border-right: 1px solid var(--pid-line); background: rgba(255,255,255,0.015); display: flex; flex-direction: column; gap: 2px; }
.pid-dash__side-h { font: 600 9.5px/1.4 var(--font-sans); letter-spacing: 0.88px; text-transform: uppercase; color: var(--pid-muted); padding: 8px 10px 4px; }
.pid-dash__side-item { padding: 8px 10px; font: 500 12.5px/1 var(--font-sans); color: var(--pid-body); border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.pid-dash__side-item .pid-dot { width: 5px; height: 5px; border-radius: 9999px; background: var(--pid-cyan-bright); margin-left: auto; }
.pid-dash__side-item.active { background: rgba(71,194,255,0.10); color: var(--pid-ink); }
.pid-dash__main { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.pid-dash__head { display: flex; justify-content: space-between; align-items: flex-end; }
.pid-dash__title { font: 600 19px/1.2 var(--font-sans); letter-spacing: -0.5px; color: var(--pid-ink); margin: 0; }
.pid-dash__sub   { font: 500 11px/1 var(--font-mono); color: var(--pid-muted); margin-top: 4px; }
.pid-dash__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pid-stat { padding: 12px 14px; border: 1px solid var(--pid-line); border-radius: 10px; background: rgba(255,255,255,0.02); }
.pid-stat__k { font: 500 9.5px/1 var(--font-sans); color: var(--pid-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
.pid-stat__v { font: 600 22px/1 var(--font-sans); color: var(--pid-ink); letter-spacing: -0.5px; }
.pid-stat__d { font: 500 10px/1 var(--font-mono); color: var(--pid-ok); margin-top: 4px; }
.pid-stat__d.err { color: var(--pid-err); }

/* ============================ MAP DOT GRID (network section) ============================ */
.pid-map {
  position: relative;
  height: 360px;
  border-radius: var(--pid-radius);
  border: 1px solid var(--pid-line);
  overflow: hidden;
  background: var(--pid-bg-deep);
}
.pid-map__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(71,194,255,0.25) 1px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: radial-gradient(60% 50% at 50% 50%, #000 0%, transparent 100%);
}
.pid-map__pin {
  position: absolute; width: 10px; height: 10px;
  border-radius: 9999px; background: var(--pid-cyan-bright);
  box-shadow: 0 0 0 4px rgba(71,194,255,0.20), 0 0 20px rgba(71,194,255,0.6);
  transform: translate(-50%,-50%);
}
.pid-map__pin.warn { background: var(--pid-warn); box-shadow: 0 0 0 4px rgba(251,191,36,0.2), 0 0 20px rgba(251,191,36,0.5); }
.pid-map__pin.err  { background: var(--pid-err); box-shadow: 0 0 0 4px rgba(248,113,113,0.2), 0 0 20px rgba(248,113,113,0.5); }
.pid-map__link {
  position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(71,194,255,0.6), transparent);
  transform-origin: left center;
}
.pid-map__caption {
  position: absolute; top: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 4px;
}

/* ============================ MISC ============================ */
.pid-divider { height: 1px; background: var(--pid-line); margin: 0; border: 0; }
.pid-grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pid-grid-2--reverse { grid-template-columns: 1fr 1.05fr; }
.pid-stat-row { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--pid-line); }
.pid-stat-row__k { font: 600 28px/1 var(--font-sans); letter-spacing: -0.5px; color: var(--pid-ink); }
.pid-stat-row__v { font: 400 12px/1.4 var(--font-sans); color: var(--pid-body); margin-top: 6px; max-width: 140px; }
