/* убрать браузерную обводку фокуса и подсветку тапа */
*:focus { outline: none; }
*:focus-visible { outline: none; }
* { -webkit-tap-highlight-color: transparent; }
/* hidden всегда побеждает display из классов (btn, bn-item и т.п.) */
[hidden] { display: none !important; }
/* ============================================================
   Haseroz — sales landing
   Accent: #FF96C8 (дефолтный цвет ClickGUI клиента)
   ============================================================ */

:root {
  --bg: #08080d;
  --bg-alt: #0d0d15;
  --panel: #12121b;
  --panel-2: #181824;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 150, 200, 0.35);
  --text: #e9e9f2;
  --muted: #9a9ab3;
  --accent: #ff96c8;
  --accent-dim: rgba(255, 150, 200, 0.12);
  --accent-glow: rgba(255, 150, 200, 0.35);
  --violet: #8b7bff;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { background: var(--panel-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 6px; font-size: 0.92em; }

::selection { background: var(--accent); color: #1a0a12; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff7fb0);
  color: #16060e;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-accent:hover { box-shadow: 0 6px 34px var(--accent-glow); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover { background: var(--accent-dim); border-color: var(--accent); }

.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand img { width: 30px; height: 38px; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover { color: var(--text); background: var(--panel); }

.nav-cta { padding: 9px 20px; }
.nav-auth { padding: 9px 20px; margin-right: 10px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 20px 60px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 340px at 18% 12%, rgba(255, 150, 200, 0.14), transparent 65%),
    radial-gradient(600px 340px at 82% 20%, rgba(139, 123, 255, 0.13), transparent 65%),
    radial-gradient(900px 500px at 50% 110%, rgba(255, 150, 200, 0.07), transparent 60%);
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.hero-logo {
  width: 96px;
  height: 122px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 8px 30px rgba(255, 150, 200, 0.35));
}

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 65%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-tag { margin-top: 14px; color: var(--muted); font-size: 17px; font-weight: 600; }

.hero-sub { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: 16.5px; }

.hero-sub b { color: var(--text); }

.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.hero-badges span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 7px 15px;
  border-radius: 999px;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 20px;
  gap: 14px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
}

.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.2; }

.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 84px 20px; max-width: 1140px; margin: 0 auto; }

.section-alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-alt > * { max-width: 1140px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 44px; }

.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: 0.01em; }

.section-sub { margin-top: 12px; color: var(--muted); max-width: 620px; margin-inline: auto; }

/* ---------- Feature cards ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 40px rgba(255, 150, 200, 0.08);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.card p { font-size: 14.5px; color: var(--muted); }

.card p b { color: var(--text); }

/* ---------- Module tabs & chips ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tab span { font-size: 12px; opacity: 0.75; }

.tab:hover { color: var(--text); border-color: var(--border-strong); }

.tab.is-active {
  color: #16060e;
  background: linear-gradient(135deg, var(--accent), #ff7fb0);
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.tab.is-active span { opacity: 0.75; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
}

.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  animation: chip-in 0.25s ease both;
}

.chip:hover { color: var(--accent); border-color: var(--border-strong); background: var(--accent-dim); }

@keyframes chip-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.chips-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.plan-featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 150, 200, 0.07), var(--panel) 45%);
  box-shadow: 0 16px 50px rgba(255, 150, 200, 0.12);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #ff7fb0);
  color: #16060e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.plan h3 { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.plan-price { font-size: 44px; font-weight: 900; margin: 12px 0 2px; }

.plan-price span { font-size: 22px; font-weight: 700; color: var(--accent); }

.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.plan-list { list-style: none; margin-bottom: 24px; flex: 1; }

.plan-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14.5px;
  color: var(--text);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
}

.plan-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  width: 5px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.step-num {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 19px;
  font-weight: 800;
}

.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }

.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Install ---------- */

.install-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.install-steps {
  list-style: none;
  counter-reset: inst;
  display: grid;
  gap: 12px;
}

.install-steps li {
  position: relative;
  counter-increment: inst;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 58px;
  font-size: 15px;
}

.install-steps li::before {
  content: counter(inst);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.install-cta { text-align: center; }

.install-cta p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px 28px;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 0.06em; font-size: 17px; }

.footer-brand img { width: 24px; height: 31px; object-fit: contain; }

.footer-links { display: flex; gap: 16px; margin-left: auto; }

.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.15s ease; }

.footer-links a:hover { color: var(--accent); }

.footer-contacts { display: flex; gap: 10px; }

.footer-contacts a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-contacts a:hover { border-color: var(--border-strong); color: var(--accent); }

.footer-note {
  max-width: 1140px;
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Modal ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }

.modal[hidden] { display: none; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in 0.2s ease both; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 150, 200, 0.08);
  animation: pop-in 0.25s ease both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-close:hover { color: var(--text); background: var(--panel-2); }

.modal-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; padding-right: 30px; }

.modal-card h3 span { color: var(--accent); }

.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.modal-sub b { color: var(--text); }

.modal-actions { display: grid; gap: 10px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }

.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.94) translateY(8px); } }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 13, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    gap: 2px;
    margin: 0;
  }
  .nav-links.is-open a { padding: 12px 14px; font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .install-wrap { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==== Нижняя панель навигации ==== */
body { padding-bottom: 84px; }

.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: rgba(18, 18, 27, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
  z-index: 200;
  white-space: nowrap;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}

.bn-item svg { width: 20px; height: 20px; }
.bn-item:hover { color: var(--text); background: var(--panel-2); }
.bn-item.is-active { color: var(--accent); background: var(--accent-dim); }
.bn-admin.is-active { color: var(--violet); background: rgba(139, 123, 255, 0.14); }

@media (max-width: 640px) {
  .bn-item { padding: 6px 10px; font-size: 10px; }
}

/* ==== Кабинет: профиль и подписка ==== */
.cabinet { max-width: 560px; margin: 0 auto; padding: 40px 20px 90px; }
.cab-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.cab-card h1 { margin: 0 0 8px; font-size: 26px; }
.cab-card h3 { margin: 0 0 12px; font-size: 16px; }
.profile { display: flex; gap: 16px; align-items: center; }
.profile img {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  object-fit: cover;
}
.profile h2 { margin: 0; font-size: 20px; }
.profile p { margin: 2px 0 0; color: var(--muted); font-size: 14px; word-break: break-all; }
.profile .btn { margin-left: auto; }

.sub-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
}
.sub-status.on { color: #5ee08a; background: rgba(94, 224, 138, 0.1); border: 1px solid rgba(94, 224, 138, 0.3); }
.sub-status.off { color: #ff7a7a; background: rgba(255, 122, 122, 0.08); border: 1px solid rgba(255, 122, 122, 0.25); }
.sub-bar {
  height: 8px; border-radius: 999px;
  background: var(--panel-2); overflow: hidden; margin: 14px 0 6px;
}
.sub-bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
}
.sub-hint { color: var(--muted); font-size: 13px; }

.balance-box {
  display: flex; align-items: baseline; gap: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.balance-box b { font-size: 28px; color: var(--accent); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row input[type="number"] {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 16px;
  width: 140px;
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.msg { margin-top: 14px; font-size: 14px; color: var(--accent); min-height: 18px; }
.msg.err { color: #ff7a7a; }
.sep { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.google-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #1f1f1f; font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 22px; text-decoration: none; font-size: 15px;
}
.google-btn:hover { opacity: 0.92; }

/* ==== Админка ==== */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 20px 90px; }
.admin-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-card {
  flex: 1; min-width: 150px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
.stat-card b { display: block; font-size: 24px; color: var(--accent); margin-top: 4px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.admin-table tr:hover td { background: var(--bg-alt); }
.admin-table .u-avatar { width: 30px; height: 30px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-danger { background: rgba(255, 122, 122, 0.12); border: 1px solid rgba(255, 122, 122, 0.3); color: #ff7a7a; }
.btn-danger:hover { background: rgba(255, 122, 122, 0.2); }
.log-line { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.log-line .t { color: var(--muted); font-size: 12px; margin-right: 10px; }
.log-line .act { color: var(--accent); font-weight: 600; margin-right: 10px; }

/* ==== Тосты (плашки снизу) ==== */
.toast-wrap {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  background: rgba(24, 24, 36, 0.97);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
}

.toast.err { border-color: rgba(255, 122, 122, 0.45); color: #ffb3b3; }
.toast.ok { border-color: rgba(94, 224, 138, 0.45); color: #a5e8bc; }

.toast .t-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  flex: none;
}
.toast .t-close:hover { opacity: 1; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== Новости ==== */
.news-wrap { max-width: 860px; margin: 0 auto; padding: 30px 20px 10px; }
.news-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.news-head h2 { margin: 0; font-size: 28px; }
.news-head span { color: var(--muted); font-size: 13px; }
.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: border-color .2s ease;
}
.news-card:hover { border-color: var(--border-strong); }
.news-date { color: var(--muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.news-card h3 { margin: 6px 0 8px; font-size: 18px; }
.news-card p { margin: 0; color: var(--text); opacity: .85; line-height: 1.6; font-size: 15px; white-space: pre-line; }
.news-empty { text-align: center; color: var(--muted); padding: 44px 0; font-size: 15px; }

/* ==== Профиль: баланс в углу ==== */
.profile-card { position: relative; }
.bal-chip {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}
.bal-chip small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.avatar-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  flex: none;
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--panel);
  display: block;
}

/* ==== Админка: улучшения ==== */
.adm-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.adm-section-title h3 { margin: 0; font-size: 17px; }
.adm-section-title .cnt {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 10px;
  color: var(--muted);
}
.news-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.news-form input,
.news-form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.news-form input:focus,
.news-form textarea:focus { outline: none; border-color: var(--accent); }
.adm-news-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.adm-news-item b { display: block; font-size: 14px; }
.adm-news-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.adm-news-item .t { color: var(--muted); font-size: 12px; flex: none; }
.adm-news-item .btn-xs { flex: none; }

/* ==== Панель подписки (подменю софта) ==== */
.soft-panel { position: relative; }
.soft-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.soft-logo { width: 44px; height: 56px; flex: none; }
.soft-head h3 { margin: 0; font-size: 18px; }
.soft-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.soft-status { margin-left: auto; }
.soft-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.soft-meta-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.soft-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}
.soft-meta-item b { font-size: 15px; }
.soft-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
  margin-bottom: 4px;
}
.soft-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
}
.soft-left { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.soft-actions { display: flex; flex-direction: column; gap: 8px; }
.soft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.soft-row .lbl { flex: 1; min-width: 0; }
.soft-row .lbl b { display: block; font-size: 14px; }
.soft-row .lbl span { color: var(--muted); font-size: 12px; }
.beta-badge {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 999px;
  padding: 3px 9px;
  flex: none;
}

/* ==== Меню способов оплаты ==== */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px 12px;
  cursor: pointer;
  color: var(--text);
  position: relative;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.pay-method:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pay-method svg { width: 28px; height: 28px; color: var(--muted); }
.pay-method .pm-name { font-weight: 700; font-size: 13px; }
.pay-method .pm-desc { color: var(--muted); font-size: 11px; text-align: center; }
.pay-method.is-active { border-color: var(--accent); background: var(--accent-dim); }
.pay-method.is-active svg { color: var(--accent); }
.pay-method.is-active::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.pay-method .beta-badge { position: absolute; top: 6px; right: 6px; }

/* ==== Кнопки входа (провайдеры) ==== */
.auth-providers { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.auth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-alt);
  font-family: inherit;
  transition: transform .15s ease, border-color .15s ease;
  position: relative;
}
.auth-btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.auth-btn svg { width: 22px; height: 22px; flex: none; }
.auth-btn.is-off { opacity: .45; filter: grayscale(1); cursor: default; }
.auth-btn.is-off:hover { transform: none; border-color: var(--border); }
.auth-btn .soon {
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 999px;
  padding: 2px 8px;
}
.auth-btn .tg-widget-slot { display: contents; }

/* ==== Выпадающее меню входа ==== */
.auth-dd { position: relative; display: inline-block; }
.auth-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  background: rgba(18, 18, 27, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}
.auth-dd-item:hover { background: var(--panel-2); }
.auth-dd-item svg { width: 18px; height: 18px; flex: none; }
.auth-dd-item small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.auth-dd-item.is-off { opacity: .45; filter: grayscale(1); }
.auth-dd-item.is-off:hover { background: none; }

/* ==== Telegram: свой вид кнопки, виджет невидимым слоем ==== */
.auth-tg { position: relative; overflow: hidden; }
.tg-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
/* скрываем фильтром, а не opacity: виджет проверяет CSS opacity (<0.1 = «невидим»)
   и не активирует кнопку; filter на попадание кликов не влияет */
.tg-overlay iframe {
  transform: scale(1.8);
  filter: opacity(0.02);
}

/* ==== Бейджи ролей ==== */
.role-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
.role-member { color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); }
.role-admin { color: var(--violet); background: rgba(139, 123, 255, 0.12); border: 1px solid rgba(139, 123, 255, 0.35); }
.role-owner { color: #ffd166; background: rgba(255, 209, 102, 0.1); border: 1px solid rgba(255, 209, 102, 0.35); }
