:root {
  --bg-deep: #060a12;
  --bg: #0b1220;
  --card: rgba(22, 32, 52, 0.72);
  --card-solid: #162034;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --success: #22c55e;
  --success-soft: #86efac;
  --warn: #f59e0b;
  --border: rgba(148, 163, 184, 0.18);
  --glass-blur: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: #93c5fd; text-decoration: none; }

/* Full-page atmospheric background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 90% 70% at 95% 15%, rgba(34, 197, 94, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(99, 102, 241, 0.12), transparent 55%),
    linear-gradient(165deg, #0d1528 0%, #060a12 45%, #080e18 100%);
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 20%, transparent 75%);
}

.page-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.page-bg__glow--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 15%;
  background: rgba(59, 130, 246, 0.35);
}

.page-bg__glow--2 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  right: 5%;
  background: rgba(34, 197, 94, 0.2);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  position: relative;
  z-index: 1;
}

.page-landing .wrap {
  padding-top: 8px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

nav a {
  margin-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

nav a:hover { color: var(--text); }

.lp-header .btn-nav {
  margin-left: 12px;
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 999px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 0.875rem; }

.split-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

h1, h2, h3 { margin-top: 0; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.error { color: #f87171; margin-bottom: 12px; }
.success { color: var(--success); }

form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

input, select, button, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.6);
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button, .btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  padding: 11px 20px;
  border-radius: 10px;
  width: auto;
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  text-decoration: none;
  color: #fff;
}

button.secondary, .btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

button.secondary:hover, .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: none;
}

button.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3); }
button.small { padding: 6px 12px; font-size: 0.85rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

.status { padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: var(--warn); }
.status-paid { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.status-issued { background: rgba(34, 197, 94, 0.2); color: var(--success-soft); }
.status-sent { background: rgba(34, 197, 94, 0.2); color: var(--success-soft); }
.status-failed { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: var(--warn); }

.brand-hero {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  background: var(--card);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.plan-card:hover { border-color: rgba(59, 130, 246, 0.5); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 24px rgba(59, 130, 246, 0.15); }
.price { font-size: 2rem; font-weight: 700; }

pre.wg-status {
  background: rgba(6, 10, 18, 0.8);
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.75rem;
  max-height: 200px;
  border: 1px solid var(--border);
}

/* Landing hero */
.hero {
  text-align: center;
  padding: 64px 28px 56px;
  margin: 0 -20px 40px;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(59, 130, 246, 0.4), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(34, 197, 94, 0.12), transparent),
    linear-gradient(180deg, rgba(22, 36, 64, 0.85) 0%, rgba(11, 18, 32, 0.4) 70%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, #60a5fa 0%, #34d399 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead strong { color: var(--text); }

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

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 12px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 8px;
}

.hero-stats > div {
  text-align: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 120px;
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section { margin-bottom: 56px; }

.section h2 {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.price-card.featured {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 16px 40px rgba(59, 130, 246, 0.12);
}

.price-card.highlight {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.12), var(--card));
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.price-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.price-old { text-decoration: line-through; color: #64748b; font-size: 1rem; }
.price-now { font-size: 2.35rem; font-weight: 800; margin: 6px 0; letter-spacing: -0.03em; }
.price-save { font-size: 0.85rem; color: var(--success-soft); font-weight: 500; }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .calc-layout { grid-template-columns: 1fr; }
  .hero { margin-left: 0; margin-right: 0; padding: 48px 20px; }
  .lp-header { border-radius: 16px; }
  nav a { margin-left: 12px; font-size: 0.85rem; }
}

.calc-inputs label { display: block; margin-bottom: 24px; }

.calc-inputs input[type="range"] {
  width: 100%;
  margin: 10px 0 6px;
  accent-color: var(--accent);
  background: transparent;
  border: none;
  padding: 0;
}

.range-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.calc-hint { font-size: 0.85rem; margin: 0; }

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.calc-row:last-of-type { border-bottom: none; }

.highlight-row {
  background: rgba(34, 197, 94, 0.1);
  margin: 14px -24px;
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.income-big { font-size: 1.85rem; color: var(--success-soft); font-weight: 800; }
.muted-row { color: var(--muted); font-size: 0.9rem; }

.calc-year {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  text-align: center;
  color: var(--muted);
}

.calc-year strong { color: var(--success-soft); font-size: 1.25rem; }

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

.step {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
}

.step-num {
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.step h3 { margin-bottom: 10px; font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; line-height: 1.6; }
.step code {
  font-size: 0.72rem;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.feature-card {
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-3px); }
.feature-icon { font-size: 2.25rem; margin-bottom: 12px; }

.cta-card {
  text-align: center;
  padding: 52px 36px;
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(26, 35, 50, 0.85) 50%, rgba(15, 20, 25, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-card h2 { font-size: 1.85rem; position: relative; }
.cta-card p { position: relative; color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0;
  position: relative;
}

.cta-foot { font-size: 0.85rem; margin: 0; position: relative; }

/* Footer */
.site-footer {
  margin-top: 16px;
  padding: 28px 20px 36px;
  border-top: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.5);
  backdrop-filter: blur(12px);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__brand { color: var(--text); font-weight: 600; }
.site-footer__sep { opacity: 0.4; }
.site-footer__link { margin-left: auto; font-weight: 500; }

@media (max-width: 600px) {
  .site-footer__link { margin-left: 0; width: 100%; text-align: center; }
}

/* Floating Telegram support — top right */
.tg-float-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: linear-gradient(135deg, #229ed9 0%, #1d8bc7 100%);
  color: #fff;
  border-radius: 999px;
  box-shadow:
    0 4px 20px rgba(34, 158, 217, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tg-float-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(34, 158, 217, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.tg-float-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.tg-float-btn__label {
  white-space: nowrap;
}

/* Admin prospects table */
body.page-prospects .wrap {
  max-width: min(1320px, calc(100vw - 24px));
  width: 100%;
}

body.page-prospects .card.prospects-table-wrap {
  overflow: hidden;
  padding: 20px 16px 16px;
}

.prospects-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(6, 10, 18, 0.45);
}

.prospects-table {
  width: 100%;
  min-width: 1040px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0;
}

.prospects-table th,
.prospects-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  overflow: hidden;
}

.prospects-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(11, 18, 32, 0.9);
  position: sticky;
  top: 0;
  z-index: 1;
}

.prospects-table th:nth-child(1),
.prospects-table td:nth-child(1) { width: 14%; }
.prospects-table th:nth-child(2),
.prospects-table td:nth-child(2) { width: 10%; }
.prospects-table th:nth-child(3),
.prospects-table td:nth-child(3) { width: 14%; }
.prospects-table th:nth-child(4),
.prospects-table td:nth-child(4) { width: 8%; }
.prospects-table th:nth-child(5),
.prospects-table td:nth-child(5) { width: 36%; }
.prospects-table th:nth-child(6),
.prospects-table td:nth-child(6) { width: 8%; }
.prospects-table th:nth-child(7),
.prospects-table td:nth-child(7) { width: 10%; }

.prospects-desc {
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.prospects-subs strong { font-size: 0.95rem; white-space: nowrap; }

.prospects-channel a { word-break: break-all; }

.prospects-channel .tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  margin-top: 4px;
}

.prospects-table .btn.small {
  width: auto;
  display: inline-block;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 0.8rem;
  margin: 0;
}

.prospects-table td:last-child { text-align: right; }

.prospects-legend { line-height: 1.7; font-size: 0.88rem; padding-left: 1.1rem; }

.prospects-filters {
  align-items: end;
  margin-bottom: 4px;
}

.prospects-filters label { margin-bottom: 0; }

.prospects-foot { margin-top: 12px; margin-bottom: 0; font-size: 0.85rem; }

button.small, .btn.small { padding: 6px 12px; font-size: 0.8rem; }

@media (max-width: 480px) {
  .tg-float-btn {
    top: 12px;
    right: 12px;
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
  .tg-float-btn__label {
    display: none;
  }
}
