/* Component geometry and semantic palette from parus-vpn-miniapp-v2.html.
 * Live data, auth, navigation and payment logic remain in the existing SPA. */
:root {
  color-scheme: dark;
  --canvas: #040c15;
  --base: #071421;
  --surface: #0e2032;
  --surface2: #13283d;
  --surface3: #1b344a;
  --stroke: #3e566b;
  --stroke-control: #70899c;
  --text: #f4f9fc;
  --muted: #a1b6c8;
  --soft: #c5d3df;
  --link: #65d0fa;
  --link-bg: #123249;
  --success: #c9f24e;
  --success-bg: #253824;
  --warning: #ffd094;
  --warning-bg: #3b2d21;
  --danger: #ffa6ae;
  --danger-bg: #44252e;
  --primary-bg: #c9f24e;
  --primary-text: #15200c;
  --secondary-bg: #096084;
  --secondary-text: #ffffff;
  --hero-start: #163b54;
  --hero-end: #0a2034;
  --hero-border: #39647b;
  --hero-text: #ffffff;
  --hero-muted: #c5dce7;
  --hero-accent: #c9f24e;
  --hero-chip: #1e4155;
  --hero-track: #345468;
  --hero-decoration: rgba(111, 210, 250, .08);
  --expired-start: #3b3026;
  --expired-end: #1a2836;
  --overlay: rgba(1, 8, 15, .78);
  --qr-paper: #ffffff;
  --qr-ink: #071421;
  --frame-stroke: #3b5164;
  --studio-bg: #0b1722;
  --studio-text: #e2edf5;
  --studio-muted: #a9bece;
  --studio-control: #1a3042;
  --studio-stroke: #526b7e;
  --focus: var(--link);
  --transparent: transparent;
  --shadow-color: rgba(0, 0, 0, .25);

  --space-0: 0;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-16: 4rem;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-xs: .75rem;
  --text-sm: .8125rem;
  --text-base: .9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-display: 2.125rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --weight-heavy: 800;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --tracking-title: -.025em;
  --tracking-label: .06em;
  --radius-sm: .5rem;
  --radius-control: .8125rem;
  --radius-card: 1.1875rem;
  --radius-hero: 1.5rem;
  --radius-frame: 2rem;
  --radius-pill: 100vmax;
  --border-width: 1px;
  --border-selected: 2px;
  --focus-width: 2px;
  --focus-offset: 3px;
  --control-height: 3rem;
  --touch-size: 2.75rem;
  --icon-size: 1.25rem;
  --icon-small: 1rem;
  --icon-large: 1.75rem;
  --mark-size: 2.25rem;
  --brand-symbol-size: 1.5rem;
  --brand-stroke-width: 1.5;
  --radio-size: 1.125rem;
  --status-dot: .5rem;
  --progress-height: .375rem;
  --device-width: 24.5rem;
  --device-height: 53rem;
  --desktop-width: 74rem;
  --sidebar-width: 14rem;
  --content-width: 56rem;
  --dialog-width: 28rem;
  --studio-width: 86rem;
  --qr-size: 14rem;
  --illustration-height: 7rem;
  --art-size: 15rem;
  --art-offset: -5rem;
  --textarea-height: 8rem;
  --field-inline-width: 12rem;
  --page-gutter: var(--space-4);
  --card-padding: var(--space-4);
  --section-gap: var(--space-5);
  --nav-height: 4.5rem;
  --dialog-height: 100dvh;
  --progress: 0%;
  --telegram-safe-top: 0px;
  --telegram-safe-bottom: 0px;
  --telegram-safe-left: 0px;
  --telegram-safe-right: 0px;
  --telegram-content-top: 0px;
  --telegram-content-bottom: 0px;
  --telegram-content-left: 0px;
  --telegram-content-right: 0px;
  --studio-gutter: max(var(--space-3), calc((100vw - var(--studio-width)) / 2));
  --shadow-card: 0 .75rem 2rem var(--shadow-color);
  --shadow-frame: 0 1.5rem 5rem var(--shadow-color);
  --shadow-dock: 0 -.5rem 1.5rem var(--shadow-color);
  --duration-fast: 140ms;
  --duration-normal: 200ms;
  --duration-reduced: .01ms;
  --disabled-opacity: .58;
  --motion-distance: .5rem;
  --blur-overlay: 4px;
  --z-studio: 5;
  --z-dock: 4;
  --z-toast: 50;
  --z-dialog: 40;
  --offscreen-size: 1px;
  --hidden-clip: inset(50%);
}
html[data-theme="light"] {
  color-scheme: light;
  --canvas: #e6eef3;
  --base: #f5f9fc;
  --surface: #ffffff;
  --surface2: #edf3f7;
  --surface3: #dae7f0;
  --stroke: #8299aa;
  --stroke-control: #657f92;
  --text: #102838;
  --muted: #4e6777;
  --soft: #354f60;
  --link: #006b94;
  --link-bg: #dfeff6;
  --success: #456100;
  --success-bg: #edf3d5;
  --warning: #85500a;
  --warning-bg: #fff1db;
  --danger: #aa293b;
  --danger-bg: #fbe7ea;
  --primary-bg: #c9f24e;
  --primary-text: #15200c;
  --shadow-color: rgba(19, 55, 75, .1);
}
:root {
  --ink: var(--text); --ink-2: var(--soft); --ink-3: var(--muted);
  --paper: var(--surface); --paper-2: var(--surface2); --paper-3: var(--surface3);
  --line: var(--stroke); --line-control: var(--stroke-control);
  --accent: var(--primary-bg); --on-accent: var(--primary-text);
  --accent-text: var(--link); --nav-active-bg: var(--link-bg); --nav-active-text: var(--link);
  --shell-width: var(--device-width); --space-cards: var(--section-gap);
}
html { font-size: 100%; }
body { font-family: var(--font); font-size: var(--text-base); line-height: var(--leading-normal); background: var(--canvas); }
.app-shell { background: var(--base); }
.app-header { min-height: var(--space-16); background: var(--base); }
.app-main { padding-top: var(--space-4); padding-inline: calc(var(--page-gutter) + var(--app-safe-left)) calc(var(--page-gutter) + var(--app-safe-right)); }
.app-tabs { background: var(--base); }
.head { gap: var(--space-2); }
.head h1 { font-size: var(--text-xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-title); }
.head__sub { font-size: var(--text-base); color: var(--muted); }
.head .kicker { color: var(--link); }
.card { border-width: var(--border-width); border-radius: var(--radius-card); padding: var(--card-padding); box-shadow: none; background: var(--surface); }
.card__label { gap: var(--space-2); flex-wrap: wrap; }
.card__label-title { font-size: var(--text-lg); line-height: var(--leading-tight); color: var(--text); }
.usage-meta, .list__hint { font-size: var(--text-sm); }
.btn { min-height: var(--control-height); border-radius: var(--radius-control); padding: var(--space-3) var(--space-4); font-size: var(--text-base); line-height: var(--leading-normal); font-weight: var(--weight-bold); overflow-wrap: anywhere; }
.btn--primary { background: var(--primary-bg); color: var(--primary-text); border-color: var(--primary-bg); box-shadow: none; }
.btn--surface, .btn--secondary { background: var(--surface2); color: var(--text); border-color: var(--stroke); }
.chip { border-radius: var(--radius-pill); padding: var(--space-1) var(--space-2); font-size: var(--text-xs); }
.chip--info { color: var(--link); background: var(--link-bg); }
.quick-access { display: flex; flex-direction: column; gap: var(--space-3); }
.quick-access .card__label-title { flex: 1 1 auto; }
.quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-2); }
.vpn-client-picker, .vpn-pool-picker { min-width: 0; padding: 0; border: 0; margin: 0; }
.vpn-client-picker legend, .vpn-pool-picker legend { font-size: var(--text-sm); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.vpn-client-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-2); }
.vpn-client-choice { min-width: 0; min-height: var(--control-height); text-align: left; border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-control); background: var(--surface2); color: var(--text); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); }
.vpn-client-choice span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: var(--text-xs); color: var(--muted); }
.vpn-client-choice[aria-pressed="true"] { border: var(--border-selected) solid var(--link); background: var(--link-bg); }
.vpn-pool-choices { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.vpn-pool-choice { min-height: var(--touch-size); padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); overflow-wrap: anywhere; min-width: 0; }
.vpn-pool-choice[aria-pressed="true"] { background: var(--link-bg); color: var(--link); border-color: var(--link); }
.usage-grid { display: flex; flex-direction: column; gap: var(--section-gap); }
.profile-hero { --ink: var(--hero-text); --ink-2: var(--hero-muted); --ink-3: var(--hero-muted); border-radius: var(--radius-hero); border-color: var(--hero-border); background: linear-gradient(145deg,var(--hero-start),var(--hero-end)); color: var(--hero-text); padding: var(--space-5); position: relative; overflow: hidden; }
.profile-hero .figure__value { font-size: var(--text-display); }
.profile-hero { background-color: var(--hero-end); }
.profile-hero .card__label-title, .profile-hero .figure__value, .profile-hero .figure__unit { color: var(--hero-text); }
.profile-hero .btn--primary { background: var(--primary-bg); color: var(--primary-text); border-color: var(--primary-bg); }
.profile-hero .btn--surface { --paper: var(--surface2); --ink: var(--text); }
.profile-hero .card__label-meta, .profile-hero .usage-meta { color: var(--hero-muted); }
.profile-hero .free-sources { color: var(--hero-text); }
.profile-hero .chip--ok { color: var(--hero-accent); background: var(--hero-chip); border-color: var(--hero-border); }
.home-shortcuts { border: var(--border-width) solid var(--stroke); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.home-shortcuts .list__item { width: 100%; text-align: left; border-radius: 0; padding: var(--space-4); color: var(--text); background: var(--transparent); }
.home-shortcuts .list__item + .list__item { border-top: var(--border-width) solid var(--stroke); }
.home-shortcuts .list__label { display: flex; flex-direction: column; gap: var(--space-1); }
.home-shortcuts .list__hint { font-weight: var(--weight-normal); color: var(--muted); }
.free-plan-intro { display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface2); }
.plan-list { display: flex; flex-direction: column; gap: var(--space-3); }
.plan { border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-card); background: var(--surface); color: var(--text); padding: var(--space-4); gap: var(--space-3); min-width: 0; }
.plan__name { font-size: var(--text-lg); font-weight: var(--weight-bold); }
.plan__traffic { font-size: var(--text-sm); color: var(--muted); }
.plan__price strong { font-size: var(--text-xl); }
.plan__action-icon { display: none; }
.plan--recommended { border-color: var(--link); background: var(--link-bg); }
@media (min-width: 900px) {
  .app-shell { max-width: var(--desktop-width); }
  .usage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-main { max-width: none; }
  .quick-access { max-width: var(--content-width); width: 100%; }
}

/* The three catalogue/help/referral screens use the prototype's actual layout. */
.prototype-page, .prototype-stack { display: flex; flex-direction: column; min-width: 0; }
.prototype-page { gap: var(--section-gap); overflow-wrap: anywhere; }
.prototype-stack { gap: var(--space-3); }
.prototype-page h2 { font-size: var(--text-lg); line-height: var(--leading-tight); margin: 0; }
.prototype-page h3 { font-size: var(--text-md); line-height: var(--leading-tight); margin: 0; }
.prototype-subtle { font-size: var(--text-sm); color: var(--muted); }
.prototype-small { font-size: var(--text-sm); }
.prototype-success { color: var(--success); }
.prototype-flat { background: var(--surface2); }
.prototype-card-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; min-width: 0; max-width: 100%; }
.prototype-card-title > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.prototype-tag { display: inline-flex; align-items: center; align-self: flex-start; padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--link); background: var(--link-bg); max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.prototype-tag--ok { color: var(--success); background: var(--success-bg); }
.prototype-icon { width: var(--icon-size); height: var(--icon-size); flex: none; }
.prototype-grow { flex: 1; min-width: 0; }
.prototype-action-row { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-width: 0; padding: var(--space-3); border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-card); background: var(--surface); color: var(--text); text-align: left; overflow-wrap: anywhere; }
.prototype-action-row__label { display: block; font-size: var(--text-base); font-weight: var(--weight-bold); }
.prototype-action-row__desc { display: block; font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-1); }
.prototype-columns, .prototype-page .prototype-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--section-gap); }
.prototype-page .prototype-plan { display: flex; flex-direction: column; align-items: stretch; justify-content: start; gap: var(--space-3); width: 100%; padding: var(--card-padding); border: var(--border-selected) solid var(--stroke-control); border-radius: var(--radius-card); background: var(--surface); color: var(--text); text-align: left; min-width: 0; }
.prototype-page .prototype-plan--selected { border-color: var(--success); background: var(--success-bg); }
.prototype-plan-top, .prototype-plan-name { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.prototype-plan-top { justify-content: space-between; }
.prototype-page .prototype-plan-name { font-size: var(--text-base); font-weight: var(--weight-bold); }
.prototype-radio { width: var(--radio-size); height: var(--radio-size); border: var(--border-selected) solid currentColor; border-radius: var(--radius-pill); display: grid; place-items: center; flex: none; }
.prototype-radio .prototype-icon { width: var(--icon-small); height: var(--icon-small); }
.prototype-page .prototype-price { display: block; text-align: left; font-size: var(--text-xl); font-weight: var(--weight-heavy); line-height: var(--leading-tight); color: var(--text); letter-spacing: var(--tracking-title); }
.prototype-perks { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.prototype-ghost { background: transparent; color: var(--soft); }
.prototype-hero { --ink: var(--hero-text); --paper: var(--hero-end); position: relative; overflow: hidden; padding: var(--space-5); border: var(--border-width) solid var(--hero-border); border-radius: var(--radius-hero); background: var(--hero-end) linear-gradient(145deg,var(--hero-start),var(--hero-end)); color: var(--hero-text); }
.prototype-hero::after { content: ''; position: absolute; width: var(--art-size); height: var(--art-size); border-radius: var(--radius-pill); right: var(--art-offset); top: var(--art-offset); background: var(--hero-decoration); pointer-events: none; }
.prototype-hero > * { position: relative; z-index: 1; }
.prototype-hero .card__label-title { color: var(--hero-text); }
.prototype-hero .prototype-subtle, .prototype-hero .usage-meta, .prototype-hero .card__label-meta, .prototype-hero .muted { color: var(--hero-muted); }
.prototype-hero .prototype-tag { align-self: start; color: var(--hero-accent); background: var(--hero-chip); }
.prototype-page .prototype-hero-number { color: var(--hero-text); font-size: var(--text-display); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-title); }
.prototype-link-box { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); min-width: 0; border: var(--border-width) solid var(--stroke); border-radius: var(--radius-control); padding: var(--space-3); background: var(--surface2); }
.prototype-link-box .referral-code { flex: 1; min-width: 0; width: auto; margin: 0; padding: 0; background: transparent; color: var(--text); font-size: var(--text-xs); overflow-wrap: anywhere; user-select: all; }
.prototype-link-box .btn { width: auto; }
.prototype-compact { min-height: var(--touch-size); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.prototype-metric { font-size: var(--text-display); font-weight: var(--weight-heavy); line-height: var(--leading-tight); letter-spacing: var(--tracking-title); }
.prototype-balance-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); }
.prototype-balance-meta > div { background: var(--surface2); padding: var(--space-3); border-radius: var(--radius-control); min-width: 0; overflow-wrap: anywhere; }
.prototype-balance-meta small { display: block; color: var(--muted); font-size: var(--text-xs); }
.prototype-progress { width: 100%; height: var(--progress-height); }
.prototype-disclosure > summary { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-bold); min-height: var(--touch-size); list-style: none; cursor: pointer; overflow-wrap: anywhere; }
.prototype-disclosure > summary::after { content: '+'; margin-left: auto; color: var(--link); }
.prototype-disclosure[open] > summary::after { content: '−'; }
.prototype-disclosure > summary::-webkit-details-marker { display: none; }
.prototype-disclosure[open] > .disclosure__body { padding-top: var(--space-3); gap: var(--space-3); }
.prototype-field { display: block; width: 100%; min-width: 0; min-height: var(--control-height); padding: var(--space-3); border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-md); }
.prototype-field::placeholder { color: var(--muted); }
.prototype-field-label { display: block; font-weight: var(--weight-bold); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.prototype-filter { min-height: var(--touch-size); padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-pill); background: var(--surface); color: var(--soft); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.prototype-filter[aria-pressed="true"] { color: var(--link); background: var(--link-bg); border-color: var(--link); }
.prototype-ticket { width: 100%; text-align: left; color: var(--text); }
.support [data-testid="support__feedback"]:empty { display: none; }
@media (min-width: 1056px) {
  .prototype-columns, .prototype-page .prototype-plans { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
}
.prototype-page { padding-top: var(--space-1); }
.prototype-page .head__sub { font-size: var(--text-sm); }
.prototype-page h1, .prototype-page h2, .prototype-page h3 { text-wrap: wrap; }
.prototype-page .btn--primary { background: var(--primary-bg); color: var(--primary-text); border-color: var(--primary-bg); }
.prototype-action-icon { display: grid; place-items: center; width: var(--touch-size); height: var(--touch-size); flex: none; border-radius: var(--radius-control); background: var(--link-bg); color: var(--link); }
.prototype-action-row > .prototype-icon:last-child { width: var(--icon-small); height: var(--icon-small); }
@media (max-width: 480px) {
  .prototype-action-row { gap: min(var(--space-3), 3vw); padding: min(var(--space-3), 3vw); }
  .prototype-action-row > .prototype-action-icon { width: min(var(--touch-size), 14vw); height: min(var(--touch-size), 14vw); }
}
.prototype-link-box .referral-code { border: 0; border-radius: 0; box-shadow: none; white-space: normal; }
.prototype-link-box .prototype-compact { width: var(--touch-size); min-width: var(--touch-size); padding: 0; }
.prototype-plan-top { justify-content: start; }
.devices-item + .devices-item { border-top: var(--border-width) solid var(--stroke); padding-top: var(--space-4); }
.devices-item { overflow-wrap: anywhere; }
.devices-item .prototype-action-row__body { display: flex; align-items: flex-start; gap: var(--space-3); }
.devices-item .prototype-action-row__body > .prototype-action-icon { align-self: center; }
.devices-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.devices-actions .btn { flex: 1 1 125px; }
[data-testid="devices__page"] progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: var(--radius-pill); overflow: hidden; background: var(--link-bg); color: var(--success); }
[data-testid="devices__page"] progress::-webkit-progress-bar { background: var(--link-bg); border-radius: var(--radius-pill); }
[data-testid="devices__page"] progress::-webkit-progress-value { background: var(--success); border-radius: var(--radius-pill); }
[data-testid="devices__page"] progress::-moz-progress-bar { background: var(--success); border-radius: var(--radius-pill); }
.devices-pool[aria-selected="true"] { background: var(--link-bg); color: var(--link); border-color: var(--link); }
.devices-header-back { padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; flex: 1 1 0; min-width: 0; }
.app-header--devices .app-header__actions { flex-shrink: 0; }
.devices-header-back strong { font-size: var(--text-sm); min-width: 0; overflow-wrap: anywhere; text-align: left; }
.devices-back-icon { width: var(--tap-target); height: var(--tap-target); display: grid; place-items: center; border: var(--border-width) solid var(--stroke-control); border-radius: var(--shell-control-radius); background: var(--surface); flex: none; }
.devices-back-icon svg { width: 20px; height: 20px; transform: rotate(180deg); }
.prototype-tag--warn { color: var(--warning); background: var(--warning-bg); }
.prototype-tag--danger { color: var(--danger); background: var(--danger-bg); }
.prototype-ghost { border: var(--border-width) solid var(--stroke-control); }
.prototype-icon--sm { width: var(--icon-small); height: var(--icon-small); }
.prototype-icon--lg { width: var(--icon-large); height: var(--icon-large); }
.prototype-icon--logo { stroke-width: var(--brand-stroke-width); }
.prototype-hero--warn { background: var(--expired-end) linear-gradient(145deg, var(--expired-start), var(--expired-end)); }
.prototype-hero-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--hero-muted); }
.prototype-hero-mini { display: inline-flex; align-items: center; gap: var(--space-1); background: var(--hero-chip); padding: var(--space-2); border-radius: var(--radius-sm); }
.prototype-hero .prototype-progress { background: var(--hero-track); }
.prototype-hero .prototype-progress::-webkit-progress-bar { background: var(--hero-track); }
.prototype-hero .prototype-progress::-webkit-progress-value { background: var(--hero-accent); }
.prototype-hero .prototype-progress::-moz-progress-bar { background: var(--hero-accent); }
.prototype-action-row--alert { border-color: var(--success); }
.prototype-action-icon--success { color: var(--success); background: var(--success-bg); }
.prototype-note { margin: 0; border-radius: var(--radius-control); padding: var(--space-3); background: var(--link-bg); color: var(--text); font-size: var(--text-sm); }
.prototype-note--warn { background: var(--warning-bg); color: var(--warning); }
.prototype-note--ok { background: var(--success-bg); color: var(--success); }
.prototype-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.quick-access .vpn-pool-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.quick-access .vpn-pool-choice[aria-pressed="true"] { color: var(--link); background: var(--link-bg); border-color: var(--link); }
.vpn-client-choice { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--space-2); min-width: 0; min-height: var(--control-height); padding: var(--space-3); border: var(--border-selected) solid var(--stroke-control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); text-align: left; }
.vpn-client-choice[aria-pressed="true"] { border-color: var(--link); background: var(--link-bg); }
.vpn-client-choice__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.vpn-client-choice strong { font-size: var(--text-sm); }
.vpn-client-choice span { font-size: var(--text-xs); color: var(--muted); overflow-wrap: anywhere; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.quick-actions .btn { min-width: 0; }
.traffic-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); margin: 0; font-size: var(--text-sm); }
.traffic-details dt { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.traffic-details dd { margin: 0; text-align: right; font-weight: var(--weight-bold); }
.prototype-page .btn { min-height: var(--control-height); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); font-size: var(--text-base); font-weight: var(--weight-bold); white-space: normal; text-wrap: balance; min-width: 0; }
.prototype-page .btn--primary { background: var(--primary-bg) !important; color: var(--primary-text) !important; border: var(--border-width) solid var(--primary-bg) !important; }
.prototype-page .btn--surface { background: var(--surface2) !important; color: var(--text) !important; border: var(--border-width) solid var(--stroke-control) !important; }
.prototype-page .btn--surface:hover:not([disabled]) { background: var(--surface3) !important; border-color: var(--stroke-control) !important; }
.prototype-page .prototype-ghost { background: transparent !important; color: var(--soft) !important; border: var(--border-width) solid var(--stroke-control) !important; }
.prototype-page .btn--danger { background: var(--danger-bg) !important; color: var(--danger) !important; border: var(--border-width) solid var(--danger) !important; }
.prototype-page .prototype-compact { min-height: var(--touch-size); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.prototype-page .progress { height: var(--progress-height); background: var(--surface3); border: 0; border-radius: var(--radius-pill); }
.prototype-page .progress::-webkit-progress-bar { background: var(--surface3); border-radius: var(--radius-pill); }
.prototype-page .progress::-webkit-progress-value { background: var(--success); border-radius: var(--radius-pill); }
.prototype-page .progress::-moz-progress-bar { background: var(--success); border-radius: var(--radius-pill); }
.prototype-page .disclosure__body { padding-top: var(--space-3); }
@media (max-width: 340px) {
  .quick-actions, .vpn-client-choices, .prototype-balance-meta { grid-template-columns: minmax(0, 1fr); }
}
.prototype-back { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; margin-bottom: var(--space-1); color: var(--link); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-bold); align-self: flex-start; }
.prototype-page .summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted); }
.prototype-page .summary-line strong { color: var(--text); text-align: right; overflow-wrap: anywhere; }
.prototype-page .summary-line.total { padding-top: var(--space-3); border-top: var(--border-width) solid var(--stroke); }
.prototype-page .summary-line.total strong { font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-title); }
.prototype-page .payment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(10rem, calc((100% - var(--space-2)) / 2))), 1fr));
  gap: var(--space-2);
}
.prototype-page .choice { display: flex; align-items: flex-start; gap: var(--space-3); width: 100%; min-width: 0; min-height: var(--control-height); padding: var(--space-3); border: var(--border-selected) solid var(--stroke-control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); text-align: left; overflow-wrap: anywhere; font: inherit; cursor: pointer; }
/* Keep the labels readable when the mobile checkout fits two choices per row. */
.prototype-page .payment-option { gap: var(--space-2); padding: var(--space-2); }
.prototype-page .payment-option > .prototype-action-icon { width: var(--icon-large); height: var(--icon-large); }
.prototype-page .choice[aria-checked="true"], .prototype-page .choice[aria-pressed="true"], .prototype-page .choice.active { border-color: var(--link); background: var(--link-bg); }
.prototype-page .choice[disabled] { opacity: 0.55; cursor: not-allowed; }
.prototype-page .choice strong { display: block; font-size: var(--text-base); color: var(--text); }
.prototype-page .choice small { display: block; font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-1); }
.prototype-page .payment-option__radio { width: var(--radio-size); height: var(--radio-size); flex: none; margin-left: auto; align-self: center; border-radius: var(--radius-pill); border: var(--border-selected) solid var(--stroke-control); background: var(--surface); position: relative; }
.prototype-page .choice[aria-checked="true"] .payment-option__radio { border-color: var(--link); background: var(--link); }
.prototype-page .choice[aria-checked="true"] .payment-option__radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--primary-text); }
.prototype-page .checkout-cta { background: var(--base); border-top: var(--border-width) solid var(--stroke); }
.prototype-page .faq { border-top: var(--border-width) solid var(--stroke); border-bottom: 0; padding-top: var(--space-2); }
.prototype-page .faq:first-of-type { border-top: 0; padding-top: 0; }
.prototype-page .faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; min-height: var(--touch-size); padding: var(--space-2) 0; background: transparent; border: 0; color: var(--text); font: inherit; font-weight: var(--weight-bold); text-align: left; cursor: pointer; }
.prototype-page .faq__mark { color: var(--link); flex: none; font-size: var(--text-lg); line-height: 1; }
.prototype-page .faq__a { margin: 0 0 var(--space-2); color: var(--soft); font-size: var(--text-sm); overflow-wrap: anywhere; }
.prototype-page .requisite-card { background: var(--surface2); border: var(--border-width) solid var(--stroke); border-radius: var(--radius-control); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.prototype-page .requisite-card__header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; min-width: 0; }
.prototype-page .requisite-card__label { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.prototype-page .requisite-card__value { font-size: var(--text-sm); color: var(--text); overflow-wrap: anywhere; word-break: normal; }
.prototype-page .requisite-card__copy { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-width: var(--touch-size); min-height: var(--touch-size); max-width: 100%; flex: 0 1 auto; flex-wrap: wrap; padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); white-space: normal; overflow-wrap: anywhere; text-align: center; cursor: pointer; }
.prototype-page .connected-wallet-box { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3); background: var(--surface2); border: var(--border-width) solid var(--stroke); border-radius: var(--radius-control); }
.prototype-page .connected-wallet-label { display: block; font-size: var(--text-xs); color: var(--muted); }
.prototype-page .prototype-note { color: var(--text); border: var(--border-width) solid var(--stroke); }
.prototype-page .prototype-note--warn { background: var(--warning-bg); border-color: var(--warning); color: var(--text); }
.prototype-page .prototype-note--ok { background: var(--success-bg); border-color: var(--success); color: var(--text); }
@media (min-width: 1056px) {
  .checkout-columns {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
  .checkout-columns .checkout-pay-col { grid-column: 1; grid-row: 1; }
  .checkout-columns .checkout-faq-col { grid-column: 1; grid-row: 2; }
  .checkout-columns .checkout-summary-col { grid-column: 2; grid-row: 1 / span 2; }
}
a.prototype-action-row { text-decoration: none; }
.prototype-steps { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; list-style: none; }
.prototype-steps li { flex: 1 1 4.5rem; min-width: 0; display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--muted); overflow-wrap: anywhere; }
.prototype-steps li > span:not(.prototype-step-ball) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.prototype-steps li[aria-current="step"] { color: var(--text); font-weight: var(--weight-bold); }
.prototype-step-ball { width: var(--step-size, 24px); height: var(--step-size, 24px); border-radius: var(--radius-pill); background: var(--surface2); border: var(--border-width) solid var(--stroke-control); display: grid; place-items: center; flex: none; font-weight: var(--weight-bold); font-size: var(--text-xs); color: var(--text); }
.prototype-steps li[aria-current="step"] .prototype-step-ball { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-text); }
.prototype-page .os-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.prototype-page .os-choice { align-items: center; }
.prototype-page .os-choice[aria-selected="true"] { border-color: var(--link); background: var(--link-bg); color: var(--text); }
.prototype-illustration { width: var(--illustration-size, 56px); height: var(--illustration-size, 56px); border-radius: var(--radius-pill); background: var(--link-bg); color: var(--link); display: grid; place-items: center; }
.prototype-page .key-preview { background: var(--surface2); border: var(--border-width) solid var(--stroke); border-radius: var(--radius-control); padding: var(--space-2) var(--space-3); display: flex; align-items: center; gap: var(--space-2); }
.prototype-page .key-preview__toggle { width: auto; flex: none; }
.prototype-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.prototype-fieldset legend { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text); padding: 0; }
.prototype-profile-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.prototype-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.prototype-theme-option { display: flex; align-items: center; gap: var(--space-2); min-height: var(--touch-size); padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--stroke-control); border-radius: var(--radius-control); background: var(--surface2); color: var(--text); font-size: var(--text-sm); font-weight: var(--weight-bold); cursor: pointer; min-width: 0; }
.prototype-theme-option:has(input:checked) { border-color: var(--link); background: var(--link-bg); }
.prototype-theme-option input { margin: 0; accent-color: var(--link); flex: none; }
.prototype-theme-option__label { min-width: 0; overflow-wrap: anywhere; }
.account-order-row { align-items: center; flex-wrap: wrap; }
.account-order-row .prototype-grow { flex: 1 1 7rem; min-width: 0; }
.account-order-amount { white-space: normal; flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; font-size: var(--text-sm); }
.account-danger { border-color: var(--danger); }
.prototype-page .btn--danger-solid { background: var(--danger-solid) !important; color: #ffffff !important; border: var(--border-width) solid var(--danger-solid) !important; }
.prototype-activity { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); background: var(--surface2); border: var(--border-width) solid var(--stroke); border-radius: var(--radius-control); min-width: 0; }
.prototype-activity small { display: block; color: var(--muted); font-size: var(--text-xs); margin-top: var(--space-1); }
.prototype-legal-list { margin: 0; padding-left: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); color: var(--soft); font-size: var(--text-sm); }
.prototype-legal-list li { overflow-wrap: anywhere; }
.prototype-status-msg:empty { display: none; }
.prototype-page .notice-list { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 480px) {
  .prototype-steps li { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .prototype-theme-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 340px) {
  .prototype-page .os-choices { grid-template-columns: minmax(0, 1fr); }
}
