/* iVstore VPN dashboard — the shop's look (ivstore.ru): dark page, lime primary, Onest.
   Muted text #8B97A8: 5.95:1 on the card #141922, 6.53:1 on the page #0B0E13 (WCAG AA ≥ 4.5:1).
   No animation anywhere; buttons have transition:none and one hover ring. */

@font-face { font-family: Onest; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/onest-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/onest-latin-400-normal.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: Onest; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/onest-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/onest-latin-700-normal.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: Onest; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/onest-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/onest-latin-800-normal.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; }

:root {
  --bg: #0B0E13; --card: #141922; --line: #232B38; --text: #EDF2F8; --muted: #8B97A8;
  --lime: #A5D400; --lime-ink: #0B1400; --lime-hover: #B6EA0A;
  --blue: #4FA8FF; --cyan: #35D6E8; --gold: #E2BB80; --violet: #9B8CFF; --warn: #FF8A5B;
  --ring: 0 0 0 3px rgba(237, 242, 248, .35);
  --km: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--lime); }
p { margin: 0 0 16px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding-top: 56px; padding-bottom: 56px; }
.h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 32px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.muted { color: var(--muted); }
.code { margin: 0 0 4px; color: var(--muted); font-size: 20px; font-weight: 800; }

/* icons keep their meaning colour everywhere */
.ic { width: 22px; height: 22px; flex: none; }
.h1 .ic { width: 30px; height: 30px; }
.ic-shield { color: var(--blue); }
.ic-lock, .ic-clock { color: var(--cyan); }
.ic-check, .ic-bolt { color: var(--lime); }
.ic-key { color: var(--gold); }
.ic-support { color: var(--violet); }
.ic-warning { color: var(--warn); }
.ic-pause { color: var(--muted); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.brand b { color: var(--lime); font-weight: 800; }
.nav { display: flex; gap: 24px; }
.nav-a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 700; padding: 8px 0; }
.nav-a:hover, .nav-a.is-on { color: var(--text); }
.nav-a.is-on { box-shadow: inset 0 -2px 0 var(--lime); }
.who { margin: 0 0 0 auto; display: flex; align-items: center; gap: 16px; }
.who-name { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 15px; }

/* buttons: one shape, four schemes at most (lime, outline, destructive outline) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 100px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: none; }
.btn:hover, .btn:focus-visible { box-shadow: var(--ring); outline: none; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover, .btn-lime:focus-visible { background: var(--lime-hover); box-shadow: var(--ring); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: var(--ring); }
.btn-danger { background: transparent; border-color: var(--warn); color: var(--warn); }
.btn-danger:hover, .btn-danger:focus-visible { background: var(--warn); border-color: var(--warn); color: var(--bg); box-shadow: var(--ring); }
.btn-wide { width: 100%; }
.btn-wide:hover, .btn-wide:focus-visible { box-shadow: var(--ring); }
.btn-close { min-height: 40px; }
.btn-close:hover, .btn-close:focus-visible { box-shadow: var(--ring); }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
form.inline { display: inline-flex; margin: 0; }

/* cards, forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.form { margin: 24px 0 0; }
.fld { display: flex; flex-direction: column; gap: 8px; margin: 0 0 24px; }
.fld-l { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.fld-h { color: var(--muted); font-size: 15px; }
.inp { width: 100%; min-height: 48px; padding: 0 16px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 14px; font: 400 17px/1.4 Onest, system-ui, sans-serif; }
.inp:focus { outline: none; border-color: var(--lime); box-shadow: var(--ring); }
.inp-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; }
.fs { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.fs legend { padding: 0; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; }
.chip:hover span { color: var(--text); border-color: var(--muted); }
.chip input:checked + span { color: var(--text); border-color: var(--lime); background: rgba(165, 212, 0, .12); }
.chip input:focus-visible + span { box-shadow: var(--ring); }
.err { display: flex; align-items: flex-start; gap: 8px; color: var(--warn); font-weight: 700; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin: 16px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 2px 8px; border: 1px solid var(--line); border-radius: 100px; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.pill .ic { width: 18px; height: 18px; }
.pill-off { color: var(--muted); }

/* list */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 32px; }
.sec-head .h1 + .muted, .sec-head .muted { margin: 0; }
.cardp .sec-head { align-items: flex-start; margin: 0 0 8px; }
.list { padding: 0; overflow: hidden; }
.lr { display: grid; grid-template-columns: minmax(0, 1.6fr) 190px 120px minmax(0, 1.3fr) 110px; gap: 8px 16px; align-items: center; padding: 20px 32px; border-top: 1px solid var(--line); }
.lr-all { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) 190px 120px minmax(0, 1.2fr) 110px; }
.lr-h { border-top: 0; padding-top: 16px; padding-bottom: 16px; color: var(--muted); font-size: 15px; font-weight: 700; }
.lr-name { font-weight: 700; overflow-wrap: anywhere; }
.lr-acc { color: var(--gold); font-weight: 700; overflow-wrap: anywhere; }
.lr-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.empty { display: flex; align-items: flex-end; gap: 32px; padding-bottom: 0; }
.empty > div { padding-bottom: 32px; }

/* banner: no connection */
.banner { display: flex; align-items: flex-end; gap: 24px; margin: 0 0 32px; padding: 16px 32px 0; background: rgba(255, 138, 91, .08); border: 1px solid rgba(255, 138, 91, .45); border-radius: 20px; }
.banner-t { padding-bottom: 16px; }
.banner-h { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 800; }
.banner-t p:last-child { margin: 0; }

/* mascots: height from mascots.css (units × k × --km), width follows the file */
.mas { display: block; flex: none; width: auto; max-width: none; }
.mas-pair { display: flex; align-items: flex-end; gap: 8px; flex: none; }

/* pages */
.login { display: flex; align-items: flex-end; justify-content: center; gap: 48px; }
.login-card { width: 460px; max-width: 100%; }
.create { display: grid; grid-template-columns: minmax(0, 720px) auto; gap: 48px; align-items: end; }
.create-side { padding-bottom: 32px; }
.hello { display: flex; align-items: flex-end; gap: 32px; margin: 0 0 32px; padding-bottom: 0; }
.hello > div { padding-bottom: 32px; }
.sub { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; margin: 24px 0 0; }
.qr { width: 240px; height: 240px; border-radius: 16px; overflow: hidden; background: #FFFFFF; }
.qr svg { display: block; width: 240px; height: 240px; }
.sub-r .fld { margin-bottom: 0; }
.sub-r .btns { margin-top: 16px; }
.sub-r .fld-h { margin: 16px 0 0; }
.howto { padding-top: 56px; }
.howto-head { display: flex; align-items: flex-end; gap: 24px; margin: 0 0 24px; }
.howto-head .muted { margin: 0; }
.howto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps { margin: 0; padding-left: 24px; }
.steps li { margin: 0 0 8px; }
.steps li:last-child { margin: 0; }
.msg { display: flex; align-items: flex-end; justify-content: center; gap: 48px; }
.msg > div { padding-bottom: 24px; max-width: 520px; }

/* our own toast and dialogs (never alert/confirm) */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: 460px; display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.toast[hidden] { display: none; }
.dlg { width: calc(100% - 32px); max-width: 540px; padding: 32px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 20px; }
.dlg::backdrop { background: rgba(11, 14, 19, .78); }
.dlg-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.dlg-b { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* the three how-to cards stay side by side only where their steps keep equal line counts */
@media (max-width: 1099px) {
  .howto-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* below 960 px: readable, mascots shrink instead of pushing content down */
@media (max-width: 959px) {
  :root { --km: .55; }
  .wrap { padding: 0 16px; }
  .top-in { flex-wrap: wrap; gap: 8px 24px; padding: 12px 0; }
  .lr, .lr-all { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px 20px; }
  .lr-h { display: none; }
  .lr > span[data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: 15px; font-weight: 400; }
  .create { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .sub { grid-template-columns: 1fr; }
  .login, .msg { gap: 16px; }
  .card { padding: 24px; }
}
