/* UnVPN · Orbit — shared visual language */
:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #14171e;
  --surface-raised: #1c2029;
  --text: #f4f3f7;
  --muted: #a1a5b4;
  --accent: #c1b0f5;
  --accent-ink: #201734;
  --line: #ffffff12;
  --green: #9cdbbe;
  --radius: 24px;
  --ease: cubic-bezier(.22,1,.36,1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; padding: 0 0 calc(112px + env(safe-area-inset-bottom, 0px)); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% -15%, #a58cd30b, transparent 55%); z-index: -1; }
button, input, select { font: inherit; }
button, a, [role=button] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: wait; opacity: .5; }
button, a { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); }
::selection { background: #c1b0f544; }
h1,h2,h3,p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 520px; margin: auto; padding: max(26px, env(safe-area-inset-top, 0px)) 24px 24px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 22px; }
.logo-box, .header-actions { display: flex; align-items: center; gap: 10px; }
.logo-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent); }
.logo-icon svg { width: 32px; height: 32px; }
.logo-text { font-weight: 650; font-size: 23px; letter-spacing: -1px; }
.brand-suffix { color: var(--muted); font-weight: 400; }
.header-tag { color: #8d91a2; font-size: 10px; letter-spacing: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.user-chip { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); max-width: 150px; }
#user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn, .id-copy-btn, .download-btn, .del-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); flex-shrink: 0; transition: background .2s, transform .2s; }
.icon-btn:hover,.download-btn:hover { color: var(--accent); background: var(--surface-raised); }
.eyebrow, .badge-purple, .plan-badge { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.hero { text-align: center; padding: 14px 0 26px; position: relative; }
.hero h1 { font-size: clamp(36px, 9vw, 46px); font-weight: 550; line-height: 1.08; letter-spacing: -2px; margin: 14px 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 310px; margin: 0 auto; }
.orbit-art { width: 240px; height: 170px; margin: 0 auto 12px; position: relative; isolation: isolate; }
.orbit-art::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse, #ab8bda20, transparent 68%); }
.orbit-ring { position: absolute; top: 50%; left: 50%; width: 228px; height: 88px; margin: -44px 0 0 -114px; border: 1px solid #c2ade040; border-radius: 50%; transform: rotate(-28deg); }
.orbit-ring.second { width: 180px; height: 124px; margin: -62px 0 0 -90px; transform: rotate(38deg); border-color: #c2ade01d; }
.orbit-ring.third { width: 236px; height: 138px; margin: -69px 0 0 -118px; transform: rotate(-28deg); border-style: dashed; border-color: #c2ade011; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 98px; height: 98px; margin: -49px 0 0 -49px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 22%, #e5dcff 0%, #baa4e9 28%, #7b679c 57%, #282332 88%); box-shadow: inset -10px -12px 20px #070a1244, inset 1px 1px 2px #ffffff99, 0 12px 48px #b69ce721; animation: breathe 7s ease-in-out infinite; }
.orbit-core svg { width: 44px; height: 44px; color: #21192e; opacity: .8; }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d2c2f9; left: 21px; top: 104px; box-shadow: 0 0 12px #c5b2f355; animation: satellite 8s ease-in-out infinite; }
.orbit-star { position: absolute; right: 35px; top: 30px; color: #c2ade0aa; font-size: 14px; }
.hero-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: #a6b2af; font-size: 11px; }
.hero-note svg { width: 13px; height: 13px; }
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trial-card { padding: 22px; background: linear-gradient(120deg, #25202f, #1b1a23 70%); border-color: #c1b0f523; position: relative; overflow: hidden; margin-bottom: 28px; }
.trial-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.trial-title { font-size: 26px; font-weight: 550; letter-spacing: -.9px; margin-top: 6px; }
.trial-caption { color: #b2abba; font-size: 12px; margin-top: 3px; }
.trial-gift { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #c1b0f526; border-radius: 16px; color: var(--accent); transform: rotate(8deg); background: #c1b0f508; }
.badge-gb { color: var(--muted); font-size: 12px; }
.btn-primary, .toast-btn, .btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 14px 18px; border: 1px solid #e7dfff1a; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 650; letter-spacing: -.2px; transition: transform .16s var(--ease), background .2s, box-shadow .2s; }
.btn-primary:hover, .toast-btn:hover, .btn:hover { background: #cebefd; box-shadow: 0 6px 26px #b39ad818; }
.btn-primary:active, .btn-secondary:active, .icon-btn:active, .download-btn:active { transform: scale(.98); }
.btn-secondary, .btn-action, .btn-claim-trial { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--text); margin-top: 10px; transition: background .2s, transform .2s; }
.btn-secondary:hover { background: #262a35; }
.btn-back, .btn-subtle { background: transparent; border: 0; color: var(--muted); font-size: 13px; min-height: 44px; padding: 10px 0; }
.btn-back:hover, .btn-subtle:hover { color: var(--accent); }
.btn-subtle { width: 100%; margin-top: 5px; text-align: center; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 20px; }
.section-heading h2 { font-size: 23px; font-weight: 550; letter-spacing: -.8px; }
.section-heading span { color: var(--muted); font-size: 12px; }
.section-title { font-size: 13px; color: var(--muted); margin: 20px 0 12px; font-weight: 500; }
.divider { display: none !important; }
.grid-2,.grid-3 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.period-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 5px; gap: 4px; border: 1px solid var(--line); border-radius: 16px; background: #11141a; margin-bottom: 16px; }
.period-picker .plan-card { border-radius: 11px; padding: 11px 3px; min-height: 56px; background: transparent; border: 1px solid transparent; }
.period-picker .period-label { font-size: 13px; font-weight: 550; }
.period-picker .period-saving { font-size: 10px; color: var(--muted); margin-top: 2px; }
.period-picker .glass-active { background: #2c2837; border-color: #c1b0f521; color: #e4dafa; box-shadow: 0 3px 8px #0002; }
.period-picker .glass-active .period-saving { color: #beb0d7; }
.plan-card { color: inherit; position: relative; padding: 16px 10px; text-align: center; cursor: pointer; font: inherit; transition: background .22s, border-color .22s, transform .22s var(--ease); }
.plan-card:active { transform: scale(.987); }
.plan-card:hover { border-color: #c1b0f54d; }
.glass-active { background: #24212e; border-color: #b3a0e285; }
.plan-price { font-size: 22px; font-weight: 550; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.plan-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.plan-save { font-size: 11px; color: var(--green); }
.badge-popular { background: #bbaaed1a; color: #c9b9f1; font-size: 9px; letter-spacing: .4px; font-weight: 500; padding: 3px 7px; border-radius: 6px; }
.tariff-list { display: grid; gap: 10px; }
.tariff-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 19px 17px; border-radius: 20px; min-height: 88px; }
.tariff-symbol { display: grid; place-items: center; width: 38px; height: 42px; color: #a4a1b2; }
.tariff-symbol svg { width: 28px; height: 28px; }
.glass-active .tariff-symbol { color: var(--accent); }
.tariff-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 550; }
.tariff-caption { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.tariff-price { text-align: right; }
.tariff-price strong { font-size: 23px; letter-spacing: -.8px; font-weight: 550; font-variant-numeric: tabular-nums; }
.tariff-price small { display: block; font-size: 11px; color: var(--muted); }
.tariff-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; color: #949aa9; margin: 18px 0 24px; }
.summary-box { padding: 18px 0 4px; margin: 18px 0 12px; border-top: 1px solid var(--line); font-size: 13px; }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--muted); margin-bottom: 8px; }
.summary-row span:last-child { text-align: right; }
.summary-row.total { color: var(--text); padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 550; }
.summary-row.total span:last-child { font-size: 24px; letter-spacing: -.7px; }
.terms-text { font-size: 11px; text-align: center; line-height: 1.7; color: #9595a4; margin: 14px 8px 0; }
.terms-text a { color: #c2b7dc; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; color: #747b8e; font-size: 10px; letter-spacing: 1.1px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3,1fr); width: min(calc(100% - 32px), 464px); padding: 6px; background: #1b1d27eb; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid #ffffff12; border-radius: 22px; box-shadow: 0 10px 40px #0005; }
.nav-item { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; min-height: 54px; font-size: 10px; border-radius: 16px; color: #9697a8; transition: color .2s, background .2s; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item[aria-current=page] { background: #b3a0e214; color: #d0bff9; }
.nav-item:hover { color: var(--accent); }
.profile-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 0; margin: 8px 0 28px; background: transparent; border: 0; }
.avatar { grid-row: 1/3; width: 46px; height: 46px; border-radius: 16px; background: #292434; color: var(--accent); display: grid; place-items: center; font-size: 19px; font-weight: 550; }
.profile-name { font-size: 18px; font-weight: 550; letter-spacing: -.4px; }
.id-row { grid-column: 2/4; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin-top: -15px; }
.id-copy-btn { background: transparent; border: 0; width: 44px; height: 44px; margin: -10px 0; }
.profile-hero { margin-bottom: 24px; }
.profile-hero .orbit-art { height: 145px; margin-bottom: 0; transform: scale(.88); }
.profile-hero h1 { font-size: 30px; letter-spacing: -1.3px; font-weight: 500; text-align: center; }
.subscription-state { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--green); margin-top: 10px; }
.dot-online { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-card { padding: 24px; margin-bottom: 16px; background: linear-gradient(140deg, #22212c, #171a22); border-color: #c1b0f51c; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 26px; }
.plan-name { font-size: 30px; font-weight: 500; letter-spacing: -1px; margin-top: 5px; }
.expiry-pill { font-size: 11px; color: #cec3e6; padding: 7px 10px; border: 1px solid #c1b0f51c; background: #c1b0f509; border-radius: 10px; }
.expiry-pill.warning { color: #edcf9d; background: #edcf9d09; }
.expiry-pill.danger { color: #f2a9b4; background: #f2a9b409; }
.traffic-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.traffic-used { color: #e1dbef; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; border-radius: 5px; background: #ffffff0c; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width .65s var(--ease); }
.progress-fill.warning { background: #edcf9d; }.progress-fill.danger { background: #f2a9b4; }
.progress-percent { font-size: 11px; color: var(--muted); margin-top: 9px; text-align: right; }
.traffic-progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; }
.traffic-progress-meta .progress-percent { margin-top: 0; text-align: left; }
.traffic-period { color: var(--muted); font-size: 11px; white-space: nowrap; }
.action-card { padding: 20px; margin-bottom: 14px; }
.action-title { font-size: 15px; font-weight: 550; }
.action-desc { color: var(--muted); font-size: 13px; margin-top: 6px; }
.collapsible-body { overflow: hidden; max-height: 1400px; opacity: 1; transition: max-height .4s var(--ease), opacity .25s, margin-top .25s; }
.collapsible-body.collapsed { max-height: 0; opacity: 0; margin-top: 0 !important; visibility: hidden; }
.info-box { display: flex; gap: 10px; background: #f1cf9310; border: 1px solid #f1cf9320; border-radius: 14px; padding: 14px; margin-bottom: 14px; color: #d8c6a5; font-size: 12px; }
.info-icon { font-weight: 600; }
.wizard-card { padding: 24px; margin-top: 16px; }
.wizard-heading { margin: 20px 0 24px; }
.wizard-heading h1 { font-size: 27px; font-weight: 550; letter-spacing: -1px; }
.wizard-heading p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.app-list { display: grid; gap: 10px; margin-bottom: 22px; }
.app-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-radius: 16px; padding: 14px 12px; transition: background .2s, border-color .2s; cursor: pointer; }
.app-item-active { border-color: #b3a0e275; background: #24212e; }
.app-check { color: var(--accent); opacity: 0; }.app-item-active .app-check { opacity: 1; }
.bind-info { color: var(--muted); text-align: center; font-size: 12px; margin-top: 16px; }
.empty-state { padding: 36px 24px; text-align: center; }
.empty-icon { font-size: 30px; color: var(--accent); margin-bottom: 16px; }
.empty-title { font-size: 20px; font-weight: 550; margin-bottom: 8px; }
.empty-desc { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.skeleton { height: 18px; border-radius: 8px; background: #ffffff07; animation: shimmer 1.8s ease-in-out infinite; }
.skeleton + .skeleton { margin-top: 16px; }
.skeleton.big { height: 100px; }.skeleton.short { width: 60%; }
.init-splash { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; background: var(--bg); z-index: 90; gap: 16px; }
.loader-spinner, .spinner { width: 34px; height: 34px; border: 2px solid #c1b0f522; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 18px; }
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: #06080fc9; backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-end; padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.terms-card, .confirm-card, .toast-card { width: 100%; max-width: 460px; padding: 28px 24px; max-height: 85dvh; overflow-y: auto; border-radius: 28px; background: #1b1d26; animation: panel-in .3s var(--ease); box-shadow: 0 12px 60px #0005; }
.confirm-card { text-align: center; }.terms-card { text-align: left; }
.toast-icon { color: var(--accent); font-size: 26px; margin-bottom: 10px; }
.toast-title { font-size: 18px; font-weight: 550; margin-bottom: 8px; }
.toast-body { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.confirm-btn-row { display: flex; gap: 10px; }
.confirm-btn-row button { flex: 1; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.confirm-cancel { background: var(--surface-raised); }.confirm-ok { background: #d7a0aa; color: #28141c; }
#loader-modal { align-items: center; } #loader-modal > .glass { width: 100%; background: #1b1d26; }
#toast-modal { inset: auto 16px calc(100px + env(safe-area-inset-bottom, 0px)); background: transparent; backdrop-filter: none; padding: 0; pointer-events: none; }
#toast-modal .toast-card { pointer-events: auto; padding: 18px 20px; display: grid; grid-template-columns: 24px 1fr 32px; gap: 2px 12px; border-radius: 20px; border-color: #c1b0f533; }
#toast-modal .toast-icon { grid-row: 1/3; font-size: 19px; margin: 0; }
#toast-modal .toast-title { font-size: 14px; margin: 0; }
#toast-modal .toast-body { grid-column: 2; margin: 0; font-size: 12px; }
#toast-modal .toast-btn { grid-column: 3; grid-row: 1/3; padding: 0; min-height: 32px; align-self: start; background: transparent; border: 0; color: var(--muted); font-size: 20px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; }
.tab-btn.active { color: var(--accent); background: #262132; border-color: #c1b0f550; }
.stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.stat-card { padding: 22px 16px; }.stat-value { color: var(--accent); font-size: 30px; font-weight: 550; }
.stat-label { color: var(--muted); font-size: 12px; margin-top: 8px; }.stat-hint,.plan-note { color: var(--muted); font-size: 11px; margin-top: 4px; }
.plan-note { margin-bottom: 16px; }.plan-group { margin-bottom: 16px; }.plan-group-title { margin-bottom: 8px; font-size: 14px; }
.plan-row { display: flex; justify-content: space-between; padding: 14px; margin-bottom: 6px; font-size: 13px; }.active-count { color: var(--green); }.total-count,.sep,.stat-sep { color: var(--muted); }
.danger-card { padding: 20px; margin-bottom: 14px; }.danger-title { font-size: 16px; }.danger-desc { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }.btn-danger { color: #f1b1bc; border-color: #f1b1bc33; background: #f1b1bc09; }
.count-line { color: var(--muted); font-size: 13px; margin: 16px 0; }.sub-item { display: flex; justify-content: space-between; align-items: center; padding: 18px; margin-bottom: 10px; gap: 12px; }.sub-main { flex: 1; min-width: 0; }.sub-top-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }.sub-name { font-weight: 550; font-size: 14px; }.sub-email { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; margin: 5px 0; }.sub-meta { color: var(--muted); font-size: 12px; }.badge { padding: 3px 7px; font-size: 10px; border-radius: 6px; }.badge-active { background: #9cdbbe12; color: var(--green); }.badge-trial { color: var(--accent); background: #c1b0f512; }.badge-expired { color: #f1b1bc; background: #f1b1bc12; }.del-btn { color: #f1b1bc; }.sub-item.expired { opacity: .7; }
.open-page { padding: 0 24px; display: grid; place-items: center; }.box { max-width: 360px; width: 100%; text-align: center; padding: 36px 0; }.box .title { font-size: 26px; letter-spacing: -.8px; margin-bottom: 12px; }.box .sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }.hint { font-size: 13px; color: var(--muted); margin-top: 20px; }.box .btn { margin-top: 12px; }
.network-error { border: 1px solid #edcf9330; background: #edcf9308; padding: 16px; margin: 0 0 20px; border-radius: 16px; color: #d4c8ae; font-size: 13px; }
.network-error button { display: block; border: 0; background: transparent; color: var(--accent); padding: 12px 0 0; min-height: 44px; }
.fade-in, #profile-content:not(.hidden), #wizard-screen:not(.hidden), #main-container:not(.hidden) { animation: enter .45s var(--ease) both; }
body.is-background *, body.is-background *::before { animation-play-state: paused !important; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes satellite { 0%,100% { transform: translate(0,0); } 50% { transform: translate(12px,-8px); } }
@keyframes shimmer { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@view-transition { navigation: none; }
@keyframes fade-out { to { opacity: 0; } } @keyframes fade-in { from { opacity: 0; } }
@media (min-width: 700px) { body { background-color: #090b10; } .container { margin-top: 28px; padding: 30px 30px 28px; border: 1px solid #ffffff08; border-radius: 32px; background: #0e1016; } .hero { padding-top: 24px; } .modal-overlay { align-items: center; } }
@media (max-width: 360px) { .container { padding-inline: 16px; } .tariff-card { padding: 16px 12px; gap: 9px; grid-template-columns: 30px 1fr auto; } .tariff-name { gap: 5px; }.badge-popular { font-size: 8px; }.status-card,.wizard-card { padding: 18px; }.expiry-pill { max-width: 120px; } .header-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } ::view-transition-old(root),::view-transition-new(root) { animation: none; } }

/* Revision 2: independent tabs, readable type and compact account controls. */
:root { --muted: #b0b3c2; }
body { font-weight: 450; }
[data-page=index] #plans { display: none; }
[data-page=plans] .hero, [data-page=plans] #trial-card-box,
[data-page=plans] #home-account { display: none !important; }
[data-page=plans] .site-footer { margin-top: 24px; }
.hero-description { font-size: 16px; font-weight: 500; }
.eyebrow, .badge-purple, .plan-badge { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.section-heading h2 { font-size: 25px; font-weight: 700; }
.section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-top: 16px; }
.trial-caption, .tariff-caption, .period-picker .period-saving { font-size: 14px; }
.period-picker .period-label { font-size: 15px; font-weight: 650; }
.tariff-name { font-size: 18px; font-weight: 700; flex-wrap: wrap; }
.tariff-price small { font-size: 13px; }
.badge-popular { font-size: 10px; font-weight: 700; }
.summary-box { font-size: 14px; }
.terms-text { font-size: 13px; line-height: 1.65; margin-inline: 0; }
.nav-item { font-size: 12px; font-weight: 600; }
.btn-primary, .btn-secondary { font-size: 16px; font-weight: 700; }
.btn-back, .btn-subtle, .empty-desc, .action-desc, .wizard-heading p { font-size: 14px; }
.header-tag { display: none; }
.header-actions { gap: 8px; }
.user-chip { background: #c1b0f50c; border: 1px solid #c1b0f525; border-radius: 24px; padding: 9px 13px; font-size: 14px; min-height: 44px; }
.user-chip .dot-online { width: 7px; height: 7px; color: #9cdbbe; box-shadow: 0 0 9px #9cdbbe30; }
.header .icon-btn { border-radius: 50%; }
.home-account { padding: 24px; }
.home-account h2 { font-size: 25px; line-height: 1.2; margin-top: 10px; }
.home-account p { color: var(--muted); font-size: 15px; margin: 12px 0 20px; }
.profile-hero { text-align: center; margin-bottom: 22px; }
.profile-hero .orbit-art { height: 155px; }
.orbit-letter { font-size: 44px; font-weight: 750; color: #302443; line-height: 1; }
.profile-hero h1 { font-size: 29px; font-weight: 700; overflow-wrap: anywhere; }
.profile-id-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; margin-top: 8px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 12px; font-size: 15px; }
.profile-id-button:hover { color: var(--accent); background: #c1b0f50b; border-color: #c1b0f526; }
.status-card { padding: 20px; border-radius: 22px; }
.status-row { gap: 10px; margin-bottom: 18px; }
.status-card .status-row { display: block; position: relative; }
.status-card .plan-badge { padding-right: 116px; }
.status-card .expiry-pill { position: absolute; top: -2px; right: 0; }
.status-card .plan-name { margin-top: 9px; }
.plan-badge { font-size: 13px; letter-spacing: .4px; }
.plan-name { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin-top: 5px; }
.expiry-pill { padding: 6px 10px; font-size: 12px; font-weight: 750; border: 0; border-radius: 24px; white-space: nowrap; }
.expiry-pill.danger { background: #ed80941b; }
.traffic-label-row { font-size: 14px; margin-bottom: 9px; }
.traffic-used { font-size: 14px; font-weight: 750; }
.progress-track { height: 8px; }
.progress-percent { font-size: 12px; margin-top: 6px; }
.action-title { font-size: 17px; font-weight: 650; }
#renew-card { padding: 18px; border-radius: 22px; }
#renew-card .grid-3 { gap: 8px; margin-bottom: 16px; }
#renew-card .plan-card { padding: 16px 5px; border-radius: 20px; }
#renew-card .plan-price { font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
#renew-card .plan-sub { font-size: 12px; line-height: 1.4; margin-top: 4px; }
#renew-card .plan-save { font-size: 11px; font-weight: 700; margin-top: 5px; }
#renew-card .badge-popular { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); white-space: nowrap; background: #a18bc8; color: #100d19; padding: 2px 7px; font-size: 9px; }
#renew-card .glass-active { border-color: #c1b0f5; background: #c1b0f518; box-shadow: 0 4px 16px #bbaaed0b; }
#renew-card .summary-box { border: 1px solid var(--line); border-radius: 16px; background: #0d0d142e; padding: 15px 13px; margin: 16px 0; font-size: 13px; }
#renew-card .summary-row { gap: 8px; margin-bottom: 6px; }
#renew-card .summary-row.total { font-size: 15px; font-weight: 800; margin-top: 10px; padding-top: 10px; margin-bottom: 0; }
#renew-card .summary-row.total span:last-child { font-size: 18px; }
#trial-notice { padding: 15px 18px; }
.plans-choice,.plans-checkout { min-width: 0; }
@media (max-width: 360px) {
  .container { padding-inline: 14px; }
  .header { gap: 8px; }.logo-box { gap: 5px; }.logo-text { font-size: 22px; }
  .header-actions { gap: 6px; }.user-chip { padding-inline: 10px; max-width: 108px; }
  .tariff-card { grid-template-columns: 25px minmax(0,1fr) auto; padding: 15px 10px; }
  .tariff-caption { font-size: 13px; }.tariff-price strong { font-size: 22px; }
  .status-card { padding: 16px; }.status-row { flex-wrap: wrap; row-gap: 8px; }
  #renew-card { padding: 14px; } #renew-card .plan-price { font-size: 20px; }
  #renew-card .plan-sub { font-size: 11px; } #renew-card .plan-save { font-size: 10px; }
  #renew-card .summary-box { padding: 13px 10px; }
}
@media (min-width: 900px) {
  body:has(.bottom-nav) { padding: 0 32px 36px; }
  [data-page=index] .container, [data-page=plans] .container, [data-page=profile] .container, [data-page=auth] .container { max-width: 1160px; min-height: calc(100dvh - 64px); border: 0; background: transparent; border-radius: 0; margin-top: 0; padding: 24px 0; }
  .header { height: 64px; margin-bottom: 42px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .bottom-nav { top: 19px; bottom: auto; width: 390px; padding: 4px; border-radius: 16px; box-shadow: none; background: #191b24e8; }
  .nav-item { flex-direction: row; gap: 9px; min-height: 44px; font-size: 14px; border-radius: 12px; }
  [data-page=index] #selection-screen { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px 72px; align-items: center; padding: 30px 20px; }
  [data-page=index] .hero { grid-column: 1; grid-row: 1/4; padding: 0; }
  [data-page=index] .hero h1 { font-size: 52px; }
  [data-page=index] .orbit-art { width: 260px; height: 200px; transform: scale(1.15); margin-block: 18px 28px; }
  [data-page=index] #trial-card-box, [data-page=index] #home-account { grid-column: 2; grid-row: 1/4; padding: 32px; margin: 0; }
  [data-page=index] .trial-title { font-size: 32px; }
  [data-page=index] .trial-caption { font-size: 16px; margin-top: 8px; }
  [data-page=index] .site-footer { grid-column: 1/-1; margin-top: 40px; }
  #status-error { grid-column: 1/-1; }
  [data-page=plans] #plans { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px 36px; align-items: start; }
  [data-page=plans] .section-heading { grid-column: 1/-1; margin-bottom: 4px; }
  [data-page=plans] .section-heading h2 { font-size: 34px; }
  .plans-checkout { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
  .plans-checkout .summary-box { border-top: 0; margin-top: 0; padding-top: 0; }
  .tariff-card { padding: 20px; }.tariff-caption { font-size: 15px; }
  .profile-layout { display: grid; grid-template-columns: minmax(240px,.85fr) minmax(0,1.15fr); gap: 36px 64px; align-items: start; max-width: 1020px; margin: auto; }
  .profile-layout > .profile-hero { grid-column: 1; grid-row: 1/5; position: sticky; top: 120px; padding: 32px 0; }
  .profile-layout > :not(.profile-hero) { grid-column: 2; }
  .profile-hero .orbit-art { transform: scale(1.15); margin-bottom: 24px; height: 200px; }
  .profile-hero h1 { font-size: 34px; }
  .profile-id-button { font-size: 16px; }
  .status-card { padding: 20px; }.plan-name { font-size: 25px; }.expiry-pill { font-size: 13px; }
  #renew-card .plan-sub { font-size: 14px; } #renew-card .plan-save { font-size: 12px; }
  #renew-card .summary-box { font-size: 14px; }
  .wizard-card { max-width: 560px; margin: 0 auto; }
  #toast-modal { bottom: 28px; }
}

/* Fluid spacing follows the viewport; short screens retain natural scrolling. */
:root { --page-gutter: clamp(14px, 4vw, 24px); --nav-space: 96px; }
body:has(.bottom-nav) { padding-bottom: calc(var(--nav-space) + env(safe-area-inset-bottom, 0px)); }
[data-page=index] .container, [data-page=plans] .container, [data-page=profile] .container {
  padding-inline: var(--page-gutter);
  min-height: calc(100dvh - var(--nav-space) - env(safe-area-inset-bottom, 0px));
}
.profile-layout { align-items: center; }
.profile-hero { margin-bottom: clamp(14px, 2.5vh, 26px); }
.profile-hero .orbit-art { height: clamp(105px, 20dvh, 175px); }
.profile-hero h1 { font-size: clamp(25px, 6vw, 34px); }
.plans-checkout { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(16px, 4vw, 24px); }
.plans-checkout .summary-box { margin-top: 0; padding-top: 0; border-top: 0; }
.summary-row { overflow-wrap: anywhere; }
.summary-row > span { min-width: 0; }
.summary-row > span:last-child { flex-shrink: 0; max-width: 60%; }
.terms-text { text-wrap: pretty; }
.status-card .plan-name { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  [data-page=index] .container, [data-page=plans] .container, [data-page=profile] .container { margin-top: 0; border: 0; background: transparent; border-radius: 0; padding-top: max(16px, env(safe-area-inset-top, 0px)); }
  .header { margin-bottom: clamp(16px, 3dvh, 28px); }
  [data-page=plans] .tariff-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(7px, 2vw, 12px); margin-bottom: 18px; }
  [data-page=plans] .tariff-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 10px; padding: 18px 5px 16px; border-radius: 19px; text-align: center; min-height: 172px; }
  [data-page=plans] .tariff-symbol { width: 28px; height: 28px; }
  [data-page=plans] .tariff-symbol svg { width: 25px; height: 25px; }
  [data-page=plans] .tariff-name { display: block; font-size: clamp(14px, 3.9vw, 17px); font-weight: 750; }
  [data-page=plans] .tariff-caption { font-size: clamp(12px, 3.1vw, 14px); margin-top: 5px; }
  [data-page=plans] .tariff-description, [data-page=plans] .tariff-card .badge-popular { display: none; }
  [data-page=plans] .tariff-price { text-align: center; margin-top: auto; }
  [data-page=plans] .tariff-price strong { font-size: clamp(21px, 5.6vw, 26px); font-weight: 750; letter-spacing: -.7px; }
  [data-page=plans] .tariff-price small { font-size: 12px; }
  [data-page=plans] .tariff-card.glass-active { border-color: #c1b0f5; background: linear-gradient(150deg, #302a3f, #211e2b); box-shadow: 0 5px 20px #b3a0e20c; }
  [data-page=plans] .tariff-card.glass-active::after { content: '✓'; position: absolute; top: 8px; right: 9px; color: var(--accent); font-size: 12px; font-weight: 800; }
  [data-page=plans] .section-heading { margin-bottom: 16px; }
  [data-page=plans] .section-heading h2 { font-size: clamp(23px, 5.8vw, 28px); }
  [data-page=plans] .period-picker { margin-bottom: 14px; }
  [data-page=plans] .site-footer { display: none; }
  [data-page=plans] .container { padding-bottom: 8px; }
  [data-page=plans] .tariff-card { min-height: 162px; padding-block: 14px; gap: 8px; }
  [data-page=plans] .section-heading { margin-bottom: 12px; }
  .period-picker .period-label { font-size: clamp(13px, 3.5vw, 15px); }
  .period-picker .period-saving { font-size: clamp(11px, 3vw, 13px); }
  .site-footer { margin-top: 20px; padding-top: 16px; }
  .hero { padding-top: 0; padding-bottom: clamp(16px, 3dvh, 26px); }
  .hero .orbit-art { height: clamp(110px, 21dvh, 190px); }
  .hero h1 { font-size: clamp(32px, 8.8vw, 46px); }
  .profile-layout { display: flex; flex-direction: column; }
  .profile-layout > * { width: 100%; }
  [data-page=profile] .container { display: flex; flex-direction: column; }
  [data-page=profile] .profile-layout { flex: 1; justify-content: center; }
  [data-page=profile] .profile-hero { flex: 0; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .header { margin-bottom: 12px; }
  .hero .orbit-art, .profile-hero .orbit-art { height: 105px; transform: scale(.8); margin-bottom: 0; }
  .hero h1 { margin-block: 8px; }
  .hero { padding-bottom: 16px; }
  .trial-card { padding: 18px; margin-bottom: 12px; }
  .profile-hero { margin-bottom: 12px; }
  .profile-id-button { margin-top: 2px; }
  [data-page=plans] .tariff-card { min-height: 154px; padding-block: 12px; gap: 6px; }
}
@media (min-width: 900px) {
  body:has(.bottom-nav) { padding-bottom: 24px; }
  [data-page=index] .container, [data-page=plans] .container, [data-page=profile] .container { min-height: calc(100dvh - 24px); padding-inline: 0; }
  [data-page=profile] .profile-layout { min-height: min(580px, calc(100dvh - 160px)); }
  .profile-layout > .profile-hero { position: static; }
}

/* Compact comparison, visible savings and the shared connection flow. */
.progress-track { height: 13px; border-radius: 8px; background: #ffffff0a; box-shadow: inset 0 1px 3px #0002; }
.progress-fill { background: linear-gradient(90deg, #aa92dd, #d0bff8); }
.tariff-old-price { display: block; color: #a8a2b7; font-size: 13px; font-weight: 500; line-height: 1.25; text-decoration-thickness: 1px; text-decoration-color: #ddd3ef; }
.price-placeholder { visibility: hidden; }
[data-tariff-price] { display: inline-block; }
.period-picker .period-saving.discount-label { color: var(--green); font-size: 13px; font-weight: 750; }
.receipt-discount { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: -2px 0 16px; padding: 12px 14px; background: #9cdbbe09; border: 1px solid #9cdbbe24; border-radius: 14px; color: #b8e8d0; font-size: 14px; animation: enter .24s var(--ease); }
.receipt-discount strong { font-size: 18px; font-weight: 750; }
.receipt-discount small { grid-column: 1/-1; font-size: 12px; color: #abbeb5; }
.receipt-discount del { color: #c8d1cc; }
.btn-primary.is-loading, .btn-claim-trial.is-loading { opacity: .8; cursor: wait; }
.is-loading::before { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.wizard-card { min-height: 420px; }
.setup-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#setup-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.setup-progress { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 26px; }
.setup-progress li { color: var(--muted); font-size: 12px; padding-top: 10px; border-top: 3px solid #ffffff12; transition: border-color .25s, color .25s; }
.setup-progress li[aria-current=step] { color: var(--accent); border-color: var(--accent); font-weight: 650; }
.setup-progress li.completed { color: var(--green); border-color: var(--green); }
[data-setup-step]:not(.hidden) { animation: enter .25s var(--ease); }
[data-setup-step] h2 { font-size: clamp(23px,5.8vw,28px); font-weight: 700; letter-spacing: -.7px; line-height: 1.15; }
[data-setup-step] h2:focus { outline: none; }
.setup-description { margin: 12px 0 22px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.setup-devices { margin-bottom: 24px; }
.setup-devices button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px; }
.setup-devices strong { font-size: 15px; }.setup-devices span:last-child { font-size: 12px; color: var(--muted); }
.device-symbol { font-size: 34px; color: var(--accent); line-height: 1; }
.setup-client { display: flex; align-items: center; gap: 6px; padding-right: 12px; border-radius: 17px; }
.setup-client .app-item { border: 0; background: transparent; border-radius: 17px; flex: 1; text-align: left; min-width: 0; margin: 0; padding: 14px 10px; justify-content: flex-start; }
.setup-client:has(.app-item-active) { border-color: #b3a0e280; background: #24212e; }
.setup-client .app-check { margin-left: auto; }.setup-client strong { font-size: 16px; }
.setup-client small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.client-initial { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); font-size: 21px; font-weight: 700; }
.setup-client .download-btn { font-size: 23px; }
.setup-ready { display: grid; place-items: center; width: 52px; height: 52px; color: var(--green); background: #9cdbbe0d; border: 1px solid #9cdbbe28; border-radius: 18px; font-size: 27px; margin-bottom: 20px; }
.setup-hint { font-size: 13px; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.setup-profile-link { display: flex; align-items: center; justify-content: center; }
@media (max-width: 899px) {
  [data-page=plans] .tariff-card { min-height: 116px; padding: 12px 5px 10px; gap: 8px; border-radius: 16px; }
  [data-page=plans] .tariff-symbol { display: none; }
  [data-page=plans] .tariff-name { font-size: clamp(14px,3.8vw,17px); }
  [data-page=plans] .tariff-caption { margin-top: 2px; }
  [data-page=plans] .tariff-price strong { font-size: clamp(21px,5.5vw,25px); }
  [data-page=plans] .tariff-price small { display: inline; font-size: 12px; margin-left: 2px; }
  [data-page=plans] .tariff-card.glass-active::after { display: none; }
  .tariff-old-price { font-size: 12px; }
  .wizard-card { padding: 20px; min-height: 410px; }
}
@media (max-width: 360px) {
  [data-page=plans] .tariff-price small { display: block; font-size: 11px; }
  .wizard-card { padding: 16px; }
  .setup-progress { gap: 6px; }.setup-progress li { font-size: 11px; }
}

/* Compact, familiar system typography and receipt hierarchy. */
:root { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-synthesis: weight; }
body { font-weight: 400; line-height: 1.4; }
.hero h1 { font-weight: 700; }.hero-description { font-weight: 400; }
.tariff-name, .section-heading h2, .profile-hero h1 { font-weight: 700; }
.tariff-price strong, .plan-name { font-weight: 750; }
.checkout-column { min-width: 0; }
.plans-checkout { padding: 16px; border-radius: 20px; }
.plans-checkout .summary-box { font-size: 14px; padding: 0; margin: 0 0 16px; }
.plans-checkout .summary-row { line-height: 1.35; margin-bottom: 6px; gap: 8px; }
#summary-plan-name, #summary-period-calc { color: var(--text); font-weight: 700; }
.plans-checkout .summary-row.total { display: flex; align-items: baseline; padding-top: 10px; margin: 8px 0 0; font-size: 16px; font-weight: 800; }
.plans-checkout .summary-row.total > span:first-child { margin-right: auto; }
.plans-checkout .summary-row.total #summary-total-price { font-size: 20px; letter-spacing: -.4px; font-weight: 800; }
#summary-standard-price { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.amount-compensation { color: #65dcb0; font-weight: 800; }
.amount-surcharge { color: #f0c77d; font-weight: 800; }
.tariff-warning { display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: #c1b0f509; border: 1px solid #c1b0f523; border-radius: 20px; margin-bottom: 12px; font-size: 14px; color: #ded8e7; line-height: 1.5; }
.warning-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f0c77d22; color: #f0c77d; font-size: 18px; font-weight: 750; flex-shrink: 0; }
.tariff-old-price { display: inline; font-size: 11px; margin-right: 5px; }
.tariff-price { white-space: nowrap; }
.price-placeholder { display: none; }
.terms-text { font-size: 12px; line-height: 1.5; margin-top: 12px; }
.btn-primary { font-weight: 700; }
@media (max-width: 899px) {
  [data-page=plans] .tariff-card { min-height: 101px; padding: 12px 4px 10px; gap: 9px; }
  [data-page=plans] .tariff-name { font-size: 15px; }
  [data-page=plans] .tariff-caption { font-size: 12px; }
  [data-page=plans] .tariff-price strong { font-size: clamp(19px,5.2vw,23px); }
  [data-page=plans] .tariff-price small { display: block; font-size: 11px; margin: 1px 0 0; }
  .tariff-old-price { margin-right: 3px; font-size: 10px; }
  .profile-hero h1 { font-size: 28px; }
}
@media (min-width: 900px) {
  .checkout-column { position: sticky; top: 100px; }
  .plans-checkout { padding: 20px; }
}
.container[tabindex="-1"]:focus, #plans-title[tabindex="-1"]:focus, #profile-name[tabindex="-1"]:focus, main h1[tabindex="-1"]:focus { outline: none; }
.route-loading::after { content: ''; position: fixed; z-index: 150; top: 0; left: 0; width: 35%; height: 2px; background: var(--accent); animation: route-progress 1s ease-in-out infinite; }
@keyframes route-progress { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
.device-logo { width: 40px; height: 44px; color: var(--accent); margin: 3px 0 7px; }
.device-logo-android { width: 40px; height: 32px; margin-block: 9px 13px; }
.setup-devices button { gap: 8px; padding: 20px 8px; }
@keyframes page-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
body.client-navigation #main-container, body.client-navigation #profile-content { animation: none; }

/* Polished account actions and the unused-trial gift. */
.header-actions { gap: 6px; }
.header-actions .icon-btn { width: 40px; height: 40px; }
.header-actions .icon-btn svg { width: 19px; height: 19px; }
.header-actions .user-chip { min-height: 40px; padding: 7px 11px; font-size: 13px; }
.header-actions .dot-online { width: 7px; height: 7px; }
#claim-trial-box { margin-top: 20px; }
#claim-trial-box .btn-claim-trial {
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1.5px solid #bf83f2;
  border-radius: 15px;
  background: #bd7df61a;
  color: #eee0ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
#claim-trial-box .btn-claim-trial svg { color: #d0a4ff; }
#claim-trial-box .btn-claim-trial:hover { background: #bd7df630; border-color: #d6aaff; }
.btn-back,
.setup-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #c1b0f52b;
  border-radius: 12px;
  background: #c1b0f508;
  color: #c5c2d1;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, border-color .2s, color .2s, transform .16s var(--ease);
}
.btn-back:hover,
.setup-profile-link:hover { background: #c1b0f515; border-color: #c1b0f54d; color: var(--accent); }
.btn-back:active,
.setup-profile-link:active { transform: scale(.98); }
.setup-profile-link { width: 100%; margin-top: 14px; }

/* Compact Telegram choice below the device cards. */
.setup-devices { margin-bottom: 12px; }
.setup-telegram { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px; margin-bottom: 24px; cursor: pointer; color: var(--text, #fff); }
.setup-telegram svg { width: 24px; height: 24px; color: #54a9eb; }
.setup-telegram strong { font-size: 15px; }
.setup-proxy-choice { display: grid; gap: 8px; margin: 0 0 16px; text-align: left; font-size: 14px; color: var(--text-muted, #a8b3c7); }
.setup-proxy-choice select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: #171d29; color: #fff; font: inherit; font-size: 16px; }
.setup-is-telegram .setup-proxy-choice { margin-bottom: 12px; }
.setup-progress.setup-progress-telegram { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Mobile screens: keep controls readable and reserve the real navigation height. */
@media (max-width: 899px) {
  :root { --nav-space: 80px; }
  .container { padding-bottom: 12px; }
  .header { margin-bottom: 12px; }
  .bottom-nav { bottom: max(12px, env(safe-area-inset-bottom, 0px)); padding: 4px; }
  .nav-item { min-height: 48px; gap: 4px; }
  .hero { padding-bottom: 16px; }
  .hero .orbit-art { width: 200px; height: 124px; margin-bottom: 4px; transform: none; }
  .hero .orbit-ring { width: 180px; height: 70px; margin: -35px 0 0 -90px; }
  .hero .orbit-ring.second { width: 148px; height: 90px; margin: -45px 0 0 -74px; }
  .hero .orbit-ring.third { width: 190px; height: 100px; margin: -50px 0 0 -95px; }
  .hero .orbit-core { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .hero .orbit-dot { left: 20px; top: 76px; }
  .hero h1 { margin-block: 10px; }
  .trial-card { padding: 18px; margin-bottom: 12px; }
  .trial-header { margin-bottom: 14px; }
  .home-account { padding: 18px; }
  .home-account h2 { margin-top: 8px; font-size: 23px; }
  .home-account p { margin: 8px 0 14px; font-size: 14px; }
  .btn-primary { min-height: 48px; padding-block: 12px; }
  .btn-secondary { min-height: 44px; padding-block: 10px; margin-top: 8px; }
  [data-page=index] .site-footer { margin-top: 14px; padding-top: 12px; }
  [data-page=plans] .section-heading { margin-top: 0; margin-bottom: 12px; }
  [data-page=plans] .period-picker { margin-bottom: 12px; }
  [data-page=plans] .tariff-list { margin-bottom: 12px; }
  .plans-checkout { padding: 14px; }
  .plans-checkout .summary-box { margin-bottom: 12px; }
  .terms-text { margin-top: 10px; }
  .profile-layout { gap: 12px; justify-content: flex-start !important; }
  .profile-hero { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; margin-bottom: 0; }
  .profile-hero .orbit-art { grid-row: 1 / 3; width: 76px; height: 76px; margin: 0; transform: none; }
  .profile-hero .orbit-core { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .profile-hero .orbit-letter { font-size: 28px; }
  .profile-hero .orbit-ring { width: 80px; height: 30px; margin: -15px 0 0 -40px; }
  .profile-hero .orbit-ring.second { width: 64px; height: 48px; margin: -24px 0 0 -32px; }
  .profile-hero .orbit-ring.third { width: 84px; height: 50px; margin: -25px 0 0 -42px; }
  .profile-hero .orbit-dot { left: 3px; top: 50px; width: 4px; height: 4px; }
  .profile-hero .orbit-star { right: 0; top: 4px; }
  .profile-hero h1 { font-size: 26px; line-height: 1.2; text-align: left; align-self: end; }
  .profile-id-button { grid-column: 2; justify-self: start; min-height: 44px; margin-top: 0; padding: 8px 0; font-size: 13px; }
  .status-card { padding: 16px; margin-bottom: 12px; }
  .status-card .status-row { display: flex; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
  .status-card .plan-badge { padding-right: 0; }
  .status-card .expiry-pill { position: static; white-space: normal; max-width: 100%; }
  .status-card .plan-name { margin-top: 6px; }
  .traffic-label-row { flex-wrap: wrap; }
  #claim-trial-box { margin-top: 14px; }
  .profile-layout details.referral-card { margin: 0; }
  .profile-layout .referral-card summary { min-height: 64px; padding: 12px 14px; }
  .profile-layout .account-exit { margin: 0; min-height: 44px; padding-block: 8px; }
  .wizard-card { min-height: 0; padding: 18px; }
  .setup-progress { margin-bottom: 18px; }
  .setup-description { margin: 10px 0 16px; line-height: 1.5; }
  .setup-devices button { padding: 16px 8px; }
  .setup-telegram { min-height: 44px; margin-bottom: 16px; }
  .setup-ready { margin-bottom: 14px; }
  .setup-hint { margin-top: 14px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .container { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .hero .orbit-art { height: 100px; }
  .hero .orbit-ring.third { display: none; }
  .hero .orbit-core { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .hero h1 { margin-block: 8px; }
  .hero .eyebrow { letter-spacing: 1.5px; }
  .profile-layout { gap: 10px; }
}
@media (max-width: 899px) {
  /* The chosen tariff and monthly price are already visible in its card. */
  .plans-checkout .summary-secondary { display: none; }
  .profile-layout .referral-card summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 10px; }
  .profile-layout .ref-head { grid-column: 2; }
  .profile-layout .ref-head strong { white-space: normal; }
  .profile-layout .ref-badge { grid-column: 2; grid-row: 2; justify-self: start; }
  .profile-layout .ref-chev { grid-column: 3; grid-row: 1; }
}
@media (max-width: 899px) and (max-height: 700px) {
  [data-page=index] .site-footer { display: none; }
  [data-page=index]:has(#home-account:not(.hidden)) .hero-description { display: none; }
  .profile-layout { gap: 8px; }
}
@media (max-width: 899px) and (max-height: 600px) {
  .hero .orbit-art { display: none; }
  .hero .eyebrow { margin-bottom: 12px; }
  .trial-card .trial-gift { display: none; }
  .hero { padding-bottom: 12px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  [data-page=index] .container, [data-page=plans] .container, [data-page=profile] .container {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }
}
@media (max-width: 899px) and (max-height: 700px) {
  .plans-checkout .summary-box { margin-bottom: 10px; }
}

/* Distribute spare height around the page content, keeping navigation clear. */
body[data-page=index] .container,
body[data-page=plans] .container,
body[data-page=profile] .container,
body[data-page=auth] .container {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--nav-space) - env(safe-area-inset-bottom, 0px));
}
.container > .header { flex-shrink: 0; }
.container > #selection-screen,
.container > .profile-layout,
.container > .auth-layout,
.container > #wizard-screen {
  flex: 0 0 auto;
  margin-block: auto;
  width: 100%;
}
.container > .profile-layout { min-height: 0; }
.container > #wizard-screen { width: min(100%, 560px); margin-inline: auto; }
@media (max-width: 899px) {
  .profile-layout > .profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
  }
  .profile-layout .profile-hero .orbit-art { flex-shrink: 0; margin: 0 auto 4px; }
  .profile-layout .profile-hero h1 { align-self: center; text-align: center; }
  .profile-layout .profile-id-button { align-self: center; justify-content: center; padding-inline: 12px; }
}
@media (min-width: 900px) {
  body[data-page] .container { min-height: calc(100dvh - 24px); }
}
@media (max-width: 899px) and (max-height: 700px) {
  .profile-layout .profile-hero .orbit-art { height: 56px; margin-bottom: 2px; }
}
@media (min-width: 900px) {
  .container > .profile-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 560px;
  }
  .profile-layout > * { width: 100%; }
  .profile-layout > .profile-hero { padding: 0; margin-bottom: 0; text-align: center; }
  .profile-layout .profile-hero .orbit-art { height: 110px; transform: scale(.7); margin: 0 auto; }
  .profile-layout .profile-hero h1 { font-size: 28px; text-align: center; }
  .profile-layout .profile-id-button { margin-top: 0; }
}
