/* =====================================================
   SMM Panel — Main Stylesheet
   Dark theme, modern design
   ===================================================== */

:root {
  --bg:        #0f172a;
  --bg2:       #1e293b;
  --bg3:       #293548;
  --border:    #334155;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --primary:   #6366f1;
  --primary-h: #4f46e5;
  --success:   #22c55e;
  --danger:    #ef4444;
  --warning:   #f59e0b;
  --info:      #38bdf8;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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 { color: var(--primary-h); }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

/* ── SERVICES PAGE ───────────────────────────────────── */
.svc-cat-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 28px; overflow: hidden; }
.svc-cat-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.svc-cat-head h3 { margin: 0; font-size: 1.05rem; color: var(--text); font-weight: 700; }
.svc-cat-count { font-size: .8rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; }
.svc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.svc-table th { padding: 12px 20px; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left; background: rgba(255,255,255,.015); }
.svc-table td { padding: 14px 20px; border-bottom: 1px solid rgba(51,65,85,.45); vertical-align: middle; }
.svc-table tbody tr:last-child td { border-bottom: none; }
.svc-table tbody tr:hover { background: rgba(255,255,255,.025); }
.svc-id-cell { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; width: 54px; }
.svc-name-col .name { font-weight: 500; color: var(--text); line-height: 1.4; }
.price-badge { display: inline-block; background: rgba(99,102,241,.12); color: var(--primary); border: 1px solid rgba(99,102,241,.3); border-radius: 8px; padding: 4px 12px; font-size: .85rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.minmax-val { color: var(--text); font-size: .85rem; font-variant-numeric: tabular-nums; }
.online-count { color: var(--success); font-weight: 700; font-size: .92rem; }
.online-zero  { color: var(--muted); font-size: .88rem; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }
p  { color: var(--muted); }

.gradient-text {
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAVBAR ──────────────────────────────────────────── */
.navbar {
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}
.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -.5px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.balance-tag a { color: var(--success) !important; font-weight: 600; }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--primary);   color: #fff; }
.btn-primary:hover { background: var(--primary-h); color: #fff; }
.btn-ghost    { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; color: #fff; }
.btn-sm  { padding: 5px 12px; font-size: .8rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-outline-sm {
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--muted);
}

/* ── FLASH ───────────────────────────────────────────── */
.flash {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
  border-radius: 0;
}
.flash button { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; }
.flash-success  { background: #14532d; color: #bbf7d0; border-left: 4px solid var(--success); }
.flash-error    { background: #7f1d1d; color: #fecaca; border-left: 4px solid var(--danger); }
.flash-info     { background: #0c4a6e; color: #bae6fd; border-left: 4px solid var(--info); }

/* ── ALERTS ──────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: .9rem;
}
.alert-danger  { background: rgba(239,68,68,.15); border: 1px solid var(--danger); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.15); border: 1px solid var(--success); color: #86efac; }

/* ── HERO ────────────────────────────────────────────── */
.main-wrap { flex: 1; }
.hero {
  padding: 80px 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(99,102,241,.15) 0%, transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.4);
  color: #a5b4fc;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .8rem;
  margin-bottom: 18px;
}
.hero h1 { line-height: 1.2; margin-bottom: 16px; }
.hero-sub { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
  gap: 12px;
}
.status { padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status.processing { background: rgba(56,189,248,.2); color: var(--info); }
.status.completed  { background: rgba(34,197,94,.2);  color: var(--success); }
.status.pending    { background: rgba(245,158,11,.2);  color: var(--warning); }

/* ── STATS STRIP ─────────────────────────────────────── */
.stats-strip { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-item   { text-align: center; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-item span   { color: var(--muted); font-size: .9rem; }

/* ── SECTIONS ────────────────────────────────────────── */
.section      { padding: 80px 0; }
.section-dark  { background: var(--bg2); }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub   { text-align: center; color: var(--muted); margin-bottom: 48px; }

/* ── SERVICE CARDS ───────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 16px; }
.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.service-card:hover  { border-color: var(--primary); transform: translateY(-3px); }
.svc-icon  { font-size: 2.5rem; }
.svc-name  { font-weight: 600; font-size: .95rem; }
.svc-count { color: var(--muted); font-size: .8rem; }

/* ── FEATURES ────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--primary); }
.feat-ico { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }

/* ── HOW IT WORKS ────────────────────────────────────── */
.steps    { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.step     { text-align: center; width: 160px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step h3  { color: var(--text); font-size: .95rem; margin-bottom: 6px; }
.step-arrow { font-size: 1.5rem; color: var(--muted); }

/* ── CTA ─────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg,#312e81,#1e1b4b); padding: 80px 0; }
.cta-inner   { text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p  { color: #a5b4fc; margin-bottom: 32px; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p, .footer ul { color: var(--muted); font-size: .85rem; }
.footer ul { list-style: none; display: flex; gap: 16px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--text); }

/* ── AUTH ────────────────────────────────────────────── */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 40px 20px;
}
.auth-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-box h2 { text-align: center; margin-bottom: 28px; }
.auth-links  { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* ── PANEL LAYOUT ────────────────────────────────────── */
.panel-wrap {
  display: flex;
  gap: 24px;
  padding: 32px 20px;
  min-height: calc(100vh - 60px);
  align-items: flex-start;
}
.panel-content { flex: 1; min-width: 0; }
.page-title    { margin-bottom: 24px; font-size: 1.6rem; }

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 96px);
  position: sticky;
  top: 76px;
}
.sidebar-user {
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.username     { font-weight: 600; font-size: .95rem; }
.user-balance { color: var(--success); font-size: .85rem; font-weight: 600; }

.sidebar-nav { list-style: none; padding: 8px 0; }
.sidebar-nav li a {
  display: block;
  padding: 10px 20px;
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s, background .2s;
  border-left: 3px solid transparent;
}
.sidebar-nav li:hover a,
.sidebar-nav li.active a {
  color: var(--text);
  background: rgba(99,102,241,.1);
  border-left-color: var(--primary);
}
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-head h3 { margin: 0; }

/* ── DASH CARDS ──────────────────────────────────────── */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 16px;
}
.dash-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dc-icon  { font-size: 1.8rem; }
.dc-value { font-size: 1.4rem; font-weight: 700; }
.dc-label { color: var(--muted); font-size: .8rem; }
.dc-body  { flex: 1; }
.dc-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.dc-action:hover {
  background: rgba(99,102,241,.22);
  border-color: var(--primary);
  text-decoration: none;
}

/* ── TABLES ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th {
  color: var(--muted);
  font-weight: 600;
  background: var(--bg3);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.td-link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* ── BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-success   { background: rgba(34,197,94,.2);    color: #86efac; }
.badge-danger    { background: rgba(239,68,68,.2);    color: #fca5a5; }
.badge-warning   { background: rgba(245,158,11,.2);   color: #fde68a; }
.badge-secondary { background: rgba(148,163,184,.15); color: var(--muted); }
.badge-info      { background: rgba(56,189,248,.2);   color: var(--info); }
.badge-primary   { background: rgba(99,102,241,.2);   color: #a5b4fc; }

/* ── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
}
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
select { cursor: pointer; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { display: inline; width: auto; }
.form-check label { margin: 0; color: var(--text); display: flex; align-items: center; gap: 8px; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { max-width: 260px; margin: 0; }
.filter-bar--wide input { max-width: 280px; }
.filter-bar--wide select { max-width: 240px; }

/* Массовые действия */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: .4;
  pointer-events: none;
  transition: opacity .2s;
}
.bulk-bar--active { opacity: 1; pointer-events: auto; }
.bulk-count { font-weight: 600; min-width: 90px; font-size: .9rem; }
.bulk-bar select { max-width: 200px; margin: 0; }

/* Чекбоксы */
.th-check, .td-check { width: 36px; padding: 0 8px !important; text-align: center; }

/* Кнопка xs */
.btn-xs { padding: 3px 8px; font-size: .75rem; }

/* Ячейка действий в таблице */
.action-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.action-cell select { max-width: 130px; margin: 0; font-size: .8rem; padding: 4px 6px; }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination { display: flex; gap: 6px; padding: 16px 0 0; flex-wrap: wrap; }
.pg-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .85rem;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
  transition: background .2s;
}
.pg-btn:hover, .pg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── STATUS TABS (ORDERS) ───────────────────────────── */
.status-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
a.status-tab,
.status-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
  line-height: 1.4;
}
a.status-tab:hover,
.status-tab:hover {
  color: var(--text);
  background: var(--bg3);
  border-color: var(--primary);
}
a.status-tab.active,
.status-tab.active {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}
.status-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255,255,255,.22);
  color: inherit;
  line-height: 1;
}
a.status-tab:not(.active) .status-tab-badge,
.status-tab:not(.active) .status-tab-badge {
  background: rgba(99,102,241,.15);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,.28);
}

/* ── CAT TABS ────────────────────────────────────────── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.cat-tab  {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: all .2s;
}
.cat-tab.active, .cat-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── ORDER FORM ──────────────────────────────────────── */
.svc-description {
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .875rem;
  color: #a5b4fc;
  margin-top: -8px;
  margin-bottom: 12px;
}
.svc-meta {
  display: flex;
  gap: 20px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.svc-meta b { color: var(--text); }
.order-qty-row { display: flex; gap: 16px; align-items: flex-end; }
.flex-1 { flex: 1; }
.order-price-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  text-align: center;
  min-width: 120px;
  margin-bottom: 16px;
}
.op-label { font-size: .75rem; color: var(--muted); }
.op-value { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.order-balance-row {
  font-size: .875rem;
  color: var(--muted);
  padding: 8px 0;
}
.order-balance-row b { color: var(--success); }

/* ── ORDER MODE TABS ─────────────────────────────────── */
/* ── BULK TOGGLE ─────────────────────────────────────── */
.link-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.link-label-row label { margin-bottom: 0; }
.btn-bulk-toggle {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-bulk-toggle:hover { background: var(--bg2); color: var(--text); border-color: var(--primary); }
.btn-bulk-toggle.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.bulk-links-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
}
.bulk-meta-sep { opacity: .4; }

/* ── ADD FUNDS ───────────────────────────────────────── */
.funds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  font-size: .875rem;
  transition: all .2s;
}
.qa-btn:hover { background: var(--primary); border-color: var(--primary); }
.input-prefix { display: flex; }
.input-prefix span {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-right: none;
  padding: 10px 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--muted);
}
.input-prefix input { border-radius: 0 var(--radius) var(--radius) 0; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-option { cursor: pointer; }
.pm-option input { display: none; }
.pm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: .85rem;
  transition: all .2s;
}
.pm-ico { font-size: 1.5rem; }
.pm-option input:checked + .pm-card { border-color: var(--primary); background: rgba(99,102,241,.1); }

/* ── PAYMENT SETTINGS ────────────────────────────────── */
.settings-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.stab {
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.stab:hover { color: var(--text); }
.stab.active { color: var(--primary); border-bottom-color: var(--primary); }

.pay-methods-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.pay-method-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.pay-method-card--on { border-color: var(--primary); }
.pmc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.pmc-icon { font-size: 1.3rem; }
.pmc-label { font-weight: 600; flex: 1; }
.pmc-body { padding: 12px 16px; }
.pmc-body textarea { font-size: .85rem; min-height: 70px; }

/* Тумблер */
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: #fff; }

/* ── DEPOSIT PENDING CARD ────────────────────────────── */
.deposit-pending-card { max-width: 560px; }
.dp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dp-amount { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin: 0 0 12px; }
.dp-details {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 16px;
}
.dp-details-label { font-size: .8rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.dp-details-text {
  font-family: monospace;
  font-size: .9rem;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0 0 10px;
  color: var(--text);
}

/* ── PROFILE ─────────────────────────────────────────── */
.profile-header-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  flex-shrink: 0;
}
.profile-info h2 { margin-bottom: 4px; }
.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.profile-stats div { text-align: center; }
.profile-stats strong { display: block; font-size: 1.1rem; }
.profile-stats span { color: var(--muted); font-size: .8rem; }
.profile-forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ── API PAGE ────────────────────────────────────────── */
.api-key-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.api-key-input {
  font-family: monospace;
  background: var(--bg);
  flex: 1;
  min-width: 200px;
}
.code-block {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: monospace;
  font-size: .85rem;
  white-space: pre;
  overflow-x: auto;
  color: #a5b4fc;
}
.api-methods { display: flex; flex-direction: column; gap: 12px; }
.api-method  { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.am-head     {
  padding: 10px 16px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
}
.am-body { padding: 0; }
.am-body pre { margin: 0; padding: 16px; font-family: monospace; font-size: .82rem; overflow-x: auto; color: #a5b4fc; }
.method-badge { padding: 3px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.method-badge.post { background: rgba(34,197,94,.2); color: #86efac; }
.method-badge.get  { background: rgba(56,189,248,.2); color: var(--info); }

/* ── ADMIN FORMS ─────────────────────────────────────── */
.grid-form { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 16px; align-items: end; }
.grid-form .btn { height: fit-content; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; }
.action-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gap-2 { gap: 8px; }

/* ── MODAL ───────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img   { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .panel-wrap { flex-direction: column; padding: 16px; }
  .sidebar    { width: 100%; position: static; }
  .funds-grid, .profile-forms-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links  { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; }
  .nav-links.open { display: flex; }
  .burger    { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .steps      { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}
