/* PinkProxies app — one stylesheet, phone first, scales to tablet and desktop. */

:root {
  --bg: #F6F5FB;
  --surface: #FFFFFF;
  --surface-2: #F3F1F8;
  --ink: #15131F;
  --ink-2: #3D3950;
  --muted: #5E5A6E;
  --line: #E7E4F0;
  --line-2: #F1EFF6;
  --brand: #7B1CE8;
  --brand-ink: #4A0F99;
  --brand-soft: #F1EAFE;
  --brand-hover: #6A12CF;
  --grad: linear-gradient(135deg, #E431F8 0%, #8A1FEA 45%, #3B0EDA 100%);
  --ok: #0F6B40;
  --ok-soft: #E3F6EC;
  --warn: #8A4A00;
  --warn-soft: #FFF6E6;
  --warn-line: #F2D7A6;
  --bad: #A61B12;
  --bad-soft: #FFF1F0;
  --bad-line: #F3C4C0;
  --shadow: 0 1px 2px rgba(40, 20, 90, .04), 0 8px 24px -6px rgba(40, 20, 90, .10);
  --grad-btn: linear-gradient(135deg, #A12CF2 0%, #6A18E2 100%);
  --glow: rgba(228, 49, 248, .16);
  --radius: 20px;
  --radius-s: 12px;
  --tabbar-h: 66px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E15;
    --surface: #18161F;
    --surface-2: #211E2B;
    --ink: #F4F2FA;
    --ink-2: #D6D2E3;
    --muted: #A7A1B8;
    --line: #2C2838;
    --line-2: #24212F;
    --brand: #A46BFF;
    --brand-ink: #D9C2FF;
    --brand-soft: #2A1F45;
    --brand-hover: #B585FF;
    --ok: #5FD39A;
    --ok-soft: #12291F;
    --warn: #F5B95C;
    --warn-soft: #2A2112;
    --warn-line: #4A3A1C;
    --bad: #FF8A80;
    --bad-soft: #2C1513;
    --bad-line: #4D2420;
    --shadow: none;
    --glow: rgba(164, 107, 255, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E15;
  --surface: #18161F;
  --surface-2: #211E2B;
  --ink: #F4F2FA;
  --ink-2: #D6D2E3;
  --muted: #A7A1B8;
  --line: #2C2838;
  --line-2: #24212F;
  --brand: #A46BFF;
  --brand-ink: #D9C2FF;
  --brand-soft: #2A1F45;
  --brand-hover: #B585FF;
  --ok: #5FD39A;
  --ok-soft: #12291F;
  --warn: #F5B95C;
  --warn-soft: #2A2112;
  --warn-line: #4A3A1C;
  --bad: #FF8A80;
  --bad-soft: #2C1513;
  --bad-line: #4D2420;
  --shadow: none;
  --glow: rgba(164, 107, 255, .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(900px 340px at 50% -140px, var(--glow), transparent 75%) no-repeat, var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
a.plan, a.pill, a.btn, a.product, a.tab, a.navlink, a.list-row, a.link-btn, .link-btn { text-decoration: none; }
:focus-visible { outline: 3px solid var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.hello { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.hello small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hello b { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; box-shadow: 0 6px 16px -4px rgba(123, 28, 232, .45); }
.topbar h1 { flex: 1; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
}
.icon-btn:hover { border-color: var(--brand); }
.pill {
  height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 14px;
  white-space: nowrap; display: inline-flex; align-items: center;
}
.view {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 6px 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: var(--tabbar-h); padding: 6px;
  background: var(--surface); background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 12px 32px -10px rgba(40, 20, 90, .28);
}
.tab {
  border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; text-decoration: none; border-radius: 12px;
}
.tab[aria-current="page"] { color: var(--brand-ink); }
.tab svg { width: 22px; height: 22px; }
.tab .ti { width: 54px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.tab[aria-current="page"] .ti { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -4px rgba(123, 28, 232, .55); }
.side .navlink .ti { display: flex; }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .side {
    display: flex; flex-direction: column; gap: 6px;
    width: 250px; flex-shrink: 0; padding: 22px 14px;
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .side .brand { margin: 0 8px 18px; }
  .side .navlink {
    display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px;
    border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 700;
  }
  .side .navlink svg { width: 21px; height: 21px; }
  .side .navlink:hover { background: var(--surface-2); }
  .side .navlink[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
  .side .side-foot { margin-top: auto; font-size: 13px; color: var(--muted); padding: 0 12px; }
  .view { padding: 10px 28px 48px; }
  .topbar { padding: 18px 28px 12px; width: 100%; max-width: 816px; margin: 0 auto; }
}

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.brand-mark { color: #fff; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(123, 28, 232, .28); }
.brand-mark svg { width: 25px; height: 25px; }
.brand b { color: var(--brand); font-weight: 800; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.sec { margin-top: 6px; }
.card.flat { box-shadow: none; }
.card h2, .section-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grid-auto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 639px) { .grid-auto { display: flex; flex-direction: column; gap: 10px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 800; }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.center { text-align: center; }

.hero {
  border-radius: 24px; padding: 20px; color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 34px -14px rgba(91, 20, 201, .55);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
}
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.09); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .label { font-size: 13px; font-weight: 700; opacity: .85; }
.hero-add { width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.28); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-stats > div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.hero-stats b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-stats span { font-size: 11.5px; font-weight: 600; opacity: .85; }
.plan-hero .amount { font-size: 34px; }
.hero .amount { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.hero .btns { display: flex; gap: 10px; }
.hero .btn-white { flex: 1; height: 46px; border: 0; border-radius: 14px; background: #fff; color: #3A0D80; font-weight: 800; }
.hero .btn-ghost { flex: 1; height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 14px; background: transparent; color: #fff; font-weight: 800; }

.stat { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.stat b { display: block; font-size: 21px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  height: 50px; padding: 0 18px; border-radius: 15px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(106, 24, 226, .6); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); border-color: var(--bad-line); }
.btn.warn { background: #B45309; border-color: #B45309; color: #fff; }
.btn.block { width: 100%; }
.btn.sm { height: 40px; border-radius: 12px; font-size: 13.5px; padding: 0 12px; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { border: 0; background: transparent; color: var(--brand); font-weight: 700; padding: 10px 4px; min-height: 44px; }

/* ---------- choice chips & tiles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px;
}
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.tile {
  text-align: left; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px;
  background: var(--surface); color: var(--ink); display: flex; flex-direction: column; gap: 2px;
}
.tile[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.tile b { font-size: 17px; font-weight: 800; }
.tile .price { font-weight: 800; color: var(--brand-ink); font-size: 14px; }

.product {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow); text-decoration: none;
}
.product:hover { border-color: var(--brand); }
.badge {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.badge[class*="b-"] { color: #fff; letter-spacing: .3px; }
.b-personal_proxy { background: linear-gradient(135deg, #E431F8, #8A1FEA); }
.b-premium_proxy { background: linear-gradient(135deg, #F59E0B, #D9467A); }
.b-mobile_proxy { background: linear-gradient(135deg, #22C55E, #0E8A6A); }
.b-datacenter_proxy { background: linear-gradient(135deg, #38BDF8, #2563EB); }
.b-pro_proxy, .b-isp { background: linear-gradient(135deg, #8A1FEA, #3B0EDA); }
.b-socks { background: linear-gradient(135deg, #FB7185, #E11D48); }
.b-daily { background: linear-gradient(135deg, #22C55E, #0EA5E9); }
.product .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.product .name { font-weight: 800; font-size: 15.5px; }
.product .desc { font-size: 12.5px; color: var(--muted); }
.product .from { text-align: right; flex-shrink: 0; }
.product .from small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.product .from b { color: var(--brand-ink); font-weight: 800; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select {
  height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px;
  background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 500; width: 100%;
}
.input:focus, .select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .input { text-align: center; font-weight: 800; font-size: 18px; }
.stepper .icon-btn { width: 50px; height: 50px; font-size: 22px; font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--brand); height: 32px; }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--surface-2); border-radius: 14px; padding: 4px; }
.segment button { height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 13.5px; }
.segment button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segment button:disabled { opacity: .45; }
.vmode { margin-bottom: 4px; }

/* ---------- lists ---------- */
.list { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 6px 8px 16px; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row .k { width: 92px; flex-shrink: 0; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.list-row .v { flex: 1; min-width: 0; }
a.list-row, button.list-row { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--ink); text-align: left; text-decoration: none; }
.copy { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.copy:hover { background: var(--brand-soft); }
.copy svg { width: 19px; height: 19px; }

.plan { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 14px; color: var(--ink); box-shadow: var(--shadow); }
.plan > .info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.plan > .info .tag { margin-top: 2px; }
.ring { --p: 0; width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#C02CF5 0, #6A18E2 calc(var(--p) * 1%), var(--surface-2) 0); }
.ring.low { background: conic-gradient(#F59E0B 0, #D97706 calc(var(--p) * 1%), var(--surface-2) 0); }
.ring i { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); }
.plan-hero .ring { width: 74px; height: 74px; background: conic-gradient(#fff 0, #fff calc(var(--p) * 1%), rgba(255,255,255,.22) 0); }
.plan-hero .ring i { width: 58px; height: 58px; background: rgba(60, 14, 160, .55); color: #fff; font-size: 14px; }

/* home shortcuts */
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.actions .ai { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 18px -8px rgba(40, 20, 90, .5); }
.actions .ai svg { width: 24px; height: 24px; }
.ai.a1 { background: linear-gradient(135deg, #E431F8, #8A1FEA); }
.ai.a2 { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.ai.a3 { background: linear-gradient(135deg, #22C55E, #0E8A6A); }
.ai.a4 { background: linear-gradient(135deg, #38BDF8, #2563EB); }

/* horizontal product cards */
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 148px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.mini .badge { width: 42px; height: 42px; border-radius: 13px; font-size: 12px; }
.mini b { font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.mini span { font-size: 12px; color: var(--muted); }
.mini em { font-style: normal; font-weight: 800; color: var(--brand-ink); }
@media (min-width: 900px) { .hscroll { margin: 0; padding: 2px 0 8px; flex-wrap: wrap; } .mini { flex: 1 1 160px; } }
.hot { display: inline-flex; vertical-align: 2px; margin-left: 6px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; align-items: center; }
.plan:hover { border-color: var(--brand); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.bar.low > i { background: #D97706; }

.notice { border-radius: 16px; padding: 14px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.notice.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.notice.bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.notice.info { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }

.summary { display: flex; flex-direction: column; gap: 8px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary .line span:first-child { color: var(--muted); }
.summary .total { font-size: 19px; font-weight: 800; }

.empty { text-align: center; padding: 30px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { width: 44px; height: 44px; opacity: .6; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2) 0%, var(--line-2) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; height: 84px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 20px 32px; }
.auth .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth h1 { margin: 8px 0 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.6px; }
.auth p.lead { margin: 0; color: var(--muted); }
.captcha { min-height: 66px; display: flex; justify-content: center; }

/* ---------- sheet & toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10, 8, 18, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { width: 100%; max-width: 520px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: up .2s ease; max-height: 90vh; overflow: auto; }
.sheet h3 { margin: 0; font-size: 19px; font-weight: 800; }
@media (min-width: 640px) { .scrim { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.toast {
  position: fixed; z-index: 80; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
  max-width: min(92vw, 440px); background: #15131F; color: #fff; border-radius: 14px; padding: 13px 16px;
  font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: up .2s ease;
}
.toast.bad { background: #8F1A12; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: #B45309; color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; }

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

/* ---------- terms / privacy shown in the app ---------- */
.doc { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.doc h1, .doc h2, .doc h3 { font-size: 16px; margin: 18px 0 6px; font-weight: 800; }
.doc h1:first-child, .doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 20px; }
textarea.input { font-family: inherit; resize: vertical; }
textarea.mono { font-family: var(--mono); }

@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- sign-in screens ---------- */
.auth-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 22px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.auth h1 { margin: 0; }
.auth .brand { margin-bottom: 2px; }
.auth .link-btn { padding: 10px 2px; }
.auth a:not(.btn):not(.link-btn) { text-decoration: none; font-weight: 700; }
.trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; }
.trust svg { color: var(--ok); }
.tile .badge { font-size: 18px; }

/* ---------- polish: touch feedback, motion ---------- */
.btn, .plan, .product, .mini, .tile, .chip, .list-row, .icon-btn, .pill, .actions a .ai, .tab .ti, .copy { transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:active, .plan:active, .product:active, .mini:active, .tile:active, .chip:active, .icon-btn:active, .pill:active, .actions a:active .ai { transform: scale(.97); }
a.list-row:active { background: var(--surface-2); }
.view.enter { animation: viewIn .22s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.icon-btn.ghost { border-color: transparent; background: var(--surface); box-shadow: var(--shadow); }
.pill { gap: 6px; padding: 0 13px; }
.copy.done { color: var(--ok); background: var(--ok-soft); }

/* product page header */
.phead { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.phead .badge { width: 56px; height: 56px; border-radius: 17px; font-size: 14px; }
.phead b { font-size: 17px; font-weight: 800; }
.feats { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.feats li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.feats svg { color: var(--ok); flex-shrink: 0; margin-top: 1px; }

/* menu rows with icons */
.mrow { padding-left: 12px; gap: 12px; }
.mi { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.mi svg { width: 19px; height: 19px; }
.mi.a1 { background: linear-gradient(135deg, #E431F8, #8A1FEA); }
.mi.a2 { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.mi.a3 { background: linear-gradient(135deg, #22C55E, #0E8A6A); }
.mi.a4 { background: linear-gradient(135deg, #38BDF8, #2563EB); }
.mi.a5 { background: linear-gradient(135deg, #64748B, #334155); }
.chev { color: var(--muted); margin-right: 8px; flex-shrink: 0; }

/* selected tiles get the brand gradient edge */
.tile[aria-pressed="true"], .chip[aria-pressed="true"] { box-shadow: 0 6px 16px -8px rgba(123, 28, 232, .55); }

/* small phones (320-375px): tighten so nothing wraps awkwardly */
@media (max-width: 374px) {
  .view { padding-left: 12px; padding-right: 12px; gap: 12px; }
  .topbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .hero { padding: 16px; }
  .hero .amount { font-size: 32px; }
  .hero-stats > div { padding: 8px 9px; }
  .hero-stats b { font-size: 15px; }
  .hero-stats span { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .actions .ai { width: 50px; height: 50px; border-radius: 16px; }
  .hello b { font-size: 17px; }
  .avatar { width: 40px; height: 40px; }
  .pill { padding: 0 10px; font-size: 13px; }
  .pill svg { display: none; }
  .feats { grid-template-columns: 1fr; }
  .tabbar { left: 8px; right: 8px; }
  .tab .ti { width: 46px; }
  .hscroll { margin: 0 -12px; padding: 2px 12px 8px; }
}
/* landscape phones: don't let the floating bar eat the screen */
@media (max-height: 480px) and (orientation: landscape) {
  .tabbar { height: 56px; }
  .tab span:not(.ti) { display: none; }
}

.hero-stats span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.playbar { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 6px 10px 12px; box-shadow: var(--shadow); }
.playbar .btn { height: 38px; }

.ve-mail { font-weight: 800; font-size: 16px; color: var(--brand-ink); background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; margin-top: -8px; }

/* in-app VPN (beta) */
.vpncard { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #2A0F57 0%, #5B16C9 60%, #A12CF2 100%); border-radius: var(--radius); padding: 16px 10px 16px 16px; color: #fff; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(91, 22, 201, .55); }
.vpncard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.vpncard.on { background: linear-gradient(135deg, #04342C 0%, #0B6B52 60%, #13A672 100%); box-shadow: 0 12px 30px -12px rgba(19, 166, 114, .55); }
.vpncard .v { flex: 1; min-width: 0; }
.vpncard .tiny { color: rgba(255,255,255,.82); }
.vpncard .chev { color: rgba(255,255,255,.8); }
.vpncard .hot { background: #fff; color: #6A18E2; }
.vorb { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.vpncard.on .vorb { animation: vbreath 2.4s ease-in-out infinite; }

/* VPN screen */
.vhero { position: relative; overflow: hidden; border-radius: 28px; padding: 30px 18px 22px; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: radial-gradient(120% 80% at 50% 0%, #5B16C9 0%, #2A0F57 55%, #140A2B 100%); transition: background .6s; }
.vhero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.vhero.connected { background: radial-gradient(120% 80% at 50% 0%, #13A672 0%, #0B5D4B 55%, #04241E 100%); }
.vhero.reconnecting { background: radial-gradient(120% 80% at 50% 0%, #B7791F 0%, #6B3F0A 55%, #2A1704 100%); }
.vhero > * { position: relative; }
.vsoon { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vhero h2 { margin: 6px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.vhero p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; max-width: 320px; }
.vglow { position: absolute !important; left: 50%; top: 92px; width: 260px; height: 260px; margin-left: -130px; margin-top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(228,49,248,.45), transparent 65%); filter: blur(10px); pointer-events: none; }
.vhero.connected .vglow { background: radial-gradient(circle, rgba(52,230,160,.5), transparent 65%); }
.vpn-power { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 18px 40px -10px rgba(0,0,0,.5); transition: transform .15s, background .4s; -webkit-tap-highlight-color: transparent; }
.vpn-power:active { transform: scale(.94); }
.vpn-power.static { width: 96px; height: 96px; cursor: default; }
.vhero.connected .vpn-power { background: linear-gradient(145deg, #34E6A0, #0E9E68); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 0 0 10px rgba(52,230,160,.12), 0 18px 50px -8px rgba(19,166,114,.8); }
.vpn-power .vr { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); opacity: 0; pointer-events: none; }
.vhero.connected .vpn-power .vr { animation: vripple 2.6s ease-out infinite; border-color: rgba(52,230,160,.8); }
.vhero.connected .vpn-power .r2 { animation-delay: 1.3s; }
.vhero.off .vpn-power .vr.r1 { opacity: .5; animation: vbreath 2.8s ease-in-out infinite; }
.vpn-power .spin { position: absolute; inset: -8px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 65%, #fff 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.vhero.connecting .vpn-power .spin, .vhero.reconnecting .vpn-power .spin { opacity: 1; animation: vspin 1s linear infinite; }
.vstate { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-top: 10px; }
.vhero.connected .vstate { color: #7CF5C4; }
.vip { font-size: 24px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; min-height: 32px; font-variant-numeric: tabular-nums; }
.vip .fl { font-size: 26px; }
.vstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 10px; }
.vstats span { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.vstats small { font-size: 11px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.vstats b { font-size: 16px; font-variant-numeric: tabular-nums; }
.vpick, .vplan { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow); transition: border-color .2s, transform .1s; }
.vpick:active, .vplan:active { transform: scale(.99); }
.vpick:disabled, .vplan:disabled { opacity: .6; cursor: default; }
.vpick .v, .vplan .v { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fl { font-size: 22px; line-height: 1; }
.fl.big { font-size: 34px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: 50%; }
.vplan.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow); }
.vplan .bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.vplan .bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.vplan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.vplan.sel .radio { border: 7px solid var(--brand); }
/* Saved VPN profiles (pasted proxy lines), 2026-11-26 */
.vprof { display: flex; align-items: center; gap: 8px; }
.vprof .vplan { flex: 1; min-width: 0; }
.vprof .vplan .v b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vprof-del { flex-shrink: 0; width: 40px; height: 40px; }
.btn.lg { min-height: 56px; font-size: 17px; border-radius: 18px; margin-top: 4px; }
.row-between.gap { gap: 10px; }
.vtips { border: 1px dashed var(--line); }
.vsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.vsteps li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.vsteps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.vsteps li.done:not(:last-child)::before { background: var(--brand); }
.vsteps .n { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.vsteps li.now .n { background: var(--grad-btn); color: #fff; box-shadow: 0 0 0 5px var(--glow); }
.vsteps li.done .n { background: var(--brand); color: #fff; }
.vsteps .t { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.product.pick { border-color: var(--brand); box-shadow: 0 0 0 3px var(--glow); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 14px; }
.faq summary { list-style: none; cursor: pointer; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s; flex-shrink: 0; color: var(--muted); }
.faq details[open] summary .chev { transform: rotate(90deg); }
.faq p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.playbadge { display: flex; justify-content: center; }
.playbadge img { height: 56px; width: auto; }
.sheet-bg { position: fixed; inset: 0; background: rgba(10, 6, 25, .55); z-index: 80; animation: vfade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); height: 80vh; height: 80dvh; display: flex; flex-direction: column; gap: 12px; animation: vup .25s cubic-bezier(.2,.9,.3,1); max-width: 640px; margin: 0 auto; }
.sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 2px; }
.clist { overflow-y: auto; display: flex; flex-direction: column; margin: 0 -6px; -webkit-overflow-scrolling: touch; }
.crow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 10px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; text-align: left; border-radius: 12px; cursor: pointer; }
.crow span:nth-child(2) { flex: 1; }
.crow.sel { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.crow:active { background: var(--surface-2); }
@keyframes vripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes vbreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes vspin { to { transform: rotate(360deg); } }
@keyframes vfade { from { opacity: 0; } }
@keyframes vup { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .vpn-power .vr, .vpn-power .spin, .vorb, .sheet, .sheet-bg { animation: none !important; } }

/* Sale banner on Home (Black Friday 2026) */
.promo-bar { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #111827, #3b0764); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.promo-bar .v { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.promo-bar .v b { font-size: 15px; }
.promo-bar .tiny { opacity: .8; }
.promo-bar .pb-tag { flex-shrink: 0; padding: 4px 9px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ef4444); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.promo-bar svg { flex-shrink: 0; opacity: .8; }

/* Long page titles (e.g. "Residential VPN") next to the balance on phones */
@media (max-width: 430px) { .topbar h1.long { font-size: 16px; letter-spacing: -.45px; } }
@media (max-width: 374px) { .topbar h1.long { font-size: 15px; } }
