:root {
  --bg: #070a0f;
  --bg-2: #0c1118;
  --surface: #121820;
  --surface-2: #171f2a;
  --elevated: #1c2532;
  --desk: var(--bg-2);
  --paper: var(--surface);
  --ink: #eef2f7;
  --steel: #8b9bb0;
  --muted: #6a788c;
  --lane: #6ee7ff;
  --mark: #d6ff3c;
  --mark-dim: rgba(214, 255, 60, 0.12);
  --mark-glow: rgba(214, 255, 60, 0.35);
  --flare: #ff6b6b;
  --ok: #4ade80;
  --warn: #fbbf24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --head: 68px;
  --max: 980px;
  --radius: 14px;
  --radius-sm: 10px;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
  --glow-cyan: 0 0 40px rgba(110, 231, 255, 0.12);
  --glow-lime: 0 0 32px var(--mark-glow);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(214, 255, 60, 0.15);
}
body.nav-open { overflow: hidden; }

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 10% -15%, rgba(110, 231, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(214, 255, 60, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(99, 102, 241, 0.08), transparent 45%);
}

a { color: var(--lane); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--mark); }
code, .mono, pre, .msisdn, .otp, .wallet-amt, .price, .step-n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
button, .buy-item, .nav a, .btn, summary { cursor: pointer; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--mark);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--head);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  min-height: var(--head);
}
.top .nav { flex: 1; justify-content: flex-end; margin-right: 4px; }

.brand, .brand-foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover .word { color: var(--mark); }
.logo {
  width: 38px;
  height: 38px;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.foot .logo { width: 30px; height: 30px; box-shadow: none; }
.word {
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.auth-logo { display: flex; justify-content: center; margin: 0 0 20px; }
.auth-logo .logo { width: 72px; height: 72px; border-radius: 0; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 52;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease;
}
body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 46;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.nav-ico { display: none; flex-shrink: 0; }
.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--steel);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.nav-cta {
  background: linear-gradient(135deg, var(--mark), #b8e635) !important;
  color: var(--bg) !important;
  font-weight: 700;
  box-shadow: var(--glow-lime);
}
.wallet {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--glow-cyan);
  gap: 8px;
  padding: 0 14px;
}
.wallet-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.wallet-amt-nav {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav a.nav-logout,
.nav-logout {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.08);
  color: #ffb4b4 !important;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nav a.nav-logout:hover,
.nav-logout:hover {
  color: #fff !important;
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.55);
}
.nav-logout:active { transform: scale(0.98); }
.nav-logout svg { opacity: 0.9; flex-shrink: 0; }

main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 88px;
}

h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 16px; font-weight: 700; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); margin: 0 0 8px; font-weight: 600; }
h3 { font-size: 1.02rem; margin: 0 0 4px; font-weight: 600; }
.lede { color: var(--steel); max-width: 52ch; margin: 0 0 24px; text-wrap: pretty; font-size: 1.06rem; line-height: 1.6; }
.section-note { color: var(--muted); margin: 0; font-size: 0.92rem; }
.muted { color: var(--steel); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--lane);
  font-weight: 600;
  margin: 0 0 8px;
}

#price, #how, #faq { scroll-margin-top: 92px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  margin: 0 0 20px;
}
.pill-us { box-shadow: var(--glow-cyan); }
.flag-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  margin: 0 0 16px;
  font-size: 0.88rem;
}
.us-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3c3b6e 0 38%, #fff 38% 50%, #b22234 50% 62%, #fff 62% 74%, #b22234 74% 86%, #fff 86% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

body.landing main { padding-top: 12px; max-width: 1100px; }

.hero {
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 6vw, 60px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.hero-col { position: relative; z-index: 1; }
.hero-spot {
  background: linear-gradient(160deg, rgba(28, 37, 50, 0.95) 0%, rgba(12, 17, 24, 0.98) 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), var(--glow-cyan);
}
.hero-spot::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle, rgba(214, 255, 60, 0.18), transparent 60%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}
.hero-spot::after {
  content: "";
  position: absolute;
  bottom: -35%;
  left: -12%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.15), transparent 65%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out 1s infinite alternate;
}
@keyframes pulse-glow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.12); }
}
.hero-title {
  max-width: 14ch;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(135deg, var(--mark), var(--lane));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lede { max-width: 38ch; margin-bottom: 28px; }
.hero-actions, .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--steel);
}
.trust-item svg { color: var(--ok); flex-shrink: 0; }

.mock-device {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 80px rgba(110, 231, 255, 0.08);
}
.mock-head {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.mock-dot:first-child { background: var(--flare); }
.mock-dot:nth-child(2) { background: var(--warn); }
.mock-dot:nth-child(3) { background: var(--ok); }
.mock-body {
  padding: 28px 24px 32px;
}
.mock-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 6px;
}
.mock-number {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.mock-divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 16px;
}
.mock-otp {
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lane);
  margin: 0 0 16px;
  text-shadow: 0 0 28px rgba(110, 231, 255, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mock-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ok);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
}
.stat-pill {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.stat-pill strong {
  display: block;
  font-size: 1.3rem;
  color: var(--mark);
  margin-bottom: 4px;
}
.stat-pill span {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: clamp(28px, 5vw, 40px);
  }
  .hero-visual { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
}

.steps { margin: 40px 0 0; padding: 36px 0 0; border-top: 1px solid var(--line); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mark);
}
.step-n { font-size: 0.78rem; font-weight: 600; color: var(--mark); letter-spacing: 0.06em; padding-top: 4px; }
.step-list strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.step-t { color: var(--steel); font-size: 0.92rem; line-height: 1.5; }

.section { padding: 44px 0 0; }

.brief { padding: 48px 0 4px; }
.brief-head { margin-bottom: 16px; }
.brief-head h2 { margin: 0; }
.brief-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(214, 255, 60, 0.04), transparent 28%), var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.brief-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  margin: 0;
}
.brief-item:first-child { border-top: 0; }
.brief-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--mark);
  background: rgba(214, 255, 60, 0.08);
  border: 1px solid rgba(214, 255, 60, 0.18);
  flex-shrink: 0;
}
.brief-item-us .brief-mark { padding: 0; overflow: hidden; }
.brief-item-us .us-flag { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.brief-item h3 {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.brief-item p {
  margin: 0;
  color: var(--steel);
  font-size: 0.94rem;
  line-height: 1.5;
  max-width: 36ch;
}
.brief-mono {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--mark);
  letter-spacing: -0.04em;
}
@media (min-width: 760px) {
  .brief-shell {
    grid-template-columns: repeat(3, 1fr);
  }
  .brief-item {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 26px 22px;
    min-height: 100%;
  }
  .brief-item:first-child { border-left: 0; }
}

.price-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card, .panel, .auth-card, .number-card, .otp-card, .buy-panel, .empty-panel, .wallet-hero {
  border-radius: var(--radius);
  padding: 22px;
}

.btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, var(--mark) 0%, #a8e020 100%);
  color: #0a0e14;
  box-shadow: var(--glow-lime);
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 0 40px var(--mark-glow); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: rgba(214, 255, 60, 0.35); background: rgba(214, 255, 60, 0.06); }
.btn.danger { background: rgba(255, 107, 107, 0.08); color: var(--flare); border: 1px solid rgba(255, 107, 107, 0.35); }
.btn.wide { width: 100%; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 1.02rem; }

input, button, a, summary { outline: none; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}

.field { display: grid; gap: 6px; }
.field > span, label { color: var(--steel); font-size: 0.92rem; }
.panel label { display: grid; gap: 6px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input:not([type]) {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
}
input:focus {
  border-color: rgba(214, 255, 60, 0.45);
  box-shadow: 0 0 0 3px var(--mark-dim);
}

.form, .panel form { display: grid; gap: 14px; }
.form.slim { max-width: 400px; }
.auth { min-height: 65vh; display: grid; place-items: center; padding: 16px 0 40px; }
.auth-card {
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.auth-card a { text-decoration: underline; text-underline-offset: 3px; color: var(--lane); }
.auth-forgot { margin: -6px 0 4px; text-align: right; font-size: 0.88rem; }
.auth-forgot a { text-decoration: underline; text-underline-offset: 3px; }

body.admin main { max-width: 1100px; }
.admin .panel { padding: 18px 16px; border-radius: var(--radius); }
.admin .panel h2 { font-size: 1.1rem; }
.admin .actions { white-space: nowrap; }
.admin .actions form { display: inline; }
.admin .actions .btn { margin: 0 0 4px; }

.dash-head {
  display: grid;
  grid-template-columns: 1fr min(280px, 36%);
  gap: 20px;
  margin-bottom: 36px;
  align-items: stretch;
}
.wallet-hero {
  text-align: right;
  background: linear-gradient(145deg, rgba(214, 255, 60, 0.08), rgba(110, 231, 255, 0.06));
  border: 1px solid rgba(214, 255, 60, 0.2);
  box-shadow: var(--shadow), var(--glow-lime);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}
.wallet-hero .muted {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.wallet-amt {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 8px 0 16px;
  color: var(--mark);
  text-shadow: 0 0 24px var(--mark-glow);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }

.buy-zone { margin-bottom: 40px; }
.zone-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.stock-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--steel);
}
.stock-pill.ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.stock-pill.warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.35); }

fieldset { border: 0; padding: 0; margin: 0; }
.buy-panel { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.number-card, .otp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.empty-panel {
  text-align: center;
  padding: 40px 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.empty-panel p { color: var(--steel); margin: 0; max-width: 34ch; }
.empty-panel .btn { margin-top: 10px; }
.empty-ico { color: var(--lane); margin-bottom: 6px; }
.buy-foot { margin-top: 18px; }
.buy-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.buy-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.buy-item:has(input:checked) {
  border-color: rgba(214, 255, 60, 0.5);
  background: var(--mark-dim);
  box-shadow: var(--glow-lime);
}
.price-card.buy-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.app-logo img {
  width: 22px;
  height: 22px;
  display: block;
}
.app-letter {
  display: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lane);
}
.app-logo.is-letter {
  background: linear-gradient(135deg, var(--elevated), var(--surface));
  border: 1px solid var(--line-strong);
}
.app-logo.is-letter img { display: none; }
.app-logo.is-letter .app-letter { display: block; }
.service-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.service-search {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.service-search svg { flex-shrink: 0; }
.service-search:focus-within {
  border-color: rgba(110, 231, 255, 0.45);
  color: var(--lane);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.12);
}
.service-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.service-search input[type="search"]::-webkit-search-cancel-button,
.service-search input[type="search"]::-webkit-search-decoration,
.service-search input[type="search"]::-webkit-search-results-button,
.service-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.service-search input::placeholder { color: var(--muted); }
.search-clear {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-clear:hover { background: rgba(255, 255, 255, 0.14); }
.service-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.service-count {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.service-hint {
  margin: -4px 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.service-empty {
  margin: 0 0 12px;
  color: var(--steel);
}
@media (max-width: 639px) {
  .service-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .service-actions { width: 100%; justify-content: space-between; }
  #show-all { min-height: 40px; padding: 0 14px; }
}
.buy-meta { flex: 1; min-width: 0; }
.buy-meta strong { display: block; font-size: 0.98rem; }
.buy-sub { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.price { font-size: 1.1rem; margin: 0; font-weight: 600; color: var(--mark); white-space: nowrap; }

.buy-dock {
  display: none;
}

.session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 20px; }
.msisdn { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 8px 0 14px; }
.otp {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--lane);
  margin: 8px 0 14px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px rgba(110, 231, 255, 0.35);
}
.otp.is-wait { color: var(--steel); letter-spacing: 0; font-size: 1rem; font-family: var(--sans); text-shadow: none; }
.otp-card.is-live { border-color: rgba(110, 231, 255, 0.35); box-shadow: var(--shadow), var(--glow-cyan); }

.meter {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 20px;
}
.meter > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--mark), var(--lane));
  transform-origin: left center;
  transition: transform 0.4s linear;
  box-shadow: 0 0 12px var(--mark-glow);
}

.notice {
  border: 1px solid var(--line-strong);
  color: var(--steel);
  background: rgba(110, 231, 255, 0.06);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 0 0 18px;
  max-width: 62ch;
}

.verify-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(214, 255, 60, 0.28);
  border-radius: var(--radius);
  background: rgba(214, 255, 60, 0.08);
}
.verify-banner p { margin: 6px 0 0; color: var(--steel); font-size: 0.92rem; }

.chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 600;
}
.chip.available, .chip.received, .chip.approved, .chip.ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.1); }
.chip.rented, .chip.waiting, .chip.pending, .chip.confirming { color: var(--lane); border-color: rgba(110, 231, 255, 0.35); background: rgba(110, 231, 255, 0.08); }
.chip.expired, .chip.cancelled, .chip.refunded { color: var(--muted); }
.dash-head:not(:has(.wallet-hero)) { grid-template-columns: 1fr; }
.order-stats { margin-bottom: 18px; grid-template-columns: repeat(3, 1fr); }
.order-filters {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}
.order-filters .btn.ghost {
  flex: 1 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 0.85rem;
  white-space: nowrap;
}
.order-filters .btn.ghost.is-on,
#show-all[aria-pressed="true"] {
  color: var(--bg);
  background: var(--mark);
  border-color: transparent;
}
.order-list { display: grid; gap: 10px; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.order-card:hover { border-color: var(--line-strong); }
.order-card.is-waiting { border-color: rgba(110, 231, 255, 0.28); }
.order-card.is-received { border-color: rgba(74, 222, 128, 0.28); }
.order-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: inherit;
  min-height: 48px;
}
.order-main { min-width: 0; }
.order-main strong { display: block; }
.order-main .mono { display: block; margin-top: 2px; color: var(--steel); font-size: 0.88rem; }
.order-when { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.order-live {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.18);
}
.order-card.is-received .order-live {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
}
.order-otp {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--lane);
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.order-card.is-received .order-otp { color: var(--ok); }
.order-wait { color: var(--lane); font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.order-actions .btn { flex: 1 1 140px; }
#show-all { flex-shrink: 0; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(0, 0, 0, 0.2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(214, 255, 60, 0.04); }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 22px; }
.stat-row div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.stat-row dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-row dd { margin: 8px 0 0; font-family: var(--mono); font-size: 1.5rem; color: var(--mark); }

.panel { background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }

.docs pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  margin: 0;
  color: var(--lane);
}

.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button[aria-pressed="true"] {
  border-color: rgba(214, 255, 60, 0.5);
  color: var(--bg);
  background: linear-gradient(135deg, var(--mark), #a8e020);
}

.toasts {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px 0;
  display: grid;
  gap: 8px;
  position: sticky;
  top: var(--head);
  z-index: 40;
}
.toast {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.toast.error { border-color: rgba(255, 107, 107, 0.45); color: var(--flare); }
.toast.ok { border-color: rgba(74, 222, 128, 0.45); color: var(--ok); }

.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 24px 20px 32px;
  color: var(--muted);
  background: rgba(7, 10, 15, 0.9);
}
.foot-simple {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot .copy { margin: 0; font-size: 0.88rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.secret-row {
  position: relative;
}
.secret-row input[type="password"],
.secret-row input[type="text"] {
  padding-right: 48px;
}
.secret-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.secret-toggle:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.secret-toggle:focus-visible { outline-offset: 0; }

@media (max-width: 900px) {
  .dash-head, .split, .session-grid, .stats-strip { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .order-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-row div { padding: 12px; }
  .stat-row dd { font-size: 1.2rem; margin-top: 6px; }
  .wallet-hero { text-align: left; align-items: flex-start; }
}

@media (max-width: 860px) {
  .top .nav { flex: 0; margin-right: 0; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .nav-scrim { display: none; }
  body.nav-open .nav-scrim { display: block; }
  .nav-ico { display: block; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 320px);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: var(--bg-2);
    border-left: 1px solid var(--line-strong);
    padding: 84px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate3d(100%, 0, 0);
    transition: transform 0.2s ease, visibility 0.2s ease;
    z-index: 48;
    overflow: auto;
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: contain;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }
  body.nav-open .nav { transform: translate3d(0, 0, 0); visibility: visible; pointer-events: auto; }
  .nav a {
    min-height: 52px;
    width: 100%;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    justify-content: flex-start;
    gap: 12px;
  }
  .nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
  .nav a.wallet {
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none;
    color: var(--ink) !important;
    gap: 12px;
  }
  .nav .wallet-label {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-weight: 600;
  }
  .nav .wallet-amt-nav {
    margin-left: auto;
    color: var(--mark);
    font-size: 0.95rem;
  }
  .nav a.nav-cta {
    justify-content: center;
  }
  .nav a.nav-logout {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    margin-top: auto;
    background: rgba(255, 107, 107, 0.08);
  }
}

@media (max-width: 720px) {
  main { padding: 16px 14px 72px; }
  .top { padding: 10px 14px; gap: 10px; }
  .auth { padding: 8px 0 32px; min-height: auto; }
  .auth-card { padding: 24px 18px; width: min(100%, 100%); }
  input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input:not([type]) {
    min-height: 48px;
    font-size: 16px;
  }
  .btn { min-height: 48px; }
  h1 { font-size: 1.7rem; }
  .lede { font-size: 0.95rem; margin-bottom: 16px; }
  .dash-head { margin-bottom: 20px; }
  .buy-panel { padding: 16px 14px 20px; }
  .buy-panel .buy-foot { display: none; }
  .service-hint { display: none; }
  .verify-banner { flex-direction: column; align-items: stretch; }
  .verify-banner .btn { width: 100%; }
  .zone-head { align-items: flex-start; }
  .stock-pill { align-self: flex-start; }
  .order-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .order-filters::-webkit-scrollbar { display: none; }
  .order-filters .btn { flex-shrink: 0; min-height: 44px; }
  .order-actions { flex-direction: column; align-items: stretch; }
  .order-actions .btn { width: 100%; justify-content: center; }
  .presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .presets .btn { width: 100%; min-height: 44px; padding: 0 8px; }
  .buy-dock {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 16px 16px 0 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 17, 24, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
    gap: 8px;
  }
  #dock-choice {
    font-size: 0.84rem;
    color: var(--steel);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .buy-dock-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
  }
  body.dashboard main { padding-bottom: 140px; }
  .order-filters .btn.ghost { padding: 0 8px; font-size: 0.8rem; }
  .order-open .chip { justify-self: end; }
}

@media (max-width: 600px) {
  .foot-simple { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .order-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-stats dd { font-size: 1.1rem; }
  .split { gap: 12px; }
  .admin .stat-row { grid-template-columns: 1fr 1fr; }
  .admin .inline {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .admin .inline input { width: 100%; }
  .admin .inline .btn { width: 100%; min-height: 48px; }
  .admin .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    white-space: normal;
  }
  .admin .actions form { display: block; width: 100%; }
  .admin .actions .btn { width: 100%; min-height: 44px; }
  .admin table thead { display: none; }
  .admin table,
  .admin table tbody,
  .admin table tr,
  .admin table td { display: block; width: 100%; }
  .admin table tr {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }
  .admin table tr:last-child { border-bottom: 0; }
  .admin table td {
    padding: 6px 0;
    border: 0;
    text-align: left;
  }
  .admin table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .admin table td.actions::before { content: none; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .topup .table-wrap table { min-width: 520px; }
  .pager { flex-direction: column; align-items: stretch; }
  .pager-links { width: 100%; }
  .pager-links .btn { flex: 1; text-align: center; justify-content: center; }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pager-meta { margin: 0; color: var(--steel); font-size: 0.85rem; }
.pager-links { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
