/* Self-hosted fonts (Unbounded, Golos Text) — cyrillic + latin.
   Generated from Google Fonts; served locally so the site does not depend on
   fonts.gstatic.com (blocked/throttled in RU without a VPN). */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/golos-text-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/golos-text-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/unbounded-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/unbounded-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/unbounded-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/unbounded-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/unbounded-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/unbounded-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================================
   BrodVPN — design system (shared by the landing page, /cp/ and /onboarding/).
   Layers: tokens → base → components → utilities. Page-specific styles live in
   landing.css / cabinet.css / onboarding.css, which are loaded AFTER this
   file and may override components via their own classes.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette: warm craft-paper tones */
  --bv-bg:            #FAF5EE;   /* cream page background */
  --bv-surface:       #FFFFFF;   /* cards */
  --bv-ink:           #2B2018;   /* primary text, dark sections */
  --bv-ink-soft:      #574B3F;   /* secondary text */
  --bv-ink-mute:      #6B5D4F;   /* muted text, nav links */
  --bv-ink-faint:     #8B7D6F;   /* captions, metadata */
  --bv-line:          #EFE6D8;   /* card and field borders */
  --bv-line-strong:   #D8CDBC;   /* "key" borders in hints */

  --bv-accent:        #E2531F;   /* brand orange */
  --bv-accent-strong: #C9440F;   /* hover / pressed */
  --bv-accent-ink:    #FFF8F0;   /* text on orange */
  --bv-peach:         #F5C296;   /* badges, hero underline */
  --bv-renew:         #F5A930;   /* yellow renew button */

  /* Dark sections (landing) and footer */
  --bv-dark-soft:     #C9BBA9;   /* secondary text on dark */
  --bv-dark-line:     #4A3B2C;
  --bv-dark-raise:    #3A2D20;   /* raised panel on dark */
  --bv-footer-bg:     #221A13;

  /* Semantic statuses */
  --bv-ok:            #2E7D32;
  --bv-ok-bright:     #4CAF50;
  --bv-ok-soft:       #7BC47F;   /* "connected" on dark */
  --bv-ok-bg:         #E8F3E9;
  --bv-ok-bg-alt:     #F1F8ED;
  --bv-ok-line:       #C4E0C8;
  --bv-ok-mute:       #6B9B70;

  --bv-danger:        #C9440F;   /* form errors */
  --bv-danger-ink:    #8A3B1B;   /* text in alert panels */
  --bv-danger-bg:     #FDF1EC;
  --bv-danger-line:   #F0D3C8;

  --bv-warn-ink:      #8A6116;
  --bv-warn-strong:   #B26A00;
  --bv-warn-bg:       #FFF6E5;
  --bv-warn-line:     #F0DFC0;

  /* Typography */
  --bv-font-body:    'Golos Text', system-ui, sans-serif;
  --bv-font-display: 'Unbounded', var(--bv-font-body);
  --bv-font-mono:    ui-monospace, 'Cascadia Mono', 'Courier New', monospace;

  --bv-fs-xs:   14px;
  --bv-fs-sm:   15px;
  --bv-fs-base: 16px;
  --bv-fs-md:   17px;
  --bv-fs-lg:   18px;
  --bv-fs-xl:   19px;
  --bv-fs-2xl:  20px;
  --bv-fs-3xl:  22px;
  --bv-lh:      1.55;
  --bv-lh-tight: 1.25;

  /* Headings — fluid, no breakpoints */
  --bv-fs-h1:      clamp(22px, 12px + 2.9vw, 44px);  /* landing hero */
  --bv-fs-h1-app:  clamp(22px, 18px + 1.1vw, 28px);  /* /cp/ and onboarding cards */
  --bv-fs-h2:      clamp(24px, 18px + 1.25vw, 32px);
  --bv-fs-h3:      clamp(18px, 16px + 0.5vw, 21px);
  --bv-fs-panel:   20px;                              /* panel headings */
  --bv-fs-stat:    clamp(28px, 24px + 1vw, 34px);     /* large figures */

  /* Radii */
  --bv-r-2xs: 8px;
  --bv-r-xs:  12px;
  --bv-r-sm:  14px;
  --bv-r-md:  16px;
  --bv-r-lg:  20px;
  --bv-r-xl:  24px;
  --bv-r-2xl: 28px;
  --bv-r-pill: 999px;

  /* Spacing */
  --bv-sp-1: 4px;
  --bv-sp-2: 8px;
  --bv-sp-3: 12px;
  --bv-sp-4: 16px;
  --bv-sp-5: 20px;
  --bv-sp-6: 24px;
  --bv-sp-7: 32px;
  --bv-sp-8: 40px;
  --bv-card-pad:    clamp(24px, 18px + 1.6vw, 40px);  /* large cards */
  --bv-card-pad-sm: clamp(20px, 16px + 1.2vw, 28px);  /* compact cards */
  --bv-section-pad: clamp(44px, 24px + 4.5vw, 80px);  /* landing section vertical rhythm */
  --bv-gutter:      clamp(16px, 8px + 2vw, 24px);     /* side gutters */

  /* Shadows (alpha derived from ink/accent) */
  --bv-shadow-cta:   0 6px 20px rgba(226, 83, 31, 0.35);
  --bv-shadow-cta-hover: 0 10px 26px rgba(226, 83, 31, 0.4);
  --bv-shadow-lift:  0 14px 30px rgba(43, 32, 24, 0.10);
  --bv-shadow-float: 0 8px 24px rgba(43, 32, 24, 0.3);
  --bv-shadow-sheet: 0 12px 32px rgba(43, 32, 24, 0.25);

  /* Motion */
  --bv-ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --bv-ease-spring: cubic-bezier(0.34, 1.3, 0.5, 1);
  --bv-dur-fast: 0.15s;
  --bv-dur:      0.18s;
  --bv-dur-slow: 0.45s;

  /* Content widths */
  --bv-w-wide:   1120px;  /* landing */
  --bv-w-prose:  760px;   /* text sections */
  --bv-w-shell:  880px;   /* /cp/ and onboarding header */
  --bv-w-col:    640px;   /* /cp/ and onboarding main column */
}

/* Derived colors — where color-mix is supported, hover shades and
   shadows are derived from base tokens (single point of brand tuning). */
@supports (color: color-mix(in oklab, red, blue)) {
  :root {
    --bv-accent-strong: color-mix(in oklab, var(--bv-accent) 84%, black);
    --bv-shadow-cta:   0 6px 20px color-mix(in srgb, var(--bv-accent) 35%, transparent);
    --bv-shadow-cta-hover: 0 10px 26px color-mix(in srgb, var(--bv-accent) 40%, transparent);
    --bv-shadow-lift:  0 14px 30px color-mix(in srgb, var(--bv-ink) 10%, transparent);
    --bv-shadow-float: 0 8px 24px color-mix(in srgb, var(--bv-ink) 30%, transparent);
    --bv-shadow-sheet: 0 12px 32px color-mix(in srgb, var(--bv-ink) 25%, transparent);
  }
}

/* ---------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bv-bg);
  color: var(--bv-ink);
  font-family: var(--bv-font-body);
  font-size: var(--bv-fs-base);
  line-height: var(--bv-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--bv-accent); }
a:hover { color: var(--bv-accent-strong); }

h1, h2, h3 {
  font-family: var(--bv-font-display);
  font-weight: 600;
  line-height: var(--bv-lh-tight);
  margin: 0;
  text-wrap: pretty;
}
h1 { font-size: var(--bv-fs-h1-app); }
h2 { font-size: var(--bv-fs-h2); }
h3 { font-size: var(--bv-fs-h3); font-family: var(--bv-font-body); font-weight: 700; }

p { margin: 0; }

img, video { max-width: 100%; }

::selection { background: var(--bv-peach); color: var(--bv-ink); }

/* Single visible keyboard focus ring */
:focus-visible {
  outline: 3px solid var(--bv-peach);
  outline-offset: 2px;
  border-radius: var(--bv-r-2xs);
}

/* ---------------------------------------------------------------------------
   3. Animations
   -------------------------------------------------------------------------- */
@keyframes brodvpn-spin { to { transform: rotate(360deg); } }
@keyframes bv-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}
@keyframes bv-sheen { 0%, 64% { left: -70%; } 100% { left: 140%; } }
@keyframes bv-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bv-sheet-up {
  from { transform: translateY(48px); opacity: 0.5; }
  to   { transform: none; opacity: 1; }
}
@keyframes bv-attention {
  0%, 100% { box-shadow: 0 8px 22px rgba(226, 83, 31, 0.3); transform: scale(1); }
  50%      { box-shadow: 0 16px 38px rgba(226, 83, 31, 0.6); transform: scale(1.04); }
}

/* ---------------------------------------------------------------------------
   4. Buttons. Each variant is self-contained (scripts inject full class
      lists: "btn-primary next-hot" etc.). Size via modifiers.
   -------------------------------------------------------------------------- */
.btn-primary, .btn-dark, .btn-outline, .btn-outline-light,
.btn-danger, .btn-renew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--bv-font-body);
  font-size: var(--bv-fs-lg);
  font-weight: 700;
  line-height: var(--bv-lh-tight);
  text-align: center;
  text-decoration: none;
  padding: 15px 28px;
  border: none;
  border-radius: var(--bv-r-pill);
  cursor: pointer;
  transition:
    background var(--bv-dur) var(--bv-ease-out),
    color var(--bv-dur) var(--bv-ease-out),
    border-color var(--bv-dur) var(--bv-ease-out),
    transform var(--bv-dur) var(--bv-ease-out),
    box-shadow var(--bv-dur) var(--bv-ease-out);
}

/* Sizes */
.btn-lg  { font-size: var(--bv-fs-2xl); padding: 19px 34px; }
.btn-sm  { font-size: var(--bv-fs-base); padding: 12px 22px; }
.btn-xs  { font-size: var(--bv-fs-sm); padding: 9px 16px; }

/* Primary (orange) — with a sweeping sheen */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--bv-accent);
  color: var(--bv-accent-ink);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: bv-sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--bv-accent-strong);
  color: var(--bv-accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--bv-shadow-cta-hover);
}
.btn-primary:active { transform: translateY(0) scale(0.99); box-shadow: none; }

/* Dark */
.btn-dark { background: var(--bv-ink); color: var(--bv-bg); }
.btn-dark:hover { background: var(--bv-accent); color: var(--bv-accent-ink); }
.btn-dark:active { transform: scale(0.99); }

/* Outline (on light) */
.btn-outline {
  background: transparent;
  border: 2px solid var(--bv-ink);
  color: var(--bv-ink);
  padding: 13px 26px; /* border compensation: same height as filled buttons */
}
.btn-outline:hover { background: var(--bv-ink); color: var(--bv-bg); }
.btn-outline.btn-sm { padding: 10px 20px; }
.btn-outline.btn-xs { padding: 7px 14px; }

/* Outline (on dark) */
.btn-outline-light {
  background: transparent;
  border: 2px solid var(--bv-ink-mute);
  color: var(--bv-bg);
  padding: 13px 26px;
  font-weight: 600;
}
.btn-outline-light:hover { border-color: var(--bv-bg); color: var(--bv-surface); }

/* Destructive action: subdued by default, .is-solid — confirmation state */
.btn-danger {
  background: var(--bv-surface);
  border: 2px solid var(--bv-danger-line);
  color: var(--bv-danger);
}
.btn-danger:hover, .btn-danger.is-solid {
  background: var(--bv-danger);
  border-color: var(--bv-danger);
  color: var(--bv-accent-ink);
}

/* Renew (yellow) */
.btn-renew { background: var(--bv-renew); color: var(--bv-ink); }
.btn-renew:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 169, 48, 0.4);
}
.btn-renew:active { transform: none; }

/* "App installed" — pulse hinting at the next step */
/* Pulse-only modifier for key CTAs (e.g. the landing hero button) */
.btn-pulse { animation: bv-attention 1.6s ease-in-out infinite; }

/* Attention CTA ("I installed the app" while the installer downloads):
   bigger than btn-lg and pulsing — shadow + gentle scale. */
.next-hot {
  font-size: var(--bv-fs-3xl);
  padding: 22px 38px;
  animation: bv-attention 1.3s ease-in-out infinite;
}

/* Full-width button (primary CTAs inside sheets and auth boxes) */
.btn-wide { display: flex; width: 100%; border-radius: var(--bv-r-md); }

/* Full-width button that keeps the pill shape (submit CTAs in cards) */
.btn-block { display: flex; width: 100%; }

/* Disabled and loading buttons */
.btn-primary:disabled, .btn-dark:disabled, .btn-outline:disabled,
.btn-danger:disabled, .btn-renew:disabled,
.btn-primary[aria-busy='true'], .btn-dark[aria-busy='true'] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* ---------------------------------------------------------------------------
   5. Action links
   -------------------------------------------------------------------------- */
.nav-link {
  color: var(--bv-ink-mute);
  text-decoration: none;
  font-size: var(--bv-fs-base);
  font-weight: 600;
  transition: color var(--bv-dur-fast) ease;
}
.nav-link:hover { color: var(--bv-accent); }
.nav-link.is-underlined { text-decoration: underline; }

.link-muted {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--bv-font-body);
  font-size: var(--bv-fs-sm);
  color: var(--bv-ink-faint);
  cursor: pointer;
  text-align: left;
  transition: color var(--bv-dur-fast) ease;
}
.link-muted:hover { color: var(--bv-accent); }
.link-muted.is-underlined { text-decoration: underline; }

/* Panel close (x) button */
.close-x {
  background: none;
  border: none;
  padding: 0;
  color: var(--bv-ink-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--bv-dur-fast) ease, transform var(--bv-dur-fast) var(--bv-ease-spring);
}
.close-x:hover { color: var(--bv-accent); transform: scale(1.15); }

/* ---------------------------------------------------------------------------
   6. Cards and panels
   -------------------------------------------------------------------------- */
.card {
  background: var(--bv-surface);
  border: 1px solid var(--bv-line);
  border-radius: var(--bv-r-xl);
  padding: var(--bv-card-pad-sm);
  display: flex;
  flex-direction: column;
  gap: var(--bv-sp-4);
  animation: bv-pop 0.4s var(--bv-ease-out);
}
.card--lg { padding: var(--bv-card-pad); gap: 22px; }

/* Loading row inside a card */
.loading-row {
  display: flex;
  align-items: center;
  gap: var(--bv-sp-3);
  color: var(--bv-ink-soft);
  font-size: var(--bv-fs-base);
}
.loading-row--lg { gap: var(--bv-sp-4); font-size: var(--bv-fs-lg); }

/* Status panels (success / danger / warning) */
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-sp-4);
  flex-wrap: wrap;
  border-radius: var(--bv-r-lg);
  padding: 18px 22px;
  animation: bv-pop 0.4s var(--bv-ease-out);
  font-size: var(--bv-fs-base);
  line-height: 1.5;
}
.notice--ok     { background: var(--bv-ok-bg); border: 1px solid var(--bv-ok-line); color: var(--bv-ok); }
.notice--danger { background: var(--bv-danger-bg); border: 1px solid var(--bv-danger-line); color: var(--bv-danger-ink); }
.notice--warn   { background: var(--bv-warn-bg); border: 1px solid var(--bv-warn-line); color: var(--bv-warn-ink); }
.notice__body { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 200px; }

/* Soft inline hint panel */
.hint-box {
  background: var(--bv-bg);
  border-radius: var(--bv-r-sm);
  padding: 16px 20px;
  font-size: var(--bv-fs-base);
  line-height: 1.5;
  color: var(--bv-ink-soft);
}
.hint-box strong { color: var(--bv-ink); }
.hint-box--ok    { background: var(--bv-ok-bg-alt); }
.hint-box--danger { background: var(--bv-danger-bg); color: var(--bv-danger-ink); }

/* ---------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.input {
  font-family: var(--bv-font-body);
  font-size: var(--bv-fs-lg);
  color: var(--bv-ink);
  width: 100%;
  padding: 16px 20px;
  background: var(--bv-surface);
  border: 2px solid var(--bv-line);
  border-radius: var(--bv-r-sm);
  outline: none;
  transition: border-color var(--bv-dur-fast) ease, box-shadow var(--bv-dur-fast) ease;
}
.input::placeholder { color: var(--bv-ink-faint); }
.input:hover { border-color: var(--bv-line-strong); }
.input:focus-visible {
  border-color: var(--bv-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(226, 83, 31, 0.15);
}
.input--compact {
  font-size: var(--bv-fs-xs);
  color: var(--bv-ink-soft);
  padding: 12px 14px;
  background: var(--bv-bg);
  border-radius: var(--bv-r-xs);
}

/* "Link + Copy" row (cabinet connect sheet, onboarding step-3 fallback) */
.copy-row { display: flex; gap: 10px; align-items: stretch; }
.copy-row .input--compact { flex: 1; min-width: 0; }
.copy-row .btn-outline {
  padding: 0 18px;
  border-radius: var(--bv-r-xs);
  font-size: var(--bv-fs-sm);
  white-space: nowrap;
}

.field-error { color: var(--bv-danger); font-size: var(--bv-fs-base); }

/* Email auth block (onboarding step 2, /cp/ login) — highlighted border,
   comes alive on focus */
.email-box {
  display: flex;
  flex-direction: column;
  gap: var(--bv-sp-3);
  background: rgba(245, 194, 150, 0.22);
  border: 1.5px solid var(--bv-peach);
  border-radius: var(--bv-r-lg);
  padding: var(--bv-sp-5);
  transition: border-color var(--bv-dur) ease, box-shadow var(--bv-dur) ease;
}
.email-box:has(.input:focus-visible) {
  border-color: var(--bv-accent);
  box-shadow: 0 0 0 3px rgba(226, 83, 31, 0.12);
}
.email-box__title { font-size: var(--bv-fs-base); font-weight: 700; }
@supports (background: color-mix(in srgb, red, blue)) {
  .email-box { background: color-mix(in srgb, var(--bv-peach) 22%, transparent); }
}

/* Secondary "via Telegram" auth button — card with a caption (button: UA
   styles reset) */
.tg-alt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bv-sp-1);
  text-align: left;
  background: var(--bv-surface);
  color: var(--bv-ink);
  border: 2px solid var(--bv-line);
  padding: 18px 24px;
  border-radius: var(--bv-r-lg);
  font-family: var(--bv-font-body);
  cursor: pointer;
  transition: background var(--bv-dur) ease, border-color var(--bv-dur) ease;
}
.tg-alt:hover { background: var(--bv-bg); color: var(--bv-ink); border-color: var(--bv-line-strong); }
.tg-alt__title { font-size: var(--bv-fs-lg); font-weight: 700; }
.tg-alt__sub { font-size: var(--bv-fs-sm); font-weight: 400; color: var(--bv-ink-faint); }

/* Auth state blocks (Telegram waiting/errors, "check your email", …) */
.auth-box {
  display: flex;
  flex-direction: column;
  gap: var(--bv-sp-4);
  background: var(--bv-bg);
  border-radius: var(--bv-r-lg);
  padding: 24px 28px;
}
.auth-box--row { flex-direction: row; align-items: center; }
.auth-box--danger { background: var(--bv-danger-bg); color: var(--bv-danger-ink); }
.auth-box--ok { background: var(--bv-ok-bg-alt); border-radius: var(--bv-r-md); padding: 20px 22px; gap: 10px; }
.auth-box__title { font-size: var(--bv-fs-md); font-weight: 700; }
.auth-box__title.is-ok { color: var(--bv-ok); }
.auth-box .link-muted { font-size: var(--bv-fs-base); }

/* "— or —" divider */
.split-label {
  display: flex;
  align-items: center;
  gap: var(--bv-sp-4);
  color: var(--bv-ink-faint);
  font-size: var(--bv-fs-base);
}
.split-label::before, .split-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bv-line);
}

/* ---------------------------------------------------------------------------
   8. Chips (amounts, periods, payment methods, devices)
   -------------------------------------------------------------------------- */
.chip {
  font-family: var(--bv-font-body);
  font-size: var(--bv-fs-md);
  font-weight: 700;
  color: var(--bv-ink);
  background: var(--bv-surface);
  border: 2px solid var(--bv-line);
  border-radius: var(--bv-r-sm);
  padding: 12px 20px;
  cursor: pointer;
  transition:
    border-color var(--bv-dur-fast) ease,
    background var(--bv-dur-fast) ease,
    color var(--bv-dur-fast) ease,
    transform var(--bv-dur-fast) var(--bv-ease-spring);
}
.chip:hover { border-color: var(--bv-accent); transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(0.98); }
.chip.is-active {
  background: var(--bv-accent);
  border-color: var(--bv-accent);
  color: var(--bv-accent-ink);
}

/* ---------------------------------------------------------------------------
   9. Spinner
   -------------------------------------------------------------------------- */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bv-line);
  border-top-color: var(--bv-accent);
  animation: brodvpn-spin 0.8s linear infinite;
  flex-shrink: 0;
}
.spinner--sm { width: 14px; height: 14px; border-width: 2px; }
.spinner--lg { width: 22px; height: 22px; }

/* Status dot ("all set") */
.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bv-ok-bright);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   10. Modal panels (bottom sheet on mobile).
       Panels render below the buttons in page flow; without an overlay
       they opened off-screen on mobile.
   -------------------------------------------------------------------------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--bv-sp-6);
  background: rgba(43, 32, 24, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* While a panel is open, the background does not scroll (progressive enhancement) */
body:has(.sheet-overlay) { overflow: hidden; }

.card.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--bv-card-pad-sm);
  gap: 18px;
  box-shadow: var(--bv-shadow-sheet);
}
.sheet--ink    { border: 2px solid var(--bv-ink); }
.sheet--ok     { border: 2px solid var(--bv-ok); }
.sheet--accent { border: 2px solid var(--bv-accent); }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-sp-3);
}
.sheet-head h2 { font-size: var(--bv-fs-panel); }

@media (max-width: 600px) {
  .sheet-overlay { padding: 0; align-items: flex-end; }
  .card.sheet {
    max-width: none;
    max-height: 88vh;
    border-radius: var(--bv-r-xl) var(--bv-r-xl) 0 0;
    animation: bv-sheet-up 0.28s var(--bv-ease-out);
  }
}

/* ---------------------------------------------------------------------------
   11. App-page shell (/cp/, /onboarding/)
   -------------------------------------------------------------------------- */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bv-bg);
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-sp-5);
  width: 100%;
  max-width: var(--bv-w-shell);
  margin: 0 auto;
  padding: var(--bv-sp-5) var(--bv-gutter);
}
.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 12px + 1.5vw, 32px) var(--bv-gutter) clamp(64px, 40px + 4vw, 80px);
}
.page-col {
  width: 100%;
  max-width: var(--bv-w-col);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-logo { height: clamp(44px, 32px + 2.4vw, 68px); width: auto; }

/* ---------------------------------------------------------------------------
   12. Micro-utilities — only recurring simple combos
   -------------------------------------------------------------------------- */
.stack     { display: flex; flex-direction: column; gap: var(--bv-sp-3); }
.stack-sm  { display: flex; flex-direction: column; gap: var(--bv-sp-2); }
.stack-lg  { display: flex; flex-direction: column; gap: var(--bv-sp-4); }
.row       { display: flex; align-items: center; gap: var(--bv-sp-3); }
.row-split { display: flex; align-items: center; justify-content: space-between; gap: var(--bv-sp-3); }
.wrap      { flex-wrap: wrap; }
.self-start { align-self: flex-start; }
.center     { text-align: center; }

.text-soft   { color: var(--bv-ink-soft); }
.text-faint  { color: var(--bv-ink-faint); }
.text-ok     { color: var(--bv-ok); }
.text-danger { color: var(--bv-danger-ink); }
.text-sm     { font-size: var(--bv-fs-sm); }
.text-xs     { font-size: var(--bv-fs-xs); }

/* ---------------------------------------------------------------------------
   13. Accessibility: respect prefers-reduced-motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Owner's call: attention CTAs keep pulsing even here — RDP sessions
     report reduced motion and lost the cue entirely. */
  .next-hot {
    animation-duration: 1.3s !important;
    animation-iteration-count: infinite !important;
  }
  .btn-pulse {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------------
   Site footer — shared component (landing, /onboarding/, /cp/ and the content
   pages all load brand.css). Brand blurb + grouped link columns + a divider
   bottom row. Grid layout keeps the columns spread — no dead centre gap.
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bv-footer-bg);
  color: var(--bv-ink-faint);
  padding: var(--bv-sp-8) var(--bv-gutter);
  font-size: var(--bv-fs-sm);
}
.site-footer__inner {
  max-width: var(--bv-w-wide);
  margin: 0 auto;
  display: grid;
  /* Narrow brand block so the link columns get room (long titles fit one line) */
  grid-template-columns: minmax(190px, 0.8fr) 2.6fr;
  gap: var(--bv-sp-7) var(--bv-sp-6);
  align-items: start;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bv-sp-3);
  max-width: 340px;
}
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__tagline {
  margin: 0;
  color: var(--bv-dark-soft);
  line-height: var(--bv-lh);
}
.site-footer a {
  color: var(--bv-dark-soft);
  text-decoration: none;
  transition: color var(--bv-dur-fast) ease;
}
.site-footer a:hover { color: var(--bv-bg); }
.site-footer a.site-footer__cta { color: var(--bv-peach); font-weight: 600; }
.site-footer a.site-footer__cta:hover { color: var(--bv-bg); }
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bv-sp-6);
}
.site-footer__h {
  margin: 0 0 var(--bv-sp-3);
  font-family: var(--bv-font-display);
  font-weight: 600;
  font-size: var(--bv-fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bv-ink-faint);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: var(--bv-sp-2); }
.site-footer__bottom {
  max-width: var(--bv-w-wide);
  margin: var(--bv-sp-6) auto 0;
  padding-top: var(--bv-sp-5);
  border-top: 1px solid var(--bv-dark-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--bv-sp-3);
}
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-footer__nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .site-footer__nav { grid-template-columns: 1fr; }
}
