/* ============================================================
   Тёмно-фиолетовая кинематографичная тема + liquid glass.
   Всю палитру меняй здесь, в :root.
   ============================================================ */
:root {
  --bg:         #0a0610;   /* почти чёрный фиолетовый */
  --text:       #ffffff;
  --text-soft:  rgba(255, 255, 255, 0.9);
  --text-dim:   rgba(255, 255, 255, 0.62);
  --accent:     #a855f7;   /* основной фиолетовый акцент */
  --accent-2:   #7c3aed;
  --accent-3:   #c026d3;   /* магента для градиентов */
  --glow:       rgba(168, 85, 247, 0.45);
  --border:     rgba(255, 255, 255, 0.10);
  --danger:     #fb7185;
  --radius:     18px;
  --maxw:       1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Живой фиолетовый фон-туман */
body::before {
  content: '';
  position: fixed; inset: -20%;
  z-index: -2;
  background:
    radial-gradient(45% 40% at 18% 22%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(40% 40% at 82% 26%, rgba(192, 38, 211, 0.22), transparent 62%),
    radial-gradient(55% 55% at 50% 92%, rgba(124, 58, 237, 0.30), transparent 60%),
    var(--bg);
  animation: bgshift 22s ease-in-out infinite alternate;
}
/* Лёгкая виньетка сверху */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
@keyframes bgshift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -3%, 0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Шрифты-утилиты ---- */
.font-heading { font-family: 'Instrument Serif', serif; font-style: italic; }
.font-body { font-family: 'Barlow', sans-serif; }
h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -1px;
  word-spacing: 0.16em; /* иначе курсивный шрифт «съедает» пробелы (Моитикеты) */
  line-height: 0.95;
  margin: 0;
}
.dim { color: var(--text-dim); }

/* ============================================================
   LIQUID GLASS
   ============================================================ */
.liquid-glass, .liquid-glass-strong {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.liquid-glass-strong {
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.16);
}
/* Градиентная обводка через маску */
.liquid-glass::before, .liquid-glass-strong::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.5) 100%);
}

/* ============================================================
   ШАПКА / НАВИГАЦИЯ (плавающая glass-пилюля)
   ============================================================ */
/* absolute (не fixed): шапка прокручивается вместе со страницей и уходит вверх */
header.site {
  position: absolute; top: 18px; left: 0; right: 0; z-index: 50;
}
header.site .nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 26px; color: var(--text); letter-spacing: -1px;
  display: inline-flex; align-items: center; height: 48px; padding: 0 8px;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 8px;
}
.nav-links > a {
  color: var(--text-soft); font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.nav-links > a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px var(--glow);
}
.nav-links a.active:hover { color: #fff; filter: brightness(1.08); }
#nav-user { display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: 'Barlow', sans-serif;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: transform .06s ease, background .15s ease, box-shadow .2s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px var(--glow), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding: 70px 0; }
.section > h2 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 8px; }
.section .sub { color: var(--text-dim); margin: 0 0 30px; font-size: 16px; }
.section-label {
  color: var(--text-dim); font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 60px; position: relative;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 16px; border-radius: 999px;
  font-size: 13px; color: var(--text-soft); margin-bottom: 26px;
}
.badge-pill .tag {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 11px;
  padding: 3px 10px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(52px, 9vw, 96px);
  letter-spacing: -4px; line-height: 0.82;
  max-width: 14ch; margin: 0 auto;
}
.hero .lead {
  color: var(--text-soft); font-weight: 300; font-size: clamp(15px, 2vw, 18px);
  max-width: 60ch; margin: 22px auto 0; line-height: 1.45;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

.ip-box {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; margin-top: 26px;
  font-weight: 500; color: var(--text-soft);
}
.ip-box code { color: var(--accent); font-size: 16px; font-family: 'Barlow', monospace; }

/* Карточки статистики */
.stats { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.stat-card { width: 230px; padding: 22px; border-radius: 20px; text-align: left; }
.stat-card .num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 40px; letter-spacing: -1px; line-height: 1; margin: 14px 0 6px;
}
.stat-card .cap { color: var(--text-dim); font-size: 13px; }

/* Трест-бар с логотипами */
.trust { margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.trust-pill { padding: 10px 22px; border-radius: 999px; color: var(--text-dim); font-size: 13px; }
.logos { display: flex; gap: clamp(24px, 5vw, 60px); flex-wrap: wrap; justify-content: center; }
.logos span {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(22px, 3vw, 30px); color: rgba(255, 255, 255, 0.55); letter-spacing: -1px;
}

/* ============================================================
   КАРТОЧКИ (возможности сервера / товары)
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  border-radius: 22px; padding: 26px; display: flex; flex-direction: column;
}
.card .accent-bar {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  box-shadow: 0 0 24px currentColor; opacity: .9;
}
.card h3 { font-size: 30px; letter-spacing: -1px; margin-bottom: 6px; }
.card .price { font-family: 'Barlow'; font-size: 30px; font-weight: 600; font-style: normal; margin: 8px 0 2px; letter-spacing: 0; }
.card .price small { font-size: 14px; color: var(--text-dim); font-weight: 400; }
.card .sub { color: var(--text-dim); font-size: 14px; margin: 4px 0 0; }
.card .btn { margin-top: auto; }

/* ---- Возможности: скролл + раскрытие ---- */
.perk-scroll { max-height: 176px; overflow-y: auto; margin: 16px 0 20px; padding-right: 6px; }
.perk-scroll::-webkit-scrollbar { width: 8px; }
.perk-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 8px; }
.perk-scroll::-webkit-scrollbar-track { background: transparent; }
.perk-list, .perk-inherited { list-style: none; padding: 0; margin: 0; }
.perk-list li, .perk-inherited li {
  color: var(--text-soft); font-size: 14px; padding: 6px 0 6px 24px; position: relative;
}
.perk-list li::before, .perk-inherited li::before {
  content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 7px;
}
.perk-expand {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: transparent; border: 0; cursor: pointer; color: var(--text-soft);
  font-family: 'Barlow'; font-weight: 600; font-size: 14px; padding: 10px 0 6px;
}
.perk-expand .chev {
  display: inline-block; color: var(--accent); font-weight: 900; font-size: 16px;
  transform: rotate(90deg); transition: transform .2s ease;
}
.perk-expand[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.perk-inherited { margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--border); }
.perk-inherited[hidden] { display: none; }

/* ============================================================
   ФОРМЫ / ПАНЕЛИ АВТОРИЗАЦИИ
   ============================================================ */
.auth-wrap { max-width: 440px; margin: 130px auto 60px; }
.panel { border-radius: 24px; padding: 34px; }
.panel h1 { font-size: 40px; letter-spacing: -1.5px; margin-bottom: 6px; }
.panel .sub { color: var(--text-dim); margin: 0 0 22px; }
label { display: block; font-weight: 500; margin: 16px 0 7px; font-size: 13px; color: var(--text-soft); }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font-size: 15px; font-family: 'Barlow'; transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: rgba(255, 255, 255, 0.35); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.hint { color: var(--text-dim); font-size: 12px; margin-top: 6px; }
.form-foot { margin-top: 24px; }
.form-alt { text-align: center; margin-top: 18px; color: var(--text-dim); font-size: 14px; }

/* ---- Уведомления ---- */
.msg { padding: 12px 15px; border-radius: 12px; margin: 14px 0; font-weight: 500; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(251, 113, 133, 0.12); color: var(--danger); border: 1px solid rgba(251, 113, 133, 0.3); }
.msg.ok  { background: rgba(168, 85, 247, 0.14); color: var(--accent-2); border: 1px solid rgba(168, 85, 247, 0.35); }

/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ
   ============================================================ */
.kv { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-dim); }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.badge.ok { background: rgba(168, 85, 247, 0.18); color: var(--accent); }
.badge.no { background: rgba(251, 113, 133, 0.18); color: var(--danger); }
.code-box {
  font-family: 'Barlow'; font-size: 28px; font-weight: 700; letter-spacing: 6px; text-align: center;
  background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--accent); border-radius: 14px;
  padding: 18px; margin: 12px 0; color: var(--accent);
}
table.orders { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.orders th, table.orders td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.orders th { color: var(--text-dim); font-weight: 500; }

/* ============================================================
   ПАНЕЛЬ ПОКУПКИ (glass, фиолетовая)
   ============================================================ */
.modal-back {
  position: fixed; inset: 0; z-index: 100; padding: 20px;
  background: rgba(5, 2, 12, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
}
.modal-back.show { display: flex; }
.buy-panel { width: 100%; max-width: 900px; position: relative; border-radius: 26px; }
.buy-close {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  cursor: pointer; color: var(--text-dim); font-size: 26px; line-height: 1;
}
.buy-close:hover { color: #fff; }
.buy-grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.buy-left, .buy-right { padding: 30px; }
.buy-left { border-right: 1px solid var(--border); }
.buy-section-label { color: var(--accent); font-weight: 600; font-family: 'Barlow'; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; }
.buy-product { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 34px; letter-spacing: -1px; margin-bottom: 16px; }
.buy-right .perk-scroll { max-height: 230px; }
.buy-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.buy-price { font-size: 14px; color: var(--text-dim); }
.buy-price b { font-family: 'Instrument Serif', serif; font-style: italic; color: #fff; font-size: 30px; margin-left: 8px; letter-spacing: -1px; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  border-radius: 999px; padding: 13px 26px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 0 26px var(--glow), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.btn-accent:hover { color: #fff; filter: brightness(1.08); }
.buy-note { color: var(--text-dim); font-size: 13px; margin-top: 12px; }
.buy-legal { color: rgba(255, 255, 255, 0.42); font-size: 11px; line-height: 1.45; margin-top: 14px; }
.buy-legal a { color: rgba(255, 255, 255, 0.62); text-decoration: underline; }
.buy-legal a:hover { color: #fff; }
.buy-promo { display: flex; gap: 8px; margin-top: 16px; }
.buy-promo input { flex: 1; }
.promo-note { font-size: 13px; margin-top: 6px; min-height: 16px; }
.promo-note.ok { color: var(--accent); }
.promo-note.err { color: var(--danger); }
.buy-price s { color: var(--text-dim); font-size: 16px; margin-right: 8px; -webkit-text-fill-color: initial; }
.buy-nick-line { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.buy-nick-line b { color: #fff; font-size: 18px; display: block; margin-top: 4px; }

/* ============================================================
   ФУТЕР
   ============================================================ */
footer.site { border-top: 1px solid var(--border); color: var(--text-dim); padding: 28px 0; margin-top: 60px; text-align: center; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; text-align: left; line-height: 1.5; }
.footer-inner > span:first-child { max-width: 70ch; }
.footer-legal { color: var(--text-dim); }

/* ============================================================
   АНИМАЦИИ (blur/fade)
   ============================================================ */
[data-anim], [data-reveal] {
  opacity: 0; filter: blur(10px); transform: translateY(22px);
  transition: opacity .8s ease, filter .8s ease, transform .8s ease;
}
[data-anim].in, [data-reveal].in { opacity: 1; filter: blur(0); transform: none; }

.bt-word {
  display: inline-block;
  opacity: 0; filter: blur(10px); transform: translateY(50px);
  transition: opacity .7s ease, filter .7s ease, transform .7s ease;
}
.blurtext.in .bt-word { opacity: 1; filter: blur(0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-anim], [data-reveal], .bt-word { opacity: 1; filter: none; transform: none; transition: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 760px) {
  .nav-links > a:not(.active) { display: none; }
  .nav-links #nav-user { display: inline-flex; }
  .buy-grid { grid-template-columns: 1fr; }
  .buy-left { border-right: 0; border-bottom: 1px solid var(--border); }
  .hero h1 { letter-spacing: -2px; }
}

/* ============================================================
   ДОРАБОТКИ
   ============================================================ */

/* Бренд — чуть жирнее (утолщаем штрихи) */
.brand { -webkit-text-stroke: 0.5px currentColor; }

/* Кнопки в блоке пользователя (Вход / Регистрация / Кабинет / Выйти) */
#nav-user .nav-btn {
  color: var(--text-soft); font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; background: transparent; border: 0;
  cursor: pointer; font-family: 'Barlow', sans-serif; transition: background .15s ease, color .15s ease;
}
#nav-user .nav-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
#nav-user .nav-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 0 20px var(--glow);
}
#nav-user .nav-btn.ghost { color: var(--text-dim); }
#nav-user .nav-btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
#nav-user .nav-cta {
  color: #fff; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  cursor: pointer; font-family: 'Barlow', sans-serif; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px var(--glow), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: filter .15s ease;
}
#nav-user .nav-cta:hover { color: #fff; filter: brightness(1.08); }

/* IP: копирование по клику */
.ip-box[data-copy-ip] { cursor: pointer; }
.ip-box .copy-fb {
  font-size: 12px; color: var(--text-dim); background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.ip-box.copied .copy-fb { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Раскрытие «Всё из ...»: SVG-шеврон + плавная анимация высоты */
.perk-scroll { overflow-x: hidden; }
.perk-expand svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); transition: transform .25s ease; }
.perk-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.perk-expand span { text-align: left; }
.perk-inherited {
  max-height: 0; overflow: hidden; opacity: 0; margin-top: 0;
  transition: max-height .32s ease, opacity .28s ease, margin-top .32s ease;
}
.perk-inherited.open { max-height: 600px; opacity: 1; margin-top: 8px; }

/* Модалки: плавное открытие */
.modal-back {
  display: flex; visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-back.show { visibility: visible; opacity: 1; pointer-events: auto; }
.buy-panel, .support-panel {
  transform: translateY(24px) scale(0.98); opacity: 0;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.modal-back.show .buy-panel, .modal-back.show .support-panel { transform: none; opacity: 1; }

/* Появление сообщений */
.msg.show { animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Тряска сообщения об ошибке (перебивает msgIn, т.к. объявлена ниже) */
.msg.shake { animation: shake .4s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

/* Галочка согласия при регистрации */
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 4px; font-size: 13px; line-height: 1.45; color: var(--text-dim); cursor: pointer; }
.consent-row input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--accent-2); cursor: pointer; }
.consent-row a { color: var(--accent-2); text-decoration: underline; }

/* Кнопка «Оформляем…» */
.btn.loading { opacity: .8; pointer-events: none; }

/* Заблокированный ник */
input:disabled { opacity: .55; cursor: not-allowed; }
.warn { color: #fbbf24; font-size: 13px; margin: 8px 0 0; }

/* ---- Кнопка и модалка поддержки ---- */
.support-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; cursor: pointer; border: 0;
  color: #fff; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px var(--glow), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform .1s ease, filter .15s ease;
}
.support-fab:hover { filter: brightness(1.08); }
.support-fab:active { transform: translateY(1px); }
.support-panel { width: 100%; max-width: 470px; border-radius: 22px; padding: 30px; position: relative; }
.support-panel h3 { font-size: 30px; margin-bottom: 4px; }
.support-panel .sub { color: var(--text-dim); margin: 0 0 18px; font-size: 14px; }
.support-panel textarea {
  width: 100%; min-height: 120px; resize: vertical; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 15px;
}
.support-panel textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }

@media (max-width: 760px) {
  .support-fab { right: 16px; bottom: 16px; padding: 11px 15px; }
}

/* Модалка подтверждения (выход и т.п.) */
.confirm-panel { width: 100%; max-width: 380px; border-radius: 20px; padding: 28px; text-align: center; }
.confirm-panel h3 { font-size: 26px; margin-bottom: 8px; }
.confirm-panel p { color: var(--text-dim); margin: 0 0 22px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }
.howto { text-align: left; margin: 10px 0 22px; padding-left: 22px; color: var(--text-soft); }
.howto li { padding: 6px 0; }
.howto code { color: var(--accent); font-weight: 600; }
.rules-content { white-space: pre-wrap; color: var(--text-dim); line-height: 1.65; font-size: 15px; }
.modal-back .confirm-panel { transform: translateY(24px) scale(0.98); opacity: 0; transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.modal-back.show .confirm-panel { transform: none; opacity: 1; }

/* Бейдж уведомлений на «Кабинет» */
.nav-badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px;
  margin-left: 6px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
}

/* Баннер «на обращения ответили» в кабинете */
.notif-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  margin-bottom: 20px; color: var(--text-soft);
  background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.4);
}
.notif-banner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: 0 0 auto; }
.notif-banner a { font-weight: 600; }

/* Выбор способа поддержки */
.support-options { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.support-options .btn { text-decoration: none; }

/* ---- Страница поддержки ---- */
.support-page { margin-top: 100px; margin-bottom: 40px; }
.sup-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.sup-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
  cursor: pointer; border: 0; background: rgba(255, 255, 255, 0.04); color: var(--text-dim);
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px;
}
.sup-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 0 20px var(--glow); }
.sup-tab .cnt { background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.sup-panel { border-radius: 22px; overflow: hidden; }
.sup-body { display: grid; grid-template-columns: 320px 1fr; min-height: 520px; }
.sup-sidebar { border-right: 1px solid var(--border); padding: 22px; }
.sup-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sup-sidebar-head h3 { font-size: 24px; }
.sup-add {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 20px;
  box-shadow: 0 0 16px var(--glow);
}
.sup-list { display: flex; flex-direction: column; gap: 8px; }
.sup-empty-list { color: var(--text-dim); font-size: 14px; }
.sup-ticket { text-align: left; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; }
.sup-ticket:hover { background: rgba(255, 255, 255, 0.06); }
.sup-ticket.active { border-color: var(--accent); }
.sup-ticket .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sup-ticket .subj { font-weight: 600; color: #fff; }
.sup-ticket .date { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.sup-ticket .meta { display: flex; justify-content: space-between; margin-top: 10px; align-items: center; }
.sup-ticket .tid { color: var(--text-dim); font-size: 12px; }
.status-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-badge.answered { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.status-badge.open { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }
.sup-detail { padding: 30px; }
.sup-empty { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-dim); padding: 40px; }
.sup-empty .icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 18px; }
.sup-empty h3 { font-size: 28px; color: #fff; margin-bottom: 8px; }
.sup-empty p { max-width: 380px; margin: 0 0 22px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; padding-right: 4px; margin-bottom: 16px; }
.chat .msg-bubble { max-width: 82%; margin-bottom: 0; }
.chat .msg-bubble.support { align-self: flex-end; }
.chat .msg-bubble.you { align-self: flex-start; }
.msg-bubble { border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.msg-bubble.you { background: rgba(255, 255, 255, 0.05); }
.msg-bubble.support { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3); }
.msg-bubble .who { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.faq-wrap { padding: 30px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; color: #fff; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px; padding: 16px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-a { color: var(--text-dim); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a.open { max-height: 220px; padding-bottom: 16px; }
select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); font-family: 'Barlow', sans-serif; font-size: 15px; }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }

@media (max-width: 760px) {
  .sup-body { grid-template-columns: 1fr; }
  .sup-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .sup-empty { min-height: 300px; }
}

/* Тёмный фон выпадающего списка (иначе белый текст на белом) */
select option { background-color: #17102a; color: #fff; }

/* Показ пароля (глаз) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-eye {
  position: absolute; right: 8px; top: 0; height: 100%;
  display: flex; align-items: center; background: transparent; border: 0; cursor: pointer;
  color: var(--text-dim); font-size: 17px; padding: 0 8px;
}
.pw-eye:hover { color: #fff; }
.pw-eye svg { width: 19px; height: 19px; display: block; }

/* ---- Админ-панель ---- */
.admin-page { margin-top: 100px; margin-bottom: 40px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { color: var(--text-dim); font-weight: 500; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover td { background: rgba(255, 255, 255, 0.04); }
.admin-table tr.order-marked td { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.admin-table tr.order-marked:hover td { background: rgba(52, 211, 153, 0.24); }
.tag-role { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag-role.super { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.tag-role.blocked { background: rgba(251, 113, 133, 0.18); color: var(--danger); }
.perm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.perm-row input { width: auto; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.btn-danger { background: rgba(251, 113, 133, 0.15); color: var(--danger); border: 1px solid rgba(251, 113, 133, 0.35); }
.btn-danger:hover { background: rgba(251, 113, 133, 0.28); color: #fff; }
.admin-detail textarea {
  width: 100%; min-height: 110px; resize: vertical; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 15px;
}
.admin-detail textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
