:root {
  --bg: #0b0e12;
  --surface: #13171f;
  --surface-2: #191f2a;
  --surface-hover: #1f2633;
  --border: #26303f;
  --border-strong: #334155;
  --text: #f3f5f8;
  --muted: #93a1b5;
  --gold: #ffd22f;
  --gold-dark: #c99700;
  --emerald: #22c55e;
  --emerald-dark: #15803d;
  --sky: #38bdf8;
  --sky-dark: #0369a1;
  --primary: #2f81f7;
  --primary-dark: #1d4ed8;
  --amber: #f97316;
  --danger: #ef4444;
  --danger-dark: #991b1b;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.center {
  text-align: center;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.gold {
  color: var(--gold);
}

.mt-lg {
  margin-top: 28px;
}

/* Tactile Voxel Card */
.voxel-card {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 #07090c, inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card-pad {
  padding: 20px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-title {
  font-size: 1.35rem;
}

.card-subtitle {
  font-size: 1.08rem;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

/* Buttons with tactile bevel */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background-color 0.15s ease;
  color: #fff;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(2px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-emerald {
  background: var(--emerald);
  border-color: #4ade80;
  color: #052e16;
  box-shadow: 0 3px 0 var(--emerald-dark);
}

.btn-emerald:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-sky {
  background: var(--primary);
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 3px 0 var(--primary-dark);
}

.btn-sky:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-danger {
  background: var(--danger);
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 3px 0 var(--danger-dark);
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: 0 3px 0 #0b0e12;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
}

.btn-group-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* Inputs */
.voxel-input {
  width: 100%;
  background: #0b0e12;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 13px;
  font-size: 0.94rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
}

.voxel-input:focus {
  border-color: var(--gold);
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Tags & Pills */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tag-gold {
  background: rgba(255, 210, 47, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 210, 47, 0.35);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-pill.online {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.status-pill.online::before {
  background: #4ade80;
}

.status-pill.offline {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.status-pill.offline::before {
  background: #f87171;
}

/* Auth View */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 470px;
  overflow: hidden;
}

.auth-banner {
  position: relative;
  height: 156px;
  background: linear-gradient(135deg, #1b2230 0%, #10151d 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.auth-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 18, 0.15) 0%, rgba(19, 23, 31, 0.92) 100%);
}

.auth-brand-badge {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: rgba(11, 14, 18, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.verity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.auth-body {
  padding: 22px;
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-head h1 {
  font-size: 1.35rem;
}

.mascot-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.mascot-mini {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.inline-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.86rem;
}

.waiting-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.waiting-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-footnote {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-footnote code {
  color: var(--gold);
  font-family: var(--font-mono);
}

/* Header & Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 14, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}

.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  background: var(--surface-2);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-pill,
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.balance-pill:hover,
.user-pill:hover {
  background: var(--surface-2);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

/* Main Content */
.main-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 18px 90px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.trial-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-color: rgba(255, 210, 47, 0.35);
  background: linear-gradient(90deg, rgba(255, 210, 47, 0.08), var(--surface) 55%);
}

.trial-strip-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trial-strip h2 {
  font-size: 1.1rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.col-main,
.col-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #0d1016;
  border: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.74rem;
  color: var(--muted);
}

.meta-val {
  font-size: 0.88rem;
  font-weight: 600;
}

/* Voxel Progress Bars */
.meters-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.meter-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.dot-sky { background: var(--sky); }
.dot-amber { background: var(--amber); }

.voxel-bar {
  height: 12px;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  padding: 2px;
}

.voxel-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.35s ease;
}

.fill-sky {
  background: repeating-linear-gradient(
    90deg,
    var(--sky) 0 12px,
    rgba(255, 255, 255, 0.25) 12px 13px
  );
}

.fill-amber {
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 12px,
    rgba(255, 255, 255, 0.25) 12px 13px
  );
}

/* Keys List */
.keys-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: #0d1016;
  border: 1px solid var(--border);
}

.key-info {
  min-width: 0;
  flex: 1;
}

.key-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}

.key-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* QR Card */
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.qr-frame {
  width: 196px;
  height: 196px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-strong);
}

.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-empty {
  color: #475569;
  padding: 14px;
}

.stat-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.stat-mini {
  background: #0d1016;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.copy-field {
  display: flex;
  gap: 8px;
}

/* Tariffs & BS */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.device-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-group {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.pill-btn.active {
  background: var(--gold);
  color: #111;
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tariff-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  gap: 16px;
}

.tariff-card.featured {
  border-color: rgba(34, 197, 94, 0.55);
}

.tariff-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 6px 0;
  white-space: nowrap;
}

.tariff-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.tariff-specs strong {
  color: var(--text);
}

.bs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Topup Layout */
.topup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.pay-amount-box {
  background: #0d1016;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 210, 47, 0.1);
}

.rate-preview {
  white-space: nowrap;
}

.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.pay-btn:active {
  transform: translateY(2px);
}

.pay-btn.span-3 {
  grid-column: span 3;
}

.pay-btn.style-success {
  background: #2f7d44;
  border-color: #46a35e;
  box-shadow: 0 3px 0 #1b4d29;
}

.pay-btn.style-primary {
  background: #2a5f7a;
  border-color: #3c82a5;
  box-shadow: 0 3px 0 #173747;
}

.pay-btn.style-default {
  background: #1b222c;
  border-color: var(--border-strong);
  box-shadow: 0 3px 0 #0e1218;
}

.pay-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.invoice-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 12px;
  gap: 10px;
}

.small-mascot {
  width: 58px;
  height: 58px;
}

.invoice-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.inv-row {
  background: #0d1016;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Devices, Tx & Guide */
.devices-list,
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.device-row,
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: #0d1016;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.promo-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-step {
  background: #0d1016;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 210, 47, 0.14);
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* Toast */
.toast-root {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 0.86rem;
  font-weight: 500;
}

.toast.ok { border-left: 3px solid var(--emerald); }
.toast.err { border-left: 3px solid var(--danger); }

.btn-lg {
  padding: 13px 20px;
  font-size: 0.98rem;
}

.tag-emerald {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.38);
}

/* Onboarding Wizard */
.onb-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.onb-wrap {
  width: 100%;
  max-width: 720px;
}

.onb-welcome-card {
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
}

.onb-welcome-body {
  padding: 22px;
}

.onb-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.onb-trial-box {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(255, 210, 47, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onb-trial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.onb-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.onb-plan-item {
  background: #0d1016;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.onb-devices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.onb-summary-box {
  background: #0d1016;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.onb-connected-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.onb-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 720px) {
  .onb-plans-grid,
  .onb-devices-grid,
  .onb-connected-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Bottom Nav */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(11, 14, 18, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.m-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
}

.m-tab.active {
  color: var(--gold);
  background: var(--surface);
}

@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; }
  .topbar-inner { padding: 10px 12px; gap: 8px; }
  .brand-sub { display: none; }
  .user-pill { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .main-wrap { padding: 14px 12px 86px; }
  .card-pad { padding: 16px; }
  .card-header-row { flex-wrap: wrap; }
  .overview-grid,
  .topup-layout,
  .tariffs-grid,
  .bs-grid,
  .guide-steps {
    grid-template-columns: 1fr;
  }
  .meta-strip {
    grid-template-columns: 1fr;
  }
  .trial-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .key-item {
    flex-direction: column;
    align-items: stretch;
  }
  .pay-methods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pay-btn.span-3 {
    grid-column: span 2;
  }
}
