:root {
  color-scheme: dark;
  --bg: #081426;
  --bg-2: #0a1c34;
  --text: #eaf2ff;
  --muted: #92a8ca;
  --line: rgba(120, 170, 255, .14);
  --line-strong: rgba(120, 170, 255, .28);
  --brand: #3d8bff;
  --brand-2: #59c8ff;
  /* Deeper blue pair for solid CTA buttons: white text on the lighter
     --brand/--brand-2 gradient measured 1.9:1-3.3:1 contrast (fails WCAG AA
     4.5:1). This pair holds 5.2:1-6.7:1 across the whole gradient. */
  --brand-btn-1: #2563eb;
  --brand-btn-2: #1d4ed8;
  --brand-ink: #04121f;
  --ok: #38d39f;
  --warn: #ffb454;
  --danger: #ff6f80;
  --card: linear-gradient(180deg, rgba(122, 173, 255, .10), rgba(122, 173, 255, .028));
  --radius: 22px;
  --shadow: 0 20px 55px rgba(3, 12, 28, .55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overscroll-behavior: none;
}
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: none;
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 12% -8%, rgba(61, 139, 255, .30), transparent 42%),
    radial-gradient(90% 70% at 92% 4%, rgba(89, 200, 255, .22), transparent 40%),
    radial-gradient(120% 90% at 50% 110%, rgba(61, 139, 255, .16), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

button, input, select { font: inherit; color: inherit; }
button {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.bottom-nav, .drawer-panel, .topbar, .status-hero { -webkit-user-select: none; user-select: none; }
button { cursor: pointer; }
a { color: var(--brand-2); }
h1, h2, h3 { margin: 0; }
small { line-height: 1.35; }

/* ---------- layout ---------- */
.shell { width: min(680px, 100%); margin: 0 auto; padding: calc(22px + env(safe-area-inset-top, 0px)) 15px 108px; }

/* ---------- launch splash ---------- */
.app-splash {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-content: center; justify-items: center; gap: 20px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(89, 200, 255, .18), transparent 55%), #081426;
  transition: opacity .5s ease, visibility .5s ease;
}
.app-splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.splash-logo img { width: 78px; height: 78px; border-radius: 24px; box-shadow: 0 12px 44px rgba(61, 139, 255, .55); animation: splash-bob 2s ease-in-out infinite; }
.splash-ring { position: absolute; width: 78px; height: 78px; border-radius: 26px; border: 2px solid rgba(120, 190, 255, .5); animation: splash-pulse 1.7s ease-out infinite; }
.splash-ring-2 { animation-delay: .85s; }
.splash-title { font-weight: 800; font-size: 20px; letter-spacing: .18em; color: #eaf4ff; }
.splash-bar { width: 150px; height: 4px; border-radius: 999px; background: rgba(120, 170, 255, .2); overflow: hidden; }
.splash-bar > span { display: block; height: 100%; width: 42%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-btn-1, #3d8bff), var(--brand-btn-2, #59c8ff)); animation: splash-slide 1.15s ease-in-out infinite; }
@keyframes splash-pulse { 0% { transform: scale(.72); opacity: .85; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes splash-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes splash-slide { 0% { transform: translateX(-130%); } 100% { transform: translateX(320%); } }

.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-top: 4px; }
.topbar > div { flex: 1; min-width: 0; }
.topbar h1 { font-size: 20px; font-weight: 800; }
.eyebrow {
  display: block;
  color: var(--brand-2);
  font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}

.icon-button {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(122, 173, 255, .07);
  font-size: 19px; line-height: 1;
  transition: background .15s, border-color .15s, transform .1s;
}
.icon-button:active { transform: scale(.94); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.section-head h3 { font-size: 17px; font-weight: 800; }
.section-head button {
  border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px;
  background: rgba(122, 173, 255, .08);
  font-size: 13px; font-weight: 700; color: var(--brand-2);
}
.count {
  min-width: 24px; padding: 3px 9px;
  border-radius: 999px; text-align: center;
  background: rgba(61, 139, 255, .16); color: var(--brand-2);
  font-size: 12px; font-weight: 800;
}

/* ---------- status hero ---------- */
.status-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 20px; border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(89, 200, 255, .22), transparent 55%),
    var(--card);
  box-shadow: var(--shadow);
}
.status-hero h2 { margin: 10px 0 6px; font-size: 25px; font-weight: 800; line-height: 1.15; }
.status-hero p { margin: 0; color: var(--muted); font-size: 13.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(61, 139, 255, .16);
  color: var(--brand-2); font-size: 12px; font-weight: 800;
}
.pill.warn { background: rgba(255, 180, 84, .16); color: var(--warn); }

.status-line { display: inline-flex; align-items: center; gap: 8px; }
/* Semantic "protected now" indicator, separate from the blue brand accent —
   green reads as "connected" across VPN apps regardless of overall theme. */
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #4a5b73; flex: 0 0 auto;
}
.status-dot.on {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(56, 211, 159, .55);
  animation: status-pulse 2s ease-out infinite;
}

.connect-button {
  align-self: center;
  min-width: 132px; border: 0; border-radius: 18px;
  padding: 15px 18px; color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
  box-shadow: 0 12px 30px rgba(61, 139, 255, .45);
  transition: transform .1s, box-shadow .15s;
}
.connect-button:active { transform: translateY(1px) scale(.98); box-shadow: 0 6px 16px rgba(61, 139, 255, .4); }

/* ---------- quick grid ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.quick-grid article {
  min-height: 112px; padding: 15px 14px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.quick-grid span { color: var(--muted); font-size: 12px; font-weight: 700; }
.quick-grid strong { display: block; margin: 10px 0 4px; font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.quick-grid small { color: var(--muted); font-size: 11.5px; }

/* ---------- views ---------- */
.view { display: none; margin-top: 16px; }
.view.active { display: grid; gap: 14px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 211, 159, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(56, 211, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 211, 159, 0); }
}

.hint { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- subscription switcher ---------- */
.sub-switch {
  display: flex; gap: 8px; margin-bottom: 2px;
  overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.sub-switch::-webkit-scrollbar { display: none; }
.sub-tab {
  flex: 0 0 auto; display: grid; gap: 2px; text-align: left;
  padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(122, 173, 255, .06);
  transition: background .15s, border-color .15s, transform .1s;
}
.sub-tab:active { transform: scale(.97); }
.sub-tab strong { font-size: 13.5px; font-weight: 800; color: var(--text); }
.sub-tab span { font-size: 11.5px; color: var(--muted); }
.sub-tab.active {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
  box-shadow: 0 8px 20px rgba(61, 139, 255, .35);
}
.sub-tab.active strong, .sub-tab.active span { color: #fff; }

/* ---------- subscription card ---------- */
.sub-card {
  display: grid; gap: 14px; padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.sub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sub-head strong { display: block; font-size: 17px; font-weight: 800; }
.sub-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }

.connect-mini {
  border: 0; border-radius: 14px; padding: 14px;
  color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
  box-shadow: 0 10px 26px rgba(61, 139, 255, .4);
}
.connect-mini:active { transform: translateY(1px); }

.renew-row, .email-row {
  display: grid; gap: 4px;
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(8, 20, 38, .5);
}
.renew-row { grid-template-columns: 1fr auto; align-items: center; gap: 12px; cursor: pointer; }
.renew-row .renew-info { display: grid; gap: 2px; }
.renew-row strong { display: block; font-size: 14px; }
.renew-row small { display: block; color: var(--muted); font-size: 12px; }
/* iOS-style auto-renew switch */
.switch { position: relative; flex: 0 0 auto; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: rgba(120, 150, 190, .35); transition: background .2s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.switch input:checked ~ .switch-track { background: linear-gradient(135deg, var(--ok, #35c07a), #2fa96a); }
.switch input:checked ~ .switch-track .switch-thumb { transform: translateX(22px); }
.switch input:disabled ~ .switch-track { opacity: .5; cursor: default; }
.unbind-card { justify-self: start; margin-top: -2px; background: none; border: 0; padding: 4px 2px; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.unbind-card:hover { color: var(--danger, #ff6f80); }
.email-row span { color: var(--muted); font-size: 12.5px; font-weight: 700; }

.panel-block {
  display: grid; gap: 10px;
  padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(8, 20, 38, .5);
}
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.block-head span:first-child { color: var(--muted); font-weight: 700; }
.block-head span:last-child { font-weight: 800; }

.bs-bar { height: 9px; border-radius: 999px; background: rgba(120, 170, 255, .14); overflow: hidden; }
.bs-bar > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .4s ease;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row button {
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 9px 12px; font-size: 13px; font-weight: 700;
  background: rgba(61, 139, 255, .1); color: var(--brand-2);
  transition: background .15s, transform .1s;
}
.chip-row button:active { transform: scale(.96); }
.chip-row button:disabled { opacity: .4; }

/* device rows / generic list */
.list { display: grid; gap: 10px; }
.device-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(122, 173, 255, .05);
}
.device-row strong { display: block; font-size: 14px; }
.device-row span { color: var(--muted); font-size: 12.5px; }
.device-row button[data-delete-device] {
  border: 1px solid rgba(255, 111, 128, .4); border-radius: 12px;
  padding: 9px 12px; font-size: 13px; font-weight: 700;
  color: var(--danger); background: rgba(255, 111, 128, .08);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(56, 211, 159, .18); }
.dot.off { background: #4a5b73; }

/* ---------- plans ---------- */
.plan-list { display: grid; gap: 12px; }
.plan-card {
  display: grid; gap: 6px; padding: 16px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.plan-card strong { font-size: 17px; font-weight: 800; }
.plan-card span { color: var(--muted); font-size: 13px; }
.plan-card b { font-size: 22px; font-weight: 800; margin: 4px 0 8px; }
.plan-card .chip-row button {
  flex: 1; padding: 13px; font-size: 14px; color: #fff;
  border: 0; background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
  box-shadow: 0 8px 22px rgba(61, 139, 255, .35);
}
.plan-card .chip-row button[data-stars] {
  background: rgba(122, 173, 255, .12); color: var(--brand-2);
  border: 1px solid var(--line-strong); box-shadow: none;
}

.balance-card {
  display: grid; gap: 4px; padding: 18px; border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(120% 120% at 100% 0%, rgba(89, 200, 255, .2), transparent 55%), var(--card);
  box-shadow: var(--shadow);
}
.balance-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.balance-card strong { font-size: 30px; font-weight: 800; }
.balance-card small { color: var(--muted); font-size: 12px; }

.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-logo {
  padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 800;
  color: var(--muted); border: 1px solid var(--line); background: rgba(122, 173, 255, .05);
}
.pay-logo.mir { color: #58d68d; }
.pay-logo.sbp { color: #ff7a9c; }

/* ---------- notice / cta ---------- */
.notice {
  display: grid; gap: 8px; padding: 18px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.notice strong { font-size: 16px; }
.notice p { margin: 0; color: var(--muted); font-size: 13.5px; }
.cta {
  justify-self: start; margin-top: 4px;
  border: 0; border-radius: 14px; padding: 12px 18px;
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
  box-shadow: 0 10px 26px rgba(61, 139, 255, .4);
}
.cta:active { transform: translateY(1px) scale(.98); }

/* ---------- guide steps ---------- */
.section-head select {
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  background: rgba(8, 20, 38, .6); color: var(--text); font-size: 13px; font-weight: 700;
}
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li {
  position: relative; padding: 14px 14px 14px 52px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 14px; line-height: 1.4;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 13px; top: 12px;
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 10px; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
}

/* ---------- forms / cards ---------- */
.form-card {
  display: grid; gap: 12px; padding: 16px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
label { display: grid; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
input, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px;
  background: rgba(8, 20, 38, .6); color: var(--text); font-size: 14px;
}
input:focus, select:focus { outline: none; border-color: var(--brand); }
.form-card code {
  display: block; padding: 12px 13px; border-radius: 12px; word-break: break-all;
  background: rgba(8, 20, 38, .7); border: 1px solid var(--line);
  color: var(--brand-2); font-size: 12.5px; font-family: ui-monospace, monospace;
}
.form-card button, .support-card a {
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 13px;
  text-align: center; text-decoration: none; font-weight: 800; font-size: 14px;
  color: var(--brand-2); background: rgba(61, 139, 255, .1);
}
#copy-referral { color: #fff; border: 0; background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2)); box-shadow: 0 8px 22px rgba(61, 139, 255, .35); }
.support-card { gap: 10px; }
.support-card a { display: block; }

.footer-note {
  margin: 6px 2px 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; text-align: center;
}
.footer-note a { color: var(--muted); }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  width: min(660px, calc(100% - 16px)); padding: 6px; transform: translateX(-50%);
  border: 1px solid var(--line-strong); border-radius: 20px;
  background: rgba(8, 20, 38, .86); backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(3, 12, 28, .6);
}
.bottom-nav button {
  border: 0; border-radius: 13px; padding: 10px 2px;
  color: var(--muted); background: transparent; font-size: 10.5px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s, background .15s;
}
.bottom-nav button.active {
  color: #fff; background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
  box-shadow: 0 8px 20px rgba(61, 139, 255, .4);
}

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 45; display: none; background: rgba(3, 10, 22, .6); backdrop-filter: blur(2px); }
.drawer.open { display: block; }
.drawer-panel {
  width: min(340px, 86vw); height: 100%; margin-left: auto; padding: 18px;
  display: grid; gap: 8px; align-content: start;
  background: linear-gradient(180deg, #0c1d36, #081426); border-left: 1px solid var(--line-strong);
}
.drawer-panel h2 { margin: 6px 0 10px; font-size: 20px; }
.drawer-panel button, .drawer-panel a {
  display: block; width: 100%; text-align: left; text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px;
  color: var(--text); background: rgba(122, 173, 255, .06); font-weight: 700; font-size: 15px;
}
#drawer-close { width: 44px; text-align: center; padding: 8px; justify-self: end; }

/* ---------- onboarding ---------- */
.onboarding { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 20px; background: rgba(4, 12, 26, .82); backdrop-filter: blur(6px); }
.onboarding.open { display: grid; }
.onboarding-card {
  width: min(420px, 100%); padding: 26px 24px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 28px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(89, 200, 255, .18), transparent 55%), linear-gradient(180deg, #0d2038, #0a1729);
  box-shadow: var(--shadow);
}
.onboarding-card .pill { margin-bottom: 6px; }
.onboarding-card h1 { margin: 14px 0 10px; font-size: 27px; font-weight: 800; }
.onboarding-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; min-height: 3em; }
.onboarding-card button {
  width: 100%; margin-top: 6px; border: 0; border-radius: 16px; padding: 15px;
  color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2)); box-shadow: 0 12px 30px rgba(61, 139, 255, .45);
}
.onboarding-dots { display: flex; justify-content: center; gap: 7px; margin: 20px 0; }
.onboarding-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(120, 170, 255, .25); transition: width .2s; }
.onboarding-dots span.active { width: 24px; background: var(--brand-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 70;
  max-width: min(560px, calc(100% - 28px)); padding: 13px 16px; transform: translateX(-50%);
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: rgba(12, 29, 54, .96); color: var(--text); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow);
}
.hidden { display: none !important; }

/* ---------- toggle switch (notification settings) ---------- */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; z-index: 1;
}
.switch-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(120, 170, 255, .18); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.switch-track::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #cfe0ff; transition: transform .2s;
}
.switch input:checked + .switch-track {
  background: linear-gradient(135deg, var(--brand-btn-1), var(--brand-btn-2));
  border-color: transparent;
}
.switch input:checked + .switch-track::before { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ---------- notification settings ---------- */
.notif-row {
  display: grid; gap: 12px; padding: 16px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.notif-row-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.notif-row-head strong { display: block; font-size: 15px; font-weight: 800; }
.notif-row-head span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.notif-field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: 13px; font-weight: 700;
}
.notif-field select, .notif-field input {
  width: auto; min-width: 84px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  background: rgba(8, 20, 38, .6); color: var(--text); font-size: 13px;
}

/* ---------- wheel of fortune ---------- */
.wheel-wrap {
  position: relative; display: grid; place-items: center; gap: 18px;
  padding: 24px 20px; border-radius: 26px;
  border: 1px solid var(--line-strong); background: var(--card); box-shadow: var(--shadow);
}
.wheel-dial {
  width: 220px; height: 220px; border-radius: 50%;
  border: 6px solid rgba(8, 20, 38, .6);
  box-shadow: 0 0 0 3px rgba(120, 170, 255, .25), 0 20px 50px rgba(3, 12, 28, .6);
}
.wheel-pointer {
  width: 0; height: 0; margin-bottom: -6px;
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 18px solid var(--brand-2); z-index: 2;
}
#wheel-spin:disabled { opacity: .5; box-shadow: none; }
.wheel-bet-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.wheel-bet-value { display: grid; place-items: center; min-width: 84px; }
.wheel-bet-value strong { font-size: 30px; font-weight: 800; line-height: 1; }
.wheel-bet-value span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
#wheel-available { color: var(--muted); font-size: 12.5px; }
.prize-row {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--brand));
  background: rgba(122, 173, 255, .05);
}
.prize-icon { font-size: 20px; font-weight: 800; min-width: 34px; text-align: center; }
.prize-row strong { display: block; font-size: 14px; }
.prize-row span { color: var(--muted); font-size: 12px; }
.prize-row.prize-lose .prize-icon { color: var(--danger); }
.prize-row.prize-win .prize-icon { color: var(--ok); }

@media (max-width: 520px) {
  .status-hero { grid-template-columns: 1fr; }
  .status-hero .connect-button { width: 100%; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-grid article { min-height: 100px; padding: 12px 11px; }
  .quick-grid strong { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
