/* ==========================================================================
   PushkaVPN — современная тёмная тема
   ========================================================================== */

:root {
  --bg: #070a14;
  --bg-2: #12080c;
  --panel: rgba(255, 140, 50, 0.06);
  --panel-solid: #1a0d12;
  --stroke: rgba(255, 150, 70, 0.16);
  --stroke-strong: rgba(255, 140, 50, 0.32);
  --text: #ffe9d2;
  --muted: #c9a48a;
  --violet: #6b2d8b;
  --blue: #ff8a2a;
  --cyan: #ffb454;
  --pink: #ff6b3d;
  --grad: linear-gradient(120deg, #ff7a18 0%, #c43c14 42%, #6b2d8b 100%);
  --grad-btn: linear-gradient(115deg, #ff7a18, #e25a12 28%, #8b3a1a 50%, #6b2d8b 72%, #ff7a18);
  --ok: #d4a017;
  --warn: #ffb454;
  --danger: #ff5d73;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 0% 0%, rgba(107, 45, 139, 0.55), transparent 55%),
    radial-gradient(1100px 900px at 100% 35%, rgba(194, 78, 20, 0.38), transparent 55%),
    radial-gradient(900px 700px at 70% 110%, rgba(58, 28, 12, 0.55), transparent 60%),
    linear-gradient(180deg, #070a14 0%, #14080c 45%, #0a0506 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
}

::selection { background: rgba(255, 122, 24, 0.45); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff7a18, #6b2d8b);
  border-radius: 10px;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-family: "Cinzel", "Manrope", serif;
}

/* --------------------------------------------------------------------------
   Фоновые свечения
   -------------------------------------------------------------------------- */

.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: #6b2d8b; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #c24e14; top: 30%; right: -160px; animation-delay: -5s; }
.orb-3 { width: 380px; height: 380px; background: #3a1c0c; bottom: -140px; left: 30%; animation-delay: -9s; opacity: 0.45; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

/* Плавное «переливание» градиента: симметричные стопы → без швов и рывков */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(255, 122, 24, 0.35); }
  50% { box-shadow: 0 14px 44px rgba(107, 45, 139, 0.6); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
  flex: 1;
  padding: 40px 0 72px;
  animation: pop 0.5s ease both;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

.grad-text {
  background-image: linear-gradient(115deg, #ff7a18, #ffb454 35%, #c43c14 50%, #6b2d8b 65%, #ff7a18);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 7s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Навигация
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(10, 5, 6, 0.78);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner {
  width: min(1140px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.logo { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 800; }
.logo-wide { flex: 0 0 auto; }
.logo-mark {
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(255, 122, 24, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-text { font-size: 32px; letter-spacing: -0.04em; }
.logo em, .footer-brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links, .cab-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cab-nav { flex: 1; }
.nav-links a, .cab-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover, .cab-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.cab-nav a.active {
  color: #fff;
  background: rgba(255, 122, 24, 0.22);
  border-color: rgba(255, 122, 24, 0.45);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 17px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:active { transform: translateY(1px) scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid #ffb454; outline-offset: 3px; }

/* Блик, пробегающий по кнопке при наведении */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  transition: left 0.55s ease, opacity 0.2s ease;
  pointer-events: none;
  z-index: -1;
}
.btn:hover::before { left: 130%; opacity: 1; }

.btn-gradient {
  background-image: linear-gradient(115deg, #ff7a18, #e25a12 28%, #8b3a1a 50%, #6b2d8b 72%, #ff7a18);
  background-size: 300% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px rgba(255, 122, 24, 0.35);
  animation: gradient-flow 6s ease-in-out infinite;
}
.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 122, 24, 0.5);
  color: #fff;
}

.hero-actions .btn-gradient { animation: gradient-flow 6s ease-in-out infinite, cta-glow 3.5s ease-in-out infinite; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--stroke-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--cyan); color: #fff; transform: translateY(-2px); }

.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  color: var(--text);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: translateY(-2px); }

.btn-danger { background: rgba(255, 93, 115, 0.16); border: 1px solid rgba(255, 93, 115, 0.45); color: #ffb9c4; }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Glass-карточки
   -------------------------------------------------------------------------- */

.glass {
  background: linear-gradient(160deg, rgba(255, 140, 50, 0.10), rgba(107, 45, 139, 0.08) 55%, rgba(0, 0, 0, 0.28));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card { padding: 26px; margin-top: 26px; }

.alert {
  background: rgba(255, 93, 115, 0.13);
  border: 1px solid rgba(255, 93, 115, 0.5);
  color: #ffd7dd;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
}
.alert.ok {
  background: rgba(46, 230, 166, 0.12);
  border-color: rgba(46, 230, 166, 0.5);
  color: #d5fff1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.pill-soft { color: var(--muted); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { text-align: center; padding: 84px 0 56px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  margin: 22px 0 18px;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 660px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 56px auto 0;
}
.hero-stats > div {
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}
.hero-stats b { display: block; font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Фичи и шаги
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 64px;
}
.feature { padding: 26px; }
.feature:hover { transform: translateY(-6px); border-color: rgba(255, 122, 24, 0.55); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(255, 122, 24, 0.35), rgba(107, 45, 139, 0.25));
  border: 1px solid var(--stroke);
}
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { text-align: center; margin-bottom: 72px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.step { padding: 26px; text-align: left; position: relative; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 800;
  background: var(--grad);
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(255, 122, 24, 0.4);
}
.step p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Тарифы (как на скрине: название + бейдж, описание, цена)
   -------------------------------------------------------------------------- */

.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }

.tariff-list { display: grid; gap: 16px; }

.tariff-card {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tariff-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 24, 0.5); }
.tariff-card.hot { border-color: rgba(255, 122, 24, 0.55); box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.35), 0 24px 50px rgba(0, 0, 0, 0.4); }
.tariff-card.selected { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(46, 230, 197, 0.5); }

.tariff-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tariff-top h3 { font-size: 22px; margin-bottom: 6px; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.16);
  border: 1px solid rgba(255, 122, 24, 0.4);
  color: #ffd7a8;
}
.badge-hot {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  background-image: linear-gradient(115deg, #ff7a18, #e25a12 30%, #6b2d8b 50%, #c43c14 70%, #ff7a18);
  background-size: 300% 100%;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.45);
  animation: gradient-flow 5s ease-in-out infinite;
}

.tariff-desc { color: var(--muted); margin: 4px 0; font-size: 15px; }
.tariff-price { font-size: 16px; margin: 6px 0 14px; color: var(--text); }
.tariff-price b { font-size: 19px; }

.tariffs-section { margin-bottom: 40px; }

.cta-banner {
  margin-top: 30px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background:
    linear-gradient(120deg, rgba(255, 122, 24, 0.25), rgba(107, 45, 139, 0.18) 55%, rgba(196, 60, 20, 0.16));
  border-color: rgba(255, 122, 24, 0.45);
}
.cta-banner h3 { font-size: 26px; margin-bottom: 6px; }
.cta-banner p { margin: 0; }

/* --------------------------------------------------------------------------
   Auth (вход / регистрация)
   -------------------------------------------------------------------------- */

.auth-wrap { display: flex; justify-content: center; padding: 46px 0; }

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  background:
    linear-gradient(160deg, rgba(255, 122, 24, 0.14), rgba(107, 45, 139, 0.10) 45%),
    rgba(18, 8, 10, 0.82);
  box-shadow: var(--shadow);
  animation: pop 0.4s ease both;
}
.auth-head { text-align: center; margin-bottom: 8px; }
.auth-head .logo-mark { width: 56px; height: 56px; border-radius: 17px; margin-bottom: 14px; }
.auth-head h1 { font-size: 27px; }
.auth-head p { margin: 0; }

.perks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 4px; }
.perks span {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 230, 197, 0.12);
  border: 1px solid rgba(46, 230, 197, 0.35);
  color: #a9f5e4;
}

.social { text-align: center; padding: 12px 0; }
.btn-telegram {
  background-image: linear-gradient(115deg, #2aabee, #229ed9 50%, #2aabee);
  background-size: 250% 100%;
  box-shadow: 0 10px 26px rgba(42, 171, 238, 0.35);
  animation: gradient-flow 5s ease-in-out infinite;
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(42, 171, 238, 0.5); color: #fff; }
.social .small { margin: 12px 0 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
}

.stack { display: flex; flex-direction: column; gap: 8px; }
.stack label { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.stack input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 13px 15px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.stack input::placeholder { color: #6d789a; }
.stack input:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.18);
}
.stack .btn { margin-top: 16px; }

.auth-switch { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: 14.5px; }

/* Подсказка под полем пароля */
.field-hint { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Согласие с документами под кнопкой */
.legal-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.legal-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-note a:hover { color: var(--cyan); }

/* Страница пополнения баланса */
.topup-box { text-align: center; padding: 8px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.topup-box label { font-size: 13px; font-weight: 700; color: var(--muted); text-align: left; }
.topup-box input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}
.topup-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.18); }
.topup-amount {
  display: block;
  font-size: 34px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

/* Дата в документах (/privacy, /terms) */
.doc-date { color: var(--muted); font-size: 14px; margin: -4px 0 18px; }
.page-body ul { margin: 0 0 16px; padding-left: 22px; }
.page-body li { margin-bottom: 6px; }

/* Сетка тарифов: 4 карточки */
.tariff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tariff-grid .tariff-card { margin: 0; }
@media (max-width: 1100px) { .tariff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tariff-grid { grid-template-columns: 1fr; } }

/* Выбор тарифа в таблице устройств */
.tariff-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke-strong);
  border-radius: 10px;
  color: var(--text);
  padding: 7px 10px;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
}
.tariff-select:focus { border-color: var(--blue); }
.tariff-select option { background: var(--panel-solid); color: var(--text); }

/* Отключённое устройство и статусы */
.row-suspended { opacity: 0.55; }
.tag-warn {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 180, 84, 0.15);
  border: 1px solid rgba(255, 180, 84, 0.4);
  color: var(--warn);
}
.dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(46, 230, 166, 0.6); }

/* Уведомление-предупреждение с ссылкой */
.alert a { color: var(--blue); text-decoration: underline; }

/* Кнопки-селекты и поля в модалке */
.stack select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.stack select option { background: var(--panel-solid); color: var(--text); }

/* --------------------------------------------------------------------------
   Кабинет
   -------------------------------------------------------------------------- */

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dash-head h1 { font-size: clamp(26px, 4vw, 38px); margin: 12px 0 6px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.stat:hover { border-color: rgba(255, 122, 24, 0.45); }
.stat-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.stat-value { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.stat-value small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat-note { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-note.ok { color: var(--ok); }
.stat-note.warn { color: var(--warn); }
.stat .btn { align-self: flex-start; }

.progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-btn);
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.7);
  transition: width 0.5s ease;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.card-head h2 { font-size: 22px; margin: 0; }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.18);
  border: 1px solid rgba(255, 122, 24, 0.4);
  color: #ffd7a8;
  vertical-align: middle;
}

.tariff-list.compact { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.table-wrap { overflow-x: auto; }
.devices { width: 100%; border-collapse: collapse; margin-top: 12px; min-width: 620px; }
.devices th, .devices td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--stroke); font-size: 14.5px; }
.devices th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.devices tbody tr { transition: background 0.15s; }
.devices tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  margin-right: 9px;
}
.link-cell { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-cell code { color: var(--muted); font-size: 13px; }
.empty { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Модалка
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
  animation: pop 0.2s ease both;
}
.modal-box {
  width: min(540px, 100%);
  position: relative;
  background: linear-gradient(160deg, #161d36, #0e1428);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
}
.modal-close:hover { color: #fff; border-color: var(--danger); }
.vless-link {
  display: block;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--radius-sm);
  padding: 13px;
  margin: 14px 0;
  font-size: 13px;
  color: #b9c6ea;
}
.qr {
  display: block;
  margin: 14px auto;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.tariff-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 18px;
}
.tariff-option {
  display: block;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.tariff-option:hover { transform: translateY(-2px); border-color: rgba(255, 122, 24, 0.5); }
.tariff-option input { display: none; }
.tariff-option.active, .tariff-option:has(input:checked) {
  border-color: rgba(255, 122, 24, 0.7);
  background: rgba(255, 122, 24, 0.16);
}
.tariff-option b { display: block; font-size: 16px; margin-bottom: 4px; }
.tariff-option span { color: var(--muted); font-size: 13px; }

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: linear-gradient(160deg, #171e38, #10162a);
  border: 1px solid var(--stroke-strong);
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  color: var(--text);
  animation: toast-in 0.28s ease both;
  overflow: hidden;
}
.toast.error { border-color: rgba(255, 93, 115, 0.55); }
.toast.ok { border-color: rgba(46, 230, 166, 0.5); }
.toast.hiding { animation: toast-out 0.35s ease forwards; }
.toast-title { font-weight: 800; margin-bottom: 4px; font-size: 14px; }
.toast-text { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.toast-bar {
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.toast-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-btn);
  animation: toast-count 5s linear forwards;
}
.toast.error .toast-bar i { background: linear-gradient(90deg, #ff5d73, #ffb454); }
.toast.ok .toast-bar i { background: linear-gradient(90deg, #ffb454, #ff7a18); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) translateX(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(12px) translateX(18px); }
}
@keyframes toast-count {
  from { width: 0%; }
  to { width: 100%; }
}

/* --------------------------------------------------------------------------
   Текстовые страницы
   -------------------------------------------------------------------------- */

.page-body { max-width: 820px; margin: 0 auto; }
.page-body h1 { font-size: clamp(26px, 4vw, 36px); }
.page-body h2 { margin-top: 26px; font-size: 21px; }
.page-body p { color: var(--muted); line-height: 1.75; }

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--stroke);
  background: rgba(7, 10, 20, 0.7);
  padding: 44px min(4vw, 40px) 26px;
  margin-top: 40px;
}
.footer-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer-brand { font-size: 19px; font-weight: 800; }
.footer-brand .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  vertical-align: -8px;
  margin-right: 9px;
}
.footer-brand p { font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 10px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text); opacity: 0.8; margin-bottom: 9px; font-size: 14.5px; }
.footer-col a:hover { opacity: 1; color: var(--cyan); }
.footer-copy { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 34px; }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links, .cab-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(10, 14, 28, 0.97);
    border-bottom: 1px solid var(--stroke);
    padding: 14px 6vw 20px;
  }
  .nav-links.open, .cab-nav.open { display: flex; }
  .nav-links a, .cab-nav a { padding: 10px 0; font-size: 16px; }
  .nav { position: sticky; }
  .nav-inner { position: relative; }
  .auth-card { padding: 26px 20px; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .card { padding: 20px; }
  .logo-text { font-size: 24px; }
  .logo-mark { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   Новый лендинг и кабинет
   -------------------------------------------------------------------------- */

.hero-new { padding: 72px 0 28px; }
.hero-title { font-size: clamp(36px, 6vw, 68px); margin-bottom: 14px; }

.perk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 12px 0 48px;
}
.perk-card {
  padding: 26px 22px;
  min-height: 180px;
  animation: pop 0.55s ease both;
}
.perk-card:nth-child(2) { animation-delay: 0.06s; }
.perk-card:nth-child(3) { animation-delay: 0.12s; }
.perk-card:nth-child(4) { animation-delay: 0.18s; }
.perk-card:hover { transform: translateY(-8px); border-color: rgba(255, 122, 24, 0.55); }
.perk-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(255, 122, 24, 0.4), rgba(107, 45, 139, 0.25));
  margin-bottom: 14px; font-weight: 800;
}
.perk-card h3 { font-size: 18px; margin-bottom: 6px; }
.perk-card p { margin: 0; color: var(--muted); }

.brand-strip { padding: 22px 26px; margin: 18px 0 40px; }
.brand-strip-logo { display: flex; align-items: center; gap: 14px; }
.brand-strip-logo p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.brand-strip-logo strong { font-size: 20px; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.home-tile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 26px; color: var(--text); min-height: 160px;
  text-decoration: none;
}
.home-tile:hover { transform: translateY(-6px); color: #fff; border-color: rgba(255, 122, 24, 0.5); }
.home-tile-cta {
  background:
    linear-gradient(140deg, rgba(255, 122, 24, 0.28), rgba(107, 45, 139, 0.16) 55%, rgba(196, 60, 20, 0.16));
}
.tile-label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tile-value { font-size: clamp(22px, 3vw, 34px); font-weight: 800; }
.tile-hint { color: var(--muted); font-size: 13.5px; }

.home-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}
.user-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; color: var(--text); text-decoration: none;
}
.user-chip:hover { color: #fff; }
.user-chip-name { font-weight: 800; font-size: 18px; }

.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.avatar-lg { width: 96px; height: 96px; }
.avatar-fallback {
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800;
}

.promo-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
}
.promo-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.promo-bar label { font-weight: 800; color: var(--muted); font-size: 13px; }
.promo-bar input, .stack input[type="file"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  font-family: inherit;
}

.subhead { margin: 22px 0 4px; font-size: 18px; }
.balance-grid, .profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.profile-grid { grid-template-columns: 0.8fr 1fr 1fr; }
.profile-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }

@media (max-width: 980px) {
  .perk-grid, .home-grid, .home-row, .balance-grid, .profile-grid { grid-template-columns: 1fr; }
  .promo-bar { grid-template-columns: 1fr; }
  .tariff-picker { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Хэллоуин: листья и тыквы
   -------------------------------------------------------------------------- */

.logo-text { font-family: "Cinzel", "Manrope", serif; text-shadow: 0 0 22px rgba(255, 122, 24, 0.35); }
.halloween-badge {
  display: inline-block;
  font-family: "Creepster", "Cinzel", cursive;
  letter-spacing: 0.08em;
  font-size: 22px;
  color: #ffb454;
  text-shadow: 0 0 18px rgba(255, 122, 24, 0.7);
  margin-bottom: 10px;
}

.leaves, .pumpkins {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.leaves i {
  position: absolute;
  top: -40px;
  width: 18px;
  height: 18px;
  background: #c24e14;
  border-radius: 0 70% 0 70%;
  opacity: 0.85;
  animation: leaf-fall 12s linear infinite;
  box-shadow: 0 0 8px rgba(255, 122, 24, 0.35);
}
.leaves i:nth-child(2n) { background: #8b3a1a; width: 14px; height: 14px; }
.leaves i:nth-child(3n) { background: #6b2d8b; width: 16px; height: 16px; }
.leaves i:nth-child(4n) { background: #d4781c; }
.leaves i:nth-child(1) { left: 6%; animation-duration: 11s; animation-delay: 0s; }
.leaves i:nth-child(2) { left: 14%; animation-duration: 14s; animation-delay: -2s; }
.leaves i:nth-child(3) { left: 22%; animation-duration: 10s; animation-delay: -4s; }
.leaves i:nth-child(4) { left: 31%; animation-duration: 13s; animation-delay: -1s; }
.leaves i:nth-child(5) { left: 40%; animation-duration: 16s; animation-delay: -6s; }
.leaves i:nth-child(6) { left: 49%; animation-duration: 12s; animation-delay: -3s; }
.leaves i:nth-child(7) { left: 58%; animation-duration: 15s; animation-delay: -7s; }
.leaves i:nth-child(8) { left: 67%; animation-duration: 11s; animation-delay: -5s; }
.leaves i:nth-child(9) { left: 75%; animation-duration: 17s; animation-delay: -8s; }
.leaves i:nth-child(10) { left: 83%; animation-duration: 13s; animation-delay: -2.5s; }
.leaves i:nth-child(11) { left: 90%; animation-duration: 14s; animation-delay: -9s; }
.leaves i:nth-child(12) { left: 96%; animation-duration: 12s; animation-delay: -4.5s; }

@keyframes leaf-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  8% { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.15; }
}

.pumpkin-img {
  position: absolute;
  bottom: 8px;
  display: block;
  height: auto;
  object-fit: contain;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 16px rgba(255, 122, 24, 0.4));
}
.p-big {
  left: 16px;
  width: 128px;
  animation: pumpkin-bob 3.4s ease-in-out infinite;
}
.p-small {
  left: 138px;
  width: 76px;
  bottom: 6px;
  animation: pumpkin-bob 3.4s ease-in-out infinite 0.85s;
}

@keyframes pumpkin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.footer { background: rgba(10, 5, 6, 0.78); }

@media (max-width: 640px) {
  .p-big { width: 88px; left: 8px; }
  .p-small { width: 54px; left: 92px; }
  .halloween-badge { font-size: 18px; }
}
