/* Shield Checker — marketing site custom styles (cyber theme).
   Tailwind (CDN) handles layout/utilities; this file owns the effects. */

:root {
  --ink: #0a0e14;
  --panel: #111823;
  --edge: #1e2a38;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
}

/* Background grid + subtle vignette */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ---------------- Phone mockup ---------------- */
.phone-frame {
  position: relative;
  width: 260px;
  border-radius: 2.4rem;
  padding: 10px;
  background: linear-gradient(160deg, #1b2836, #0c121b);
  border: 1px solid var(--edge);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -10px rgba(34, 211, 238, 0.25);
}
.phone-screen {
  width: 100%;
  border-radius: 1.8rem;
  display: block;
}
.scan-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 60px;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.22), transparent);
  animation: scan 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% - 70px); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Floating signal chips */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(17, 24, 35, 0.92);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  animation: float 7s ease-in-out infinite;
}
.chip .dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.chip-a { top: 8%;  left: -6%;  animation-delay: .0s; }
.chip-b { top: 26%; right: -10%; animation-delay: .8s; }
.chip-c { top: 52%; left: -12%; animation-delay: 1.4s; }
.chip-d { top: 70%; right: -8%; animation-delay: 2.0s; }
.chip-e { top: 88%; left: -16%; animation-delay: 1.1s; }
@media (max-width: 640px) {
  .chip-a, .chip-c, .chip-e { left: -2%; }
  .chip-b, .chip-d { right: -2%; }
}

/* ---------------- Marquee ---------------- */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #8ca0b3;
  padding: 6px 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Cards ---------------- */
.card {
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(17, 24, 35, 0.7), rgba(14, 20, 29, 0.7));
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-3px); }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-family: "JetBrains Mono", monospace;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.step { border-left: 2px solid var(--edge); padding-left: 1.25rem; position: relative; }
.step-num {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  font-weight: 700; color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.06);
}

/* Signal pills */
.signal-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--edge); background: rgba(17, 24, 35, 0.55);
  transition: border-color .2s;
}
.signal-pill:hover { border-color: rgba(34, 211, 238, 0.4); }
.signal-pill .dot { width: 7px; height: 7px; border-radius: 999px; }

/* ---------------- Carousel ---------------- */
.carousel { overflow: hidden; }
.carousel-track { display: flex; gap: 1rem; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slide {
  min-width: 300px; flex: 0 0 auto;
  border: 1px solid var(--edge); border-radius: 1rem; padding: 1.5rem;
  background: linear-gradient(180deg, rgba(17, 24, 35, 0.8), rgba(14, 20, 29, 0.8));
}
@media (max-width: 640px) { .slide { min-width: 82%; } }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--edge);
  color: #8ca0b3; font-size: 20px; line-height: 1; transition: all .2s;
}
.carousel-btn:hover { border-color: rgba(34,211,238,.5); color: var(--cyan); }

/* ---------------- Pricing ---------------- */
.price-card {
  border: 1px solid var(--edge); border-radius: 1.25rem; padding: 2rem;
  background: linear-gradient(180deg, rgba(17, 24, 35, 0.7), rgba(14, 20, 29, 0.7));
}
.price-card--accent {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 40px -12px rgba(34, 211, 238, 0.35);
}

/* ---------------- CTA ---------------- */
.cta {
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: 1.5rem;
  padding: 3.5rem 1.5rem;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 35, 0.8), rgba(14, 20, 29, 0.8));
}

/* Legal pages */
.prose-legal { max-width: 46rem; }
.prose-legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: .5rem; }
.prose-legal p, .prose-legal li { color: #8ca0b3; line-height: 1.7; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; margin-top: .5rem; }

/* ---------- Language switch (header) ---------- */
.lang-sw { display: inline-flex; border: 1px solid var(--edge); border-radius: 999px; padding: 2px; font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace; }
.lang-sw a { padding: 5px 9px; border-radius: 999px; color: #8CA0B3; text-decoration: none; transition: color .15s, background .15s; }
.lang-sw a:hover { color: #fff; }
.lang-sw a.on { background: rgba(34,211,238,.16); color: #22D3EE; }

/* ---------- Auth / cabinet / admin (app surface) ---------- */
.auth-card {
  background: linear-gradient(180deg, rgba(17,24,35,.95), rgba(10,14,20,.95));
  border: 1px solid var(--edge); border-radius: 1.25rem; padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(34,211,238,.06) inset;
  position: relative; z-index: 1;
}
.field { display: block; }
.field > span { display: block; font-size: .75rem; color: #8ca0b3; margin-bottom: .35rem; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; background: #0b1119; color: #e6edf3; border: 1px solid var(--edge);
  border-radius: .65rem; padding: .7rem .85rem; font-size: .95rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(34,211,238,.7); box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--cyan); color: var(--ink); font-weight: 700; font-size: .9rem;
  padding: .7rem 1.1rem; border-radius: .7rem; border: 0; cursor: pointer;
  box-shadow: 0 0 22px rgba(34,211,238,.35); transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--teal); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: transparent; color: #cbd5e1; font-weight: 600; font-size: .9rem;
  padding: .7rem 1.1rem; border-radius: .7rem; border: 1px solid var(--edge); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: rgba(34,211,238,.5); color: #fff; }
.btn-danger, .btn-warn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 600; font-size: .85rem; padding: .55rem .9rem; border-radius: .6rem; cursor: pointer;
  background: transparent; transition: background .15s, color .15s;
}
.btn-danger { color: #f87171; border: 1px solid rgba(248,113,113,.4); }
.btn-danger:hover { background: rgba(248,113,113,.12); }
.btn-warn { color: #fbbf24; border: 1px solid rgba(251,191,36,.4); }
.btn-warn:hover { background: rgba(251,191,36,.12); }
.btn-sm { padding: .4rem .7rem; font-size: .78rem; border-radius: .5rem; }

.alert-bad, .alert-good, .alert-warn {
  border-radius: .75rem; padding: .8rem 1rem; font-size: .875rem; line-height: 1.5;
}
.alert-bad  { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); color: #fca5a5; }
.alert-good { background: rgba(52,211,153,.1);  border: 1px solid rgba(52,211,153,.35);  color: #6ee7b7; }
.alert-warn { background: rgba(251,191,36,.1);  border: 1px solid rgba(251,191,36,.35);  color: #fcd34d; }

.tier-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .7rem; letter-spacing: .05em;
  padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--edge); color: #8ca0b3; text-transform: uppercase;
}
.tier-premium, .tier-lifetime { border-color: rgba(34,211,238,.6); color: var(--cyan); background: rgba(34,211,238,.08); }
.tier-credits { border-color: rgba(45,212,191,.6); color: var(--teal); background: rgba(45,212,191,.08); }
.tier-team { border-color: rgba(167,139,250,.6); color: #c4b5fd; background: rgba(167,139,250,.1); }
.tm-tbl tr.on td { background: rgba(34,211,238,.06); }
.tm-tbl .btn-sm { padding: .25rem .55rem; font-size: .72rem; }
.tier-free, .tier-guest { border-color: rgba(251,191,36,.5); color: #fbbf24; }

.stat-card { background: var(--panel); border: 1px solid var(--edge); border-radius: 1rem; padding: 1.1rem 1.25rem; }
.stat-label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8ca0b3; font-family: 'JetBrains Mono', monospace; }
.stat-value { font-size: 1.6rem; font-weight: 800; margin-top: .25rem; line-height: 1.15; }
.stat-sub { font-size: .75rem; color: #8ca0b3; margin-top: .35rem; }

.panel { background: var(--panel); border: 1px solid var(--edge); border-radius: 1rem; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-bottom: 1px solid var(--edge); }
.panel-head h2 { font-size: .95rem; font-weight: 700; }
.panel-body { padding: 1.25rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl th { text-align: left; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #8ca0b3; padding: .6rem 1rem; border-bottom: 1px solid var(--edge); font-weight: 600; white-space: nowrap; }
.tbl td { padding: .65rem 1rem; border-bottom: 1px solid rgba(30,42,56,.6); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(34,211,238,.035); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 2.5rem 1.25rem; text-align: center; }

.kind-pill { font-family: 'JetBrains Mono', monospace; font-size: .68rem; padding: .2rem .5rem; border-radius: .4rem; border: 1px solid var(--edge); color: #cbd5e1; }
.kind-verify { border-color: rgba(34,211,238,.45); color: var(--cyan); }
.kind-scan   { border-color: rgba(45,212,191,.45); color: var(--teal); }
.verdict { font-family: 'JetBrains Mono', monospace; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.verdict-good { color: #34d399; } .verdict-bad { color: #f87171; } .verdict-warn { color: #fbbf24; } .verdict-muted { color: #8ca0b3; }
.link-cyan { color: var(--cyan); font-size: .8rem; font-weight: 600; } .link-cyan:hover { text-decoration: underline; }
.flag-on  { color: #f87171; font-weight: 700; }
.flag-off { color: #8ca0b3; }

/* admin */
.admin-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: .6rem; font-size: .85rem; color: #8ca0b3; border: 1px solid transparent; }
.admin-nav a:hover { color: #fff; border-color: var(--edge); }
.admin-nav a.active { color: var(--cyan); border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.06); }
.inline-form { display: inline-flex; align-items: center; gap: .4rem; }
.inline-form input, .inline-form select {
  background: #0b1119; color: #e6edf3; border: 1px solid var(--edge); border-radius: .45rem;
  padding: .35rem .5rem; font-size: .78rem; min-width: 0;
}
.inline-form input:focus, .inline-form select:focus { outline: none; border-color: rgba(34,211,238,.6); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .85rem; }
.kv dt { color: #8ca0b3; } .kv dd { font-family: 'JetBrains Mono', monospace; word-break: break-all; }

/* ---------- Fluid background (as in the app: slow drifting colour fields) ---------- */
.fluid-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; filter: blur(70px) saturate(120%); opacity: .55; }
.fluid-bg i { position: absolute; border-radius: 50%; will-change: transform; mix-blend-mode: screen; }
/* palette = the app's login AnimatedBackground: teal #2A9D8F + blue #118AB2 blobs drifting in opposite phase, mint #06D6A0 accent */
.fluid-bg .b1 { width: 60vw; height: 60vw; left: -15vw; top: -20vw; background: radial-gradient(circle at 40% 40%, rgba(42,157,143,.6), transparent 65%); animation: drift1 24s ease-in-out infinite alternate; }
.fluid-bg .b2 { width: 55vw; height: 55vw; right: -18vw; top: 5vh; background: radial-gradient(circle at 60% 50%, rgba(17,138,178,.55), transparent 65%); animation: drift2 30s ease-in-out infinite alternate; }
.fluid-bg .b3 { width: 50vw; height: 50vw; left: 20vw; bottom: -25vw; background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.35), transparent 65%); animation: drift3 40s ease-in-out infinite alternate; }
.fluid-bg .b4 { width: 35vw; height: 35vw; right: 20vw; bottom: 10vh; background: radial-gradient(circle at 50% 50%, rgba(6,214,160,.3), transparent 65%); animation: drift1 48s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } 50% { transform: translate(12vw, 8vh) scale(1.15); } to { transform: translate(-6vw, 14vh) scale(.95); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } 50% { transform: translate(-14vw, 10vh) scale(1.1); } to { transform: translate(4vw, -8vh) scale(1.2); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } 50% { transform: translate(10vw, -12vh) scale(1.2); } to { transform: translate(-12vw, -4vh) scale(1); } }
.grid-bg { z-index: -1; }

/* ---------- Loop scrollers (drag / wheel, infinite wrap) ---------- */
.loop { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.loop::-webkit-scrollbar { display: none; }
.loop.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.loop-track { display: flex; gap: 1rem; width: max-content; padding: .25rem .25rem 1rem; }
.loop-track > * { flex: 0 0 auto; }
.loop .marquee-item { margin: 0; }
.loop-hint { font-size: .7rem; color: #8ca0b3; font-family: 'JetBrains Mono', monospace; display: inline-flex; align-items: center; gap: .4rem; }
.loop-hint::before { content: "⟷"; color: var(--cyan); }
.slide { width: 22rem; max-width: 80vw; }
.slide-num { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--cyan); }
.solve-card { width: 24rem; max-width: 84vw; }
.term { display: inline-flex; flex-direction: column; gap: .15rem; padding: .7rem 1rem; border-radius: .8rem; border: 1px solid var(--edge); background: rgba(17,24,35,.7); min-width: 12rem; }
.term b { font-size: .85rem; color: #e6edf3; font-weight: 600; }
.term span { font-size: .72rem; color: #8ca0b3; line-height: 1.35; }

/* ---------- Signals: lamp glows green on hover ---------- */
.signal { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: .9rem; border: 1px solid var(--edge); background: rgba(17,24,35,.6); transition: border-color .2s, transform .2s, background .2s; }
.signal:hover { border-color: rgba(34,197,94,.45); transform: translateY(-2px); background: rgba(17,24,35,.9); }
.signal .lamp { flex: 0 0 auto; width: 10px; height: 10px; margin-top: .35rem; border-radius: 999px; background: var(--cyan); box-shadow: 0 0 10px rgba(34,211,238,.7); transition: background .25s, box-shadow .25s; }
.signal:hover .lamp { background: #22c55e; box-shadow: 0 0 14px rgba(34,197,94,.9), 0 0 28px rgba(34,197,94,.5); }
.signal h4 { font-size: .9rem; font-weight: 600; }
.signal p { font-size: .75rem; color: #8ca0b3; line-height: 1.5; margin-top: .2rem; }
.signal .code { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: #6b7f92; margin-top: .3rem; }

/* ---------- Pricing pro ---------- */
.plan { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(17,24,35,.95), rgba(14,20,29,.95)); border: 1px solid var(--edge); border-radius: 1.25rem; padding: 1.6rem; }
.plan--hot { border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 1px rgba(34,211,238,.25) inset, 0 30px 80px rgba(34,211,238,.08); }
.plan-tag { position: absolute; top: -.7rem; left: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--cyan); color: var(--ink); font-weight: 700; }
.plan h3 { font-size: 1.1rem; font-weight: 700; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin-top: .6rem; }
.plan .price small { font-size: .85rem; color: #8ca0b3; font-weight: 500; }
.plan ul { margin-top: 1rem; display: grid; gap: .5rem; font-size: .85rem; color: #cbd5e1; }
.plan li::before { content: "✓ "; color: #22c55e; }
.plan .opts { margin-top: 1.1rem; display: grid; gap: .5rem; }
.plan .pick { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--edge); }
.pick-cap { font-family: 'JetBrains Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #8ca0b3; }
.pick-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .45rem; margin-top: .55rem; }
.pick-opt { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .2rem; border-radius: .7rem; border: 1px solid var(--edge); background: rgba(10,14,20,.6); color: #cbd5e1; cursor: pointer; transition: border-color .15s, background .15s; }
.pick-opt b { font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.pick-opt small { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: #8ca0b3; }
.pick-opt:hover { border-color: rgba(34,211,238,.5); }
.pick-opt.on { border-color: var(--cyan); background: rgba(34,211,238,.1); color: #fff; box-shadow: 0 0 0 1px rgba(34,211,238,.35) inset; }
.pick-opt.on small { color: var(--cyan); }
.pick-sum { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: .9rem 0 .7rem; font-size: .9rem; color: #cbd5e1; }
.pick-sum b { font-family: 'JetBrains Mono', monospace; font-size: 1.35rem; color: var(--cyan); }
.pick-cta { padding: .7rem 1rem; }

/* ---------- Public code registry (/codes) ---------- */
.codes-tab { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--edge); background: rgba(17,24,35,.8); color: #cbd5e1; }
.codes-tab:hover { border-color: rgba(34,211,238,.5); color: #fff; }
.codes-table { border: 1px solid var(--edge); border-radius: .9rem; overflow: hidden; background: rgba(17,24,35,.6); }
.codes-head, .codes-row { display: grid; grid-template-columns: 130px minmax(160px, 1fr) minmax(200px, 1.6fr) 110px; gap: 1rem; padding: .6rem .9rem; font-size: .84rem; align-items: baseline; }
.codes-head { font-family: 'JetBrains Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #8ca0b3; background: rgba(10,14,20,.7); }
.codes-row { border-top: 1px solid rgba(30,42,56,.7); }
.codes-row:target { background: rgba(34,211,238,.08); }
@media (max-width: 720px) { .codes-head { display: none; } .codes-row { grid-template-columns: 1fr; gap: .2rem; } }
.plan .opt { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .8rem; border-radius: .7rem; border: 1px solid var(--edge); background: rgba(10,14,20,.6); font-size: .85rem; }
.plan .opt b { font-family: 'JetBrains Mono', monospace; }
.plan .opt .btn-primary { padding: .4rem .8rem; font-size: .78rem; }
.pay-methods { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .75rem; color: #8ca0b3; }
.pay-methods span { padding: .3rem .6rem; border: 1px solid var(--edge); border-radius: .5rem; font-family: 'JetBrains Mono', monospace; }

/* ---------- Pay modal ---------- */
.pay-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pay-modal[hidden] { display: none; }
.pay-backdrop { position: absolute; inset: 0; background: rgba(5,8,12,.75); backdrop-filter: blur(6px); }
.pay-card { position: relative; width: 100%; max-width: 34rem; background: linear-gradient(180deg, #121a26, #0b1119); border: 1px solid var(--edge); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(34,211,238,.08) inset; animation: payIn .25s ease-out; }
@keyframes payIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pay-x { position: absolute; top: .9rem; right: .9rem; width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid var(--edge); color: #8ca0b3; background: transparent; cursor: pointer; }
.pay-x:hover { color: #fff; border-color: rgba(34,211,238,.5); }
.pay-product { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: .9rem; border: 1px solid var(--edge); background: rgba(10,14,20,.6); }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 480px) { .pay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pay-cur { text-align: left; display: flex; flex-direction: column; gap: .1rem; padding: .6rem .75rem; border-radius: .7rem; border: 1px solid var(--edge); background: rgba(10,14,20,.6); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-cur:hover { border-color: rgba(34,211,238,.45); }
.pay-cur.on { border-color: var(--cyan); background: rgba(34,211,238,.08); box-shadow: 0 0 0 2px rgba(34,211,238,.2); }
.pay-cur .t { font-weight: 700; font-size: .9rem; }
.pay-cur .n { font-size: .68rem; color: #8ca0b3; }
.pay-cur .s { font-size: .6rem; color: var(--teal); font-family: 'JetBrains Mono', monospace; margin-top: .15rem; }
.pay-qr { width: 150px; height: 150px; border-radius: .8rem; background: #fff; padding: 6px; display: flex; align-items: center; justify-content: center; color: #000; }
.pay-qr svg { width: 100%; height: 100%; }
.pay-addr { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: .7rem; border: 1px solid var(--edge); background: rgba(10,14,20,.7); font-size: .78rem; }
.pay-addr code { color: #e6edf3; font-family: 'JetBrains Mono', monospace; }
.pay-copy { flex: 0 0 auto; border: 1px solid var(--edge); border-radius: .4rem; color: #8ca0b3; background: transparent; width: 1.8rem; height: 1.8rem; cursor: pointer; }
.pay-copy:hover { color: var(--cyan); border-color: rgba(34,211,238,.5); }
.pay-status { font-family: 'JetBrains Mono', monospace; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid rgba(251,191,36,.45); color: #fbbf24; }
.pay-status[data-s="confirming"], .pay-status[data-s="manual_pending"] { border-color: rgba(34,211,238,.5); color: var(--cyan); }
.pay-status[data-s="finished"], .pay-status[data-s="confirmed"] { border-color: rgba(34,197,94,.5); color: #22c55e; }
.pay-status[data-s="failed"], .pay-status[data-s="expired"], .pay-status[data-s="rejected"] { border-color: rgba(248,113,113,.5); color: #f87171; }
.pay-input { flex: 1; min-width: 0; background: #0b1119; color: #e6edf3; border: 1px solid var(--edge); border-radius: .6rem; padding: .55rem .7rem; font-size: .85rem; font-family: 'JetBrains Mono', monospace; }
.pay-input:focus { outline: none; border-color: rgba(34,211,238,.6); }

/* ---------- Interactive phone demo: a 1:1 mock of the Shield Checker app ---------- */
.phone-frame { cursor: default; width: 300px; }
.demo { position: relative; height: 620px; width: 100%; border-radius: 1.8rem; overflow: hidden; background: #121212; color: #e8eef1; font-size: 11.5px; line-height: 1.4; display: flex; flex-direction: column; font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: geometricPrecision; letter-spacing: .01em; }
.demo b, .demo strong { font-weight: 600; }
.demo * { box-sizing: border-box; }
.demo .min-w-0 { min-width: 0; }
.demo-status { display: flex; justify-content: space-between; padding: 8px 14px 0; font-size: 9px; color: #b8c4cc; flex: 0 0 auto; }
.demo-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 10px 12px; position: relative; scrollbar-width: none; }
.demo-body::-webkit-scrollbar { display: none; }
.ap-screen { display: flex; flex-direction: column; gap: 8px; animation: demoIn .25s ease-out; min-height: 100%; }
@keyframes demoIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.demo-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; pointer-events: none; }
.demo-nav > * { pointer-events: auto; }
.ap-save { border: 0; border-radius: 999px; padding: 9px 12px; background: #2b3a3c; color: #e8eef1; font-size: 10px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.ap-fabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #1f2a2b; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.ap-fab { width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; color: #cfe3df; font-size: 15px; cursor: pointer; }
.ap-fab.on { background: #2A9D8F; color: #fff; }
.ap-pad { height: 56px; flex: 0 0 auto; }
.ap-card { border-radius: 16px; background: #1e1e1e; padding: 11px 12px; display: block; width: 100%; text-align: left; color: inherit; border: 0; }
.ap-row { display: flex; align-items: center; gap: 9px; }
.ap-fp { width: 34px; height: 34px; border-radius: 999px; background: #1f4b4c; color: #7fd8c8; display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.ap-cap { font-size: 10px; color: #9fb0b8; }
.ap-id { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #8fe3d2; word-break: break-all; }
.ap-id2 { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8fe3d2; word-break: break-all; }
.ap-caret { text-align: center; color: #6d7d85; line-height: 1; font-size: 12px; }
.ap-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mt { margin-top: 8px; }
.ap-tile { border-radius: 12px; background: #2a2a2a; padding: 8px 9px; display: flex; flex-direction: column; gap: 2px; }
.ap-tile span { font-size: 10px; color: #b6c2c8; }
.ap-tile b { font-size: 13px; }
.ap-tile b.sm { font-size: 10.5px; }
.ap-tile small { color: #9fb0b8; font-size: 9.5px; }
.ap-tile.wide b { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.ap-between { display: flex; justify-content: space-between; gap: 6px; }
.ap-dim { color: #9fb0b8; font-size: 10px; }
.ap-dim.center, .center { text-align: center; }
.ap-dim.sm { font-size: 9px; }
.ap-dim.p { padding: 8px 0; }
.ap-geo { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ap-geo-row { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; background: #2a2a2a; font-size: 10px; }
.ap-geo-row span:first-child { color: #7fd8c8; }
.ap-geo-row b { margin-left: auto; color: #b6c2c8; font-weight: 500; }
.ap-chip { border-radius: 12px; border: 1px solid #3a3a3a; background: #232323; color: #e8eef1; padding: 8px 6px; font-size: 10px; cursor: pointer; }
.ap-chip:hover { border-color: #2A9D8F; }
.ap-skel { display: inline-block; width: 120px; height: 10px; border-radius: 999px; background: #2a2a2a; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ap-risk { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; }
.ap-ring { width: 74px; height: 74px; border-radius: 999px; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #2b2b2b 0); position: relative; }
.ap-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 999px; background: #1e1e1e; }
.ap-ring b, .ap-ring small, .ap-ring i { position: relative; z-index: 1; }
.ap-ring b { font-size: 20px; font-weight: 700; line-height: 1; }
.ap-ring small { font-size: 7.5px; color: #9fb0b8; margin-top: 2px; }
.ap-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(42,157,143,.3); border-top-color: #2A9D8F; border-radius: 999px; animation: spin 1s linear infinite; }
.ap-spin.sm { width: 11px; height: 11px; vertical-align: -2px; }
.ap-spin.big { width: 30px; height: 30px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ap-groups { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-g { min-width: 0; }
.ap-g summary, .ap-all > summary, .ap-det > summary, .ap-hist > summary { list-style: none; cursor: pointer; }
.ap-g summary::-webkit-details-marker, .ap-all > summary::-webkit-details-marker, .ap-det > summary::-webkit-details-marker, .ap-hist > summary::-webkit-details-marker { display: none; }
.ap-g summary { display: grid; grid-template-columns: 18px minmax(0, 1fr) 10px; align-items: center; gap: 6px; padding: 4px 2px; font-size: 10.5px; }
.ap-gi { width: 18px; text-align: center; font-size: 12px; flex: 0 0 auto; }
.ap-gi.big { width: 34px; height: 34px; border-radius: 999px; background: #2a2a2a; display: grid; place-items: center; font-size: 16px; }
.ap-gt { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.ap-gs { display: block; font-style: normal; font-size: 9.5px; line-height: 1.25; margin-top: 1px; }
.ap-gs.ok { color: #b6c2c8; } .ap-gs.warn { color: #f5c451; }
.ap-car { color: #6d7d85; font-size: 11px; transition: transform .2s; }
details[open] > summary .ap-car { transform: rotate(180deg); }
.ap-gbody { padding: 2px 0 4px; display: flex; flex-direction: column; gap: 4px; }
.ap-det { border-radius: 12px; background: #163a2a; }
.ap-det.warn { background: #3b3417; } .ap-det.bad { background: #3a2323; }
.ap-det > summary { display: grid; grid-template-columns: 8px minmax(0,1fr) auto 10px; gap: 7px; align-items: center; padding: 7px 9px; }
.ap-det .d { width: 7px; height: 7px; border-radius: 999px; background: #22c55e; }
.ap-det.warn .d { background: #f5c451; } .ap-det.bad .d { background: #ef9a9a; }
.ap-det b { display: block; font-size: 10.5px; }
.ap-det summary span:not(.ap-car) { display: block; font-size: 9.5px; color: #b6c2c8; line-height: 1.35; }
.ap-det em { font-style: normal; font-size: 9.5px; color: #8fd3a9; white-space: nowrap; }
.ap-det.warn em { color: #f5c451; } .ap-det.bad em { color: #ef9a9a; }
.ap-det-body { padding: 0 9px 8px 24px; font-size: 9.5px; color: #b6c2c8; line-height: 1.4; }
.ap-all > summary { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 10px; align-items: center; gap: 8px; }
.ap-all > summary b { display: block; font-size: 11.5px; }
.ap-all > summary span:not(.ap-car):not(.ap-gi):not(.ap-badge) { font-size: 9.5px; color: #9fb0b8; }
.ap-all > summary div { min-width: 0; }
.ap-tile b, .ap-id, .ap-id2 { overflow-wrap: anywhere; }
.ap-badge { font-size: 9px; padding: 2px 7px; border-radius: 999px; background: #1f4b4c; color: #8fe3d2; }
.ap-all-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ap-err { color: #f5c451; text-align: center; }
/* sheets */
.ap-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; z-index: 5; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.ap-sheet { width: 100%; max-height: 85%; overflow-y: auto; background: #1e1e1e; border-radius: 18px 18px 0 0; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 8px; animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(30px); } }
.ap-sheet-h { font-size: 13px; font-weight: 700; }
.ap-sheet { position: relative; }
.ap-sheet-x { position: absolute; top: 8px; right: 10px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: #2a2a2a; color: #e8eef1; font-size: 14px; cursor: pointer; }
.ap-input { display: flex; gap: 6px; }
.ap-input input, .ap-field input { flex: 1; min-width: 0; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 10px; padding: 8px 9px; color: #e8eef1; font-size: 11px; }
.ap-input input:focus, .ap-field input:focus { outline: none; border-color: #2A9D8F; }
.ap-btn { border: 0; border-radius: 10px; padding: 8px 12px; background: #2A9D8F; color: #fff; font-weight: 600; font-size: 10.5px; cursor: pointer; }
.ap-btn.wide { width: 100%; padding: 10px; }
.ap-btn:disabled { opacity: .6; }
.ap-res { display: flex; flex-direction: column; gap: 4px; }
.ap-score { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #2a2a2a; }
.ap-score b { font-size: 22px; font-family: 'JetBrains Mono', monospace; }
.ap-score .t { font-weight: 600; }
.ap-score small { color: #9fb0b8; font-size: 9px; }
.ap-score.ok b { color: #22c55e; } .ap-score.warn b { color: #f5c451; } .ap-score.bad b { color: #ef5350; }
.ap-kv { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 10px; background: #2a2a2a; font-size: 10px; }
.ap-kv span { color: #b6c2c8; } .ap-kv b { font-weight: 500; text-align: right; }
.ap-kv.ok b { color: #8fd3a9; } .ap-kv.warn b { color: #f5c451; } .ap-kv.bad b { color: #ef9a9a; } .ap-kv.skip b { color: #6d7d85; }
/* settings */
.ap-h1 { font-size: 24px; font-weight: 700; padding: 6px 4px 2px; }
.ap-av { width: 34px; height: 34px; border-radius: 999px; background: #2a2a2a; display: grid; place-items: center; font-size: 16px; }
.ap-login { display: block; font-size: 12px; }
.ap-vip { margin-left: auto; font-size: 9px; padding: 3px 8px; border-radius: 999px; background: #1f4b4c; color: #8fe3d2; }
.ap-sub { margin-top: 8px; border-radius: 12px; background: #2a2a2a; padding: 9px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; }
.ap-ok { color: #8fd3a9; }
.ap-links { display: flex; gap: 14px; margin-top: 6px; font-weight: 600; color: #8fe3d2; }
.ap-links a { color: inherit; text-decoration: none; }
.ap-hist { margin-top: 8px; border-radius: 12px; background: #2a2a2a; padding: 8px 10px; font-size: 10.5px; }
.ap-hist > summary { display: flex; justify-content: space-between; }
.ap-hrow { display: grid; grid-template-columns: 16px 1fr auto; gap: 7px; align-items: center; padding: 6px 0; border-top: 1px solid #333; font-size: 9.5px; }
.ap-hrow b { display: block; font-size: 10px; } .ap-hrow b small { font-family: 'JetBrains Mono', monospace; color: #9fb0b8; font-weight: 400; font-size: 8px; }
.ap-hrow span:last-child { color: #9fb0b8; }
.ap-hrow em { font-style: normal; font-size: 9px; white-space: nowrap; }
.ap-hrow em.ok { color: #8fd3a9; } .ap-hrow em.warn { color: #f5c451; } .ap-hrow em.bad { color: #ef9a9a; }
.ap-out { margin-top: 8px; width: 100%; border-radius: 999px; border: 1px solid #4a4a4a; background: transparent; color: #e8eef1; padding: 9px; font-size: 11px; cursor: pointer; }
.ap-entry { display: flex; align-items: center; gap: 10px; cursor: pointer; background: #262626; }
.ap-entry:hover { background: #2c2c2c; }
.ap-entry b { display: block; font-size: 12px; } .ap-entry span:not(.ap-gi) { font-size: 9.5px; color: #b6c2c8; }
.ap-about { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: #2a2a2a; font-size: 10px; }
.ap-about span { color: #b6c2c8; }
.ap-row .ap-ttl { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.ap-row .ap-ttl + .ap-dim { display: block; margin-top: 2px; line-height: 1.35; }
.ap-langs { display: flex; gap: 6px; margin-top: 10px; }
.ap-langs button { flex: 1; border-radius: 999px; border: 1px solid #4a4a4a; background: transparent; color: #e8eef1; padding: 6px; font-size: 10px; cursor: pointer; }
.ap-langs button.on { background: #2A9D8F; border-color: #2A9D8F; color: #fff; }
/* login */
.ap-login-bg { position: absolute; inset: 0; background: #0F1419; overflow: hidden; }
.ap-login-bg i { position: absolute; border-radius: 999px; filter: blur(30px); }
.ap-login-bg .b1 { width: 260px; height: 260px; top: 4%; left: -30%; background: rgba(42,157,143,.35); animation: lb1 8s ease-in-out infinite alternate; }
.ap-login-bg .b2 { width: 320px; height: 320px; top: 45%; right: -40%; background: rgba(17,138,178,.3); animation: lb2 10s ease-in-out infinite alternate; }
@keyframes lb1 { to { transform: translateX(90%); } } @keyframes lb2 { to { transform: translateX(-90%); } }
.ap-login-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 70px 14px 20px; }
.ap-logo { font-size: 42px; text-align: center; animation: float 4s ease-in-out infinite; }
.ap-brand { text-align: center; font-size: 22px; font-weight: 800; background: linear-gradient(90deg, #2A9D8F, #06D6A0, #118AB2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-field { display: flex; flex-direction: column; gap: 3px; }
.ap-field span { font-size: 9.5px; color: #9fb0b8; }
/* verify (light theme, like the app) */
.demo.light { background: #f6f7fb; color: #17202a; }
.demo.light .demo-status { color: #4b5563; }
.ap-vh { display: flex; align-items: center; gap: 8px; padding: 2px 2px 4px; }
.ap-vh b { font-size: 15px; flex: 1; }
.ap-vback { border: 0; background: transparent; font-size: 16px; cursor: pointer; color: inherit; padding: 0 4px; }
.ap-seg { display: flex; border-radius: 999px; background: #e5e7eb; padding: 2px; }
.ap-seg i { font-style: normal; font-size: 9px; padding: 3px 8px; border-radius: 999px; color: #374151; }
.ap-seg i.on { background: #111827; color: #fff; }
.ap-seg i { cursor: pointer; }
.ap-vlogo { width: 60px; height: 60px; margin: 10px auto 0; border-radius: 16px; background: #7c6cf0; color: #fff; display: grid; place-items: center; font-size: 30px; }
.ap-vtitle { text-align: center; font-size: 18px; font-weight: 700; }
.ap-vsub { text-align: center; color: #4b5563; font-size: 11px; margin-bottom: 4px; }
.ap-modes { display: flex; flex-direction: column; gap: 8px; }
.ap-mode { display: flex; gap: 10px; align-items: center; text-align: left; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; padding: 10px; cursor: pointer; color: inherit; }
.ap-mode:hover { border-color: #7c6cf0; }
.ap-mode .ic { width: 34px; height: 34px; border-radius: 10px; background: #e8f4fb; color: #1d7bb5; display: grid; place-items: center; font-size: 16px; flex: 0 0 auto; }
.ap-mode b { display: block; font-size: 10.5px; letter-spacing: .02em; } .ap-mode span:not(.ic) { font-size: 9px; color: #4b5563; line-height: 1.35; }
.ap-check { display: flex; gap: 8px; align-items: flex-start; padding: 6px 2px; cursor: pointer; }
.ap-check input { margin-top: 3px; width: 14px; height: 14px; accent-color: #7c6cf0; }
.ap-check b { display: block; font-size: 10.5px; } .ap-check span { font-size: 9px; color: #4b5563; line-height: 1.35; }
.ap-vstep { font-size: 12px; font-weight: 600; padding: 2px 2px; }
.ap-vstep small { display: block; font-size: 9px; color: #6b7280; font-weight: 400; }
.ap-cam { position: relative; flex: 1; min-height: 300px; border-radius: 12px; overflow: hidden; background: #1a1a1a; }
.ap-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); position: absolute; inset: 0; }
.ap-cam video.env { transform: none; }
.ap-hint { position: absolute; top: 8px; left: 8px; right: 8px; text-align: center; font-size: 10px; color: #fff; text-shadow: 0 1px 4px #000; z-index: 2; }
.ap-cam .frame { position: absolute; left: 6%; right: 6%; top: 30%; height: 42%; border-radius: 6px; z-index: 2; }
.ap-cam .frame i { position: absolute; width: 22px; height: 22px; border: 3px solid #ef4444; transition: border-color .3s; }
.ap-cam .frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; } .ap-cam .frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; }
.ap-cam .frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; } .ap-cam .frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.ap-cam .frame i.ok { border-color: #22c55e; }
.ap-cam .frame.face { left: 20%; right: 20%; top: 12%; height: 62%; border-radius: 50% 50% 46% 46%; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 999px rgba(0,0,0,.45); }
.ap-cam .frame.face i { display: none; }
.ap-cam .frame.face.arc { border-color: #22c55e; }
.ap-cam .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; transition: opacity .1s; }
.ap-cam .flash.on { animation: flash .35s ease-out; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.ap-cam .cue { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 10px; color: #fff; text-shadow: 0 1px 4px #000; z-index: 2; }
.ap-cam .sim { position: absolute; inset: 0; display: grid; place-items: center; color: #9fb0b8; font-size: 10px; text-align: center; padding: 12px; background: radial-gradient(circle at 50% 40%, #2a3340, #101318); }
.demo-sim-scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #22d3ee, transparent); animation: simscan 1.6s linear infinite; }
@keyframes simscan { from { top: 0; } to { top: 100%; } }
.ap-shutter { width: 100%; border: 0; border-radius: 999px; padding: 12px; background: #e5e7eb; color: #111827; font-weight: 700; font-size: 12px; cursor: pointer; }
.ap-shutter:active { background: #d1d5db; }
.ap-nfc { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 10px; }
.ap-nfc-ring { width: 90px; height: 90px; border-radius: 999px; border: 3px dashed #7c6cf0; display: grid; place-items: center; font-size: 34px; animation: spin 6s linear infinite; }
.ap-nfc-ring span { animation: spin 6s linear infinite reverse; }
.ap-nfc b { font-size: 14px; }
.ap-nfc-p { width: 80%; height: 5px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.ap-nfc-p i { display: block; height: 100%; width: 0; background: #7c6cf0; transition: width .25s; }
.ap-link { border: 0; background: transparent; color: #7c6cf0; font-size: 10.5px; cursor: pointer; padding: 8px; }
.ap-wait { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 90px 14px; }
.ap-wait b { font-size: 16px; }
.ap-verdict { border-radius: 16px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.ap-verdict .ic { font-size: 34px; }
.ap-verdict b { font-size: 18px; }
.ap-verdict span { font-size: 10px; }
.ap-verdict small { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; opacity: .7; }
.ap-verdict.ok { background: #dcfce7; color: #166534; } .ap-verdict.warn { background: #fef3c7; color: #92400e; } .ap-verdict.bad { background: #fee2e2; color: #991b1b; }
.demo.light .ap-kv { background: #fff; border: 1px solid #e5e7eb; }
.demo.light .ap-kv span { color: #4b5563; } .demo.light .ap-kv.ok b { color: #15803d; } .demo.light .ap-kv.warn b { color: #b45309; } .demo.light .ap-kv.bad b { color: #b91c1c; } .demo.light .ap-kv.skip b { color: #9ca3af; }
.demo.light .ap-btn { background: #7c6cf0; }
.demo.light .ap-dim { color: #6b7280; }

/* ---------- Cabinet: account bar, events table, detail drawer ---------- */
.acct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: .9rem 1.1rem; border-radius: 1rem; border: 1px solid var(--edge); background: rgba(13,19,27,.7); }
.acct-id { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.acct-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #04141a; background: linear-gradient(135deg, var(--cyan), var(--teal)); }
.acct-kpi { display: flex; gap: 1.1rem; font-size: .78rem; color: #8ca0b3; }
.acct-kpi b { color: #e6edf3; font-family: 'JetBrains Mono', monospace; margin-right: .25rem; }
.btn-sm { padding: .45rem .8rem; font-size: .8rem; }
.ev-f { padding: .3rem .6rem; border-radius: .5rem; border: 1px solid var(--edge); color: #8ca0b3; background: transparent; cursor: pointer; }
.ev-f.on { color: var(--cyan); border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.06); }
.evt { width: 100%; border-collapse: collapse; font-size: .85rem; }
.evt th { text-align: left; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: #6b7f92; padding: .6rem 1rem; border-bottom: 1px solid var(--edge); font-weight: 600; }
.evt td { padding: .65rem 1rem; border-top: 1px solid rgba(30,42,56,.7); vertical-align: middle; }
.evt tr.ev { cursor: pointer; transition: background .12s; }
.evt tr.ev:hover { background: rgba(34,211,238,.04); }
.evt tr.ev.on { background: rgba(34,211,238,.08); box-shadow: inset 3px 0 0 var(--cyan); }
.evt tr.ev:focus-visible { outline: 1px solid var(--cyan); outline-offset: -1px; }
.ev-ic { width: 28px; height: 28px; border-radius: .55rem; display: grid; place-items: center; font-size: .85rem; background: rgba(34,211,238,.1); flex: 0 0 auto; }
.ev-ic.verify { background: rgba(139,92,246,.15); }
.ev-score { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #e6edf3; margin-left: .5rem; display: inline-block; min-width: 2ch; text-align: right; }
.skel { display: inline-block; width: 90px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #1e2a38, #2a3a4c, #1e2a38); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.verdict { font-family: 'JetBrains Mono', monospace; font-size: .68rem; padding: .18rem .55rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.verdict-good { color: #22c55e; border-color: rgba(34,197,94,.5); } .verdict-warn { color: #f59e0b; border-color: rgba(245,158,11,.5); } .verdict-bad { color: #ef4444; border-color: rgba(239,68,68,.5); }

.drawer-bg { position: fixed; inset: 0; background: rgba(3,6,10,.55); backdrop-filter: blur(2px); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); z-index: 61; background: #0b1119; border-left: 1px solid var(--edge); box-shadow: -30px 0 80px rgba(0,0,0,.6); display: flex; flex-direction: column; animation: drawerIn .25s ease-out; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
body.drawer-open { overflow: hidden; }
.d-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--edge); background: rgba(13,19,27,.9); }
.d-close { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; color: #8ca0b3; font-size: 1.2rem; cursor: pointer; }
.d-close:hover { color: #fff; border-color: rgba(34,211,238,.5); }
.d-scroll { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 2rem; }
.d-score {
  --p: 0; --ring: #22c55e;
  width: 56px; height: 56px; flex: 0 0 56px; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), rgba(255,255,255,.08) 0);
  box-shadow: 0 0 14px color-mix(in srgb, var(--ring) 40%, transparent);
}
.d-score b {
  width: 42px; height: 42px; border-radius: 50%;
  background: #0b1119;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: .95rem; font-weight: 700; line-height: 1;
}
.d-pay { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: .8rem; border: 1px solid rgba(245,158,11,.4); background: rgba(245,158,11,.06); }
.d-lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: #6b7f92; }
.d-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid rgba(34,211,238,.35); background: radial-gradient(120% 140% at 0% 0%, rgba(34,211,238,.12), transparent 60%), rgba(13,19,27,.8); }
.d-sid { font-family: 'JetBrains Mono', monospace; font-size: 1.25rem; font-weight: 700; color: #e6edf3; margin-top: .3rem; word-break: break-all; }
.d-sid.muted { color: #6b7f92; font-size: .9rem; font-weight: 500; }
.d-hero-r { display: flex; gap: .9rem; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
.hs { text-align: center; min-width: 64px; }
.hs b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; color: #e6edf3; }
.hs span { font-size: .62rem; color: #8ca0b3; line-height: 1.2; display: block; }
.hs.warn b { color: #f59e0b; }
.d-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin-top: .75rem; }
.d-card { padding: .9rem 1rem; border-radius: .9rem; border: 1px solid var(--edge); background: rgba(13,19,27,.7); }
.d-big { font-size: 1rem; font-weight: 700; margin: .25rem 0 .5rem; }
.d-lines { display: grid; gap: .3rem; }
.d-line { display: flex; justify-content: space-between; gap: .75rem; font-size: .78rem; }
.d-line span { color: #8ca0b3; } .d-line b { font-weight: 500; color: #e6edf3; text-align: right; word-break: break-word; }
.d-line.ok b { color: #22c55e; } .d-line.warn b { color: #f59e0b; } .d-line.bad b { color: #ef4444; }
.d-map { height: 200px; margin-top: .75rem; border-radius: .9rem; overflow: hidden; border: 1px solid var(--edge); background: #0b1119; }
.d-map-empty { height: 100%; display: grid; place-items: center; color: #8ca0b3; font-size: .75rem; text-align: center; padding: 1rem; background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.06), transparent 70%); }
.d-tip { background: rgba(11,17,25,.9); color: #e6edf3; border: 1px solid rgba(34,211,238,.4); border-radius: .4rem; font-size: .7rem; padding: .15rem .4rem; }
.d-tip::before { display: none; }
.d-sec { margin-top: 1.1rem; }
.d-sec-t { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #8ca0b3; margin-bottom: .5rem; }
.d-groups { display: grid; gap: .5rem; }
.g { border: 1px solid var(--edge); border-radius: .9rem; background: rgba(13,19,27,.6); overflow: hidden; }
.g summary { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600; }
.g summary::-webkit-details-marker { display: none; }
.g summary::after { content: '⌄'; margin-left: auto; color: #6b7f92; transition: transform .2s; }
.g[open] summary::after { transform: rotate(180deg); }
.g-n { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: #6b7f92; font-weight: 400; }
.g-badge { font-size: .68rem; padding: .12rem .5rem; border-radius: 999px; border: 1px solid; font-weight: 600; }
.g-badge.ok { color: #22c55e; border-color: rgba(34,197,94,.4); } .g-badge.warn { color: #f59e0b; border-color: rgba(245,158,11,.4); } .g-badge.bad { color: #ef4444; border-color: rgba(239,68,68,.4); }
.g-body { border-top: 1px solid rgba(30,42,56,.7); }
.g-item { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: .7rem; align-items: start; padding: .55rem .9rem; border-top: 1px solid rgba(30,42,56,.5); font-size: .82rem; }
.g-item:first-child { border-top: 0; }
.g-item .lamp { width: 8px; height: 8px; border-radius: 999px; background: #8ca0b3; margin-top: .45rem; }
.g-item.ok .lamp { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.7); } .g-item.bad .lamp { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.7); } .g-item.warn .lamp { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,.7); } .g-item.info .lamp { background: var(--cyan); } .g-item.skip .lamp { background: #3b4a5c; }
.g-item.bad { background: rgba(239,68,68,.05); } .g-item.warn { background: rgba(245,158,11,.05); }
.g-name { font-weight: 600; }
.g-text { font-size: .75rem; color: #a9b8c6; margin-top: .15rem; line-height: 1.4; }
.g-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .72rem; color: #8ca0b3; margin-top: .2rem; }
.g-row b { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: #cbd5e1; text-align: right; max-width: 60%; word-break: break-all; }
.g-row.bad b { color: #ef4444; } .g-row.warn b { color: #f59e0b; }
/* check block anatomy (2026-09-13): name → lead → plain paragraph → hint → flagged rows → folded tech */
.g-item.has-body { padding: .75rem .9rem .8rem; }
.g-lead { font-size: .8rem; color: #e6edf3; margin-top: .2rem; line-height: 1.4; }
.g-hint { font-size: .74rem; color: #22d3ee; margin-top: .35rem; line-height: 1.4; }
.g-hint.muted { color: #6b7f92; }
.g-hint::before { content: '→ '; opacity: .7; }
.g-hint.muted::before { content: ''; }
.g-rows { margin-top: .4rem; padding: .35rem .6rem; border-radius: .5rem; background: rgba(11,17,25,.6); border: 1px solid rgba(30,42,56,.6); }
.g-rows .g-row { margin-top: .15rem; }
.g-tech { margin-top: .45rem; font-size: .7rem; color: #6b7f92; }
.g-tech summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .3rem; }
.g-tech summary::-webkit-details-marker { display: none; }
.g-tech summary::before { content: '▸'; font-size: .65rem; transition: transform .15s; }
.g-tech[open] summary::before { transform: rotate(90deg); }
.g-tech summary:hover { color: #8ca0b3; }
.g-tech-row { display: grid; grid-template-columns: minmax(0,140px) minmax(0,1fr); gap: .6rem; margin-top: .3rem; padding-left: .8rem; }
.g-tech-row span { color: #6b7f92; }
.g-tech-row code { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: #a9b8c6; white-space: pre-wrap; word-break: break-word; line-height: 1.35; }
/* «+ Камера / + Проверка устройства» chip on a grouped session row */
.ev-also { display: inline-block; font-size: .64rem; font-weight: 600; color: #22d3ee; background: rgba(34,211,238,.1); border-radius: .5rem; padding: .05rem .4rem; margin-left: .3rem; vertical-align: middle; }
/* Second half of a session inside the drawer */
.d-sess2-head { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem 0; flex-wrap: wrap; }
.d-sess2-head b { font-size: .82rem; color: #d6e2ee; }
.d-sess2-risk { font-size: .7rem; font-weight: 600; }
.g-st { font-size: .72rem; font-weight: 600; white-space: nowrap; margin-top: .15rem; }
.g-item.ok .g-st { color: #22c55e; } .g-item.bad .g-st { color: #ef4444; } .g-item.warn .g-st { color: #f59e0b; } .g-item.info .g-st, .g-item.skip .g-st { color: #6b7f92; }
.d-codes-wrap { margin-top: 1rem; font-size: .75rem; color: #6b7f92; }
.d-codes-wrap summary { cursor: pointer; }
.d-codes { display: grid; gap: .3rem; margin-top: .5rem; }
.code-row { display: flex; gap: .6rem; align-items: baseline; font-size: .75rem; color: #8ca0b3; }
.code-row code { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--cyan); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(34,211,238,.3); border-top-color: var(--cyan); border-radius: 999px; animation: spin 1s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.opt { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem; border-radius: .7rem; border: 1px solid var(--edge); background: rgba(10,14,20,.6); color: inherit; cursor: pointer; font-size: .75rem; }
.opt:hover { border-color: rgba(34,211,238,.5); }
.opt b { font-family: 'JetBrains Mono', monospace; font-size: .9rem; color: var(--cyan); }
.leaflet-container { background: #0b1119; font: inherit; }
.leaflet-tile-pane .dark-tiles { filter: invert(1) hue-rotate(190deg) saturate(.35) brightness(.72) contrast(1.05); }
@media (max-width: 720px) { .d-two { grid-template-columns: 1fr; } .d-hero { grid-template-columns: 1fr; } .acct-kpi { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .phone-frame, .chip, .scan-line, .marquee-track, .fluid-bg i { animation: none !important; }
}
