/* ============================================================================
   PrivatGate — Основная таблица стилей (пользовательские страницы)
   ============================================================================ */

:root {
  /* Цвета */
  --primary: #2a7de1;
  --primary-dark: #1e6bc7;
  --primary-light: #e8f1fd;
  --success: #27ae60;
  --success-light: #e8f8ee;
  --warning: #f59e0b;
  --warning-light: #fff8e1;
  --danger: #e74c3c;
  --danger-light: #fdeaea;
  --info: #0088cc;
  --info-light: #e7f3ff;

  /* Нейтральные */
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-dark: #1a1a2e;
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;

  /* Радиусы */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 50px;

  /* Тени */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.12);

  /* Размеры */
  --header-h: 56px;
  --max-w: 960px;
  --max-w-narrow: 520px;
  --max-w-wide: 1100px;

  /* Переходы */
  --transition: .15s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; }

/* ---- Header ---- */
.site-header {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header__logo:hover { text-decoration: none; }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header__nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: var(--transition);
}
.site-header__nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.site-header__nav a.active {
  color: var(--primary);
  font-weight: 600;
}
.site-header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.site-header__burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer a { color: var(--text-secondary); }
.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px;
}
.container--narrow { max-width: var(--max-w-narrow); }
.container--wide { max-width: var(--max-w-wide); }

/* ---- Flash messages ---- */
.flash {
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 16px;
  font-size: 15px;
}
.flash--success { background: var(--success-light); color: #155724; }
.flash--error   { background: var(--danger-light); color: #721c24; }
.flash--warning { background: var(--warning-light); color: #856404; }
.flash--info    { background: var(--info-light); color: #004085; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--success { background: var(--success); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--secondary { background: var(--border); color: var(--text); }
.btn--ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn--ghost:hover { background: var(--primary-light); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 16px 40px; font-size: 18px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.card--center { text-align: center; }
.card--highlight { border: 2px solid var(--primary); }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group .hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.form-actions .btn { flex: 1; }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}
.badge--active { background: var(--success-light); color: #155724; }
.badge--expired { background: var(--danger-light); color: #721c24; }
.badge--plan { background: var(--primary-light); color: var(--primary-dark); }

/* ============================================================================
   LANDING PAGE STYLES — Premium Dark 3D v2
   ============================================================================ */

/* ---- Full-width container ---- */
.container--fullwidth {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
/* Force full-width on landing page — override .container margin: 0 auto */
.body--landing > .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---- Dark body for landing pages ---- */
.body--landing {
  background: #0d1117;
}
.body--landing .site-header {
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.body--landing .site-header__logo { color: #fff; }
.body--landing .site-header__nav a { color: rgba(255,255,255,.6); }
.body--landing .site-header__nav a:hover {
  background: rgba(42,125,225,.15);
  color: #2a7de1;
}
.body--landing .site-header__nav a.active { color: #2a7de1; }
.body--landing .site-header__burger span { background: #fff; }

.body--landing .site-header__nav--open {
    background: rgba(13,17,23,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
  }

.body--landing .site-header__nav--open a {
    color: rgba(255,255,255,.7);
    border-bottom: 1px solid rgba(255,255,255,.04);
  }

.body--landing .site-header__nav--open a:hover {
    background: rgba(42,125,225,.15);
    color: #2a7de1;
  }
.body--landing .site-footer {
  background: #0d1117;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
}
.body--landing .site-footer a { color: rgba(255,255,255,.5); }
.body--landing .site-footer a:hover { color: #2a7de1; }
.body--landing .flash--success { background: rgba(39,174,96,.15); color: #2ecc71; }
.body--landing .flash--error { background: rgba(231,76,60,.15); color: #e74c3c; }
.body--landing .flash--warning { background: rgba(245,158,11,.15); color: #f59e0b; }
.body--landing .flash--info { background: rgba(42,125,225,.15); color: #2a7de1; }

/* ============================================================================
   OFFER PAGE — Dark 3D
   ============================================================================ */
.offer-dark {
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  padding: 60px 20px 80px;
  min-height: calc(100vh - 56px);
}
.offer-dark__inner {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 48px 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.offer-dark__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2a7de1, transparent);
}
.offer-dark h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.offer-dark__updated {
  font-size: 14px;
  color: rgba(255,255,255,.4);
  margin-bottom: 32px;
}
.offer-dark__toc {
  background: rgba(42,125,225,.08);
  border: 1px solid rgba(42,125,225,.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.offer-dark__toc h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2a7de1;
  margin-bottom: 12px;
}
.offer-dark__toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.offer-dark__toc li {
  counter-increment: toc;
  font-size: 14px;
}
.offer-dark__toc li::before {
  content: counter(toc) ". ";
  color: rgba(255,255,255,.3);
  font-weight: 600;
}
.offer-dark__toc a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.offer-dark__toc a:hover {
  color: #2a7de1;
  text-decoration: none;
}
.offer-dark section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.offer-dark section:last-of-type {
  border-bottom: none;
}
.offer-dark section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(42,125,225,.3);
  display: inline-block;
}
.offer-dark p {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin-bottom: 12px;
}
.offer-dark ul {
  margin: 0 0 12px 20px;
  padding: 0;
}
.offer-dark ul li {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin-bottom: 6px;
  list-style: none;
  padding-left: 20px;
  position: relative;
}
.offer-dark ul li::before {
  content: '▸';
  color: #2a7de1;
  position: absolute;
  left: 0;
}
.offer-dark dl {
  margin: 0 0 12px;
}
.offer-dark dt {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 12px;
  margin-bottom: 4px;
}
.offer-dark dd {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-left: 0;
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 2px solid rgba(42,125,225,.2);
}
.offer-dark a {
  color: #2a7de1;
  text-decoration: none;
  transition: color .2s;
}
.offer-dark a:hover {
  color: #5a9eff;
  text-decoration: underline;
}
.offer-dark__acceptance {
  background: rgba(42,125,225,.08);
  border: 1px solid rgba(42,125,225,.25);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 40px;
}
.offer-dark__acceptance p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================================
   AUTH PAGES — Dark 3D
   ============================================================================ */
.auth-dark {
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  padding: 60px 20px 80px;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-dark__card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 25px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.auth-dark__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2a7de1, transparent);
}
.auth-dark__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(135deg, #2a7de1, #1a5fa8);
  border-radius: 18px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(42,125,225,.35), inset 0 2px 0 rgba(255,255,255,.2);
}
.auth-dark h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}
.auth-dark__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.5;
}
.auth-dark__field {
  margin-bottom: 20px;
}
.auth-dark__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.auth-dark__field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  font-size: 15px;
  color: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.auth-dark__field input::placeholder {
  color: rgba(255,255,255,.3);
}
.auth-dark__field input:focus {
  outline: none;
  border-color: #2a7de1;
  background: rgba(42,125,225,.05);
  box-shadow: 0 0 0 3px rgba(42,125,225,.15);
}
.auth-dark__hint {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-dark__hint a {
  color: #2a7de1;
  text-decoration: none;
}
.auth-dark__hint a:hover {
  text-decoration: underline;
}
.auth-dark__footer {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-top: 28px;
  margin-bottom: 0;
}
.auth-dark__footer a {
  color: #2a7de1;
  font-weight: 600;
  text-decoration: none;
}
.auth-dark__footer a:hover {
  text-decoration: underline;
}
.auth-dark .btn--glow-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* ---- Auth responsive ---- */
@media (max-width: 700px) {
  .auth-dark { padding: 32px 12px 60px; }
  .auth-dark__card { padding: 32px 24px; border-radius: 16px; }
  .auth-dark h1 { font-size: 22px; }
  .auth-dark__icon { width: 60px; height: 60px; font-size: 28px; }
}
@media (max-width: 480px) {
  .auth-dark__card { padding: 28px 20px; }
  .auth-dark__field input { padding: 12px 14px; font-size: 14px; }
}
/* ---- SMS auth styles ---- */
.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.auth-tab {
  flex: 1;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab--active {
  background: rgba(42,125,225,.15);
  color: #2a7de1;
}
.auth-tab:hover:not(.auth-tab--active) {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
}
.auth-tab-content { display: none; }
.auth-tab-content--active { display: block; }

.sms-code-row {
  display: flex;
  gap: 10px;
}
.sms-code-row input {
  flex: 1;
}
.sms-send-btn {
  white-space: nowrap;
  padding: 14px 18px;
  font-size: 14px;
  flex-shrink: 0;
}
.sms-send-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.sms-timer {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
}
.auth-dark__optional {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  font-weight: 400;
}



/* ---- Offer responsive ---- */
@media (max-width: 700px) {
  .offer-dark { padding: 32px 12px 60px; }
  .offer-dark__inner { padding: 28px 20px; border-radius: 16px; }
  .offer-dark h1 { font-size: 24px; }
  .offer-dark section h2 { font-size: 18px; }
  .offer-dark__toc ol { grid-template-columns: 1fr; }
  .offer-dark p, .offer-dark ul li, .offer-dark dd { font-size: 14px; }
}


/* ---- Section heading ---- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
}
.section-head--dark h2 { color: #fff; }
.section-head--dark p { color: rgba(255,255,255,.55); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 35%, #0f3460 65%, #0d1117 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,125,225,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(39,174,96,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: 42px; font-weight: 800;
  margin-bottom: 16px; line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero__subtitle {
  font-size: 19px; color: rgba(255,255,255,.8);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.5;
}
.hero__actions {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.hero__hint {
  font-size: 14px; color: rgba(255,255,255,.55); margin: 0;
}

/* ---- Hero buttons ---- */
.btn--hero-primary {
  background: #fff; color: var(--primary);
  padding: 14px 36px; font-size: 16px; font-weight: 700;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn--hero-primary:hover {
  background: #f0f4ff; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25); text-decoration: none;
}
.btn--hero-secondary {
  background: transparent; color: #fff;
  padding: 14px 36px; font-size: 16px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: var(--r-md);
}
.btn--hero-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  text-decoration: none; transform: translateY(-1px);
}

/* ---- Glow buttons ---- */
.btn--glow-primary {
  background: linear-gradient(135deg, #2a7de1, #1e6bc7);
  color: #fff;
  padding: 16px 36px; font-size: 17px; font-weight: 700;
  border-radius: var(--r-md);
  box-shadow: 0 0 24px rgba(42,125,225,.5), 0 4px 16px rgba(0,0,0,.4);
  border: none;
}
.btn--glow-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(42,125,225,.7), 0 8px 24px rgba(0,0,0,.5);
  text-decoration: none;
}
.btn--glow-secondary {
  background: transparent; color: #fff;
  padding: 16px 36px; font-size: 17px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--r-md);
}
.btn--glow-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  text-decoration: none; transform: translateY(-2px);
}

/* ============================================================================
   FEATURES — Dark 3D two-column (DRAMATIC)
   ============================================================================ */
.features-dark {
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  padding: 80px 24px;
  position: relative;
}
.features-3d {
  max-width: 960px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.features-3d__col {
  display: flex; flex-direction: column; gap: 28px;
}

/* ---- 3D Card (dramatic) ---- */
.card-3d {
  position: relative;
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 1px solid rgba(42,125,225,.2);
  border-radius: 20px;
  padding: 36px 32px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease;
  box-shadow:
    0 10px 40px rgba(0,0,0,.5),
    0 2px 8px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.06);
}
/* Top accent bar */
.card-3d::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #2a7de1), transparent);
  opacity: .7;
}
.card-3d:hover {
  transform: perspective(1200px) rotateY(-3deg) translateY(-6px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0,0,0,.6),
    0 0 40px var(--card-glow, rgba(42,125,225,.2)),
    inset 0 1px 0 rgba(255,255,255,.1);
  border-color: var(--card-accent, rgba(42,125,225,.5));
}
.card-3d__glow {
  position: absolute;
  top: -40%; right: -20%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--card-glow, rgba(42,125,225,.12)) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity .35s ease;
}
.card-3d__icon {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  border-radius: 18px;
  margin-bottom: 22px;
  position: relative; z-index: 1;
}
.card-3d__icon--blue {
  background: linear-gradient(135deg, #2a7de1, #1a5fa8);
  box-shadow: 0 8px 24px rgba(42,125,225,.35), inset 0 2px 0 rgba(255,255,255,.2);
}
.card-3d__icon--cyan {
  background: linear-gradient(135deg, #00bcd4, #00838f);
  box-shadow: 0 8px 24px rgba(0,188,212,.35), inset 0 2px 0 rgba(255,255,255,.2);
}
.card-3d__icon--green {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  box-shadow: 0 8px 24px rgba(39,174,96,.35), inset 0 2px 0 rgba(255,255,255,.2);
}
.card-3d__icon--gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 24px rgba(245,158,11,.35), inset 0 2px 0 rgba(255,255,255,.2);
}
.card-3d__title {
  font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.card-3d__text {
  font-size: 15px; color: rgba(255,255,255,.6);
  line-height: 1.65; position: relative; z-index: 1;
}

/* Card color variants */
.card-3d[data-color="blue"] { --card-accent: #2a7de1; --card-glow: rgba(42,125,225,.15); }
.card-3d[data-color="cyan"] { --card-accent: #00bcd4; --card-glow: rgba(0,188,212,.15); }
.card-3d[data-color="green"] { --card-accent: #27ae60; --card-glow: rgba(39,174,96,.15); }
.card-3d[data-color="gold"] { --card-accent: #f59e0b; --card-glow: rgba(245,158,11,.15); }

/* ============================================================================
   PRICING — Premium 3D
   ============================================================================ */
.pricing-dark {
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  padding: 80px 24px;
  position: relative; overflow: hidden;
}
.pricing-dark::before {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(42,125,225,.12) 0%, transparent 65%);
  pointer-events: none;
}
.pricing-3d-wrap {
  max-width: 480px; margin: 0 auto;
  position: relative; z-index: 1;
}
.pricing-3d {
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 2px solid rgba(42,125,225,.35);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow:
    0 25px 70px rgba(0,0,0,.6),
    0 0 50px rgba(42,125,225,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.pricing-3d::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2a7de1, transparent);
}
.pricing-3d__badge {
  display: inline-block;
  background: linear-gradient(135deg, #2a7de1, #1e6bc7);
  color: #fff;
  padding: 8px 28px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(42,125,225,.4);
}
.pricing-3d__plan {
  font-size: 24px; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.pricing-3d__price {
  font-size: 60px; font-weight: 800;
  color: #fff; line-height: 1; margin-bottom: 4px;
}
.pricing-3d__unit {
  font-size: 22px; font-weight: 500;
  color: rgba(255,255,255,.5);
}
.pricing-3d__rate {
  color: rgba(255,255,255,.5);
  font-size: 15px; margin-bottom: 28px;
}
.pricing-3d__list {
  list-style: none; text-align: left;
  margin: 0 0 32px; padding: 0;
}
.pricing-3d__list li {
  padding: 14px 0;
  font-size: 16px;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
}
.pricing-3d__list li:last-child { border-bottom: none; }
.check-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: rgba(39,174,96,.2);
  color: #2ecc71;
  border-radius: 50%;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.pricing-3d__actions {
  display: flex; gap: 14px; flex-direction: column;
}

/* ============================================================================
   HOW IT WORKS — 3D steps
   ============================================================================ */
.how-dark {
  background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #16213e 100%);
  padding: 80px 24px;
}
.steps-3d {
  max-width: 1000px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-3d__line {
  position: absolute;
  top: 38px;
  left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(42,125,225,.1), rgba(42,125,225,.5), rgba(42,125,225,.1));
  z-index: 0;
}
.step-3d {
  text-align: center;
  position: relative; z-index: 1;
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 32px 20px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.step-3d:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 24px rgba(42,125,225,.12);
  border-color: rgba(42,125,225,.3);
}
.step-3d__num {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a7de1, #1e6bc7);
  color: #fff;
  font-size: 22px; font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(42,125,225,.35), 0 6px 16px rgba(0,0,0,.4);
}
.step-3d__title {
  font-size: 18px; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.step-3d__text {
  font-size: 14px; color: rgba(255,255,255,.55);
  line-height: 1.55;
}

/* ============================================================================
   CTA
   ============================================================================ */
.cta {
  background: linear-gradient(180deg, #16213e 0%, #0f3460 40%, #1a1a2e 100%);
  color: #fff; text-align: center;
  padding: 72px 20px;
  position: relative; overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(42,125,225,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta h2 {
  font-size: 32px; font-weight: 800;
  margin-bottom: 12px; position: relative;
}
.cta p {
  font-size: 18px; color: rgba(255,255,255,.8);
  margin-bottom: 20px; position: relative;
}
.cta__trust {
  display: flex; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px; position: relative;
}
.cta__trust span {
  font-size: 14px; color: rgba(255,255,255,.6);
  font-weight: 500;
}
.cta__actions {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; position: relative;
}


/* ============================================================================
   User Pages (Dashboard, Deposit, Config) — Dark Theme
   ============================================================================ */

/* ---- Dark body for user pages ---- */
.body--app {
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  min-height: 100vh;
}
.body--app .site-header {
  background: rgba(13, 17, 23, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.body--app .site-header__logo { color: #fff; }
.body--app .site-header__nav a { color: rgba(255,255,255,.6); }
.body--app .site-header__nav a:hover { background: rgba(42,125,225,.12); color: #2a7de1; }
.body--app .site-header__nav a.active { color: #2a7de1; }
.body--app .site-header__burger span { background: #fff; }
.body--app .site-header__nav--open {
  background: #1a2030; border: 1px solid rgba(255,255,255,.08);
}
.body--app .site-header__nav--open a { color: rgba(255,255,255,.7); }
.body--app .site-header__nav--open a:hover { background: rgba(42,125,225,.15); }
.body--app .site-footer {
  background: transparent; border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.4);
}
.body--app .site-footer a { color: rgba(255,255,255,.5); }
.body--app .site-footer a:hover { color: #2a7de1; }
.body--app .flash--success { background: rgba(39,174,96,.15); color: #2ecc71; }
.body--app .flash--error { background: rgba(231,76,60,.15); color: #e74c3c; }
.body--app .flash--warning { background: rgba(245,158,11,.15); color: #f59e0b; }
.body--app .flash--info { background: rgba(42,125,225,.15); color: #2a7de1; }

/* ---- Page title ---- */
.page-title {
  font-size: 28px; font-weight: 800; color: #fff;
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 15px; color: rgba(255,255,255,.5);
  margin-bottom: 28px;
}

/* ---- Dark card ---- */
.card-dark {
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.card-dark h2 {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.card-dark h3 {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.8);
  margin-bottom: 12px;
}

/* ---- Balance card ---- */
.balance-card {
  background: linear-gradient(135deg, #2a7de1, #1e6bc7);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(42,125,225,.3);
}
.balance-card__label { font-size: 14px; opacity: .8; color: #fff; }
.balance-card__amount { font-size: 40px; font-weight: 800; color: #fff; line-height: 1.1; }
.balance-card__meta { font-size: 13px; opacity: .8; color: #fff; margin-top: 6px; }
.balance-card .btn {
  background: #fff; color: #2a7de1; font-weight: 700;
  padding: 12px 28px; border-radius: 10px;
}
.balance-card .btn:hover { background: rgba(255,255,255,.92); }

/* ---- Subscription card ---- */
.sub-card {
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.sub-card:hover { border-color: rgba(42,125,225,.3); }
.sub-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.sub-plan { font-size: 16px; font-weight: 600; color: #fff; }
.sub-info { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.sub-actions { display: flex; gap: 8px; }
.btn-config {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(42,125,225,.15); color: #2a7de1;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.btn-config:hover { background: rgba(42,125,225,.25); text-decoration: none; }
.btn-buy {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn-buy:hover { opacity: .88; }

/* ---- Section title ---- */
.section-title {
  font-size: 18px; font-weight: 700; color: #fff;
  margin: 28px 0 16px;
}

/* ---- Telegram box ---- */
.tg-box {
  border-radius: 12px; padding: 16px 20px; margin-bottom: 20px;
  font-size: 14px;
}
.tg-box--linked {
  background: rgba(39,174,96,.12);
  border: 1px solid rgba(39,174,96,.25);
  color: #2ecc71;
}
.tg-box--unlinked {
  background: rgba(42,125,225,.08);
  border: 1px solid rgba(42,125,225,.2);
  color: rgba(255,255,255,.7);
}
.tg-box code {
  background: rgba(255,255,255,.1); padding: 2px 8px;
  border-radius: 4px; font-size: 13px; color: #2a7de1;
}

/* ---- Dashboard actions row (admin + bots) ---- */
.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dashboard-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}
.dashboard-actions__admin {
  background: rgba(42,125,225,.15);
  color: #2a7de1;
}
.dashboard-actions__admin:hover {
  background: rgba(42,125,225,.25);
}
.dashboard-actions__tg {
  background: #229ED9;
  color: #fff;
  border: 2px solid #229ED9;
}
.dashboard-actions__tg:hover {
  background: #1a8cc4;
  border-color: #1a8cc4;
  transform: translateY(-1px);
}
.dashboard-actions__max {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  border: 2px solid #FF6B35;
}
.dashboard-actions__max:hover {
  background: linear-gradient(135deg, #E55A2B, #E08310);
  border-color: #E55A2B;
  transform: translateY(-1px);
}

/* ---- Trial banner ---- */
.trial-banner {
  background: linear-gradient(145deg, rgba(39,174,96,.1), rgba(39,174,96,.03));
  border: 1px solid rgba(39,174,96,.2);
  border-radius: 12px; padding: 20px 24px; margin-bottom: 20px;
}
.trial-banner h3 { color: #2ecc71; font-size: 16px; margin-bottom: 8px; }
.trial-banner p { color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 12px; }
.trial-banner--used {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.trial-banner--used p { color: rgba(255,255,255,.4); }

/* ---- Form elements (dark) ---- */
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.7); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font-size: 15px; color: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.form-group input::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: #2a7de1;
  box-shadow: 0 0 0 3px rgba(42,125,225,.15);
}
.form-hint { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 6px; }

/* ---- Dark table ---- */
.table-dark {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.table-dark th {
  text-align: left; padding: 12px 16px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.5); font-weight: 500;
  white-space: nowrap;
}
.table-dark td {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
}
.table-dark tr:hover td { background: rgba(255,255,255,.03); }

/* ---- Config page ---- */
.config-section {
  background: linear-gradient(145deg, #1a2030, #0f1419);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 28px; margin-bottom: 20px;
}
.config-section h2 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.config-steps {
  padding-left: 0; list-style: none; counter-reset: step;
}
.config-steps li {
  counter-increment: step; padding: 12px 0 12px 48px;
  position: relative; color: rgba(255,255,255,.6); font-size: 14px;
  line-height: 1.6;
}
.config-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 10px;
  width: 28px; height: 28px;
  background: rgba(42,125,225,.15); color: #2a7de1;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.config-actions { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.config-note {
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.15);
  border-radius: 12px; padding: 20px 24px;
}
.config-note h3 { color: #f59e0b; font-size: 15px; margin-bottom: 12px; }
.config-note ul { padding-left: 0; list-style: none; }
.config-note li {
  color: rgba(255,255,255,.5); font-size: 14px;
  padding: 6px 0; padding-left: 20px; position: relative;
}
.config-note li::before {
  content: '•'; position: absolute; left: 0;
  color: #f59e0b;
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: rgba(255,255,255,.4); font-size: 15px;
}

/* ---- Expired section ---- */
.expired-section { margin-top: 24px; }
.expired-section summary {
  cursor: pointer; color: rgba(255,255,255,.4);
  font-size: 14px; padding: 12px 0;
}
.expired-section summary:hover { color: rgba(255,255,255,.6); }
.expired-list { margin-top: 12px; }

/* ---- Preset buttons ---- */
.preset-btn {
  padding: 10px 20px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.preset-btn:hover {
  background: rgba(42,125,225,.15);
  border-color: rgba(42,125,225,.3);
  color: #2a7de1;
}

/* ---- Info banner ---- */
.info-banner {
  background: rgba(42,125,225,.08);
  border: 1px solid rgba(42,125,225,.2);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 20px;
  color: rgba(255,255,255,.7); font-size: 14px;
}
.info-banner--success {
  background: rgba(39,174,96,.08);
  border-color: rgba(39,174,96,.2);
  color: rgba(46,204,113,.8);
}
.info-banner--warning {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.2);
  color: rgba(245,158,11,.8);
}

/* ---- Add device form ---- */
.add-device-form {
  border: 2px dashed rgba(42,125,225,.3);
  border-radius: 12px; padding: 24px; text-align: center;
  margin-bottom: 16px;
}
.add-device-form--disabled {
  border-color: rgba(255,255,255,.08);
}
.add-device-form p { color: rgba(255,255,255,.5); margin-bottom: 12px; }
.add-device-form input {
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; color: #fff;
  font-size: 14px; width: 260px; max-width: 100%;
}
.add-device-form input::placeholder { color: rgba(255,255,255,.3); }
.add-device-form input:focus {
  outline: none; border-color: #2a7de1;
}

/* ---- Nav admin link ---- */
.nav-admin-link {
  color: #2a7de1 !important;
  font-weight: 600;
}

/* ---- Responsive (user pages) ---- */
@media (max-width: 700px) {
  .page-title { font-size: 22px; }
  .balance-card { padding: 20px; }
  .dashboard-actions { flex-direction: column; align-items: stretch; }
  .dashboard-actions .btn { width: 100%; justify-content: center; }
  .balance-card__amount { font-size: 30px; }
}


/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 900px) {
  .features-3d { grid-template-columns: 1fr; }
  .steps-3d { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps-3d__line { display: none; }
}
@media (max-width: 700px) {
  .site-header__nav { display: none; }
  .site-header__burger { display: flex; }
  .site-header__nav--open {
    display: flex; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg-card); flex-direction: column;
    padding: 12px; box-shadow: var(--shadow-md); gap: 0;
  }
  .site-header__nav--open a {
    padding: 12px 16px; border-radius: var(--r-sm);
  }
  .buy-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 16px 48px; }
  .hero h1 { font-size: 30px; }
  .hero__subtitle { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions--messengers, .cta__actions--messengers { flex-direction: column; align-items: stretch; }
  .hero__actions--messengers .btn, .cta__actions--messengers .btn { width: 100%; }
  .features-dark { padding: 48px 16px; }
  .features-3d { grid-template-columns: 1fr; gap: 20px; }
  .features-3d__col { gap: 20px; }
  .card-3d { padding: 28px 24px; }
  .card-3d:hover { transform: translateY(-4px); }
  .pricing-dark { padding: 48px 16px; }
  .pricing-3d { padding: 32px 24px; }
  .pricing-3d__price { font-size: 48px; }
  .how-dark { padding: 48px 16px; }
  .steps-3d { grid-template-columns: 1fr; }
  .cta { padding: 48px 16px; }
  .cta h2 { font-size: 26px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { width: 100%; }
  .cta__trust { gap: 16px; }
  .section-head h2 { font-size: 24px; }
  .offer-content { margin: 20px 12px; padding: 24px; }
  .offer-content h1 { font-size: 20px; }
  .container { padding: 20px 16px; }
  .form-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero { padding: 44px 16px 36px; }
  .hero h1 { font-size: 26px; }
  .hero__badge { font-size: 13px; padding: 6px 16px; }
  .card { padding: 18px; }
  .auth-card { padding: 24px; margin: 20px 12px; }
  .card-3d { padding: 24px 20px; }
  .card-3d__icon { width: 60px; height: 60px; font-size: 28px; }
  .card-3d__title { font-size: 19px; }
  .pricing-3d { padding: 28px 20px; }
  .pricing-3d__price { font-size: 42px; }
}


/* === Floating messenger buttons === */
.float-btns-right {
  position: fixed;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btns-right { right: 24px; }

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  position: relative;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.float-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Bot button (left) - larger with pulse */
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(59, 139, 246, 0.4); }
  50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(59, 139, 246, 0); }
}

/* MAX button (right top) */
.float-btn--max {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
}

/* Telegram support button (right bottom) */
.float-btn--tg {
  background: #229ED9;
}

/* Tooltip on hover */
.float-btn::after {
  content: attr(title);
  position: absolute;
  right: 100%;
  margin-right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.float-btns-right .float-btn::after {
  left: 100%;
  margin-left: 12px;
  right: auto;
}
.float-btn:hover::after {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .float-btns-right { right: 12px; bottom: 12px; }
  .float-btn { width: 48px; height: 48px; }
    .float-btn::after { display: none; }
}


/* === Hero Telegram button === */
.btn--hero-telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  background: #229ED9;
  color: #fff;
  border: 2px solid #229ED9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn--hero-telegram:hover {
  background: #1a8cc4;
  border-color: #1a8cc4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3);
}

/* === Hero MAX button === */
.btn--hero-max {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  border: 2px solid #FF6B35;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn--hero-max:hover {
  background: linear-gradient(135deg, #E55A2B, #E08310);
  border-color: #E55A2B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* === Messenger button rows === */
.hero__actions--messengers,
.cta__actions--messengers {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 0;
}
.hero__actions--messengers .btn,
.cta__actions--messengers .btn {
  padding: 10px 22px;
  font-size: 14px;
}
