﻿:root{
  --bg-0:#05070c;
  --bg-1:#07101f;
  --bg-2:#0f1c30;
  --surface-1:rgba(28,45,70,.58);
  --surface-2:rgba(11,22,38,.50);
  --surface-soft:rgba(23,38,61,.40);
  --glass-top:rgba(255,255,255,.115);
  --glass-mid:rgba(255,255,255,.052);
  --glass-bottom:rgba(13,24,41,.42);
  --glass-border:rgba(226,241,255,.16);
  --glass-border-soft:rgba(255,255,255,.10);
  --border:rgba(226,241,255,.14);
  --border-strong:rgba(150,207,255,.34);
  --text:#f5f8ff;
  --muted:#9eb2d0;
  --muted-2:#7f95b6;
  --accent:#4aa0ff;
  --accent-2:#2e77ea;
  --accent-soft:rgba(59,140,255,.16);
  --danger:#ff7f8d;
  --danger-soft:rgba(255,107,123,.14);
  --success:#37d67a;
  --shadow:0 22px 60px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.16);
  --radius-xl:28px;
  --radius-lg:24px;
  --radius-md:20px;
  --radius-sm:16px;
  --control-radius:20px;
  --font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Arial,sans-serif;
  --fw-regular:400;
  --fw-medium:500;
  --fw-semibold:600;
  --fw-bold:700;
  --fw-heavy:800;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  min-height:100%;
  background:var(--bg-0);
  color:var(--text);
  font-family:var(--font-ui);
  font-weight:var(--fw-regular);
  overflow-x:hidden;
  overscroll-behavior-x:none;
}



button,input,textarea,select{
  font-family:var(--font-ui);
}


body{
  display:flex;
  justify-content:center;
  background:linear-gradient(180deg,#07101f 0%,#05070c 56%,#030408 100%);
  overflow-x:hidden;
  touch-action:pan-y pinch-zoom;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:auto;
  pointer-events:none;
  z-index:0;
  border-radius:999px;
  filter:blur(78px);
  opacity:.24;
  will-change:transform;
}

body::before{
  width:56vw;
  height:56vw;
  min-width:360px;
  min-height:360px;
  max-width:760px;
  max-height:760px;
  left:6vw;
  top:8vh;
  background:radial-gradient(circle,rgba(76,152,255,.22) 0%,rgba(76,152,255,.07) 44%,transparent 74%);
  animation:slowGlowA 48s ease-in-out infinite alternate;
}

body::after{
  width:48vw;
  height:48vw;
  min-width:320px;
  min-height:320px;
  max-width:680px;
  max-height:680px;
  right:4vw;
  top:34vh;
  background:radial-gradient(circle,rgba(119,216,255,.17) 0%,rgba(72,139,255,.055) 48%,transparent 76%);
  animation:slowGlowB 56s ease-in-out infinite alternate;
}

.page{
  position:relative;
  z-index:1;
  width:100%;
  max-width:min(100vw,460px);
  min-height:100vh;
  padding:clamp(16px,3.5vw,28px) 14px 34px;
  box-sizing:border-box;
  overflow-x:hidden;
}

.page-shell{
  position:relative;
  isolation:isolate;
}

.ambient{
  position:absolute;
  pointer-events:none;
  filter:blur(34px);
  opacity:.18;
  animation:ambientFloatA 38s ease-in-out infinite alternate;
}

.ambient-a{
  top:86px;
  right:-24px;
  width:132px;
  height:132px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(61,149,255,.12) 0%,rgba(61,149,255,0) 70%);
}

.ambient-b{
  top:240px;
  left:-38px;
  width:168px;
  height:168px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(105,214,255,.075) 0%,rgba(105,214,255,0) 72%);
  animation:ambientFloatB 44s ease-in-out infinite alternate;
}

.surface,
.card,
.topbar{
  background:
    linear-gradient(155deg,var(--glass-top),var(--glass-mid) 38%,var(--glass-bottom) 100%),
    radial-gradient(circle at 74% 12%,rgba(142,205,255,.07),transparent 40%);
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow);
  backdrop-filter:blur(24px) saturate(1.28);
  -webkit-backdrop-filter:blur(24px) saturate(1.28);
}

.topbar{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:18px 18px 16px;
  border-radius:var(--radius-lg);
  margin-bottom:16px;
  overflow:hidden;
}

.topbar::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:calc(var(--radius-lg) - 1px);
  background:linear-gradient(120deg,rgba(255,255,255,.085),transparent 36%,rgba(102,178,255,.045) 74%,transparent);
  pointer-events:none;
}

.back-link,
.back-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--accent);
  font-size:20px;
  font-weight:var(--fw-semibold);
  text-decoration:none;
  padding:2px 0;
  cursor:pointer;
}

.balance-chip{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:42px;
  text-align:right;
}

.balance-chip .label{
  color:var(--muted);
  font-size:13px;
  margin-bottom:2px;
}

.balance-chip .value{
  color:#fff0d0;
  font-size:30px;
  font-weight:var(--fw-heavy);
  line-height:1;
  letter-spacing:-.04em;
}

.topbar-tag{
  color:#b9c8dd;
  font-size:14px;
  font-weight:var(--fw-semibold);
  letter-spacing:.04em;
  text-transform:uppercase;
}

.page-head{
  text-align:center;
  margin:12px 0 20px;
}

.page-kicker{
  color:var(--muted);
  font-size:17px;
  margin-bottom:8px;
}

.page-emoji{
  font-size:48px;
  line-height:1;
  margin-bottom:12px;
}

.page-platform-icon{
  width:64px;
  height:64px;
  border-radius:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 12px;
  color:#fff;
  box-shadow:0 18px 38px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18);
}

.page-platform-icon .platform-mark{
  width:34px;
  height:34px;
}

.page-platform-icon.android .platform-mark{
  width:34px;
  height:34px;
  color:#eafff0;
}

.page-platform-icon.ios{background:linear-gradient(180deg,#2f8cff,#3a7ae8)}
.page-platform-icon.android{background:linear-gradient(180deg,#39c463,#25a84e)}
.page-platform-icon.androidtv{background:linear-gradient(180deg,#2bd070,#159e54)}
.page-platform-icon.appletv{background:linear-gradient(180deg,#343b48,#171d28)}
.page-platform-icon.macos{background:linear-gradient(180deg,#8396b8,#5e6f91)}
.page-platform-icon.windows{background:linear-gradient(180deg,#4aa0ff,#2d79eb)}
.page-title{
  font-size:34px;
  font-weight:var(--fw-heavy);
  line-height:1.08;
  margin:0;
  letter-spacing:-.035em;
}

.page-subtitle{
  max-width:340px;
  margin:12px auto 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}

.card{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-lg);
  padding:18px;
  margin-bottom:14px;
}

.card::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:calc(var(--radius-lg) - 1px);
  background:
    linear-gradient(135deg,rgba(255,255,255,.075),transparent 35%,rgba(112,187,255,.045) 72%,transparent),
    radial-gradient(circle at 12% 0%,rgba(255,255,255,.07),transparent 30%);
  pointer-events:none;
}

.card > *{
  position:relative;
  z-index:1;
}

.card-title{
  font-size:22px;
  font-weight:var(--fw-bold);
  margin-bottom:10px;
}

.card-text,
.muted-text,
.note-text,
.list-text li,
.ordered-text li,
.card p{
  color:var(--muted);
  line-height:1.58;
  font-size:15px;
}

.inline-code,
.config-box{
  background:linear-gradient(180deg,rgba(5,13,26,.44),rgba(11,23,39,.34));
  border-radius:18px;
  color:#fff;
  padding:14px 16px;
  font-size:15px;
  line-height:1.45;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  margin:14px 0 14px;
  border:1px solid rgba(226,241,255,.13);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(16px) saturate(1.25);
  -webkit-backdrop-filter:blur(16px) saturate(1.25);
}
.config-input{
  width:100%;
  resize:none;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  font-family:inherit;
  box-sizing:border-box;
}
.config-input[readonly]{
  cursor:text;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn{
  width:100%;
  padding:18px;
  border-radius:var(--control-radius);
  font-size:17px;
  font-weight:var(--fw-bold);
  border:0;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.primary-btn{
  background:
    linear-gradient(180deg,rgba(74,148,245,.86),rgba(42,105,218,.82)),
    radial-gradient(circle at 50% 0%,rgba(255,255,255,.15),transparent 44%);
  color:#fff;
  box-shadow:0 14px 28px rgba(34,92,180,.20), inset 0 1px 0 rgba(255,255,255,.18);
}

.secondary-btn{
  background:linear-gradient(180deg,rgba(86,152,255,.20),rgba(32,70,121,.18));
  color:#bce0ff;
  border:1px solid rgba(160,210,255,.22);
  backdrop-filter:blur(18px) saturate(1.25);
  -webkit-backdrop-filter:blur(18px) saturate(1.25);
}

.danger-btn{
  background:linear-gradient(180deg,rgba(93,42,58,.62),rgba(56,27,42,.54));
  color:var(--danger);
  border:1px solid rgba(255,154,168,.18);
  backdrop-filter:blur(18px) saturate(1.22);
  -webkit-backdrop-filter:blur(18px) saturate(1.22);
}

.ghost-btn{
  background:rgba(255,255,255,.075);
  color:#dbe7f7;
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(16px) saturate(1.18);
  -webkit-backdrop-filter:blur(16px) saturate(1.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.ghost-btn:hover,
.action-pill:hover,
.choice-row:hover,
.list-row:hover,
.store-chip:hover{
  transform:translateY(-2px);
}

.primary-btn[disabled],
.secondary-btn[disabled],
.danger-btn[disabled],
.ghost-btn[disabled]{
  opacity:1;
  cursor:not-allowed;
  transform:none;
}

.primary-btn[disabled]{
  background:linear-gradient(180deg,rgba(50,73,108,.88),rgba(33,48,73,.94));
  color:rgba(217,229,247,.54);
  box-shadow:none;
}

.secondary-btn[disabled]{
  background:rgba(31,44,67,.82);
  color:rgba(158,208,255,.44);
  border-color:rgba(115,176,255,.12);
}

.stack-gap > * + *{
  margin-top:12px;
}

.info-banner,
.notice-banner{
  border-radius:20px;
  padding:15px 16px;
  margin-bottom:16px;
  background:
    linear-gradient(145deg,rgba(98,164,255,.20),rgba(23,50,87,.34)),
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
  border:1px solid rgba(205,230,255,.18);
  color:#d9ecff;
  line-height:1.55;
  font-size:14px;
  box-shadow:0 16px 36px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(22px) saturate(1.35);
  -webkit-backdrop-filter:blur(22px) saturate(1.35);
}

.notice-banner.success{
  background:
    linear-gradient(145deg,rgba(74,219,159,.20),rgba(17,68,58,.34)),
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
  color:#d9fff2;
  border-color:rgba(130,255,217,.20);
}

.meta-text,
.small-text{
  color:var(--muted-2);
  font-size:14px;
  line-height:1.5;
}

.choice-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.choice-row{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  width:100%;
  padding:16px 16px;
  border-radius:20px;
  border:1px solid rgba(226,241,255,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  color:var(--text);
  text-align:left;
  cursor:pointer;
  overflow:hidden;
  transition:transform .24s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease;
  backdrop-filter:blur(16px) saturate(1.18);
  -webkit-backdrop-filter:blur(16px) saturate(1.18);
}

.choice-row::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(77,158,255,.16),rgba(77,158,255,.04) 42%,rgba(255,255,255,.02) 100%);
  opacity:0;
  transition:opacity .28s ease;
}

.choice-row.active{
  background:
    linear-gradient(180deg,rgba(92,160,255,.24),rgba(29,48,78,.22)),
    radial-gradient(circle at 0% 0%,rgba(255,255,255,.14),transparent 32%);
  border-color:rgba(150,207,255,.44);
  box-shadow:0 16px 34px rgba(7,16,33,.20), inset 0 1px 0 rgba(255,255,255,.16);
}

.choice-row[disabled]{
  cursor:not-allowed;
  opacity:.45;
  transform:none;
}

.choice-row[disabled]:hover{
  transform:none;
}

.choice-row.active::before{
  opacity:1;
}

.choice-left{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.choice-left > div:last-child{
  min-width:0;
}

.choice-title{
  font-size:18px;
  font-weight:var(--fw-semibold);
  line-height:1.25;
}

.choice-meta{
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
  line-height:1.35;
}

.choice-radio{
  position:relative;
  z-index:1;
  width:28px;
  height:28px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.18);
  box-sizing:border-box;
  background:rgba(255,255,255,.03);
  transition:border-color .26s ease, box-shadow .26s ease, background .26s ease, transform .26s ease;
}

.choice-row.active .choice-radio{
  border-color:var(--accent);
  background:rgba(74,160,255,.12);
  box-shadow:inset 0 0 0 7px var(--accent), 0 0 0 6px rgba(74,160,255,.10);
  transform:scale(1.02);
}

.store-chip{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:16px;
}

.store-links-wrap{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  width:100%;
  max-width:none;
}

.store-links-caption{
  color:var(--muted);
  font-weight:var(--fw-semibold);
  font-size:14px;
  line-height:1.35;
  text-align:left;
}

.nowrap{white-space:nowrap}

.store-actions{
  display:flex;
  justify-content:flex-start;
  align-items:stretch;
  gap:10px;
  flex-wrap:wrap;
  width:100%;
  max-width:none;
}

.store-actions .action-pill{
  flex:1 1 140px;
  min-height:48px;
}

.accordion-card{
  overflow:hidden;
}

.accordion-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0;
  background:transparent;
  border:0;
  color:var(--text);
  cursor:pointer;
  text-align:left;
}

.accordion-title{
  font-size:22px;
  font-weight:var(--fw-bold);
}

.accordion-arrow{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(28,43,66,.88),rgba(19,30,47,.94));
  border:1px solid rgba(255,255,255,.08);
  color:#d7e8ff;
  line-height:1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  transition:transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.accordion-arrow svg{
  width:18px;
  height:18px;
  display:block;
}

.accordion-toggle[aria-expanded="true"] .accordion-arrow{
  transform:rotate(180deg);
  background:linear-gradient(180deg,rgba(41,78,133,.92),rgba(24,49,88,.96));
  border-color:rgba(115,176,255,.34);
  box-shadow:0 10px 20px rgba(20,55,108,.18);
}

.accordion-panel{
  padding-top:16px;
}

.store-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.store-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(9,18,31,.28));
  border:1px solid rgba(226,241,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}

.platform-mark{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}

.platform-mark.android-mark{
  color:#eafff0;
}

.platform-mark svg{
  width:100%;
  height:100%;
  display:block;
}

.platform-mark img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

.store-title{
  font-size:22px;
  font-weight:var(--fw-bold);
}

.store-subtitle{
  color:var(--muted);
  font-size:15px;
  margin-top:4px;
}

.list-row.credit,
.list-row.debit{
  position:relative;
  overflow:hidden;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  margin-top:10px;
}

.list-row.credit{
  background:linear-gradient(180deg,rgba(21,63,56,.72),rgba(12,34,31,.86));
  border-color:rgba(77,210,166,.18);
}

.list-row.debit{
  background:linear-gradient(180deg,rgba(63,31,39,.70),rgba(33,16,22,.84));
  border-color:rgba(255,126,160,.14);
}

.list-icon.credit,
.list-icon.debit{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:var(--fw-bold);
  flex:0 0 44px;
}

.list-icon.credit{
  background:linear-gradient(180deg,rgba(85,226,173,.22),rgba(45,129,104,.26));
  color:#a7ffe0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.list-icon.debit{
  background:linear-gradient(180deg,rgba(255,125,171,.18),rgba(146,55,87,.24));
  color:#ffc7d8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.list-content{
  min-width:0;
  flex:1 1 auto;
}

.action-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--control-radius);
  padding:13px 16px;
  background:linear-gradient(180deg,rgba(94,163,255,.24),rgba(46,119,234,.16));
  color:#8fd0ff;
  text-decoration:none;
  font-size:15px;
  font-weight:var(--fw-bold);
  border:1px solid rgba(160,210,255,.22);
  white-space:nowrap;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

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

.metric-btn{
  position:relative;
  overflow:hidden;
  border-radius:var(--control-radius);
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(18,37,61,.28));
  color:#fff;
  padding:14px 8px;
  font-size:16px;
  font-weight:var(--fw-bold);
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(14px) saturate(1.16);
  -webkit-backdrop-filter:blur(14px) saturate(1.16);
}

.metric-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.10) 46%,transparent 70%);
  transform:translateX(-170%);
  opacity:0;
}

.metric-btn:hover::after{
  animation:tileSweep .82s ease forwards;
}

.metric-btn.active{
  border-color:var(--accent);
  background:rgba(59,140,255,.16);
  color:#a8d2ff;
}

.amount-display{
  font-size:68px;
  font-weight:var(--fw-heavy);
  text-align:center;
  color:#f5f8ff;
  line-height:1;
  margin:8px 0 18px;
  letter-spacing:-.05em;
  text-shadow:0 12px 24px rgba(0,0,0,.18);
  transition:transform .22s ease, color .22s ease;
}

.amount-display.bump{
  transform:scale(1.04);
  color:#ffffff;
}

.section-label{
  color:var(--muted-2);
  font-size:13px;
  margin:22px 0 10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.field-label{
  color:#dce7f8;
  font-size:15px;
  font-weight:var(--fw-semibold);
  margin-bottom:10px;
}

.text-input{
  width:100%;
  box-sizing:border-box;
  border-radius:18px;
  border:1px solid rgba(226,241,255,.13);
  background:linear-gradient(180deg,rgba(5,13,26,.42),rgba(11,23,39,.28));
  color:#fff;
  padding:15px 16px;
  font-size:16px;
  line-height:1.35;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter:blur(16px) saturate(1.18);
  -webkit-backdrop-filter:blur(16px) saturate(1.18);
}

.text-input::placeholder{
  color:#6f84a5;
}

.text-input:focus{
  border-color:rgba(115,176,255,.42);
  box-shadow:0 0 0 4px rgba(74,160,255,.10);
}

.field-hint{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.list-group-label{
  color:#c2cada;
  font-size:15px;
  font-weight:var(--fw-semibold);
  margin:14px 0 12px;
}

.list-row{
  display:grid;
  grid-template-columns:56px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
}

.list-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  background:#0f1624;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
}

.list-title{
  font-size:18px;
  font-weight:var(--fw-semibold);
  line-height:1.35;
}

.list-subtitle{
  color:var(--muted);
  font-size:14px;
  margin-top:4px;
}

.list-amount{
  font-size:18px;
  font-weight:var(--fw-bold);
}

.list-amount.positive{
  color:var(--success);
}

.list-amount.negative{
  color:var(--danger);
}

.empty-state{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  padding:18px;
  border-radius:20px;
  border:1px dashed rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(13,24,40,.72),rgba(9,18,31,.84));
}

.empty-state.center{
  align-items:center;
  text-align:center;
}

.empty-orb{
  width:52px;
  height:52px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,rgba(59,140,255,.22),rgba(46,119,234,.12));
  color:#9fd1ff;
  font-size:26px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.empty-title{
  font-size:18px;
  font-weight:var(--fw-bold);
  line-height:1.25;
}

.empty-copy{
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.skeleton-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.skeleton-card{
  position:relative;
  overflow:hidden;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(15,27,43,.9),rgba(12,21,34,.94));
}

.skeleton-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.08) 44%,transparent 68%);
  transform:translateX(-170%);
  animation:skeletonSweep 1.5s ease-in-out infinite;
}

.skeleton-line{
  position:relative;
  z-index:1;
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.skeleton-line + .skeleton-line{
  margin-top:10px;
}

.w-20{width:20%}
.w-30{width:30%}
.w-40{width:40%}
.w-50{width:50%}
.w-60{width:60%}
.w-70{width:70%}
.w-80{width:80%}
.w-90{width:90%}

@keyframes skeletonSweep{
  0%{transform:translateX(-170%)}
  100%{transform:translateX(170%)}
}

.link-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  box-sizing:border-box;
  text-decoration:none;
  text-align:center;
}

.toast{
  position:fixed;
  top:calc(16px + env(safe-area-inset-top,0px));
  left:50%;
  transform:translateX(-50%) translateY(-12px) scale(.98);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:max-content;
  min-width:min(320px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  min-height:46px;
  white-space:nowrap;
  background:
    linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045)),
    linear-gradient(180deg,rgba(38,58,84,.34),rgba(13,24,41,.24));
  padding:11px 18px;
  border:1px solid rgba(235,247,255,.18);
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(24px) saturate(1.45);
  -webkit-backdrop-filter:blur(24px) saturate(1.45);
  opacity:0;
  filter:blur(8px);
  pointer-events:none;
  transition:opacity .34s ease, transform .46s cubic-bezier(.22,1,.36,1), filter .42s ease;
  z-index:60;
  color:#f7fbff;
  font-size:15px;
  font-weight:var(--fw-bold);
  line-height:1;
}

.toast.show{
  opacity:1;
  filter:blur(0);
  pointer-events:auto;
  transform:translateX(-50%) translateY(0) scale(1);
  animation:glassToastIn .46s cubic-bezier(.22,1,.36,1);
}

.toast-badge{
  width:20px;
  height:20px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(55,214,122,.22);
  color:#fff;
  border:1px solid rgba(165,255,210,.30);
  font-size:13px;
  font-weight:var(--fw-bold);
  flex:0 0 20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}

.app-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:
    radial-gradient(circle at 50% 18%,rgba(96,164,255,.16),transparent 34%),
    rgba(3,8,18,.58);
  backdrop-filter:blur(18px) saturate(1.25);
  -webkit-backdrop-filter:blur(18px) saturate(1.25);
}

.app-modal.open{
  display:flex;
}

#replaceConfirmModal{
  background:
    radial-gradient(circle at 50% 18%,rgba(96,164,255,.16),transparent 34%),
    rgba(3,8,18,.58) !important;
  backdrop-filter:blur(18px) saturate(1.25) !important;
  -webkit-backdrop-filter:blur(18px) saturate(1.25) !important;
}

.app-modal-card{
  width:100%;
  max-width:430px;
  position:relative;
  margin:0;
  background:
    linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.07) 40%,rgba(16,29,48,.58)),
    radial-gradient(circle at 50% 0%,rgba(133,200,255,.18),transparent 36%);
  border-color:rgba(235,247,255,.22);
  box-shadow:0 30px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.18);
}

.app-modal-head{
  text-align:center;
  margin-bottom:14px;
}

.app-modal-emoji{
  font-size:40px;
  line-height:1;
  margin-bottom:10px;
}

.app-modal-title{
  margin:0;
  font-size:28px;
  font-weight:var(--fw-bold);
  letter-spacing:-.03em;
}

.app-modal-text{
  margin-top:12px;
  color:var(--muted);
  font-size:15px;
  line-height:1.58;
  text-align:center;
}

.app-modal-actions{
  display:flex;
  gap:10px;
  margin-top:18px;
}

.app-modal-actions > *{
  flex:1 1 0;
}

.reveal{
  opacity:0;
  transform:translateY(18px) scale(.985);
  animation:revealUp .64s cubic-bezier(.22,1,.36,1) forwards;
}

.reveal-1{animation-delay:.02s}
.reveal-2{animation-delay:.08s}
.reveal-3{animation-delay:.14s}
.reveal-4{animation-delay:.2s}
.reveal-5{animation-delay:.28s}
.reveal-6{animation-delay:.34s}

@keyframes revealUp{
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes glassToastIn{
  0%{
    opacity:0;
    filter:blur(10px);
    transform:translateX(-50%) translateY(-14px) scale(.96);
  }
  58%{
    opacity:1;
    filter:blur(0);
    transform:translateX(-50%) translateY(2px) scale(1.012);
  }
  100%{
    opacity:1;
    filter:blur(0);
    transform:translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes slowGlowA{
  0%{transform:translate3d(0,0,0) scale(.96)}
  32%{transform:translate3d(24vw,14vh,0) scale(1.04)}
  67%{transform:translate3d(7vw,38vh,0) scale(.90)}
  100%{transform:translate3d(42vw,22vh,0) scale(1.02)}
}

@keyframes slowGlowB{
  0%{transform:translate3d(0,0,0) scale(1)}
  28%{transform:translate3d(-26vw,18vh,0) scale(.92)}
  70%{transform:translate3d(-10vw,-18vh,0) scale(1.05)}
  100%{transform:translate3d(-38vw,8vh,0) scale(.98)}
}

@keyframes ambientFloatA{
  0%{transform:translate3d(0,0,0) scale(.94)}
  45%{transform:translate3d(-24px,120px,0) scale(1.10)}
  100%{transform:translate3d(26px,230px,0) scale(.98)}
}

@keyframes ambientFloatB{
  0%{transform:translate3d(0,0,0) scale(1)}
  38%{transform:translate3d(42px,-90px,0) scale(.92)}
  100%{transform:translate3d(-34px,110px,0) scale(1.06)}
}

@keyframes drift{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(0,-10px,0)}
}

@media (min-width:700px){
  .page{padding-top:28px}
}

@media (max-width:480px){
  .page-title{font-size:30px}
  .amount-display{font-size:58px}
}

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

.page-platform-icon.linux{background:linear-gradient(180deg,#64748b,#263142)}
.page-platform-icon.router{background:linear-gradient(180deg,#2dd4bf,#0f766e)}
/* OurNet shared glass polish */
.primary-btn,.secondary-btn,.danger-btn,.ghost-btn,.action-pill{border-radius:999px;min-height:54px;letter-spacing:-.01em}
.primary-btn{background:linear-gradient(145deg,rgba(79,154,255,.90),rgba(46,119,234,.82));box-shadow:0 14px 30px rgba(31,91,184,.18), inset 0 1px 0 rgba(255,255,255,.20)}
.secondary-btn,.ghost-btn{background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(27,51,84,.22));border-color:rgba(180,222,255,.20)}
.danger-btn{background:linear-gradient(145deg,rgba(92,41,58,.58),rgba(56,27,42,.44))}
.card,.choice-row,.info-banner,.notice-banner,.empty-state,.inline-code,.config-box,.text-input{border-radius:24px}
.choice-row::before{border-radius:23px}
.choice-radio{width:26px;height:26px}
.store-icon,.list-icon{border-radius:18px}
.metric-btn{border-radius:999px;min-height:48px}
.metric-grid{gap:9px}
.amount-display{font-size:clamp(52px,15vw,68px)}
.page-platform-icon.linux{background:linear-gradient(180deg,#343b48,#171d28)}
.page-platform-icon.router{background:linear-gradient(180deg,#3b7df2,#1f4fa6)}
.platform-mark,.page-platform-icon .platform-mark,.page-platform-icon.android .platform-mark,.platform-mark.android-mark,.platform-mark.android-tv-mark,.platform-mark.apple-tv-mark,.platform-mark.linux-mark,.platform-mark.router-mark{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.platform-mark img{width:100%;height:100%;object-fit:contain;display:block}

/* OurNet platform icon normalization */
.platform-mark,.page-platform-icon .platform-mark,.page-platform-icon.android .platform-mark,.platform-mark.android-mark,.platform-mark.android-tv-mark,.platform-mark.apple-tv-mark,.platform-mark.linux-mark,.platform-mark.router-mark{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;color:#fff;line-height:0}
.platform-mark svg,.platform-mark img{width:100%;height:100%;object-fit:contain;display:block;flex:0 0 auto}

/* OurNet static platform choice icon fix */
.choice-row .platform-mark.linux-mark img,
.choice-row .platform-mark.router-mark img{width:100%;height:100%;object-fit:contain;display:block;flex:0 0 auto}


/* OurNet transparent Linux/Router icons */
.platform-mark.linux-mark,.platform-mark.router-mark{background:transparent!important;border-radius:0!important;box-shadow:none!important}
.platform-mark.linux-mark img,.platform-mark.router-mark img{width:32px;height:32px;object-fit:contain;display:block;background:transparent!important;filter:invert(1) brightness(2)}

/* OurNet professional VPN UI refresh */
:root{
  --bg-0:#07090d;
  --bg-1:#0b0f16;
  --bg-2:#101620;
  --surface-1:rgba(18,24,35,.78);
  --surface-2:rgba(11,15,23,.72);
  --surface-soft:rgba(255,255,255,.045);
  --glass-top:rgba(255,255,255,.06);
  --glass-mid:rgba(255,255,255,.035);
  --glass-bottom:rgba(10,14,22,.54);
  --glass-border:rgba(255,255,255,.08);
  --glass-border-soft:rgba(255,255,255,.07);
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(92,219,183,.42);
  --text:#f5f7fb;
  --muted:#a8b3c3;
  --muted-2:#7f8b9d;
  --accent:#69a7ff;
  --accent-2:#48d6b0;
  --accent-soft:rgba(72,214,176,.13);
  --success:#48d6b0;
  --shadow:0 18px 46px rgba(0,0,0,.24);
  --radius-xl:18px;
  --radius-lg:16px;
  --radius-md:14px;
  --radius-sm:10px;
  --control-radius:14px;
}

body{
  background:
    linear-gradient(180deg,#0b0f16 0%,#101722 48%,#07090d 100%);
}

body::before,
body::after,
.ambient{
  display:none;
}

.page{
  max-width:min(100vw,440px);
  padding:calc(14px + env(safe-area-inset-top,0px)) 14px 28px;
}

.page-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.surface,
.card,
.topbar,
.info-banner,
.notice-banner,
.config-box,
.inline-code,
.text-input{
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.026)),
    rgba(14,19,28,.74);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px) saturate(1.08);
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
}

.topbar::before,
.card::before,
.choice-row::before{
  display:none;
}

.topbar{
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:0;
}

.back-btn,
.back-link{
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.045);
  color:#dce7f5;
  font-size:15px;
  font-weight:var(--fw-bold);
  letter-spacing:0;
}

.balance-chip{
  min-height:38px;
}

.balance-chip .value{
  color:#f5f7fb;
  font-size:20px;
  letter-spacing:0;
}

.page-head{
  text-align:left;
  margin:4px 2px 2px;
}

.page-emoji{
  display:none;
}

.page-kicker{
  color:#76ddc2;
  font-size:13px;
  font-weight:var(--fw-bold);
  margin-bottom:7px;
  letter-spacing:0;
}

.page-title{
  font-size:30px;
  line-height:1.1;
  letter-spacing:0;
}

.page-subtitle{
  max-width:none;
  margin:10px 0 0;
  color:#aab5c5;
  font-size:15px;
  line-height:1.5;
}

.card{
  border-radius:16px;
  padding:14px;
  margin-bottom:0;
}

.field-label{
  color:#edf3fb;
  font-size:13px;
  font-weight:var(--fw-bold);
  line-height:1.25;
  margin-bottom:12px;
  letter-spacing:0;
}

.choice-list{
  gap:8px;
}

.choice-row{
  min-height:76px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.038);
  box-shadow:none;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.choice-row:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.13);
  background:rgba(255,255,255,.06);
}

.choice-row.active{
  background:
    linear-gradient(180deg,rgba(72,214,176,.14),rgba(105,167,255,.09)),
    rgba(255,255,255,.035);
  border-color:rgba(92,219,183,.42);
  box-shadow:0 12px 30px rgba(39,174,139,.10);
}

.choice-row.active::after{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:3px;
  border-radius:999px;
  background:#48d6b0;
}

.choice-left{
  gap:14px;
}

.choice-left .platform-mark,
.choice-left .platform-mark.android-mark,
.choice-left .platform-mark.android-tv-mark,
.choice-left .platform-mark.apple-tv-mark,
.choice-left .platform-mark.linux-mark,
.choice-left .platform-mark.router-mark{
  width:40px;
  height:40px;
  flex:0 0 40px;
  color:#fff;
}

.choice-left .platform-mark.linux-mark img,
.choice-left .platform-mark.router-mark img{
  width:40px;
  height:40px;
}

.choice-title{
  color:#f7f9fc;
  font-size:18px;
  font-weight:var(--fw-bold);
  line-height:1.2;
  letter-spacing:0;
  white-space:normal;
  overflow-wrap:anywhere;
}

.choice-meta{
  color:#a6b3c5;
  font-size:14px;
  line-height:1.3;
  margin-top:5px;
}

.choice-radio{
  width:22px;
  height:22px;
  border:1.5px solid rgba(255,255,255,.23);
  background:rgba(255,255,255,.035);
  flex:0 0 22px;
}

.choice-row.active .choice-radio{
  border-color:#48d6b0;
  background:#48d6b0;
  box-shadow:0 0 0 4px rgba(72,214,176,.13);
  transform:none;
}

.choice-row.active .choice-radio::after{
  content:"";
  position:absolute;
  left:6px;
  top:3px;
  width:6px;
  height:11px;
  border:solid #07110e;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn,
.action-pill{
  min-height:54px;
  border-radius:14px;
  letter-spacing:0;
}

.primary-btn{
  background:linear-gradient(180deg,#5a9dff,#346fed);
  box-shadow:0 14px 28px rgba(52,111,237,.20);
}

.secondary-btn,
.ghost-btn{
  background:rgba(255,255,255,.055);
  border-color:rgba(255,255,255,.10);
  color:#e7eef9;
}

.text-input,
.config-box,
.inline-code{
  border-radius:14px;
}

@media (max-width:380px){
  .page{
    padding-left:10px;
    padding-right:10px;
  }

  .page-title{
    font-size:28px;
  }

  .choice-row{
    min-height:72px;
    padding:12px;
  }

  .choice-left{
    gap:12px;
  }
}

.choice-row:focus{
  outline:none;
}

.choice-row:focus-visible{
  border-color:rgba(105,167,255,.58);
  box-shadow:0 0 0 3px rgba(105,167,255,.18);
}

.choice-row.active:focus-visible{
  border-color:rgba(92,219,183,.52);
  box-shadow:0 12px 30px rgba(39,174,139,.10), 0 0 0 3px rgba(72,214,176,.16);
}

/* OurNet spacious production pass */
:root{
  --space-page:20px;
  --space-section:18px;
  --space-card:20px;
  --radius-lg:18px;
  --radius-md:16px;
  --control-radius:16px;
}

.page{
  max-width:min(100vw,468px);
  padding:calc(20px + env(safe-area-inset-top,0px)) var(--space-page) 36px;
}

.page-shell{
  gap:var(--space-section);
}

.topbar{
  padding:14px 16px;
  border-radius:18px;
}

.page-head{
  margin:6px 2px 4px;
  padding:0 2px;
}

.page-emoji{
  display:inline-flex;
  width:48px;
  height:48px;
  align-items:center;
  justify-content:center;
  margin:0 0 14px;
  border-radius:16px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
  font-size:25px;
}

.page-title{
  font-size:32px;
  line-height:1.12;
}

.page-subtitle{
  margin-top:12px;
  font-size:16px;
  line-height:1.58;
}

.card{
  padding:var(--space-card);
  border-radius:18px;
}

.card-title{
  font-size:21px;
  line-height:1.22;
  margin-bottom:12px;
}

.card-text,
.muted-text,
.note-text,
.list-text li,
.ordered-text li,
.card p{
  font-size:15.5px;
  line-height:1.64;
}

.field-label{
  margin-bottom:14px;
  font-size:14px;
}

.choice-list{
  gap:12px;
}

.choice-row{
  min-height:92px;
  padding:18px;
  border-radius:17px;
}

.choice-row.active::after{
  top:18px;
  bottom:18px;
}

.choice-left{
  gap:17px;
}

.choice-left .platform-mark,
.choice-left .platform-mark.android-mark,
.choice-left .platform-mark.android-tv-mark,
.choice-left .platform-mark.apple-tv-mark,
.choice-left .platform-mark.linux-mark,
.choice-left .platform-mark.router-mark{
  width:42px;
  height:42px;
  flex-basis:42px;
}

.choice-left .platform-mark.linux-mark img,
.choice-left .platform-mark.router-mark img{
  width:42px;
  height:42px;
}

.choice-title{
  font-size:20px;
}

.choice-meta{
  margin-top:7px;
  font-size:15px;
}

.choice-radio{
  width:24px;
  height:24px;
  flex-basis:24px;
}

.choice-row.active .choice-radio::after{
  left:7px;
  top:4px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn,
.action-pill{
  min-height:58px;
  padding:17px 18px;
  border-radius:16px;
  font-size:16px;
}

.metric-grid{
  gap:12px;
}

.metric-btn{
  min-height:58px;
  padding:15px 10px;
  border-radius:16px;
}

.amount-display{
  margin:10px 0 22px;
}

.text-input{
  min-height:56px;
  padding:16px 17px;
}

.config-box,
.inline-code{
  padding:16px 18px;
  margin:16px 0;
}

.store-actions{
  gap:12px;
}

.store-actions .action-pill{
  min-height:52px;
}

.list-group-label{
  margin:18px 2px 12px;
}

.list-row{
  padding:16px;
  border-radius:17px;
}

.list-row.credit,
.list-row.debit{
  margin-top:12px;
}

.empty-state{
  padding:22px;
}

.app-modal-card{
  padding:22px;
}

@media (max-width:380px){
  :root{
    --space-page:14px;
    --space-section:16px;
    --space-card:16px;
  }

  .page-title{
    font-size:30px;
  }

  .page-subtitle{
    font-size:15px;
  }

  .choice-row{
    min-height:86px;
    padding:16px;
  }

  .choice-left .platform-mark,
  .choice-left .platform-mark.android-mark,
  .choice-left .platform-mark.android-tv-mark,
  .choice-left .platform-mark.apple-tv-mark,
  .choice-left .platform-mark.linux-mark,
  .choice-left .platform-mark.router-mark{
    width:40px;
    height:40px;
    flex-basis:40px;
  }

  .choice-title{
    font-size:19px;
  }
}

/* Protocol application icons */
.protocol-mark{
  overflow:hidden;
  border-radius:12px;
  background:transparent;
  box-shadow:0 8px 18px rgba(0,0,0,.20);
}

.protocol-mark .protocol-icon-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

.store-icon .protocol-mark{
  width:56px;
  height:56px;
  flex:0 0 56px;
  border-radius:16px;
}

.protocol-page-icon{
  padding:0;
  overflow:hidden;
  background:transparent;
  border:0;
  box-shadow:none;
}

.protocol-page-icon .protocol-mark{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:15px;
}

.protocol-row .protocol-mark{
  width:42px;
  height:42px;
  flex:0 0 42px;
}

@media (max-width:380px){
  .protocol-row .protocol-mark{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
}

/* OurNet reference-grade visual pass */
:root{
  --space-page:18px;
  --space-section:16px;
  --space-card:18px;
  --radius-lg:18px;
  --radius-md:14px;
  --control-radius:14px;
  --bg-deep:#030711;
  --bg-panel:#07111f;
  --glass-a:rgba(18,31,53,.82);
  --glass-b:rgba(8,16,29,.78);
  --line-strong:rgba(126,176,255,.22);
  --line-soft:rgba(255,255,255,.08);
  --text-strong:#f6f9ff;
  --text-soft:#aab8ce;
  --accent:#2f86ff;
  --accent-hot:#43a3ff;
  --accent-ok:#46d884;
  --accent-cyan:#41d8d0;
  --shadow:0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.10);
}

html,
body{
  background:var(--bg-deep);
}

body{
  background:
    linear-gradient(180deg,#08101d 0%,#040813 54%,#02050c 100%);
}

body *{
  letter-spacing:0;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  display:block;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  max-width:none;
  max-height:none;
  border-radius:0;
  filter:none;
  opacity:.72;
  animation:none;
  pointer-events:none;
  z-index:0;
  background:
    linear-gradient(115deg,transparent 0 22%,rgba(47,134,255,.12) 22.2%,transparent 22.8% 58%,rgba(65,216,208,.08) 58.2%,transparent 58.8%),
    repeating-linear-gradient(90deg,rgba(126,176,255,.035) 0 1px,transparent 1px 72px),
    repeating-linear-gradient(0deg,rgba(126,176,255,.025) 0 1px,transparent 1px 72px);
}

body::after,
.ambient{
  display:none;
}

.page{
  max-width:min(100vw,520px);
  padding:calc(18px + env(safe-area-inset-top,0px)) var(--space-page) 34px;
}

.page-shell{
  width:100%;
  max-width:100%;
  margin:0 auto;
  gap:var(--space-section);
}

.topbar,
.card,
.choice-row,
.info-banner,
.notice-banner,
.empty-state,
.config-box,
.inline-code,
.text-input,
.app-modal-card{
  background:
    linear-gradient(154deg,rgba(255,255,255,.075),rgba(255,255,255,.032) 42%,rgba(18,42,73,.05)),
    linear-gradient(180deg,var(--glass-a),var(--glass-b));
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow);
  backdrop-filter:blur(22px) saturate(1.18);
  -webkit-backdrop-filter:blur(22px) saturate(1.18);
}

.card,
.topbar{
  position:relative;
  overflow:hidden;
}

.card::after,
.topbar::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  pointer-events:none;
  background:
    linear-gradient(135deg,rgba(255,255,255,.10),transparent 36%),
    linear-gradient(315deg,rgba(47,134,255,.10),transparent 42%);
  opacity:.65;
}

.card > *,
.topbar > *{
  position:relative;
  z-index:1;
}

.topbar{
  padding:12px 14px;
  border-radius:18px;
}

.back-btn,
.back-link,
.balance-chip,
.action-pill,
.pill{
  border-radius:14px;
  background:rgba(10,22,39,.72);
  border:1px solid rgba(126,176,255,.16);
}

.back-btn,
.back-link{
  color:#dce9ff;
}

.balance-chip .value{
  color:#f8fbff;
}

.page-head{
  text-align:center;
  margin:6px auto 4px;
  max-width:720px;
}

.page-emoji,
.page-platform-icon{
  margin-left:auto;
  margin-right:auto;
  background:
    linear-gradient(180deg,rgba(47,134,255,.22),rgba(67,163,255,.08)),
    rgba(8,18,34,.82);
  border:1px solid rgba(126,176,255,.18);
  box-shadow:0 14px 34px rgba(47,134,255,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

.page-kicker,
.section-label,
.field-label,
.manual-code-label{
  color:#8dbdff;
  letter-spacing:0;
}

.page-title{
  color:var(--text-strong);
  font-size:34px;
  line-height:1.08;
  letter-spacing:0;
}

.page-subtitle,
.card-text,
.field-hint,
.small-text,
.choice-meta,
.store-subtitle,
.store-links-caption,
.ordered-text li{
  color:var(--text-soft);
}

.card{
  padding:var(--space-card);
  border-radius:18px;
}

.choice-list{
  gap:10px;
}

.choice-row{
  min-height:82px;
  padding:16px;
  border-radius:16px;
  box-shadow:0 14px 38px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
}

.choice-row:hover{
  border-color:rgba(126,176,255,.24);
  background:
    linear-gradient(154deg,rgba(255,255,255,.09),rgba(255,255,255,.038) 42%,rgba(47,134,255,.08)),
    linear-gradient(180deg,rgba(20,38,64,.86),rgba(8,18,32,.82));
}

.choice-row.active{
  border-color:rgba(67,163,255,.60);
  background:
    linear-gradient(155deg,rgba(47,134,255,.24),rgba(65,216,208,.07) 50%,rgba(5,13,25,.70)),
    rgba(10,22,39,.92);
  box-shadow:0 18px 46px rgba(47,134,255,.22), inset 0 1px 0 rgba(255,255,255,.14);
}

.choice-row.active::after{
  left:1px;
  top:15px;
  bottom:15px;
  width:3px;
  background:linear-gradient(180deg,var(--accent-hot),var(--accent-cyan));
}

.choice-radio{
  border-color:rgba(141,189,255,.30);
  background:rgba(5,13,25,.64);
}

.choice-row.active .choice-radio{
  border-color:#67b0ff;
  background:linear-gradient(180deg,#59a6ff,#2576f2);
  box-shadow:0 0 0 4px rgba(47,134,255,.16);
}

.choice-row.active .choice-radio::after{
  border-color:#fff;
}

.choice-title,
.card-title,
.store-title{
  color:var(--text-strong);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn{
  border-radius:14px;
  letter-spacing:0;
}

.primary-btn{
  color:#fff;
  border:1px solid rgba(133,190,255,.30);
  background:linear-gradient(180deg,#3895ff,#176af0);
  box-shadow:0 18px 42px rgba(34,112,240,.30), inset 0 1px 0 rgba(255,255,255,.22);
}

.secondary-btn,
.ghost-btn{
  background:rgba(9,19,35,.74);
  border-color:rgba(126,176,255,.16);
  color:#eaf2ff;
}

.danger-btn{
  background:linear-gradient(180deg,rgba(255,92,118,.86),rgba(169,48,73,.82));
  border-color:rgba(255,160,176,.28);
}

.text-input{
  color:#f8fbff;
  background:rgba(5,13,25,.62);
  border-color:rgba(126,176,255,.16);
}

.config-box,
.inline-code{
  color:#dbeafe;
  background:
    linear-gradient(180deg,rgba(3,10,22,.78),rgba(6,15,28,.72)),
    repeating-linear-gradient(90deg,rgba(126,176,255,.05) 0 1px,transparent 1px 18px);
  border-color:rgba(126,176,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}

.store-chip{
  align-items:flex-start;
  gap:18px;
}

.store-actions{
  justify-content:flex-start;
}

.info-banner,
.notice-banner{
  border-radius:16px;
}

.manual-connect-card{
  display:grid;
  gap:16px;
}

.manual-connect-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.manual-badge{
  flex:0 0 auto;
  max-width:46%;
  padding:8px 11px;
  border-radius:999px;
  color:#d8e9ff;
  font-size:12px;
  font-weight:var(--fw-bold);
  line-height:1.2;
  background:rgba(47,134,255,.16);
  border:1px solid rgba(126,176,255,.20);
  white-space:normal;
  text-align:right;
}

.manual-connect-grid{
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  gap:14px;
  align-items:stretch;
}

.manual-scan-tile{
  position:relative;
  min-height:104px;
  border-radius:16px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025)),
    repeating-linear-gradient(90deg,rgba(246,249,255,.90) 0 5px,transparent 5px 10px),
    repeating-linear-gradient(0deg,rgba(246,249,255,.24) 0 5px,transparent 5px 10px),
    #e9f4ff;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 16px 34px rgba(0,0,0,.28);
}

.manual-scan-tile::before,
.manual-scan-tile::after,
.manual-scan-tile span{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  border:5px solid #07111f;
  border-radius:6px;
  background:#eef7ff;
}

.manual-scan-tile::before{
  top:12px;
  left:12px;
}

.manual-scan-tile::after{
  top:12px;
  right:12px;
}

.manual-scan-tile span{
  left:12px;
  bottom:12px;
}

.manual-connect-content{
  min-width:0;
  display:grid;
  align-content:start;
}

.manual-code-label{
  margin:0 0 8px;
  font-size:12px;
  font-weight:var(--fw-bold);
  text-transform:uppercase;
}

.manual-connect-card .config-box{
  min-height:104px;
  margin:0;
}

.manual-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.manual-actions .primary-btn{
  width:100%;
}

.amount-display{
  font-size:64px;
  letter-spacing:0;
}

@media (min-width:760px){
  .page{
    max-width:min(100vw,1120px);
    padding:28px 24px 42px;
  }

  .page-shell{
    max-width:1040px;
  }

  #s1.screen.active{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    align-items:start;
  }

  #s1 .page-head,
  #s1 .reveal-5,
  #s1 #go1{
    grid-column:1 / -1;
  }

  #s1 .choice-list{
    display:grid;
    grid-template-columns:1fr;
  }

  #s2.screen.active,
  #s3.screen.active{
    max-width:760px;
    margin:0 auto;
  }

  .topbar{
    max-width:760px;
    width:100%;
    margin:0 auto;
  }
}

@media (max-width:520px){
  .page-head{
    text-align:left;
  }

  .page-emoji,
  .page-platform-icon{
    margin-left:0;
    margin-right:0;
  }

  .manual-connect-head{
    display:grid;
  }

  .manual-badge{
    max-width:100%;
    width:max-content;
    text-align:left;
  }

  .manual-connect-grid{
    grid-template-columns:1fr;
  }

  .manual-scan-tile{
    min-height:86px;
  }

  .amount-display{
    font-size:54px;
  }
}

/* OurNet centered mobile shell hotfix */
.page{
  max-width:min(100vw,468px);
  padding:calc(18px + env(safe-area-inset-top,0px)) 18px 34px;
}

.page-shell{
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:16px;
}

#s1.screen.active,
#s2.screen.active,
#s3.screen.active{
  display:block;
  max-width:none;
  margin:0;
}

.topbar{
  max-width:none;
  width:100%;
}

.manual-connect-grid{
  grid-template-columns:1fr;
}

.manual-scan-tile{
  display:none;
}

.manual-connect-card .config-box{
  min-height:86px;
}

button,
a,
input,
textarea{
  position:relative;
  z-index:2;
}

@media (min-width:760px){
  .page{
    max-width:468px;
    padding:28px 18px 42px;
  }

  .page-shell{
    max-width:100%;
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  #s1.screen.active,
  #s2.screen.active,
  #s3.screen.active{
    display:block;
    max-width:none;
    margin:0;
  }

  .topbar{
    max-width:none;
  }
}

/* OurNet compact mobile polish */
body{
  align-items:flex-start;
}

.page{
  width:100%;
  max-width:430px !important;
  margin:0 auto !important;
  padding:calc(14px + env(safe-area-inset-top,0px)) 14px 28px !important;
}

.page-shell{
  width:100%;
  max-width:100% !important;
  gap:12px !important;
}

.topbar,
.card,
.choice-row,
.info-banner,
.notice-banner,
.config-box,
.inline-code,
.text-input,
.app-modal-card{
  border-radius:16px !important;
  border-color:rgba(145,176,216,.12) !important;
  background:
    linear-gradient(180deg,rgba(24,39,60,.86),rgba(10,20,34,.84)) !important;
  box-shadow:0 12px 32px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.055) !important;
}

.card::after,
.topbar::after{
  display:none !important;
}

.topbar{
  min-height:52px;
  padding:8px 10px !important;
  gap:10px;
}

.back-btn,
.back-link{
  min-height:38px;
  padding:9px 11px;
  border-radius:12px !important;
  font-size:13px;
}

.balance-chip{
  max-width:176px;
  min-width:0;
  min-height:38px;
  padding:8px 10px !important;
  border-radius:12px !important;
}

.balance-chip .value{
  min-width:0;
  overflow:hidden;
  color:#f8fbff;
  font-size:16px !important;
  line-height:1.1;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.page-head{
  margin:4px 0 2px !important;
  text-align:left !important;
}

.page-emoji{
  display:none !important;
}

.page-platform-icon{
  width:48px !important;
  height:48px !important;
  margin:0 0 10px !important;
  border-radius:14px !important;
}

.page-title{
  font-size:28px !important;
  line-height:1.12 !important;
}

.page-subtitle{
  max-width:100%;
  margin-top:7px !important;
  font-size:14.5px !important;
  line-height:1.42 !important;
}

.card{
  padding:16px !important;
}

.card-title,
.choice-title,
.store-title{
  font-size:17px !important;
  line-height:1.2 !important;
}

.card-text,
.card p,
.choice-meta,
.store-subtitle,
.store-links-caption,
.ordered-text li,
.small-text{
  font-size:14px !important;
  line-height:1.45 !important;
}

.choice-list{
  gap:9px !important;
}

.choice-row{
  min-height:68px !important;
  padding:12px !important;
  gap:12px !important;
}

.choice-left{
  gap:12px !important;
  min-width:0;
}

.choice-left .platform-mark,
.choice-left .platform-mark.android-mark,
.choice-left .platform-mark.android-tv-mark,
.choice-left .platform-mark.apple-tv-mark,
.choice-left .platform-mark.linux-mark,
.choice-left .platform-mark.router-mark{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  border-radius:12px !important;
}

.choice-radio{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn,
.action-pill{
  min-height:50px !important;
  padding:13px 15px !important;
  border-radius:14px !important;
  font-size:15px !important;
  line-height:1.15 !important;
}

.danger-btn{
  color:#fff !important;
  background:linear-gradient(180deg,#db526f,#a92f4f) !important;
  border-color:rgba(255,154,174,.24) !important;
  box-shadow:0 12px 28px rgba(155,36,66,.24), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

.danger-btn[disabled]{
  color:rgba(255,255,255,.62) !important;
  background:linear-gradient(180deg,rgba(164,59,83,.62),rgba(97,34,54,.54)) !important;
}

.store-chip{
  display:grid !important;
  gap:14px !important;
}

.store-left{
  gap:12px !important;
  min-width:0;
}

.store-icon{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  border-radius:14px !important;
}

.store-actions{
  width:100%;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px !important;
  justify-content:stretch !important;
}

.store-actions .action-pill{
  width:100%;
  justify-content:center;
  white-space:nowrap;
}

.manual-connect-card{
  gap:14px !important;
}

.manual-connect-head{
  display:block !important;
}

.manual-connect-head > div:first-child{
  min-width:0;
}

.manual-badge{
  width:auto;
  max-width:100% !important;
  margin-top:10px;
  padding:7px 10px !important;
  text-align:left !important;
  white-space:normal;
}

.manual-connect-grid{
  grid-template-columns:1fr !important;
  gap:10px !important;
}

.manual-scan-tile{
  display:none !important;
}

.manual-code-label{
  margin-bottom:7px !important;
  font-size:11px !important;
}

.manual-connect-card .config-box,
.config-box{
  min-height:74px !important;
  padding:12px !important;
  font-size:13.5px !important;
  line-height:1.42 !important;
  overflow-wrap:anywhere;
}

.manual-actions{
  gap:8px !important;
}

.amount-display{
  font-size:48px !important;
  line-height:1 !important;
  white-space:nowrap;
}

.info-banner,
.notice-banner{
  padding:13px 14px !important;
  font-size:14px !important;
  line-height:1.42 !important;
}

@media (min-width:760px){
  .page{
    max-width:430px !important;
    padding:18px 14px 32px !important;
  }
}

@media (max-width:374px){
  .page{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .store-actions{
    grid-template-columns:1fr;
  }

  .page-title{
    font-size:26px !important;
  }
}

/* OurNet professional spacing pass */
#s1.screen.active,
#s2.screen.active,
#s3.screen.active{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  align-items:stretch !important;
  max-width:none !important;
  margin:0 !important;
}

#s1.screen.active > *,
#s2.screen.active > *,
#s3.screen.active > *{
  grid-column:auto !important;
}

#s2 .page-head,
#s3 .page-head{
  margin-bottom:2px !important;
}

#s2 .page-title,
#s3 .page-title{
  font-size:27px !important;
}

.section-label{
  margin:2px 0 0 !important;
  color:#8dbdff !important;
  font-size:11.5px !important;
  line-height:1.2 !important;
  letter-spacing:.02em !important;
}

.store-chip{
  gap:12px !important;
  padding:14px !important;
}

.store-left{
  align-items:center !important;
  gap:11px !important;
}

.store-icon{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  border-radius:13px !important;
}

.store-title{
  font-size:17px !important;
}

.store-subtitle{
  margin-top:3px !important;
}

.store-links-wrap{
  gap:8px !important;
}

.store-links-caption{
  font-size:13.5px !important;
  line-height:1.28 !important;
}

.store-actions{
  gap:8px !important;
}

.store-actions .action-pill{
  min-height:46px !important;
  padding:11px 12px !important;
}

#installStepHint{
  line-height:1.38 !important;
}

#s2 > .card:has(#installStepHint),
#clientHint{
  padding:13px 14px !important;
}

#go2,
#doneBtn,
#go1{
  margin-top:0 !important;
}

.primary-btn{
  min-height:48px !important;
}

.app-modal-emoji,
.page-emoji,
.toast-badge{
  display:none !important;
}

.app-modal-head{
  text-align:left !important;
  margin-bottom:12px !important;
}

.app-modal-title{
  font-size:24px !important;
  line-height:1.14 !important;
}

.app-modal-text{
  text-align:left !important;
  font-size:14px !important;
  line-height:1.45 !important;
}

/* OurNet modal and glow polish */
.card,
.app-modal-card,
#replaceConfirmModal .card{
  overflow:visible !important;
}

.accordion-card{
  overflow:hidden !important;
}

#noticeClose,
#deleteModalClose,
#replaceModalClose,
.icon-close{
  width:44px !important;
  height:44px !important;
  min-height:44px !important;
  right:12px !important;
  top:12px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border-radius:14px !important;
  border:1px solid rgba(126,176,255,.16) !important;
  background:rgba(7,17,31,.72) !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}

#noticeClose::before,
#noticeClose::after,
#deleteModalClose::before,
#deleteModalClose::after,
#replaceModalClose::before,
#replaceModalClose::after,
.icon-close::before,
.icon-close::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:14px;
  height:2px;
  border-radius:999px;
  background:#e6f0ff;
  transform-origin:center;
}

#noticeClose::before,
#deleteModalClose::before,
#replaceModalClose::before,
.icon-close::before{
  transform:translate(-50%,-50%) rotate(45deg);
}

#noticeClose::after,
#deleteModalClose::after,
#replaceModalClose::after,
.icon-close::after{
  transform:translate(-50%,-50%) rotate(-45deg);
}

.app-modal{
  padding:18px !important;
}

.app-modal-card,
#replaceConfirmModal .card{
  width:min(100%,430px) !important;
  padding:58px 24px 24px !important;
  border-radius:20px !important;
  box-shadow:0 22px 54px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.app-modal-actions,
#replaceConfirmModal .primary-btn{
  margin-top:18px !important;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn,
.action-pill{
  overflow:visible !important;
}

.primary-btn{
  box-shadow:0 10px 24px rgba(34,112,240,.24), inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.danger-btn{
  box-shadow:0 10px 24px rgba(155,36,66,.20), inset 0 1px 0 rgba(255,255,255,.14) !important;
}
