:root {
  color-scheme: light;
  --ink: #14223e;
  --muted: #52637c;
  --blue: #1849d4;
  --blue-dark: #1238a7;
  --wash: #f2f6ff;
  --line: #dbe5f1;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #4280ff; outline-offset: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.45rem, 5.4vw, 4.55rem); line-height: 1.09; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); line-height: 1.18; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p + p { margin-top: .75rem; }
.wrap { width: min(1152px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-160%); z-index: 10; padding: .5rem 1rem; background: #fff; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-layout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.75rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.23rem; font-weight: 600; width: max-content; }
.brand-mark { display: block; position: relative; flex: none; width: 42px; height: 24px; overflow: hidden; mix-blend-mode: multiply; }
.brand-mark img { position: absolute; width: 49px; height: 49px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -53%); }
.site-nav { display: flex; justify-content: center; gap: .18rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .85rem; border-radius: 9px; font-size: .94rem; font-weight: 550; text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--wash); color: var(--blue-dark); }
.site-nav .mobile-account { display: none; }
.menu-toggle { display: none; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 10px; font-weight: 600; text-decoration: none; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { background: #fff; color: var(--blue-dark); border-color: #bfceea; }
.button-secondary:hover { background: #e9f1ff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.45rem; }
.eyebrow { margin-bottom: .65rem; color: var(--blue-dark); font-size: .9rem; font-weight: 650; }
.lede { max-width: 57ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); margin-top: .9rem; }
.hero { background: #f4f7fe; border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5vw, 4.5rem); }
.hero h1 { font-size: clamp(2.25rem, 4.7vw, 4.1rem); }
.hero h1 span { display: block; color: var(--blue); }
.hero-art { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 335px; min-width: 0; border: 1px solid #cbdcfa; border-radius: 30px; overflow: hidden; background: radial-gradient(ellipse at center, #fff 0%, #e1edff 68%, #d9e8ff 100%); }
.hero-art::before, .hero-art::after { content: ""; position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; border: 1px solid #92b7fa80; border-radius: 50%; box-shadow: 0 0 0 27px #8cb4fa20, 0 0 0 54px #8cb4fa14; }
.hero-art::after { width: 49%; }
.hero-logo { width: min(72%, 320px); aspect-ratio: 2 / 1; position: relative; overflow: hidden; mix-blend-mode: multiply; }
.hero-logo img { position: absolute; width: 119%; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -52.75%); }
.platform-strip { border-bottom: 1px solid var(--line); }
.platform-strip .wrap { display: flex; align-items: center; gap: .35rem 1.15rem; flex-wrap: wrap; min-height: 56px; padding-block: .65rem; }
.platform-strip strong { margin-right: .3rem; font-weight: 600; }
.platform-strip span { color: var(--muted); }
.content-section { padding-block: clamp(2rem, 5vw, 4.25rem); }
.subhero { background: var(--wash); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4rem); }
.subhero h1 { font-size: clamp(2rem, 4.7vw, 3.85rem); }
#platforms .card p, #setup p { text-wrap: pretty; }
.section-intro { margin: .8rem 0 0; color: var(--muted); max-width: 60ch; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 5vw, 4.5rem); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.35rem; }
.cards > * { min-width: 0; }
.cards.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: clamp(1rem, 2.3vw, 1.65rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card p { margin-top: .55rem; color: var(--muted); }
.mode-card { border-top: 3px solid #8fb0fc; }
.mode-card a { display: inline-block; margin-top: .85rem; font-weight: 600; }
.band { background: #f7f9fd; border-block: 1px solid var(--line); }
.notice { padding: .95rem 1.1rem; margin-top: 1rem; background: #eef4ff; border: 1px solid #d8e5fc; border-radius: 12px; color: #344b70; }
.notice strong { color: var(--ink); }
.steps { margin: 1rem 0 0; padding-inline-start: 1.35rem; }
.steps li { padding: .2rem 0 .35rem .2rem; }
.steps li::marker { color: var(--blue); font-weight: 650; }
.faq { margin-top: .8rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: .9rem 0; cursor: pointer; font-weight: 600; }
.faq details > :not(summary) { color: var(--muted); margin-bottom: 1rem; }
.card ul, .card ol { padding-inline-start: 1.35rem; margin-bottom: 0; color: var(--muted); }
.card li + li { margin-top: .3rem; }
.card details { margin-top: .6rem; }
.card summary { cursor: pointer; font-weight: 600; padding-block: .35rem; color: var(--blue-dark); }
.site-footer { background: #f8faff; border-top: 1px solid var(--line); padding-block: 1.5rem; }
.footer-layout { display: flex; gap: 1rem 2rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 940px) {
  .header-layout { gap: .65rem; }
  .site-nav a { padding-inline: .6rem; }
  .hero-art { min-height: 275px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-layout { grid-template-columns: 1fr auto; min-height: 60px; }
  .header-account { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .menu-toggle::before { content: ""; width: 14px; height: 8px; border-block: 2px solid currentColor; }
  .site-header .brand { min-height: 44px; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; padding-bottom: .65rem; }
  .site-nav .mobile-account { display: inline-flex; }
  .hero-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 230px; }
  .hero-logo { width: min(64%, 250px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .cards, .cards.cards-two { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 185px; }
  .hero-layout { gap: 1.25rem; padding-block: 1.75rem; }
  .hero .actions { margin-top: 1.1rem; gap: .5rem; }
  .hero .actions .button { padding-inline: .9rem; }
  .platform-strip strong { flex-basis: 100%; }
  .brand { gap: .5rem; }
}
@media (scripting: none) { .menu-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.subhero .button, .content-section > .wrap > .cards + p, .steps + .button { margin-top: 1rem; }
.split > .cards { margin-top: 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
@media (max-width: 940px) {
  .split > .cards.cards-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) and (min-width: 560px) {
  .split > .cards.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Home page content blocks */
.feature-cards .card { border-top: 3px solid #8fb0fc; }
.feature-cards h3 { font-size: 1.1rem; }
.step-cards { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.35rem 0 0; padding: 0; }
.step-cards > li { counter-increment: step; min-width: 0; }
.step-cards > li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: .8rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 650; }
.step-cards h3 { font-size: 1.1rem; }
.cta-band { background: var(--wash); border-top: 1px solid var(--line); }
.cta-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-layout p { margin-top: .5rem; color: var(--muted); }
.cta-layout .actions { margin-top: 0; }
@media (max-width: 940px) {
  .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .step-cards { grid-template-columns: minmax(0, 1fr); }
}
.header-account { display: flex; align-items: center; gap: .55rem; }
.site-header-entry .header-auth .button { background: transparent; color: var(--muted); border-color: transparent; }
.site-header-entry .header-auth .button:hover,
.site-header-entry .header-auth [aria-current="page"] { background: var(--wash); color: var(--blue-dark); }

.auth-section { background: var(--wash); min-height: 63vh; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(1.25rem, 5vw, 4rem); align-items: start; }
.auth-intro h1 { font-size: clamp(2rem, 4vw, 3.35rem); }
.auth-card { min-width: 0; padding: clamp(1.15rem, 4vw, 2rem); box-shadow: 0 16px 40px #20457e12; }
.auth-card h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.auth-form { margin-block: 1.25rem; }
.auth-form label { display: block; font-weight: 600; margin-top: .8rem; }
.auth-form input:not([type="hidden"]),
.auth-form select { display: block; width: 100%; min-height: 46px; border: 1px solid #8293ae; border-radius: 9px; padding: .5rem .7rem; margin-top: .3rem; background: #fff; color: var(--ink); }
.auth-form select { min-width: 0; font: inherit; }
.auth-form .button { width: 100%; cursor: pointer; margin-top: 1rem; }
.auth-form .button:disabled { background: var(--wash); color: var(--muted); cursor: default; }
.auth-hint { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.auth-card [role="alert"] { border-color: #f0b5bd; background: #fff4f5; color: #8f2735; }

body:has(.auth-entry) { display: flex; flex-direction: column; min-height: 100vh; }
#main:has(.auth-entry) { flex: 1; background: #f8faff; }
.auth-entry { min-height: 0; background: none; padding-block: clamp(1.5rem, 4vw, 3.25rem); }
.auth-entry .auth-layout { grid-template-columns: minmax(0, 440px); justify-content: center; }
.auth-entry .auth-card { padding: 1.75rem 2rem; box-shadow: none; }
.auth-entry h1 { font-size: clamp(1.85rem, 4vw, 2.25rem); line-height: 1.15; }
.auth-entry h1 + p { margin-top: .65rem; }
.auth-entry .auth-form { margin-block: 1.15rem 0; }
.auth-entry .auth-form label:first-of-type { margin-top: 0; }
.auth-form .auth-remember { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
.auth-form .auth-remember input[type="checkbox"] { width: 1.12rem; min-height: 0; height: 1.12rem; margin: 0; flex: none; accent-color: var(--blue); }
.auth-field-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem .75rem; flex-wrap: wrap; margin-top: .65rem; }
.auth-field-heading a { padding-block: .13rem; font-size: .9rem; }
.auth-entry .auth-switch { margin-top: 1.15rem; font-size: .94rem; }
.auth-entry .auth-form + p { margin-top: 1.15rem; }
.social-options { display: grid; gap: .55rem; margin-top: 1.15rem; }
.social-options .social-divider { display: flex; align-items: center; gap: .65rem; margin: 0 0 .1rem; font-size: .85rem; }
.social-divider::before, .social-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.social-button { width: 100%; gap: .65rem; color: var(--ink); border-color: #8293ae; cursor: pointer; }
.social-options:has(> form + form) .social-button,
.social-options:has(> form + form) + .phone-entry-option .social-button { justify-content: flex-start; text-align: start; }
.social-button :is(img, svg) { flex: none; }
.social-button img { object-fit: contain; }
.social-options + .phone-entry-option { margin-top: .55rem; }
@media (max-width: 360px) {
  .social-button { padding-inline: .55rem; }
}

.happ-primary-action { margin-block-start: .75rem; }
.happ-slots { margin-block: 1.5rem; }
.card .happ-slot-list { list-style: none; padding: 0; margin-block: 1rem; }
.happ-slot-list li { border-block-start: 1px solid var(--line); padding-block: .75rem; }
.happ-slot-list summary, .happ-slot-confirm {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
}
.happ-slot-list summary { color: var(--blue-dark); }
.happ-slot-list details { margin-block: .25rem .5rem; }
.happ-slot-confirm { display: flex; align-items: center; gap: .5rem; margin-block: .5rem; }
.happ-slot-confirm input { flex: none; accent-color: var(--blue); }
.referral h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.referral-lead { font-size: 1.08rem; }
.referral-lead strong { color: var(--blue); }
.referral-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.1rem 0 1.3rem; }
.referral-stats > div { min-width: 0; padding: .75rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.referral-stats > div:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }
.referral-stats dt { font-size: .82rem; color: var(--muted); }
.referral-stats > div:first-child dt { color: #dbe6ff; }
.referral-stats dd { margin: .15rem 0 0; font-size: 1.25rem; font-weight: 650; overflow-wrap: anywhere; }
.referral label { display: block; font-weight: 600; margin-bottom: .3rem; }
.referral-link { display: flex; gap: .5rem; }
.referral-link input { flex: 1; min-width: 0; min-height: 46px; padding: .5rem .7rem; border: 1px solid #8293ae; border-radius: 9px; font: inherit; color: var(--ink); background: #fff; }
.referral-link .button { flex: none; cursor: pointer; }
.referral-status { min-height: 1.4em; margin-top: .3rem; font-size: .9rem; color: var(--blue-dark); }
.referral-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.referral-share .button { cursor: pointer; }
.referral-steps { margin: .6rem 0 .5rem; padding-inline-start: 1.35rem; }
.referral-steps li + li { margin-top: .35rem; }
.referral-steps li::marker { color: var(--blue); font-weight: 650; }
.referral-history { list-style: none; margin: .6rem 0 1rem; padding: 0; }
.referral-history li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .65rem; border-top: 1px solid var(--line); }
.referral-history small { display: block; color: var(--muted); }
.referral-plus { color: #137a43; }
.phone-channels { display: grid; gap: .5rem; margin-top: 1rem; }
.auth-form .phone-channels .button { margin-top: 0; }
.checkout-balance { display: flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.auth-form .checkout-balance input[type="checkbox"] { display: inline-block; width: 1.2rem; height: 1.2rem; min-height: 0; margin: 0; accent-color: var(--blue); }
/* Client dashboard (cabinet.php) */
.auth-dashboard .auth-layout { display: block; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.dashboard-head h1 { margin: .2rem 0 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); overflow-wrap: anywhere; }
.dashboard-head form { flex: none; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.dashboard-card { min-width: 0; padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.dashboard-card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.dashboard-card > p { margin: 0 0 .9rem; }
.dashboard-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.dashboard-status { grid-column: span 2; border-width: 1px; }
.dashboard-status h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.dashboard-status.is-active { border-color: #b9d0ff; background: linear-gradient(135deg, #fff 55%, var(--wash)); }
.dashboard-status.is-warning { border-color: #f3d3a1; background: linear-gradient(135deg, #fff 55%, #fff8ec); }
.dashboard-badge { display: inline-block; margin: 0 0 .6rem; padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 650; background: var(--wash); color: var(--blue-dark); }
.is-active .dashboard-badge { background: #e3f6ea; color: #137a43; }
.is-warning .dashboard-badge { background: #fff0d6; color: #8a5300; }
.dashboard-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.dashboard-facts > div { min-width: 0; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dashboard-facts dt { font-size: .82rem; color: var(--muted); }
.dashboard-facts dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 650; }
.dashboard-number { font-size: 2rem; font-weight: 700; color: var(--blue); }
.dashboard-steps { margin: 0 0 .8rem; padding-inline-start: 1.3rem; }
.dashboard-steps li + li { margin-top: .4rem; }
.dashboard-steps li::marker { color: var(--blue); font-weight: 650; }
.dashboard-devices { display: flex; flex-wrap: wrap; gap: .4rem; }
.dashboard-devices a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.dashboard-devices a:hover { border-color: var(--blue); }
.dashboard-wide { grid-column: span 2; }
.dashboard-payments { margin: 0; padding: 0; list-style: none; }
.dashboard-payments li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.dashboard-payments li:first-child { border-top: 0; padding-top: 0; }
.dashboard-payments small { display: block; color: var(--muted); font-size: .85rem; }
.dashboard-payment-sum { flex: none; text-align: end; }
.dashboard-payment-sum .is-paid { color: #137a43; }
.dashboard-payment-sum .is-pending { color: #8a5300; }
.dashboard-methods { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.dashboard-methods li { padding: .25rem .7rem; border-radius: 999px; background: var(--wash); font-size: .9rem; }
@media (max-width: 960px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-status, .dashboard-wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dashboard-head { align-items: flex-start; }
  .dashboard-head form .button { min-height: 40px; padding-inline: .8rem; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-facts > div:last-child { grid-column: 1 / -1; }
  .dashboard-card .actions .button { flex: 1 1 100%; }
  .dashboard-payments li { align-items: flex-start; }
}
@media (max-width: 480px) {
  .referral-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .referral-stats > div:first-child { grid-column: 1 / -1; }
  .referral-stats > div:first-child dd { font-size: 1.6rem; }
  .referral-link { flex-direction: column; }
  .referral-share .button { flex: 1 1 100%; }
}
@media (max-width: 900px) {
  .header-account .button { padding-inline: .7rem; }
}
@media (max-width: 760px) {
  .header-account { display: none; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  #main:has(.auth-entry) { background: #fff; }
  .auth-entry .auth-layout { width: calc(100% - 2.5rem); }
  .auth-entry .auth-card { padding: 0; border: 0; }
}

.whitevpn-motion {
  isolation: isolate;
  --motion-blue: #2761ed;
  --motion-cyan: #5acffa;
  position: relative;
}

.whitevpn-motion .motion-sweep,
.whitevpn-motion .motion-sparks,
.whitevpn-motion .motion-ring {
  pointer-events: none;
  position: absolute;
}

.whitevpn-motion .motion-ring {
  inset: 50% auto auto 50%;
  width: 63%;
  aspect-ratio: 1;
  border: 1px solid #3d7afa;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.48);
  animation: whitevpn-ring 980ms cubic-bezier(.16, .65, .26, 1) 75ms both;
}

@keyframes whitevpn-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.48); }
  24% { opacity: .58; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

.whitevpn-motion .motion-sweep {
  width: 185%;
  height: 43%;
  left: -43%;
  top: 28%;
  background: linear-gradient(90deg, transparent, #5acffa24 46%, #fff9 51%, #4284ff31 55%, transparent 66%);
  filter: blur(9px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-40%) rotate(-18deg);
  animation: whitevpn-sweep 920ms cubic-bezier(.23, .68, .36, 1) 135ms both;
}

@keyframes whitevpn-sweep {
  0% { opacity: 0; transform: translateX(-40%) rotate(-18deg); }
  22% { opacity: .85; }
  68% { opacity: .55; }
  100% { opacity: 0; transform: translateX(42%) rotate(-18deg); }
}

.whitevpn-motion .motion-sparks {
  inset: 0;
  z-index: 2;
  opacity: 0;
  background:
    radial-gradient(circle at 27% 37%, #2385ed 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 76% 64%, #2160e7 0 2px, transparent 3px),
    radial-gradient(circle at 67% 28%, #40b6ef 0 1px, transparent 2px),
    radial-gradient(circle at 37% 75%, #3485f2 0 1px, transparent 2px);
  animation: whitevpn-sparks 1s cubic-bezier(.16, .65, .26, 1) 115ms both;
}

@keyframes whitevpn-sparks {
  0% { opacity: 0; transform: scale(.65); }
  38% { opacity: .87; }
  75% { opacity: .58; }
  100% { opacity: .2; transform: scale(1); }
}

.whitevpn-motion .motion-emblem {
  z-index: 1;
  animation: whitevpn-emblem 880ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes whitevpn-emblem {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 12% 0, 0 100%, 0 100%);
    transform: translateY(12px) scale(.95);
  }
  38% { opacity: .94; }
  76% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whitevpn-motion .motion-emblem { animation: none; }
  .whitevpn-motion .motion-sweep,
  .whitevpn-motion .motion-sparks,
  .whitevpn-motion .motion-ring { display: none; animation: none; }
}

.auth-layout:has(.admin-content) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.admin-content h2 { margin-bottom: .7rem; }
.admin-content .notice[role="status"] { margin: 0 0 1rem; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.admin-summary > div { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.admin-summary strong, .admin-summary span { display: block; }
.admin-summary strong { font-size: 1.7rem; line-height: 1.35; }
.admin-summary span { color: var(--muted); overflow-wrap: anywhere; }
.admin-filter, .admin-grant { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.admin-filter { margin-block: 1rem 1.3rem; }
.admin-filter > div { flex: 1 1 12rem; min-width: 0; }
.admin-content label { display: block; font-weight: 600; }
.admin-content input:not([type="hidden"]), .admin-content select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .5rem .65rem;
  margin-top: .25rem;
  border: 1px solid #aebeda;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.admin-content .admin-list { list-style: none; margin: 0; padding: 0; }
.admin-client {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, .9fr) minmax(0, 1.55fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.admin-client h3 { overflow-wrap: anywhere; }
.admin-client p { margin-bottom: .55rem; }
.admin-client-payment { margin-top: .75rem; }
.admin-client-payment p { margin-bottom: .25rem; }
.admin-client form + form { margin-top: .55rem; }
.admin-grant > div { flex: 1 1 9.5rem; min-width: 0; }
.admin-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
@media (min-width: 541px) {
  .admin-filter > .admin-filter-subscription { flex-basis: 17rem; }
}
@media (max-width: 890px) {
  .admin-client { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-client-access { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .admin-summary { grid-template-columns: minmax(0, 1fr); }
  .admin-summary > div { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
  .admin-client { grid-template-columns: minmax(0, 1fr); }
  .admin-filter > div { flex-basis: 100%; }
  .admin-grant { align-items: stretch; flex-direction: column; }
  .admin-grant > div { flex-basis: auto; }
}

.admin-client, .auth-card { overflow-wrap: anywhere; }

.admin-keys { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.admin-keys h4 { margin: 0 0 .55rem; }
.admin-keys form { margin-bottom: .65rem; }

/* WhiteVPN polish layer: loaded last on public pages and bundled into the auth stylesheet.
   Doubled classes (.button.button) outrank older per-page rules without touching them. */
:root {
  --ink: #0f1d3a;
  --muted: #56657e;
  --blue: #1f55e0;
  --blue-dark: #1540b8;
  --blue-soft: #e8efff;
  --wash: #f4f7fd;
  --line: #e1e8f3;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-sm: 0 1px 2px rgb(15 29 58 / 5%), 0 2px 8px rgb(15 29 58 / 4%);
  --shadow-md: 0 1px 2px rgb(15 29 58 / 5%), 0 12px 32px rgb(15 29 58 / 8%);
  --shadow-blue: 0 8px 24px rgb(31 85 224 / 28%);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

body { font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.02em; }
h1 { letter-spacing: -.035em; }
::selection { background: #cfdcff; color: var(--ink); }

/* Header: frosted and sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 82%);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: rgb(225 232 243 / 80%);
  transition: box-shadow 240ms ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(15 29 58 / 6%); }
.site-nav.site-nav a { border-radius: 999px; transition: background-color 180ms ease, color 180ms ease; }
.menu-toggle.menu-toggle { border-radius: 999px; }
.public-site main [id] { scroll-margin-block-start: 5.5rem; }

/* Buttons */
.button.button {
  position: relative;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button.button-primary {
  background: linear-gradient(180deg, #3a6cf0, var(--blue));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 1px 2px rgb(15 29 58 / 12%);
  color: #fff;
}
.button.button-secondary { background: #fff; border-color: #d3ddef; color: var(--blue-dark); }
.button.button:active:not(:disabled) { transform: translateY(0) scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .button.button:hover:not(:disabled) { transform: translateY(-2px); }
  .button.button-primary:hover:not(:disabled) { background: linear-gradient(180deg, #2f62ea, var(--blue-dark)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), var(--shadow-blue); }
  .button.button-secondary:hover:not(:disabled) { background: #f5f8ff; border-color: #b8c9ec; box-shadow: var(--shadow-md); }
}
.button .arrow { transition: transform 220ms var(--ease-out); }
.button:hover .arrow { transform: translateX(3px); }

/* Cards */
.card.card {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.notice.notice { border-radius: var(--radius-sm); }
.auth-form input:not([type="hidden"]):not([type="checkbox"]),
.auth-form select,
.referral-link input,
.payment-preview input {
  border-radius: 14px !important;
  border-color: #c9d4e6 !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.auth-form input:not([type="hidden"]):not([type="checkbox"]):focus,
.auth-form select:focus,
.referral-link input:focus,
.payment-preview input:focus { outline: none; border-color: var(--blue) !important; box-shadow: 0 0 0 4px rgb(31 85 224 / 14%); }

/* Section rhythm */
.content-section.content-section { padding-block: clamp(3rem, 7vw, 6rem); }
.content-section + .content-section { border-top: 0; }
.section-head { max-width: 40rem; }
.section-head .eyebrow, .eyebrow.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .9rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.section-intro.section-intro { font-size: 1.06rem; }
.band.band { background: var(--wash); border-block: 0; }

/* Hero */
.public-site .hero.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgb(66 120 255 / 14%), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgb(90 207 250 / 12%), transparent 60%),
    #fbfcff;
}
.public-site .hero-layout.hero-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero h1 span { background: linear-gradient(90deg, var(--blue), #4a8bff 60%, #2fb5f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); max-width: 34rem; }
.hero .actions { margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%231f55e0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* Hero illustration: a phone with the WhiteVPN subscription connected in Happ */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero-globe { position: absolute; inset: 50% auto auto 50%; width: min(560px, 120%); aspect-ratio: 1; translate: -50% -50%; color: #9db8f5; }
.hero-globe svg { width: 100%; height: 100%; overflow: visible; }
.hero-globe .globe-lines { fill: none; stroke: currentColor; stroke-width: 1; opacity: .55; }
.hero-globe .globe-dots circle { fill: #7aa0f2; opacity: .5; }
.hero-globe .globe-arc { fill: none; stroke: url(#arc-gradient); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 10; animation: arc-flow 2.4s linear infinite; }
.hero-globe .globe-node { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.hero-globe .globe-pulse { fill: var(--blue); opacity: .25; transform-box: fill-box; transform-origin: center; animation: node-pulse 2.6s var(--ease-out) infinite; }
@keyframes arc-flow { to { stroke-dashoffset: -32; } }
@keyframes node-pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }

.phone {
  position: relative;
  z-index: 1;
  width: 272px;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(160deg, #1d2b4d, #0c1530);
  box-shadow: 0 40px 80px -20px rgb(15 29 58 / 45%), 0 18px 36px -18px rgb(31 85 224 / 40%), inset 0 0 0 2px rgb(255 255 255 / 8%);
  animation: phone-float 7s ease-in-out infinite;
}
.phone-screen {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 50px 18px 22px;
  border-radius: 38px;
  background: linear-gradient(180deg, #f7f9ff, #eef3ff);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 86px; height: 24px; translate: -50% 0; border-radius: 999px; background: #0c1530; }
.phone-top { display: flex; align-items: center; justify-content: space-between; font-weight: 650; }
.phone-top small { color: var(--muted); font-weight: 500; }
.phone-power {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 6px auto 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #4d80ff, var(--blue) 70%);
  box-shadow: 0 18px 40px -8px rgb(31 85 224 / 60%), inset 0 2px 0 rgb(255 255 255 / 30%);
  color: #fff;
}
.phone-power svg { width: 54px; height: 54px; }
.phone-power::before, .phone-power::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px solid rgb(31 85 224 / 35%);
  border-radius: 50%;
  animation: power-ring 2.8s var(--ease-out) infinite;
}
.phone-power::after { animation-delay: 1.4s; }
@keyframes power-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.phone-status { text-align: center; }
.phone-status strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.phone-status span { color: #16884a; font-weight: 600; }
.phone-status span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #20b463; box-shadow: 0 0 0 4px rgb(32 180 99 / 18%); vertical-align: 1px; }
.phone-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.phone-server i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-style: normal; }
.phone-server div { min-width: 0; flex: 1; }
.phone-server b { display: block; font-size: 13px; }
.phone-server small { color: var(--muted); }
.phone-bars { display: flex; align-items: end; gap: 3px; height: 16px; }
.phone-bars em { width: 4px; border-radius: 2px; background: var(--blue); animation: bar 1.6s ease-in-out infinite; }
.phone-bars em:nth-child(1) { height: 6px; }
.phone-bars em:nth-child(2) { height: 10px; animation-delay: .2s; }
.phone-bars em:nth-child(3) { height: 14px; animation-delay: .4s; }
@keyframes bar { 50% { opacity: .35; } }
@keyframes phone-float { 50% { transform: translateY(-10px); } }

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; color: var(--blue); }
.float-chip.chip-a { top: 14%; left: 2%; }
.float-chip.chip-b { top: 30%; right: 0; animation-delay: -2s; }
.float-chip.chip-c { bottom: 7%; right: 4%; animation-delay: -4s; }
@keyframes chip-float { 50% { transform: translateY(-8px); } }

/* Platform strip */
.platform-strip.platform-strip { border: 0; background: transparent; }
.platform-strip .wrap { justify-content: center; gap: .6rem; min-height: 0; padding-block: 0 0; margin-top: -1.25rem; position: relative; z-index: 2; }
.platform-strip strong { margin-right: .4rem; color: var(--muted); font-weight: 550; font-size: .92rem; }
.platform-strip span { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; font-size: .92rem; }
.platform-strip span svg { width: 18px; height: 18px; color: var(--blue); }

/* Three steps */
.steps-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2.25rem 0 0; padding: 0; list-style: none; counter-reset: flow; position: relative; }
.steps-flow::before { content: ""; position: absolute; top: 2.15rem; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #bcd0fb 0 8px, transparent 8px 16px); z-index: 0; }
.steps-flow li { position: relative; z-index: 1; counter-increment: flow; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform 260ms var(--ease-out), box-shadow 260ms ease; }
.steps-flow li::before { content: counter(flow); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem; border-radius: 14px; background: linear-gradient(180deg, #3a6cf0, var(--blue)); color: #fff; font-weight: 700; box-shadow: var(--shadow-blue); }
.steps-flow h3 { font-size: 1.15rem; }
.steps-flow p { margin-top: .5rem; color: var(--muted); }
.steps-flow a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; margin-top: .6rem; font-weight: 600; text-decoration: none; }
.steps-flow a:hover { text-decoration: underline; }

/* Features: bento grid with icon tiles */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.25rem; }
.bento > * { min-width: 0; }
.bento .card { display: flex; flex-direction: column; padding: 1.6rem; transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease; }
.bento .card h3 { font-size: 1.15rem; }
.bento .card p { margin-top: .5rem; }
.bento .bento-hero { grid-row: span 2; grid-column: span 2; justify-content: flex-end; overflow: hidden; background: linear-gradient(150deg, #fff 30%, #eef3ff); }
.bento .bento-hero h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.bento .bento-hero p { max-width: 34rem; font-size: 1.04rem; }
.icon-tile { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.15rem; border-radius: 16px; background: linear-gradient(150deg, #eaf0ff, #dce7ff); color: var(--blue); box-shadow: inset 0 0 0 1px rgb(31 85 224 / 8%); transition: transform 320ms var(--ease-out); }
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.devices-art { position: relative; flex: 1; min-height: 220px; margin: -.25rem -.25rem 1.5rem; }
.devices-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.devices-art .dev-frame { fill: #fff; stroke: #bfd0f5; stroke-width: 2; }
.devices-art .dev-screen { fill: #eef3ff; }
.devices-art .dev-link { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; animation: arc-flow 2s linear infinite; }
.devices-art .dev-core { fill: var(--blue); }
.devices-art .dev-check { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.devices-art .dev-dot { fill: #20b463; }
@media (hover: hover) and (pointer: fine) {
  .bento .card:hover, .steps-flow li:hover, .device-tiles a:hover, .plan-card.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cddaf3; }
  .bento .card:hover .icon-tile { transform: rotate(-6deg) scale(1.06); }
}

/* Device tiles */
.device-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.device-tiles a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease; }
.device-tiles a .icon-tile { margin-bottom: .75rem; }
.device-tiles b { font-size: 1.08rem; }
.device-tiles span { color: var(--muted); font-size: .92rem; }
.device-tiles em { margin-top: auto; padding-top: .75rem; color: var(--blue); font-style: normal; font-weight: 600; font-size: .92rem; }

/* Pricing cards */
.plan-grid.plan-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.plan-card.card { display: flex; flex-direction: column; align-items: stretch; padding: 1.5rem 1.35rem; transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease; }
.plan-card .plan-devices { margin: 0; color: var(--blue-dark); font-size: .9rem; font-weight: 650; }
.public-site .plan-card.card h3 { display: flex; align-items: baseline; gap: .3rem; margin: .5rem 0 0; font-size: clamp(1.75rem, 2.6vw, 2.2rem); letter-spacing: -.03em; }
.plan-card.card h3 small { display: inline; color: var(--muted); font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.plan-facts { display: grid; gap: .45rem; margin: 1.1rem 0 1.35rem; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .94rem; }
.plan-facts li { display: flex; align-items: center; gap: .5rem; }
.plan-facts li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%231f55e0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plan-facts strong { color: var(--ink); font-weight: 650; }
.plan-card.card .button { width: 100%; margin-top: auto; }
.plan-card.card > a { justify-content: center; margin-top: .35rem; font-size: .92rem; font-weight: 600; text-decoration: none; }
.plan-card.card > a:hover { text-decoration: underline; }
.payment-mode.payment-mode, .public-site .information-card .payment-mode.payment-mode { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .4rem .85rem; border-radius: 999px; background: #fff6e5; color: #7a4d00; font-size: .88rem; font-weight: 600; }
.payment-mode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f0a020; }

/* FAQ accordion */
.faq.faq { display: grid; gap: .65rem; margin-top: 0; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease; }
.faq details[open] { border-color: #cddaf3; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' fill='none' stroke='%231f55e0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat; transition: transform 300ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { margin: 0; padding: 0 1.2rem 1.1rem; }
.faq summary:hover { color: var(--blue-dark); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Closing call to action */
.cta-band.cta-band { background: transparent; border: 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 32px;
  background: linear-gradient(135deg, #1a47c9, #2f6bf2 55%, #3aa7f5);
  color: #fff;
  box-shadow: 0 30px 60px -24px rgb(31 85 224 / 55%);
}
.cta-card::before { content: ""; position: absolute; right: -8%; top: -60%; width: 30rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgb(255 255 255 / 25%); box-shadow: 0 0 0 40px rgb(255 255 255 / 5%), 0 0 0 80px rgb(255 255 255 / 4%); pointer-events: none; }
.cta-card h2 { color: #fff; }
.cta-card p { margin-top: .6rem; color: rgb(255 255 255 / 82%); font-size: 1.06rem; }
.cta-card .actions { position: relative; margin-top: 0; }
.cta-card .button.button-primary { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 24px rgb(9 28 82 / 25%); }
.cta-card .button.button-secondary { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 40%); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .cta-card .button.button-primary:hover { background: #f1f5ff; box-shadow: 0 12px 28px rgb(9 28 82 / 32%); }
  .cta-card .button.button-secondary:hover { background: rgb(255 255 255 / 20%); border-color: #fff; box-shadow: none; }
}

/* Inner pages */
.subhero.subhero { position: relative; overflow: hidden; border-bottom: 0; background: radial-gradient(50rem 24rem at 90% 0%, rgb(66 120 255 / 12%), transparent 60%), #fbfcff; padding-block: clamp(2.5rem, 6vw, 5rem); }
.cards.cards { gap: 1.25rem; }
.public-site #platforms .card:has(h3:target) { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(31 85 224 / 12%); }
.platform-card h3 { display: flex; align-items: center; gap: .75rem; }
.platform-card .icon-tile { width: 44px; height: 44px; margin: 0; border-radius: 14px; }
.platform-card .icon-tile svg { width: 22px; height: 22px; }
.steps.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .75rem; }
.steps.steps li { counter-increment: s; position: relative; padding: 1.1rem 1.2rem 1.1rem 4rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.steps.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.05rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.steps.steps li p { margin-top: .3rem; color: var(--muted); }
#main:has(.information-section) { background: radial-gradient(50rem 24rem at 90% 0%, rgb(66 120 255 / 10%), transparent 60%), var(--wash); }
.information-section .information-card { padding: clamp(1.5rem, 4vw, 2.75rem); }
.pricing-table th { color: var(--muted); font-size: .88rem; font-weight: 600; }
.pricing-table tbody tr { transition: background-color 160ms ease; }
.pricing-table tbody tr:hover { background: var(--wash); }

/* Footer */
.site-footer.site-footer { background: #fff; border-top: 1px solid var(--line); padding-block: 2.25rem; }

/* Auth pages and cabinet */
#main:has(.auth-entry), .auth-section.auth-section { background: radial-gradient(46rem 24rem at 100% 0%, rgb(66 120 255 / 12%), transparent 60%), radial-gradient(36rem 22rem at 0% 100%, rgb(90 207 250 / 10%), transparent 60%), #f7f9fe; }
.auth-entry .auth-card.card { padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-md); }
.social-button.button { justify-content: center; border-color: #d3ddef; color: var(--ink); }
.dashboard-card.card { transition: box-shadow 260ms ease, transform 260ms var(--ease-out); }
.dashboard-grid.dashboard-grid { align-items: stretch; gap: 1.25rem; }
.dashboard-grid > [aria-labelledby="support-title"] { grid-column: span 2; }
.card .dashboard-methods.dashboard-methods { padding: 0; }
.dashboard-methods li { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }
.dashboard-head h1 { letter-spacing: -.03em; }
@media (max-width: 640px) { .dashboard-grid > [aria-labelledby="support-title"] { grid-column: auto; } }
.dashboard-status.is-active { background: linear-gradient(135deg, #fff 40%, #e9f0ff); }
.dashboard-facts > div, .referral-stats > div { border-radius: 16px; }
.dashboard-number { letter-spacing: -.03em; }

/* Scroll reveal: only when the script runs and the visitor allows motion */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--reveal-i, 0) * 80ms); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 800ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-visual { animation: rise 1000ms var(--ease-out) 120ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 1100px) {
  .plan-grid.plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  .public-site .hero-layout.hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 480px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .bento-hero { grid-column: 1 / -1; grid-row: auto; }
  .device-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-flow { grid-template-columns: minmax(0, 1fr); }
  .steps-flow::before { top: 2rem; bottom: 2rem; left: 2.8rem; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #bcd0fb 0 8px, transparent 8px 16px); }
}
@media (max-width: 760px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .site-header .button.button { min-height: 44px; padding-inline: .8rem; }
  .site-header .menu-toggle.menu-toggle { padding-inline: .8rem; }
  .platform-strip .wrap { justify-content: flex-start; margin-top: 0; padding-top: .25rem; }
  .plan-grid.plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 430px; }
  .phone { width: 236px; border-radius: 42px; }
  .phone-screen { border-radius: 32px; padding-inline: 14px; }
  .phone-power { width: 124px; height: 124px; }
  .float-chip { font-size: .8rem; padding: .45rem .75rem; }
  .float-chip.chip-a { top: auto; bottom: 4%; left: 0; }
  .float-chip.chip-b { top: 22%; }
  .float-chip.chip-c { display: none; }
  .phone-top { font-size: 12px; gap: 6px; }
  .phone-top small { font-size: 11px; white-space: nowrap; }
  .phone-server { margin-bottom: 18px; }
  .phone-server b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .device-tiles { gap: .75rem; }
  .device-tiles a { padding: 1.1rem; }
  .device-tiles span { font-size: .85rem; }
  .devices-art { min-height: 170px; }
  .plan-grid.plan-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-card { border-radius: 26px; }
  .cta-card .actions .button { flex: 1 1 100%; }
  .hero .actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-visual, .phone, .float-chip, .phone-power::before, .phone-power::after,
  .phone-bars em, .hero-globe .globe-arc, .hero-globe .globe-pulse, .devices-art .dev-link { animation: none; }
  .button.button, .bento .card, .steps-flow li, .device-tiles a, .plan-card.card, .icon-tile, .faq details::details-content { transition: none; }
  .button.button:hover:not(:disabled), .button.button:active:not(:disabled) { transform: none; }
}

/* Servers: dark band with country flags and special-purpose servers */
.servers-section.servers-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(90% 120% at 85% 0%, #23408f 0%, #0f1d3a 55%, #0b1530 100%);
  color: #fff;
}
.servers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.servers-section .wrap { position: relative; }
.servers-section h2, .servers-section strong { color: #fff; }
.servers-section .eyebrow { background: rgb(255 255 255 / 12%); color: #cfdcff; }
.servers-section .section-intro { color: #c3cfe8; }
.server-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.server-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 20px;
  background: rgb(255 255 255 / 6%);
  backdrop-filter: blur(6px);
  transition: transform 260ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.server-card > span:last-child { min-width: 0; }
.server-card strong { display: block; font-weight: 650; overflow-wrap: anywhere; }
.server-card small { display: block; color: #aebbd8; font-size: .86rem; }
.server-flag { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgb(255 255 255 / 18%), 0 6px 14px rgb(0 0 0 / 25%); }
.server-flag svg { width: 100%; height: 100%; transform: scale(1.5); }
@media (hover: hover) and (pointer: fine) {
  .server-card:hover { transform: translateY(-4px); background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 24%); }
}
.server-special { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.server-special li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgb(79 124 245 / 30%), rgb(79 124 245 / 8%));
  border: 1px solid rgb(140 170 255 / 28%);
}
.server-special strong { display: block; font-weight: 650; }
.server-special small { display: block; margin-top: .15rem; color: #c3cfe8; font-size: .88rem; line-height: 1.4; }
.server-special-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: #fff; color: var(--blue); }
.server-special-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .server-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-special { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .server-grid { grid-template-columns: minmax(0, 1fr); gap: .6rem; } .server-card { padding: .75rem .95rem; } .server-flag { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .server-card { transition: none; } }
/* Support page: form plus contact channels */
.support-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.card.support-form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.support-form h2 { margin: 0; font-size: 1.45rem; }
.support-field { display: grid; gap: .4rem; }
.support-field > span { font-weight: 600; font-size: .95rem; }
.support-field small { color: var(--muted); font-size: .84rem; }
.support-field :is(input, textarea) {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #cdd8ec;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.support-field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.support-field :is(input, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(31 85 224 / 14%); }
.support-photo {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  border: 1.5px dashed #c3d1ee;
  border-radius: 16px;
  background: var(--wash);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.support-photo:hover, .support-photo:focus-within { border-color: var(--blue); background: #eef3ff; }
.support-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.support-photo strong { display: block; font-weight: 600; }
.support-photo small { display: block; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.support-photo-icon, .support-channel-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.support-photo-icon svg, .support-channel-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-reminder { margin: 0; padding: .75rem 1rem; border-radius: 12px; background: #fff7e6; color: #6b4a00; font-size: .9rem; }
.support-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.support-form .button { justify-self: start; }
.support-side { display: grid; gap: 1rem; }
.card.support-channel { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; }
.support-channel h2, .support-tips h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.support-channel p { margin: 0 0 .8rem; color: var(--muted); }
.support-channel-icon { background: var(--blue-soft); box-shadow: none; }
.card.support-tips { padding: 1.3rem; }
.support-tips ul { margin: .6rem 0 0; padding-inline-start: 1.1rem; color: var(--muted); }
.support-tips li + li { margin-top: .45rem; }
.notice.is-ok { border-color: #bfe5cf; background: #e2f6ea; color: #0c5c33; }
@media (max-width: 860px) { .support-layout { grid-template-columns: minmax(0, 1fr); } .support-form .button { justify-self: stretch; } }
/* Client cabinet and VPN access: loaded after site.css in the auth bundle. */
.cab { --ok: #138a4c; --ok-soft: #e2f6ea; --warn: #a15c00; --warn-soft: #fff1da; }
.cab .icon { flex: none; width: 1.15em; height: 1.15em; }

/* Entrance: cards rise one after another; nothing waits for script. */
@keyframes cab-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cab-head, .cab-hero, .cab-quick > *, .cab-grid > *, .cab-side > *, .vpn > .card, .cab-notice {
  animation: cab-rise 620ms var(--ease-out) both;
}
.cab-hero { animation-delay: 60ms; }
.cab-quick > :nth-child(1) { animation-delay: 140ms; }
.cab-quick > :nth-child(2) { animation-delay: 190ms; }
.cab-quick > :nth-child(3) { animation-delay: 240ms; }
.cab-quick > :nth-child(4) { animation-delay: 290ms; }
.cab-grid > :nth-child(1), .vpn > .card:nth-of-type(2) { animation-delay: 340ms; }
.cab-grid > :nth-child(2), .vpn > .card:nth-of-type(3) { animation-delay: 400ms; }
.cab-grid > :nth-child(3), .vpn > .card:nth-of-type(4) { animation-delay: 460ms; }
.cab-grid > :nth-child(n+4) { animation-delay: 520ms; }

/* Head */
.cab-head.cab-head { align-items: center; margin-bottom: 1.25rem; }
.cab-head .button .icon, .cab-logout .icon { margin-inline-start: -.2rem; }

/* Status hero */
.card.cab-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3.2vw, 2.4rem);
  border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 100% 0%, #e6eeff 0%, #fff 55%);
  box-shadow: var(--shadow-md);
}
.card.cab-hero.is-active { background: radial-gradient(120% 140% at 100% 0%, #dcebff 0%, #f3fbf6 38%, #fff 62%); border-color: #cfe0fb; }
.card.cab-hero.is-warning { background: radial-gradient(120% 140% at 100% 0%, #ffeccc 0%, #fffaf1 42%, #fff 66%); border-color: #f3dcb6; }
.cab-hero h2 { margin: .55rem 0 .4rem; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.cab-hero-text { max-width: 46ch; margin: 0; color: var(--muted); font-size: 1.04rem; }
.cab-hero .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.cab-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .32rem .8rem .32rem .65rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .85rem;
  font-weight: 650;
}
.cab-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.is-active .cab-chip { background: var(--ok-soft); color: var(--ok); }
.is-warning .cab-chip { background: var(--warn-soft); color: var(--warn); }
.is-active .cab-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: cab-ping 1.8s ease-out infinite;
}
@keyframes cab-ping { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(1.8); } }

.cab-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; }
.cab-facts:empty { display: none; }
.cab-facts > div {
  min-width: 0;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 78%);
  backdrop-filter: blur(6px);
}
.cab-facts dt { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; }
.cab-facts dt .icon { color: var(--blue); }
.cab-facts dd { margin: .15rem 0 0; font-size: 1.12rem; font-weight: 650; color: var(--ink); }

/* Days ring */
.cab-hero-art { display: grid; place-items: center; width: clamp(150px, 18vw, 190px); aspect-ratio: 1; }
.cab-ring { position: relative; width: 100%; aspect-ratio: 1; }
.cab-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cab-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.cab-ring-track { stroke: rgb(31 85 224 / 12%); }
.cab-ring-fill {
  stroke: var(--blue);
  stroke-dasharray: 100;
  stroke-dashoffset: var(--ring-offset);
  animation: cab-ring 1.3s var(--ease-out) 300ms both;
}
.is-warning .cab-ring-fill { stroke: #e08a00; }
@keyframes cab-ring { from { stroke-dashoffset: 100; } }
.cab-ring p { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; text-align: center; }
.cab-ring strong { font-size: clamp(2.4rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cab-ring span { margin-top: .2rem; color: var(--muted); font-size: .9rem; }

/* Shield and power orb */
.cab-shield, .vpn-orb { position: relative; display: grid; place-items: center; width: 78%; aspect-ratio: 1; }
.cab-shield svg { position: relative; width: 62%; filter: drop-shadow(0 14px 22px rgb(31 85 224 / 30%)); animation: cab-float 5s ease-in-out infinite; }
.cab-pulse {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgb(31 85 224 / 22%);
  animation: cab-wave 3.2s ease-out infinite;
}
.cab-pulse + .cab-pulse { animation-delay: 1.6s; }
@keyframes cab-wave { from { opacity: .9; transform: scale(.55); } to { opacity: 0; transform: scale(1.15); } }
@keyframes cab-float { 50% { transform: translateY(-7px); } }
.vpn-orb svg {
  position: relative;
  width: 46%;
  padding: 18%;
  box-sizing: content-box;
  border-radius: 50%;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  background: linear-gradient(160deg, #9aa8c0, #6f7d97);
  box-shadow: 0 14px 28px rgb(15 29 58 / 20%);
}
.vpn-orb.is-on svg { background: linear-gradient(160deg, #4f7cf5, #1f55e0); box-shadow: 0 14px 30px rgb(31 85 224 / 38%); }
.vpn-orb:not(.is-on) .cab-pulse { display: none; }

/* Quick tiles */
.cab-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.cab-tile {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 200ms ease;
}
.cab-tile strong { display: block; font-weight: 650; }
.cab-tile small { display: block; margin-top: .1rem; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.cab-tile-icon, .cab-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  transition: transform 320ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.cab-tile-icon .icon, .cab-card-icon .icon { width: 22px; height: 22px; }
.cab-tile:focus-visible { outline: 3px solid rgb(31 85 224 / 35%); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .cab-tile:hover { transform: translateY(-4px); border-color: #c9d8f6; box-shadow: var(--shadow-md); }
  .cab-tile:hover .cab-tile-icon { transform: rotate(-8deg) scale(1.08); background: var(--blue); color: #fff; }
}
.cab-tile:active { transform: scale(.98); }

/* Grid of cards */
.cab-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.cab-side { display: grid; gap: 1.25rem; min-width: 0; }
.card.cab-card { min-width: 0; padding: clamp(1.15rem, 2.4vw, 1.6rem); transition: box-shadow 260ms ease, transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card.cab-card:hover { box-shadow: var(--shadow-md); } }
.cab-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.cab-card-head h2 { margin: 0; font-size: 1.16rem; }
.cab-card-icon { width: 38px; height: 38px; border-radius: 12px; }
.cab-card-icon .icon { width: 19px; height: 19px; }
.cab-muted { margin: 0 0 1rem; color: var(--muted); }
.cab-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cab-card .actions .button .icon, .cab-card form .button .icon { margin-inline-start: -.25rem; }

/* Stepper */
.cab-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.cab-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .9rem; padding-bottom: 1.15rem; }
.cab-steps li:last-child { padding-bottom: .3rem; }
.cab-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 2px;
  left: 16px;
  width: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, #cfdaf2 0 5px, transparent 5px 9px);
}
.cab-steps li.is-done:not(:last-child)::before { background: var(--ok); opacity: .45; }
.cab-step-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #d5def0;
  background: #fff;
  color: var(--muted);
  font-size: .9rem;
}
.cab-step-mark b { font-weight: 700; }
.cab-step-mark .icon { display: none; width: 18px; height: 18px; stroke-width: 2.6; }
.cab-steps .is-current .cab-step-mark { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgb(31 85 224 / 12%); }
.cab-steps .is-done .cab-step-mark { border-color: var(--ok); background: var(--ok); color: #fff; }
.cab-steps .is-done .cab-step-mark b { display: none; }
.cab-steps .is-done .cab-step-mark .icon { display: block; }
.cab-steps strong { display: block; padding-top: .3rem; font-weight: 650; }
.cab-steps p { margin: .15rem 0 .35rem; color: var(--muted); font-size: .94rem; }
.cab-steps a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .94rem; color: var(--blue); text-decoration: none; }
.cab-steps a::after { content: "→"; transition: transform 220ms var(--ease-out); }
.cab-steps a:hover::after { transform: translateX(3px); }
.cab-steps .is-done a { display: none; }

.cab-devices { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.cab-devices a {
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 220ms var(--ease-out);
}
.cab-devices a:hover { border-color: var(--blue); background: #fff; color: var(--blue); transform: translateY(-2px); }

/* Balance */
.card.cab-balance { background: linear-gradient(150deg, #2a5ff0 0%, #1844c4 100%); border-color: transparent; color: #fff; box-shadow: 0 16px 36px rgb(31 85 224 / 28%); }
.cab-balance .cab-card-icon { background: rgb(255 255 255 / 16%); color: #fff; }
.cab-balance h2 { color: #fff; }
.cab-balance .cab-number.cab-number { color: #fff; }
.cab-number { margin: 0 0 .3rem; font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cab-balance .cab-muted { color: #d9e3ff; }
.cab-balance .button.button-secondary { border-color: transparent; background: #fff; color: var(--blue-dark); }

/* Sign-in methods */
.cab .cab-methods { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.cab-methods li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .9rem; font-weight: 600; }
.cab-methods .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.cab-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.cab-link:hover .arrow { transform: translateX(3px); }
.cab-link .arrow { transition: transform 220ms var(--ease-out); }

/* Payments */
.cab-payments { grid-column: 1; }
.cab-empty { display: grid; justify-items: center; gap: .6rem; padding: .6rem 0 .4rem; text-align: center; }
.cab-empty svg { width: 132px; animation: cab-float 5s ease-in-out infinite; }
.cab-empty p { max-width: 34ch; margin: 0; color: var(--muted); }
.cab-empty p strong { display: block; color: var(--ink); font-size: 1.05rem; }
.cab-empty .button { margin-top: .4rem; }
.cab .cab-payment-list { margin: 0; padding: 0; list-style: none; }
.cab-payment-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .8rem .5rem; border-radius: 14px; transition: background-color 180ms ease; }
.cab-payment-list li + li { border-top: 1px solid var(--line); }
.cab-payment-list li:hover { background: var(--wash); }
.cab-payment-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.cab-payment-icon .icon { width: 18px; height: 18px; }
.is-paid .cab-payment-icon { background: var(--ok-soft); color: var(--ok); }
.is-pending .cab-payment-icon { background: var(--warn-soft); color: var(--warn); }
.is-muted .cab-payment-icon { background: #eef1f6; color: var(--muted); }
.cab-payment-what small, .cab-payment-sum small { display: block; color: var(--muted); font-size: .84rem; }
.cab-payment-sum { text-align: end; }
.is-paid .cab-payment-sum small { color: var(--ok); }
.is-pending .cab-payment-sum small { color: var(--warn); }

/* Support */
.card.cab-support { background: linear-gradient(135deg, #fff 50%, #eef4ff); }

/* VPN access page */
.vpn { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 1.25rem; align-items: start; }
.vpn > * { grid-column: 1; }
.vpn > .cab-head, .vpn > .cab-hero, .vpn > .cab-notice { grid-column: 1 / -1; }
.vpn > .vpn-help { grid-column: 2; }
.card.happ-slots { margin: 0; }
.auth-section.auth-dashboard { padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.cab-ring { border-radius: 50%; box-shadow: 0 10px 30px rgb(31 85 224 / 14%); }
.vpn > .cab-head { margin-bottom: 0; }
.cab-notice.cab-notice { margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid #f3dcb6; background: var(--warn-soft); color: #6b3d00; }
.cab-notice.is-ok { border-color: #bfe5cf; background: var(--ok-soft); color: #0c5c33; }
.vpn-link { border-color: #bfd2fb; box-shadow: 0 0 0 4px rgb(31 85 224 / 8%), var(--shadow-md); }
.vpn-link label { display: block; margin-bottom: .4rem; font-weight: 600; }
.vpn-copy { display: flex; gap: .5rem; margin-bottom: .8rem; }
.vpn-copy input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: .6rem .9rem;
  border: 1px solid #c9d6ee;
  border-radius: 14px;
  background: var(--wash);
  color: var(--ink);
  font: 500 .95rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.vpn-copy input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(31 85 224 / 14%); background: #fff; }
.vpn-copy .button { flex: none; }
.vpn-copy .button.is-copied { background: var(--ok); box-shadow: 0 8px 20px rgb(19 138 76 / 30%); }
.vpn-mini-steps { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.vpn-mini-steps li { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .45rem; border-radius: 999px; background: var(--wash); font-size: .9rem; }
.vpn-mini-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; }
.vpn-issue form { margin: 0 0 .6rem; }

.vpn-meter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.vpn-meter span { width: 38px; height: 10px; border-radius: 999px; background: #e3e9f5; }
.vpn-meter .is-used { background: linear-gradient(90deg, #4f7cf5, var(--blue)); animation: cab-fill 520ms var(--ease-out) both; animation-delay: calc(300ms + var(--i) * 90ms); }
@keyframes cab-fill { from { transform: scaleX(0); transform-origin: left; } to { transform: none; } }
.happ-slots > p { margin: 0 0 1rem; color: var(--muted); }
.happ-slots > form { margin-bottom: 1rem; }
.card .happ-slot-list.happ-slot-list { display: grid; gap: .6rem; margin: 0; }
.happ-slot-list.happ-slot-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: .3rem .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.vpn-slot-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.vpn-slot-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.vpn-slot-actions form { margin: 0; }
.vpn-slot-actions .button.button { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }
.vpn-slot-actions details { flex-basis: 100%; }
.vpn-slot-actions summary { cursor: pointer; font-weight: 600; }

/* Free trial offer */
.cab-trial { display: contents; }
.cab-trial-note { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 940px) {
  .vpn { grid-template-columns: minmax(0, 1fr); }
  .vpn > .vpn-help { grid-column: 1; }
  .cab-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-grid { grid-template-columns: minmax(0, 1fr); }
  .cab-payments { grid-column: auto; }
}
@media (max-width: 640px) {
  .cab-head.cab-head { align-items: flex-start; }
  .card.cab-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .cab-hero-art { order: -1; justify-self: start; width: 120px; }
  .cab-shield, .vpn-orb { width: 100%; }
  .cab-hero .actions .button { flex: 1 1 100%; }
  .cab-quick { gap: .7rem; }
  .cab-tile { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem; }
  .cab-tile small { display: none; }
  .cab-payment-list li { grid-template-columns: 34px minmax(0, 1fr); }
  .cab-payment-sum { grid-column: 2; text-align: start; }
  .vpn-copy { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .cab *, .cab *::before, .cab *::after, .cab-head, .cab-hero, .cab-quick > *, .cab-grid > *, .vpn > .card {
    animation: none !important;
    transition: none !important;
  }
}
