/* Тёмная тема с золотом — в стиле socmaster.pro */
:root {
  --gold: #f5d06e;
  --gold-deep: #e8b93d;
  --bg-0: #050505;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --text: #f5f5f4;
  --muted: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 208, 110, 0.4);
  --green: #51cf66;
  --red: #ff6b6b;
  --amber: #f5d06e;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.65;
}

h1, h2, h3, .page-title { font-family: 'Playfair Display', serif; letter-spacing: .01em; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid rgba(245, 208, 110, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #fff; }
.logo span {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo:hover { text-decoration: none; }
/* ===== App-shell: сайдбар + контент ===== */
.layout { display: flex; align-items: flex-start; min-height: 100vh; }
.sidebar { flex: none; width: 236px; background: var(--bg-1); border-right: 1px solid var(--border); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { display: block; padding: 0 10px 6px; }
.side-menu { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.side-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; }
.side-menu a i { width: 20px; text-align: center; font-size: 16px; flex: none; }
.side-menu a:hover { background: rgba(255,255,255,.05); color: var(--gold); text-decoration: none; }
.side-menu a.active { background: linear-gradient(90deg, rgba(245,208,110,.16), rgba(245,208,110,.04)); color: var(--gold); box-shadow: inset 2px 0 0 var(--gold); }
.side-menu .nav-msg-badge { margin-left: auto; }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.main-wrap > main { flex: 1; }
.topbar { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 28px; border-bottom: 1px solid var(--border); background: rgba(5,5,5,.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); position: sticky; top: 0; z-index: 40; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ===== Реф-ссылка (в топбаре — на всю ширину) ===== */
.ref-quick { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 620px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 5px 0 14px; height: 40px; }
.ref-quick > i { color: var(--gold); font-size: 14px; flex: none; }
.ref-quick input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 13.5px; padding: 0; outline: none; }
.ref-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; white-space: nowrap; font-weight: 700; font-size: 12.5px; padding: 8px 13px; border-radius: 8px; color: #1a1a1a; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.ref-copy:hover { filter: brightness(1.06); }
.ref-copy.done { background: var(--green); color: #0a0a0a; }

/* Гостевая шапка (лендинг) */
.nav-left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.nav-menu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-menu a, .nav-right > a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-menu a:hover, .nav-right > a:hover { color: var(--gold); text-decoration: none; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .side-menu { flex-direction: row; flex-wrap: wrap; margin-top: 14px; gap: 6px; }
  .side-menu a { padding: 8px 12px; }
  .side-menu a.active { box-shadow: inset 0 -2px 0 var(--gold); }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .ref-quick { max-width: none; order: 2; width: 100%; }
  .topbar-right { order: 1; }
  .main-wrap { min-height: 0; }
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a0a0a !important;
  box-shadow: 0 10px 30px -10px rgba(245, 208, 110, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(245, 208, 110, 0.65); text-decoration: none; }
.btn-outline { border-color: var(--border-gold); color: var(--gold) !important; background: rgba(245, 208, 110, 0.06); }
.btn-outline:hover { background: rgba(245, 208, 110, 0.14); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Герой */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(245, 208, 110, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 60%, rgba(245, 208, 110, 0.06) 0%, transparent 55%),
    radial-gradient(circle at 50% 100%, #111 0%, #0a0a0a 50%, #050505 100%);
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero::before { top: -150px; left: -100px; background: rgba(245, 208, 110, 0.16); }
.hero::after { bottom: -200px; right: -150px; background: rgba(245, 208, 110, 0.10); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 46px; line-height: 1.18; margin: 0 0 18px; max-width: 800px; color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.chip {
  background: linear-gradient(90deg, rgba(245, 208, 110, 0.14) 0%, rgba(245, 208, 110, 0.05) 100%);
  border: 1px solid rgba(245, 208, 110, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
}

/* Секции */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, rgba(245, 208, 110, 0.04) 0%, transparent 60%), var(--bg-1); }
.section h2 { font-size: 34px; margin: 0 0 10px; color: #fff; }
.section .sub { color: var(--muted); margin: 0 0 38px; font-size: 17px; max-width: 720px; }

/* Карточки пакетов */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%), var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 208, 110, 0.25); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 208, 110, 0.14) 50%, transparent 100%);
  transition: left .7s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.card:hover::before { left: 130%; }
.card.featured { border-color: var(--border-gold); box-shadow: 0 18px 50px -18px rgba(245, 208, 110, 0.35); }
.card h3 { margin: 0 0 4px; font-size: 22px; color: var(--gold); }
.card .price { font-size: 38px; font-weight: 800; margin: 8px 0; color: #fff; font-family: 'Playfair Display', serif; }
.card .price small { font-size: 15px; color: var(--muted); font-weight: 500; font-family: 'Inter', sans-serif; }
.card ul { list-style: none; padding: 0; margin: 14px 0 24px; flex: 1; }
.card ul li { padding: 7px 0 7px 28px; position: relative; color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }

/* График объёмов в карточке пакета (акцент на просмотры) */
.pkg-metrics { margin: 16px 0 6px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 13px; }
.pkg-metrics .metric-top { display: flex; align-items: baseline; gap: 8px; }
.pkg-metrics .metric-val { font-weight: 700; color: rgba(255, 255, 255, 0.85); font-size: 16px; }
.pkg-metrics .metric-label { color: var(--muted); font-size: 13px; }
.pkg-metrics .metric-bar { margin-top: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pkg-metrics .metric-bar span { display: block; height: 100%; border-radius: 6px; background: rgba(245, 208, 110, 0.35); transition: width .5s ease; }
/* hero — просмотры: крупнее и золотом */
.pkg-metrics .metric-hero .metric-val { font-size: 30px; font-weight: 800; color: var(--gold); font-family: 'Playfair Display', serif; line-height: 1; }
.pkg-metrics .metric-hero .metric-label { font-size: 14px; color: rgba(245, 208, 110, 0.75); }
.pkg-metrics .metric-hero .metric-bar { height: 9px; }
.pkg-metrics .metric-hero .metric-bar span { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%); }

/* Таблицы */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: rgba(245, 208, 110, 0.06); font-weight: 600; color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
table.data td { color: rgba(255, 255, 255, 0.82); }
table.data td.hl { color: var(--gold); font-weight: 700; }
table.data tr:last-child td { border-bottom: none; }

/* Бэйджи */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge-green { background: rgba(64, 192, 87, 0.12); color: var(--green); border: 1px solid rgba(81, 207, 102, 0.35); }
.badge-red { background: rgba(255, 107, 107, 0.10); color: var(--red); border: 1px solid rgba(255, 107, 107, 0.35); }
.badge-amber { background: rgba(245, 208, 110, 0.12); color: var(--gold); border: 1px solid rgba(245, 208, 110, 0.35); }
.badge-gray { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.65); border: 1px solid rgba(255, 255, 255, 0.18); }

/* Формы */
.input, select.input, textarea.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-2);
  color: var(--text);
}
.input::placeholder { color: rgba(255, 255, 255, 0.35); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 208, 110, 0.18); }
select.input option { background: var(--bg-2); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: rgba(255, 255, 255, 0.85); }
.form-card {
  max-width: 430px;
  margin: 56px auto;
  background: linear-gradient(180deg, rgba(245, 208, 110, 0.06) 0%, transparent 50%), var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.form-card h1 { margin: 0 0 20px; font-size: 26px; color: #fff; }
.errorlist { color: var(--red); font-size: 14px; margin: 4px 0 0; padding-left: 18px; }
.helptext { display: none; }

/* Сообщения */
.messages { list-style: none; padding: 0; margin: 20px 0; }
.messages li { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-size: 15px; border: 1px solid; }
.messages li.success { background: rgba(64, 192, 87, 0.10); color: var(--green); border-color: rgba(81, 207, 102, 0.35); }
.messages li.error { background: rgba(255, 107, 107, 0.08); color: var(--red); border-color: rgba(255, 107, 107, 0.35); }

/* Кабинет */
.page-title { font-size: 30px; margin: 40px 0 24px; color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat {
  background: linear-gradient(180deg, rgba(245, 208, 110, 0.07) 0%, transparent 60%), var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat .label { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.stat .value { font-size: 28px; font-weight: 800; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat .value small { font-size: 14px; color: var(--muted); font-weight: 500; font-family: 'Inter', sans-serif; }

.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.panel h2 { margin: 0 0 16px; font-size: 21px; color: #fff; }

.ref-box { display: flex; gap: 10px; flex-wrap: wrap; }
.ref-box input { flex: 1; min-width: 220px; }

/* Дерево сети */
.tree { font-size: 15px; }
.tree details { margin-left: 18px; border-left: 1px dashed rgba(245, 208, 110, 0.25); padding-left: 14px; }
.tree summary, .tree .leaf {
  padding: 5px 0;
  cursor: pointer;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tree .earn { margin-left: auto; color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tree .earn-zero { color: rgba(255, 255, 255, 0.3); font-weight: 500; }
.tree summary::before { content: "▸ "; color: var(--gold); }
.tree details[open] > summary::before { content: "▾ "; }
.tree .leaf { margin-left: 18px; border-left: 1px dashed rgba(245, 208, 110, 0.25); padding-left: 14px; cursor: default; }

/* FAQ */
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.faq details[open], .faq details:hover { border-color: rgba(245, 208, 110, 0.3); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; color: #fff; list-style: none; }
.faq summary::after { content: " +"; color: var(--gold); }
.faq details[open] summary::after { content: " –"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .num {
  width: 52px; height: 52px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px -10px rgba(245, 208, 110, 0.6);
}
.step h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Подвал */
.site-footer { border-top: 1px solid rgba(245, 208, 110, 0.08); padding: 30px 0; margin-top: 64px; color: var(--muted); font-size: 14px; background: var(--bg-1); }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.nav-balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 208, 110, 0.16) 0%, rgba(245, 208, 110, 0.06) 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}
.nav-balance:hover { background: rgba(245, 208, 110, 0.22); text-decoration: none; }
.nav-balance i { font-size: 13px; }

/* Аватары */
.avatar { border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }
.avatar-fallback { color: #0a0a0a; font-weight: 700; font-family: 'Playfair Display', serif; text-transform: uppercase; }

.nav-avatar { display: inline-flex; }
.nav-avatar:hover { opacity: .85; }

/* Сообщения в навигации */
.nav-msg { position: relative; }
.nav-msg-badge {
  position: absolute; top: -8px; right: -12px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}

/* Список диалогов */
.chat-threads { display: flex; flex-direction: column; gap: 4px; }
.chat-thread {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; color: var(--text) !important;
  position: relative;
}
.chat-thread:hover { background: rgba(245, 208, 110, 0.06); text-decoration: none; }
.chat-thread-body { flex: 1; min-width: 0; }
.chat-thread-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-thread-name { font-weight: 600; }
.chat-thread-time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.chat-thread-last { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-badge {
  background: var(--gold); color: #0a0a0a; font-weight: 700; font-size: 12px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Окно переписки */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-top: 24px;
}
.chat-back { font-size: 22px; color: var(--muted); text-decoration: none !important; }
.chat-back:hover { color: var(--gold); }
.chat-window {
  height: 56vh; overflow-y: auto; padding: 18px 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { max-width: 75%; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-bubble {
  display: inline-block; padding: 9px 14px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  text-align: left; word-wrap: break-word; white-space: pre-wrap;
}
.chat-msg.mine .chat-bubble {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #0a0a0a; border-color: transparent;
}
.chat-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.chat-form { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.chat-form .input { flex: 1; }

/* Аватар в дереве сети */
.tree-name-wrap { display: inline-flex; align-items: center; gap: 7px; }

.input-file { color: var(--muted); font-size: 14px; }

.lang-switcher { display: inline-flex; gap: 4px; align-items: center; }
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.lang-btn:hover { color: var(--gold); border-color: var(--border-gold); }
.lang-btn.active { color: #0a0a0a; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); border-color: transparent; }

.logout-form { display: inline; }
.logout-form button { background: none; border: none; color: var(--muted); font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; padding: 0; }
.logout-form button:hover { color: var(--gold); }

/* Квадраты соцсетей */
.network-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.network-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none !important;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s, border-color .3s;
}
.network-card:hover { transform: translateY(-6px) scale(1.02); }
.network-card i { font-size: 64px; color: #fff; }
.network-card .net-name { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #fff; }
.network-card .net-hint { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.net-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%), var(--bg-2); }
.net-instagram:hover { box-shadow: 0 18px 50px -16px rgba(214, 36, 159, 0.55); border-color: rgba(214, 36, 159, 0.5); }
.net-facebook { background: linear-gradient(135deg, #1877f2 0%, #0a4fb3 100%); }
.net-facebook:hover { box-shadow: 0 18px 50px -16px rgba(24, 119, 242, 0.55); border-color: rgba(24, 119, 242, 0.6); }
.net-tiktok { background: linear-gradient(135deg, #111 0%, #000 100%); border-color: rgba(255, 255, 255, 0.14); }
.net-tiktok i { text-shadow: 3px 3px 0 #fe2c55, -3px -3px 0 #25f4ee; }
.net-tiktok:hover { box-shadow: 0 18px 50px -16px rgba(37, 244, 238, 0.35); border-color: rgba(37, 244, 238, 0.4); }

.net-title { display: flex; align-items: center; gap: 14px; }
.net-title i { font-size: 34px; }
.net-title-instagram i { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.net-title-facebook i { color: #1877f2; }
.net-title-tiktok i { color: #fff; text-shadow: 2px 2px 0 #fe2c55, -2px -2px 0 #25f4ee; }

/* Карточки услуг с кольцом прогресса */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: linear-gradient(180deg, rgba(245, 208, 110, 0.06) 0%, transparent 55%), var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: border-color .3s;
}
.service-card:hover { border-color: rgba(245, 208, 110, 0.3); }
.service-card h3 { margin: 0 0 18px; font-size: 21px; color: #fff; }
.ring-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 14px; }
.ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, 0.08); }
.ring-fill { transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1); }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-pct { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; }
.ring-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.quota-nums { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; line-height: 1.7; }
.quota-nums strong { color: #fff; }
.quota-left { color: var(--gold); font-weight: 600; }

/* Разбивка израсходованного объёма по соцсетям (объём общий на все сети) */
.quota-split { margin: -8px 0 18px; }
.quota-split-label {
  display: block; font-size: 10.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px;
}
.quota-chips { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.quota-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #cdd2da; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.quota-chip i { font-size: 12px; }
.qchip-instagram i { color: #e1306c; }
.qchip-facebook i { color: #1877f2; }
.qchip-tiktok i { color: #25f4ee; }
.quota-chip.is-zero { opacity: .45; }
.quota-chip.is-current {
  border-color: rgba(245, 208, 110, 0.55);
  background: rgba(245, 208, 110, 0.10);
  color: #fff;
}

.quota-empty { color: var(--muted); font-size: 14.5px; }
.quota-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; line-height: 1.5; }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 48px 0; }
}

/* ============ Моя структура (orgchart-дашборд) ============ */
.net-sub { color: var(--muted); margin: -6px 0 22px; font-size: 16px; }

/* Стат-карточки */
.net-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.net-stat { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.net-stat .ico { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: #9fb0c3; font-size: 17px; }
.net-stat .ico-gold { background: rgba(245,208,110,.12); color: var(--gold); }
.net-stat .lbl { font-size: 12.5px; color: var(--muted); }
.net-stat .val { font-size: 24px; font-weight: 800; color: #fff; font-family: 'Playfair Display', serif; line-height: 1.1; margin: 2px 0; }
.net-stat .hint { font-size: 11.5px; color: var(--muted); }
@media (max-width: 1000px) { .net-stats { grid-template-columns: repeat(2, 1fr); } }

/* Тулбар */
.net-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.net-search { position: relative; flex: 1; max-width: 420px; }
.net-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.net-search input { width: 100%; padding: 11px 14px 11px 40px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; color: #fff; font-size: 14px; }
.net-search input:focus { outline: none; border-color: var(--border-gold); }
.net-toggle { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.net-toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 8px; font-size: 13.5px; cursor: pointer; font-weight: 500; }
.net-toggle button.active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1a1a; font-weight: 700; }

/* Полотно дерева + рельса уровней */
.org-scroll { position: relative; overflow-x: auto; overflow-y: hidden; padding: 6px 0 26px 88px; }
.org-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 80px; pointer-events: none; z-index: 1; }
.org-rail-lbl { position: absolute; left: 6px; font-size: 10.5px; font-weight: 600; color: var(--gold); background: rgba(245,208,110,.08); border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.org { display: inline-block; }

/* Холст дерева: панорама + зум */
.org-viewport { position: relative; overflow: hidden; height: 72vh; min-height: 460px; border: 1px solid var(--border); border-radius: 14px; background: radial-gradient(circle at 30% 15%, rgba(245,208,110,.05), transparent 55%), var(--bg-1); cursor: grab; user-select: none; }
.org-viewport.grabbing { cursor: grabbing; }
.org-viewport:fullscreen { height: 100vh; min-height: 0; border-radius: 0; background: var(--bg-0); }
.org-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; padding: 20px 44px; }
.org-hint { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: var(--muted); background: rgba(0,0,0,.45); padding: 4px 11px; border-radius: 20px; pointer-events: none; }
.org-zoom { display: inline-flex; gap: 6px; margin-left: auto; }
.org-zoom button { min-width: 36px; justify-content: center; }

/* Связи (классический nested-ul orgchart) */
.org ul { display: flex; justify-content: center; position: relative; padding-top: 28px; }
.org li { list-style: none; position: relative; padding: 28px 8px 0; display: flex; flex-direction: column; align-items: center; }
.org li::before, .org li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 28px; border-top: 2px solid rgba(255,255,255,.14); }
.org li::after { right: auto; left: 50%; border-left: 2px solid rgba(255,255,255,.14); }
.org li:only-child::before, .org li:only-child::after { display: none; }
.org li:only-child { padding-top: 28px; }
.org li:first-child::before, .org li:last-child::after { border-top: 0; }
.org li:last-child::before { border-right: 2px solid rgba(255,255,255,.14); border-radius: 0 8px 0 0; }
.org li:first-child::after { border-radius: 8px 0 0 0; }
.org ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 28px; border-left: 2px solid rgba(255,255,255,.14); }
.org > ul { padding-top: 0; }
.org > ul > li { padding-top: 0; }
.org > ul > li::before, .org > ul > li::after { display: none; }

/* Карточка-нода */
.node { position: relative; width: 172px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; text-align: left; transition: border-color .2s, transform .2s; }
.node:hover { border-color: rgba(245,208,110,.35); transform: translateY(-2px); }
.node.is-idle { opacity: .72; }
.node-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.node-dot.on { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.node-head { display: flex; align-items: center; gap: 9px; }
.node-name { font-weight: 600; font-size: 13.5px; color: #fff; line-height: 1.15; max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.node-stats { display: flex; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); }
.node-stats > div { flex: 1; text-align: center; }
.node-stats b { display: block; font-size: 13px; color: var(--gold); }
.node-stats span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.node-root { width: 234px; border-color: var(--border-gold); background: linear-gradient(180deg, rgba(245,208,110,.12), rgba(245,208,110,.02)); box-shadow: 0 14px 40px -16px rgba(245,208,110,.4); }
.node-root .node-name { font-size: 15px; max-width: 152px; }
.node-summary { width: auto; min-width: 92px; text-align: center; padding: 8px 12px; color: var(--gold); font-weight: 700; background: rgba(245,208,110,.06); }
.node-summary span { display: block; font-size: 10px; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.node-hit { border-color: #60a5fa !important; box-shadow: 0 0 0 2px rgba(96,165,250,.4); }

/* Сворачивание веток дерева */
.org li.collapsed > ul { display: none; }
.node.has-kids { cursor: pointer; }
.node-toggle { margin-top: 9px; padding-top: 7px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--muted); }
.node-toggle i { transition: transform .2s; font-size: 10px; }
.org li:not(.collapsed) > .node .node-toggle i { transform: rotate(180deg); }
.node.has-kids:hover .node-toggle { color: var(--gold); }
.org-controls { display: flex; gap: 8px; margin-bottom: 10px; }
.org-controls button { background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; }
.org-controls button:hover { color: var(--gold); border-color: var(--border-gold); }

/* Кнопка отмены заявки */
.btn-cancel { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,107,107,0.45); background: rgba(255,107,107,0.08); color: #ff8585; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn-cancel:hover { background: rgba(255,107,107,0.18); color: #ffb0b0; }

/* Блок дохода (9 линий) на странице пакетов */
.income-block { margin: 46px auto 8px; max-width: 880px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 34px; }
.income-block h2 { margin: 0 0 16px; font-size: 24px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.income-block p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; font-size: 15px; }
.income-block p strong { color: var(--text); }
.income-lead { color: var(--text) !important; }
.income-table { width: 100%; border-collapse: collapse; margin: 22px 0 8px; }
.income-table th, .income-table td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.income-table th { color: var(--gold); font-size: 13.5px; font-weight: 600; }
.income-table th small { color: var(--muted); font-weight: 400; font-size: 11px; }
.income-table tbody tr:hover { background: rgba(255,255,255,.03); }
.income-table td:first-child, .income-table th:first-child { text-align: left; }
.income-amt { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.income-note { font-size: 13px; color: var(--muted); margin-top: 14px !important; }
@media (max-width: 640px) {
  .income-block { padding: 22px 18px; }
  .income-table th, .income-table td { padding: 8px 6px; font-size: 13px; }
}

/* Двухфакторная защита (2FA) */
.twofa-steps { color: var(--muted); line-height: 1.7; padding-left: 20px; margin: 0 0 20px; }
.twofa-steps li { margin-bottom: 6px; }
.twofa-qr { text-align: center; }
.twofa-qr img { background: #fff; padding: 10px; border-radius: 12px; }
.twofa-secret { text-align: center; font-family: ui-monospace, monospace; letter-spacing: 2px; font-size: 16px; color: var(--gold); word-break: break-all; margin: 0; }
.backup-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.backup-codes span { font-family: ui-monospace, monospace; font-size: 16px; letter-spacing: 1px; text-align: center; padding: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
@media (max-width: 480px) { .backup-codes { grid-template-columns: 1fr; } }

/* ===== Плавающий виджет поддержки ===== */
.support-widget { position: fixed; right: 22px; bottom: 22px; z-index: 1200; font-family: inherit; }
.support-fab {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #f5d06e, #e8b93d); color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 24px; position: relative;
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.support-fab:hover { transform: scale(1.06); }
.support-fab .icon-close { display: none; }
.support-widget.open .support-fab .icon-open { display: none; }
.support-widget.open .support-fab .icon-close { display: block; }
.support-fab .icon-open, .support-fab .icon-close { position: absolute; }

.support-panel {
  position: absolute; right: 0; bottom: 74px; width: 340px; max-width: calc(100vw - 36px);
  background: #15171c; border: 1px solid rgba(245,208,110,.25); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5); overflow: hidden;
  animation: supportPop .16s ease;
}
@keyframes supportPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.support-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: linear-gradient(135deg, #f5d06e, #e8b93d); color: #1a1a1a; font-weight: 700;
}
.support-head .support-x { background: none; border: none; color: #1a1a1a; font-size: 18px; cursor: pointer; opacity: .8; }
.support-head .support-x:hover { opacity: 1; }
.support-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); }
.support-tab {
  flex: 1; padding: 12px 8px; background: none; border: none; color: #9aa0aa; cursor: pointer;
  font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent;
}
.support-tab.active { color: #f5d06e; border-bottom-color: #f5d06e; }
.support-tab i { margin-right: 6px; }
.support-body { padding: 16px; }
.support-note { color: #aeb4bd; font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.support-tg-btn, .support-send-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px; border-radius: 10px; border: none; cursor: pointer; font-size: 15px; font-weight: 700; text-decoration: none;
}
.support-tg-btn { background: #229ED2; color: #fff; }
.support-tg-btn:hover { filter: brightness(1.08); }
.support-send-btn { background: linear-gradient(135deg, #f5d06e, #e8b93d); color: #1a1a1a; margin-top: 4px; }
.support-send-btn:disabled { opacity: .6; cursor: default; }
#supportForm input, #supportForm textarea {
  width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 10px 12px;
  background: #0f1115; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #e8eaed; font-size: 14px; font-family: inherit;
}
#supportForm input:focus, #supportForm textarea:focus { outline: none; border-color: #f5d06e; }
#supportForm textarea { resize: vertical; }
.support-result { margin-top: 10px; font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 8px; }
.support-result.ok { background: rgba(22,163,74,.15); color: #6ee7a8; }
.support-result.err { background: rgba(220,38,38,.15); color: #fca5a5; }
@media (max-width: 480px) {
  .support-widget { right: 14px; bottom: 14px; }
  .support-panel { width: calc(100vw - 28px); }
}
