:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-elevated: #090909;
  --surface: #0e0e0e;
  --surface-2: #131313;
  --surface-3: #1a1a1a;
  --surface-4: #222222;
  --text: #ffffff;
  --text-2: #e9e9e9;
  --muted: #a7a7a7;
  --muted-2: #757575;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.20);
  --white-soft: rgba(255,255,255,.06);
  --white-soft-2: rgba(255,255,255,.11);
  --success: #7ee093;
  --success-bg: rgba(126,224,147,.11);
  --danger: #ff8181;
  --danger-bg: rgba(255,129,129,.11);
  --warning: #dfdfdf;
  --warning-bg: rgba(255,255,255,.09);
  --shadow: 0 24px 80px rgba(0,0,0,.46);
  --shadow-sm: 0 14px 40px rgba(0,0,0,.30);
  --radius-xs: 9px;
  --radius-sm: 13px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1240px;
  --sidebar: 286px;
  --font: 'Golos Text', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sidebar-collapsed: 82px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -10%, rgba(255,255,255,.07), transparent 38rem),
    radial-gradient(circle at 10% 34%, rgba(255,255,255,.025), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
}
body::selection { color: #050505; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.skip-link {
  position: fixed; z-index: 9999; top: 12px; left: 12px;
  transform: translateY(-160%); padding: 10px 14px;
  border-radius: 10px; background: #fff; color: #050505; font-weight: 800;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Shared controls */
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border: 1px solid transparent; border-radius: 13px;
  cursor: pointer; font-size: 14px; font-weight: 800; line-height: 1;
  transition: transform .17s ease, background .17s ease, border-color .17s ease, color .17s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: none; }
.button:disabled { cursor: wait; opacity: .55; }
.button.small { min-height: 39px; padding: 0 14px; border-radius: 11px; font-size: 12px; }
.button.wide { width: 100%; }
.button.primary { border-color: #fff; background: #fff; color: #050505; }
.button.primary:hover:not(:disabled) { background: #eaeaea; border-color: #eaeaea; }
.button.secondary { border-color: var(--border-strong); background: #131313; color: var(--text); }
.button.secondary:hover:not(:disabled) { border-color: rgba(255,255,255,.38); background: #1b1b1b; }
.button.ghost { border-color: var(--border); background: transparent; color: var(--text-2); }
.button.ghost:hover:not(:disabled) { border-color: var(--border-strong); background: var(--white-soft); }
.button.danger { border-color: rgba(255,129,129,.28); background: var(--danger-bg); color: #ffb3b3; }
.button img, .text-action img { width: 18px; height: 18px; object-fit: contain; }
.icon-button {
  display: grid; width: 42px; height: 42px; place-items: center;
  border: 1px solid var(--border); border-radius: 12px; background: #121212;
  color: #fff; cursor: pointer; font-size: 18px;
  transition: border-color .17s ease, background .17s ease;
}
.icon-button:hover { border-color: var(--border-strong); background: #1a1a1a; }
.inline-button { padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font-size: 12px; font-weight: 800; }
.text-action { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 800; }
.text-action:hover { color: #fff; }

.panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(145deg, #121212, #0c0c0c);
  box-shadow: var(--shadow-sm);
}
.eyebrow {
  margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 850;
  letter-spacing: .14em; text-transform: uppercase;
}
.muted { color: var(--muted); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.035em; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.loading-screen { display: flex; min-height: 260px; align-items: center; justify-content: center; gap: 11px; color: var(--muted); font-size: 14px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.14); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.toast {
  position: fixed; z-index: 1000; right: 20px; bottom: 20px;
  max-width: min(420px, calc(100vw - 32px)); padding: 14px 17px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: rgba(17,17,17,.96); box-shadow: var(--shadow); backdrop-filter: blur(18px);
  font-size: 14px; font-weight: 750;
}

/* Public top bar */
.topbar {
  position: sticky; z-index: 90; top: 0; width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,5,.78); backdrop-filter: blur(24px);
}
.topbar[hidden] { display: none; }
.topbar-inner {
  display: flex; width: min(calc(100% - 44px), var(--container)); min-height: 78px;
  align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo img { display: block; width: 164px; height: 48px; object-fit: contain; object-position: left center; }
.topbar nav, .public-links, .public-actions { display: flex; align-items: center; gap: 20px; }
.public-links a, .public-login { color: var(--muted); font-size: 13px; font-weight: 750; }
.public-links a:hover, .public-login:hover { color: #fff; }
.public-menu-toggle { display: none; }

/* Landing */
.landing-page { overflow: clip; }
.landing { width: min(calc(100% - 44px), var(--container)); margin: 0 auto; }
.hero-section {
  display: grid; min-height: 650px; grid-template-columns: minmax(0,1.02fr) minmax(460px,.98fr);
  align-items: center; gap: 70px; padding: 72px 0 84px;
}
.hero-copy { max-width: 650px; }
.hero-label {
  display: inline-flex; margin-bottom: 22px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--white-soft);
  color: var(--text-2); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase;
}
.hero-copy h1 { margin: 0; font-size: clamp(54px, 7vw, 92px); line-height: .94; letter-spacing: -.067em; }
.hero-lead { max-width: 620px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.hero-visual { position: relative; min-height: 520px; }
.hero-grid {
  position: absolute; inset: 4% -10% -6% 0; opacity: .34;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
.product-preview {
  position: absolute; z-index: 2; inset: 40px 28px 20px 20px;
  overflow: hidden; border: 1px solid var(--border-strong); border-radius: 34px;
  background: linear-gradient(155deg, #181818, #0a0a0a 70%); box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
}
.product-preview::before { content:""; position:absolute; inset:-40% 38% auto -30%; height:420px; background:radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); pointer-events:none; }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.preview-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.preview-brand img { width: 32px; height: 32px; object-fit: contain; }
.preview-online { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 11px; font-weight: 750; }
.preview-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.preview-body { display: grid; gap: 24px; padding: 30px; }
.preview-main-status { display: flex; align-items: flex-end; justify-content: space-between; }
.preview-main-status span { color: var(--muted); font-size: 12px; }
.preview-main-status strong { font-size: 31px; letter-spacing: -.04em; }
.preview-ring {
  display: grid; width: 164px; height: 164px; place-items: center; margin: 0 auto;
  border: 1px solid var(--border-strong); border-radius: 50%; background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.02), 0 0 70px rgba(255,255,255,.05);
}
.preview-ring img { width: 92px; height: 92px; object-fit: contain; }
.preview-subscription { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); }
.preview-subscription div { display: grid; gap: 5px; padding: 15px; background: #111111; }
.preview-subscription span { color: var(--muted); font-size: 10px; }
.preview-subscription strong { font-size: 14px; }
.preview-button { min-height: 48px; border: 0; border-radius: 13px; background: #fff; color: #050505; font-weight: 850; }

.landing-stats {
  display: grid; width: min(calc(100% - 44px), var(--container)); grid-template-columns: repeat(4,1fr);
  margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #0b0b0b;
}
.landing-stats article { display: flex; min-height: 112px; align-items: center; gap: 13px; padding: 24px; border-right: 1px solid var(--border); }
.landing-stats article:last-child { border-right: 0; }
.stat-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--white-soft); color: var(--muted); font-size: 10px; font-weight: 900; }
.landing-stats strong { font-size: 15px; }

.landing-section { width: min(calc(100% - 44px), var(--container)); margin: 0 auto; padding: 110px 0 0; }
.landing-section-head { margin-bottom: 28px; }
.landing-section-head h2 { max-width: 760px; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.052em; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.landing-feature-grid article {
  min-height: 210px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(145deg, #111111, #0a0a0a); transition: transform .18s ease, border-color .18s ease;
}
.landing-feature-grid article:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--border); border-radius: 14px; background: var(--white-soft); font-size: 20px; }
.landing-feature-grid h3 { margin: 82px 0 0; font-size: 18px; letter-spacing: -.025em; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.how-grid article { position: relative; min-height: 210px; padding: 26px; border-top: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); }
.how-grid span { color: var(--muted-2); font-size: 12px; font-weight: 850; }
.how-grid h3 { margin: 110px 0 0; font-size: 23px; letter-spacing: -.035em; }

.landing-plan-grid, .plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.landing-plans-loading { grid-column: 1 / -1; display: flex; min-height: 280px; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.landing-plan, .plan-card {
  position: relative; display: flex; min-height: 420px; flex-direction: column; padding: 25px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(150deg, #121212, #0a0a0a);
  box-shadow: var(--shadow-sm);
}
.landing-plan.featured, .plan-card.recommended { border-color: rgba(255,255,255,.42); background: linear-gradient(150deg, #1a1a1a, #0c0c0c); }
.plan-badge, .plan-ribbon { position: absolute; top: 17px; right: 17px; padding: 7px 9px; border-radius: 999px; background: #fff; color: #050505; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.plan-heading, .plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-term, .plan-duration, .plan-mark { color: var(--muted); font-size: 11px; font-weight: 800; }
.landing-plan h3, .plan-card h2, .plan-card h3 { margin: 26px 0 0; font-size: 28px; letter-spacing: -.045em; }
.landing-plan-price, .plan-price { margin: 18px 0 0; font-size: 34px; font-weight: 900; letter-spacing: -.045em; }
.landing-plan-price small, .plan-price small { color: var(--muted); font-size: 11px; font-weight: 650; }
.landing-plan ul, .plan-card ul { display: grid; gap: 11px; margin: 28px 0; padding: 0; list-style: none; }
.landing-plan li, .plan-card li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 13px; }
.landing-plan li::before, .plan-card li::before { content:"✓"; position:absolute; left:0; color:#fff; }
.landing-plan .button, .plan-card .button { margin-top: auto; }

.telegram-section { display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 80px; }
.telegram-copy h2 { margin: 0 0 28px; font-size: clamp(34px,5vw,58px); line-height:1.04; letter-spacing:-.052em; }
.telegram-mini-ui { padding: 20px; border: 1px solid var(--border); border-radius: 24px; background: #0f0f0f; box-shadow: var(--shadow-sm); }
.telegram-mini-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.telegram-mini-head img { width: 38px; height: 38px; object-fit: contain; }
.telegram-mini-head span { display: grid; }
.telegram-mini-head small { color: var(--muted); font-size: 10px; }
.telegram-message { display: grid; gap: 4px; margin: 16px 0; padding: 16px; border-radius: 14px; background: var(--surface-3); }
.telegram-message span { color: var(--muted); font-size: 11px; }
.telegram-button-fake { padding: 13px; border-radius: 12px; background: #fff; color: #050505; font-size: 12px; font-weight: 850; text-align: center; }

.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { position: relative; padding: 22px 48px 22px 0; cursor: pointer; font-size: 17px; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content:"+"; position:absolute; right:4px; color:var(--muted); font-size:22px; }
.faq-list details[open] summary::after { content:"−"; }
.faq-list p { max-width: 760px; margin: 0 0 22px; color: var(--muted); }

.landing-footer { width: min(calc(100% - 44px), var(--container)); margin: 110px auto 0; padding: 34px 0 22px; border-top: 1px solid var(--border); }
.footer-brand img { width: 180px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin: 42px 0; }
.footer-links > div { display: grid; align-content: start; gap: 10px; }
.footer-links strong { margin-bottom: 4px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 11px; }

/* Forms / auth */
label { display: grid; gap: 8px; color: var(--text-2); font-size: 12px; font-weight: 750; }
input, textarea, select {
  width: 100%; min-height: 47px; padding: 12px 13px; border: 1px solid var(--border);
  border-radius: 12px; background: #0e0e0e; color: #fff; outline: none;
  transition: border-color .17s ease, background .17s ease;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #696969; }
input:focus, textarea:focus, select:focus { border-color: rgba(255,255,255,.45); background: #121212; }
.form-error { min-height: 20px; margin: 0; color: var(--danger); font-size: 12px; }
.form-grid, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.password-hint { margin: 8px 0 0; color: var(--muted-2); font-size: 10px; }

.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 32px; }
.auth-shell { display: grid; width: min(100%, 1060px); min-height: 660px; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--border); border-radius: 30px; background: #0a0a0a; box-shadow: var(--shadow); }
.auth-visual { position: relative; overflow: hidden; padding: 34px; border-right: 1px solid var(--border); background: #060606; }
.auth-brand img { width: 185px; }
.auth-orb { position: absolute; inset: 50% auto auto 50%; display: grid; width: 340px; height: 340px; place-items: center; transform: translate(-50%,-50%); border: 1px solid var(--border-strong); border-radius: 50%; box-shadow: inset 0 0 0 52px rgba(255,255,255,.018), 0 0 120px rgba(255,255,255,.05); }
.auth-orb img { width: 180px; height: 180px; object-fit: contain; }
.auth-visual-copy { position: absolute; right: 34px; bottom: 34px; left: 34px; display: grid; gap: 5px; }
.auth-visual-copy strong { font-size: 22px; }
.auth-visual-copy span { color: var(--muted); font-size: 12px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(34px,5vw,64px); background: #0d0d0d; }
.auth-card h1 { margin: 0; font-size: clamp(40px,5vw,58px); line-height:1; letter-spacing:-.055em; }
.auth-card > .muted { margin: -5px 0 6px; }
.auth-mobile-logo { display: none; }
.auth-mobile-logo img { width: 170px; }
.auth-switch { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height:1.9; text-align:center; }
.auth-switch a { color: #fff; font-weight: 800; }
.telegram-login-button { margin-top: 4px; }

/* Dashboard shell */
.dashboard-shell { min-height: 100vh; background: var(--bg); }
.sidebar {
  position: fixed; z-index: 35; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column;
  overflow-y: auto; padding: 20px 14px 16px; border-right: 1px solid var(--border);
  background: rgba(7,7,7,.98); backdrop-filter: blur(22px); transition: width .2s ease, transform .2s ease;
}
.sidebar-topbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sidebar-logo { min-width: 0; }
.sidebar-logo img { display: block; width: 180px; height: 52px; object-fit: contain; object-position: left center; }
.sidebar-brand-compact { display: none !important; }
.sidebar-home {
  display: flex; min-height: 42px; align-items: center; gap: 10px; margin-bottom: 13px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 750;
}
.sidebar-home:hover { border-color: var(--border-strong); color: #fff; }
.sidebar nav, .sidebar-links { display: grid; gap: 4px; }
.nav-label { margin: 14px 12px 5px; color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.sidebar nav a, .sidebar nav > div > a, .sidebar-links > a {
  display: flex; min-height: 45px; align-items: center; gap: 11px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 750;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.sidebar nav a span, .sidebar-links > a span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; color: #fff; font-size: 14px; }
.sidebar nav a b, .sidebar-links a b { font: inherit; }
.sidebar nav a:hover, .sidebar-links > a:hover { background: var(--white-soft); color: #fff; }
.sidebar nav a.active { border-color: var(--border-strong); background: #fff; color: #050505; }
.sidebar nav a.active span { color: #050505; }
.sidebar-links { margin-top: 4px; }
.sidebar-helper {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  margin-top: auto; padding: 13px; border: 1px solid var(--border); border-radius: 14px;
  background: #111111; transition: border-color .17s ease, background .17s ease;
}
.sidebar-helper:hover { border-color: var(--border-strong); background: #161616; }
.sidebar-helper-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--white-soft-2); font-weight: 900; }
.sidebar-helper strong { font-size: 11px; }
.sidebar-helper i { color: var(--muted); font-style: normal; }
.sidebar-user { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--border); }
.sidebar-avatar, .user-pill span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border-strong); border-radius: 11px; background: #181818; font-size: 11px; font-weight: 900; }
.sidebar-user > div { min-width: 0; flex: 1; }
.sidebar-user > div strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
#logout-button {
  display: inline-flex; min-height: 39px; align-items: center; gap: 7px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text-2);
  cursor: pointer; white-space: nowrap;
}
#logout-button strong { font-size: 10px; font-weight: 800; }
#logout-button:hover { border-color: rgba(255,129,129,.35); background: var(--danger-bg); color: #fff; }
.sidebar-overlay { display: none; }

.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .sidebar-topbar { flex-direction: column; justify-content: center; gap: 8px; }
.sidebar.collapsed .sidebar-brand-full { display: none; }
.sidebar.collapsed .sidebar-brand-compact { display: block !important; width: 48px; height: 48px; object-fit: contain; object-position: center; }
.sidebar.collapsed .sidebar-logo { display: flex; justify-content: center; }
.sidebar.collapsed .sidebar-home { width: 48px; justify-content: center; margin-inline: auto; padding: 0; }
.sidebar.collapsed .sidebar-home strong, .sidebar.collapsed .nav-label, .sidebar.collapsed nav a b, .sidebar.collapsed .sidebar-links, .sidebar.collapsed .sidebar-helper, .sidebar.collapsed .sidebar-user > div, .sidebar.collapsed #logout-button strong { display: none; }
.sidebar.collapsed nav a { justify-content: center; padding: 0; }
.sidebar.collapsed nav a span { width: auto; }
.sidebar.collapsed .sidebar-user { justify-content: center; flex-wrap: wrap; }
.sidebar.collapsed #logout-button { width: 40px; justify-content: center; padding: 0; }

.dashboard-main { min-height: 100vh; margin-left: var(--sidebar); padding: 28px 34px 70px; transition: margin-left .2s ease; }
.sidebar-collapsed .dashboard-main { margin-left: var(--sidebar-collapsed); }
.dashboard-head { display: flex; width: min(100%,1380px); align-items: center; gap: 15px; margin: 0 auto 24px; }
.dashboard-head h1 { margin: 0; font-size: clamp(30px,3.2vw,46px); line-height:1; letter-spacing:-.052em; }
.dashboard-head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dashboard-menu-mobile { display: none; }
.user-pill { display: flex; max-width: 280px; min-height: 40px; align-items: center; gap: 8px; padding: 3px 11px 3px 4px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 10px; font-weight: 750; }
.user-pill span { width: 30px; height: 30px; border-radius: 8px; }
#dashboard-content { width: min(100%,1380px); margin: 0 auto; }
.bottom-nav { display: none; }

/* Dashboard content */
.welcome-panel, .shop-intro, .subscriptions-heading, .payments-intro, .settings-intro, .balance-hero, .support-hero {
  position: relative; display: flex; min-height: 158px; align-items: center; justify-content: space-between; gap: 26px;
  overflow: hidden; margin-bottom: 16px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 88% 50%, rgba(255,255,255,.09), transparent 18rem), linear-gradient(145deg, #151515, #0a0a0a);
}
.welcome-panel h2, .shop-intro h2, .subscriptions-heading h2, .payments-intro h2, .settings-intro h2 { margin: 0; font-size: clamp(28px,4vw,48px); line-height:1.04; letter-spacing:-.052em; }
.welcome-orb, .settings-shield { display: grid; width: 118px; height: 118px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.025); }
.welcome-orb img, .settings-shield img { width: 82px; height: 82px; object-fit: contain; display:block; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.summary-card { display: grid; min-height: 132px; align-content: start; gap: 7px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #111111; }
.summary-card small { color: var(--muted); font-size: 10px; }
.summary-card strong { font-size: clamp(22px,2.5vw,33px); line-height:1.05; letter-spacing:-.045em; }
.summary-card p { margin: auto 0 0; color: var(--muted-2); font-size: 10px; }
.summary-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--white-soft); font-size: 13px; }
.overview-summary { margin-bottom: 16px; }
.dashboard-section { margin-top: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #0a0a0a; }
.account-subscription-card { padding: 21px; border: 1px solid var(--border); border-radius: var(--radius); background: #121212; }
.account-subscription-card + .account-subscription-card { margin-top: 10px; }
.account-subscription-card.is-active { border-color: var(--border-strong); }
.account-subscription-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.account-subscription-head h3 { margin: 3px 0 0; font-size: 23px; letter-spacing:-.035em; }
.account-subscription-facts, .subscription-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--border); }
.account-subscription-facts > div, .subscription-facts > div { display: grid; gap: 5px; padding: 14px; background: #0f0f0f; }
.account-subscription-facts span, .account-subscription-facts small, .subscription-facts span, .subscription-facts small { color: var(--muted); font-size: 10px; }
.account-subscription-actions, .key-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.quick-actions-panel, .activity-panel { padding: 20px; }
.quick-action-list { display: grid; gap: 8px; }
.quick-action-list a { display: grid; min-height: 60px; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; background: #0d0d0d; }
.quick-action-list a:hover { border-color: var(--border-strong); }
.latest-order { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.latest-order p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.empty-mini { color: var(--muted); font-size: 12px; }

.status { display: inline-flex; width: max-content; min-height: 26px; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--white-soft); color: var(--text-2); font-size: 9px; font-weight: 850; white-space: nowrap; }
.status.active, .status.paid, .status.resolved { background: var(--success-bg); color: var(--success); }
.status.failed, .status.expired, .status.cancelled, .status.canceled, .status.closed { background: var(--danger-bg); color: var(--danger); }
.status.pending, .status.creating, .status.in_progress, .status.waiting_user, .status.new { background: var(--warning-bg); color: var(--warning); }
.sync-warning { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; padding: 14px; border: 1px solid var(--border-strong); border-radius: 13px; background: var(--white-soft); }
.sync-warning > span { display:grid; width:32px; height:32px; flex:0 0 auto; place-items:center; border-radius:9px; background:var(--white-soft-2); font-weight:900; }
.sync-warning p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.compact-warning { margin-top: 12px; }

.subscription-list { display: grid; gap: 12px; }
.subscription-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(145deg,#121212,#0a0a0a); }
.subscription-card.is-active { border-color: var(--border-strong); }
.subscription-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.subscription-title { display: flex; align-items: center; gap: 12px; }
.subscription-title h2 { margin: 3px 0 0; font-size: 25px; letter-spacing:-.04em; }
.subscription-symbol { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--border); border-radius: 14px; background: #171717; }
.subscription-symbol img { width: 31px; height: 31px; object-fit: contain; }
.connection-key-block { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: #0a0a0a; }
.connection-key-block > div { min-width: 0; display: grid; gap: 5px; }
.connection-key-block span { color: var(--muted); font-size: 10px; }
.connection-key-block code { overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.icon-copy { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: #151515; cursor:pointer; }
.key-actions { margin-top: 12px; }
.technical-details { margin-top: 14px; border-top: 1px solid var(--border); }
.technical-details summary { padding: 13px 0 0; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 750; }
.technical-details > div { display: grid; gap: 7px; margin-top: 10px; padding: 13px; border-radius: 12px; background: #090909; color: var(--muted); font-size: 11px; }
.technical-details pre { overflow:auto; margin:0; white-space:pre-wrap; }
.extra-devices { margin-top: 15px; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background:#0e0e0e; }
.extra-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.stepper { display:flex; align-items:center; gap:10px; }
.stepper button { width:32px; height:32px; border:1px solid var(--border); border-radius:9px; background:#181818; cursor:pointer; }
.danger-zone { margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }

.shop-intro { min-height: 130px; }
.trial-card { border-style: dashed; }

.payments-intro { min-height: 130px; }
.payment-summary, .balance-summary { margin-bottom: 16px; }
.transactions-panel, .balance-history, .balance-use { padding: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 12px; }
th { color: var(--muted); font-size: 9px; letter-spacing:.08em; text-transform:uppercase; }
td small { display:block; margin-top:4px; color:var(--muted); font-size:9px; }
.payment-cards { display: none; }
.balance-hero { min-height: 200px; }
.balance-main { display:grid; align-content:center; gap:8px; }
.balance-main > span { color: var(--muted); font-size: 12px; }
.balance-main > strong { font-size: clamp(46px,6vw,72px); line-height:1; letter-spacing:-.06em; }
.balance-main .button { width:max-content; margin-top:14px; }
.balance-art { position:relative; width:260px; height:160px; }
.wallet-shape { position:absolute; inset:15px 30px; display:grid; place-items:center; border:1px solid var(--border-strong); border-radius:26px; background:#121212; transform:rotate(-5deg); }
.wallet-shape img { width:84px; height:84px; object-fit:contain; }
.coin { position:absolute; display:grid; width:42px; height:42px; place-items:center; border:1px solid var(--border); border-radius:50%; background:#1a1a1a; font-weight:900; }
.coin-one { top:0; right:12px; } .coin-two { bottom:0; left:14px; }
.balance-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr); gap:10px; }
.balance-use-list { display:grid; gap:8px; margin:18px 0; }
.balance-use-list > div { display:flex; align-items:center; gap:11px; padding:12px; border:1px solid var(--border); border-radius:11px; background:#0c0c0c; }
.balance-use-list p { margin:0; }
.balance-telegram { justify-content:center; margin-top:14px; }
.transaction-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px; border:1px solid var(--border); border-radius:12px; background:#0c0c0c; }
.transaction-card > div { display:grid; gap:3px; }
.transaction-card span, .transaction-card small { color:var(--muted); font-size:10px; }
.transaction-amount { text-align:right; }
.amount-positive { color:var(--success); } .amount-negative { color:var(--danger); }

/* Settings */
.account-grid { display:grid; gap:10px; }
.settings-grid { grid-template-columns:1fr 1fr; }
.account-panel { padding:20px; }
.account-panel-heading { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.account-panel-heading > div { flex:1; }
.account-panel-heading h2 { margin:0; font-size:20px; }
.account-panel-heading p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.account-icon { display:grid; width:40px; height:40px; place-items:center; border:1px solid var(--border); border-radius:12px; background:#1a1a1a; font-weight:900; }
.account-value { display:grid; gap:5px; padding:13px; border:1px solid var(--border); border-radius:12px; background:#0c0c0c; }
.account-value span, .account-value small { color:var(--muted); font-size:10px; }
.settings-form { display:grid; gap:12px; }
.telegram-icon { width:38px; height:38px; object-fit:contain; filter:grayscale(1) brightness(1.7); }
.security-advice { display:flex; align-items:flex-start; gap:12px; padding:20px; }
.security-icon { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border:1px solid var(--border); border-radius:11px; background:var(--white-soft); }
.security-advice h2 { margin:0; font-size:18px; }
.security-advice p { margin:6px 0 0; color:var(--muted); font-size:11px; }
.pending-email-box { display:grid; gap:12px; }

/* Support and legal */
.simple-page { width:min(calc(100% - 44px),1080px); margin:0 auto; padding:34px 0 80px; }
.back-link { display:inline-flex; margin-bottom:22px; color:var(--muted); font-size:12px; font-weight:750; }
.back-link:hover { color:#fff; }
.support-hero h1, .legal h1 { margin:0; font-size:clamp(40px,6vw,68px); line-height:1; letter-spacing:-.06em; }
.support-hero p { max-width:600px; margin:14px 0 0; color:var(--muted); }
.support-visual { display:grid; width:112px; height:112px; place-items:center; border:1px solid var(--border); border-radius:50%; background:#111111; }
.support-visual img { width:68px; height:68px; object-fit:contain; }
.support-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr); gap:10px; }
.support-form { display:grid; gap:14px; padding:22px; }
.support-side { display:grid; align-content:start; gap:10px; }
.service-state { display:flex; align-items:flex-start; gap:11px; padding:18px; }
.service-state p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.service-dot { width:9px; height:9px; margin-top:5px; border-radius:50%; background:var(--success); box-shadow:0 0 0 4px var(--success-bg); }
.service-dot.neutral { background:#fff; box-shadow:0 0 0 4px var(--white-soft-2); }
.legal > #legal-body { display:grid; gap:12px; margin-top:32px; }
.legal section { padding:28px; border:1px solid rgba(255,255,255,.08); border-radius:16px; background:#0A0A0A; }
.legal h2 { margin:0 0 14px; font-size:18px; font-weight:700; letter-spacing:-.02em; color:#EFEBE4; }
.legal p { color:#9C958C; line-height:1.6; margin-bottom:8px; }
.legal p:last-child { margin-bottom:0; }

/* Admin */
.admin-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.admin-section { padding:20px; border:1px solid var(--border); border-radius:var(--radius-lg); background:#0a0a0a; }
.admin-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
.admin-filter-bar { display:grid; grid-template-columns:minmax(220px,1fr) repeat(2,minmax(150px,.35fr)) auto auto; gap:8px; margin-bottom:14px; }
.admin-filter-bar input, .admin-filter-bar select { min-height:40px; padding:9px 11px; }
.admin-list { display:grid; gap:8px; }
.admin-row { display:grid; grid-template-columns:minmax(240px,1.3fr) .5fr .45fr .55fr auto; align-items:center; gap:12px; padding:14px; }
.admin-row > div { min-width:0; display:grid; gap:3px; }
.admin-row small { color:var(--muted); font-size:10px; }
.admin-orders-table table { min-width:1120px; }
.admin-orders-table td:first-child code { color:var(--muted); }
.support-admin-list { display:grid; gap:8px; }
.support-section-head { align-items:center; gap:16px; }
.support-view-tabs { display:flex; gap:6px; padding:4px; border:1px solid var(--border); border-radius:12px; background:#0a0a0a; }
.support-view-tabs a { display:flex; align-items:center; gap:7px; padding:8px 11px; border-radius:8px; color:var(--muted); font-size:11px; font-weight:700; text-decoration:none; }
.support-view-tabs a:hover, .support-view-tabs a.active { background:var(--white-soft-2); color:#fff; }
.support-view-tabs span { min-width:20px; padding:2px 6px; border-radius:999px; background:#1a1a1a; color:var(--muted); text-align:center; }
.support-ticket { display:flex; width:100%; align-items:center; justify-content:space-between; gap:18px; padding:14px; border:1px solid var(--border); border-radius:13px; background:#0e0e0e; color:#fff; cursor:pointer; text-align:left; }
.support-ticket:hover { border-color:var(--border-strong); }
.support-ticket.archived { opacity:.72; }
.support-ticket > div { display:grid; gap:5px; }
.support-ticket small, .support-ticket time { color:var(--muted); font-size:10px; }
.admin-log-row { display:grid; grid-template-columns:minmax(240px,1.3fr) minmax(160px,.6fr) auto minmax(120px,.4fr) auto; align-items:center; gap:12px; padding:14px; }
.admin-log-row > div { display:grid; gap:3px; }
.admin-log-row small, .admin-log-row time { color:var(--muted); font-size:10px; }
.admin-sub-card { display:grid; grid-template-columns:1fr auto; align-items:start; gap:15px; padding:14px; border:1px solid var(--border); border-radius:13px; background:#0c0c0c; }
.admin-sub-actions { display:flex; flex-wrap:wrap; gap:6px; }
.admin-user-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0; }
.admin-user-actions form { display:grid; gap:10px; padding:14px; border:1px solid var(--border); border-radius:13px; background:#0c0c0c; }
.admin-user-actions h3 { margin:0; font-size:15px; }
.admin-mini-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.telegram-admin-details { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:10px; padding:14px; }
.telegram-admin-details p { margin:0; color:var(--muted); font-size:11px; }
.telegram-admin-details strong { color:var(--text-2); }

/* Modal */
.modal-backdrop { position:fixed; z-index:500; inset:0; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(0,0,0,.74); backdrop-filter:blur(8px); }
.modal-backdrop.open { display:flex; }
.modal-sheet { width:min(100%,900px); max-height:calc(100vh - 40px); overflow:auto; padding:22px; border:1px solid var(--border-strong); border-radius:22px; background:#0d0d0d; box-shadow:var(--shadow); }
.modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; }
.modal-head h2, .modal-head h3 { margin:0; }
.modal-head button { display:grid; width:38px; height:38px; place-items:center; border:1px solid var(--border); border-radius:10px; background:#161616; cursor:pointer; }
.order-detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.order-detail-grid > div { display:grid; gap:5px; padding:13px; border:1px solid var(--border); border-radius:11px; background:#0a0a0a; }
.order-detail-grid span { color:var(--muted); font-size:10px; }
.ticket-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.ticket-meta span { padding:7px 9px; border:1px solid var(--border); border-radius:999px; color:var(--muted); font-size:10px; }
.ticket-message { margin-bottom:14px; padding:16px; border:1px solid var(--border); border-radius:13px; background:#0a0a0a; white-space:pre-wrap; }
#support-admin-form, #topup-form { display:grid; gap:12px; }
.support-admin-actions { display:flex; flex-wrap:wrap; gap:8px; }
.support-admin-actions .button { flex:1 1 180px; }
.device-list { display:grid; gap:8px; }
.device-card { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px; border:1px solid var(--border); border-radius:12px; background:#0a0a0a; }
.device-card > div { display:grid; gap:3px; }
.device-card span { color:var(--muted); font-size:10px; }
.modal-plan-grid { grid-template-columns:repeat(3,1fr); }

/* Empty states */
.empty-state { display:grid; min-height:260px; place-items:center; align-content:center; gap:10px; padding:28px; border:1px dashed var(--border-strong); border-radius:var(--radius); color:var(--muted); text-align:center; }
.empty-state h2 { margin:0; color:#fff; }
.empty-state p { max-width:560px; margin:0; }
.empty-icon { display:grid; width:48px; height:48px; place-items:center; border:1px solid var(--border); border-radius:14px; background:var(--white-soft); color:#fff; }
.compact-empty { min-height:190px; }

/* Responsive */
@media (max-width: 1120px) {
  .hero-section { grid-template-columns: 1fr 430px; gap: 36px; }
  .landing-feature-grid { grid-template-columns: repeat(2,1fr); }
  .summary-grid, .admin-summary { grid-template-columns: repeat(2,1fr); }
  .admin-user-actions { grid-template-columns:1fr; }
}

@media (max-width: 900px) {
  .topbar-inner { width:calc(100% - 28px); }
  .public-links { position:absolute; top:69px; right:14px; left:14px; display:none; padding:12px; border:1px solid var(--border); border-radius:14px; background:rgba(11,11,11,.98); box-shadow:var(--shadow); }
  .public-links.open { display:grid; }
  .public-menu-toggle { display:grid; width:42px; height:42px; place-items:center; border:1px solid var(--border); border-radius:11px; background:#121212; color:#fff; cursor:pointer; }
  .hero-section { min-height:auto; grid-template-columns:1fr; padding-top:58px; }
  .hero-copy { max-width:760px; }
  .hero-visual { min-height:520px; }
  .product-preview { inset:24px 6% 14px; transform:none; }
  .landing-stats { grid-template-columns:repeat(2,1fr); }
  .landing-stats article:nth-child(2) { border-right:0; }
  .landing-stats article:nth-child(-n+2) { border-bottom:1px solid var(--border); }
  .telegram-section { grid-template-columns:1fr; gap:30px; }
  .telegram-mini-ui { max-width:520px; }
  .sidebar { width:var(--sidebar); transform:translateX(-102%); }
  .sidebar.open { transform:none; }
  .sidebar.collapsed { width:var(--sidebar); }
  .sidebar.collapsed .sidebar-topbar { flex-direction:row; justify-content:space-between; }
  .sidebar.collapsed .sidebar-brand-full { display:block; }
  .sidebar.collapsed .sidebar-brand-compact { display:none !important; }
  .sidebar.collapsed .sidebar-logo { display:block; }
  .sidebar.collapsed .sidebar-home { width:auto; justify-content:flex-start; margin-inline:0; padding:0 12px; }
  .sidebar.collapsed .sidebar-home strong, .sidebar.collapsed .nav-label, .sidebar.collapsed nav a b, .sidebar.collapsed .sidebar-links, .sidebar.collapsed .sidebar-helper, .sidebar.collapsed .sidebar-user > div, .sidebar.collapsed #logout-button strong { display:initial; }
  .sidebar.collapsed nav a { justify-content:flex-start; padding:0 12px; }
  .sidebar.collapsed nav a span { width:24px; }
  .sidebar.collapsed .sidebar-links { display:grid; }
  .sidebar.collapsed .sidebar-helper { display:grid; }
  .sidebar.collapsed .sidebar-user { justify-content:flex-start; flex-wrap:nowrap; }
  .sidebar.collapsed #logout-button { width:auto; padding:0 10px; }
  .sidebar-toggle { display:none; }
  .dashboard-menu-mobile { display:grid; }
  .sidebar-overlay { position:fixed; z-index:34; inset:0; display:none; border:0; background:rgba(0,0,0,.64); }
  .sidebar-overlay.open { display:block; }
  .dashboard-main, .sidebar-collapsed .dashboard-main { margin-left:0; padding:22px 18px 92px; }
  .bottom-nav { position:fixed; z-index:30; right:0; bottom:0; left:0; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--border); background:rgba(9,9,9,.94); backdrop-filter:blur(20px); }
  .bottom-nav a { display:grid; min-height:66px; place-items:center; align-content:center; gap:3px; color:var(--muted); font-size:9px; }
  .bottom-nav a span { font-size:17px; }
  .bottom-nav a.active { color:#fff; background:var(--white-soft); }
  .settings-grid, .support-layout, .balance-layout { grid-template-columns:1fr; }
  .admin-filter-bar { grid-template-columns:1fr 1fr; }
}

@media (max-width: 700px) {
  .topbar-inner { min-height:68px; }
  .brand-logo img { width:142px; height:42px; }
  .public-actions .button { min-height:40px; padding:0 13px; font-size:11px; }
  .hero-copy h1 { font-size:clamp(48px,15vw,72px); }
  .hero-visual { min-height:470px; }
  .product-preview { inset:14px 0; border-radius:24px; }
  .preview-body { padding:22px; }
  .landing-feature-grid, .how-grid, .landing-plan-grid, .plan-grid, .modal-plan-grid { grid-template-columns:1fr; }
  .landing-feature-grid article { min-height:150px; }
  .landing-feature-grid h3 { margin-top:46px; }
  .how-grid article { min-height:150px; }
  .how-grid h3 { margin-top:60px; }
  .landing-plan, .plan-card { min-height:360px; }
  .footer-links { grid-template-columns:1fr; }
  .summary-grid, .admin-summary { grid-template-columns:1fr 1fr; }
  .overview-lower-grid { grid-template-columns:1fr; }
  .account-subscription-facts, .subscription-facts { grid-template-columns:1fr; }
  .payment-table { display:none; }
  .payment-cards { display:grid; gap:8px; }
  .payment-card { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:14px; border:1px solid var(--border); border-radius:12px; background:#0c0c0c; }
  .payment-card > div { display:grid; gap:3px; }
  .payment-card span { color:var(--muted); font-size:9px; }
  .admin-row, .admin-log-row, .admin-sub-card { grid-template-columns:1fr; }
  .admin-filter-bar { grid-template-columns:1fr; }
  .support-ticket { align-items:flex-start; flex-direction:column; }
  .support-section-head { align-items:flex-start; flex-direction:column; }
  .form-grid, .form-row, .order-detail-grid, .telegram-admin-details { grid-template-columns:1fr; }
  .auth-page { padding:16px; }
  .auth-shell { min-height:auto; grid-template-columns:1fr; }
  .auth-visual { display:none; }
  .auth-card { min-height:640px; padding:30px 22px; }
  .auth-mobile-logo { display:block; }
}

@media (max-width: 480px) {
  .topbar-inner { width:calc(100% - 20px); }
  .public-actions .public-login { display:none; }
  .landing, .landing-section, .landing-stats, .landing-footer, .simple-page { width:calc(100% - 24px); }
  .hero-section { padding-top:42px; }
  .hero-actions .button { width:100%; }
  .hero-actions .text-action { width:100%; justify-content:center; margin-top:5px; }
  .hero-visual { min-height:440px; }
  .preview-ring { width:130px; height:130px; }
  .preview-ring img { width:70px; height:70px; }
  .landing-stats { grid-template-columns:1fr; }
  .landing-stats article { border-right:0; border-bottom:1px solid var(--border); }
  .landing-stats article:last-child { border-bottom:0; }
  .landing-section { padding-top:80px; }
  .summary-grid, .admin-summary { grid-template-columns:1fr; }
  .dashboard-main { padding-inline:12px; }
  .dashboard-head-actions { display:none; }
  .welcome-panel, .shop-intro, .subscriptions-heading, .payments-intro, .settings-intro, .balance-hero, .support-hero { min-height:140px; padding:20px; }
  .welcome-orb, .settings-shield, .support-visual { width:76px; height:76px; }
  .welcome-orb img, .settings-shield img, .support-visual img { width:46px; height:46px; }
  .account-subscription-actions .button, .key-actions .button, .key-actions a { width:100%; }
  .subscription-top { flex-direction:column; }
  .balance-art { display:none; }
  .footer-bottom { flex-direction:column; gap:6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  [data-reveal] { opacity:1; transform:none; }
}


/* v5 UI polish */
.password-settings .password-hint { margin-top: 12px; }
.telegram-settings .account-panel-heading { margin-bottom: 8px; }
.telegram-settings .account-panel-heading p { margin-top: 6px; }
.welcome-orb, .settings-shield { width: 126px; height: 126px; background: rgba(255,255,255,.02); }
.welcome-orb img, .settings-shield img { width: 86px; height: 86px; object-fit: contain; display:block; }
.balance-art { width: 300px; height: 180px; }
.wallet-shape { inset: 14px 22px; border-radius: 28px; }
.wallet-shape img { width: 102px; height: 102px; object-fit: contain; display:block; }
@media (max-width: 800px) { .welcome-orb, .settings-shield { width: 88px; height: 88px; } .welcome-orb img, .settings-shield img { width: 58px; height: 58px; } }

.preview-brand-logo-only, .telegram-mini-logo-only { justify-content: center; }
.preview-brand-logo-only strong, .telegram-mini-logo-only span { display:none !important; }
.preview-brand-logo-only img, .telegram-mini-logo-only img { width: 42px; height: 42px; object-fit: contain; display:block; }
.welcome-orb, .settings-shield { width: 128px; height: 128px; background: rgba(255,255,255,.018); }
.welcome-orb img, .settings-shield img { width: 82px; height: 82px; object-fit: contain; display:block; }
.subscription-symbol img { width: 26px; height: 26px; object-fit: contain; display:block; }
.balance-art .wallet-shape img { width: 96px; height: 96px; object-fit: contain; display:block; }
.telegram-settings .account-panel-heading { align-items:center; }
.telegram-settings .account-panel-heading > div p { margin-top: 6px; }
.password-hint.password-hint-spaced { margin-top: 16px; padding-left: 2px; }
.security-advice { display:none !important; }

/* v8: mobile logo containment for Overview and Balance */
@media (max-width: 700px) {
  .welcome-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 16px;
  }
  .welcome-panel > div:first-child { min-width: 0; }
  .welcome-orb {
    width: 96px;
    height: 96px;
    padding: 15px;
    overflow: hidden;
    justify-self: end;
  }
  .welcome-orb img {
    width: 100%;
    height: 100%;
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
    object-position: center;
  }

  .balance-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 18px;
  }
  .balance-main { min-width: 0; }
  .balance-art {
    display: block;
    width: 132px;
    height: 132px;
    justify-self: end;
  }
  .balance-art .wallet-shape {
    inset: 7px;
    border-radius: 24px;
    transform: none;
  }
  .balance-art .wallet-shape img {
    width: 78px;
    height: 78px;
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
    object-position: center;
  }
  .balance-art .coin {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .welcome-panel {
    grid-template-columns: minmax(0, 1fr) 82px;
    min-height: 136px;
    gap: 12px;
  }
  .welcome-orb {
    width: 82px;
    height: 82px;
    padding: 13px;
  }
  .welcome-orb img {
    max-width: 56px;
    max-height: 56px;
  }

  .balance-hero {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 176px;
    gap: 10px;
  }
  .balance-main > strong { font-size: clamp(42px, 14vw, 58px); }
  .balance-main .button { min-height: 44px; padding-inline: 15px; }
  .balance-art {
    display: block;
    width: 104px;
    height: 104px;
  }
  .balance-art .wallet-shape {
    inset: 5px;
    border-radius: 21px;
  }
  .balance-art .wallet-shape img {
    width: 62px;
    height: 62px;
    max-width: 70%;
    max-height: 70%;
  }
  .balance-art .coin { display: none; }
}

@media (max-width: 360px) {
  .welcome-panel { grid-template-columns: minmax(0, 1fr) 70px; }
  .welcome-orb { width: 70px; height: 70px; padding: 12px; }
  .welcome-orb img { max-width: 46px; max-height: 46px; }
  .balance-hero { grid-template-columns: 1fr; }
  .balance-art { width: 88px; height: 88px; justify-self: start; }
  .balance-art .wallet-shape img { width: 52px; height: 52px; }
}

/* v9: separate Overview logo from long account email on mobile */
@media (max-width: 600px) {
  .welcome-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    min-height: 0;
  }
  .welcome-panel > div:first-child {
    width: 100%;
    min-width: 0;
  }
  .welcome-panel h2 {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.12;
  }
  .welcome-orb {
    align-self: flex-end;
    justify-self: auto;
    width: 84px;
    height: 84px;
    margin-top: 2px;
    padding: 14px;
    border-color: rgba(255,255,255,.2);
    background: #08080a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  }
  .welcome-orb img {
    width: 100%;
    height: 100%;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 360px) {
  .welcome-orb {
    align-self: center;
    width: 78px;
    height: 78px;
    padding: 13px;
  }
  .welcome-orb img {
    max-width: 52px;
    max-height: 52px;
  }
}

/* Legal document styles — new design */
.legal ul { color:#9C958C; padding-left:22px; margin:10px 0; line-height:1.6; }
.legal li { margin:5px 0; }
.legal h3 { margin:20px 0 10px; font-size:15px; font-weight:600; color:#EFEBE4; }
.legal strong { color:#EFEBE4; }
.legal a { color:#EFEBE4; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(255,255,255,.3); transition:text-decoration-color .16s; }
.legal a:hover { text-decoration-color:rgba(255,255,255,.7); }
.legal-meta { color:#6C665F; font-size:13px; line-height:1.5; }
.legal-table { width:100%; border-collapse:collapse; margin:14px 0; font-size:13px; overflow-x:auto; display:block; }
.legal-table thead { position:sticky; top:0; }
.legal-table th, .legal-table td { padding:10px 14px; border:1px solid rgba(255,255,255,.08); text-align:left; color:#9C958C; line-height:1.5; }
.legal-table th { background:#101010; color:#EFEBE4; font-weight:600; font-size:12px; letter-spacing:.02em; }
.legal-table td:first-child { color:#EFEBE4; width:35%; }
.legal .loading-legal { text-align:center; padding:48px; color:#6C665F; font-size:14px; }
.legal .back-link { display:inline-flex; align-items:center; gap:6px; color:#6C665F; font-size:13px; font-weight:500; transition:color .16s; }
.legal .back-link:hover { color:#EFEBE4; }
.legal .eyebrow { font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:#6C665F; margin-bottom:6px; }
.legal h1 { font-size:clamp(32px,5vw,56px); line-height:1.05; letter-spacing:-.04em; color:#EFEBE4; font-weight:800; }

/* === v3-landing:begin === */
/* ============================================================
   nubukoVPN v3 — новый дизайн landing (изолированный namespace)
   Использует префикс .v3-* чтобы не конфликтовать с
   существующими стилями кабинета/аутентификации.
   ============================================================ */
:root {
  --v3-ground:    #000000;
  --v3-surface:   #0A0A0A;
  --v3-surface-2: #101010;
  --v3-surface-3: #181818;
  --v3-line:        rgba(255,255,255,.10);
  --v3-line-strong: rgba(255,255,255,.26);
  --v3-text:    #EFEBE4;
  --v3-muted:   #9C958C;
  --v3-muted-2: #6C665F;
  --v3-pure:   #FFFFFF;
  --v3-sage:   #86B894;
  --v3-r-sm: 10px;
  --v3-r-md: 16px;
  --v3-r-lg: 24px;
  --v3-container: 1200px;
  --v3-gutter: clamp(20px, 4vw, 40px);
}

.v3-landing {
  background: var(--v3-ground);
  color: var(--v3-text);
  font-family: 'Golos Text', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
.v3-landing * { box-sizing: border-box; }
.v3-landing img, .v3-landing svg { display: block; max-width: 100%; }
.v3-landing a { color: inherit; text-decoration: none; }
.v3-landing h1, .v3-landing h2, .v3-landing h3 {
  font-family: 'Golos Text', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 700; letter-spacing: -.02em; text-wrap: balance; margin: 0;
}
.v3-landing p { margin: 0; }
.v3-landing ul { margin: 0; padding: 0; list-style: none; }
.v3-landing :focus-visible { outline: 2px solid var(--v3-pure); outline-offset: 3px; border-radius: 4px; }

.v3-landing .wrap {
  width: min(100% - (var(--v3-gutter) * 2), var(--v3-container));
  margin-inline: auto;
}

.v3-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--v3-muted-2);
}

/* Buttons */
.v3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--v3-r-sm);
  font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.v3-landing .v3-btn-primary,
a.v3-btn-primary,
button.v3-btn-primary { background: var(--v3-pure); color: #000; border-color: var(--v3-pure); }
.v3-landing .v3-btn-primary:hover,
a.v3-btn-primary:hover { background: #DEDAD3; color: #000; transform: translateY(-1px); }
.v3-landing .v3-btn-ghost,
a.v3-btn-ghost,
button.v3-btn-ghost { border-color: var(--v3-line-strong); color: var(--v3-text); background: transparent; }
.v3-landing .v3-btn-ghost:hover,
a.v3-btn-ghost:hover { border-color: var(--v3-pure); background: rgba(255,255,255,.05); color: var(--v3-text); }
.v3-btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.v3-btn svg { width: 17px; height: 17px; }

/* Hero */
.v3-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 6vw, 76px); align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 84px);
}
.v3-hero-copy { display: grid; gap: 22px; justify-items: start; }
.v3-hero h1 {
  font-size: clamp(36px, 5vw, 60px); line-height: 1.05;
  letter-spacing: -.035em; font-weight: 800; max-width: 15ch;
}
.v3-hero-lede { max-width: 44ch; color: var(--v3-muted); font-size: clamp(16px, 1.6vw, 18px); }
.v3-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.v3-hero-tg {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--v3-muted); padding: 6px 0;
}
.v3-hero-tg:hover { color: var(--v3-text); }
.v3-hero-tg svg { width: 15px; height: 15px; }
.v3-hero-note { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--v3-muted-2); }
.v3-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--v3-sage);
  box-shadow: 0 0 0 4px rgba(134,184,148,.14);
}

/* Portrait */
.v3-portrait {
  position: relative;
  border: 1px solid var(--v3-line); border-radius: var(--v3-r-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.07), transparent 62%),
    linear-gradient(170deg, var(--v3-surface-2), var(--v3-surface));
  padding: 28px; display: grid; gap: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,.7);
}
.v3-portrait-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.v3-portrait-title { font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--v3-text); }
.v3-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(134,184,148,.12); color: var(--v3-sage);
  font-size: 11.5px; font-weight: 600;
}
.v3-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.v3-portrait-stage { display: grid; place-items: center; padding: 6px 0 2px; }
.v3-mascot-ring {
  position: relative; width: min(210px, 60vw); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--v3-line-strong);
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 68%);
}
.v3-mascot-ring::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.20);
  animation: v3-spin 48s linear infinite;
}
@keyframes v3-spin { to { transform: rotate(360deg); } }
.v3-mascot-ring img { width: 56%; height: auto; position: relative; }
.v3-portrait-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--v3-line); border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md); overflow: hidden;
}
.v3-portrait-facts div { background: var(--v3-surface); padding: 14px 16px; display: grid; gap: 4px; }
.v3-portrait-facts span { font-size: 11px; color: var(--v3-muted-2); }
.v3-portrait-facts strong {
  font-size: 15px; font-weight: 500; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.v3-portrait-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; border-radius: var(--v3-r-sm);
  background: var(--v3-pure); color: #000;
  font-weight: 600; font-size: 14px;
}

/* Sections */
.v3-section { padding: clamp(56px, 8vw, 104px) 0 0; }
.v3-section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 46ch; }
.v3-section-head h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.v3-section-head p { color: var(--v3-muted); font-size: 16px; }
.v3-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; max-width: none; }
.v3-head-split > div { display: grid; gap: 12px; max-width: 46ch; }
.v3-link-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.v3-link-more:hover { color: var(--v3-muted); }
.v3-link-more svg { width: 16px; height: 16px; }

/* Features */
.v3-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 14px; }
.v3-feature {
  display: grid; gap: 12px; align-content: start; padding: 26px 24px 28px;
  border: 1px solid var(--v3-line); border-radius: var(--v3-r-md);
  background: linear-gradient(165deg, var(--v3-surface-2), var(--v3-surface));
  transition: border-color .2s ease, transform .2s ease;
}
.v3-feature:hover { border-color: var(--v3-line-strong); transform: translateY(-3px); }
.v3-feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; background: rgba(255,255,255,.07);
  color: var(--v3-text); margin-bottom: 6px;
}
.v3-feature-icon svg { width: 22px; height: 22px; }
.v3-feature h3 { font-size: 17px; letter-spacing: -.02em; font-weight: 500; }
.v3-feature p { color: var(--v3-muted); font-size: 14.5px; }

/* Steps */
.v3-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.v3-step { display: grid; gap: 12px; align-content: start; padding: 30px 26px 34px 0; border-top: 1px solid var(--v3-line-strong); }
.v3-step + .v3-step { padding-left: 26px; }
.v3-step-n { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--v3-muted-2); }
.v3-step h3 { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.v3-step p { color: var(--v3-muted); font-size: 14.5px; max-width: 34ch; }

/* Pricing */
.v3-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 12px; }
.v3-plans-loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 40px; color: var(--v3-muted); font-size: 14px;
}
.v3-plans-loading .spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.2);
  border-top-color: var(--v3-text); border-radius: 50%;
  animation: v3-spin 0.8s linear infinite;
}
.v3-plan {
  position: relative; display: grid; gap: 16px; align-content: start;
  padding: 26px 22px 24px; border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md); background: var(--v3-surface);
  transition: border-color .2s ease;
}
.v3-plan:hover { border-color: var(--v3-line-strong); }
.v3-plan-featured {
  border-color: var(--v3-line-strong);
  background: linear-gradient(175deg, rgba(255,255,255,.07), var(--v3-surface) 58%);
}
.v3-plan-flag {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 10px; border-radius: 999px; background: var(--v3-pure);
  color: #000; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.v3-plan-term { font-size: 12px; color: var(--v3-muted-2); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.v3-plan-name { font-size: 15px; font-weight: 500; color: var(--v3-text); letter-spacing: -.01em; }
.v3-plan-price {
  font-size: 32px; font-weight: 600; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.v3-plan-price small { font-size: 12px; font-weight: 500; color: var(--v3-muted-2); letter-spacing: 0; }
.v3-plan ul { display: grid; gap: 9px; }
.v3-plan li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--v3-muted); }
.v3-plan li svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 3px; color: var(--v3-text); }
.v3-plan .v3-btn { width: 100%; }

/* Telegram section */
.v3-tg {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,380px);
  gap: clamp(32px, 6vw, 68px); align-items: center;
  margin-top: clamp(56px, 8vw, 104px); padding: clamp(32px, 5vw, 52px);
  border: 1px solid var(--v3-line); border-radius: var(--v3-r-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.06), transparent 58%),
    linear-gradient(160deg, var(--v3-surface-2), var(--v3-surface));
}
.v3-tg-copy { display: grid; gap: 18px; justify-items: start; }
.v3-tg-copy h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.035em; max-width: 17ch; }
.v3-tg-copy p { color: var(--v3-muted); max-width: 42ch; font-size: 15.5px; }
.v3-tg-window { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--v3-line); border-radius: var(--v3-r-md); background: #000; }
.v3-tg-window-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--v3-line); }
.v3-tg-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--v3-line); background: var(--v3-surface-2);
}
.v3-tg-mark img { width: 30px; height: 30px; object-fit: contain; }
.v3-tg-window-head strong { font-size: 13px; font-weight: 500; }
.v3-tg-window-head span { font-size: 11px; color: var(--v3-muted-2); display: block; }
.v3-tg-msg { display: grid; gap: 5px; padding: 14px 15px; border-radius: 12px; background: var(--v3-surface-3); }
.v3-tg-msg strong { font-size: 14px; font-weight: 600; }
.v3-tg-msg span { font-size: 12.5px; color: var(--v3-muted); }
.v3-tg-reply { padding: 12px; border-radius: 10px; border: 1px solid var(--v3-line-strong); font-size: 13px; font-weight: 600; text-align: center; }

/* FAQ */
.v3-faq { border-top: 1px solid var(--v3-line); }
.v3-faq details { border-bottom: 1px solid var(--v3-line); }
.v3-faq summary {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 22px 44px 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(15px, 1.8vw, 18px); font-weight: 400; letter-spacing: -.02em;
  transition: color .18s ease;
}
.v3-faq summary::-webkit-details-marker { display: none; }
.v3-faq summary:hover { color: var(--v3-muted); }
.v3-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 13px; height: 13px; margin-top: -6px;
  background:
    linear-gradient(var(--v3-text), var(--v3-text)) center/13px 1.5px no-repeat,
    linear-gradient(var(--v3-text), var(--v3-text)) center/1.5px 13px no-repeat;
  transition: transform .22s ease;
}
.v3-faq details[open] summary::after { transform: rotate(45deg); background-size: 13px 1.5px, 1.5px 0; }
.v3-faq p { max-width: 68ch; margin: 0 0 24px; color: var(--v3-muted); font-size: 15px; }

/* Footer */
.v3-footer { margin-top: clamp(64px, 9vw, 116px); padding: 40px 0 32px; border-top: 1px solid var(--v3-line); }
.v3-footer-top { display: grid; grid-template-columns: minmax(0,1.2fr) repeat(3, minmax(0,1fr)); gap: 32px; }
.v3-footer-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.v3-footer-brand img { height: 42px; width: auto; flex: 0 0 auto; align-self: start; object-fit: contain; }
.v3-footer-brand p { color: var(--v3-muted-2); font-size: 13.5px; max-width: 30ch; }
.v3-footer-col { display: grid; gap: 10px; align-content: start; }
.v3-footer-col strong { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--v3-text); }
.v3-footer-col a { font-size: 13.5px; color: var(--v3-muted); transition: color .18s ease; }
.v3-footer-col a:hover { color: var(--v3-text); }
.v3-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--v3-line);
  font-size: 12px; color: var(--v3-muted-2);
}

@media (max-width: 900px) {
  .v3-hero { grid-template-columns: 1fr; }
  .v3-portrait { order: -1; }
  .v3-tg { grid-template-columns: 1fr; }
  .v3-footer-top { grid-template-columns: 1fr 1fr; }
  .v3-step + .v3-step { padding-left: 0; }
}
@media (max-width: 560px) {
  .v3-footer-top { grid-template-columns: 1fr; }
  .v3-head-split { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-mascot-ring::before { animation: none; }
  .v3-landing *, .v3-landing *::before, .v3-landing *::after { transition-duration: .01ms !important; }
}

/* Скрываем старую topbar для v3-landing (используем встроенную) */
body:has(.v3-landing) #public-header { display: none; }
/* Если браузер не поддерживает :has, fallback JS ставит .v3-landing-active на body */
body.v3-landing-active #public-header { display: none; }

/* v3 topbar */
.v3-topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--v3-line);
}
.v3-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.v3-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.v3-brand-full { display: block; height: 38px; width: auto; flex: 0 0 auto; align-self: center; object-fit: contain; }
.v3-topnav { display: flex; align-items: center; gap: 26px; }
.v3-topnav > a { font-size: 14px; color: var(--v3-muted); font-weight: 500; transition: color .18s ease; }
.v3-topnav > a:hover { color: var(--v3-text); }
.v3-nav-links { display: flex; gap: 26px; }
.v3-nav-links a { font-size: 14px; color: var(--v3-muted); font-weight: 500; transition: color .18s ease; }
.v3-nav-links a:hover { color: var(--v3-text); }
.v3-nav-login { color: var(--v3-text) !important; font-weight: 600 !important; }
@media (max-width: 900px) {
  .v3-nav-links { display: none; }
  .v3-topbar-inner { min-height: 64px; }
  .v3-brand-full { height: 32px; }
}

/* v3 auth */
.v3-auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: var(--v3-ground);
}
.v3-auth-shell {
  display: grid; grid-template-columns: 1.05fr .95fr; min-height: 600px;
  width: min(100%, 1080px);
  border: 1px solid var(--v3-line); border-radius: var(--v3-r-lg); overflow: hidden;
  background: var(--v3-surface);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.v3-auth-visual {
  position: relative; overflow: hidden; padding: 34px;
  border-right: 1px solid var(--v3-line);
  background: radial-gradient(130% 90% at 20% 10%, rgba(255,255,255,.06), transparent 55%), var(--v3-surface-2);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.v3-auth-brand img { height: 34px; width: auto; object-fit: contain; display: block; }
.v3-auth-orb {
  align-self: center; flex: 0 0 auto; display: grid; place-items: center;
  width: 210px; height: 210px; border: 1px solid var(--v3-line-strong); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%);
}
.v3-auth-orb img { width: 108px; height: 108px; object-fit: contain; display: block; }
.v3-auth-visual-copy strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--v3-text); }
.v3-auth-visual-copy span { font-size: 13px; color: var(--v3-muted); }
.v3-auth-card {
  display: flex; flex-direction: column; justify-content: center; gap: 15px;
  padding: clamp(32px, 5vw, 56px);
  background: var(--v3-surface); color: var(--v3-text);
  font-family: 'Golos Text', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.v3-auth-card h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.04em; margin: 0; color: var(--v3-text); }
.v3-auth-card p { margin: 0; }
.v3-auth-card .v3-muted { color: var(--v3-muted); font-size: 14px; }
.v3-auth-card label,
.v3-auth-card .v3-field { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: var(--v3-muted); }
.v3-auth-card input {
  width: 100%; min-height: 47px; padding: 12px 14px;
  border: 1px solid var(--v3-line); border-radius: 12px;
  background: var(--v3-ground); color: var(--v3-text);
  outline: none; font-family: inherit; font-size: 14px; font-weight: 400;
  transition: border-color .16s, background .16s;
}
.v3-auth-card input::placeholder { color: var(--v3-muted-2); }
.v3-auth-card input:focus { border-color: var(--v3-line-strong); background: var(--v3-surface-2); }
.v3-auth-card .v3-hint { font-size: 11px; color: var(--v3-muted-2); }
.v3-auth-card .form-error { min-height: 16px; font-size: 12.5px; color: var(--v3-rose, #D98C8C); }
.v3-auth-switch { font-size: 13px; color: var(--v3-muted); text-align: center; margin-top: 4px; }
.v3-auth-switch a { color: var(--v3-text); font-weight: 700; text-decoration: none; }
.v3-auth-switch a:hover { text-decoration: underline; }
.v3-auth-mobile-logo { display: none; align-self: center; margin-bottom: 6px; }
.v3-auth-mobile-logo img { height: 34px; width: auto; object-fit: contain; display: block; }
.telegram-login-button { background: transparent !important; }
.telegram-login-button img { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .v3-auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .v3-auth-visual { display: none; }
  .v3-auth-mobile-logo { display: inline-flex; }
  .v3-auth-card { padding: 34px 24px; }
}

/* === v3-landing:end === */

/* === v3-cabinet:begin === */
/* ============================================================
   nubukoVPN v3 CABINET — переоформление существующих
   production-классов кабинета/поддержки в дизайн макета.
   Скоуплено внутри .dashboard-shell чтобы не задеть
   landing/auth страницы.
   ============================================================ */

/* === Общие переменные для кабинета === */
.dashboard-shell {
  --v3-ground:    #000000;
  --v3-surface:   #0A0A0A;
  --v3-surface-2: #101010;
  --v3-surface-3: #181818;
  --v3-line:        rgba(255,255,255,.10);
  --v3-line-strong: rgba(255,255,255,.26);
  --v3-text:    #EFEBE4;
  --v3-muted:   #9C958C;
  --v3-muted-2: #6C665F;
  --v3-pure:   #FFFFFF;
  --v3-sage:   #86B894;
  --v3-sage-bg: rgba(134,184,148,.12);
  --v3-rose:   #D98C8C;
  --v3-rose-bg: rgba(217,140,140,.12);
  --v3-r-sm: 10px;
  --v3-r-md: 16px;
  --v3-r-lg: 22px;
  --v3-sidebar-w: 280px;

  background: var(--v3-ground);
  color: var(--v3-text);
  font-family: 'Golos Text', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--v3-sidebar-w) 1fr;
}

/* === Sidebar === */
.dashboard-shell .sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--v3-line);
  background: var(--v3-surface-2);
  width: auto;
  min-height: 100vh;
  position: sticky;
  top: 0;
  left: 0;
  transform: none;
  overflow-y: auto;
}
.dashboard-shell .sidebar-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  height: 52px;
  padding: 0 8px;
  margin-bottom: 8px;
  border: 0;
  background: transparent;
}
.dashboard-shell .sidebar-brand-full { display: block; height: 32px; width: auto; object-fit: contain; }
.dashboard-shell .sidebar-brand-compact { display: none !important; }
.dashboard-shell .sidebar-toggle { display: none; }
.dashboard-shell .sidebar-home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  color: var(--v3-muted);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  transition: border-color .16s, color .16s;
}
.dashboard-shell .sidebar-home:hover { border-color: var(--v3-line-strong); color: var(--v3-text); }
.dashboard-shell .sidebar-home span { color: var(--v3-muted); font-size: 14px; }

.dashboard-shell nav[aria-label] { display: flex; flex-direction: column; gap: 2px; }
.dashboard-shell nav .nav-label {
  margin: 14px 12px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--v3-muted-2);
}
.dashboard-shell nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--v3-muted);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  text-decoration: none;
  transition: background .16s, color .16s, border-color .16s;
}
.dashboard-shell nav a:hover { background: rgba(255,255,255,.05); color: var(--v3-text); }
.dashboard-shell nav a.active {
  background: var(--v3-pure);
  color: #000;
  border-color: var(--v3-pure);
}
.dashboard-shell nav a.active span,
.dashboard-shell nav a.active b { color: #000; }
.dashboard-shell nav a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--v3-muted);
}
.dashboard-shell nav a b { color: inherit; font-weight: 500; }

.dashboard-shell .sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.dashboard-shell .sidebar-links a { color: var(--v3-muted); text-decoration: none; }

.dashboard-shell .sidebar-helper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--v3-line);
  border-radius: 14px;
  background: var(--v3-surface-3);
  color: var(--v3-text);
  text-decoration: none;
  transition: border-color .16s;
}
.dashboard-shell .sidebar-helper:hover { border-color: var(--v3-line-strong); }
.dashboard-shell .sidebar-helper-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  font-weight: 700;
  color: var(--v3-text);
}
.dashboard-shell .sidebar-helper strong { font-size: 11.5px; }
.dashboard-shell .sidebar-helper i { color: var(--v3-muted-2); font-style: normal; }

.dashboard-shell .sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--v3-line);
}
.dashboard-shell .sidebar-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--v3-line-strong);
  border-radius: 11px;
  background: var(--v3-surface-3);
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-text);
}
.dashboard-shell .sidebar-user > div { min-width: 0; flex: 1; }
.dashboard-shell .sidebar-user strong {
  display: block;
  font-size: 11px;
  color: var(--v3-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-shell #logout-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--v3-line);
  border-radius: 9px;
  background: transparent;
  color: var(--v3-muted);
  cursor: pointer;
  transition: border-color .16s, color .16s;
}
.dashboard-shell #logout-button:hover { border-color: var(--v3-rose); color: var(--v3-rose); }
.dashboard-shell #logout-button strong { display: none; }

/* === Main area === */
.dashboard-shell .dashboard-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--v3-ground);
  margin: 0;
  padding: 0;
}
.dashboard-shell .dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--v3-line);
}
.dashboard-shell .dashboard-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--v3-text);
  margin: 0;
}
.dashboard-shell .dashboard-head .eyebrow {
  margin: 0 0 5px;
  color: var(--v3-muted-2);
}
.dashboard-shell .user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--v3-muted);
  background: transparent;
}

.dashboard-shell #dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px 32px;
}
.dashboard-shell #dashboard-content > section,
.dashboard-shell #dashboard-content > div { gap: 16px; }

/* === Eyebrow / typography === */
.dashboard-shell .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--v3-muted-2);
}
.dashboard-shell .muted { color: var(--v3-muted); }
.dashboard-shell h1, .dashboard-shell h2, .dashboard-shell h3 {
  color: var(--v3-text);
  margin: 0;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* === Buttons === */
.dashboard-shell .button,
.dashboard-shell button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--v3-r-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.dashboard-shell .button:hover { transform: translateY(-1px); }
.dashboard-shell .button.primary,
.dashboard-shell button.button.primary {
  background: var(--v3-pure);
  color: #000;
  border-color: var(--v3-pure);
}
.dashboard-shell .button.primary:hover { background: #DEDAD3; color: #000; }
.dashboard-shell .button.secondary,
.dashboard-shell button.button.secondary {
  background: var(--v3-surface-2);
  color: var(--v3-muted);
  border-color: var(--v3-line);
}
.dashboard-shell .button.secondary:hover { border-color: var(--v3-line-strong); color: var(--v3-text); }
.dashboard-shell .button.ghost,
.dashboard-shell button.button.ghost {
  background: transparent;
  color: var(--v3-text);
  border-color: var(--v3-line-strong);
}
.dashboard-shell .button.ghost:hover { border-color: var(--v3-pure); background: rgba(255,255,255,.05); }
.dashboard-shell .button.danger {
  background: var(--v3-rose-bg);
  color: var(--v3-rose);
  border-color: rgba(217,140,140,.3);
}
.dashboard-shell .button.danger:hover { border-color: var(--v3-rose); background: rgba(217,140,140,.2); }
.dashboard-shell .button.small { min-height: 38px; padding: 0 14px; font-size: 13px; }
.dashboard-shell .button.wide { width: 100%; }
.dashboard-shell .button.inline-button,
.dashboard-shell button.inline-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--v3-text);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--v3-line-strong);
  border-radius: 0;
  align-self: start;
  justify-self: start;
  margin-top: 2px;
}
.dashboard-shell .button.inline-button:hover { color: var(--v3-muted); transform: none; }
.dashboard-shell .text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--v3-muted);
  text-decoration: none;
}
.dashboard-shell .text-action:hover { color: var(--v3-text); }
.dashboard-shell .icon-copy {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--v3-line);
  border-radius: 10px;
  background: var(--v3-surface-2);
  color: var(--v3-muted);
  cursor: pointer;
  transition: border-color .16s, color .16s;
  font-size: 16px;
}
.dashboard-shell .icon-copy:hover { border-color: var(--v3-line-strong); color: var(--v3-text); }

/* === Status === */
.dashboard-shell .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.dashboard-shell .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dashboard-shell .status.active,
.dashboard-shell .status.paid { color: var(--v3-sage); background: var(--v3-sage-bg); }
.dashboard-shell .status.expired,
.dashboard-shell .status.failed,
.dashboard-shell .status.cancelled { color: var(--v3-rose); background: var(--v3-rose-bg); }
.dashboard-shell .status.creating,
.dashboard-shell .status.pending,
.dashboard-shell .status.in_progress,
.dashboard-shell .status.waiting_user,
.dashboard-shell .status.new,
.dashboard-shell .status.resolved,
.dashboard-shell .status.closed { color: var(--v3-muted); background: rgba(255,255,255,.07); }

/* === Welcome / hero panels === */
.dashboard-shell .welcome-panel,
.dashboard-shell .shop-intro,
.dashboard-shell .payments-intro,
.dashboard-shell .settings-intro,
.dashboard-shell .subscriptions-heading,
.dashboard-shell .support-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background:
    radial-gradient(120% 140% at 100% 0, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(160deg, var(--v3-surface-2), var(--v3-surface));
}
.dashboard-shell .welcome-panel h2,
.dashboard-shell .shop-intro h2,
.dashboard-shell .payments-intro h2,
.dashboard-shell .subscriptions-heading h2,
.dashboard-shell .settings-intro h2,
.dashboard-shell .support-hero h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 4px;
  color: var(--v3-text);
}
.dashboard-shell .welcome-panel > div:first-child,
.dashboard-shell .shop-intro > div,
.dashboard-shell .payments-intro > div,
.dashboard-shell .subscriptions-heading > div,
.dashboard-shell .settings-intro > div,
.dashboard-shell .support-hero > div:first-child { flex: 1; }

.dashboard-shell .welcome-orb,
.dashboard-shell .settings-shield,
.dashboard-shell .support-visual {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 1px solid var(--v3-line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
}
.dashboard-shell .welcome-orb img,
.dashboard-shell .settings-shield img,
.dashboard-shell .support-visual img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* === Summary grid === */
.dashboard-shell .summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dashboard-shell .summary-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: var(--v3-surface);
}
.dashboard-shell .summary-card small {
  font-size: 11px;
  color: var(--v3-muted-2);
}
.dashboard-shell .summary-card strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--v3-text);
}
.dashboard-shell .summary-card .summary-icon,
.dashboard-shell .summary-card > span[class="summary-icon"] {
  display: none;
}
.dashboard-shell .summary-card p {
  font-size: 11px;
  color: var(--v3-muted-2);
  margin: 0;
}

/* === Section-head === */
.dashboard-shell .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
}
.dashboard-shell .section-head h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--v3-text);
}
.dashboard-shell .section-head p {
  font-size: 12px;
  color: var(--v3-muted-2);
  margin-top: 2px;
}

/* === Overview subscription cards === */
.dashboard-shell .account-subscription-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: linear-gradient(160deg, var(--v3-surface-2), var(--v3-surface));
}
.dashboard-shell .account-subscription-card.is-active { border-color: var(--v3-line-strong); }
.dashboard-shell .account-subscription-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dashboard-shell .account-subscription-head h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 3px;
  color: var(--v3-text);
}
.dashboard-shell .account-subscription-facts,
.dashboard-shell .subscription-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-sm);
  background: var(--v3-line);
}
.dashboard-shell .account-subscription-facts > div,
.dashboard-shell .subscription-facts > div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  background: var(--v3-surface);
}
.dashboard-shell .account-subscription-facts span,
.dashboard-shell .subscription-facts span {
  font-size: 11px;
  color: var(--v3-muted-2);
}
.dashboard-shell .account-subscription-facts strong,
.dashboard-shell .subscription-facts strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--v3-text);
  font-variant-numeric: tabular-nums;
}
.dashboard-shell .account-subscription-facts small,
.dashboard-shell .subscription-facts small {
  font-size: 11px;
  color: var(--v3-muted);
}
.dashboard-shell .account-subscription-actions,
.dashboard-shell .key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* === Subscription (mine) cards === */
.dashboard-shell .subscription-list { display: grid; gap: 14px; }
.dashboard-shell .subscription-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: linear-gradient(160deg, var(--v3-surface-2), var(--v3-surface));
}
.dashboard-shell .subscription-card.is-active { border-color: var(--v3-line-strong); }
.dashboard-shell .subscription-card.is-expired { border-color: rgba(217,140,140,.35); }
.dashboard-shell .subscription-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dashboard-shell .subscription-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.dashboard-shell .subscription-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid var(--v3-line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.dashboard-shell .subscription-symbol img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.dashboard-shell .subscription-title h2,
.dashboard-shell .subscription-title h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 3px;
  color: var(--v3-text);
}
.dashboard-shell .connection-key-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-ground);
}
.dashboard-shell .connection-key-block > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.dashboard-shell .connection-key-block span {
  font-size: 11px;
  color: var(--v3-muted-2);
}
.dashboard-shell .connection-key-block code {
  display: block;
  font-size: 13px;
  color: var(--v3-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.dashboard-shell .technical-details {
  border-top: 1px solid var(--v3-line);
  padding-top: 14px;
}
.dashboard-shell .technical-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--v3-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dashboard-shell .technical-details summary::-webkit-details-marker { display: none; }
.dashboard-shell .technical-details summary::before { content: "+"; color: var(--v3-muted-2); font-size: 14px; }
.dashboard-shell .technical-details[open] summary::before { content: "−"; }
.dashboard-shell .technical-details summary:hover { color: var(--v3-text); }
.dashboard-shell .technical-details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--v3-muted);
}

.dashboard-shell .extra-devices {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-surface-3);
}
.dashboard-shell .extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dashboard-shell .extra-row strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-text);
}
.dashboard-shell .extra-row .muted { font-size: 12px; color: var(--v3-muted); }
.dashboard-shell .stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--v3-line);
  border-radius: 10px;
  overflow: hidden;
}
.dashboard-shell .stepper button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--v3-surface);
  color: var(--v3-text);
  font-size: 17px;
  cursor: pointer;
  transition: background .16s;
}
.dashboard-shell .stepper button:hover { background: rgba(255,255,255,.09); }
.dashboard-shell .stepper strong {
  min-width: 38px;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--v3-text);
}
.dashboard-shell .danger-zone {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

/* === Plan cards (shop) === */
.dashboard-shell .plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  gap: 12px;
}
.dashboard-shell .plan-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 20px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: var(--v3-surface);
  transition: border-color .18s, background .18s;
}
.dashboard-shell .plan-card:hover { border-color: var(--v3-line-strong); }
.dashboard-shell .plan-card.recommended {
  border-color: var(--v3-line-strong);
  background: linear-gradient(175deg, rgba(255,255,255,.07), var(--v3-surface) 60%);
}
.dashboard-shell .plan-card.trial-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border: 1px dashed var(--v3-line-strong);
  background: var(--v3-surface-2);
  grid-column: 1 / -1;
}
.dashboard-shell .plan-ribbon {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--v3-pure);
  color: #000;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dashboard-shell .plan-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-shell .plan-duration {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v3-muted-2);
}
.dashboard-shell .plan-mark {
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-muted-2);
}
.dashboard-shell .plan-card h2,
.dashboard-shell .plan-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--v3-text);
  letter-spacing: -.01em;
}
.dashboard-shell .plan-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--v3-text);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.dashboard-shell .plan-price small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--v3-muted-2);
  letter-spacing: 0;
}
.dashboard-shell .plan-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-shell .plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--v3-muted);
}
.dashboard-shell .plan-card li::before {
  content: "✓";
  color: var(--v3-text);
  font-weight: 700;
  flex: 0 0 auto;
  font-size: 13px;
}

/* === Balance === */
.dashboard-shell .balance-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background:
    radial-gradient(120% 150% at 100% 0, rgba(255,255,255,.07), transparent 58%),
    linear-gradient(160deg, var(--v3-surface-2), var(--v3-surface));
}
.dashboard-shell .balance-main {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.dashboard-shell .balance-main span:not([class]) {
  font-size: 13px;
  color: var(--v3-muted);
}
.dashboard-shell .balance-main strong {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--v3-text);
  font-variant-numeric: tabular-nums;
}
.dashboard-shell .balance-main .button { margin-top: 12px; }
.dashboard-shell .balance-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  border: 1px solid var(--v3-line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
}
.dashboard-shell .balance-art .wallet-shape {
  inset: auto;
  border-radius: 50%;
  background: transparent;
  border: 0;
  width: auto;
  height: auto;
}
.dashboard-shell .balance-art img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  display: block;
}
.dashboard-shell .balance-art .coin { display: none; }

.dashboard-shell .balance-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
}
.dashboard-shell .balance-cards { display: grid; gap: 8px; }
.dashboard-shell .transaction-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-surface-2);
}
.dashboard-shell .transaction-card > div { min-width: 0; }
.dashboard-shell .transaction-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v3-text);
}
.dashboard-shell .transaction-card small {
  font-size: 11.5px;
  color: var(--v3-muted-2);
}
.dashboard-shell .transaction-amount {
  text-align: right;
  flex: 0 0 auto;
}
.dashboard-shell .transaction-amount strong {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dashboard-shell .transaction-amount .amount-positive { color: var(--v3-sage); }
.dashboard-shell .transaction-amount .amount-negative { color: var(--v3-text); }
.dashboard-shell .transaction-amount span {
  font-size: 11px;
  color: var(--v3-muted-2);
  font-variant-numeric: tabular-nums;
  display: block;
}

.dashboard-shell .balance-use { display: grid; gap: 12px; align-content: start; }
.dashboard-shell .balance-use-list {
  display: grid;
  gap: 8px;
}
.dashboard-shell .balance-use-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--v3-line);
  border-radius: 11px;
  font-size: 13px;
  color: var(--v3-muted);
}
.dashboard-shell .balance-use-list p {
  margin: 0;
}
.dashboard-shell .balance-use-list strong {
  color: var(--v3-text);
  font-weight: 600;
}

/* === Panels === */
.dashboard-shell .panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: var(--v3-surface);
}
.dashboard-shell .overview-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dashboard-shell .quick-action-list { display: grid; gap: 8px; }
.dashboard-shell .quick-action-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  color: var(--v3-text);
  text-decoration: none;
  transition: border-color .16s, background .16s;
}
.dashboard-shell .quick-action-list a:hover {
  border-color: var(--v3-line-strong);
  background: rgba(255,255,255,.04);
}
.dashboard-shell .quick-action-list a span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--v3-muted);
  font-size: 16px;
}
.dashboard-shell .quick-action-list a strong {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
}
.dashboard-shell .quick-action-list a b {
  color: var(--v3-muted-2);
  font-weight: 400;
}

.dashboard-shell .latest-order {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-surface-2);
}
.dashboard-shell .latest-order > .summary-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--v3-text);
  font-size: 16px;
}
.dashboard-shell .latest-order > div {
  flex: 1;
  min-width: 0;
}
.dashboard-shell .latest-order strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v3-text);
}
.dashboard-shell .latest-order p {
  font-size: 12px;
  color: var(--v3-muted);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

/* === Tables (payments) === */
.dashboard-shell .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
}
.dashboard-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.dashboard-shell thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v3-muted-2);
  background: var(--v3-surface-2);
  border-bottom: 1px solid var(--v3-line);
  white-space: nowrap;
}
.dashboard-shell tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--v3-line);
  color: var(--v3-muted);
}
.dashboard-shell tbody tr:last-child td { border-bottom: 0; }
.dashboard-shell tbody tr:hover td { background: rgba(255,255,255,.02); }

/* Payment cards for mobile */
.dashboard-shell .payment-card,
.dashboard-shell .payment-cards article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-surface-2);
}
.dashboard-shell .payment-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.dashboard-shell .payment-card span {
  font-size: 10px;
  color: var(--v3-muted-2);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.dashboard-shell .payment-card strong {
  font-size: 13px;
  color: var(--v3-text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Settings === */
.dashboard-shell .settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.dashboard-shell .account-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: var(--v3-surface);
}
.dashboard-shell .account-panel-heading,
.dashboard-shell .account-panel-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.dashboard-shell .account-panel-heading h3,
.dashboard-shell .account-panel-head h3 {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--v3-text);
}
.dashboard-shell .account-panel form {
  display: grid;
  gap: 13px;
}

/* === Form controls === */
.dashboard-shell input,
.dashboard-shell select,
.dashboard-shell textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-ground);
  color: var(--v3-text);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .16s, background .16s;
}
.dashboard-shell textarea {
  min-height: auto;
  resize: vertical;
  line-height: 1.5;
}
.dashboard-shell input::placeholder,
.dashboard-shell textarea::placeholder { color: var(--v3-muted-2); }
.dashboard-shell input:focus,
.dashboard-shell select:focus,
.dashboard-shell textarea:focus {
  border-color: var(--v3-line-strong);
  background: var(--v3-surface-2);
}
.dashboard-shell label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--v3-muted);
}
.dashboard-shell .form-grid,
.dashboard-shell .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* === Empty states === */
.dashboard-shell .empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 52px 24px;
  text-align: center;
  border: 1px dashed var(--v3-line-strong);
  border-radius: var(--v3-r-md);
  background: var(--v3-surface-2);
  color: var(--v3-muted);
  min-height: auto;
}
.dashboard-shell .empty-state h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--v3-text);
}
.dashboard-shell .empty-state p {
  font-size: 13.5px;
  color: var(--v3-muted);
  max-width: 40ch;
}
.dashboard-shell .empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--v3-muted);
  font-size: 20px;
  border: 0;
}

/* === Sync warning === */
.dashboard-shell .sync-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(217,140,140,.35);
  border-radius: 12px;
  background: var(--v3-rose-bg);
}
.dashboard-shell .sync-warning > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--v3-rose);
  color: #000;
  font-weight: 700;
}
.dashboard-shell .sync-warning strong { color: var(--v3-text); font-size: 13px; font-weight: 700; }
.dashboard-shell .sync-warning p { color: var(--v3-muted); font-size: 12.5px; margin: 4px 0 0; }

/* === Support page === */
.dashboard-shell .support-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}
.dashboard-shell .support-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: var(--v3-surface);
}
.dashboard-shell .support-side { display: grid; gap: 12px; }
.dashboard-shell .service-state {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-surface-2);
}
.dashboard-shell .service-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--v3-sage);
}
.dashboard-shell .service-dot.neutral { background: var(--v3-muted-2); }
.dashboard-shell .service-state strong { display: block; font-size: 13px; font-weight: 700; color: var(--v3-text); }
.dashboard-shell .service-state p { font-size: 12.5px; color: var(--v3-muted); margin-top: 3px; }

.dashboard-shell .password-hint,
.dashboard-shell .form-error { font-size: 12px; color: var(--v3-muted-2); }
.dashboard-shell .form-error { color: var(--v3-rose); }

/* === Modal reset for dashboard modals === */
.dashboard-shell + .modal-backdrop,
body:has(.dashboard-shell) .modal-backdrop {
  --v3-surface: #0A0A0A;
  --v3-line: rgba(255,255,255,.1);
  --v3-line-strong: rgba(255,255,255,.26);
}

/* === Admin overrides (без глубоких изменений) === */
.dashboard-shell .admin-section {
  padding: 20px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-md);
  background: var(--v3-surface);
}
.dashboard-shell .admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dashboard-shell .admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) .5fr .45fr .55fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-line);
}
.dashboard-shell .admin-row small { color: var(--v3-muted-2); font-size: 10px; }
.dashboard-shell .admin-user-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

/* === Mobile bottom-nav === */
.dashboard-shell .bottom-nav {
  display: none;
}

/* === Responsive === */
@media (max-width: 1120px) {
  .dashboard-shell .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-shell .overview-lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .dashboard-shell .balance-layout,
  .dashboard-shell .settings-grid,
  .dashboard-shell .support-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .dashboard-shell .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 50;
    transform: translateX(-102%);
    transition: transform .22s ease;
  }
  .dashboard-shell .sidebar.open { transform: none; }
  .dashboard-shell .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.64);
    z-index: 40;
    display: none;
    border: 0;
    cursor: pointer;
  }
  .dashboard-shell .sidebar-overlay.open { display: block; }
  .dashboard-shell .dashboard-main { padding-bottom: 82px; }
  .dashboard-shell .dashboard-menu { display: grid !important; }
  .dashboard-shell .dashboard-menu-mobile {
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--v3-line);
    border-radius: 11px;
    background: var(--v3-surface-2);
    color: var(--v3-text);
    cursor: pointer;
    font-size: 18px;
  }
  .dashboard-shell .dashboard-head {
    padding: 16px 18px;
  }
  .dashboard-shell .dashboard-head h1 { font-size: 22px; }
  .dashboard-shell #dashboard-content { padding: 18px 16px 24px; }
  .dashboard-shell .welcome-panel,
  .dashboard-shell .shop-intro,
  .dashboard-shell .payments-intro,
  .dashboard-shell .subscriptions-heading,
  .dashboard-shell .settings-intro,
  .dashboard-shell .support-hero {
    padding: 20px;
    gap: 16px;
  }
  .dashboard-shell .welcome-panel h2,
  .dashboard-shell .shop-intro h2,
  .dashboard-shell .payments-intro h2,
  .dashboard-shell .subscriptions-heading h2,
  .dashboard-shell .settings-intro h2,
  .dashboard-shell .support-hero h2 { font-size: 20px; }
  .dashboard-shell .welcome-orb,
  .dashboard-shell .settings-shield,
  .dashboard-shell .support-visual { width: 68px; height: 68px; }
  .dashboard-shell .welcome-orb img,
  .dashboard-shell .settings-shield img,
  .dashboard-shell .support-visual img { width: 38px; height: 38px; }
  .dashboard-shell .account-subscription-facts,
  .dashboard-shell .subscription-facts { grid-template-columns: 1fr; }
  .dashboard-shell .form-grid,
  .dashboard-shell .form-row { grid-template-columns: 1fr; }
  .dashboard-shell .balance-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .dashboard-shell .balance-main strong { font-size: 34px; }
  .dashboard-shell .balance-art { align-self: center; width: 110px; height: 110px; }
  .dashboard-shell .balance-art img { width: 56px; height: 56px; }
  .dashboard-shell .payment-table { display: none; }
  .dashboard-shell .payment-cards { display: grid; gap: 8px; }
  .dashboard-shell .subscription-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-shell .subscription-title { width: 100%; }
  .dashboard-shell .subscription-title h2,
  .dashboard-shell .subscription-title h3 { font-size: 17px; }
  .dashboard-shell .key-actions .button,
  .dashboard-shell .key-actions a { width: 100%; }
  .dashboard-shell .account-subscription-actions .button { width: 100%; }
  .dashboard-shell .bottom-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--v3-line);
    background: rgba(9,9,9,.94);
    backdrop-filter: blur(20px);
  }
  .dashboard-shell .bottom-nav a {
    display: grid;
    min-height: 62px;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: var(--v3-muted);
    font-size: 10px;
    text-decoration: none;
  }
  .dashboard-shell .bottom-nav a span { font-size: 16px; }
  .dashboard-shell .bottom-nav a.active {
    color: var(--v3-text);
    background: rgba(255,255,255,.05);
  }
  .dashboard-shell .admin-row,
  .dashboard-shell .admin-user-actions,
  .dashboard-shell .admin-log-row,
  .dashboard-shell .admin-sub-card { grid-template-columns: 1fr; }
  .dashboard-shell .admin-filter-bar { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dashboard-shell .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-shell #dashboard-content { padding: 14px 12px 24px; }
  .dashboard-shell .welcome-panel,
  .dashboard-shell .shop-intro,
  .dashboard-shell .payments-intro,
  .dashboard-shell .subscriptions-heading,
  .dashboard-shell .settings-intro,
  .dashboard-shell .support-hero { padding: 18px 16px; }
  .dashboard-shell .welcome-panel h2,
  .dashboard-shell .shop-intro h2,
  .dashboard-shell .payments-intro h2,
  .dashboard-shell .subscriptions-heading h2,
  .dashboard-shell .settings-intro h2,
  .dashboard-shell .support-hero h2 { font-size: 18px; }
  .dashboard-shell .balance-main strong { font-size: 28px; }
  .dashboard-shell .plan-card { padding: 20px 18px; }
  .dashboard-shell .plan-price { font-size: 26px; }
  .dashboard-shell .subscription-card { padding: 20px 18px; gap: 14px; }
  .dashboard-shell .account-subscription-card { padding: 20px 18px; gap: 14px; }
  .dashboard-shell .summary-card strong { font-size: 18px; }
  .dashboard-shell .summary-card { padding: 14px; }
}

/* === Отключить эффект появления через data-reveal (на всякий случай) === */
.dashboard-shell [data-reveal] { opacity: 1; transform: none; }
/* === v3-cabinet:end === */

/* === bottom-nav-mobile-force === */
@media (max-width: 900px) {
  .dashboard-shell .bottom-nav,
  nav.bottom-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 60 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-flow: column !important;
    grid-auto-rows: auto !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(9,9,9,.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
  .dashboard-shell .bottom-nav a,
  nav.bottom-nav > a {
    display: grid !important;
    min-height: 58px !important;
    place-items: center !important;
    align-content: center !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    color: #9C958C !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    width: auto !important;
    text-align: center !important;
  }
  .dashboard-shell .bottom-nav a span,
  nav.bottom-nav > a span {
    display: block !important;
    font-size: 16px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: inherit !important;
  }
  .dashboard-shell .bottom-nav a.active,
  nav.bottom-nav > a.active {
    color: #EFEBE4 !important;
    background: rgba(255,255,255,.06) !important;
  }
  .dashboard-shell .dashboard-main {
    padding-bottom: 90px !important;
  }
}
/* === end bottom-nav-mobile-force === end */

/* === sidebar-user-fix === */
.dashboard-shell .sidebar-user {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 12px 4px 4px;
  border-top: 1px solid rgba(255,255,255,.10);
  width: 100%;
}
.dashboard-shell .sidebar-user > div {
  min-width: 0;
  overflow: hidden;
}
.dashboard-shell .sidebar-user strong {
  display: block !important;
  font-size: 11px !important;
  color: #EFEBE4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
}
.dashboard-shell #logout-button {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #9C958C !important;
  cursor: pointer !important;
  transition: border-color .16s, color .16s !important;
}
.dashboard-shell #logout-button:hover {
  border-color: #D98C8C !important;
  color: #D98C8C !important;
}
.dashboard-shell #logout-button strong { display: none !important; }
.dashboard-shell #logout-button svg { display: block; }

/* Кнопки sidebar-nav: иконка + текст, ровно и красиво */
.dashboard-shell nav a > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  color: inherit !important;
  flex: 0 0 auto !important;
  background: transparent !important;
  font-size: inherit !important;
}
.dashboard-shell nav a > span svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}
.dashboard-shell nav a.active > span svg { color: #000 !important; }
.dashboard-shell .sidebar-home span svg { width: 14px; height: 14px; }
.dashboard-shell .sidebar-helper-icon svg { color: #EFEBE4; }
.dashboard-shell .sidebar-helper i svg { display: block; color: inherit; }

/* Меню-кнопка (гамбургер) — SVG вместо emoji */
.dashboard-shell .dashboard-menu svg { display: block; color: #EFEBE4; }

/* Bottom-nav — SVG иконки */
.dashboard-shell .bottom-nav a > span svg,
nav.bottom-nav > a > span svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  color: currentColor !important;
}
/* === end sidebar-user-fix === end */

/* === sidebar-open-lock === */
@media (max-width: 900px) {
  /* Когда сайдбар открыт — блокируем скролл страницы */
  body:has(.dashboard-shell .sidebar.open) {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  /* И скрываем bottom-nav (чтобы не перекрывал email/logout в сайдбаре) */
  body:has(.dashboard-shell .sidebar.open) .bottom-nav {
    display: none !important;
  }
  /* Sidebar получает свою прокрутку и достаточно места под email/logout */
  .dashboard-shell .sidebar.open {
    z-index: 70 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding-bottom: 18px !important;
  }
  /* Overlay поверх контента, но под сайдбаром */
  .dashboard-shell .sidebar-overlay.open {
    z-index: 65 !important;
  }
}
/* === end sidebar-open-lock === end */

/* === tg-mark-center-fix === */
.v3-tg-mark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: var(--v3-surface-2, #101010) !important;
  overflow: hidden !important;
}
.v3-tg-mark img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* === end tg-mark-center-fix === end */

/* === topbar-stick-hard === */
/* Прибиваем верхнее меню жёстко fixed — работает в Telegram WebView / iOS Safari. */
.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  will-change: transform !important;
  padding-top: env(safe-area-inset-top, 0) !important;
}
.v3-landing .v3-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  padding-top: env(safe-area-inset-top, 0) !important;
}
/* Компенсируем высоту fixed-topbar на страницах */
body:has(.simple-page) { padding-top: calc(72px + env(safe-area-inset-top, 0)); }
body:has(.v3-landing)   { padding-top: calc(76px + env(safe-area-inset-top, 0)); }
body:has(.auth-page),
body:has(.v3-auth-page),
body:has(.dashboard-shell) { padding-top: 0; }
@media (max-width: 700px) {
  body:has(.simple-page) { padding-top: calc(64px + env(safe-area-inset-top, 0)); }
  body:has(.v3-landing)  { padding-top: calc(62px + env(safe-area-inset-top, 0)); }
}
/* На всякий случай — html/body не должны иметь transform, который убивает fixed */
html, body { transform: none !important; will-change: auto !important; }
/* === end topbar-stick-hard === end */

/* === MTProto proxy shortcut and admin settings === */
.mtproto-proxy-fab {
  position: fixed;
  z-index: 85;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  min-width: 232px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  background: rgba(15,15,15,.94);
  color: #fff;
  box-shadow: 0 18px 52px rgba(0,0,0,.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.mtproto-proxy-fab:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.38); background: rgba(24,24,24,.97); }
.mtproto-proxy-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #050505;
}
.mtproto-proxy-icon svg { width: 19px; height: 19px; }
.mtproto-proxy-copy { display: grid; gap: 1px; line-height: 1.2; }
.mtproto-proxy-copy small { color: #a7a7a7; font-size: 10px; font-weight: 700; }
.mtproto-proxy-copy strong { color: #fff; font-size: 13px; font-weight: 800; }
.mtproto-proxy-arrow { color: #a7a7a7; font-size: 15px; }

.dashboard-shell .proxy-settings-section { max-width: 820px; }
.dashboard-shell .proxy-settings-card { display: grid; gap: 17px; padding: 22px; }
.dashboard-shell .proxy-settings-card > label:not(.proxy-enable-row) { display: grid; gap: 8px; color: var(--v3-text); font-size: 13px; font-weight: 650; }
.dashboard-shell .proxy-settings-card input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--v3-line-strong);
  border-radius: 11px;
  background: var(--v3-ground);
  color: var(--v3-text);
  font: 12px/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.dashboard-shell .proxy-enable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  background: var(--v3-surface-2);
}
.dashboard-shell .proxy-enable-row span { display: grid; gap: 4px; }
.dashboard-shell .proxy-enable-row strong { color: var(--v3-text); font-size: 14px; }
.dashboard-shell .proxy-enable-row small { color: var(--v3-muted); font-size: 12px; }
.dashboard-shell .proxy-enable-row input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #fff; }
.dashboard-shell .proxy-settings-hint { margin: -5px 0 0; color: var(--v3-muted); font-size: 12px; }
.dashboard-shell .proxy-settings-hint code { color: var(--v3-text); }
.dashboard-shell .proxy-settings-preview { padding: 12px 14px; border: 1px solid var(--v3-line); border-radius: 11px; background: var(--v3-ground); color: var(--v3-muted); font-size: 12px; }
.dashboard-shell .proxy-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 700px) {
  .mtproto-proxy-fab {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    padding: 9px 11px;
  }
  .mtproto-proxy-icon { width: 34px; height: 34px; border-radius: 10px; }
  .mtproto-proxy-copy strong { font-size: 12px; }
  .dashboard-shell .proxy-settings-card { padding: 18px 16px; }
  .dashboard-shell .proxy-enable-row { align-items: flex-start; }
  .dashboard-shell .proxy-settings-actions .button { width: 100%; }
}
/* === end MTProto proxy === */
