/* Hallmark v2.0.0 · Routing desk · theme: KeyProxy brand · genre: modern-minimal · redesign: restyle · copy: verbatim · hero: working endpoint builder · surface: absolute. */
/* Critique: the product was readable but visually flat; one routing-grid background, stronger control states and Tabler paths now give it a specific technical voice. */
/* Answered F7: common control recipes are intentional for repeated application forms; marketing sections vary through rules, transparent surfaces and a working configurator. */
/* Kept: all routes, content, sections and controls. Layout/copy gates are notes because the owner requires the existing structure. User-requested background pattern is concentrated around the working product. */
:root {
  --kp-paper: #f6f7fc;
  --kp-paper-accent: #edf0f9;
  --kp-surface: #ffffff;
  --kp-ink: #17233b;
  --kp-muted: #52617b;
  --kp-muted-soft: #65728b;
  --kp-line: #d8dfec;
  --kp-line-strong: #8290aa;
  --kp-brand: #2739d5;
  --kp-brand-hover: #1c2da9;
  --kp-brand-soft: #e9edff;
  --kp-navy: #17264b;
  --kp-code: #15213b;
  --kp-code-ink: #edf2ff;
  --kp-white: #ffffff;
  --kp-transparent: transparent;
  --kp-mask: #000000;
  --kp-grid: #dfe5f4;
  --kp-grid-strong: #aebceb;
  --kp-grid-signal: #7689e8;
  --kp-surface-glass: rgba(255,255,255,.97);
  --kp-positive: #17684e;
  --kp-positive-soft: #edf7f1;
  --kp-negative: #a32943;
  --kp-negative-soft: #fff0f2;
  --kp-shadow: 0 2px 4px rgba(23,35,59,.04);
  --kp-shadow-float: 0 14px 36px -16px rgba(23,35,59,.24);
  --kp-panel-shadow: 0 20px 55px -36px rgba(23,35,59,.4);
  --kp-focus-soft: 0 0 0 3px rgba(39,57,213,.12);
  --kp-font: Gilroy, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --kp-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --kp-ease: cubic-bezier(.22,1,.36,1);
  --kp-ease-in: cubic-bezier(.4,0,1,1);
  --kp-fast: 160ms;
  --kp-short: 240ms;
  --kp-long: 480ms;
  --kp-radius: 4px;
  --kp-control-radius: 2px;
  --kp-space-1: 4px;
  --kp-space-2: 8px;
  --kp-space-3: 12px;
  --kp-space-4: 16px;
  --kp-space-5: 24px;
  --kp-space-6: 32px;
  --kp-space-7: 48px;
  --kp-space-8: 64px;
  --kp-space-9: 96px;
  --kp-card-pad: 24px;
  --kp-card-gap: 24px;
  --kp-field-height: 48px;
}
html,body { overflow-x: clip; }
html { scroll-padding-top: 90px; }
body { font-synthesis: none; }
body .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body :is(h1,h2,h3,h4) { text-wrap: balance; min-width: 0; overflow-wrap: break-word; }
body :is(button,input,select,textarea,summary,.btn,.ka-btn,.kp-unified-link) { -webkit-tap-highlight-color: var(--kp-transparent); }
body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline: 2px solid var(--kp-brand); outline-offset: 3px; transition: none; }
body :is(button,.btn,.ka-btn,.kp-unified-primary,.kp-unified-secondary) { border-radius: var(--kp-control-radius); }
body :is(button,.btn,.ka-btn,.kp-unified-primary,.kp-unified-secondary):active { transform: translateY(1px); }
body :is(button:disabled,input:disabled,select:disabled,[aria-disabled="true"]) { opacity: .55; cursor: not-allowed; transform: none; }
body [aria-busy="true"] { cursor: progress; }
body :is(input,textarea)[aria-invalid="true"] { border-color: var(--kp-negative); }
body svg:not(.logo-mark):not(.flag):not(.flag-svg) { flex-shrink: 0; }
body :is(.ico,.ico-sm,.icon,.tabler-icon) { stroke-width: 1.65; }
body svg.tabler-icon { width: 20px; height: 20px; vertical-align: middle; fill: none; stroke: currentColor; }
body .ico-sm.tabler-icon { width: 18px; height: 18px; }
.admin-body svg.bi.tabler-icon { width: 1.2em; height: 1.2em; }
body :is(.label,.eyebrow,.index,.pf-label,.calc-label,.q-label,.panel-badge,.q-kicker,.ladder-label) { font-family: var(--kp-font); letter-spacing: 0; text-transform: none; font-weight: 500; }
body.theme-dark :is(.site-header,.kp-unified-header),.kp-unified-header { background: var(--kp-surface-glass); border-bottom-color: var(--kp-line); }
body.theme-dark .site-header,.kp-unified-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.theme-dark .header-bar,.kp-unified-inner { min-height: 76px; }
body.theme-dark .nav-link,.kp-unified-link { gap: var(--kp-space-2); font-weight: 500; }
body.theme-dark .nav-trigger[aria-expanded="true"],.kp-unified-menu[open]>.kp-unified-link { background: var(--kp-brand-soft); color: var(--kp-brand); }
body.theme-dark .brand-name,.kp-unified-brand { letter-spacing: -.045em; }
body.theme-dark .logo-mark,.kp-unified-brand>svg { border-radius: 9px; }
body.theme-dark :is(.header-signup,.header-login),.kp-unified-actions :is(.kp-unified-primary,.kp-unified-secondary) { min-height: 42px; font-weight: 500; }
body.theme-dark :is(.mega-sheet,.language-options),.kp-unified-dropdown,.kp-unified-language-list,.kp-unified-mobile nav { border-radius: var(--kp-radius); box-shadow: var(--kp-shadow-float); }
body.theme-dark .mega-sheet { border-top: 2px solid var(--kp-brand); }
body.theme-dark .mega-net { border-color: var(--kp-line); background: var(--kp-surface); box-shadow: none; }
body.theme-dark :is(.mega-icon,.mega-pool) { border: 0; background: var(--kp-transparent); }
body.theme-dark :is(.mega-net-title,.mega-link-title) { font-weight: 500; }
body.theme-dark .hero { position: relative; isolation: isolate; background: var(--kp-paper); padding-top: 128px; }
body.theme-dark .hero-media { display: none; }
body.theme-dark .hero::before { content: ""; position: absolute; inset: 76px 0 0; z-index: -2; pointer-events: none; background-image: linear-gradient(var(--kp-grid) 1px,var(--kp-transparent) 1px),linear-gradient(90deg,var(--kp-grid) 1px,var(--kp-transparent) 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg,var(--kp-transparent) 27%,var(--kp-mask) 80%); }
body.theme-dark .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 150px 4% 90px 57%; border: 1px solid var(--kp-grid-strong); border-radius: var(--kp-radius); transform: skewY(-7deg); background: var(--kp-brand-soft); opacity: .55; }
body.theme-dark .hero-grid { grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: var(--kp-space-8); align-items: center; }
body.theme-dark .hero-title { font-size: clamp(38px,4.4vw,64px); font-weight: 500; line-height: 1.05; letter-spacing: -.05em; max-width: 19ch; }
body.theme-dark .hero-lead { font-size: 17px; line-height: 1.7; margin-top: var(--kp-space-5); max-width: 53ch; }
body.theme-dark .hero-actions { gap: var(--kp-space-3); margin-top: var(--kp-space-6); }
body.theme-dark .hero .eyebrow { display: inline-flex; align-items: center; padding: 0; margin-bottom: var(--kp-space-5); border: 0; background: var(--kp-transparent); color: var(--kp-muted); font-size: 13px; text-transform: none; letter-spacing: 0; }
body.theme-dark .hero .eyebrow::before,body.theme-dark .status-dot { display: none; }
body.theme-dark .hero .eyebrow .pulse { display: none; }
body.theme-dark .hero-stats-wrap { margin-top: var(--kp-space-7); }
body.theme-dark .hero-stats { border-top-color: var(--kp-line-strong); padding-block: var(--kp-space-6); }
body.theme-dark .hero-stat-n { font-weight: 500; letter-spacing: -.04em; color: var(--kp-ink); }
body.theme-dark .hero-stat :is(small,.hero-stat-label) { font-family: var(--kp-font); font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--kp-muted); }
body.theme-dark #builder { border: 1px solid var(--kp-line-strong); border-radius: var(--kp-radius); box-shadow: var(--kp-panel-shadow); background: var(--kp-surface); min-height: 580px; }
body.theme-dark #builder .panel-head { min-height: 60px; padding: var(--kp-space-4) var(--kp-space-5); background: var(--kp-navy); border-color: var(--kp-navy); color: var(--kp-white); }
body.theme-dark #builder .panel-head { border-radius: 3px 3px 0 0; }
body.theme-dark #builder .panel-title,body.theme-dark #builder .panel-title .ico-sm { color: var(--kp-white); font-size: 14px; font-weight: 500; }
body.theme-dark #builder .panel-badge { border: 1px solid var(--kp-grid-signal); background: var(--kp-transparent); color: var(--kp-white); border-radius: var(--kp-control-radius); font-size: 10px; padding: var(--kp-space-1) var(--kp-space-2); }
body.theme-dark #builder .panel-body { padding: var(--kp-space-5); gap: var(--kp-space-4); }
body.theme-dark #builder .pf-label { color: var(--kp-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: lowercase; margin-bottom: var(--kp-space-2); }
body.theme-dark #builder .seg { gap: var(--kp-space-1); padding: 0; margin: 0; border: 0; }
body.theme-dark #builder .seg .seg-btn { min-height: 40px; padding: var(--kp-space-2); border: 1px solid var(--kp-line); background: var(--kp-paper); border-radius: var(--kp-control-radius); font-size: 12px; font-weight: 500; box-shadow: none; }
body.theme-dark #builder .seg .seg-btn.is-active { background: var(--kp-brand); color: var(--kp-white); border-color: var(--kp-brand); box-shadow: none; }
body.theme-dark #builder .pf-row { min-height: 78px; gap: var(--kp-space-4); }
html[lang="ru"] body.theme-dark #builder .pf-row { min-height: 102px; }
body.theme-dark #builder #b-session-field .seg { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
body.theme-dark #builder #b-session-field .seg-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 48px; min-height: 48px; margin: 0; padding: 6px var(--kp-space-2); line-height: 1.25; white-space: normal; }
body.theme-dark #builder .combo-btn { box-sizing: border-box; background: var(--kp-surface); border-color: var(--kp-line-strong); font-weight: 500; font-size: 14px; height: 48px; min-height: 48px; }
body.theme-dark :is(.combo-search,.explorer-search,.docs-search-field,.gl-search):focus-within { outline: 1px solid var(--kp-brand); outline-offset: -1px; border-color: var(--kp-brand); background: var(--kp-paper); box-shadow: none; }
body.theme-dark :is(.combo-search,.explorer-search,.docs-search-field,.gl-search) input,
body.theme-dark :is(.combo-search,.explorer-search,.docs-search-field,.gl-search) input:is(:focus,:focus-visible) { outline: none; outline-offset: 0; box-shadow: none !important; border: 0; border-radius: 0; background: var(--kp-transparent); min-height: 0; height: 100%; }
body.theme-dark .combo-panel .combo-search { margin-bottom: var(--kp-space-2); border: 0; border-bottom: 1px solid var(--kp-line); border-radius: 0; background: var(--kp-transparent); color: var(--kp-muted); }
body.theme-dark .combo-panel .combo-search:focus-within { outline: none; border-color: var(--kp-brand); background: var(--kp-transparent); box-shadow: none; color: var(--kp-brand); }
body.theme-dark .combo .combo-btn:focus,
body.theme-dark .combo.is-open .combo-btn,
body.theme-dark #builder .combo-btn:hover,
body.theme-dark #builder .combo.is-open .combo-btn { border-color: var(--kp-brand); box-shadow: none; }
body.portal-body .proxy-country-panel [data-country-search]:is(:focus,:focus-visible) { outline: none; outline-offset: 0; border-color: var(--kp-line-strong) !important; background: var(--kp-surface); box-shadow: var(--kp-focus-soft) !important; }
body.theme-dark #builder .panel-out { background: var(--kp-paper); border: 1px solid var(--kp-line); box-shadow: none; border-radius: var(--kp-control-radius); min-height: 58px; }
body.theme-dark #builder .panel-out code { font-family: var(--kp-mono); font-weight: 400; font-size: 12px; line-height: 1.7; color: var(--kp-ink); }
body.theme-dark #builder .panel-out .v { color: var(--kp-brand); }
body.theme-dark #builder .panel-price { min-height: 66px; border: 0; border-top: 1px solid var(--kp-line); padding: var(--kp-space-4) 0 0; background: var(--kp-transparent); border-radius: 0; font-size: 14px; line-height: 1.6; }
body.theme-dark #builder .panel-price strong { color: var(--kp-ink); font-weight: 600; }
body.theme-dark #builder .panel-note { font-size: 12px; line-height: 1.7; color: var(--kp-muted); min-height: 62px; }
body.theme-dark :is(.btn-primary,.header-signup),.ka-btn-primary,.kp-unified-primary { background: var(--kp-brand); border-color: var(--kp-brand); color: var(--kp-white); box-shadow: none; }
body.theme-dark :is(.btn-primary,.header-signup):hover,.ka-btn-primary:hover,.kp-unified-primary:hover { background: var(--kp-brand-hover); border-color: var(--kp-brand-hover); color: var(--kp-white); }
body.theme-dark :is(.btn,.copy-btn),.ka-btn,.kp-unified-primary,.kp-unified-secondary { transition: background-color var(--kp-fast) var(--kp-ease),border-color var(--kp-fast) var(--kp-ease),color var(--kp-fast) var(--kp-ease),transform var(--kp-fast) var(--kp-ease); }
body.theme-dark .btn>svg,.ka-btn>svg,.kp-unified-primary>svg { transition: transform var(--kp-short) var(--kp-ease); }
@media (hover:hover) { body.theme-dark .btn:hover>svg,.ka-btn:hover>svg,.kp-unified-primary:hover>svg { transform: translateX(3px); } }
body.theme-dark .section { padding-block: var(--kp-space-9); }
/* Adjacent sections on the same canvas share one vertical gap. */
body.theme-dark .section:not(.section-alt) + .section:not(.section-alt),
body.theme-dark .section.section-alt + .section.section-alt { padding-top: 0; }
body.theme-dark .section-alt { background: var(--kp-paper-accent); }
body.theme-dark .section-head { margin-bottom: var(--kp-space-7); }
body.theme-dark .section-head h2 { font-size: clamp(30px,3.5vw,46px); font-weight: 500; max-width: 28ch; }
body.theme-dark .section-head .lead { max-width: 65ch; font-size: 16px; }
body.theme-dark .section-head .index { color: var(--kp-muted); font-size: 13px; letter-spacing: 0; text-transform: none; }
body.theme-dark :is(.feature,.netcard,.uc,.doc-card,.gd-card,.gl-card,.spec-card,.netcov,.mode,.trust,.h2h-card,.gl-box,.kp-info-card) { min-width: 0; padding: var(--kp-card-pad); background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: var(--kp-radius); box-shadow: none; }
body.theme-dark:is(.page-about,.page-contact) .kp-info-card { padding: var(--kp-card-pad); border-color: var(--kp-line); border-radius: var(--kp-radius); box-shadow: none; }
body.theme-dark :is(.feature,.netcard,.uc,.doc-card,.gd-card,.gl-card,.spec-card,.netcov,.mode,.trust,.h2h-card,.gl-box,.kp-info-card):hover { background: var(--kp-surface); box-shadow: none; }
body.theme-dark :is(.feature-grid,.uc-grid,.trust-grid,.netcard-grid,.spec-grid,.doc-cards,.gd-grid,.gl-grid,.modes,.h2h-grid,.kp-info-grid) { gap: var(--kp-card-gap); }
body.theme-dark .feature-grid { border: 0; border-radius: 0; background: var(--kp-transparent); }
body.theme-dark .uc .uc-meta { grid-column: 1 / -1; min-width: 0; width: auto; gap: var(--kp-space-2); }
body.theme-dark .uc .uc-more { top: var(--kp-card-pad); right: var(--kp-card-pad); }
body.theme-dark .netcard-foot { min-width: 0; flex-wrap: wrap; gap: var(--kp-space-4); }
body.theme-dark .netcard-foot .btn { box-sizing: border-box; max-width: 100%; height: auto; min-height: var(--kp-field-height); white-space: normal; line-height: 1.45; text-align: center; }
body.theme-dark .hero-panel.quote { padding: 0; gap: 0; }
body.theme-dark .hero-panel:not(#builder) > :is(.panel-head,.panel-body) { padding: var(--kp-card-pad); }
body.theme-dark .hero-panel:not(#builder) .panel-head { gap: var(--kp-space-3); }
body.theme-dark :is(.rates-head,.rates-foot,.explorer-bar,.explorer-foot,.doc-note) { padding: var(--kp-card-pad); }
body.theme-dark .explorer .country-grid { padding: var(--kp-card-pad); }
body.theme-dark .ctx-facts { padding: 0 var(--kp-card-pad); box-shadow: none; }
body.theme-dark .rates-table :is(th,td):first-child { padding-left: var(--kp-card-pad); }
body.theme-dark .rates-table :is(th,td):last-child { padding-right: var(--kp-card-pad); }
body.theme-dark :is(.calc-stepper,.calc-number):focus-within { border-color: var(--kp-brand); outline: 1px solid var(--kp-brand); outline-offset: -1px; }
body.theme-dark :is(.calc-stepper,.calc-number) input:is(:focus,:focus-visible) { outline: none; box-shadow: none !important; }
body.theme-dark :is(.feature,.uc,.doc-card,.gd-card,.gl-card) :is(.iconbox,.ico-box,.feature-icon,.uc-icon) { background: var(--kp-transparent); border: 0; color: var(--kp-brand); padding: 0; }
body.theme-dark :is(.netcard,.uc,.doc-card,.gd-card,.gl-card) { transition: border-color var(--kp-short) var(--kp-ease),background-color var(--kp-short) var(--kp-ease); }
body.theme-dark :is(.netcard,.uc,.doc-card,.gd-card,.gl-card):hover { transform: none; border-color: var(--kp-brand); background: var(--kp-surface); box-shadow: none; }
body.theme-dark .calc { border: 1px solid var(--kp-line-strong); border-radius: var(--kp-radius); box-shadow: none; background: var(--kp-surface); }
body.theme-dark .calc-nets { padding: var(--kp-space-2) var(--kp-space-4); background: var(--kp-surface); }
body.theme-dark .calc-nets button { min-height: 48px; border-radius: var(--kp-control-radius); font-weight: 500; }
body.theme-dark .calc-nets button[aria-selected="true"] { background: var(--kp-brand-soft); color: var(--kp-brand); }
body.theme-dark :is(.calc-controls,.calc-result,.calc-ladder) { padding: var(--kp-space-6); }
body.theme-dark .calc-result { background: var(--kp-paper-accent); }
body.theme-dark :is(.calc-result,.calc-ladder) { border-color: var(--kp-line); }
body.theme-dark :is(.calc-result .calc-total,.q-total,#calc-total,#q-total) { font-weight: 500; color: var(--kp-ink); font-size: clamp(40px,4vw,56px); letter-spacing: -.045em; }
body.theme-dark :is(.calc-term,.calc-loc,.seg-btn,.q-term,.q-loc) { border-radius: var(--kp-control-radius); font-weight: 500; }
body.theme-dark :is(.calc-ladder table,.rates-table,.doc-table,.compare) thead th { color: var(--kp-muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
body.theme-dark :is(.calc-ladder table,.rates-table,.doc-table,.compare) td { border-color: var(--kp-line); font-variant-numeric: tabular-nums; }
/* Own the entire accordion state, including the legacy nth-last-child and open rules. */
body.theme-dark .faq-grid { gap: var(--kp-space-3) var(--kp-space-5); align-items: start; }
body.theme-dark .faq-grid > .faq-item { min-width: 0; margin: 0; border: 1px solid var(--kp-line); border-radius: var(--kp-radius); background: var(--kp-surface); box-shadow: none; transition: border-color var(--kp-fast) var(--kp-ease); }
body.theme-dark .faq-grid > .faq-item:hover { border-color: var(--kp-line-strong); background: var(--kp-surface); box-shadow: none; }
body.theme-dark .faq-grid > .faq-item[open] { border-color: var(--kp-brand); background: var(--kp-surface); box-shadow: none; }
body.theme-dark .faq-grid > .faq-item > summary { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--kp-space-5); min-height: 88px; margin: 0; padding: 20px var(--kp-space-5); color: var(--kp-ink); font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: 0; list-style: none; }
body.theme-dark .faq-grid > .faq-item > summary::marker { content: ""; }
body.theme-dark .faq-grid > .faq-item > summary:focus-visible { outline-offset: -4px; border-radius: var(--kp-radius); }
body.theme-dark .faq-grid > .faq-item > summary > span:first-child { flex: 1; min-width: 0; padding: 0; overflow-wrap: break-word; }
body.theme-dark .faq-grid > .faq-item[open] > summary { color: var(--kp-brand); }
body.theme-dark .faq-grid > .faq-item .faq-plus { box-sizing: border-box; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; border: 1px solid var(--kp-line); border-radius: var(--kp-control-radius); background: var(--kp-paper); color: var(--kp-muted); transition: background-color var(--kp-fast) var(--kp-ease),border-color var(--kp-fast) var(--kp-ease),color var(--kp-fast) var(--kp-ease); }
body.theme-dark .faq-grid > .faq-item[open] .faq-plus { border-color: var(--kp-brand); background: var(--kp-brand); color: var(--kp-white); }
body.theme-dark .faq-grid > .faq-item > .faq-answer { padding: 0 var(--kp-space-5) var(--kp-space-5); font-size: 16px; color: var(--kp-muted); line-height: 1.75; overflow-wrap: break-word; }
body.theme-dark .faq-grid > .faq-item > .faq-answer p { color: inherit; }
body.theme-dark .faq-grid > .faq-item > .faq-answer > :first-child { margin-top: 0; }
body.theme-dark .faq-grid > .faq-item > .faq-answer > :last-child { margin-bottom: 0; }
body.theme-dark :is(.term,.code-box) { background: var(--kp-code); color: var(--kp-code-ink); border-color: var(--kp-code); border-radius: var(--kp-radius); box-shadow: none; }
body.theme-dark .term-head { color: var(--kp-code-ink); background: var(--kp-code); border-bottom-color: var(--kp-muted); }
body.theme-dark .term pre { color: var(--kp-code-ink); font-family: var(--kp-mono); }
body.theme-dark .term .copy-btn { color: var(--kp-code-ink); border-color: var(--kp-muted); background: var(--kp-transparent); }
body.theme-dark .term :is(.term-title,.term-lang) { color: var(--kp-code-ink); }
body.theme-dark .site-footer { background: var(--kp-surface); border-top: 1px solid var(--kp-line-strong); padding-top: var(--kp-space-8); }
body.theme-dark .footer-title { font-size: 15px; font-weight: 500; color: var(--kp-ink); }
body.theme-dark .footer-list a { color: var(--kp-muted); }
body.theme-dark .footer-list a:hover { color: var(--kp-brand); }
body.ka-page .ka-wrap { max-width: 1140px; }
body.ka-page :is(.ka-featured-grid a,.ka-row,.ka-search input,.ka-toc,.ka-cta) { border-radius: var(--kp-radius); box-shadow: none; }
body.ka-page .ka-wrap>h1 { max-width: 22ch; font-size: clamp(36px,4.6vw,64px); line-height: 1.06; }
body.ka-page .ka-intro { max-width: 64ch; font-size: 18px; line-height: 1.75; }
body.ka-page .ka-section :is(p,li) { max-width: 72ch; line-height: 1.8; }
body.ka-page .ka-section h2 { font-weight: 500; font-size: 30px; }
body.ka-page .ka-cta { padding: var(--kp-card-pad); background: var(--kp-paper-accent); border: 1px solid var(--kp-line); }
body.ka-page :is(.ka-search,.ka-featured-grid a) { padding: var(--kp-card-pad); }
body.ka-page .ka-featured-grid a { padding-right: calc(var(--kp-card-pad) + 24px); }
body.ka-page .ka-featured-grid { gap: var(--kp-card-gap); }
body.ka-page .ka-faq > div { padding-block: var(--kp-space-5); }
body.ka-page .ka-faq h3 { margin-bottom: var(--kp-space-3); }
body.ka-page .ka-toc { background: var(--kp-transparent); border-inline: 0; padding-inline: 0; }
body.ka-page .ka-faq details { border-radius: 0; border-inline: 0; box-shadow: none; }
body.ka-page .ka-faq summary { padding-block: var(--kp-space-5); font-weight: 500; }
body.theme-dark .doc-nav a.is-active { border-radius: var(--kp-control-radius); background: var(--kp-brand-soft); color: var(--kp-brand); }
body.theme-dark .doc-content p { max-width: 72ch; line-height: 1.8; }
body.theme-dark :is(.doc-card,.gd-card) h3 { color: var(--kp-ink); font-weight: 500; }
@media (max-width:1120px) {
  body.theme-dark .hero { padding-top: 112px; }
  body.theme-dark .hero-grid { gap: var(--kp-space-6); }
  body.theme-dark .hero-title { font-size: 46px; }
  body.theme-dark #builder .panel-body { padding: var(--kp-space-4); }
  body.theme-dark #builder .panel-head { padding-inline: var(--kp-space-4); }
  body.theme-dark #builder .panel-title { font-size: 13px; }
}
@media (max-width:900px) {
  body.theme-dark .hero::before { mask-image: linear-gradient(var(--kp-transparent),var(--kp-mask)); }
  body.theme-dark .hero::after { inset: 46% 4% 70px 10%; transform: none; }
  body.theme-dark .hero-grid { grid-template-columns: minmax(0,1fr); gap: var(--kp-space-7); }
  body.theme-dark .hero-title { max-width: 22ch; font-size: 48px; }
  body.theme-dark #builder { min-height: 580px; max-width: 620px; }
  html[lang="ru"] body.theme-dark #builder { min-height: 630px; }
  body.theme-dark .hero-lead { max-width: 60ch; }
}
@media (max-width:700px) {
  :root { --kp-card-pad: 20px; --kp-card-gap: 16px; }
  body.theme-dark .hero { padding-top: 108px; }
  body.theme-dark .hero-grid { gap: var(--kp-space-6); }
  body.theme-dark .hero-title { font-size: clamp(34px,8.4vw,44px); line-height: 1.08; letter-spacing: -.04em; }
  body.theme-dark .hero-lead { font-size: 16px; margin-top: var(--kp-space-4); }
  body.theme-dark .hero .eyebrow { font-size: 12px; margin-bottom: var(--kp-space-4); }
  body.theme-dark .hero-actions { margin-top: var(--kp-space-5); }
  body.theme-dark .hero::before { background-size: 40px 40px; opacity: .6; }
  body.theme-dark .hero::after { display: none; }
  body.theme-dark #builder .panel-head { padding: var(--kp-space-4); flex-wrap: wrap; gap: var(--kp-space-2); }
  body.theme-dark #builder { min-height: 860px; }
  html[lang="ru"] body.theme-dark #builder { min-height: 900px; }
  body.theme-dark #builder .panel-body { padding: var(--kp-space-4); gap: var(--kp-space-4); }
  body.theme-dark #builder .panel-note { min-height: 82px; font-size: 13px; }
  body.theme-dark #builder .panel-out code { font-size: 12px; }
  body.theme-dark #builder .panel-out { flex-wrap: wrap; align-items: flex-start; gap: var(--kp-space-2); min-height: 110px; }
  body.theme-dark #builder .panel-out code { flex: 1 0 100%; width: 100%; }
  body.theme-dark #builder .panel-out .copy-btn { margin-left: auto; }
  body.theme-dark #builder .panel-price { min-height: 84px; }
  body.theme-dark .section { padding-block: var(--kp-space-8); }
  body.theme-dark .section-head { margin-bottom: var(--kp-space-6); }
  body.theme-dark .section-head h2 { font-size: 32px; }
  body.theme-dark :is(.calc-controls,.calc-result,.calc-ladder) { padding: var(--kp-space-5); }
  body.theme-dark .faq-grid { gap: var(--kp-space-3); }
  body.theme-dark .faq-grid > .faq-item > summary { min-height: 76px; gap: var(--kp-space-4); padding: 18px var(--kp-space-4); }
  body.theme-dark .faq-grid > .faq-item > .faq-answer { padding: 0 var(--kp-space-4) var(--kp-space-4); font-size: 15px; }
  body.theme-dark .site-footer { padding-top: var(--kp-space-7); }
  body.ka-page .ka-wrap>h1 { font-size: 35px; line-height: 1.13; }
  body.ka-page .ka-intro { font-size: 16px; }
  body.ka-page .ka-section h2 { font-size: 27px; }
}
@media (max-width:380px) {
  body.theme-dark #builder { min-height: 900px; }
  html[lang="ru"] body.theme-dark #builder { min-height: 960px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  body *,body *::before,body *::after { animation: none !important; transition: none !important; }
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 120ms; animation-timing-function: var(--kp-ease-in); }
::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: var(--kp-ease); }
header.site-header,.kp-unified-header { view-transition-name: kp-header; }
::view-transition-group(kp-header),::view-transition-old(kp-header),::view-transition-new(kp-header) { animation: none; }
::view-transition-old(kp-header) { display: none; }
@media (prefers-reduced-motion:reduce) {
  ::view-transition-old(root),::view-transition-new(root) { animation: none; }
}

/* Working surfaces: account, authentication and administration. */
body.auth-page { background: var(--kp-paper); }
body.auth-page .auth-main { width: min(1080px,calc(100% - 48px)); margin-block: 48px 40px; }
body.auth-page .auth-stage { min-height: 590px; border: 1px solid var(--kp-line); border-radius: 4px; background: var(--kp-surface); box-shadow: none; }
body.auth-page .auth-story { padding: 40px; background: var(--kp-paper-accent); border-color: var(--kp-line); }
body.auth-page .auth-story::before { inset: 0; opacity: .45; background: linear-gradient(90deg,var(--kp-line) 1px,transparent 1px),linear-gradient(var(--kp-line) 1px,transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg,transparent 4%,var(--kp-ink) 65%); }
body.auth-page .auth-story::after { content: none; }
body.auth-page .auth-story-mark { width: 52px; height: 52px; border-radius: 2px; background: var(--kp-surface); border-color: var(--kp-line-strong); color: var(--kp-brand); }
body.auth-page .auth-story-index { font-size: 13px; letter-spacing: 0; color: var(--kp-muted); background: transparent; border: 0; }
body.auth-page .auth-story-copy { padding-top: 40px; }
body.auth-page .auth-story-eyebrow { margin-bottom: 20px; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--kp-muted); }
body.auth-page .auth-story h2 { max-width: 12ch; margin: 0; font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: -.045em; color: var(--kp-ink); text-wrap: balance; }
body.auth-page .auth-story-description { margin-top: 24px; max-width: 34ch; font-size: 16px; line-height: 1.7; color: var(--kp-muted); }
body.auth-page .auth-story-steps { gap: 16px; padding-top: 24px; margin-top: 32px; border-color: var(--kp-line-strong); }
body.auth-page .auth-story .auth-story-steps li { gap: 8px; font-size: 13px; line-height: 1.5; color: var(--kp-ink); }
body.auth-page .auth-story .auth-story-steps li :is(span,small) { font-size: 12px; letter-spacing: 0; color: var(--kp-brand); }
body.auth-page .auth-content { padding: 48px; }
body.auth-page .auth-content h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.04em; }
body.auth-page .auth-deck { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--kp-muted); }
body.auth-page .auth-content>form { margin-top: 32px; }
body.auth-page .auth-content>form label { margin-block: 24px 8px; font-size: 14px; line-height: 1.5; color: var(--kp-ink); }
body.auth-page .auth-content>form input { min-height: 50px; padding: 12px 16px; border: 1px solid var(--kp-line-strong); border-radius: 2px; background: var(--kp-surface); color: var(--kp-ink); font-size: 16px; box-shadow: none; }
body.auth-page .auth-content>form input:hover { border-color: var(--kp-muted); background: var(--kp-surface); }
body.auth-page .auth-content>form input:focus { border-color: var(--kp-brand); outline: 2px solid var(--kp-brand); outline-offset: 3px; box-shadow: none; }
body.auth-page .auth-content>form button { min-height: 50px; margin-top: 28px; border-radius: 2px; background: var(--kp-brand); border-color: var(--kp-brand); box-shadow: none; color: var(--kp-white); font-size: 16px; }
body.auth-page .auth-content>form button:hover { background: var(--kp-brand-hover); border-color: var(--kp-brand-hover); box-shadow: none; transform: none; }
body.auth-page .auth-content :is(.hint,.subtle) { font-size: 14px; line-height: 1.7; color: var(--kp-muted); }
body.auth-page .auth-content :is(.hint,.subtle) a { color: var(--kp-brand); border-color: var(--kp-line-strong); font-weight: 500; }
body.auth-page .auth-content>.notice { border: 0; border-radius: 2px; background: var(--kp-brand-soft); color: var(--kp-ink); padding: 16px; font-size: 14px; line-height: 1.6; }
body.auth-page .auth-content>.alert { padding: 16px; border: 1px solid var(--kp-negative); border-radius: 2px; background: var(--kp-negative-soft); color: var(--kp-negative); font-size: 14px; line-height: 1.6; }

body.portal-body>.sidebar { box-shadow: none; }
body.portal-body>.sidebar nav { gap: 2px; }
body.portal-body>.sidebar nav a { min-height: 44px; margin: 0; padding: 12px 16px; border: 0; border-radius: 2px; color: var(--kp-muted); font-size: 14px; line-height: 1.4; box-shadow: none; }
body.portal-body>.sidebar nav a.active { color: var(--kp-brand); background: var(--kp-brand-soft); box-shadow: inset 2px 0 var(--kp-brand); }
body.portal-body>.sidebar nav a .icon { width: 19px; height: 19px; color: inherit; }
body.portal-body>.sidebar .nav-group { margin: 24px 16px 8px; font-size: 12px; font-weight: 400; color: var(--kp-muted); letter-spacing: 0; text-transform: none; }
body.portal-body>.sidebar .balance { background: var(--kp-paper); border: 0; border-radius: 2px; padding: 20px; }
body.portal-body>.sidebar .balance small { font-size: 13px; font-weight: 400; line-height: 1.5; }
body.portal-body>.sidebar .balance b { margin-block: 8px 16px; font-size: 30px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
body.portal-body>.sidebar .balance .light-button { min-height: 40px; justify-content: center; font-size: 14px; }
body.portal-body>.main>header { min-height: 80px; padding: 16px 32px; }
body.portal-body>.main>header h1 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
body.portal-body>.main>main { padding: 32px; }
body.portal-body .header-pill { background: var(--kp-surface); border-color: var(--kp-line); border-radius: 2px; font-size: 13px; padding: 8px 12px; }
body.portal-body :is(.dashboard-heading,.wallet-intro,.utility-intro,.proxy-intro) { margin-bottom: 28px; }
body.portal-body :is(.dashboard-eyebrow,.summary-label,.wallet-card-head>span,.proxy-card>small,.proxy-footnote,.proxy-hint) { color: var(--kp-muted); font-size: 13px; line-height: 1.65; letter-spacing: 0; text-transform: none; }
body.portal-body :is(.dashboard-heading p,.wallet-intro p,.utility-intro p,.proxy-intro p) { font-size: 16px; line-height: 1.65; color: var(--kp-muted); }
body.portal-body :is(.dashboard-wallet,.dashboard-metrics,.dashboard-services,.dashboard-progress,.dashboard-recent,.wallet-page .panel,.utility-page .panel,.proxy-card,.wallet-stats section,.utility-stats section) { border: 1px solid var(--kp-line); border-radius: 4px; box-shadow: none; background: var(--kp-surface); }
body.portal-body .dashboard-summary { gap: 24px; }
body.portal-body .dashboard-wallet { padding: 24px; border-top: 2px solid var(--kp-brand); }
body.portal-body .dashboard-wallet>strong { margin-block: 16px 20px; font-size: 40px; font-weight: 500; letter-spacing: -.045em; }
body.portal-body .dashboard-metrics { padding-block: 24px; }
body.portal-body .dashboard-metrics>div { padding: 0 24px; border-color: var(--kp-line); }
body.portal-body .dashboard-metrics span { min-height: 2.8em; font-size: 14px; line-height: 1.4; color: var(--kp-muted); }
body.portal-body .dashboard-metrics strong { margin-block: 12px 24px; font-size: 34px; line-height: 1.1; font-weight: 500; font-variant-numeric: tabular-nums; }
body.portal-body .dashboard-metrics strong small { font-size: 15px; color: var(--kp-muted); }
body.portal-body :is(.dashboard-metrics a,.wallet-bottom a,.dashboard-help) { color: var(--kp-brand); font-size: 14px; font-weight: 500; }
body.portal-body :is(.wallet-bottom>span,.service-status) { color: var(--kp-muted); font-size: 13px; }
body.portal-body .dashboard-grid { gap: 24px; }
body.portal-body :is(.dashboard-services,.dashboard-progress,.dashboard-recent) { padding: 24px; }
body.portal-body :is(.dashboard-title,.proxy-card-heading h2,.utility-page h2) { font-size: 22px; font-weight: 500; }
body.portal-body .dashboard-service { min-height: 86px; padding: 20px 0; border: 0; border-bottom: 1px solid var(--kp-line); border-radius: 0; background: transparent; box-shadow: none; }
body.portal-body .dashboard-service:last-child { border-bottom: 0; }
body.portal-body .dashboard-service:hover { transform: none; box-shadow: none; background: var(--kp-hover); }
body.portal-body .service-icon { width: 28px; height: 28px; border: 0; border-radius: 0; background: transparent; color: var(--kp-brand); }
body.portal-body .service-icon .icon { width: 22px; height: 22px; }
body.portal-body .service-name strong { font-size: 16px; font-weight: 500; line-height: 1.4; }
body.portal-body .service-name small { margin-top: 4px; font-size: 14px; line-height: 1.55; }
body.portal-body :is(.dashboard-empty,.utility-empty) { border: 0; border-radius: 2px; background: var(--kp-paper); padding: 32px 24px; }
body.portal-body .utility-empty h3 { font-size: 20px; line-height: 1.35; }
body.portal-body :is(.dashboard-empty p,.utility-empty p) { font-size: 15px; line-height: 1.65; color: var(--kp-muted); }
body.portal-body .utility-empty a { min-height: 44px; font-size: 14px; border-radius: 2px; }
body.portal-body :is(.wallet-card-head,.utility-card-head,.proxy-card-heading) { padding: 24px; border-color: var(--kp-line); flex-wrap: wrap; gap: var(--kp-space-4); }
body.portal-body :is(.wallet-card-head,.utility-card-head,.proxy-card-heading) > div { min-width: 0; }
body.portal-body :is(.wallet-card-head,.utility-card-head,.proxy-card-heading) > span { max-width: 100%; white-space: normal; line-height: 1.5; }
body.portal-body :is(.proxy-service-count,.proxy-summary,.proxy-rates,.proxy-help,.utility-columns .panel) { padding: var(--kp-card-pad); }
body.portal-body :is(.proxy-columns,.proxy-primary,.proxy-rail,.wallet-layout,.utility-columns,.utility-columns>aside) { gap: var(--kp-card-gap); }
body.portal-body .utility-card > p { padding: var(--kp-card-pad) var(--kp-card-pad) 0; }
body.portal-body .utility-card .order-list { padding: var(--kp-card-pad); }
body.portal-body .utility-empty { margin: var(--kp-card-pad); }
body.portal-body .proxy-config-grid { padding: var(--kp-card-pad); gap: var(--kp-space-4); }
body.portal-body .proxy-chart { margin-inline: var(--kp-card-pad); }
body.portal-body .proxy-footnote { padding-inline: var(--kp-card-pad); }
body.portal-body .proxy-field-grid .proxy-field > span,
body.portal-body .proxy-config-grid .proxy-config-label { display: block; color: var(--kp-muted); font-family: var(--kp-font); font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
body.portal-body :is(.proxy-field-grid,.proxy-config-grid) { align-items: end; }
body.portal-body :is(.proxy-field-grid label,.proxy-config-grid label,.proxy-field) { min-width: 0; }
body.portal-body :is(.wallet-step,.proxy-form-section) { padding-block: 24px; border-color: var(--kp-line); }
body.portal-body .wallet-step { padding-inline: 24px; }
body.portal-body .wallet-step-title { gap: 12px; margin-bottom: 20px; }
body.portal-body :is(.wallet-step-title>span,.proxy-step-heading>span) { width: 26px; height: 26px; background: var(--kp-brand-soft); color: var(--kp-brand); border-radius: 2px; font-size: 13px; }
body.portal-body :is(.wallet-step-title strong,.proxy-step-heading strong) { font-size: 16px; line-height: 1.4; font-weight: 500; }
body.portal-body :is(.wallet-step-title small,.proxy-step-heading small,.wallet-bonuses>p,.wallet-help p) { font-size: 14px; line-height: 1.6; color: var(--kp-muted); }
body.portal-body :is(.wallet-stats section,.utility-stats section) { min-height: 132px; padding: 20px 24px; }
body.portal-body :is(.wallet-stats strong,.utility-stats strong) { margin-block: 12px 8px; font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
body.portal-body :is(.wallet-stats small,.utility-stats small) { font-size: 13px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--kp-muted); }
body.portal-body :is(.wallet-stats span,.utility-stats span) { font-size: 13px; line-height: 1.5; color: var(--kp-muted); }
body.portal-body :is(.wallet-coin,.wallet-preset,.proxy-term-options button) { border-radius: 2px; box-shadow: none; }
body.portal-body .wallet-coin { min-height: 72px; padding: 12px; gap: 12px; }
body.portal-body .wallet-coin-name b { color: var(--kp-ink); font-size: 15px; }
body.portal-body .wallet-coin-name small { color: var(--kp-muted); font-size: 12px; }
body.portal-body .wallet-coin.is-selected { border-color: var(--kp-brand); background: var(--kp-brand-soft); box-shadow: none; }
body.portal-body .wallet-coin-check { border-radius: 2px; background: var(--kp-brand); color: var(--kp-white); }
body.portal-body .wallet-coin-icon { width: 32px; height: 32px; background: var(--kp-paper); border: 0; }
body.portal-body .wallet-preset { padding: 12px; min-height: 72px; }
body.portal-body .wallet-preset b { font-size: 16px; font-weight: 500; }
body.portal-body .wallet-preset small { color: var(--kp-muted); font-size: 12px; line-height: 1.4; }
body.portal-body :is(.wallet-amount-label,.wallet-payment-row small,.wallet-step-last label) { font-size: 14px; line-height: 1.5; color: var(--kp-muted); letter-spacing: 0; }
body.portal-body .wallet-payment-row { padding: 16px; border: 0; border-radius: 2px; background: var(--kp-paper); }
body.portal-body .wallet-payment-row :is(strong,code) { color: var(--kp-ink); font-size: 14px; line-height: 1.7; }
body.portal-body .wallet-copy { min-height: 40px; font-size: 13px !important; padding: 8px 12px !important; border-color: var(--kp-line-strong) !important; color: var(--kp-brand) !important; background: var(--kp-surface) !important; }
body.portal-body .wallet-credit-note { padding: 12px 12px; font-size: 13px; line-height: 1.5; color: var(--kp-positive); background: var(--kp-positive-soft); }
body.portal-body :is(.wallet-bonus-row,.wallet-history-row,.wallet-ledger-row) { padding: 16px 20px; border-color: var(--kp-line); font-size: 14px; }
body.portal-body :is(.wallet-history-row small,.wallet-ledger-row small) { font-size: 12px; line-height: 1.6; color: var(--kp-muted); }
body.portal-body .proxy-network-bar { min-height: 60px; padding: 16px 20px; border-color: var(--kp-line); font-size: 13px; line-height: 1.5; }
body.portal-body .proxy-traffic-metrics { gap: 0; padding: 24px; }
body.portal-body .proxy-traffic-metrics>div { min-height: 84px; border: 0; border-left: 1px solid var(--kp-line); padding: 0 16px; background: transparent; border-radius: 0; }
body.portal-body .proxy-traffic-metrics>div:first-child { border-left: 0; padding-left: 0; }
body.portal-body .proxy-traffic-metrics span { font-size: 13px; letter-spacing: 0; color: var(--kp-muted); }
body.portal-body .proxy-traffic-metrics strong { color: var(--kp-ink); font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
body.portal-body .proxy-order-form { padding-inline: 24px; }
body.portal-body :is(.proxy-field-grid label,.proxy-config-grid label,.utility-page label) { color: var(--kp-muted); font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
body.portal-body :is(.proxy-field-grid input:not([type=hidden]),.proxy-field-grid select,.proxy-config-grid select,.utility-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.utility-page select,.utility-page textarea) { box-sizing: border-box; min-height: var(--kp-field-height); padding: 12px; font-size: 15px; line-height: 1.5; border-color: var(--kp-line-strong); border-radius: 2px; background: var(--kp-surface); color: var(--kp-ink); }
body.portal-body :is(.proxy-field-grid input:not([type=hidden]),.proxy-field-grid select,.proxy-config-grid select,.utility-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.utility-page select) { height: var(--kp-field-height); }
body.portal-body .proxy-country-trigger { box-sizing: border-box; height: var(--kp-field-height); min-height: var(--kp-field-height); padding: 12px; font-size: 15px; line-height: 1.5; background: var(--kp-surface); border-color: var(--kp-line-strong); }
body.portal-body .proxy-quantity :is(button,input) { box-sizing: border-box; height: 44px; min-height: 44px; margin: 0; }
body.portal-body .proxy-presets button { min-height: 40px; height: auto; padding-block: var(--kp-space-2); }
body.portal-body .proxy-quantity { display: inline-grid; grid-template-columns: 46px 104px 46px auto; gap: 0; align-items: center; }
body.portal-body .proxy-quantity button { width: 46px; height: 46px; min-height: 46px; color: var(--kp-ink); background: var(--kp-surface); border-color: var(--kp-line-strong); font-size: 20px; transition: background-color 150ms ease, color 150ms ease; }
body.portal-body .proxy-quantity button:first-child { border-right: 0; border-radius: 2px 0 0 2px; }
body.portal-body .proxy-quantity button:nth-of-type(2) { border-left: 0; border-radius: 0 2px 2px 0; }
body.portal-body .proxy-quantity button:hover { color: var(--kp-brand); background: var(--kp-brand-soft); }
body.portal-body .proxy-quantity input { width: 104px; height: 46px; min-height: 46px; padding: 7px 8px; color: var(--kp-ink); font-size: 18px; font-weight: 500; border-radius: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; }
body.portal-body .proxy-quantity input::-webkit-inner-spin-button,body.portal-body .proxy-quantity input::-webkit-outer-spin-button { display: none; margin: 0; }
body.portal-body .proxy-quantity > span { margin-left: 14px; color: var(--kp-muted); font-size: 13px; }
body.portal-body .proxy-presets { gap: 8px; margin-top: 14px; }
body.portal-body .proxy-presets button { min-width: 60px; min-height: 42px; padding: 9px 15px; color: var(--kp-ink); background: var(--kp-surface); border: 1px solid var(--kp-line-strong); border-radius: 2px; font-size: 13px; font-weight: 500; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
body.portal-body .proxy-presets button:hover,body.portal-body .proxy-presets button.is-selected { color: var(--kp-brand); background: var(--kp-brand-soft); border-color: var(--kp-brand); }
body.portal-body .proxy-city-picker { position: relative; margin-top: 7px; }
body.portal-body .proxy-city-picker input { width: 100%; margin: 0; padding-right: 35px; }
body.portal-body .proxy-city-picker::after { position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--kp-muted); border-bottom: 1.5px solid var(--kp-muted); content: ""; transform: translateY(-70%) rotate(45deg); pointer-events: none; transition: transform 150ms ease; }
body.portal-body .proxy-city-picker.is-open::after { transform: translateY(-30%) rotate(225deg); }
body.portal-body .proxy-city-picker input:focus,body.portal-body .proxy-city-picker input:focus-visible { outline: none; border-color: var(--kp-line-strong) !important; box-shadow: var(--kp-focus-soft); }
body.portal-body .proxy-city-panel { position: absolute; z-index: 90; top: calc(100% + 5px); left: 0; width: 100%; max-height: min(280px, 42vh); overflow-y: auto; padding: 7px; background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: 3px; box-shadow: 0 16px 42px -20px rgba(24,35,60,.3); scrollbar-width: thin; scrollbar-color: var(--kp-line-strong) transparent; }
body.portal-body .proxy-city-panel[hidden] { display: none; }
body.portal-body .proxy-city-picker.is-up .proxy-city-panel { top: auto; bottom: calc(100% + 5px); }
body.portal-body .proxy-city-option { display: block; width: 100%; min-height: 40px; padding: 9px 11px; color: var(--kp-ink); background: var(--kp-surface); border: 0; border-radius: 2px; font-size: 13px; text-align: left; cursor: pointer; }
body.portal-body .proxy-city-option:hover,body.portal-body .proxy-city-option:focus-visible { outline: none; color: var(--kp-brand); background: var(--kp-brand-soft); }
body.portal-body .proxy-city-empty { margin: 0; padding: 10px 11px; color: var(--kp-muted); font-size: 12px; }
body.portal-body .proxy-order-action button { min-height: var(--kp-field-height); }
body.portal-body .proxy-summary { border: 1px solid var(--kp-line-strong) !important; background: var(--kp-surface) !important; }
body.portal-body .proxy-summary-line strong { font-variant-numeric: tabular-nums; }
body.portal-body .proxy-term-options button { min-height: 80px; padding: 16px; background: var(--kp-surface); border-color: var(--kp-line); }
body.portal-body .proxy-term-options button.is-selected { border-color: var(--kp-brand); background: var(--kp-brand-soft); box-shadow: none; }
body.portal-body .proxy-term-options strong { font-size: 15px; }
body.portal-body .proxy-term-options small { font-size: 13px; color: var(--kp-muted); line-height: 1.5; }
body.portal-body :is(.order-delivery,.access-gateway) { padding: 16px; background: var(--kp-paper); border: 0; border-radius: 2px; }
body.portal-body .access-gateway>span { background: transparent; border: 0; }
body.portal-body .access-gateway p { font-size: 14px; color: var(--kp-muted); }
body.portal-body .order-delivery pre { color: var(--kp-ink); font-size: 13px; line-height: 1.7; }
body.portal-body :is(.order-delivery-actions,.order-service-actions) button { min-height: 40px; padding-inline: 12px; color: var(--kp-brand); border-color: var(--kp-line-strong); border-radius: 2px; background: var(--kp-surface); font-size: 13px; }

.admin-body { background: var(--kp-paper); }
.admin-body .admin-content { padding: 32px; }
.admin-body .admin-sidebar { background: var(--kp-surface); box-shadow: none; }
.admin-body .admin-nav a { min-height: 46px; padding: 12px; border-radius: 2px; font-size: 14px; color: var(--kp-muted); }
.admin-body .admin-nav a.active { background: var(--kp-brand-soft); color: var(--kp-brand); box-shadow: inset 2px 0 var(--kp-brand); }
.admin-body .admin-nav-label { margin-top: 24px; font-size: 12px; letter-spacing: 0; color: var(--kp-muted); }
.admin-body .admin-topbar { min-height: 80px; }
.admin-body .admin-topbar h1 { font-size: 26px; font-weight: 500; }
.admin-body :is(.panel,.deposit-table-wrap,.deposit-stats>div,.admin-metrics>div) { box-shadow: none; border-radius: 4px; border-color: var(--kp-line); }
.admin-body .panel { padding: 24px; }
.admin-body :is(.deposit-stats>div,.admin-metrics>div) { padding: 24px; }
.admin-body :is(.stats strong,.deposit-stats strong,.admin-metrics strong) { margin-top: 12px; font-size: 32px; line-height: 1.2; font-weight: 500; }
.admin-body :is(.stats small,.deposit-stats small,.admin-metrics small) { font-size: 13px; line-height: 1.5; letter-spacing: 0; color: var(--kp-muted); }
.admin-body :is(.panel p,label,.admin-payment-history) { color: var(--kp-muted); font-size: 14px; line-height: 1.65; }
.admin-body :is(input:not([type=checkbox]),select,textarea) { min-height: 46px; border-color: var(--kp-line-strong); border-radius: 2px; background: var(--kp-surface); color: var(--kp-ink); font-size: 15px; }
.admin-body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select) { box-sizing: border-box; min-height: var(--kp-field-height); height: var(--kp-field-height); }
.admin-body :is(button,.deposit-filters a,.admin-pagination a) { border-radius: 2px; box-shadow: none; font-weight: 500; }
.admin-body button { min-height: 44px; font-size: 14px; }
.admin-body .admin-secondary { background: var(--kp-surface); border-color: var(--kp-line-strong); color: var(--kp-ink); }
.admin-body .deposit-action button { background: var(--kp-positive-soft); border-color: var(--kp-positive); color: var(--kp-positive); }
.admin-body .deposit-action button.danger,.admin-body button.danger { background: var(--kp-negative-soft); border-color: var(--kp-negative); color: var(--kp-negative); }
.admin-body .deposit-table-wrap thead th { padding: 16px; background: var(--kp-paper); font-size: 13px; font-weight: 500; color: var(--kp-muted); text-transform: none; letter-spacing: 0; }
.admin-body .deposit-table-wrap td { padding: 20px 16px; font-size: 14px; line-height: 1.65; color: var(--kp-ink); }
.admin-body .deposit-table-wrap td small { font-size: 12px; line-height: 1.65; color: var(--kp-muted); }
.admin-body .deposit-table-wrap tr:hover td { background: var(--kp-hover); }
.admin-body .deposit-table-scroll { min-width: 0; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.admin-body :is(.admin-overview-detail,.admin-metrics,.admin-metrics>div,.deposit-stats>div) { min-width: 0; }
.admin-body .deposit-table-wrap .status { box-sizing: border-box; max-width: 100%; white-space: normal; line-height: 1.4; text-align: center; }
.admin-body .deposit-table-wrap time { font-variant-numeric: tabular-nums; }
.admin-body .deposit-action label { font-size: 13px; }
.admin-body .deposit-action .admin-check { font-size: 13px; line-height: 1.6; }
.admin-body :is(.admin-service-grid>div,.admin-user-history,.order,.admin-empty) { background: var(--kp-paper); border: 0; border-radius: 2px; box-shadow: none; }
.admin-body :is(.admin-service-grid span,.admin-user-history p) { color: var(--kp-muted); font-size: 13px; line-height: 1.6; }
.admin-body .admin-stat:hover { box-shadow: none; transform: none; border-color: var(--kp-brand); }
.admin-body .admin-login .panel { padding: 40px; box-shadow: none; border-color: var(--kp-line); }
.admin-body .admin-login h2 { font-size: 30px; }

body.auth-page input[aria-invalid=true],body.portal-body input[aria-invalid=true],body.portal-body textarea[aria-invalid=true],.admin-body input[aria-invalid=true],.admin-body textarea[aria-invalid=true] { border-color: var(--kp-negative); }
body.portal-body .alert.error,.admin-body .alert.error { background: var(--kp-negative-soft); color: var(--kp-negative); border: 1px solid var(--kp-negative); border-radius: 2px; font-size: 14px; line-height: 1.6; }
body.portal-body .alert.ok,.admin-body .alert.ok { background: var(--kp-positive-soft); color: var(--kp-positive); border: 1px solid var(--kp-positive); border-radius: 2px; font-size: 14px; line-height: 1.6; }
body.auth-page :is(button,input):disabled,body.portal-body :is(button,input,select,textarea):disabled,.admin-body :is(button,input,select,textarea):disabled { opacity: .55; cursor: not-allowed; transform: none; }
body.auth-page [aria-busy=true],body.portal-body [aria-busy=true],.admin-body [aria-busy=true] { cursor: progress; }
body.auth-page :is(a,button,input,summary):focus-visible,body.portal-body :is(a,button,input,select,textarea,summary):focus-visible,.admin-body :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--kp-brand); outline-offset: 3px; box-shadow: none; }

@media (max-width: 1200px) {
  body.portal-body .dashboard-summary { grid-template-columns: minmax(0,1fr); }
  body.portal-body .dashboard-wallet { min-height: 180px; }
  body.portal-body .dashboard-metrics>div { padding-inline: 20px; }
  body.portal-body .wallet-coin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.portal-body .proxy-columns { grid-template-columns: minmax(0,1fr); }
  body.portal-body .proxy-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.portal-body .proxy-summary { grid-column: 1/-1; }
}
@media (max-width: 980px) {
  body.portal-body .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  body.portal-body .proxy-term-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  body.auth-page .auth-main { max-width: 640px; margin-top: 32px; }
  body.auth-page .auth-stage { min-height: 0; }
  body.auth-page .auth-content { padding: 40px; }
  body.auth-page .auth-story { padding: 32px 40px; }
  body.auth-page .auth-story-copy { margin: 0; padding-top: 0; }
  body.auth-page .auth-story h2 { max-width: 22ch; font-size: 32px; }
  body.auth-page .auth-story-description { max-width: 46ch; }
}
@media (max-width: 760px) {
  body.portal-body>.sidebar .nav-group { margin: 0; }
  body.portal-body>.sidebar nav a { min-height: 48px; margin: 0; padding: 12px; font-size: 14px; }
  body.portal-body>.main>header { min-height: 72px; padding: 16px 20px; }
  body.portal-body>.main>header h1 { font-size: 24px; }
  body.portal-body>.main>main { padding: 24px 20px 32px; }
  body.portal-body :is(.dashboard-grid,.dashboard-summary,.wallet-layout,.utility-columns,.proxy-columns) { gap: 20px; }
  body.portal-body .proxy-traffic-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
  body.portal-body .proxy-traffic-metrics>div:nth-child(3) { border-left: 0; padding-left: 0; }
  body.portal-body .proxy-rail { grid-template-columns: minmax(0,1fr); }
  .admin-body .admin-content { padding: 24px 20px 100px; }
  .admin-body .admin-topbar h1 { font-size: 24px; }
  .admin-body .admin-quick-actions { border-radius: 4px; box-shadow: none; border-color: var(--kp-line-strong); background: var(--kp-surface); }
}
@media (max-width: 600px) {
  body.auth-page .auth-main { width: calc(100% - 32px); margin-block: 24px; }
  body.auth-page .auth-content { padding: 28px 24px; }
  body.auth-page .auth-content h1 { font-size: 34px; }
  body.auth-page .auth-content>form input { font-size: 16px; }
  body.auth-page .auth-story { padding: 28px 24px; }
  body.auth-page .auth-story h2 { font-size: 30px; }
  body.auth-page .auth-story-description { font-size: 15px; }
  body.portal-body>.main>main { padding-inline: 16px; }
  body.portal-body .dashboard-metrics { padding-block: 20px; }
  body.portal-body .dashboard-metrics>div { padding-inline: 16px; }
  body.portal-body .dashboard-metrics span { font-size: 13px; min-height: 4.2em; }
  body.portal-body .dashboard-metrics strong { margin-block: 12px 16px; font-size: 28px; }
  body.portal-body .dashboard-metrics a { font-size: 13px; flex-wrap: wrap; }
  body.portal-body :is(.dashboard-services,.dashboard-progress,.dashboard-recent,.wallet-card-head,.wallet-step,.utility-card-head,.proxy-card-heading) { padding: 20px; }
  body.portal-body .wallet-stats section { min-height: 132px; padding: 16px; }
  body.portal-body .utility-stats { grid-template-columns: minmax(0,1fr); }
  body.portal-body .utility-stats section { min-height: 112px; padding: 20px; }
  body.portal-body :is(.wallet-stats strong,.utility-stats strong) { font-size: 28px; }
  body.portal-body .wallet-coin { padding: 12px; gap: 8px; }
  body.portal-body .wallet-coin-name b { font-size: 14px; }
  body.portal-body .wallet-coin-name small { font-size: 12px; }
  body.portal-body .wallet-coin-icon { width: 26px; height: 26px; }
  body.portal-body .wallet-payment-row { align-items: flex-start; gap: 12px; padding: 16px; flex-wrap: wrap; }
  body.portal-body .wallet-payment-row>div { flex: 1 1 190px; }
  body.portal-body .wallet-payment-row .wallet-copy { margin-left: auto; }
  body.portal-body .proxy-order-form { padding-inline: 20px; }
  body.portal-body .proxy-presets button { min-height: 44px; }
  body.portal-body .proxy-field-grid { grid-template-columns: minmax(0,1fr); }
  body.portal-body .proxy-step-heading { align-items: flex-start; }
  body.portal-body .proxy-step-heading small { margin-left: 40px; font-size: 13px; }
  body.portal-body :is(.proxy-field-grid input,.proxy-field-grid select,.proxy-config-grid select,.utility-page input:not([type=checkbox]),.utility-page select,.utility-page textarea,.proxy-country-trigger) { font-size: 16px; }
  body.portal-body :is(.order-delivery-actions,.order-service-actions) button { min-height: 44px; }
  .admin-body .admin-content { padding-inline: 16px; }
  .admin-body :is(.deposit-stats,.admin-user-metrics) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--kp-space-4); }
  .admin-body :is(.panel,.deposit-stats>div,.admin-metrics>div) { padding: 20px; }
  .admin-body :is(.stats strong,.deposit-stats strong,.admin-metrics strong) { font-size: 28px; }
  .admin-body .deposit-stats strong { font-size: 24px; }
  .admin-body :is(input:not([type=checkbox]),select,textarea) { font-size: 16px; }
  .admin-body .deposit-table-wrap :is(th,td) { padding: 16px; }
  .admin-body .admin-login .panel { padding: 28px 24px; }
}
@media (max-width: 380px) {
  .admin-body :is(.deposit-stats,.admin-user-metrics,.admin-dashboard-stats) { grid-template-columns: minmax(0,1fr); }
  body.portal-body>.main>header { padding-inline: 16px; }
  body.portal-body .dashboard-metrics { grid-template-columns: minmax(0,1fr); padding-block: 0; }
  body.portal-body .dashboard-metrics>div { padding: 20px; border-left: 0; border-top: 1px solid var(--kp-line); }
  body.portal-body .dashboard-metrics>div:first-child { border-top: 0; }
  body.portal-body .dashboard-metrics span { min-height: 0; }
  body.portal-body .dashboard-metrics strong { margin-block: 12px; }
  body.portal-body .wallet-coin-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.auth-page *,body.auth-page *::before,body.auth-page *::after,body.portal-body *,body.portal-body *::before,body.portal-body *::after,.admin-body *,.admin-body *::before,.admin-body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.admin-body .admin-quick-actions .admin-menu-toggle { width: 100%; min-width: 0; background: var(--kp-surface); color: var(--kp-muted); border: 0; border-radius: var(--kp-control-radius); }
.admin-body .admin-quick-actions .admin-menu-toggle[aria-expanded="true"] { color: var(--kp-brand); background: var(--kp-brand-soft); }

/* Public-style navigation sheet shared by the account, portal and admin headers. */
.kp-unified-header .kp-unified-menu { position: static; }
.kp-unified-header .kp-unified-menu[open] > .kp-unified-link { background: var(--kp-brand-soft); color: var(--kp-brand); }
.kp-unified-header .kp-unified-dropdown { position: absolute; top: 100%; left: 0; right: 0; width: 100%; min-width: 0; padding: 0; border: 0; border-top: 2px solid var(--kp-brand); border-bottom: 1px solid var(--kp-line); border-radius: 0; background: var(--kp-surface); box-shadow: 0 22px 38px -26px rgba(20,32,70,.26); }
.kp-unified-dropdown-inner { width: min(100%, 1288px); margin: 0 auto; padding: 27px 24px 32px; }
.kp-unified-dropdown-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.kp-unified-dropdown-heading > div > span { display: block; color: var(--kp-ink); font-size: 1.1rem; font-weight: 700; }
.kp-unified-dropdown-heading p { margin: 3px 0 0; color: var(--kp-muted); font-size: .88rem; line-height: 1.45; }
.kp-unified-header .kp-unified-dropdown-heading > a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 0; background: transparent; color: var(--kp-ink); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.kp-unified-header .kp-unified-dropdown-heading > a:hover { background: transparent; color: var(--kp-brand); }
.kp-unified-dropdown-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.kp-unified-header .kp-unified-dropdown-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 171px; padding: 20px; border: 1px solid var(--kp-line); border-radius: 12px; background: var(--kp-surface); color: var(--kp-ink); text-decoration: none; white-space: normal; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.kp-unified-header .kp-unified-dropdown-card:hover,.kp-unified-header .kp-unified-dropdown-card:focus-visible { border-color: var(--kp-brand); background: var(--kp-brand-soft); color: var(--kp-ink); transform: translateY(-2px); }
.kp-unified-dropdown-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; margin-bottom: 16px; color: var(--kp-brand); }
.kp-unified-dropdown-card-icon svg { width: 21px; height: 21px; }
.kp-unified-dropdown-card strong { display: block; margin-bottom: 7px; font-size: .98rem; line-height: 1.3; font-weight: 700; }
.kp-unified-dropdown-card small { display: block; max-width: 26ch; color: var(--kp-muted); font-size: .84rem; line-height: 1.45; }
.kp-unified-dropdown-card-arrow { position: absolute; top: 17px; right: 18px; color: var(--kp-brand); font-size: 1rem; }
@media (max-width: 1199px) { .kp-unified-dropdown-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .kp-unified-header .kp-unified-dropdown-card { min-height: 140px; } }
@media (prefers-reduced-motion: reduce) { .kp-unified-header .kp-unified-dropdown-card { transition: none; } }

/* Clear, touch-friendly purchase controls for traffic and dedicated services. */
body.portal-body .proxy-order--rotating .proxy-form-section { padding-block: 30px 32px; }
body.portal-body .proxy-order .proxy-step-heading { margin-bottom: 20px; }
body.portal-body .proxy-order .proxy-step-heading > strong { color: var(--kp-ink); font-size: 17px; font-weight: 600; }
body.portal-body .proxy-order .proxy-step-heading > small { font-size: 13px; }
body.portal-body .proxy-order .proxy-quantity { grid-template-columns: 52px 122px 52px auto; }
body.portal-body .proxy-order .proxy-quantity button { width: 52px; height: 52px; min-height: 52px; border-color: var(--kp-line-strong); font-size: 23px; font-weight: 400; }
body.portal-body .proxy-order .proxy-quantity input { width: 122px; height: 52px; min-height: 52px; border-color: var(--kp-line-strong); font-size: 22px; font-weight: 600; }
body.portal-body .proxy-order .proxy-quantity button:disabled { color: var(--kp-muted-soft); background: var(--kp-paper); cursor: not-allowed; }
body.portal-body .proxy-order .proxy-quantity > span { font-size: 14px; font-weight: 600; }
body.portal-body .proxy-order--rotating .proxy-presets { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; max-width: 1050px; margin-top: 22px; }
body.portal-body .proxy-order--rotating .proxy-presets button { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-width: 0; min-height: 76px; padding: 13px 16px; border-color: var(--kp-line); border-radius: 4px; text-align: left; box-shadow: 0 4px 11px -10px rgba(20,30,65,.25); }
body.portal-body .proxy-order--rotating .proxy-presets button:hover { border-color: var(--kp-brand); background: var(--kp-surface); transform: translateY(-2px); box-shadow: 0 10px 24px -15px rgba(35,52,150,.3); }
body.portal-body .proxy-order--rotating .proxy-presets button.is-selected { border-color: var(--kp-brand); background: var(--kp-brand-soft); color: var(--kp-ink); box-shadow: inset 0 0 0 1px var(--kp-brand); }
body.portal-body .proxy-order--rotating .proxy-presets button.is-selected::after { content: '✓'; position: absolute; top: 11px; right: 13px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--kp-brand); color: #fff; font-size: 11px; }
body.portal-body .proxy-order--rotating .proxy-presets button strong { color: var(--kp-ink); font-size: 17px; font-weight: 600; line-height: 1.2; }
body.portal-body .proxy-order--rotating .proxy-presets button strong small { font-size: 12px; font-weight: 500; color: var(--kp-muted); }
body.portal-body .proxy-order--rotating .proxy-presets button > span { color: var(--kp-muted); font-size: 12px; line-height: 1.25; }
body.portal-body .proxy-order--rotating .proxy-presets button.is-selected > span { color: var(--kp-brand); }
body.portal-body .proxy-order:not(.proxy-order--rotating) .proxy-presets button { min-width: 66px; min-height: 46px; font-size: 15px; font-weight: 600; }
body.portal-body .proxy-order .proxy-order-action { margin-inline: -24px; padding: 24px; border-top: 1px solid var(--kp-line); background: var(--kp-paper); }
body.portal-body .proxy-order .proxy-order-action > div { gap: 5px; }
body.portal-body .proxy-order .proxy-order-action span { color: var(--kp-muted); font-size: 13px; }
body.portal-body .proxy-order .proxy-order-action strong { color: var(--kp-ink); font-size: 31px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.portal-body .proxy-order .proxy-order-action small { color: var(--kp-muted); font-size: 13px; }
body.portal-body .proxy-order .proxy-order-action button { min-height: 50px; padding-inline: 22px; border-radius: 3px; font-size: 14px; font-weight: 600; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
body.portal-body .proxy-order .proxy-order-action button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -15px rgba(35,52,150,.55); }
body.portal-body .proxy-summary { border-top: 3px solid var(--kp-brand) !important; box-shadow: 0 10px 28px -24px rgba(20,34,70,.25); }
body.portal-body .proxy-summary > h2 { margin-block: 10px 18px; font-size: 19px; font-weight: 600; }
body.portal-body .proxy-summary > p[data-summary-selection] { padding: 11px 13px; background: var(--kp-paper); color: var(--kp-ink); font-size: 13px; line-height: 1.45; }
body.portal-body .proxy-summary-line strong { font-size: 18px; font-weight: 600; }
body.portal-body .proxy-summary-line:first-of-type strong { font-size: 26px; }
body.portal-body .proxy-summary-cta { min-height: 46px; font-size: 13px; font-weight: 600; }
body.portal-body .proxy-chart { border-color: var(--kp-line); background: linear-gradient(180deg,var(--kp-surface),var(--kp-paper)); }
body.portal-body .proxy-chart::before { background: var(--kp-line); }
body.portal-body .proxy-chart span { color: var(--kp-muted); font-size: 13px; }
@media (max-width: 1050px) { body.portal-body .proxy-order--rotating .proxy-presets { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 650px) { body.portal-body .proxy-order--rotating .proxy-presets { grid-template-columns: repeat(2,minmax(0,1fr)); } body.portal-body .proxy-order .proxy-order-action { margin-inline: -20px; padding: 20px; } }
@media (max-width: 650px) { body.portal-body .proxy-order .proxy-quantity { display: grid; width: 100%; grid-template-columns: 46px 96px 46px minmax(0,1fr); } body.portal-body .proxy-order .proxy-quantity button { width: 46px; } body.portal-body .proxy-order .proxy-quantity input { width: 96px; } body.portal-body .proxy-order .proxy-quantity > span { min-width: 0; margin-left: 8px; overflow-wrap: anywhere; } }
@media (prefers-reduced-motion: reduce) { body.portal-body .proxy-order--rotating .proxy-presets button,body.portal-body .proxy-order .proxy-order-action button { transition: none; transform: none; } }

/* A single readable type scale across the five localized account interfaces. */
:root { --kp-type-caption: 13px; --kp-type-label: 14px; --kp-type-body: 15px; --kp-type-control: 15px; --kp-type-card: 20px; --kp-type-page: 26px; }
body.portal-body, .admin-body { font-family: var(--kp-font); font-size: var(--kp-type-body); line-height: 1.55; }
body.portal-body>.sidebar nav a { font-size: var(--kp-type-body); line-height: 1.45; }
body.portal-body>.sidebar :is(.nav-group,.balance small,.sidebar-email) { font-size: var(--kp-type-caption); line-height: 1.5; }
body.portal-body>.sidebar .balance .light-button { font-size: var(--kp-type-control); }
body.portal-body>.main>header h1 { font-size: var(--kp-type-page); line-height: 1.2; }
body.portal-body :is(.dashboard-title,.proxy-card-heading h2,.utility-page h2,.wallet-card-head h2) { font-size: var(--kp-type-card); line-height: 1.3; }
body.portal-body :is(.dashboard-eyebrow,.summary-label,.proxy-card>small,.proxy-hint,.proxy-footnote,.wallet-card-head>span) { font-size: var(--kp-type-caption); line-height: 1.55; }
body.portal-body .proxy-page :is(.proxy-intro a,.proxy-card-heading>span,.proxy-card-heading>a,.proxy-network-bar,.proxy-traffic-metrics span,.proxy-footnote,.proxy-hint,.proxy-summary>small,.proxy-credentials>p,.proxy-help p,.proxy-help a,.proxy-rates>div>div,.proxy-order-row,.proxy-order-row small,.proxy-orders-empty,.proxy-confirmed p,.proxy-renew label) { font-size: var(--kp-type-label); line-height: 1.55; }
body.portal-body .proxy-page :is(.proxy-summary>p,.proxy-funding-note,.proxy-summary-line span,.proxy-order-action span,.proxy-order-action small,.proxy-step-heading small,.proxy-term-options small,.proxy-config .proxy-footnote) { font-size: var(--kp-type-label) !important; line-height: 1.5; }
body.portal-body .proxy-page :is(.proxy-field-grid label,.proxy-field>span,.proxy-config-label,.proxy-config-grid label) { font-size: var(--kp-type-label); line-height: 1.5; }
body.portal-body .proxy-page :is(.proxy-field-grid input,.proxy-field-grid select,.proxy-config-grid select,.proxy-country-trigger,.proxy-city-option,.proxy-country-option) { font-size: var(--kp-type-control); }
body.portal-body .proxy-page .proxy-traffic-metrics strong { font-size: 22px; line-height: 1.2; }
body.portal-body .proxy-page .proxy-traffic-main strong { font-size: 31px !important; }
body.portal-body .proxy-page .proxy-step-heading>strong { font-size: 17px; line-height: 1.4; }
body.portal-body .proxy-order--rotating .proxy-presets button strong { font-size: 18px; }
body.portal-body .proxy-order--rotating .proxy-presets button strong small { font-size: var(--kp-type-caption); }
body.portal-body .proxy-order--rotating .proxy-presets button>span { font-size: var(--kp-type-label); }
body.portal-body .proxy-order .proxy-order-action button,body.portal-body .proxy-summary-cta { font-size: var(--kp-type-control); }
body.portal-body .proxy-rail .proxy-card>h2 { font-size: 18px; line-height: 1.3; }
body.portal-body .proxy-page :is(.proxy-credential-text,.proxy-output pre,.proxy-delivery pre) { font-size: 13px; line-height: 1.6; }
body.portal-body .wallet-page :is(.wallet-stats small,.wallet-stats span,.wallet-coin-name small,.wallet-preset small,.wallet-payment-row small,.wallet-bonuses>p,.wallet-help p,.wallet-ledger-row small,.wallet-history-row small,.wallet-rate-note,.wallet-submit-note,.wallet-empty) { font-size: var(--kp-type-label) !important; line-height: 1.55; }
body.portal-body .wallet-page :is(.wallet-coin-name b,.wallet-preset b,.wallet-payment-row strong,.wallet-copy,.wallet-submit) { font-size: var(--kp-type-control) !important; }
body.portal-body .utility-page :is(label,.utility-intro p,.utility-card>p,.utility-empty p) { font-size: var(--kp-type-label); line-height: 1.55; }
body.portal-body .utility-page :is(input:not([type=checkbox]),select,textarea,button[type=submit]) { font-size: var(--kp-type-control); }
@media (max-width: 600px) { body.portal-body>.main>header h1 { font-size: 23px; } body.portal-body .proxy-page .proxy-step-heading small { margin-left: 0; } }

body.portal-body>.sidebar .nav-group { margin-inline: 12px 0; white-space: nowrap; }
@media (min-width: 761px) {
  body.portal-body>.sidebar { width: 288px; }
  body.portal-body>.main { width: calc(100% - 288px); margin-left: 288px; }
}

/* The signed-in header contains account identity and one clear exit action. */
.kp-account-header .kp-unified-inner { width: 100%; max-width: none; padding-inline: 24px; justify-content: space-between; gap: 24px; }
.kp-account-actions { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: flex-end; gap: 16px; }
.kp-account-email { display: block; min-width: 0; max-width: min(38vw,320px); overflow: hidden; color: var(--kp-muted); font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.kp-account-actions form { flex: none; margin: 0; }
.kp-account-logout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0 !important; padding: 0 15px; border: 1px solid var(--kp-line-strong); border-radius: 2px; background: var(--kp-surface); color: var(--kp-ink); font-family: var(--kp-font); font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.kp-account-logout:hover { border-color: var(--kp-brand); background: var(--kp-brand-soft); color: var(--kp-brand); }
@media (max-width: 600px) { .kp-account-header .kp-unified-inner { gap: 12px; padding-inline: 16px; } .kp-account-header .kp-unified-brand { gap: 7px; font-size: 1.23rem; } .kp-account-header .kp-unified-brand svg { width: 30px; height: 30px; } .kp-account-actions { gap: 8px; } .kp-account-email { font-size: 12px; } .kp-account-logout { min-height: 38px; padding-inline: 10px; font-size: 13px; } .kp-account-logout svg { display: none; } }

/* Keep the overview readable at the same scale as the order and wallet pages. */
body.portal-body .dashboard :is(.dashboard-eyebrow,.summary-label) { font-size: 14px; line-height: 1.5; }
body.portal-body .dashboard-heading p { font-size: 17px; line-height: 1.55; }
body.portal-body .dashboard :is(.dashboard-help,.dashboard-metrics a,.wallet-bottom a,.dashboard-section-head>a) { font-size: 15px; line-height: 1.45; }
body.portal-body .dashboard .wallet-bottom>span { font-size: 14px; line-height: 1.45; }
body.portal-body .dashboard-metrics span { min-height: 2.8em; font-size: 15px; line-height: 1.4; }
body.portal-body .dashboard-metrics strong small { font-size: 16px; }
body.portal-body .dashboard .service-name strong { font-size: 17px; line-height: 1.4; }
body.portal-body .dashboard .service-name small { font-size: 15px; line-height: 1.5; }
body.portal-body .dashboard .service-status { font-size: 14px; line-height: 1.45; }
body.portal-body .dashboard .progress-count { font-size: 14px; }
body.portal-body .dashboard .progress-steps strong { font-size: 15px; line-height: 1.45; }
body.portal-body .dashboard .progress-steps small { font-size: 14px; line-height: 1.5; }
body.portal-body .dashboard-rail > * { min-width: 0; }
body.portal-body .dashboard-progress .dashboard-section-head > * { min-width: 0; }
body.portal-body .dashboard-progress .progress-steps li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
html[lang="ko"] body { font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
html[lang="hi"] body { font-family: "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif; }
html[lang="ar"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; line-height: 1.65; }
html[lang="ar"] :is(input,textarea,select,button,code,pre) { font-family: inherit; }
html[lang="ar"] :is(code,pre,.proxy-code,.wallet-payment-row code) { direction: ltr; text-align: left; unicode-bidi: isolate; }
html[lang="ar"] :is(.site-header,.kp-account-header) .brand { direction: ltr; }
html[lang="ar"] :is(.dashboard,.proxy-order,.wallet-page,.utility-page) { overflow-wrap: anywhere; }
html[lang="uk"] body, html[lang="ro"] body { font-family: "Segoe UI", Inter, system-ui, sans-serif; }
html[lang="ms"] body { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
html[lang="th"] body, html[lang="th"] :is(h1,h2,h3,h4,input,button,select,textarea) { font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; letter-spacing: 0; }
html[lang="bn"] body, html[lang="bn"] :is(h1,h2,h3,h4,input,button,select,textarea) { font-family: "Nirmala UI", "Noto Sans Bengali", system-ui, sans-serif; letter-spacing: 0; }
html[lang="fa"] body, html[lang="fa"] :is(h1,h2,h3,h4,input,button,select,textarea) { font-family: Tahoma, "Segoe UI", "Noto Naskh Arabic", sans-serif; letter-spacing: 0; line-height: 1.65; }
html[lang="fa"] :is(code,pre,.proxy-code,.wallet-payment-row code) { direction: ltr; text-align: left; unicode-bidi: isolate; }
html[lang="fa"] :is(.site-header,.kp-account-header) .brand { direction: ltr; }
html[lang="fa"] :is(.dashboard,.proxy-order,.wallet-page,.utility-page) { overflow-wrap: anywhere; }
html[lang="he"] body, html[lang="he"] :is(h1,h2,h3,h4,input,button,select,textarea) { font-family: "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif; letter-spacing: 0; line-height: 1.6; }
html[lang="he"] :is(code,pre,.proxy-code,.wallet-payment-row code) { direction: ltr; text-align: left; unicode-bidi: isolate; }
html[lang="he"] :is(.site-header,.kp-account-header,.kp-unified-brand) { direction: ltr; }
html[lang="he"] :is(.dashboard,.proxy-order,.wallet-page,.utility-page) { overflow-wrap: anywhere; }
html[lang="el"] body, html[lang="el"] :is(h1,h2,h3,h4,input,button,select,textarea) { font-family: "Segoe UI", Inter, Arial, system-ui, sans-serif; }
html[lang="bg"] body, html[lang="sr"] body, html[lang="kk"] body { font-family: "Segoe UI", Inter, Arial, system-ui, sans-serif; }
.kp-unified-language-list { max-height: min(72vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 480px) { .kp-unified-language-list { max-width: calc(100vw - 24px); } }
@media (max-width: 600px) {
  body.portal-body .dashboard-rail .dashboard-section-head { flex-wrap: wrap; align-items: flex-start; }
  body.portal-body .dashboard-rail .dashboard-section-head > a { white-space: normal; overflow-wrap: anywhere; }
}
body.portal-body .dashboard .progress-action { min-height: 46px; font-size: 15px; }
body.portal-body .dashboard :is(.dashboard-gateway-row,.dashboard-activity-row,.dashboard-gateway-row small,.dashboard-activity-row strong,.dashboard-wallet-activity>p) { font-size: 14px; line-height: 1.5; }
body.portal-body .dashboard .dashboard-gateway-row code { font-size: 13px; }
body.portal-body .dashboard .dashboard-gateway-row button { font-size: 13px; }
@media (max-width: 560px) {
  body.portal-body .dashboard-metrics { grid-template-columns: minmax(0,1fr); padding-block: 0; }
  body.portal-body .dashboard-metrics>div { min-height: 112px; padding: 18px 20px; border-left: 0; border-top: 1px solid var(--kp-line); }
  body.portal-body .dashboard-metrics>div:first-child { border-top: 0; }
  body.portal-body .dashboard-metrics span { min-height: 0; font-size: 15px; }
  body.portal-body .dashboard-metrics strong { margin: 9px 0; font-size: 30px; }
  body.portal-body .dashboard-metrics a { font-size: 15px; }
  body.portal-body .dashboard .service-name small { font-size: 14px; }
  body.portal-body .dashboard-heading p { font-size: 16px; }
}

/* Stronger Gilroy hierarchy throughout the public site and signed-in interfaces. */
body, body.theme-dark, body.auth-page, body.portal-body, .admin-body { font-weight: 500; }
body :is(h1,h2,h3,h4,h5,h6) { font-weight: 600; letter-spacing: -.025em; }
body :is(.label,.eyebrow,.index,.pf-label,.calc-label,.q-label,.panel-badge,.q-kicker,.ladder-label) { font-weight: 600; }
body.theme-dark :is(.hero-title,.section-head h2,.faq-grid>.faq-item>summary,.header-signup,.header-login,.nav-link),
body.ka-page :is(.ka-section h2,.ka-faq summary),
body.auth-page :is(.auth-story h2,.auth-content h1),
body.portal-body :is(.dashboard-title,.proxy-card-heading h2,.utility-page h2,.wallet-card-head h2,.service-name strong,.progress-steps strong,.proxy-step-heading strong),
body.portal-body>.main>header h1,
.admin-body :is(.admin-topbar h1,h2,h3),
.kp-unified-header :is(.kp-unified-brand,.kp-unified-link,.kp-unified-primary,.kp-unified-secondary) { font-weight: 600; }
body.portal-body .dashboard :is(.dashboard-wallet>strong,.dashboard-metrics strong) { font-weight: 600; }
body :is(.btn,.button,.ka-btn,.kp-account-logout),
body.portal-body>.sidebar nav a,
body.portal-body .dashboard :is(.dashboard-metrics a,.wallet-bottom a,.dashboard-section-head>a,.progress-action),
.admin-body :is(button,.deposit-filters a,.admin-pagination a) { font-weight: 600; }

/* Shared finish across the existing marketing, account and administration templates. */
:root { --kp-card-radius: 8px; --kp-card-shadow: 0 10px 30px -22px rgba(23,35,59,.28); }
body.theme-dark .section-head .lead { font-size: 17px; line-height: 1.65; }
body.theme-dark .section-head .index { margin-bottom: 16px; font-size: 14px; font-weight: 600; }
body.theme-dark :is(.feature,.netcard,.uc,.doc-card,.gd-card,.gl-card,.spec-card,.netcov,.mode,.trust,.h2h-card,.gl-box,.kp-info-card) {
  border-radius: var(--kp-card-radius); border-color: var(--kp-line); box-shadow: var(--kp-card-shadow);
}
body.theme-dark :is(a.netcard,a.uc,a.doc-card,a.gd-card,a.gl-card,a.kp-info-card) {
  transition: border-color .22s var(--kp-ease),box-shadow .22s var(--kp-ease),transform .22s var(--kp-ease),background-color .22s var(--kp-ease);
}
@media (hover:hover) {
  body.theme-dark :is(a.netcard,a.uc,a.doc-card,a.gd-card,a.gl-card,a.kp-info-card):hover {
    transform: translateY(-2px); border-color: var(--kp-grid-strong); box-shadow: 0 18px 34px -22px rgba(39,57,213,.33); background: var(--kp-surface);
  }
}
body.theme-dark :is(.feature,.netcard,.uc,.doc-card,.gd-card,.gl-card,.spec-card,.netcov,.mode,.trust,.h2h-card,.gl-box,.kp-info-card) :is(p,li,small) { line-height: 1.6; }
body.theme-dark :is(.rates-table,.doc-table,.asn-table,.compare) { border-radius: var(--kp-card-radius); overflow: hidden; box-shadow: var(--kp-card-shadow); }
body.theme-dark :is(.rates-table,.doc-table,.asn-table,.compare) thead th { background: var(--kp-paper-accent); color: var(--kp-ink); font-size: 13px; line-height: 1.45; }
body.theme-dark :is(.rates-table,.doc-table,.asn-table,.compare) tbody tr:hover { background: var(--kp-brand-soft); }
body.theme-dark .faq-grid > .faq-item { border-radius: var(--kp-card-radius); box-shadow: var(--kp-card-shadow); }
body.theme-dark .faq-grid > .faq-item[open] { border-color: var(--kp-grid-strong); box-shadow: 0 14px 32px -24px rgba(39,57,213,.3); }
body.theme-dark .faq-grid > .faq-item > summary { min-height: 74px; }
body.theme-dark .faq-grid > .faq-item[open] > summary { background: var(--kp-brand-soft); }
body.theme-dark .faq-grid > .faq-item > .faq-answer { padding-top: 20px; }
body.auth-page .auth-stage { border-radius: var(--kp-card-radius); overflow: hidden; box-shadow: 0 22px 52px -35px rgba(23,35,59,.32); }
body.portal-body :is(.dashboard-wallet,.dashboard-metrics,.dashboard-services,.dashboard-progress,.dashboard-recent,.wallet-page .panel,.utility-page .panel,.proxy-card,.wallet-stats section,.utility-stats section) {
  border-radius: var(--kp-card-radius); box-shadow: var(--kp-card-shadow);
}
body.portal-body .dashboard-service { padding-inline: 12px; border-radius: 3px; }
body.portal-body .dashboard-service:hover { background: var(--kp-brand-soft); }
body.portal-body :is(input:not([type=checkbox]):not([type=radio]),select,textarea):hover { border-color: var(--kp-line-strong); }
body.portal-body :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus-visible { border-color: var(--kp-brand); }
.admin-body :is(.panel,.deposit-table-wrap,.deposit-stats>div,.admin-metrics>div) { border-color: var(--kp-line); box-shadow: var(--kp-card-shadow); }
.admin-body :is(.admin-section-heading small,.admin-activity-table th,.deposit-table-wrap th) { font-size: 13px; line-height: 1.45; }
.admin-body :is(.admin-user-history p,.admin-payment-history,.deposit-action label) { font-size: 13px; line-height: 1.5; }
body.ka-page .ka-wrap>h1 { font-weight: 600; letter-spacing: -.035em; }
body.ka-page :is(.ka-search,.ka-featured-grid a,.ka-deep,.ka-cta) { border-radius: var(--kp-card-radius); box-shadow: var(--kp-card-shadow); }
body.ka-page .ka-featured-grid a { transition: border-color .2s var(--kp-ease),box-shadow .2s var(--kp-ease),transform .2s var(--kp-ease); }
@media (hover:hover) { body.ka-page .ka-featured-grid a:hover { transform: translateY(-2px); border-color: var(--kp-grid-strong); box-shadow: 0 18px 34px -22px rgba(39,57,213,.3); } }
body.ka-page .ka-featured-grid span { font-size: 19px; line-height: 1.35; }
body.ka-page .ka-featured-grid small { font-size: 15px; line-height: 1.55; }
body.ka-page .ka-count { font-size: 14px; }
body.ka-page .ka-search :is(input,button) { min-height: 48px; }

/* Network comparison: each option remains one link, with readable details at every width. */
body.theme-dark .section-products .plist { overflow: visible; border: 0; border-radius: 0; background: transparent; }
body.theme-dark .section-products .plist-head { height: auto; min-height: 44px; margin-bottom: 10px; border: 1px solid var(--kp-line); border-radius: var(--kp-card-radius); background: var(--kp-paper-accent); color: var(--kp-muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
body.theme-dark .section-products .plist-rows { display: grid; gap: 10px; }
body.theme-dark .section-products .plist-rows li { min-width: 0; }
body.theme-dark .section-products .plist-rows li + li .prow { border-top: 1px solid var(--kp-line); }
body.theme-dark .section-products .prow { min-height: 134px; border: 1px solid var(--kp-line); border-radius: var(--kp-card-radius); background: var(--kp-surface); box-shadow: var(--kp-card-shadow); transition: border-color .22s var(--kp-ease),box-shadow .22s var(--kp-ease),transform .22s var(--kp-ease); }
body.theme-dark .section-products .prow::before { border-radius: var(--kp-card-radius) 0 0 var(--kp-card-radius); width: 3px; }
body.theme-dark .section-products .prow:hover { border-color: var(--kp-grid-strong); background: var(--kp-surface); box-shadow: 0 18px 35px -24px rgba(39,57,213,.34); transform: translateY(-2px); }
body.theme-dark .section-products .plist-grid { gap: 16px; padding-inline: 20px; }
body.theme-dark .section-products .prow-net { gap: 14px; }
body.theme-dark .section-products .prow-name { font-size: 18px; line-height: 1.3; }
body.theme-dark .section-products .prow-one,
body.theme-dark .section-products .prow-cell { font-size: 15px; line-height: 1.5; }
body.theme-dark .section-products .prow-price { gap: 6px; }
body.theme-dark .section-products .prow-amount { font-size: 24px; }
body.theme-dark .section-products :is(.prow-from,.prow-unit,.prow-sub) { font-size: 13px; line-height: 1.35; }
body.theme-dark .section-products .prow-go { width: 34px; height: 34px; border-color: var(--kp-line-strong); background: var(--kp-paper); color: var(--kp-brand); }
body.theme-dark .section-products .prow:hover .prow-go { background: var(--kp-brand); border-color: var(--kp-brand); color: var(--kp-white); }
body.theme-dark .section-products .plist-foot { margin-top: 18px; font-size: 14px; line-height: 1.5; }
@media (max-width: 1050px) and (min-width: 721px) {
  body.theme-dark .section-products .plist-grid { gap: 12px; padding-inline: 16px; }
  body.theme-dark .section-products .prow-one,body.theme-dark .section-products .prow-cell { font-size: 14px; }
}
@media (max-width: 720px) {
  body.theme-dark .section-products .plist-head.plist-grid { display: none !important; }
  body.theme-dark .section-products .plist-grid { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "net" "price" "meta"; gap: 12px; padding: 20px; }
  body.theme-dark .section-products .prow { min-height: 0; }
  body.theme-dark .section-products .prow-net { grid-area: net; align-items: flex-start; }
  body.theme-dark .section-products .prow-price { grid-area: price; align-items: flex-start; text-align: left; padding-left: 58px; }
  body.theme-dark .section-products .prow-meta { grid-area: meta; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--kp-line); }
  body.theme-dark .section-products .prow-meta > :nth-child(3) { display: grid; }
  body.theme-dark .section-products .prow-cell { display: grid; grid-template-columns: minmax(90px,.4fr) minmax(0,1fr); align-items: start; gap: 10px; font-size: 14px; }
  body.theme-dark .section-products .prow-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; color: var(--kp-brand); font-family: var(--kp-font); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  body.theme-dark .section-products .prow-name { font-size: 18px; }
  body.theme-dark .section-products .prow-one { font-size: 14px; }
  body.theme-dark .section-products .prow-amount { font-size: 23px; }
  body.theme-dark .section-products .prow-go { display: none; }
  body.theme-dark .section-products .plist-foot { gap: 12px; }
}
@media (max-width: 380px) {
  body.theme-dark .section-products .plist-grid { padding: 16px; }
  body.theme-dark .section-products .prow-price { padding-left: 0; }
  body.theme-dark .section-products .prow-cell { grid-template-columns: 1fr; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-dark :is(a.netcard,a.uc,a.doc-card,a.gd-card,a.gl-card,a.kp-info-card),
  body.theme-dark .section-products .prow { transition: none; }
  body.theme-dark :is(a.netcard,a.uc,a.doc-card,a.gd-card,a.gl-card,a.kp-info-card):hover,
  body.theme-dark .section-products .prow:hover { transform: none; }
}

/* Navigation motion is brief, directional and disabled for reduced-motion users. */
.kp-unified-header :is(.kp-unified-dropdown,.kp-unified-language-list,.kp-unified-mobile nav),
body.theme-dark :is(.mega-sheet,.language-options) {
  transform-origin: top center;
}
.kp-unified-header :is(.kp-unified-menu,.kp-unified-language,.kp-unified-mobile)[open] > :is(.kp-unified-dropdown,.kp-unified-language-list,nav),
body.theme-dark :is(.mega-sheet,.language-options):not([hidden]) {
  animation: kp-menu-enter 210ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes kp-menu-enter {
  from { opacity: 0; transform: translateY(-7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
body.portal-body>.main>main { view-transition-name: kp-portal-content; }
body.portal-body>.sidebar { view-transition-name: kp-portal-sidebar; }
::view-transition-old(kp-portal-content) { animation: 125ms ease-in both kp-content-out; }
::view-transition-new(kp-portal-content) { animation: 260ms cubic-bezier(.22,1,.36,1) both kp-content-in; }
::view-transition-old(kp-portal-sidebar),::view-transition-new(kp-portal-sidebar) { animation: none; }
@keyframes kp-content-out { to { opacity: .3; transform: translateY(-5px); } }
@keyframes kp-content-in { from { opacity: .35; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
body.portal-body>.main[aria-busy="true"] { cursor: progress; }
body.portal-body>.main.portal-enter>main { animation: kp-content-in 260ms cubic-bezier(.22,1,.36,1) both; }

/* Comfortable touch targets and a stable compact account navigation. */
@media (max-width: 760px) {
  body.portal-body>.sidebar { padding: 0 12px 10px; border-bottom: 1px solid var(--kp-line); }
  body.portal-body>.sidebar .brand { display: none; }
  body.portal-body>.sidebar nav { gap: 6px; margin: 0 -12px; padding: 8px 12px 4px; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--kp-grid-strong) transparent; }
  body.portal-body>.sidebar nav a { min-height: 46px; padding: 10px 13px; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; }
  body.portal-body>.sidebar nav a.active { border-color: var(--kp-grid-strong); box-shadow: none; }
  body.portal-body>.main>header { min-height: 64px; }
  body.portal-body>.main>main { padding-top: 20px; }
  .kp-unified-mobile nav a,.kp-unified-language-list a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 600px) {
  .kp-unified-header .kp-unified-inner { min-height: 64px; gap: 8px; }
  .kp-unified-header .kp-unified-actions { gap: 6px; }
  .kp-unified-header .kp-unified-mobile nav { right: -8px; width: min(340px,calc(100dvw - 24px)); padding: 8px; }
  body.portal-body .proxy-columns,body.portal-body .wallet-layout,body.portal-body .utility-columns { min-width: 0; }
  body.portal-body :is(.proxy-card,.wallet-page .panel,.utility-page .panel) { min-width: 0; }
  body.portal-body :is(.proxy-summary,.proxy-rates,.wallet-payment-row) { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-unified-header :is(.kp-unified-dropdown,.kp-unified-language-list,.kp-unified-mobile nav),
  body.theme-dark :is(.mega-sheet,.language-options),
  body.portal-body>.main.portal-enter>main,
  ::view-transition-old(kp-portal-content),::view-transition-new(kp-portal-content) { animation: none !important; }
}

/* The five-item mobile dock already contains Menu. Keep the top row within the viewport. */
@media (max-width: 620px) {
  body:has(.mtab) .site-header .header-bar { gap: 8px; }
  body:has(.mtab) .site-header .header-actions { min-width: 0; margin-left: auto; }
  body:has(.mtab) .site-header .kp-unified-mobile { display: none !important; }
  body:has(.mtab) .site-header .header-signup { white-space: nowrap; }
}
@media (max-width: 420px) {
  body:has(.mtab) .site-header .brand-name { display: none !important; }
}

/* The inherited drawer tiles were dark while their labels used the light theme's dark ink. */
body.theme-dark .sheet-links { background: #dce3f3; }
body.theme-dark .sheet-links li { background: #fff; }
body.theme-dark .sheet-links li a { color: #17233b; }
body.theme-dark .sheet-links li a :is(svg,.ico) { color: #2939d5; }
body.theme-dark .sheet-links li a:is(:hover,:focus-visible) { background: #eef2ff; color: #2939d5; }
@media (max-width: 360px) {
  body.theme-dark .sheet-links-2 { grid-template-columns: minmax(0,1fr) !important; }
  body.theme-dark .sheet-links-2 li { min-width: 0; }
  body.theme-dark .sheet-links-2 li a { white-space: normal; overflow-wrap: anywhere; }
}

/* Some legacy styles forced closed native details panels to display on admin/auth pages. */
.kp-unified-header details:not([open]) > :not(summary) { display: none !important; }
@media (max-width: 420px) {
  .kp-unified-header .kp-unified-brand > span { display: none !important; }
}
body.admin-body:has(.admin-login) { overflow: visible; }

/* Wallet figures need a full line of space on narrow phones. */
@media (max-width: 360px) {
  body.portal-body .wallet-stats { grid-template-columns: minmax(0,1fr); }
  body.portal-body .wallet-stats section { min-height: 0; padding: 16px 18px; }
}

/* Final alignment for shared navigation, editorial calls to action and the builder. */
@media (max-width: 700px) {
  body.theme-dark #builder .panel-badge { margin-left: auto; }
}
@media (max-width: 620px) {
  body.ka-page .ka-cta-actions { width: 100%; max-width: none; grid-template-columns: minmax(0,1fr); }
  body.ka-page .ka-cta-actions .ka-btn { min-height: 46px; padding: 11px 16px; font-size: 14px; }
  body.ka-page .ka-cta-login { grid-column: auto; justify-self: start; min-height: 36px; display: inline-flex; align-items: center; }
  body.ka-page .ka-search input { min-height: 48px; background: var(--kp-surface); }
}
body.admin-body:has(.admin-login) .kp-unified-actions > :is(.kp-unified-login,.kp-unified-primary) { display: none; }

/* Proxy Cyber: a restrained, architectural finish across the existing templates. */
:root {
  --kp-paper: #f3f5f9;
  --kp-paper-accent: #e9edf5;
  --kp-surface: #fff;
  --kp-ink: #111b30;
  --kp-muted: #42536d;
  --kp-line: #cbd5e3;
  --kp-line-strong: #7283a0;
  --kp-brand: #2438c6;
  --kp-brand-hover: #172aa2;
  --kp-brand-soft: #e7ebfc;
  --kp-navy: #14213a;
  --kp-card-radius: 3px;
  --kp-card-shadow: 0 10px 27px -24px rgba(17,27,48,.36);
  --kp-panel-shadow: 0 25px 54px -38px rgba(17,27,48,.55);
}
body.theme-dark .site-header,
.kp-unified-header { border-bottom: 1px solid var(--kp-line); }
body.theme-dark :is(.hero-title,.section-head h2,.page-hero h1,.faq h2),
body.ka-page .ka-wrap>h1 { color: var(--kp-ink); font-weight: 700; letter-spacing: -.045em; }
body.theme-dark .hero-title { line-height: 1.02; }
body.theme-dark .hero .eyebrow { color: var(--kp-brand); font-weight: 600; }
body.theme-dark .hero-stats { border-top-width: 2px; }
body.theme-dark .hero-stat-n { font-weight: 700; }
body.theme-dark #builder { border-color: var(--kp-line-strong); border-top: 3px solid var(--kp-navy); box-shadow: var(--kp-panel-shadow); }
body.theme-dark #builder .panel-head { background: var(--kp-navy); }
body.theme-dark #builder .panel-title { font-weight: 700; }
body.theme-dark :is(.feature,.netcard,.uc,.doc-card,.gd-card,.gl-card,.spec-card,.netcov,.mode,.trust,.h2h-card,.gl-box,.kp-info-card) { border-radius: var(--kp-card-radius); border-color: var(--kp-line); box-shadow: var(--kp-card-shadow); }
body.theme-dark .section-products .prow { border-radius: var(--kp-card-radius); border-color: var(--kp-line); }
body.theme-dark .faq-grid > .faq-item { border-radius: var(--kp-card-radius); border-color: var(--kp-line); }
body.theme-dark .faq-grid > .faq-item[open] { border-left: 3px solid var(--kp-brand); }
body.theme-dark :is(.btn-primary,.header-signup),.ka-btn-primary,.kp-unified-primary { background: var(--kp-brand); border-color: var(--kp-brand); font-weight: 700; }
body.theme-dark :is(.btn-primary,.header-signup):hover,.ka-btn-primary:hover,.kp-unified-primary:hover { background: var(--kp-brand-hover); border-color: var(--kp-brand-hover); }
body.theme-dark :is(.btn,.copy-btn),body.ka-page .ka-btn,.kp-unified-primary,.kp-unified-secondary { border-radius: 2px; }
body.ka-page { background: var(--kp-paper); }
body.ka-page :is(.ka-search,.ka-featured-grid a,.ka-deep,.ka-cta,.ka-toc) { border-radius: var(--kp-card-radius); border-color: var(--kp-line); }
body.ka-page .ka-featured-grid span,body.ka-page .ka-cta h2 { color: var(--kp-ink); font-weight: 700; }
body.ka-page .ka-cta { border-left: 3px solid var(--kp-brand); }
body.auth-page .auth-stage { border-radius: var(--kp-card-radius); border: 1px solid var(--kp-line); border-top: 3px solid var(--kp-navy); }
body.portal-body { background: var(--kp-paper); }
body.portal-body :is(.dashboard-wallet,.dashboard-metrics,.dashboard-services,.dashboard-progress,.dashboard-recent,.wallet-page .panel,.utility-page .panel,.proxy-card,.wallet-stats section,.utility-stats section) { border-radius: var(--kp-card-radius); border-color: var(--kp-line); box-shadow: var(--kp-card-shadow); }
body.portal-body :is(.dashboard-section-head h2,.proxy-card-heading h2,.wallet-card-head h2,.utility-page h2) { color: var(--kp-ink); font-weight: 700; }
body.portal-body .dashboard-wallet { border-top: 3px solid var(--kp-navy); }
body.portal-body .wallet-stats section:first-child { border-top-color: var(--kp-navy); }
.admin-body :is(.panel,.deposit-table-wrap,.deposit-stats>div,.admin-metrics>div) { border-radius: var(--kp-card-radius); border-color: var(--kp-line); box-shadow: var(--kp-card-shadow); }
@media (max-width: 620px) {
  body.theme-dark .hero-title { line-height: 1.06; }
  body.theme-dark .section-head h2 { line-height: 1.12; }
  body.theme-dark :is(.feature,.netcard,.uc,.doc-card,.gd-card,.gl-card,.spec-card,.netcov,.mode,.trust,.h2h-card,.gl-box,.kp-info-card) { box-shadow: 0 5px 20px -18px rgba(17,27,48,.35); }
}

/* Center the registration and sign-in stage in the space between navigation and footer. */
body.auth-page .auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1080px,calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}
body.auth-page .auth-stage {
  flex: none;
  width: 100%;
  box-shadow: 0 22px 50px -32px rgba(17,27,48,.3);
}
body.auth-page .auth-story-mark {
  border: 1px solid var(--kp-brand);
  border-radius: 8px;
  background: var(--kp-brand);
  color: #fff;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.06em;
}
@media (max-width: 900px) {
  body.auth-page .auth-main { width: min(640px,calc(100% - 32px)); }
}
@media (max-width: 600px) {
  body.auth-page .auth-main { width: calc(100% - 32px); padding: 24px 0; }
}
