/* ============================================================
   ShootAds Design System  — v2
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:        #6366f1;
  --primary-dark:   #4f46e5;
  --primary-light:  #818cf8;
  --primary-glow:   rgba(99,102,241,0.25);
  --secondary:      #0ea5e9;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --purple:         #8b5cf6;

  /* Surfaces */
  --bg:             #0d0d14;
  --bg-card:        #13131e;
  --bg-card2:       #1a1a28;
  --bg-hover:       rgba(255,255,255,0.03);
  --bg-input:       #111120;

  /* Borders */
  --border:         rgba(255,255,255,0.07);
  --border-strong:  rgba(255,255,255,0.12);

  /* Text */
  --text:           #e8eaf0;
  --text-muted:     #556070;
  --text-dim:       #8892a0;

  /* Layout */
  --sidebar-w:      252px;
  --topbar-h:       60px;
  --radius:         14px;
  --radius-sm:      9px;
  --radius-xs:      6px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.3);
  --shadow:         0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.6);
  --transition:     0.18s ease;

  /* Card visual tokens */
  --card-bg:        var(--bg-card);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ── Global scrollbar (thin, subtle) ────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* ── Sidebar scrollbar (styled, visible on hover) ───────── */
.sidebar { scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color 0.3s; }
.sidebar:hover { scrollbar-color: rgba(99,102,241,0.35) transparent; }
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 10px; transition: background 0.3s; }
.sidebar:hover::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.35); }
.sidebar:hover::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.6); }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-layout .sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f0f1c 0%, #13131e 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

.app-layout .main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
}

/* ── Sidebar Brand ──────────────────────────────────────── */
.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.brand-link {
  display: flex; align-items: center; gap: 11px;
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -0.3px;
}
.brand-link svg { flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(99,102,241,0.5)); }
.brand-link span { background: linear-gradient(135deg, #e8eaf0, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Sidebar User ───────────────────────────────────────── */
.sidebar-user {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.user-info { overflow: hidden; min-width: 0; }
.user-name { font-weight: 600; font-size: 13px; color: #d8e0ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { margin-top: 3px; }
.user-role-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.user-role-advertiser { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.user-role-publisher  { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.user-role-admin      { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.user-role-both {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.25);
  font-size: 9px;
}

/* ── Sidebar Nav ────────────────────────────────────────── */
.sidebar-nav { padding: 8px 10px; flex: 1; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 13px; border-radius: var(--radius-sm);
  color: #9ba8b8; font-weight: 500; font-size: 13.5px;
  transition: all var(--transition); margin-bottom: 2px;
  position: relative; letter-spacing: -0.1px;
}
.nav-item svg {
  width: 17px; height: 17px; flex-shrink: 0;
  opacity: 1; transition: opacity var(--transition);
  color: #5a6a82;
}
.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #dde3ec;
}
.nav-item:hover svg { color: #818cf8; }
.nav-item.active {
  background: rgba(99,102,241,0.18);
  color: #c7d0ff;
  font-weight: 600;
}
.nav-item.active svg { color: #818cf8; }
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 3px;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(99,102,241,0.6);
}

.nav-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: #3d4a5c;
  padding: 16px 13px 5px;
}

/* ── Sidebar Bottom ─────────────────────────────────────── */
.sidebar-bottom {
  padding: 14px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}
.balance-chip {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: var(--radius-sm); padding: 10px 13px; margin-bottom: 10px;
}
.balance-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.balance-amount { font-weight: 700; color: var(--success); font-size: 15px; }
.logout-btn {
  display: flex; align-items: center; gap: 9px;
  color: #5a6a82; font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: all var(--transition); width: 100%;
}
.logout-btn svg { width: 15px; height: 15px; color: #5a6a82; }
.logout-btn:hover { color: #f87171; background: rgba(239,68,68,0.08); }
.logout-btn:hover svg { color: #f87171; }

/* ── Top Bar ────────────────────────────────────────────── */
.top-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px; height: var(--topbar-h);
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.page-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--text-dim); padding: 4px;
  flex-shrink: 0;
}
.menu-toggle svg { width: 22px; height: 22px; }

.top-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── Page Body ──────────────────────────────────────────── */
.page-body {
  padding: 28px 32px; flex: 1;
  animation: fadeUp 0.22s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-strong); }
.card-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 18px; letter-spacing: -0.1px; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }

.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.6;
}
.stat-card.indigo::after { background: linear-gradient(90deg, var(--primary), var(--purple)); }
.stat-card.green::after  { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.blue::after   { background: linear-gradient(90deg, var(--secondary), #38bdf8); }
.stat-card.orange::after { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.stat-card.purple::after { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.stat-card.red::after    { background: linear-gradient(90deg, var(--danger), #f87171); }

.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.stat-sub   { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.stat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon.indigo { background: rgba(99,102,241,0.12); color: var(--primary); }
.stat-icon.green  { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-icon.blue   { background: rgba(14,165,233,0.12); color: var(--secondary); }
.stat-icon.orange { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.stat-icon.red    { background: rgba(239,68,68,0.12);  color: var(--danger); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap; letter-spacing: -0.1px;
}
.btn:active { transform: scale(0.98); }
.btn-sm  { padding: 6px 13px; font-size: 12.5px; }
.btn-xs  { padding: 3px 9px;  font-size: 11.5px; border-radius: var(--radius-xs); }

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #5558e8);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #5558e8, #4a4de0); box-shadow: 0 4px 18px rgba(99,102,241,0.45); color: #fff; }

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; box-shadow: 0 2px 10px rgba(16,185,129,0.25);
}
.btn-success:hover { background: linear-gradient(135deg, #059669, #047857); color: #fff; }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; box-shadow: 0 2px 10px rgba(239,68,68,0.25);
}
.btn-danger:hover { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; }

.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.btn-warning:hover { background: linear-gradient(135deg, #d97706, #b45309); color: #000; }

.btn-ghost {
  background: var(--bg-card2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); background: var(--bg-hover); }

.btn svg { width: 15px; height: 15px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; letter-spacing: 0.01em; }
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 13.5px;
  font-family: inherit; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-check { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg-card2); }
th {
  padding: 11px 16px; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.07em; text-align: left; white-space: nowrap;
}
td {
  padding: 13px 16px; font-size: 13px;
  border-top: 1px solid var(--border); color: var(--text-dim);
  vertical-align: middle;
}
td strong { color: var(--text); }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: rgba(255,255,255,0.025); color: var(--text); }

/* ── Checkbox column ──────────────────────────────────────── */
th:first-child, td:first-child { padding-left: 18px; }
input[type="checkbox"].row-check, input[type="checkbox"]#select-all {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  white-space: nowrap;
}
.badge-active,    .badge-completed  { background: rgba(16,185,129,0.12);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-pending                       { background: rgba(245,158,11,0.12);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-paused                        { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }
.badge-rejected,  .badge-suspended  { background: rgba(239,68,68,0.10);   color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-advertiser                    { background: rgba(99,102,241,0.12);  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }
.badge-publisher                     { background: rgba(14,165,233,0.12);  color: #7dd3fc; border: 1px solid rgba(14,165,233,0.2); }
.badge-admin                         { background: rgba(139,92,246,0.12);  color: #c4b5fd; border: 1px solid rgba(139,92,246,0.2); }
.badge-banner                        { background: rgba(16,185,129,0.10);  color: #34d399; border: 1px solid rgba(16,185,129,0.15); }
.badge-native                        { background: rgba(99,102,241,0.10);  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.18); }
.badge-pop                           { background: rgba(245,158,11,0.10);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.15); }
.badge-both {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 13px 18px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-size: 13px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert::before { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-danger  { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.25);  color: #fca5a5; }
.alert-danger::before  { content: '⚠'; }
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-success::before { content: '✓'; color: var(--success); }
.alert-info    { background: rgba(14,165,233,0.08);  border: 1px solid rgba(14,165,233,0.25);  color: #7dd3fc; }
.alert-info::before    { content: 'ℹ'; }
.alert ul { margin-left: 16px; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.empty-state p  { font-size: 13px; margin-bottom: 22px; }

/* ============================================================
   SECTION SEPARATOR
   ============================================================ */
.section-title { font-size: 14px; font-weight: 600; margin: 28px 0 14px; color: var(--text-dim); }

/* ============================================================
   AD CODE BOX
   ============================================================ */
.code-box {
  background: #0a0a14; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  font-family: 'Courier New', monospace; font-size: 12px;
  color: #a5f3fc; overflow-x: auto; white-space: pre-wrap;
  word-break: break-all; line-height: 1.7;
}
.copy-btn { margin-top: 10px; }

/* Light-mode: dark text on light gray, readable like docs-code */
body.light-mode .code-box {
  background: #f3f4f6;
  color: #1e293b;
  border-color: rgba(0,0,0,0.1);
}

/* ============================================================
   PUBLIC LAYOUT
   ============================================================ */
.public-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,20,0.88); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.public-header .container {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.pub-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--text); }
.pub-brand svg { filter: drop-shadow(0 0 6px rgba(99,102,241,0.4)); }
.pub-nav { display: flex; align-items: center; gap: 24px; }
.pub-nav a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.pub-nav a:hover { color: var(--text); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.public-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 48px 0 24px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand span { font-size: 17px; font-weight: 800; }
.footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a  { display: block; color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.08) 0%, transparent 60%),
              var(--bg);
}
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo a { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; color: var(--text); }
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.05), var(--shadow);
}
.auth-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth-card p  { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }
.auth-footer  { text-align: center; margin-top: 22px; color: var(--text-muted); font-size: 13px; }

/* ============================================================
   LANDING PAGE  (lp-* namespace)
   ============================================================ */

/* ── Shared tokens ── */
.lp-gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lp-h1 {
  font-size: clamp(36px, 5.5vw, 68px); font-weight: 900;
  line-height: 1.05; letter-spacing: -2px; margin-bottom: 22px;
}
.lp-h2 {
  font-size: clamp(26px, 3.5vw, 44px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 14px;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 16px;
}
.lp-eyebrow::before {
  content: ''; display: block; width: 18px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.lp-section { padding: 96px 0; }
.lp-section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.lp-section-header { text-align: center; margin-bottom: 60px; }
.lp-section-sub { color: var(--text-dim); font-size: 17px; max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* ── Buttons ── */
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; border-radius: 10px;
  padding: 12px 24px; text-decoration: none; cursor: pointer;
  transition: all 0.18s ease; border: none; white-space: nowrap;
}
.lp-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.45); color: #fff; }
.lp-btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--text);
  border: 1px solid var(--border-strong);
}
.lp-btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.lp-btn-outline {
  background: transparent; color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.35);
}
.lp-btn-outline:hover { background: rgba(99,102,241,0.08); color: var(--primary-light); }
.lp-btn-success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff; box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}
.lp-btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,185,129,0.4); color: #fff; }

/* ── Hero ── */
.lp-hero {
  position: relative; overflow: hidden;
  text-align: center; padding: 110px 24px 84px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(99,102,241,0.14) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}
/* Subtle dot grid overlay */
.lp-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 80%);
}
.lp-hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.lp-hero-glow-1 {
  width: 500px; height: 500px; top: -150px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.lp-hero-glow-2 {
  width: 300px; height: 300px; bottom: -60px; right: 15%;
  background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
}
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.28);
  color: var(--primary-light); padding: 6px 18px; border-radius: 20px;
  font-size: 12px; font-weight: 600; margin-bottom: 28px; letter-spacing: 0.03em;
}
.lp-hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.8);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.lp-hero-sub {
  font-size: 17px; color: var(--text-dim); max-width: 500px;
  margin: 0 auto 36px; line-height: 1.75;
}
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lp-hero-cta .lp-btn { padding: 13px 28px; font-size: 15px; }

/* ── Stats bar ── */
.lp-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-top: 52px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 32px;
  max-width: 680px; margin-left: auto; margin-right: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.lp-stat { text-align: center; padding: 0 8px; }
.lp-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.lp-stat-unit { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.lp-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 5px; white-space: nowrap; }
.lp-stat-divider { width: 1px; height: 36px; background: var(--border); margin: 0 4px; }

/* ── Features ── */
.lp-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px;
}
.lp-feature-main {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.lp-feature-main:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.lp-feature-icon-lg {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: 16px;
  border: 1px solid; display: flex; align-items: center; justify-content: center;
}
.lp-feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.lp-feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.lp-feature-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-feature-tags span {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 10px; font-size: 11.5px; color: var(--text-dim); font-weight: 500;
}

/* ── Feature bullets ── */
.lp-bullets-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.lp-bullet {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px;
  transition: border-color var(--transition);
}
.lp-bullet:hover { border-color: var(--border-strong); }
.lp-bullet-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--bg-card2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.lp-bullet strong { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.lp-bullet span { font-size: 12.5px; color: var(--text-muted); }

/* ── Why cards ── */
.lp-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.lp-why-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 26px;
  transition: border-color var(--transition), transform var(--transition);
}
.lp-why-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.lp-why-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #fff;
}
.lp-why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.lp-why-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ── Pricing ── */
.lp-pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 820px; margin: 0 auto 32px;
}
.lp-pricing-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.lp-pricing-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.lp-pricing-card-featured {
  border-color: rgba(245,158,11,0.35);
  background: linear-gradient(180deg, rgba(245,158,11,0.05) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.1), 0 8px 32px rgba(0,0,0,0.2);
}
.lp-pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.lp-pricing-icon {
  width: 60px; height: 60px; border-radius: 14px; border: 1px solid;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.lp-pricing-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.lp-pricing-rate { font-size: 44px; font-weight: 900; letter-spacing: -2px; margin-bottom: 8px; }
.lp-pricing-rate span { font-size: 15px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.lp-pricing-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.lp-pricing-features { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-pricing-features li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.lp-pricing-note {
  text-align: center; font-size: 14px; color: var(--text-muted);
  background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.15);
  border-radius: 10px; padding: 14px 24px; max-width: 600px; margin: 0 auto;
}
.lp-pricing-note strong { color: #10b981; }

/* ── How it works ── */
.lp-how-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px;
  max-width: 900px; margin: 0 auto; align-items: start;
}
.lp-how-divider {
  width: 1px; background: var(--border); align-self: stretch; margin-top: 48px;
}
.lp-how-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 28px;
}
.lp-how-label-adv { background: rgba(99,102,241,0.1); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.2); }
.lp-how-label-pub { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.lp-how-steps { display: flex; flex-direction: column; gap: 24px; }
.lp-how-step { display: flex; gap: 16px; align-items: flex-start; }
.lp-how-num {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.lp-how-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.lp-how-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── Final CTA ── */
.lp-cta {
  position: relative; overflow: hidden;
  padding: 108px 24px;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}
.lp-cta-glow {
  position: absolute; width: 600px; height: 300px;
  bottom: -100px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}

/* ── Light mode overrides ── */
body.light-mode .lp-stats { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
body.light-mode .lp-why-card { background: #fff; }
body.light-mode .lp-pricing-card { background: #fff; }
body.light-mode .lp-feature-main { background: #fff; }
body.light-mode .lp-bullet { background: #fff; }
body.light-mode .lp-hero { background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.07) 0%, transparent 70%); }
body.light-mode .lp-cta { background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(99,102,241,0.06) 0%, transparent 70%); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lp-why-grid { grid-template-columns: 1fr 1fr; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .lp-how-grid { grid-template-columns: 1fr; }
  .lp-how-divider { display: none; }
  .lp-bullets-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lp-why-grid { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 20px; max-width: 100%; }
  .lp-stat-divider { display: none; }
  .lp-bullets-grid { grid-template-columns: 1fr; }
  .lp-hero { padding: 80px 20px 56px; }
  .lp-section { padding: 64px 0; }
}

/* ============================================================
   NOTIFICATION BELL
   ============================================================ */
.notif-wrap { position: relative; }
.notif-btn {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px;
  cursor: pointer; color: var(--text-dim);
  display: flex; align-items: center; position: relative;
  transition: all var(--transition);
}
.notif-btn:hover { border-color: var(--primary); color: var(--text); background: rgba(99,102,241,0.08); }
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: #fff;
  border-radius: 10px; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg);
}
.notif-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  width: 330px; background: var(--bg-card);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 999; overflow: hidden;
}
.notif-dropdown.open { display: block; animation: fadeUp 0.15s ease; }
.notif-item {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 16px; text-decoration: none; color: var(--text);
  transition: background var(--transition); border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-card2); }
.notif-item.unread { background: rgba(99,102,241,0.05); }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.notif-dot-success { background: #10b981; }
.notif-dot-danger  { background: #ef4444; }
.notif-dot-warning { background: #f59e0b; }
.notif-dot-info    { background: #6366f1; }

/* ============================================================
   SUPPORT TICKET
   ============================================================ */
.ticket-msg {
  padding: 14px 18px; border-radius: 12px;
  margin-bottom: 12px; max-width: 82%; line-height: 1.6;
}
.ticket-msg.user  { background: var(--bg-card2); border: 1px solid var(--border); margin-right: auto; }
.ticket-msg.admin { background: rgba(99,102,241,0.12); margin-left: auto; border: 1px solid rgba(99,102,241,0.25); }
.priority-urgent { color: #f87171; font-weight: 600; }
.priority-high   { color: #fbbf24; }
.priority-normal { color: #94a3b8; }
.priority-low    { color: #475569; }

/* ============================================================
   INVOICE
   ============================================================ */
@media print {
  .sidebar, .top-bar, .no-print { display: none !important; }
  .main-content { margin: 0 !important; }
  .page-body { padding: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .invoice-box { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ============================================================
   2FA
   ============================================================ */
.otp-input { letter-spacing: 8px; font-size: 26px; font-weight: 700; text-align: center; font-family: monospace; }
.qr-wrap { text-align: center; padding: 22px; background: #fff; border-radius: 14px; display: inline-block; box-shadow: 0 0 0 4px rgba(255,255,255,0.05); }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 10px;
  cursor: pointer; color: var(--text-dim); font-size: 15px;
  transition: all var(--transition); line-height: 1;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--text); }

/* ============================================================
   LIGHT MODE
   ============================================================ */
body.light-mode {
  --bg:            #f0f2f8;
  --bg-card:       #ffffff;
  --bg-card2:      #f6f8fd;
  --bg-input:      #f0f2f8;
  --bg-hover:      rgba(0,0,0,0.03);
  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --text:          #111827;
  --text-muted:    #6b7280;
  --text-dim:      #374151;
  --shadow:        0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.15);
}
/* ── Light mode sidebar ──────────────────────────────────── */
body.light-mode .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  border-right: 1px solid rgba(0,0,0,0.08);
  box-shadow: 2px 0 16px rgba(0,0,0,0.06);
}
body.light-mode .sidebar-brand {
  border-bottom-color: rgba(0,0,0,0.08);
}
body.light-mode .brand-link span {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.light-mode .sidebar-user {
  border-bottom-color: rgba(0,0,0,0.07);
}
body.light-mode .user-name { color: #111827; }
body.light-mode .nav-item {
  color: #4b5563;
}
body.light-mode .nav-item svg { color: #9ca3af; }
body.light-mode .nav-item:hover {
  background: rgba(99,102,241,0.07);
  color: #1e1b4b;
}
body.light-mode .nav-item:hover svg { color: #6366f1; }
body.light-mode .nav-item.active {
  background: rgba(99,102,241,0.1);
  color: #4338ca;
}
body.light-mode .nav-item.active svg { color: #6366f1; }
body.light-mode .nav-section-label { color: #c4c9d4; }
body.light-mode .sidebar-bottom {
  border-top-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}
body.light-mode .balance-chip {
  background: rgba(16,185,129,0.07);
  border-color: rgba(16,185,129,0.2);
}
body.light-mode .balance-label { color: #6b7280; }
body.light-mode .logout-btn { color: #9ca3af; }
body.light-mode .logout-btn svg { color: #9ca3af; }
body.light-mode .logout-btn:hover { color: #ef4444; background: rgba(239,68,68,0.07); }
body.light-mode .logout-btn:hover svg { color: #ef4444; }
/* Sidebar scrollbar in light mode */
body.light-mode .sidebar { scrollbar-color: transparent transparent; }
body.light-mode .sidebar:hover { scrollbar-color: rgba(99,102,241,0.25) transparent; }
body.light-mode .sidebar:hover::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.25); }
body.light-mode .sidebar:hover::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* ── Light mode rest ─────────────────────────────────────── */
body.light-mode .top-bar { background: rgba(248,250,253,0.92); border-bottom-color: rgba(0,0,0,0.08); }
body.light-mode .notif-dropdown { background: #fff; border-color: rgba(0,0,0,0.12); }
body.light-mode .notif-item:hover { background: #f6f8fd; }
body.light-mode code { background: #e5e7eb !important; color: #1f2937 !important; }
body.light-mode .stat-card { background: #fff; }
body.light-mode tbody tr:hover td { background: rgba(0,0,0,0.02); }
body.light-mode .auth-card { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* ── Mobile sidebar overlay ──────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  z-index: 99;
}
.sidebar-open .sidebar-overlay { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .app-layout .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .app-layout.sidebar-open .sidebar { transform: translateX(0); }
  .app-layout .main-content { margin-left: 0; }
  .menu-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .top-bar { padding: 0 16px; }
  .page-body { padding: 18px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 20px 44px; }
  .notif-dropdown { width: 290px; right: -40px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DOCS PAGE
   ============================================================ */
.docs-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99,102,241,0.2) transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 2px; }
.docs-search-wrap {
  position: relative;
  margin-bottom: 20px;
}
.docs-search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.docs-search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.docs-search:focus { border-color: var(--primary); }
.docs-nav-group { margin-bottom: 22px; }
.docs-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 0 6px;
}
.docs-nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 1px;
}
.docs-nav-link:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.docs-nav-link.active { background: rgba(99,102,241,0.15); color: var(--primary-light); font-weight: 500; }
.docs-content { padding-left: 40px; min-width: 0; }
.docs-article { margin-bottom: 64px; }
.docs-article:last-child { margin-bottom: 0; }
.docs-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.docs-section-header {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.docs-article h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.docs-article p { color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; }
.docs-article ul, .docs-article ol { color: var(--text-muted); padding-left: 20px; margin: 0 0 14px; line-height: 1.8; }
.docs-article li { margin-bottom: 4px; }
.docs-article strong { color: var(--text); }
.docs-article code {
  background: rgba(99,102,241,0.12) !important;
  color: var(--primary-light) !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: monospace;
}
.docs-code {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: monospace;
  font-size: 13px;
  color: #a5b4fc;
  overflow-x: auto;
  margin: 12px 0 20px;
  white-space: pre;
  line-height: 1.6;
}
.docs-callout {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}
.docs-callout-info {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
}
.docs-callout-warn {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fcd34d;
}
.docs-callout strong { color: inherit; }
.docs-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.docs-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.docs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.docs-table td:first-child { color: var(--text); font-weight: 500; }
.docs-steps { counter-reset: step; padding: 0; list-style: none; margin: 12px 0 20px; }
.docs-steps li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
  counter-increment: step;
}
.docs-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(99,102,241,0.2);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.docs-steps li div { color: var(--text-muted); line-height: 1.7; }
.docs-steps li strong { color: var(--text); display: block; margin-bottom: 2px; }
.docs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
.docs-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.docs-card h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.docs-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.docs-card-indigo { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.07); }
.docs-card-indigo h4 { color: #a5b4fc; }
.docs-card-green { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.07); }
.docs-card-green h4 { color: #34d399; }

/* Light mode overrides */
body.light-mode .docs-search { background: #fff; color: #1f2937; }
body.light-mode .docs-nav-link:hover { background: rgba(99,102,241,0.07); color: #1f2937; }
body.light-mode .docs-section-header { color: #111827; }
body.light-mode .docs-article h3 { color: #111827; }
body.light-mode .docs-article p,
body.light-mode .docs-article ul,
body.light-mode .docs-article ol,
body.light-mode .docs-steps li div { color: #4b5563; }
body.light-mode .docs-article strong { color: #111827; }
body.light-mode .docs-table td { color: #4b5563; }
body.light-mode .docs-table td:first-child { color: #111827; }
body.light-mode .docs-code { background: #f3f4f6; color: #4f46e5; border-color: rgba(0,0,0,0.1); }
body.light-mode .docs-card { background: #fff; }
body.light-mode .docs-table th { background: #f9fafb; }

@media (max-width: 900px) {
  .docs-wrap { grid-template-columns: 1fr; padding: 20px 16px; }
  .docs-sidebar { position: static; max-height: none; padding-right: 0; margin-bottom: 28px; }
  .docs-content { padding-left: 0; }
  .docs-cards { grid-template-columns: 1fr; }
}

/* ── Publisher websites grid (moved from inline in websites.php) ── */
.sites-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:16px; }
.site-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:20px;
  transition:border-color 0.2s;
}
.site-card.verified { border-color:rgba(16,185,129,0.25); }
.site-card.failed   { border-color:rgba(239,68,68,0.2); }
.site-card-header { display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; }
.site-favicon {
  width:32px; height:32px; border-radius:6px; background:var(--bg-card2);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  overflow:hidden; padding:6px;
}
.site-info { flex:1; overflow:hidden; }
.site-name { font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.site-url  { font-size:12px; color:var(--text-muted); }
.site-url:hover { color:var(--primary-light); }
.site-status-badge { flex-shrink:0; }
.site-card-meta    { display:flex; gap:14px; margin-bottom:14px; flex-wrap:wrap; }
.site-meta-item    { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-muted); }
.site-card-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* ============================================================
   TRAFFIC LINKS
   ============================================================ */
.tl-tips { padding: 22px 24px; }
.tl-tips-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.tl-tips-header .btn-ghost { color: var(--text-muted); flex-shrink: 0; }
.tl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.tl-step {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  position: relative;
}
.tl-step-icon {
  position: absolute;
  top: -10px; left: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bg-card);
}
.tl-step h4 {
  margin: 6px 0 6px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.tl-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.tl-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}
.tl-url {
  flex: 1;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 12px;
  color: #a5b4fc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal */
.tl-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 40px;
  overflow-y: auto;
}
.tl-modal.open { display: flex; }
.tl-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tl-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.tl-modal-header h3 { margin: 0; font-size: 17px; }
.tl-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0,0,0,0.15);
}
.tl-block-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.tl-block-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.tl-block-item input { margin: 0; flex-shrink: 0; }
.tl-block-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Light mode */
body.light-mode .tl-step { background: #fafbfd; }
body.light-mode .tl-step h4 { color: #111827; }
body.light-mode .tl-step p { color: #4b5563; }
body.light-mode .tl-modal-card { background: #fff; }
body.light-mode .tl-url { background: rgba(99,102,241,0.08); color: #4f46e5; }
body.light-mode .tl-block-grid { background: #f9fafb; }
body.light-mode .tl-block-item:hover { background: #f3f4f6; color: #111827; }

@media (max-width: 700px) {
  .tl-steps { grid-template-columns: 1fr; }
  .tl-block-grid { grid-template-columns: 1fr; }
  .tl-url-row { max-width: 100%; }
}

/* ── Native ad preview (campaign create form) ─────────────── */
.sa-native-preview {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 480px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.sa-native-thumb {
  width: 96px; height: 96px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  background-size: cover; background-position: center;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.sa-native-body { flex: 1; min-width: 0; }
.sa-native-sponsored {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.sa-native-headline {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; line-height: 1.35;
}
.sa-native-desc {
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 10px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sa-native-cta {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: var(--primary); color: #fff;
  padding: 6px 12px; border-radius: 6px;
}
