/* BM VPN — тарифы и личный кабинет. Тёмная «карта» + стеклянные панели, в фирменных цветах. */
:root {
  --glass: rgba(255, 255, 255, .66);
  --glass-line: rgba(255, 255, 255, .9);
  --night: #121410;
  --night-2: #1d2119;
  --mint: #8ff0c8;
  --sky: #7fd6ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 70px -30px rgba(29, 40, 24, .38), 0 2px 6px rgba(29, 40, 24, .05);
}

/* ---------- пилюли-кнопки ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s;
}
.pill svg { width: 18px; height: 18px; flex: none }
.pill:hover { transform: translateY(-1px) }
.pill:active { transform: scale(.97) }
.pill.small { min-height: 38px; padding: 0 15px; font-size: 13.5px }
.pill.small svg { width: 16px; height: 16px }
.pill.white { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .55) }
.pill.ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .2) }
.pill.ghost:hover { background: rgba(255, 255, 255, .12) }
.pill.dark { background: var(--ink); color: #fff }
.pill.dark:hover { box-shadow: 0 10px 24px -10px rgba(21, 23, 19, .6) }
.pill.light { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--border) }
.pill.acid { background: var(--acid); color: var(--ink); box-shadow: 0 12px 30px -12px #a9d42a }
.pill.acid:hover { background: var(--acid-hover) }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14) }
.icon-btn svg { width: 18px; height: 18px }
.link-btn { border: 0; background: none; padding: 8px 0; color: var(--muted); font-size: 13.5px; font-weight: 600 }
.link-btn:hover { color: var(--ink) }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .01em }

/* ---------- сегменты (срок подписки) ---------- */
.period {
  display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 22px; border-radius: 999px;
  background: rgba(21, 23, 19, .06); box-shadow: inset 0 1px 2px rgba(21, 23, 19, .06);
}
.period-btn {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none;
  color: var(--muted); font-size: 13.5px; font-weight: 650; transition: background .25s var(--ease), color .2s, box-shadow .25s;
}
.period-btn b { color: #5b8a12; font-weight: 750 }
.period-btn[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(21, 23, 19, .35) }
.period.seg { margin: 0 }

/* ---------- тарифы: светящиеся карты ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.plan {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: 330px; padding: 24px; border-radius: 28px; color: var(--ink);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  animation: rise .7s var(--ease) backwards;
}
.plan:nth-child(2) { animation-delay: .06s }
.plan:nth-child(3) { animation-delay: .12s }
.plan::before { /* блик стекла */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .7), transparent 55%),
              linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 40%);
}
.plan:hover { transform: translateY(-6px) }
.plan-start { background: linear-gradient(150deg, #e9fbf3 0%, var(--mint) 100%); box-shadow: 0 26px 50px -26px #3fcf95 }
.plan-family { background: linear-gradient(150deg, #f6ffd0 0%, var(--acid) 55%, #b9ec2e 100%); box-shadow: 0 30px 60px -24px #a8d81f }
.plan-max { background: radial-gradient(120% 90% at 100% 0%, #34402a 0, transparent 55%), linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; box-shadow: 0 30px 60px -26px #151713 }
.plan-max::before { background: radial-gradient(90% 60% at 0% 0%, rgba(255, 255, 255, .12), transparent 60%) }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.plan h3 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em }
.plan-dev { font-size: 12.5px; font-weight: 650; opacity: .62; letter-spacing: .02em; white-space: nowrap }
.plan-badge {
  align-self: flex-start; margin-top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(21, 23, 19, .9); color: var(--acid); font-size: 11.5px; font-weight: 750; letter-spacing: .02em;
}
.plan-max .plan-badge { background: var(--acid); color: var(--ink) }
.plan-price { margin-top: auto; padding-top: 26px; display: flex; align-items: baseline; gap: 6px }
.plan-price b { font-size: clamp(40px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.055em; line-height: 1 }
.plan-price span { font-size: 15px; font-weight: 600; opacity: .55 }
.plan-total { min-height: 20px; margin-top: 6px; font-size: 13px; opacity: .62 }
.plan-list { margin: 16px 0 20px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; opacity: .85 }
.plan .pill { width: 100% }
.plan-max .pill.dark { background: var(--acid); color: var(--ink) }
.plan-current { outline: 2px solid var(--ink); outline-offset: 3px }
.plan-max.plan-current { outline-color: var(--acid) }

/* ---------- кабинет ---------- */
.cab { padding-block: 28px 90px }
.cab-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start }
#cabinet > * + *, .cab-grid + * { margin-top: 16px }

/* тёмная карта подписки */
.wallet {
  position: relative; isolation: isolate; overflow: hidden; padding: 26px 28px 24px; border-radius: 34px; color: #fff;
  background: radial-gradient(110% 80% at 100% 0%, #2c3622 0, transparent 60%), linear-gradient(165deg, #1f231b, var(--night) 70%);
  box-shadow: 0 40px 80px -36px rgba(21, 23, 19, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: rise .8s var(--ease) both;
}
.wallet-glow {
  position: absolute; z-index: -1; width: 380px; height: 380px; right: -150px; bottom: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 250, 85, .38), transparent 65%); filter: blur(10px);
  animation: breathe 7s ease-in-out infinite;
}
.w-cards { position: absolute; z-index: -1; top: 92px; right: -34px; width: 120px; height: 170px; pointer-events: none }
.w-cards i {
  position: absolute; inset: 0; border-radius: 20px; transform-origin: 0 100%;
  box-shadow: 0 0 40px -6px currentColor; animation: fan 1.1s var(--ease) both;
}
.w-cards i:nth-child(1) { color: #7fd6ff; background: linear-gradient(160deg, #b9ebff, var(--sky)); transform: translateX(10px); animation-delay: .25s }
.w-cards i:nth-child(2) { color: #8ff0c8; background: linear-gradient(160deg, #d2fbe9, var(--mint)); transform: translateX(-8px); animation-delay: .15s }
.w-cards i:nth-child(3) { color: #d7fa55; background: linear-gradient(160deg, #f4ffc4, var(--acid)); transform: translateX(-26px); animation-delay: .05s }
.w-cards i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 30%) }
.w-top { display: flex; align-items: center; gap: 12px }
.avatar {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: linear-gradient(145deg, #f2ffb5, var(--acid)); color: var(--ink); font-weight: 800; font-size: 17px;
  box-shadow: 0 0 0 3px rgba(215, 250, 85, .18);
}
.w-who { flex: 1; min-width: 0 }
.w-who p:first-child { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.w-status { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); font-size: 12.5px; font-weight: 600 }
.w-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8a8f86 }
.w-status.active { color: var(--acid) }
.w-status.active::before { background: var(--acid); box-shadow: 0 0 0 3px rgba(215, 250, 85, .2); animation: pulse 2.4s infinite }
.w-label { margin-top: 34px; color: rgba(255, 255, 255, .55); font-size: 13.5px; font-weight: 600 }
.w-big { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; line-height: 1; max-width: calc(100% - 70px) }
.w-big b { font-size: clamp(64px, 8vw, 96px); font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums }
.w-big span { font-size: clamp(20px, 2.2vw, 26px); font-weight: 650; color: rgba(255, 255, 255, .45); letter-spacing: -.02em }
.login-big { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.05em }
.w-sub { margin-top: 10px; color: rgba(255, 255, 255, .62); font-size: 14.5px; max-width: 420px }
.w-meter { height: 5px; margin-top: 18px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; max-width: calc(100% - 70px) }
.w-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b9ec2e, var(--acid)); box-shadow: 0 0 14px var(--acid); transition: width 1.2s var(--ease) }
.w-meter.low i { background: linear-gradient(90deg, #ff7a59, #ffb35c); box-shadow: 0 0 14px #ff8a5c }
.w-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 22px; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; color: #fff; text-align: left;
  background: rgba(255, 255, 255, .055); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .2s;
}
.w-chip:hover { background: rgba(255, 255, 255, .09) }
.w-chip small { display: block; color: rgba(255, 255, 255, .55); font-size: 12.5px; font-weight: 600 }
.w-chip b { font-size: 19px; font-weight: 750; letter-spacing: -.02em }
.faces { display: flex }
.faces > span {
  display: grid; place-items: center; width: 34px; height: 34px; margin-left: -9px; border-radius: 50%;
  background: #2a2f25; border: 2px solid #1a1d17; color: #fff; font-size: 11.5px; font-weight: 750;
}
.faces > span:first-child { margin-left: 0 }
.faces svg { width: 16px; height: 16px }
.faces .add { background: var(--acid); color: var(--ink) }

/* вход */
.login-wallet { max-width: 720px; margin-inline: auto; padding: 34px }
.login-wallet .w-label { margin-top: 0 }
.login-wait {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-top: 24px; padding: 18px;
  border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); animation: rise .5s var(--ease) both;
}
.lw-title { display: flex; align-items: center; gap: 9px; font-weight: 700 }
.lw-text .pill { margin-top: 14px }
.lw-qr { margin: 0; text-align: center; color: rgba(255, 255, 255, .55); font-size: 11.5px; max-width: 150px }
.lw-qr img { display: block; width: 150px; height: 150px; padding: 8px; margin-bottom: 8px; border-radius: 18px; background: #fff }
.w-foot { margin-top: 22px; color: rgba(255, 255, 255, .38); font-size: 12.5px }

/* стеклянные панели */
.sheet {
  position: relative; padding: 26px; border-radius: 34px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: var(--shadow), inset 0 1px 0 #fff; animation: rise .8s .08s var(--ease) both;
}
.grabber { display: none; width: 38px; height: 5px; margin: -10px auto 14px; border-radius: 9px; background: rgba(21, 23, 19, .14) }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap }
.sheet h2 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.035em }
.seg-meter { height: 4px; margin: 16px 0 6px; border-radius: 9px; background: rgba(21, 23, 19, .07); overflow: hidden }
.seg-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 1s var(--ease) }

/* строки (устройства, выбор) */
.rows { margin: 4px 0 0; padding: 0; list-style: none }
.row, .dev {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%;
  padding: 12px 6px; border: 0; border-bottom: 1px solid rgba(21, 23, 19, .07); background: none; color: var(--ink); text-align: left;
  animation: rise .5s var(--ease) both;
}
.rows > :last-child { border-bottom: 0 }
.row { border-radius: 18px; transition: background .2s }
.row:hover { background: rgba(255, 255, 255, .8) }
.row b, .dev strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.row small, .dev p { display: block; color: var(--muted); font-size: 13px }
.row-ico, .dev-ico {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(21, 23, 19, .25), inset 0 0 0 1px rgba(21, 23, 19, .06);
}
.dev-ico { background: var(--ink); color: #fff }
.dev-ico.on::after {
  content: ""; position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--acid); border: 2.5px solid #f4f6f1;
}
.row-ico svg, .dev-ico svg { width: 21px; height: 21px }
.chev { width: 18px; height: 18px; color: var(--muted) }
.dev-del {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(21, 23, 19, .05); color: var(--muted); font-size: 19px; line-height: 1; transition: background .2s, color .2s;
}
.dev-del:hover { background: #ffe1d9; color: #b2391b }
.dev-empty {
  display: grid; justify-items: center; gap: 6px; margin-top: 10px; padding: 26px 18px; border-radius: 24px; text-align: center;
  border: 1.5px dashed rgba(21, 23, 19, .14); color: var(--muted); font-size: 14px;
}
.dev-empty strong { color: var(--ink); font-size: 16px }
.dev-empty .pill { margin-top: 8px }
.dev-empty .big-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--acid); color: var(--ink); margin-bottom: 4px; box-shadow: 0 12px 30px -12px #a9d42a }
.dev-empty .big-ico svg { width: 24px; height: 24px }

/* ссылка вручную */
.manual { margin-top: 10px; border-top: 1px solid rgba(21, 23, 19, .07) }
.manual summary { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 6px 4px; list-style: none; cursor: pointer }
.manual summary::-webkit-details-marker { display: none }
.manual summary b { display: block; font-size: 14.5px }
.manual summary small { color: var(--muted); font-size: 12.5px }
.manual[open] .chev { transform: rotate(90deg) }
.manual .chev { transition: transform .3s var(--ease) }
.manual-body { display: flex; gap: 18px; align-items: center; padding: 14px 6px 4px; animation: rise .4s var(--ease) both }
.manual-body .pill { margin-top: 12px }
.qr { display: block; width: 168px; height: 168px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px -14px rgba(21, 23, 19, .35); flex: none }

/* оплата */
.pay-sheet .sheet-head { margin-bottom: 20px }
.pending {
  margin-bottom: 18px; padding: 14px 16px; border-radius: 20px; font-size: 14px;
  background: linear-gradient(120deg, #f6ffd6, var(--acid-soft)); border: 1px solid #fff;
}

/* приглашения */
.ref-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: 30px; background: linear-gradient(115deg, #f2ffbf, var(--acid) 60%, #c3f03a);
  box-shadow: 0 26px 50px -28px #9fcd1c; animation: rise .8s .16s var(--ease) both;
}
.ref-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 0 0, rgba(255, 255, 255, .55), transparent 60%); pointer-events: none }
.ref-gift { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; font-size: 26px; box-shadow: 0 10px 24px -12px rgba(21, 23, 19, .4) }
.ref-card h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em }
.ref-card p { font-size: 13.5px; color: #3a4a12 }
.ref-card .pill { position: relative; z-index: 1; background: var(--ink); color: #fff; box-shadow: none }

/* нижнее меню (телефон) */
.tabbar { display: none }

/* ---------- окно «Добавить устройство» ---------- */
dialog.sheet-dlg {
  width: min(520px, calc(100% - 24px)); max-height: min(88svh, 820px); padding: 28px; border-radius: 34px; overflow: auto;
  background: rgba(246, 247, 243, .9); border: 1px solid #fff;
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: 0 40px 90px -30px rgba(21, 30, 18, .55);
}
dialog[open] { animation: pop .45s var(--ease) both }
dialog::backdrop { background: rgba(18, 22, 16, .45); backdrop-filter: blur(8px) }
.sheet-dlg h2 { margin: 6px 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -.04em }
.dlg-close { position: absolute; top: 18px; right: 18px; color: var(--ink); background: rgba(21, 23, 19, .06); border-color: transparent; font-size: 22px }
.dlg-close:hover { background: rgba(21, 23, 19, .12) }
.sheet-dlg .row-ico { background: #fff }
.back { padding-top: 0; font-size: 14px }
.steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s }
.steps li { position: relative; padding: 0 0 22px 48px; counter-increment: s }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--ink); color: var(--acid); font-size: 13.5px; font-weight: 800;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 4px; width: 1px; background: rgba(21, 23, 19, .12) }
.steps b { font-size: 16px }
.steps p { margin-top: 2px; color: var(--muted); font-size: 14px }
.steps .pills { margin-top: 12px }
.steps .qr { margin-top: 14px }
.ad-wait {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 20px;
  background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(21, 23, 19, .06);
}
.ad-wait.ok { background: var(--acid); color: var(--ink) }
.dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(170, 214, 40, .7); animation: pulse 1.6s infinite }

/* ---------- экран успеха ---------- */
.success {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: radial-gradient(80% 60% at 50% 30%, #f1ffb8, var(--acid) 60%, #bdee35);
  animation: reveal .7s var(--ease) both;
}
.success-in { text-align: center; padding: 24px }
.tick { width: 86px; height: 86px; margin-bottom: 10px }
.tick path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s .35s var(--ease) forwards }
.success-big { font-size: clamp(38px, 7vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; animation: rise .6s .3s var(--ease) both }
.success-sub { margin-top: 10px; font-size: 16px; font-weight: 600; opacity: .7; animation: rise .6s .4s var(--ease) both }
.success-hint { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; font-size: 13px; opacity: .45 }

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 900; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 13px 20px; border-radius: 999px; background: rgba(21, 23, 19, .92); color: #fff; font-size: 14px; font-weight: 600;
  backdrop-filter: blur(12px); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); transition: transform .45s var(--ease), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1 }

/* ---------- анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes sheetUp { from { transform: translateY(100%) } to { transform: none } }
@keyframes fan { from { transform: translateX(90px); opacity: 0 } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8 } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(190, 235, 60, .7) } 70% { box-shadow: 0 0 0 9px rgba(190, 235, 60, 0) } 100% { box-shadow: 0 0 0 0 rgba(190, 235, 60, 0) } }
@keyframes reveal { from { clip-path: circle(0 at 50% 50%) } to { clip-path: circle(150% at 50% 50%) } }
@keyframes draw { to { stroke-dashoffset: 0 } }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr }
  .plan { min-height: 0 }
  .plan-list { display: none }
  .cab-grid { grid-template-columns: minmax(0, 1fr); gap: 0 }
  .cab-grid .sheet { margin-top: -34px; z-index: 2; border-radius: 30px 30px 34px 34px }
  .wallet { padding-bottom: 58px }
  .grabber { display: block }
}
@media (max-width: 700px) {
  .cab { width: calc(100% - 20px); padding-block: 10px 120px }
  .wallet { border-radius: 30px; padding: 22px 20px 56px }
  .login-wallet { padding: 26px 20px }
  .w-cards { top: 84px; right: -58px }
  .w-big, .w-meter { max-width: calc(100% - 50px) }
  .pills .pill { flex: 1 1 auto }
  .sheet { padding: 22px 18px; border-radius: 30px }
  .sheet h2 { font-size: 23px }
  .pay-sheet .sheet-head { display: grid }
  .period { display: flex; width: 100% }
  .period-btn { flex: 1; padding: 0 8px }
  .ref-card { grid-template-columns: auto 1fr; padding: 20px }
  .ref-card .pill { grid-column: 1 / -1 }
  .login-wait { grid-template-columns: 1fr }
  .lw-qr { display: none }
  .manual-body { flex-direction: column; align-items: flex-start }
  .tabbar {
    position: fixed; z-index: 50; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
    display: flex; gap: 4px; padding: 6px; border-radius: 999px;
    background: rgba(21, 23, 19, .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  }
  .tabbar a, .tabbar button {
    display: grid; place-items: center; width: 56px; height: 46px; border: 0; border-radius: 999px;
    background: none; color: rgba(255, 255, 255, .55); transition: background .3s var(--ease), color .2s;
  }
  .tabbar svg { width: 21px; height: 21px }
  .tabbar .on { background: #fff; color: var(--ink) }
  dialog.sheet-dlg {
    width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 30px 30px 0 0; border-bottom: 0;
  }
  dialog.sheet-dlg[open] { animation: sheetUp .5s var(--ease) both }
  dialog.sheet-dlg .grabber { display: block; margin-top: -8px }
  .dlg-close { top: 14px; right: 14px }
  .toast { bottom: 90px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important }
}
