/* ============ EverestVPN — тёмная тема поверх фонового пейзажа ============ */
:root {
  --accent: #4a9bff;
  --accent-soft: rgba(74, 155, 255, .15);
  --accent-line: rgba(74, 155, 255, .6);
  --violet: #5b62f0;
  --text: #f2f4f8;
  --muted: #99a0b0;
  --glass: rgba(18, 20, 26, .74);
  --glass-2: rgba(38, 41, 50, .7);
  --line: rgba(255, 255, 255, .08);
  --green: #2fd18a;
  --red: #ff6b6f;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); font-size: 14px; line-height: 1.4; background: #06080d;
  overscroll-behavior-y: none;
}
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
a { color: var(--accent); }
a.btn, a.row-item { text-decoration: none; color: inherit; }
input, textarea, select {
  font-family: inherit; font-size: 14px; color: var(--text); width: 100%;
  background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 13px; outline: none; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-line); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 84px; }
select option { background: #14161c; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.small { font-size: 13px; }
.mt8 { margin-top: 8px } .mt12 { margin-top: 12px } .mt16 { margin-top: 16px } .mt24 { margin-top: 24px }

/* ---------- фон ---------- */
#bg {
  position: fixed; inset: 0; z-index: -2;
  background: #06080d center/cover no-repeat;
  background-image: url('bg.svg');
}
#bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, .28) 0%, rgba(6, 8, 13, .14) 26%,
              rgba(6, 8, 13, .55) 66%, rgba(6, 8, 13, .9) 100%);
}

/* ---------- служебные экраны ---------- */
.screen-center {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 6px;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.err-icon {
  width: 68px; height: 68px; border-radius: 22px; background: var(--glass); color: var(--muted);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* ---------- верхняя панель ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20; align-items: center;
  padding: calc(9px + env(safe-area-inset-top)) 14px 9px;
  display: flex; justify-content: space-between; gap: 10px;
}
/* режим экрана: назад | заголовок по центру | баланс */
#topbar.tb-screen { display: grid; grid-template-columns: 36px 1fr auto; }
#topbar.tb-screen .top-pill { justify-self: center; }
#topbar.tb-screen .tb-balance { justify-self: end; }
/* главная: бренд слева | тариф по центру | баланс справа */
#topbar.tb-home { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; }
#topbar.tb-home .top-pill { justify-self: center; }
#topbar.tb-home .tb-balance { justify-self: end; }

/* бренд-блок как в магазине: круглый аватар + название + подпись */
.tb-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #5aa8ff, #2f6dff) center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.14);
}
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-brand-text { min-width: 0; }
.tb-name {
  font-weight: 700; font-size: 14px; letter-spacing: -.2px; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-sub {
  font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted);
  font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 46vw; margin-top: 1px;
}

/* баланс как в магазине: значение в пилюле + отдельный синий кружок «+» */
.tb-balance {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px;
  border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-weight: 700; font-size: 13px; white-space: nowrap; flex: none;
}
.tb-balance i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #5aa8ff, #2f6dff); color: #fff;
  font-size: 15px; font-style: normal; line-height: 1;
}
/* лёгкое затемнение под шапкой для читаемости текста — БЕЗ размытия,
   чтобы фоновое фото оставалось чётким */
#topbar::before {
  content: ''; position: absolute; inset: -2px 0 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 8, 13, .55), rgba(6, 8, 13, 0));
}
.top-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--glass-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; max-width: 40vw;
}
.top-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-back {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  justify-self: start; background: var(--glass-2); backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}
#main { padding: 4px 12px 92px; max-width: 560px; margin: 0 auto; }
.hero-gap { height: 34vh; min-height: 210px; max-height: 360px; }

/* ---------- карточки ---------- */
.card {
  background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 11px;
}
.card-pad0 { padding: 5px; }
.card h3 { font-size: 15px; margin-bottom: 3px; }

.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.sec-lbl {
  display: flex; align-items: center; gap: 8px; margin: 16px 3px 7px;
  font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.sec-lbl::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--accent); }

/* ---------- карточка подписки ---------- */
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sub-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.sub-until { font-size: 13.5px; color: var(--muted); }
.sub-until b { color: var(--text); font-weight: 600; }
.chips { display: flex; gap: 9px; margin: 11px 0 14px; }
.chip {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; padding: 6px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--accent-line); color: var(--accent); background: rgba(74, 155, 255, .08);
  font-size: 12px; font-weight: 600; overflow: hidden;
}
.chip.plain { border-color: var(--line); color: var(--muted); background: rgba(255, 255, 255, .04); }
.chip.green { border-color: rgba(47, 209, 138, .5); color: var(--green); background: rgba(47, 209, 138, .08); }
.chip.red { border-color: rgba(255, 107, 111, .5); color: var(--red); background: rgba(255, 107, 111, .08); }

/* ---------- кнопки ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 12px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: transform .08s, box-shadow .2s;
}
.btn:active { transform: scale(.985); }
.btn + .btn { margin-top: 9px; }
.btn-outline {
  border: 1.6px solid var(--accent-line); color: var(--accent); background: rgba(12, 14, 19, .45);
  box-shadow: 0 0 16px rgba(74, 155, 255, .2), inset 0 0 18px rgba(74, 155, 255, .06);
}
.btn-solid {
  background: linear-gradient(135deg, #5aa8ff, #2f6dff); color: #04101f;
  box-shadow: 0 6px 18px rgba(47, 109, 255, .32);
}
.btn-violet { background: var(--violet); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: rgba(255, 107, 111, .14); color: var(--red); }
.btn-sm { width: auto; padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { margin-top: 0; }

/* ---------- строки списка ---------- */
.rows { display: flex; flex-direction: column; }
.row-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 11px; border-radius: 15px;
}
.row-item + .row-item { box-shadow: 0 -1px 0 var(--line); }
.row-ico {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.row-ico.violet { background: rgba(108, 92, 231, .18); color: #a99bff; }
.row-ico.plain { background: rgba(255, 255, 255, .07); color: var(--muted); }
.row-item b { font-weight: 600; font-size: 14px; display: block; }
.row-item .sub { font-size: 12px; color: var(--muted); }
.chev { color: var(--muted); flex: none; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border-radius: 15px;
  background: rgba(74, 155, 255, .1); border: 1px solid rgba(74, 155, 255, .22);
  color: #bcd9ff; font-size: 12.5px; margin-bottom: 11px;
}
.notice.violet { background: rgba(108, 92, 231, .14); border-color: rgba(108, 92, 231, .3); color: #cfc7ff; }
.notice.green { background: rgba(47, 209, 138, .1); border-color: rgba(47, 209, 138, .25); color: #a8f0cd; }
.notice b { display: block; color: #fff; margin-bottom: 2px; }

.code-box {
  background: var(--glass); backdrop-filter: blur(22px); border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; word-break: break-all; line-height: 1.4; color: #cdd4e2;
}

.segmented {
  display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(18px); margin-bottom: 14px;
}
.segmented button {
  flex: 1; padding: 11px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.segmented button.active { background: rgba(255, 255, 255, .1); color: var(--text); }

.empty { text-align: center; color: var(--muted); padding: 26px 16px; font-size: 13.5px; }
.empty svg { opacity: .5; margin-bottom: 10px; }

/* ---------- тарифы ---------- */
.plan {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 13px; margin-bottom: 9px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); transition: border-color .15s, background .15s;
}
.plan.sel { border-color: var(--accent-line); background: rgba(74, 155, 255, .1);
  box-shadow: 0 0 18px rgba(74, 155, 255, .14); }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2);
  flex: none; display: grid; place-items: center; }
.plan.sel .radio { border-color: var(--accent); }
.plan.sel .radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.plan-name { font-weight: 600; font-size: 14.5px; }
.plan-desc { font-size: 12.5px; color: var(--muted); }
.plan-price { text-align: right; flex: none; }
.plan-price b { font-size: 15.5px; }
.plan-price s { display: block; font-size: 12px; color: var(--muted); }
.plan-price span { display: block; font-size: 11px; color: var(--muted); }
.badge {
  position: absolute; top: -9px; right: 16px; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: #17100a;
  background: linear-gradient(135deg, #6fb6ff, #2f6dff);
}

/* ---------- нижняя панель ---------- */
#navbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; gap: 3px; padding: 6px; border-radius: 999px;
  background: rgba(20, 22, 28, .82); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.nav-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.nav-btn svg { width: 21px; height: 21px; }
.nav-btn.active {
  background: linear-gradient(135deg, #5aa8ff, #2f6dff); color: #04101f;
  box-shadow: 0 5px 16px rgba(47, 109, 255, .42);
}
.nav-dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); border: 2px solid #14161c; }

/* ---------- шторка ---------- */
#sheet-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; }
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow-y: auto;
  background: rgba(16, 18, 23, .96); backdrop-filter: blur(26px);
  border-radius: 26px 26px 0 0; border-top: 1px solid var(--line);
  padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
  animation: up .24s cubic-bezier(.2, .8, .3, 1);
}
@keyframes up { from { transform: translateY(100%) } }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 6px auto 16px; }
.sheet-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }

.pay-method {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 15px; margin-bottom: 8px;
  background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.pay-method:active { border-color: var(--accent-line); }
.pay-ico { font-size: 20px; width: 26px; text-align: center; flex: none; }

#toast {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 70;
  background: rgba(28, 30, 38, .96); border: 1px solid var(--line); color: var(--text);
  padding: 10px 17px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: 90vw; text-align: center;
}

/* ---------- чат ---------- */
.chat-box { display: flex; flex-direction: column; gap: 8px; max-height: 48vh; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 15px; font-size: 13.5px; word-break: break-word; }
.msg.in { background: rgba(255, 255, 255, .08); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.out { background: linear-gradient(135deg, #5aa8ff, #2f6dff); color: #04101f;
  border-bottom-right-radius: 6px; align-self: flex-end; }
.msg time { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }

/* ---------- инструкция при первом входе ---------- */
#onboarding {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6, 8, 13, .72), rgba(6, 8, 13, .95));
  backdrop-filter: blur(3px);
}
.ob-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; }
.ob-art {
  width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center;
  background: rgba(74, 155, 255, .12); border: 1px solid rgba(74, 155, 255, .3);
  box-shadow: 0 0 36px rgba(74, 155, 255, .2); margin-bottom: 6px; color: var(--accent);
}
.ob-title { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.ob-text { color: var(--muted); font-size: 14px; max-width: 310px; }
.ob-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 18px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.ob-dots i.on { background: var(--accent); width: 22px; border-radius: 999px; }
.ob-skip { color: var(--muted); font-size: 14px; padding: 12px; width: 100%; }

/* ---------- шаги установки ---------- */
.steps-ol { counter-reset: s; }
.steps-ol > li { list-style: none; counter-increment: s; position: relative; padding-left: 32px;
  margin-bottom: 12px; font-size: 13.5px; }
.steps-ol > li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}
.app-card {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 12px;
  border-radius: 15px; border: 1px solid var(--line); margin-bottom: 8px;
  background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.app-card.rec { border-color: var(--accent-line); background: rgba(74, 155, 255, .09); }
.app-logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: var(--accent);
  background: rgba(74, 155, 255, .14); border: 1px solid rgba(74, 155, 255, .22);
}
.app-logo svg { width: 21px; height: 21px; }
.tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--accent); color: #04101f; }
.os-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.os-tab { flex: 1 1 28%; min-width: 76px; padding: 9px 5px; border-radius: 12px; font-size: 12.5px;
  font-weight: 600; color: var(--muted); border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.os-tab.active { border-color: var(--accent-line); color: var(--accent); background: rgba(74, 155, 255, .1); }

/* ---------- админка ---------- */
.tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted); }
.tab.active { background: linear-gradient(135deg, #5aa8ff, #2f6dff); border-color: transparent; color: #04101f; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-bottom: 14px; }
.kpi { background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--line);
  border-radius: 15px; padding: 11px 12px; }
.kpi b { display: block; font-size: 19px; letter-spacing: -.5px; }
.kpi span { font-size: 11.5px; color: var(--muted); }
.chart { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 92px; margin-top: 10px; }
.chart .bar { flex: 1; max-width: 42px; border-radius: 4px 4px 2px 2px; min-height: 3px;
  background: linear-gradient(180deg, #6fb6ff, #2f6dff); }
.chart-x { display: flex; gap: 4px; margin-top: 5px; }
.chart-x span { flex: 1; font-size: 8.5px; color: var(--muted); text-align: center; overflow: hidden; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14);
  position: relative; flex: none; transition: background .18s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .18s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }
.step-card { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; margin-bottom: 10px; }
.field { margin-bottom: 11px; }
.field > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, .07); color: var(--muted); }
.pill.green { background: rgba(47, 209, 138, .14); color: var(--green); }
.pill.red { background: rgba(255, 107, 111, .16); color: var(--red); }
.pill.orange { background: var(--accent-soft); color: var(--accent); }
.stat-row { display: flex; gap: 10px; margin-top: 14px; }
.stat { flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  border-radius: 13px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 15px; }
.stat span { font-size: 11px; color: var(--muted); }

/* ---------- совместимость: разметка админки ---------- */
.list {
  background: var(--glass); backdrop-filter: blur(22px); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
}
.item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: none; }
.item-ico { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid;
  place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); }
.item b { font-weight: 600; font-size: 13.5px; }
.item .sub { font-size: 11.5px; color: var(--muted); }
.btn-primary { background: linear-gradient(135deg, #5aa8ff, #2f6dff); color: #04101f;
  box-shadow: 0 6px 18px rgba(47, 109, 255, .3); }
.btn-green { background: var(--green); color: #04231a; }
.notice.blue { background: rgba(108, 92, 231, .14); border-color: rgba(108, 92, 231, .3); color: #cfc7ff; }
.pill.blue { background: rgba(108, 92, 231, .18); color: #b3a8ff; }
.pill.amber { background: var(--accent-soft); color: var(--accent); }
.lbl { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- бренд в рамке (как баланс и плашка тарифа) ---------- */
#topbar.tb-home .tb-brand {
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
#topbar.tb-home .tb-avatar { width: 26px; height: 26px; font-size: 12px; }
#topbar.tb-home .tb-name { font-size: 13px; }

/* ---------- выпадающее меню под плашкой тарифа ---------- */
#menu-overlay { position: fixed; inset: 0; z-index: 44; }
.dropdown {
  position: fixed; z-index: 45; min-width: 210px; padding: 6px;
  background: rgba(20, 23, 30, .98); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); animation: pop .16s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97) } }
.dropdown::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: rgba(20, 23, 30, .98);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.dd-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: var(--text);
}
.dd-item:active { background: rgba(255, 255, 255, .06); }
.dd-item svg { color: var(--muted); flex: none; }
.dd-item.danger { color: var(--red); } .dd-item.danger svg { color: var(--red); }
.dd-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- подсказки-обучение (спотлайт поверх реальных элементов) ---------- */
#tour { position: fixed; inset: 0; z-index: 82; }
#tour-hole {
  position: absolute; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(4, 8, 16, .78); transition: all .25s cubic-bezier(.2,.8,.3,1);
  outline: 2px solid var(--accent-line); outline-offset: 2px;
}
#tour-card {
  position: absolute; left: 16px; right: 16px; max-width: 420px; margin: 0 auto;
  background: rgba(20, 23, 30, .99); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: top .25s, bottom .25s;
}
.tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tour-step { font-size: 13px; color: var(--muted); font-weight: 600; }
.tour-x { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted);
  border-radius: 50%; }
.tour-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.tour-text { font-size: 14.5px; color: #c4ccdb; line-height: 1.5; }
.tour-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.tour-nav button { font-size: 14.5px; font-weight: 600; padding: 8px 4px; }
.tour-back { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tour-next { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); }
.tour-dots i.on { background: var(--accent); width: 18px; border-radius: 99px; }
