:root {
  --bg: #0a0a0b;
  --card: #101013;
  --card-2: #0f0f12;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f5f4;
  --muted: rgba(245, 245, 244, 0.5);
  --lime: #b8ff4a;
  --chrome: linear-gradient(145deg, #fff 0%, #e9e9ee 26%, #adadb6 54%, #f6f6f8 76%, #c6c6ce 100%);
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
html { height: 100%; }
body {
  font-family: Onest, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}
button { font-family: inherit; color: inherit; }
a { color: var(--text); text-decoration: none; }

#app {
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 18% -8%, rgba(255,255,255,.10), transparent 60%),
    var(--bg);
}

.banner {
  flex: 0 0 auto;
  padding: 10px 16px;
  padding-top: max(10px, var(--safe-top));
  background: #121216;
  border-bottom: 1px solid var(--line);
  font: 500 13px/1.4 Onest, sans-serif;
  color: var(--muted);
  text-align: center;
}
.banner a { color: var(--lime); font-weight: 600; }

.header {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  padding-top: 2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header.with-safe { padding-top: max(8px, var(--safe-top)); height: calc(56px + var(--safe-top)); }
.logo {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--chrome);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.brand { flex: 1 1 auto; min-width: 0; font: 700 16px/1.1 Onest, sans-serif; letter-spacing: -.02em; }
.back {
  width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: #15151a; border-radius: 12px; cursor: pointer; padding: 0;
}
.pill {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04);
  font: 600 11.5px Onest, sans-serif; color: rgba(245,245,244,.82);
}
.dot { width: 6px; height: 6px; border-radius: 99px; display: block; }
.dot.ok { background: var(--lime); }
.dot.warn { background: #f5f5f4; }
.dot.off { background: rgba(245,245,244,.45); }

.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 16px 24px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

.col { display: flex; flex-direction: column; gap: 14px; animation: scrIn .28s ease both; }
@keyframes scrIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(220%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bar { from { width: 0; } }

.days-card {
  position: relative; overflow: hidden; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, #141418 0%, #0d0d10 100%);
  padding: 22px;
}
.sheen {
  position: absolute; inset: -60% -20% auto -20%; height: 180%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.14) 47%, rgba(255,255,255,.02) 60%);
}
.kicker {
  font: 500 12px/1 "JetBrains Mono", monospace;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(245,245,244,.42);
}
.days-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.days-num {
  font: 800 76px/.82 Onest, sans-serif; letter-spacing: -.05em;
  background: linear-gradient(170deg, #fff 10%, #d6d6dc 45%, #8f8f99 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.days-word { font: 600 19px/1 Onest, sans-serif; color: rgba(245,245,244,.55); margin-left: 8px; }
.plan-side { text-align: right; font: 500 12px/1.4 Onest, sans-serif; color: rgba(245,245,244,.45); max-width: 120px; }
.plan-side b { color: var(--text); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #8f8f99, #fff);
  animation: bar .9s cubic-bezier(.2,.8,.2,1) both;
}
.until { margin-top: 11px; font: 500 13px/1.4 Onest, sans-serif; color: rgba(245,245,244,.6); }
.until b { color: var(--text); font-weight: 600; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-chrome, .btn-ghost, .btn-link {
  position: relative; overflow: hidden; height: 54px; border-radius: 18px; cursor: pointer;
  font: 700 15px Onest, sans-serif; display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-chrome {
  border: 0; color: #0a0a0b; background: var(--chrome);
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 14px 34px -16px rgba(255,255,255,.4);
}
.btn-chrome .shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  animation: sweep 4.5s ease-in-out infinite;
}
.btn-chrome span, .btn-chrome svg { position: relative; }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--text); background: #16161b; font-weight: 600;
}
.btn-ghost:active, .btn-link:active, .tile:active { background: #1e1e25; }
.btn-link {
  border: 1px solid var(--line-strong); background: #15151a; font-weight: 600; height: 52px;
}
.btn-wide { width: 100%; height: 56px; font-size: 15.5px; }
.btn-quiet {
  width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 17px;
  background: transparent; color: rgba(245,245,244,.6); font: 600 14px Onest, sans-serif; cursor: pointer;
}

.renew {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card);
}
.renew h3 { margin: 0; font: 600 14px Onest, sans-serif; }
.renew p { margin: 2px 0 0; font: 400 12px Onest, sans-serif; color: rgba(245,245,244,.45); }
.toggle {
  width: 48px; height: 28px; flex: 0 0 auto; border-radius: 99px; border: 1px solid var(--line-strong);
  cursor: pointer; padding: 0; position: relative; background: #1b1b21;
}
.toggle.on { background: rgba(184, 255, 74, .9); }
.toggle i {
  position: absolute; top: 2px; left: 3px; width: 22px; height: 22px; border-radius: 99px;
  background: rgba(245,245,244,.7); transition: left .22s cubic-bezier(.3,.9,.2,1), background .22s ease;
}
.toggle.on i { left: 23px; background: #0a0a0b; }

.tile {
  text-align: left; padding: 16px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; color: var(--text);
}
.tile h3 { margin: 12px 0 0; font: 600 14px Onest, sans-serif; }
.tile p { margin: 3px 0 0; font: 400 12px "JetBrains Mono", monospace; color: rgba(245,245,244,.45); }
.tile p.lime { color: var(--lime); }

.invite {
  position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #121216, #0c0c0f); padding: 20px;
}
.invite .orb {
  position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 999px;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 68%);
}
.invite-row { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.invite h3 { margin: 0; font: 700 17px/1.25 Onest, sans-serif; letter-spacing: -.01em; }
.invite p { margin: 6px 0 0; font: 400 13px/1.5 Onest, sans-serif; color: rgba(245,245,244,.55); }
.badge {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 18px;
  background: var(--chrome); display: grid; place-items: center;
}
.invite .btn-link { margin-top: 16px; height: 46px; background: rgba(255,255,255,.05); }

.empty {
  position: relative; overflow: hidden; border-radius: 30px;
  border: 1px dashed rgba(255,255,255,.16);
  background: linear-gradient(180deg, #111114, #0b0b0e);
  padding: 26px 22px; text-align: center;
}
.empty-ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 22px;
  display: grid; place-items: center; background: linear-gradient(145deg, #2a2a31, #15151a);
  border: 1px solid var(--line-strong);
}
.empty h2 { margin: 0; font: 700 22px/1.2 Onest, sans-serif; letter-spacing: -.02em; }
.empty p { margin: 8px auto 0; font: 400 14px/1.5 Onest, sans-serif; color: var(--muted); max-width: 270px; }

.hint {
  display: flex; gap: 10px; align-items: flex-start; padding: 15px 16px; border-radius: 18px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  font: 400 12.5px/1.5 Onest, sans-serif; color: var(--muted);
}
.i-badge {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 99px; border: 1px solid rgba(245,245,244,.3);
  display: grid; place-items: center; font: 600 11px "JetBrains Mono", monospace; color: rgba(245,245,244,.6);
}

.choice {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 18px; border-radius: 22px; cursor: pointer; color: var(--text);
  background: #0f0f12; border: 1px solid var(--line);
}
.choice.on { background: linear-gradient(180deg, #17171c, #0f0f13); border-color: rgba(245,245,244,.85); }
.radio {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); background: transparent;
}
.choice.on .radio { border-color: transparent; background: var(--chrome); }
.radio i { width: 9px; height: 9px; border-radius: 99px; background: #0a0a0b; display: none; }
.choice.on .radio i { display: block; animation: pop .22s ease both; }
.choice h3 { margin: 0; font: 700 17px Onest, sans-serif; letter-spacing: -.01em; }
.choice .meta { display: block; font: 400 12.5px "JetBrains Mono", monospace; color: rgba(245,245,244,.48); margin-top: 4px; }
.price { flex: 0 0 auto; text-align: right; }
.price b { display: block; font: 800 20px Onest, sans-serif; letter-spacing: -.02em; }
.save {
  display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 99px;
  font: 600 11px Onest, sans-serif; color: var(--lime);
  background: rgba(184,255,74,.1); border: 1px solid rgba(184,255,74,.24);
}

.pay-card {
  border-radius: 24px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, #131317, #0c0c0f); padding: 18px;
}
.pay-line { display: flex; justify-content: space-between; align-items: baseline; }
.pay-line + .pay-line { margin-top: 10px; }
.pay-line span { font: 500 13px Onest, sans-serif; color: var(--muted); }
.pay-line b { font: 600 14px "JetBrains Mono", monospace; }
.pay-line b.lime { color: var(--lime); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.pay-total { display: flex; justify-content: space-between; align-items: flex-end; }
.pay-total span { font: 600 14px Onest, sans-serif; }
.pay-total b { font: 800 28px Onest, sans-serif; letter-spacing: -.03em; }

.check {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px 16px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--card); cursor: pointer; width: 100%;
}
.box {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
}
.check.on .box { border-color: transparent; background: linear-gradient(145deg, #d9ff9c, #b8ff4a); }
.section-label {
  font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,245,244,.52); margin: 8px 0 2px 4px;
}
.fine { text-align: center; font: 400 11.5px/1.5 Onest, sans-serif; color: rgba(245,245,244,.55); padding: 0 20px; }
.spinner { width: 16px; height: 16px; border-radius: 99px; border: 2px solid rgba(10,10,11,.25); border-top-color: #0a0a0b; display: block; animation: spin .7s linear infinite; }

.center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 26px; }
.ok-ico {
  width: 92px; height: 92px; border-radius: 32px; display: grid; place-items: center;
  background: var(--chrome); box-shadow: 0 30px 60px -26px rgba(255,255,255,.45); animation: pop .45s cubic-bezier(.2,.9,.2,1) both;
}
.center h2 { font: 800 26px/1.2 Onest, sans-serif; letter-spacing: -.03em; margin: 24px 0 0; }
.center p { font: 400 14px/1.55 Onest, sans-serif; color: var(--muted); margin: 10px 0 0; max-width: 280px; }

.tile-mark {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: #1a1a20; border: 1px solid var(--line); font: 700 14px Onest, sans-serif;
}
.choice.on .tile-mark { background: var(--chrome); color: #0a0a0b; border-color: transparent; }
.rec {
  padding: 2px 7px; border-radius: 99px; font: 600 10px "JetBrains Mono", monospace; letter-spacing: .06em;
  color: var(--lime); background: rgba(184,255,74,.1); border: 1px solid rgba(184,255,74,.22);
}
.keybox {
  border-radius: 22px; border: 1px solid var(--line); background: var(--card-2); padding: 16px; margin-top: 6px;
}
.keybox .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.keybox code {
  display: block; font: 400 12px/1.6 "JetBrains Mono", monospace; color: rgba(245,245,244,.62);
  word-break: break-all; background: #0a0a0c; border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 11px 12px;
}

.stat {
  padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card);
}
.stat .k { font: 500 11.5px/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .v { font: 800 30px/1 Onest, sans-serif; letter-spacing: -.03em; margin-top: 10px; }
.stat.plus { border-color: rgba(184,255,74,.22); background: rgba(184,255,74,.06); }
.stat.plus .k { color: rgba(184,255,74,.75); }
.stat.plus .v { color: var(--lime); }

.list { border-radius: 24px; border: 1px solid var(--line); background: var(--card-2); overflow: hidden; }
.list-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; font: 700 15px Onest, sans-serif; }
.list-row, .list-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-top: 1px solid rgba(255,255,255,.05); width: 100%;
  background: transparent; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: default;
}
.list-btn { cursor: pointer; font: 600 14px Onest, sans-serif; color: var(--text); }
.who { display: block; font: 600 13.5px Onest, sans-serif; }
.when { display: block; font: 400 11.5px "JetBrains Mono", monospace; color: rgba(245,245,244,.52); margin-top: 3px; }
.sum { font: 600 14px "JetBrains Mono", monospace; }
.sum.plus { color: var(--lime); }

.profile-head {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 26px;
  border: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, #131317, #0c0c0f);
}
.avatar {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center;
  background: var(--chrome); font: 800 26px Onest, sans-serif; color: #0a0a0b;
}
.profile-head h2 { margin: 0; font: 700 19px/1.2 Onest, sans-serif; letter-spacing: -.02em; }
.profile-head p { margin: 4px 0 0; font: 400 13px "JetBrains Mono", monospace; color: rgba(245,245,244,.42); }
.kv { font: 500 13.5px Onest, sans-serif; color: var(--muted); }
.kv-v { font: 600 13.5px Onest, sans-serif; display: flex; align-items: center; gap: 8px; }
.ico-btn { border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }

.dev {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card);
}
.dev.off .name { color: rgba(245,245,244,.5); }
.xbtn {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; border: 1px solid var(--line-strong);
  background: #15151a; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.slots { display: flex; gap: 6px; margin-top: 14px; }
.slots span { flex: 1 1 0; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); }
.slots span.on { background: linear-gradient(90deg, #8f8f99, #fff); }
.big { font: 800 34px/1 Onest, sans-serif; letter-spacing: -.03em; }
.big small { font: 600 17px Onest, sans-serif; color: rgba(245,245,244,.45); }

.ref-row { position: relative; display: flex; gap: 8px; margin-top: 16px; }
.ref-url {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 0 13px; height: 48px;
  border-radius: 15px; background: #0a0a0c; border: 1px solid var(--line);
  font: 400 12.5px "JetBrains Mono", monospace; color: rgba(245,245,244,.6);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.copy {
  flex: 0 0 auto; width: 48px; height: 48px; border: 0; border-radius: 15px; cursor: pointer;
  display: grid; place-items: center; background: var(--chrome);
}

.status-ok {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 22px;
  border: 1px solid rgba(184,255,74,.2); background: rgba(184,255,74,.05);
}
.status-ok b { font: 600 14px Onest, sans-serif; color: var(--lime); }
.status-ok span:last-child { margin-left: auto; font: 400 11.5px "JetBrains Mono", monospace; color: rgba(184,255,74,.85); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; padding: 16px 18px; background: transparent; border: 0; cursor: pointer;
  color: var(--text); font: 600 14px/1.35 Onest, sans-serif;
}
.faq-a { padding: 0 18px 16px; font: 400 13px/1.55 Onest, sans-serif; color: rgba(245,245,244,.58); animation: fade .25s ease both; }
.sign {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font: 500 13px "JetBrains Mono", monospace; color: rgba(245,245,244,.6);
}

.tabbar {
  flex: 0 0 auto;
  padding: 8px 14px calc(12px + var(--safe-bot));
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(10,10,11,.86);
  backdrop-filter: blur(18px);
}
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 0 7px; background: transparent; border: 0; cursor: pointer; border-radius: 14px;
  color: rgba(245,245,244,.52);
}
.tab.on { color: var(--text); }
.tab.on::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 2.5px; border-radius: 99px;
  transform: translateX(-50%); background: linear-gradient(90deg, #8f8f99, #fff);
}
.tab label { font: 600 10.5px/1 Onest, sans-serif; letter-spacing: .01em; }

.toast {
  position: absolute; left: 16px; right: 16px; bottom: 104px;
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 17px;
  background: rgba(246,246,248,.96); color: #0a0a0b; font: 600 13.5px Onest, sans-serif;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); animation: toastIn .28s cubic-bezier(.2,.9,.2,1) both; z-index: 5;
}
.overlay {
  position: absolute; inset: 0; background: rgba(5,5,7,.72); backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; animation: fade .2s ease both; z-index: 6;
}
.sheet {
  width: 100%; border-radius: 32px 32px 0 0; background: #0e0e11;
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 20px calc(28px + var(--safe-bot));
  animation: sheetUp .3s cubic-bezier(.2,.9,.2,1) both;
}
.handle { width: 40px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.18); margin: 0 auto 18px; }
.qr {
  width: 220px; height: 220px; margin: 20px auto 0; border-radius: 22px; background: #f6f6f8;
  display: grid; place-items: center; padding: 12px;
}
.qr canvas, .qr img { width: 196px; height: 196px; }
.muted { color: var(--muted); }
.loading { display: grid; place-items: center; height: 100%; color: var(--muted); font: 500 14px Onest, sans-serif; gap: 12px; }
.loading .spinner { width: 22px; height: 22px; border-color: rgba(245,245,244,.2); border-top-color: #fff; margin: 0 auto; }

.step { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  font: 600 12px "JetBrains Mono", monospace; color: #0a0a0b; background: linear-gradient(145deg, #fff, #b9b9c2);
}
.how { border-radius: 26px; border: 1px solid var(--line); background: var(--card-2); padding: 20px; }
.how h3 { margin: 0 0 8px; font: 700 16px Onest, sans-serif; }
