@font-face { font-family: Manrope; src: url('/static/fonts/Manrope-Variable.ttf') format('truetype'); font-style: normal; font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #101a36;
  --muted: #6e7c9b;
  --blue: #1767f5;
  --blue-dark: #1055d4;
  --blue-soft: #edf4ff;
  --line: #e2eaf5;
  --canvas: #f7faff;
  --green: #0ca66b;
  --shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section-shell, .header-inner, .footer-inner { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }

.site-header { position: relative; z-index: 5; background: rgba(255,255,255,.94); border-bottom: 1px solid #edf1f7; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 54px; }
.brand { flex: none; color: #101a36; font-size: 27px; font-weight: 800; letter-spacing: -.075em; }
.brand-dot { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 38px; color: #43516e; font-size: 14px; font-weight: 600; }
.main-nav a, .header-login { transition: color .18s ease; }
.main-nav a:hover, .header-login:hover { color: var(--blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.header-actions .header-logout { margin: 0; }
.header-login { color: #34415e; }
.button { display: inline-flex; min-height: 48px; justify-content: center; align-items: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #2275ff, #135be8); box-shadow: 0 9px 20px rgba(23,103,245,.19); }
.button-primary:hover { background: linear-gradient(135deg, #1767f5, #0c4fce); box-shadow: 0 12px 25px rgba(23,103,245,.25); }
.button-outline { color: var(--blue); border-color: #b9d0ff; background: #fff; }
.button-outline:hover { background: #f6f9ff; }
.button-small { min-height: 42px; padding-inline: 20px; border-radius: 11px; }
.button-large { min-height: 58px; min-width: 230px; border-radius: 13px; font-size: 16px; }
.button-large span { font-size: 20px; font-weight: 500; }
.menu-toggle, .mobile-nav { display: none; }

.hero { position: relative; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 24px; min-height: 540px; padding-block: 54px 42px; }
.hero::before { position: absolute; z-index: -1; top: 0; left: 48%; right: 0; height: 100%; content: ""; background: radial-gradient(ellipse at 52% 50%, #edf7ff 0, rgba(243,249,255,.7) 38%, rgba(255,255,255,0) 75%); }
.hero-copy { position: relative; z-index: 1; padding: 12px 0 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; color: #07875b; background: #e8fbf4; border: 1px solid #c9f4e3; border-radius: 99px; font-size: 13px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #16b87a; box-shadow: 0 0 0 4px rgba(22,184,122,.11); }
.status-dot-amber { background: #e6a328; box-shadow: 0 0 0 4px rgba(230,163,40,.13); }
.hero h1 { max-width: 700px; margin: 28px 0 18px; font-size: clamp(43px, 5vw, 66px); line-height: 1.08; letter-spacing: -.065em; font-weight: 800; }
.hero h1 span { white-space: nowrap; }
.hero-lead { max-width: 520px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.text-link { color: var(--blue); font-size: 15px; font-weight: 800; }
.text-link span { margin-left: 6px; font-size: 21px; vertical-align: -1px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 25px; color: #7a87a2; font-size: 12px; font-weight: 600; }
.note-icon { display: grid; width: 19px; height: 19px; place-items: center; color: var(--green); background: #eafaf3; border-radius: 50%; font-size: 12px; }

.network-art { position: relative; min-width: 0; height: 455px; overflow: visible; }
.network-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.globe-glow { position: absolute; inset: 11% 3% 8%; border-radius: 50%; background: radial-gradient(ellipse at 53% 50%, rgba(85,182,255,.15), rgba(85,182,255,.02) 64%, transparent 70%); filter: blur(8px); }
.server-node { position: absolute; display: flex; align-items: center; gap: 11px; min-width: 158px; padding: 12px 15px; background: rgba(255,255,255,.94); border: 1px solid rgba(221,233,248,.8); border-radius: 13px; box-shadow: 0 12px 32px rgba(50,95,153,.13); }
.server-node b, .server-node small, .security-card b, .security-card small { display: block; }
.server-node b { color: #172442; font-size: 13px; }
.server-node small { margin-top: 3px; color: #8390a9; font-size: 10px; }
.server-node i { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #17bd7d; }
.node-flag { display: grid; width: 29px; height: 29px; place-items: center; background: #f2f6fb; border-radius: 50%; font-size: 17px; }
.node-moscow { top: 12%; left: 17%; }
.node-germany { top: 36%; right: -1%; }
.server-stack { position: absolute; display: flex; flex-direction: column; gap: 3px; width: 43px; height: 50px; padding: 7px 6px; border: 1px solid #348bed; border-radius: 5px; background: linear-gradient(145deg,#55bbfa,#2373dc); box-shadow: 0 12px 22px rgba(30,108,218,.25), 0 0 0 9px rgba(66,165,244,.09); transform: skewY(-8deg); }
.server-stack span { height: 9px; border: 1px solid rgba(255,255,255,.42); border-radius: 2px; background: linear-gradient(90deg,rgba(13,71,163,.62),rgba(30,124,227,.48)); }
.server-stack b { position: absolute; right: 9px; bottom: 11px; width: 3px; height: 3px; border-radius: 50%; background: #9df7db; box-shadow: 0 0 5px #9df7db; }
.stack-one { top: 47%; left: 43%; }
.stack-two { top: 57%; right: 22%; transform: scale(.86) skewY(-8deg); }
.security-card { position: absolute; right: 16%; bottom: 9%; display: flex; align-items: center; gap: 13px; padding: 15px 18px; background: rgba(255,255,255,.96); border: 1px solid #e2ebf7; border-radius: 14px; box-shadow: 0 12px 36px rgba(50,95,153,.12); }
.security-card b { max-width: 160px; color: #172442; font-size: 12px; }
.security-card small { margin-top: 4px; color: #8995ac; font-size: 10px; }
.security-icon { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: linear-gradient(145deg,#34d399,#0fa66f); border-radius: 12px; font-size: 20px; font-weight: 800; }
.art-caption { position: absolute; bottom: 2%; left: 42%; color: #92a4bf; font-size: 10px; letter-spacing: .04em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 14px 80px; }
.feature-card { min-height: 190px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.88); box-shadow: 0 10px 28px rgba(31,69,117,.035); }
.feature-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 18px; color: var(--blue); background: #eef5ff; border-radius: 50%; }
.icon-speed { font-size: 36px; font-weight: 800; line-height: 1; }
.feature-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.feature-card h2 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.035em; }
.feature-card p { max-width: 310px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.how-section { padding-block: 30px 92px; }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .support-section h2 { margin: 9px 0 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.055em; }
.section-kicker { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { min-height: 155px; padding: 22px 24px; border-radius: 14px; background: #f7faff; border: 1px solid #e8eef8; }
.step-number { color: #83a9ed; font-size: 13px; font-weight: 800; }
.step-card h3 { margin: 19px 0 7px; font-size: 16px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.plans-section { padding: 82px 0 92px; background: linear-gradient(180deg,#f8fbff,#f3f8ff); border-top: 1px solid #eef3fa; border-bottom: 1px solid #eaf0f8; }
.section-heading-centered { text-align: center; }
.section-heading-centered h2 { margin: 12px 0 8px; font-size: clamp(31px, 4vw, 44px); }
.section-heading-centered p { margin: 0; color: var(--muted); font-size: 15px; }
.plans-grid { display: flex; align-items: stretch; gap: 18px; margin-top: 38px; overflow-x: auto; overflow-y: hidden; padding: 3px 3px 18px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b8cbe6 transparent; }
.plans-grid::-webkit-scrollbar { height: 8px; }
.plans-grid::-webkit-scrollbar-track { background: transparent; }
.plans-grid::-webkit-scrollbar-thumb { background: #b8cbe6; border-radius: 99px; }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 310px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(33,76,128,.045); }
.plans-grid .plan-card { flex: 0 0 calc((100% - 36px) / 3); min-width: 300px; scroll-snap-align: start; }
.plan-card-featured { border-color: #a9c7ff; box-shadow: 0 14px 38px rgba(23,103,245,.1); }
.plan-badge { position: absolute; top: 18px; right: 18px; padding: 6px 10px; color: #1767f5; background: #edf4ff; border-radius: 50px; font-size: 10px; font-weight: 800; }
.plan-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.04em; }
.plan-description { min-height: 38px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-price { margin: 23px 0 17px; font-size: 34px; font-weight: 800; letter-spacing: -.06em; }
.plan-price span { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.plan-details { display: grid; gap: 10px; padding: 16px 0; margin: 0 0 18px; border-block: 1px solid #edf1f7; list-style: none; }
.plan-details li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.plan-details b { color: #243452; }
.plan-button { width: 100%; margin-top: auto; }
.plans-empty { max-width: 450px; padding: 36px; margin: 32px auto 0; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.empty-spark { display: block; margin-bottom: 12px; color: var(--blue); font-size: 25px; }
.plans-empty b { font-size: 17px; }
.plans-empty p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.support-section { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 70px; }
.faq-section { padding-block: 20px 80px; }
.faq-list { display: grid; gap: 10px; max-width: 820px; margin-top: 28px; }
.faq-list details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.faq-list summary { cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--blue); font-size: 20px; font-weight: 400; line-height: 14px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { max-width: 700px; margin: 12px 28px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.support-section p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.site-footer { background: #fff; border-top: 1px solid #edf1f7; }
.footer-inner { min-height: 78px; display: flex; align-items: center; gap: 25px; color: #8792a8; font-size: 11px; }
.brand-footer { font-size: 21px; }
.footer-inner > span:last-child { margin-left: auto; }
.maintenance-card { width: min(660px, calc(100% - 40px)); margin: 100px auto; padding: 48px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 18px 55px rgba(31,69,117,.08); }
.maintenance-card h1 { margin: 24px 0 10px; font-size: 42px; letter-spacing: -.06em; }
.maintenance-card p { color: var(--muted); line-height: 1.75; }

/* Shared customer and admin screens */
.app-page, .admin-page { min-height: 100vh; background: #f6f9fe; }
.app-main { min-height: calc(100vh - 155px); padding-block: 38px 72px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { margin: 9px 0 0; font-size: clamp(30px,4vw,40px); letter-spacing: -.06em; }
.back-link { color: #7c8ba7; font-size: 12px; font-weight: 700; }
.mobile-account-link { display: none; color: var(--blue); font-size: 13px; font-weight: 800; }
.app-footer { background: #fff; border-top: 1px solid var(--line); }
.app-footer > div { min-height: 76px; display: flex; align-items: center; gap: 20px; color: #8792a8; font-size: 11px; }
.app-footer > div > span:last-child { margin-left: auto; }
.notice { padding: 13px 16px; margin: 0 0 20px; border: 1px solid; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.notice-success { color: #08754f; background: #edfbf5; border-color: #c7f1df; }
.notice-error { color: #a33838; background: #fff2f1; border-color: #f5d1cd; }
.notice-warning { color: #8c6214; background: #fff9eb; border-color: #f2e2b6; }
.form-card, .content-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 34px rgba(31,69,117,.045); }
.auth-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr); gap: 28px; align-items: stretch; max-width: 950px; margin: 30px auto; }
.auth-layout-plans { display: block; max-width: 1280px; margin: 38px auto 54px; }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 465px; padding: 35px; color: #fff; border-radius: 18px; background: radial-gradient(circle at 82% 22%,rgba(104,188,255,.45),transparent 32%),linear-gradient(145deg,#1657d7,#173779 70%,#142750); }
.auth-aside::after { position: absolute; right: -35px; bottom: -95px; width: 300px; height: 300px; content: ""; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035),0 0 0 75px rgba(255,255,255,.025); }
.auth-aside h2 { position: relative; z-index: 1; max-width: 360px; margin: 0; font-size: 34px; line-height: 1.13; letter-spacing: -.06em; }
.auth-aside p { position: relative; z-index: 1; max-width: 340px; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.7; }
.auth-aside .brand { color: #fff; }
.auth-aside .brand-dot { color: #71d4ff; }
.auth-aside-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.84); font-size: 11px; }
.auth-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 45px rgba(31,69,117,.065); }
.auth-card-plans { padding: 42px 46px; }
.auth-card h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.06em; }
.auth-subtitle { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.field { display: grid; gap: 7px; margin: 15px 0; }
.field label, .field-label { color: #34425f; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea, .select-control { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: #fbfcff; border: 1px solid #dce5f1; border-radius: 10px; outline: 0; font: inherit; font-size: 13px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #76a4ff; box-shadow: 0 0 0 3px rgba(23,103,245,.1); }
.field-hint { color: #8995aa; font-size: 11px; line-height: 1.5; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; color: #71809b; background: transparent; border: 0; border-radius: 8px; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { color: var(--blue); background: #eef4ff; }
.password-toggle:focus-visible { outline: 2px solid #76a4ff; outline-offset: 1px; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-eye-hide { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-show { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-hide { display: block; }
.form-submit { width: 100%; margin-top: 9px; }
.form-bottom { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.form-bottom a { color: var(--blue); font-weight: 800; }
.auth-card .field:has(.plan-choice) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth-card-plans .field:has(.plan-choice) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.auth-card .field:has(.plan-choice) > .field-label { grid-column: 1 / -1; }
.plan-choice { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-content: start; align-items: start; column-gap: 9px; row-gap: 6px; min-height: 96px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.auth-card-plans .plan-choice { display: flex; min-height: 270px; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border-radius: 15px; }
.plan-choice:has(input:checked) { border-color: #86afff; background: #f3f7ff; }
.plan-choice input { grid-row: 1 / span 2; width: 16px; min-width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 2px 0 0; accent-color: var(--blue); }
.plan-choice strong { margin: 0; font-size: 11px; line-height: 1.4; }
.plan-choice small { grid-column: 2; display: block; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.plan-choice-heading { display: flex; align-items: center; gap: 10px; }
.auth-card-plans .plan-choice-heading input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.auth-card-plans .plan-choice-heading strong { color: var(--ink); font-size: 16px; }
.plan-duration { color: var(--muted); font-size: 13px; }
.plan-traffic { color: #1d5cc5; font-size: 18px; font-weight: 800; }
.auth-card-plans .plan-choice small { color: #71809b; font-size: 12px; line-height: 1.6; }
.plan-price { margin-top: auto; color: var(--ink); font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.consent-list { display: grid; gap: 12px; margin: 20px 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.consent-list legend { padding: 0 5px; color: #34425f; font-size: 12px; font-weight: 800; }
.consent-item { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 9px; color: #53627f; font-size: 11px; line-height: 1.55; cursor: pointer; }
.consent-item input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue); }
.consent-item a { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.registration-account-summary { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 12px 14px; color: #53627f; background: #f7faff; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.registration-account-summary strong { color: var(--ink); overflow-wrap: anywhere; }
.registration-step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; }
.registration-step-actions .button { min-height: 44px; padding-inline: 14px; font-size: 11px; }
.auth-card-plans .registration-step-actions { align-items: center; margin-top: 28px; }
.auth-card-plans .registration-step-actions .button-primary { min-width: 280px; min-height: 54px; font-size: 14px; }
.legal-draft { max-width: 760px; margin: 42px auto; }
.legal-draft h2 { margin: 8px 0 14px; font-size: 25px; letter-spacing: -.04em; }
.legal-draft p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.account-top { margin-bottom: 22px; }
.account-email { color: var(--muted); font-size: 13px; }
.account-greeting { margin: 0 0 5px; color: var(--ink); font-size: 25px; line-height: 1.2; letter-spacing: -.045em; overflow-wrap: anywhere; }
.account-overview { display: grid; grid-template-columns: 1.2fr .8fr .9fr; align-items: center; gap: 18px; padding: 24px; background: linear-gradient(105deg,#f3fff9,#fff 55%); border: 1px solid #cdeedc; border-radius: 17px; }
.subscription-state { display: flex; align-items: center; gap: 13px; }
.state-icon { display: grid; flex: none; width: 44px; height: 44px; place-items: center; color: #fff; background: linear-gradient(145deg,#37cf90,#0ca66b); border-radius: 50%; font-size: 22px; font-weight: 800; }
.subscription-state strong { display: block; color: #089362; font-size: 17px; }
.subscription-state small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.metric { padding-left: 20px; border-left: 1px solid #e4eee8; }
.metric span { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 5px; font-size: 21px; letter-spacing: -.04em; }
.progress-track { height: 7px; overflow: hidden; margin-top: 9px; background: #e8edf5; border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg,#1767f5,#42a5ff); border-radius: inherit; }
.account-section { margin-top: 30px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.section-title-row h2 { margin: 0; font-size: 21px; letter-spacing: -.05em; }
.connection-section-heading { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 8px; }
.connection-section-copy { width: 100%; min-width: 0; }
.connection-section-copy .connection-explainer { max-width: none; }
.connection-help-link { display: inline-block; }
.muted-link { color: var(--blue); font-size: 12px; font-weight: 800; }
.connection-section-actions { display: flex; align-items: center; gap: 14px; }
.connection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.connection-card { display: flex; flex-direction: column; min-height: 205px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 28px rgba(31,69,117,.035); }
.connection-head { display: flex; align-items: center; gap: 10px; }
.connection-flag { display: grid; width: 35px; height: 35px; place-items: center; background: #f1f5fb; border-radius: 50%; font-size: 19px; }
.connection-head h3 { margin: 0; font-size: 14px; }
.connection-state { display: flex; align-items: center; gap: 6px; margin: 9px 0 13px 45px; color: #0b9a66; font-size: 10px; }
.connection-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-left: 45px; }
.connection-tags span { padding: 6px 9px; color: #60718e; background: #edf4ff; border-radius: 7px; font-size: 9px; font-weight: 800; }
.connection-direct { margin: 4px 0 10px 45px; color: #1767f5; font-size: 10px; font-weight: 800; }
.connection-card .button { width: 100%; min-height: 39px; margin-top: auto; font-size: 11px; }
.subscription-dialog { width: min(620px, calc(100% - 32px)); max-width: none; padding: 26px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 80px rgba(18,42,77,.24); }
.subscription-dialog::backdrop { background: rgba(26,39,61,.48); backdrop-filter: blur(4px); }
.subscription-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.subscription-dialog-head h2 { margin: 0 0 6px; font-size: 21px; }
.subscription-dialog-head p,.subscription-dialog-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.subscription-dialog-hint { margin-top: 14px; }
.dialog-close { flex: none; width: 38px; height: 38px; color: #60718e; background: #f5f8fc; border: 1px solid var(--line); border-radius: 10px; font-size: 22px; cursor: pointer; }
.empty-state { padding: 24px; color: var(--muted); background: #fff; border: 1px dashed #cfdaea; border-radius: 14px; text-align: center; font-size: 12px; line-height: 1.7; }
.subscription-link-card { padding: 21px 24px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.subscription-link-card h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.04em; }
.subscription-link-card p { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { flex: 1; min-width: 0; padding: 12px; color: #35435e; background: #f8faff; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12px; }
.copy-row button { flex: none; }
.queue-note { margin-top: 15px; padding: 13px 16px; color: #765311; background: #fff9eb; border: 1px solid #f0e2bd; border-radius: 11px; font-size: 12px; line-height: 1.55; }
.inline-form { display: inline; }

/* Admin console */
.admin-page { background: #f6f8fc; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; width: 238px; flex-direction: column; padding: 25px 16px 18px; background: #fff; border-right: 1px solid #e7edf5; }
.admin-sidebar .brand { padding: 0 12px 27px; }
.admin-label { padding: 0 12px 12px; color: #98a3b6; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 12px; color: #66748e; border-radius: 10px; font-size: 12px; font-weight: 700; }
.admin-nav a.active { color: #145de0; background: #edf4ff; }
.nav-mark { width: 8px; height: 8px; border: 1.8px solid currentColor; border-radius: 3px; }
.admin-nav a.active .nav-mark { background: currentColor; box-shadow: 0 0 0 4px rgba(23,103,245,.1); }
.sidebar-bottom { margin-top: auto; }
.admin-status { display: flex; align-items: center; gap: 8px; padding: 13px 12px; color: #78869f; font-size: 10px; }
.admin-status i { width: 7px; height: 7px; background: #16b87a; border-radius: 50%; }
.sidebar-logout { display: flex; justify-content: space-between; width: 100%; padding: 13px 12px; color: #8a96aa; background: transparent; border: 0; border-top: 1px solid #edf1f7; text-align: left; font-size: 11px; cursor: pointer; }
.admin-content { min-height: 100vh; margin-left: 238px; }
.admin-topbar { height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 34px; color: #8a96aa; background: #fff; border-bottom: 1px solid #e7edf5; font-size: 11px; }
.admin-topbar span span { padding: 0 7px; color: #c1cad8; }
.admin-topbar a { color: #63728e; font-weight: 700; }
.admin-main { max-width: 1420px; padding: 32px 34px 60px; margin: auto; }
.admin-page-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.admin-page-title h1 { margin: 7px 0 0; font-size: 30px; letter-spacing: -.06em; }
.admin-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #1767f5; background: #e9f1ff; border-radius: 50%; font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.stat-card { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.stat-card span { display: block; color: var(--muted); font-size: 10px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 26px; letter-spacing: -.05em; }
.stat-foot { margin-top: 8px; color: #91a0b6; font-size: 9px; }
.admin-section { margin-top: 25px; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 13px; }
.admin-section-head h2 { margin: 0; font-size: 16px; letter-spacing: -.035em; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
.admin-table th { padding: 12px 15px; color: #8a97ad; background: #fbfcfe; border-bottom: 1px solid #edf1f7; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-table td { padding: 13px 15px; color: #3b4966; border-bottom: 1px solid #f0f3f8; font-size: 11px; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-primary { color: #1b2946; font-weight: 800; }
.table-secondary { display: block; margin-top: 4px; color: #91a0b6; font-size: 9px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: #63728e; background: #f0f3f8; border-radius: 99px; font-size: 9px; font-weight: 800; }
.badge::before { width: 5px; height: 5px; content: ""; background: currentColor; border-radius: 50%; }
.badge-green { color: #078459; background: #eaf9f2; }
.badge-red { color: #b14a4a; background: #fff0ef; }
.badge-blue { color: #1767f5; background: #edf4ff; }
.action-cell { display: flex; align-items: center; gap: 6px; }
.small-button { min-height: 30px; padding: 0 9px; color: #1767f5; background: #f2f6ff; border: 1px solid #e0eaff; border-radius: 7px; font-size: 9px; font-weight: 800; cursor: pointer; }
.small-button-danger { color: #b14a4a; background: #fff5f4; border-color: #f5dfdd; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.admin-form-grid .field { margin: 0; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.admin-form-actions .button { min-height: 40px; font-size: 11px; }
.admin-two-column { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 17px; align-items: start; }
.admin-subtabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-subtabs a { padding: 8px 12px; color: #6a7892; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 800; }
.admin-subtabs a.active { color: #1767f5; background: #edf4ff; border-color: #d9e7ff; }
.switch-label { display: inline-flex; align-items: center; gap: 7px; color: #64728d; font-size: 10px; }
.switch-label input { accent-color: var(--blue); }
.auth-main { min-height: calc(100vh - 145px); padding-block: 48px 72px; }
.search-row { display: flex; align-items: center; gap: 10px; }
.search-row input { flex: 1; min-width: 0; min-height: 40px; padding: 10px 12px; background: #fbfcff; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12px; }
.search-row .button { min-height: 40px; font-size: 11px; }
.details-row td { padding: 0 !important; background: #fbfcfe; }
.details-row details { padding: 0 15px 12px; }
.details-row summary { color: #1767f5; cursor: pointer; font-size: 10px; font-weight: 800; }
.access-manager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 13px; }
.access-manager > div { min-width: 0; padding: 12px; background: #fff; border: 1px solid #e9eef6; border-radius: 10px; }
.access-manager > div > b { display: block; margin-bottom: 9px; color: #465470; font-size: 10px; }
.assignment-item, .assignment-add { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.assignment-item > span { flex: 1; min-width: 0; color: #53617b; font-size: 9px; }
.assignment-item small { color: #9aa5b7; }
.assignment-add select { flex: 1; min-width: 0; height: 30px; padding: 0 7px; color: #53617b; background: #fff; border: 1px solid #e0e7f0; border-radius: 7px; font: inherit; font-size: 9px; }
.server-admin-card { margin-bottom: 13px; padding: 20px; }
.server-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.server-name-line { display: flex; align-items: center; gap: 9px; }
.server-name-line h3 { margin: 0; font-size: 15px; letter-spacing: -.03em; }
.balancer-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 0; margin-top: 13px; border-top: 1px solid #edf1f7; color: #697791; font-size: 10px; }
.balancer-row code { color: #596986; font-size: 9px; }
.endpoint-list { padding-top: 12px; border-top: 1px solid #edf1f7; }
.endpoint-list-head { display: flex; justify-content: space-between; margin-bottom: 9px; color: #4e5d79; font-size: 10px; font-weight: 800; }
.endpoint-list-head span { display: grid; min-width: 20px; height: 20px; place-items: center; color: #63728e; background: #f0f3f8; border-radius: 50%; font-size: 9px; }
.endpoint-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f4f8; }
.endpoint-row > div > b { color: #34425f; font-size: 10px; }
.endpoint-row .table-secondary { margin-top: 4px; }
.endpoint-row form { margin: 0; }
.queue-admin { grid-column: 1/-1; padding: 12px; background: #f9fbff; border: 1px solid #e6edf7; border-radius: 9px; }
.queue-admin > b { display: block; color: #596986; font-size: 10px; }

@media (max-width: 760px) {
  .app-main { padding-block: 25px 50px; }
  .mobile-account-link { display: block; margin-left: auto; }
  .app-footer > div { width: calc(100% - 40px); flex-wrap: wrap; gap: 8px 14px; padding-block: 15px; }
  .app-footer > div > span:last-child { margin-left: 0; }
  .auth-layout { grid-template-columns: 1fr; gap: 13px; margin-top: 12px; }
  .auth-layout-plans { display: block; margin-top: 12px; }
  .auth-main { padding-top: 25px; }
  .auth-aside { min-height: 180px; padding: 23px; }
  .auth-aside h2 { max-width: 270px; font-size: 27px; }
  .auth-aside p { max-width: 320px; margin: 10px 0; font-size: 12px; }
  .auth-aside-foot { font-size: 10px; }
  .auth-card { padding: 24px; }
  .auth-card-plans { padding: 26px 22px; }
  .auth-card-plans .field:has(.plan-choice) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .auth-card-plans .plan-choice { min-height: 230px; padding: 15px; }
  .auth-card-plans .registration-step-actions { align-items: stretch; }
  .registration-step-actions { flex-direction: column-reverse; }
  .registration-step-actions .button { width: 100%; }
  .registration-account-summary { flex-direction: column; }
  .account-overview { grid-template-columns: 1fr 1fr; gap: 18px 10px; padding: 19px; }
  .subscription-state { grid-column: 1/-1; }
  .metric { padding-left: 12px; }
  .metric strong { font-size: 18px; }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-card { min-height: 175px; }
  .connection-section-actions { align-items: flex-end; flex-direction: column; gap: 8px; }
  .subscription-dialog { padding: 20px; }
  .copy-row { flex-direction: column; }
  .copy-row .button { width: 100%; }
  .admin-sidebar { position: sticky; top: 0; inset: 0 0 auto; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 9px 15px; border-right: 0; border-bottom: 1px solid #e7edf5; }
  .admin-sidebar .brand { padding: 0; font-size: 22px; }
  .admin-label, .sidebar-bottom, .admin-nav .nav-mark { display: none; }
  .admin-nav { display: flex; gap: 3px; margin-left: auto; }
  .admin-nav a { min-height: 36px; padding: 0 8px; font-size: 9px; }
  .admin-content { margin-left: 0; }
  .admin-topbar { height: 48px; padding: 0 18px; font-size: 9px; }
  .admin-main { padding: 23px 16px 45px; }
  .admin-page-title h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 22px; }
  .admin-two-column { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .access-manager { grid-template-columns: 1fr; }
  .assignment-item { flex-wrap: wrap; }
  .assignment-item > span { flex-basis: 100%; }
  .server-admin-card { padding: 15px; }
  .endpoint-row { grid-template-columns: minmax(0,1fr) auto; }
  .endpoint-row form { grid-column: 2; }
}

@media (max-width: 1080px) {
  :root { --shell: 960px; }
  .header-inner { gap: 36px; }
  .main-nav { gap: 24px; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 500px; }
  .hero h1 { font-size: clamp(40px, 5.1vw, 55px); }
  .hero h1 span { white-space: normal; }
  .network-art { height: 400px; }
  .node-moscow { left: 5%; }
  .node-germany { right: -3%; }
  .security-card { right: 6%; }
}
@media (max-width: 760px) {
  .section-shell, .header-inner, .footer-inner { width: min(100% - 40px, 560px); }
  .header-inner { min-height: 68px; gap: 18px; }
  .brand { font-size: 25px; }
  .main-nav, .header-actions { display: none; }
  .app-page-account .header-actions { display: flex; gap: 0; margin-left: auto; }
  .app-page-account .header-actions > a { display: none; }
  .app-page-account .header-logout { display: block; }
  .app-page-account .header-logout .button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; margin-left: auto; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .menu-toggle span { display: block; width: 100%; height: 2px; background: #233454; border-radius: 2px; }
  .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(31,69,117,.07); }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 12px 6px; color: #43516e; font-size: 14px; font-weight: 700; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-block: 42px 20px; }
  .hero::before { left: -20px; right: -20px; height: 60%; }
  .hero h1 { margin-top: 23px; font-size: clamp(39px, 9.2vw, 56px); line-height: 1.07; }
  .hero h1 span { white-space: normal; }
  .hero-lead { font-size: 15px; line-height: 1.7; }
  .hero-actions { flex-wrap: wrap; gap: 18px; margin-top: 24px; }
  .button-large { min-width: 190px; min-height: 54px; }
  .hero-note { margin-top: 18px; font-size: 11px; }
  .network-art { width: 100%; height: min(78vw, 390px); min-height: 285px; margin-top: 4px; transform: scale(.98); transform-origin: center top; }
  .server-node { min-width: 133px; padding: 9px 11px; gap: 8px; }
  .server-node b { font-size: 11px; }
  .server-node small { font-size: 9px; }
  .node-moscow { top: 10%; left: 3%; }
  .node-germany { top: 35%; right: 0; }
  .stack-one { top: 46%; left: 42%; }
  .stack-two { top: 56%; right: 20%; }
  .security-card { right: 5%; bottom: 7%; padding: 11px 12px; gap: 9px; }
  .security-card b { max-width: 130px; font-size: 10px; }
  .security-card small { font-size: 9px; }
  .security-icon { width: 32px; height: 32px; border-radius: 10px; }
  .art-caption { bottom: 0; left: 39%; font-size: 9px; }
  .features { grid-template-columns: 1fr; gap: 12px; padding-block: 8px 56px; }
  .feature-card { min-height: 0; display: grid; grid-template-columns: 52px 1fr; column-gap: 15px; padding: 18px; }
  .feature-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .icon-speed { font-size: 32px; }
  .feature-card h2 { align-self: end; margin: 2px 0 4px; font-size: 15px; }
  .feature-card p { font-size: 12px; }
  .how-section { padding-block: 8px 64px; }
  .section-heading h2, .support-section h2 { font-size: 30px; }
  .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .step-card { min-height: 0; padding: 18px; }
  .step-card h3 { margin-top: 11px; }
  .plans-section { padding-block: 60px; }
  .section-heading-centered h2 { font-size: 32px; }
  .section-heading-centered p { font-size: 13px; line-height: 1.6; }
  .plans-grid { gap: 12px; margin-top: 28px; }
  .plans-grid .plan-card { flex-basis: min(86vw, 360px); min-width: min(86vw, 360px); }
  .plan-card { min-height: 0; padding: 23px; }
  .support-section { align-items: flex-start; flex-direction: column; padding-block: 54px; }
  .footer-inner { min-height: 92px; flex-wrap: wrap; gap: 7px 16px; padding-block: 18px; }
  .footer-inner > span:last-child { margin-left: 0; }
  .maintenance-card { padding: 30px 24px; margin-block: 65px; }
  .maintenance-card h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 420px) {
  .auth-card .field:has(.plan-choice) { grid-template-columns: 1fr; }
  .auth-card .field:has(.plan-choice) > .field-label { grid-column: auto; }
  .auth-card-plans .field:has(.plan-choice) { grid-template-columns: 1fr; }
}

/* v1.8 mobile client setup guide */
.client-guides { padding: 23px 24px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.client-guides .section-title-row { margin-bottom: 18px; }
.guide-intro { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.client-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.client-guide-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; }
.guide-platform { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.guide-platform-icon { display: inline-grid; place-items: center; flex: none; width: 58px; height: 38px; border-radius: 10px; color: #155eef; background: #eaf1ff; font-size: 12px; font-weight: 800; }
.guide-platform-ios { color: #26334c; background: #edf0f5; }
.guide-platform h3 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.guide-platform p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.guide-download { display: inline-block; margin: 0 10px 8px 0; color: #155eef; font-size: 11px; font-weight: 700; }
.guide-steps { display: grid; gap: 10px; margin: 12px 0 0; padding-left: 20px; color: #56647d; font-size: 12px; line-height: 1.65; }
.guide-steps li { padding-left: 2px; }
.guide-steps strong { color: #17233f; }
.client-guide-switcher { width: 100%; }
.guide-tabs { display: inline-flex; gap: 5px; padding: 5px; margin-bottom: 16px; background: #f0f4fa; border: 1px solid #e6ecf5; border-radius: 12px; }
.guide-tab { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 7px 16px; color: #64728d; background: transparent; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.guide-tab[aria-selected="true"] { color: #155eef; background: #fff; border-color: #dce7f8; box-shadow: 0 2px 6px rgba(31,69,117,.06); }
.guide-tab:focus-visible { outline: 3px solid rgba(23,103,245,.25); outline-offset: 2px; }
.guide-tab-icon { position: relative; display: inline-block; width: 13px; height: 22px; border: 2px solid currentColor; border-radius: 4px; }
.guide-tab-icon::after { position: absolute; bottom: 2px; left: 50%; width: 3px; height: 3px; content: ''; background: currentColor; border-radius: 50%; transform: translateX(-50%); }
.guide-tab-icon-ios { color: #53617b; }
.guide-panel[hidden] { display: none; }
.guide-panel-intro { margin: 0 0 11px; color: var(--muted); font-size: 12px; }
.guide-security { margin-top: 15px; padding: 13px 15px; border: 1px solid #dce8ff; border-radius: 10px; color: #586783; background: #f5f8ff; font-size: 11px; line-height: 1.6; }
.guide-security strong { color: #17233f; }
@media (max-width: 760px) {
  .client-guides { padding: 19px 16px; }
  .client-guide-grid { grid-template-columns: 1fr; }
  .client-guide-card { padding: 16px; }
}

/* v1.10 premium, scannable mobile setup guide */
.client-guides { padding: clamp(22px,3vw,34px); background: linear-gradient(145deg,#fff 0%,#f9fbff 100%); border-radius: 20px; box-shadow: 0 18px 48px rgba(31,69,117,.055); }
.client-guides .section-title-row { margin-bottom: 22px; }
.guide-kicker { display: inline-block; margin-bottom: 8px; color: #1767f5; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.client-guides .section-title-row h2 { font-size: clamp(21px,2.5vw,27px); }
.guide-intro { max-width: 650px; margin-top: 7px; font-size: 13px; }
.client-guide-grid { gap: 18px; }
.client-guide-card { padding: 22px; background: #fff; border-color: #e3eaf5; border-radius: 16px; box-shadow: 0 8px 24px rgba(31,69,117,.04); }
.guide-platform { margin-bottom: 17px; }
.guide-platform-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 90px; height: 48px; color: #155eef; background: #eef4ff; border-radius: 13px; font-size: 9px; letter-spacing: .08em; }
.guide-platform-icon i { position: relative; display: block; width: 14px; height: 24px; border: 2px solid currentColor; border-radius: 4px; }
.guide-platform-icon i::after { position: absolute; bottom: 2px; left: 50%; width: 3px; height: 3px; content: ''; background: currentColor; border-radius: 50%; transform: translateX(-50%); }
.guide-platform-ios { color: #293650; background: #f0f3f8; }
.guide-platform h3 { font-size: 17px; }
.guide-platform p { font-size: 12px; }
.guide-app-links { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 16px; border-bottom: 1px solid #edf1f7; }
.guide-download { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; color: #155eef; background: #f5f8ff; border: 1px solid #e2ebff; border-radius: 9px; font-size: 10px; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.guide-download:hover { background: #edf4ff; border-color: #bfd3ff; transform: translateY(-1px); }
.guide-download strong { color: #142347; font-size: 11px; }
.guide-download span { color: #1767f5; }
.guide-steps { counter-reset: guide-step; gap: 9px; margin-top: 16px; padding: 0; list-style: none; font-size: 12px; line-height: 1.6; }
.guide-steps li { position: relative; min-height: 42px; padding: 10px 12px 10px 47px; background: #fbfcff; border: 1px solid #edf1f7; border-radius: 10px; }
.guide-steps li::before { position: absolute; top: 9px; left: 11px; display: grid; width: 24px; height: 24px; place-items: center; counter-increment: guide-step; content: counter(guide-step); color: #1767f5; background: #eaf1ff; border-radius: 8px; font-size: 10px; font-weight: 800; }
.guide-security { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 16px 18px; color: #586783; background: #f2f7ff; border-color: #dce8ff; border-radius: 13px; font-size: 11px; }
.guide-security-icon { display: grid; flex: none; width: 28px; height: 28px; place-items: center; color: #fff; background: #1767f5; border-radius: 9px; font-weight: 800; }
.guide-security strong { display: block; margin: 2px 0 4px; }
.guide-security p { margin: 0; line-height: 1.6; }
@media (max-width: 760px) {
  .client-guides { padding: 20px 16px; border-radius: 16px; }
  .client-guide-grid { gap: 12px; }
  .client-guide-card { padding: 17px; }
  .guide-tabs { display: flex; width: 100%; }
  .guide-tab { flex: 1 1 0; padding-inline: 10px; }
  .guide-security { padding: 14px; }
}

.subscription-link-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.subscription-link-summary h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.04em; }
.subscription-link-summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 760px) { .subscription-link-summary { align-items: stretch; flex-direction: column; } }

.connection-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 28px rgba(31,69,117,.035); }
.connection-row { display: grid; grid-template-columns: minmax(220px,1.3fr) minmax(130px,.7fr) minmax(190px,1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; }
.connection-row + .connection-row { border-top: 1px solid var(--line); }
.connection-row .connection-state { margin: 0; }
.connection-row .connection-direct { margin: 0; }
.connection-row .connection-tags { margin: 0; }
@media (max-width: 760px) { .connection-row { grid-template-columns: 1fr; align-items: start; gap: 10px; padding: 16px; } }

.connection-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.connection-meta { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.connection-meta .connection-state,.connection-meta .connection-direct,.connection-meta .connection-tags { margin: 0; }
@media (max-width: 760px) { .connection-row { grid-template-columns: 1fr; } .connection-meta { justify-content: flex-start; padding-left: 45px; } }

.connection-head { align-items: flex-start; }
.connection-title { min-width: 0; }
.connection-title h3 { margin: 0; }
.connection-title .connection-state { margin: 5px 0 0; }
.account-activity { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 13px 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.activity-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; color: var(--blue); background: #edf4ff; border-radius: 50%; font-size: 19px; }
.account-activity strong,.account-activity span { display: block; }
.account-activity strong { font-size: 12px; }
.account-activity span,.account-activity small { color: var(--muted); font-size: 11px; }
.account-activity small { margin-left: auto; }
.traffic-directions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 5px; }
.limit-reset-note { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.connection-explainer { margin: 5px 0 0; max-width: 760px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.connection-state-paused { color: #c84545; }
.connection-state-paused .status-dot { background: #c84545; }
.node-state { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.subscription-actions { display: flex; min-width: 350px; flex-direction: column; align-items: flex-end; gap: 3px; }
.subscription-action-buttons { display: flex; justify-content: flex-end; gap: 9px; }
.subscription-action-buttons .button { min-width: 168px; white-space: nowrap; }
.copy-feedback { min-height: 14px; color: #0b9a66; font-size: 10px; }
@media (max-width: 760px) { .account-activity { align-items: flex-start; flex-wrap: wrap; } .account-activity small { flex-basis: 100%; margin-left: 46px; } .subscription-actions { min-width: 0; align-items: stretch; } .subscription-action-buttons { flex-direction: column; } .subscription-action-buttons .button { width: 100%; } .copy-feedback { text-align: center; } }

/* Subscription import card: compact app buttons and direct copying. */
.subscription-import-intro { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
.subscription-import-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.subscription-import-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px; font-size: 14px; text-align: center; background: #fff; box-shadow: none; }
.subscription-import-actions .subscription-app-happ { color: #292929; border: 1px solid #414141; }
.subscription-import-actions .subscription-app-incy { color: #00552d; border: 1px solid #14b84a; }
.subscription-import-actions .subscription-app-happ:hover { background: #f5f5f5; }
.subscription-import-actions .subscription-app-incy:hover { background: #f0fbf3; }
.subscription-import-actions img { display: block; width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; border-radius: 8px; }
.subscription-copy-action { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0; margin-top: 20px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.subscription-copy-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
.subscription-copy-action:disabled { opacity: .6; cursor: wait; }
#subscription-direct-feedback { display: block; margin-top: 5px; }
.subscription-import-notes { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.subscription-import-notes p { margin: 0 0 5px; }
@media (max-width: 760px) {
  .subscription-import-actions { flex-direction: column; align-items: stretch; }
  .subscription-import-actions .button { width: 100%; min-width: 0; }
  .subscription-copy-action { display: flex; width: fit-content; max-width: 100%; justify-content: center; margin-inline: auto; }
  #subscription-direct-feedback { text-align: center; }
}
