:root {
  --bg: #07070d;
  --bg-2: #0e0e18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f3f8;
  --muted: #a3a1b5;
  --faint: #6f6d84;
  --saffron: #ffb020;
  --rose: #ff4d6d;
  --violet: #7c5cff;
  --ok: #3ddc97;
  --err: #ff6b6b;
  --grad: linear-gradient(120deg, var(--saffron), var(--rose) 50%, var(--violet));
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron);
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  background: rgba(7, 7, 13, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 600; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: block; }
  .nav-cta { margin-left: 0; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); padding: 16px 20px 22px; border-bottom: 1px solid var(--border); margin: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255, 77, 109, 0.35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(255, 77, 109, 0.5); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(255, 176, 32, 0.22), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(50% 60% at 50% 90%, rgba(255, 77, 109, 0.18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; margin: 18px 0 20px; font-weight: 800; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg { color: var(--ok); }

.poster-wall {
  position: relative; height: 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  transform: rotate(-4deg);
}
.poster-col { display: flex; flex-direction: column; gap: 14px; animation: drift 38s linear infinite; }
.poster-col:nth-child(2) { animation-duration: 46s; animation-direction: reverse; margin-top: -60px; }
.poster-col:nth-child(3) { animation-duration: 42s; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.poster {
  aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #24203a, #131221); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
  font-weight: 700; font-size: 14px; line-height: 1.25;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
}
@media (prefers-reduced-motion: reduce) { .poster-col { animation: none; } }
@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .poster-wall { height: 340px; transform: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.stats { padding: 0 0 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 26px 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 14px; color: var(--muted);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--surface-2); transform: translateY(-2px); }
.card h3 { margin: 16px 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(255, 176, 32, 0.18), rgba(124, 92, 255, 0.18));
  border: 1px solid var(--border); color: var(--saffron);
}
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; }
.step { position: relative; }
.step .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  background: var(--grad); color: #fff;
}
.code-demo {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 10px; font-family: ui-monospace, Menlo, monospace;
  font-weight: 700; letter-spacing: 0.18em; background: #000; border: 1px dashed rgba(255, 255, 255, 0.25);
}

.device.popular { border-color: rgba(255, 176, 32, 0.45); background: linear-gradient(160deg, rgba(255, 176, 32, 0.08), rgba(124, 92, 255, 0.06)); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff;
}

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .pricing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; position: relative; padding: 30px 26px; }
.plan.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 70px rgba(255, 77, 109, 0.18);
}
.plan .tag { position: absolute; top: -12px; left: 26px; }
.plan h3 { margin: 0; font-size: 17px; color: var(--muted); }
.price { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 2px; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--saffron); font-size: 14px; font-weight: 600; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #d9d7e6; }
.plan li svg { flex: none; margin-top: 3px; color: var(--ok); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--saffron); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta-band {
  border-radius: 28px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255, 77, 109, 0.35), transparent 70%), var(--bg-2);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; margin: 0 0 12px; }
.cta-band p { color: var(--muted); margin: 0 0 28px; font-size: 18px; }

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---------- App pages (sign up, account, activate) ---------- */
.page { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 16px 80px; position: relative; isolation: isolate; }
.page::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 50% at 50% 0%, rgba(124, 92, 255, 0.22), transparent 70%);
}
.panel {
  width: min(460px, 100%); background: rgba(14, 14, 24, 0.85); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 32px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.panel.wide { width: min(760px, 100%); }
.panel h1 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 6px; }
.panel .sub { color: var(--muted); margin: 0 0 26px; }
@media (max-width: 520px) { .panel { padding: 28px 20px; } }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: #d6d4e3; }
.input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35); color: var(--text); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: rgba(255, 176, 32, 0.6); box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.12); }
.input.code {
  text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 28px; font-weight: 800;
  letter-spacing: 0.25em; text-transform: uppercase; padding: 18px 12px;
}
.hint { font-size: 13px; color: var(--faint); }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.error { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35); color: #ffb3b3; }
.msg.info { background: rgba(124, 140, 255, 0.1); border: 1px solid rgba(124, 140, 255, 0.35); color: #c9d0ff; }
.msg.success { background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.35); color: #a6f3cf; }
.switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.switch a { color: var(--saffron); font-weight: 700; }

.confirm-tv { text-align: center; padding: 8px 0 4px; }
.confirm-tv .tv-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(255, 176, 32, 0.2), rgba(124, 92, 255, 0.2)); border: 1px solid var(--border);
}
.confirm-tv h2 { margin: 0 0 6px; font-size: 22px; }
.row-actions { display: flex; gap: 10px; margin-top: 22px; }
.row-actions .btn { flex: 1; }
.done-check {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(61, 220, 151, 0.15); color: var(--ok); border: 1px solid rgba(61, 220, 151, 0.4);
}

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status-pill.on { background: rgba(61, 220, 151, 0.12); color: var(--ok); }
.status-pill.off { background: rgba(255, 107, 107, 0.12); color: var(--err); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
@media (max-width: 620px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.acct-box h3 { margin: 0 0 10px; font-size: 15px; color: var(--muted); font-weight: 600; }
.acct-box .big { font-size: 20px; font-weight: 800; }
.device-list { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.device-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.device-list .meta { flex: 1; min-width: 0; }
.device-list .meta strong { display: block; }
.device-list .meta span { font-size: 13px; color: var(--faint); }
.link-btn { background: none; border: 0; color: var(--rose); font-weight: 700; cursor: pointer; padding: 6px; }
.section-title { font-size: 18px; margin: 30px 0 4px; }
.hidden { display: none !important; }

/* ---------- Guide ---------- */
.guide { max-width: 820px; margin: 0 auto; }
.guide ol { counter-reset: g; list-style: none; padding: 0; display: grid; gap: 14px; }
.guide li { counter-increment: g; position: relative; padding: 22px 22px 22px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.guide li::before {
  content: counter(g); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #fff;
}
.guide li strong { display: block; margin-bottom: 4px; }
.guide code { background: #000; border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; font-size: 14px; }
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.tabs button.active { background: var(--grad); color: #fff; border-color: transparent; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- disclaimer + legal ---------- */
footer .disclaimer { flex-basis: 100%; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--faint); }
footer .disclaimer b { color: var(--muted); }
footer .disclaimer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.notice { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 18px; }
.prose { width: min(760px, 100%); margin: 0 auto; padding: 56px 16px 80px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; margin: 0 0 8px; }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }

/* ---------- admin ---------- */
.admin { width: min(1180px, 100%); margin: 0 auto; padding: 32px 16px 80px; }
.admin-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.admin-head .hint { margin: 4px 0 0; }
.admin .tabs { margin: 0; justify-content: flex-start; }
.admin section { margin-top: 8px; padding: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.kpi-v { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.kpi-k { color: var(--muted); font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.admin .acct-box h3 { margin-top: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.btn-sm { padding: 8px 14px; font-size: 14px; min-height: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { flex: 1 1 240px; width: auto; }
.toolbar select.input { flex: 0 1 200px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .hint { font-size: 13px; margin: 2px 0 0; }
.table .status-pill { padding: 3px 10px; font-size: 12px; }
.muted-row td { opacity: 0.55; }
.tag-sm { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 6px; background: rgba(124, 92, 255, 0.18); color: #c9bcff; vertical-align: 1px; }
.tag-sm.off { background: rgba(255, 107, 107, 0.15); color: #ffb3b3; }
.status-pill.warn { background: rgba(255, 176, 32, 0.14); color: var(--saffron); }
.link-btn.danger { color: var(--err); }
code.code, .big-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }
.big-code { font-size: 26px; font-weight: 700; margin: 4px 0; }
.invite-form { margin-bottom: 16px; }
.invite-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.invite-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.invite-form label.wide { margin-bottom: 14px; }
.new-code { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(61, 220, 151, 0.45); background: rgba(61, 220, 151, 0.06); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper strong { font-size: 22px; min-width: 24px; text-align: center; }
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg-2); border-left: 1px solid var(--border); z-index: 100; overflow-y: auto; padding: 28px 24px 40px; box-shadow: var(--shadow); }
.drawer h2 { margin: 0 32px 4px 0; font-size: 22px; letter-spacing: -0.02em; word-break: break-word; }
.drawer-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.drawer-sec { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.drawer-sec h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.drawer .device-list { margin-top: 0; }
@media (max-width: 640px) { .admin-head { align-items: flex-start; } .kpi-v { font-size: 26px; } }

/* Admin two-factor setup */
.qr-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.qr-box .qr { background: #fff; padding: 10px; border-radius: 12px; line-height: 0; }
.qr-box .qr img, .qr-box .qr canvas { width: 180px; height: 180px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: 1px; word-break: break-all; }
.otp-input { letter-spacing: 4px; font-size: 18px; }
.event-action { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.warn-row td { background: rgba(255, 184, 77, 0.06); }
