/* ============================================================
   a777web — Main stylesheet
   Light mode default (matches a777.lt aesthetic)
   Dark mode via [data-theme="dark"]
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

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

/* ── Light mode (default) ────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg2:         #f8fafc;
  --bg3:         #f1f5f9;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --blue:        #3b82f6;
  --blue-dark:   #2563eb;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --pro-gold:    #f59e0b;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --header-bg:   rgba(255,255,255,.96);
}

/* ── Dark mode ───────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0d1829;
  --bg2:         #181c27;
  --bg3:         #1e2333;
  --border:      #2a3047;
  --text:        #e2e8f0;
  --text-muted:  #8892a4;
  --text-dim:    #5a6479;
  --shadow:      0 2px 12px rgba(0,0,0,.4);
  --header-bg:   rgba(15,17,23,.96);
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .875em;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
}
main { flex: 1; min-width: 0; width: 100%; }

/* ── Container ────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--blue);  color: #fff; }
.btn-primary:hover  { background: var(--blue-dark); text-decoration: none; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg2); text-decoration: none; }
.btn-outline  { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-full     { width: 100%; }
.btn-lg       { padding: 13px 28px; font-size: 1rem; }
.btn-sm       { padding: 0 12px; font-size: .8rem; line-height: 1; height: 30px; }
.btn-cta      { background: var(--blue); color: #fff; padding: 8px 18px; border-radius: var(--radius); font-weight: 600; }
.btn-cta:hover { background: var(--blue-dark); text-decoration: none; }
.btn-upgrade  { background: linear-gradient(135deg,#f59e0b,#ef4444); color:#fff; padding:7px 16px; border-radius:var(--radius); font-size:.85rem; font-weight:600; }
.btn-upgrade:hover { opacity:.9; text-decoration:none; }
.btn-upgrade-inline { color: var(--amber); font-weight:600; }
.btn-danger-sm { display:inline-flex; align-items:center; background: transparent; color: var(--red); border: 1px solid var(--red); padding: 0 10px; border-radius: var(--radius); font-size:.8rem; line-height:1; height:30px; cursor:pointer; white-space:nowrap; }
.btn-danger-sm:hover { background: var(--red); color:#fff; }
.btn-copy { display:inline-flex; align-items:center; background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); padding: 0 12px; border-radius: var(--radius); font-size:.8rem; line-height:1; height:30px; cursor:pointer; white-space:nowrap; }
.btn-copy:hover { color: var(--text); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.logo {
  font-size: 1.3rem; font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { color: var(--text-muted); font-size: .9rem; padding: 6px 10px; border-radius: var(--radius); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
.main-nav a.btn-cta { color: #fff; background: var(--blue); }
.main-nav a.btn-cta:hover { color: #fff; background: var(--blue-dark); }
.main-nav a.btn-upgrade { color: #fff; }
.main-nav a.btn-upgrade:hover { color: #fff; }
.nav-email { font-size:.85rem; color: var(--text-muted); padding: 0 8px; }
.nav-logout { font-size:.85rem !important; }
.nav-toggle { display:none; background:none; border:none; color:var(--text); font-size:1.3rem; cursor:pointer; padding:6px; }
/* Right group: nav + theme toggle + hamburger */
.header-right { display:flex; align-items:center; gap:6px; }

/* Theme toggle */
.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: var(--radius); padding: 5px 9px; cursor: pointer;
  font-size: .9rem; display: flex; align-items: center; transition: all .15s;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }

/* ── Badges ───────────────────────────────────────────────── */
.badge-pro  { background: linear-gradient(135deg,#f59e0b,#ef4444); color:#fff; font-size:.7rem; font-weight:700; padding:2px 7px; border-radius:12px; vertical-align:middle; }
.badge-free { background: var(--bg3); color:var(--text-muted); font-size:.7rem; font-weight:600; padding:2px 7px; border-radius:12px; border:1px solid var(--border); vertical-align:middle; }
.plan-badge { padding:3px 10px; border-radius:12px; font-size:.8rem; font-weight:700; }
.plan-badge.plan-pro  { background:linear-gradient(135deg,#f59e0b,#ef4444); color:#fff; }
.plan-badge.plan-free { background:var(--bg3); color:var(--text-muted); border:1px solid var(--border); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { border-top:1px solid var(--border); padding:24px 0; margin-top: auto; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.footer-copy { font-size:.875rem; color:var(--text-dim); }
.footer-nav { display:flex; gap:20px; }
.footer-nav a { color:var(--text-muted); font-size:.875rem; }
.footer-nav a:hover { color:var(--text); text-decoration:none; }

/* ── Flash messages ───────────────────────────────────────── */
.flash { padding:12px 16px; border-radius:var(--radius); margin:16px 0; font-size:.9rem; }
.flash-ok    { background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.3); color:#059669; }
.flash-error { background:rgba(239,68,68,.1);  border:1px solid rgba(239,68,68,.3);  color:#dc2626; }
[data-theme="dark"] .flash-ok  { color:#6ee7b7; }
[data-theme="dark"] .flash-error { color:#fca5a5; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg2); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px;
}
.card-title { font-size:.95rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:16px; }

/* ── Auth pages ───────────────────────────────────────────── */
.page-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px;
  flex: 1;
}
.auth-box {
  width: 100%; max-width: 420px;
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:40px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align:center; margin-bottom:24px; }
.auth-logo a { font-size:1.5rem; font-weight:800; color:var(--text); letter-spacing:-.02em; }
.auth-logo a:hover { text-decoration:none; }
.auth-title { font-size:1.4rem; font-weight:700; text-align:center; margin-bottom:24px; }
.auth-desc  { color:var(--text-muted); margin-bottom:20px; font-size:.9rem; }
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:.875rem; color:var(--text-muted); margin-bottom:6px; font-weight:500; }
.form-group input {
  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 .15s;
}
.form-group input:focus { outline:none; border-color:var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.auth-switch { text-align:center; margin-top:20px; font-size:.875rem; color:var(--text-muted); }
.auth-terms  { text-align:center; margin-top:12px; font-size:.78rem; color:var(--text-dim); }

/* ── Sites page ───────────────────────────────────────────── */
.page-sites { padding-top:40px; padding-bottom:40px; }
.page-header { display:flex; align-items:center; gap:12px; margin-bottom:28px; }
.page-header h1 { font-size:1.75rem; font-weight:700; }
.add-site-card { margin-bottom:28px; }
.add-site-card h2 { font-size:1rem; font-weight:600; margin-bottom:14px; }
.add-site-form .input-row { display:flex; gap:10px; }
.add-site-form input[type=text] {
  flex:1; padding:10px 14px; background:var(--bg);
  border:1px solid var(--border); border-radius:var(--radius);
  color:var(--text); font-size:.95rem;
}
.add-site-form input:focus { outline:none; border-color:var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-hint { font-size:.8rem; color:var(--text-dim); margin-top:8px; }
.sites-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(420px,1fr)); gap:20px; }
.site-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; box-shadow:var(--shadow); min-width:0; overflow:hidden; }
.site-card-top { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.site-domain { display:flex; align-items:center; gap:8px; font-weight:600; }
.site-actions { display:flex; gap:6px; align-items:center; flex-wrap:nowrap; }
.site-actions .inline-form { display:contents; }
.site-card-kpis { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.site-kpi { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); padding:10px 14px; }
.site-kpi-label { font-size:.68rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; font-weight:600; margin-bottom:4px; }
.site-kpi-value { font-size:1.5rem; font-weight:700; color:var(--text); line-height:1.1; }
.site-kpi-sub { font-size:.7rem; color:var(--text-dim); margin-top:3px; }
.site-card-stats { margin-bottom:14px; }
.stat-pill { background:var(--bg3); border:1px solid var(--border); border-radius:20px; padding:3px 12px; font-size:.8rem; color:var(--text-muted); }
.site-snippet { margin-top:14px; border-top:1px solid var(--border); padding-top:14px; }
.snippet-label { font-size:.8rem; color:var(--text-dim); margin-bottom:8px; }
.snippet-wrap { display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; }
.snippet-code { font-size:.72rem; color:var(--text-muted); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inline-form { display:inline; }
.empty-state { text-align:center; padding:60px 20px; color:var(--text-muted); }
.empty-icon { font-size:3rem; margin-bottom:16px; }
.upgrade-hint {
  background:rgba(245,158,11,.06); border:1px solid rgba(245,158,11,.2);
  border-radius:var(--radius-lg); padding:16px 20px; margin-top:28px;
  font-size:.875rem; color:var(--text-muted);
}

/* ── Dashboard ────────────────────────────────────────────── */
.page-dashboard { padding-top:32px; padding-bottom:32px; }
.db-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:28px; }
.db-title { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.db-title h1 { font-size:1.5rem; font-weight:700; }
.back-link { color:var(--text-muted); font-size:.875rem; }
.db-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.range-tabs { display:flex; gap:3px; background:var(--bg3); border:1px solid var(--border); border-radius:var(--radius); padding:2px; height:30px; align-items:center; }
.range-tab { display:inline-flex; align-items:center; padding:0 10px; border-radius:5px; font-size:.82rem; color:var(--text-muted); line-height:1; height:24px; }
.range-tab:hover { color:var(--text); text-decoration:none; }
.range-tab.active { background:var(--bg2); color:var(--text); font-weight:600; box-shadow:var(--shadow); }
.plan-badge-free { font-size:.8rem; color:var(--text-dim); background:var(--bg3); border:1px solid var(--border); padding:3px 10px; border-radius:12px; }
.plan-badge-free-link { display:inline-flex; align-items:center; gap:4px; font-size:.8rem; font-weight:600; color:#b45309; background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.3); padding:4px 12px; border-radius:12px; text-decoration:none; transition:background .15s; white-space:nowrap; }
.plan-badge-free-link:hover { background:rgba(245,158,11,.18); text-decoration:none; }
[data-theme="dark"] .plan-badge-free-link { color:var(--amber); background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.3); }
.chart-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:48px 20px; color:var(--text-dim); font-size:.9rem; gap:8px; }

/* ── Share URL row (legacy, kept for compat) ──────────────────── */
.share-url-row { display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:nowrap; min-width:0; }
.share-url-code { font-size:.72rem; color:var(--text-muted); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Goal KPI cards ───────────────────────────────────────────── */
.goals-kpi-row { margin-top:0; }
.kpi-goal { border-top:2px solid rgba(16,185,129,.3); }
.kpi-goal .kpi-value { color:var(--green); }
.kpi-goal-manage { background:var(--bg3); border:1px dashed var(--border); }

/* ── Active state for toggle buttons (sharing on, alerts on) ──── */
.btn-active { background:var(--bg3) !important; border-color:var(--blue) !important; color:var(--blue) !important; }
.btn-active:hover { background:rgba(59,130,246,.1) !important; }

/* ── Secondary-small button (kept for legacy) ─────────────────── */
.btn-secondary-sm { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; font-size:.78rem; font-weight:500; border:1px solid var(--border); border-radius:6px; background:var(--bg2); color:var(--text-muted); text-decoration:none; cursor:pointer; transition:background .15s,border-color .15s; white-space:nowrap; }
.btn-secondary-sm:hover { background:var(--bg3); border-color:var(--text-dim); color:var(--text); text-decoration:none; }

.kpi-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:14px; margin-bottom:24px; }
.kpi-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px 18px; box-shadow:var(--shadow); }
.kpi-label { font-size:.78rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; }
.kpi-value { font-size:1.9rem; font-weight:700; }
.kpi-note  { font-size:.75rem; color:var(--text-dim); margin-top:4px; }

.chart-card { margin-bottom:24px; }

.stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.stat-card { overflow:hidden; }
.stat-card-wide { grid-column: span 2; }
.stat-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.stat-table th { text-align:left; color:var(--text-muted); font-size:.78rem; text-transform:uppercase; padding:0 0 10px; border-bottom:1px solid var(--border); }
.stat-table td { padding:8px 0; border-bottom:1px solid var(--border); }
.stat-table tr:last-child td { border-bottom:none; }
.td-page { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.no-data { color:var(--text-dim); font-style:italic; }
.pro-lock { font-size:.75rem; color:var(--amber); font-weight:normal; text-transform:none; letter-spacing:0; float:right; }
.upgrade-row td { text-align:center; padding:10px 0; font-size:.82rem; }
.donut-wrap { display:flex; justify-content:center; padding:10px 0; }

.link-type-badge { padding:2px 8px; border-radius:12px; font-size:.75rem; font-weight:600; }
.ltype-affiliate { background:rgba(245,158,11,.12); color:#b45309; border:1px solid rgba(245,158,11,.3); }
.ltype-external  { background:rgba(59,130,246,.1); color:var(--blue-dark); border:1px solid rgba(59,130,246,.3); }
.ltype-internal  { background:var(--bg3); color:var(--text-muted); border:1px solid var(--border); }
[data-theme="dark"] .ltype-affiliate { color: var(--amber); }
[data-theme="dark"] .ltype-external  { color: var(--blue); }

.upgrade-banner { background:linear-gradient(135deg,rgba(59,130,246,.06),rgba(16,185,129,.06)); border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; margin-top:32px; }
.upgrade-banner-inner { max-width:500px; }
.upgrade-banner strong { display:block; font-size:1.1rem; margin-bottom:12px; }
.upgrade-banner ul { margin:0 0 20px 20px; color:var(--text-muted); font-size:.9rem; line-height:2; }

/* ── Pricing page ─────────────────────────────────────────── */
.page-pricing { padding-top:60px; padding-bottom:60px; }
.pricing-hero { text-align:center; margin-bottom:48px; }
.pricing-hero h1 { font-size:2.25rem; font-weight:800; margin-bottom:12px; }
.pricing-sub { color:var(--text-muted); font-size:1.1rem; }

.competitor-table-wrap {
  margin-bottom:48px; overflow:hidden;
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--radius-lg); box-shadow:var(--shadow);
}
.competitor-table-wrap .section-title { padding:28px 28px 4px; margin-bottom:0; }
/* .section-title defined in landing page section below */
.table-scroll { overflow-x:auto; padding:16px 0 0; }
.competitor-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.competitor-table th { text-align:left; padding:10px 20px; background:var(--bg3); border-bottom:1px solid var(--border); color:var(--text-muted); font-size:.8rem; text-transform:uppercase; }
.competitor-table td { padding:12px 20px; border-bottom:1px solid var(--border); }
.competitor-table .row-us td { background:rgba(59,130,246,.05); }
.competitor-table .row-us td:first-child { border-left:3px solid var(--blue); }

/* ── Billing period toggle ────────────────────────────────── */
.billing-toggle-wrap {
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-bottom:32px;
}
.billing-label { font-size:.95rem; color:var(--text-muted); cursor:pointer; transition:color .15s; }
.billing-label.active-label { color:var(--text); font-weight:700; }
.billing-save-badge {
  background:rgba(16,185,129,.1); color:#059669;
  border:1px solid rgba(16,185,129,.3);
  font-size:.72rem; font-weight:700; padding:2px 7px;
  border-radius:12px; vertical-align:middle; margin-left:4px;
}
[data-theme="dark"] .billing-save-badge { color:#6ee7b7; }
.billing-switch { position:relative; display:inline-block; width:44px; height:24px; cursor:pointer; }
.billing-switch input { opacity:0; width:0; height:0; position:absolute; }
.billing-switch-thumb {
  position:absolute; inset:0;
  background:var(--bg3); border:1px solid var(--border);
  border-radius:24px; transition:.2s;
}
.billing-switch-thumb::before {
  content:''; position:absolute;
  width:18px; height:18px; left:2px; top:2px;
  background:var(--blue); border-radius:50%; transition:.2s;
}
.billing-switch input:checked + .billing-switch-thumb { background:rgba(59,130,246,.1); border-color:var(--blue); }
.billing-switch input:checked + .billing-switch-thumb::before { transform:translateX(20px); }

.plan-cards { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:48px; }
.plan-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; position:relative; box-shadow:var(--shadow); }
.plan-card-pro { border-color:var(--blue); background:linear-gradient(135deg,rgba(59,130,246,.04),rgba(16,185,129,.02)); }
.plan-badge-top { position:absolute; top:-1px; right:20px; background:var(--blue); color:#fff; font-size:.75rem; font-weight:700; padding:3px 12px; border-radius:0 0 8px 8px; }
.plan-name  { font-size:1rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }
.plan-price { font-size:2.5rem; font-weight:800; margin-bottom:4px; }
.plan-period { font-size:1rem; font-weight:400; color:var(--text-muted); }
.plan-price-usd { font-size:.85rem; color:var(--text-muted); margin-bottom:24px; }
.plan-features { list-style:none; margin:0 0 28px; display:flex; flex-direction:column; gap:10px; }
.plan-features li { font-size:.9rem; color:var(--text-muted); }
.plan-features li:has(strong) { color:var(--text); }
.plan-current-badge { display:block; text-align:center; padding:10px; background:var(--bg3); border-radius:var(--radius); font-size:.85rem; color:var(--text-muted); border:1px solid var(--border); }
.plan-active-msg { background:rgba(16,185,129,.08); border:1px solid rgba(16,185,129,.3); color:#059669; padding:12px; border-radius:var(--radius); font-size:.875rem; }
[data-theme="dark"] .plan-active-msg { color:#6ee7b7; }
.btn-plan { width:100%; margin-top:4px; }

.payment-tabs { display:flex; gap:8px; margin-bottom:16px; }
.pay-tab { flex:1; padding:9px; border-radius:var(--radius); background:var(--bg3); border:1px solid var(--border); color:var(--text-muted); cursor:pointer; font-size:.875rem; font-weight:600; transition: all .15s; }
.pay-tab.active { background:var(--blue); border-color:var(--blue); color:#fff; }
.pay-method-panel { display:none; }
.pay-method-panel.active { display:block; }
.stripe-input { padding:12px; background:var(--bg3); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:12px; }
.stripe-error { color:var(--red); font-size:.85rem; margin-bottom:10px; min-height:20px; }

.faq-section { margin-top:48px; }
.faq-section h2 { font-size:1.5rem; font-weight:700; margin-bottom:24px; }
.faq-list { display:flex; flex-direction:column; gap:8px; }
.faq-item { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius); }
.faq-item summary { padding:16px 20px; cursor:pointer; font-weight:600; list-style:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'＋'; float:right; color:var(--text-muted); }
.faq-item[open] summary::after { content:'－'; }
.faq-item p { padding:0 20px 16px; color:var(--text-muted); font-size:.9rem; }

/* ── Landing page ─────────────────────────────────────────── */
.hero { padding:90px 0 80px; }
.hero-inner { display:grid; grid-template-columns:55fr 45fr; gap:60px; align-items:center; }
.hero-badge { display:inline-block; background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.3); color:var(--blue); font-size:.8rem; font-weight:600; padding:4px 14px; border-radius:20px; margin-bottom:20px; }
[data-theme="dark"] .hero-badge { background:rgba(59,130,246,.15); border-color:rgba(59,130,246,.4); }
.hero-title { font-size:3.25rem; font-weight:800; line-height:1.12; margin-bottom:20px; letter-spacing:-.03em; }
.hero-title em { font-style:normal; color:var(--blue); }
.hero-sub { font-size:1.1rem; color:var(--text-muted); margin-bottom:28px; line-height:1.7; }
.hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.hero-social-proof { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; }
.hero-social-proof span { font-size:.82rem; color:var(--text-muted); white-space:nowrap; }

/* Demo card */
.demo-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow); }
.demo-header { display:flex; align-items:center; gap:6px; padding:12px 16px; background:var(--bg3); border-bottom:1px solid var(--border); }
.demo-dot { width:12px; height:12px; border-radius:50%; }
.demo-dot.red { background:#ef4444; } .demo-dot.yellow { background:#f59e0b; } .demo-dot.green { background:#10b981; }
.demo-title { font-size:.8rem; color:var(--text-muted); margin-left:6px; }
.demo-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border-bottom:1px solid var(--border); }
.demo-kpi { padding:14px; background:var(--bg2); text-align:center; }
.demo-kpi-val { display:block; font-size:1.15rem; font-weight:700; }
.demo-kpi-label { display:block; font-size:.72rem; color:var(--text-muted); }
.demo-chart-bars { display:flex; align-items:flex-end; gap:2px; padding:16px; height:100px; }
.demo-bar { flex:1; background:var(--blue); border-radius:2px 2px 0 0; opacity:.6; min-height:4px; }
.demo-table { padding:0 16px 12px; }
.demo-table-row { display:flex; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--border); font-size:.82rem; color:var(--text-muted); }
.demo-table-row:last-child { border-bottom:none; }

/* Sections */
.section-how, .section-features, .section-pricing-preview { padding:80px 0; }
.section-how { background:var(--bg2); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-pricing-preview { background:var(--bg2); border-top:1px solid var(--border); text-align:center; }
.section-sub { color:var(--text-muted); margin-bottom:24px; font-size:1.05rem; }
/* Section title — centred, heavier */
.section-title { font-size:1.75rem; font-weight:800; letter-spacing:-.02em; margin-bottom:36px; text-align:center; }

.steps { display:grid; grid-template-columns:repeat(2,1fr); gap:32px 48px; margin-top:8px; }
.step { text-align:center; }
.step-num { width:44px; height:44px; background:var(--blue); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:800; margin:0 auto 14px; color:#fff; }
.step h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.step p { color:var(--text-muted); font-size:.875rem; }

.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.feature-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow); }
.feature-icon { font-size:1.8rem; margin-bottom:12px; }
.feature-card h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.feature-card p { color:var(--text-muted); font-size:.875rem; line-height:1.6; }

/* ── Section headings ─────────────────────────────────────── */
.section-heading { text-align:center; margin-bottom:8px; }
.section-heading h2 { font-size:1.75rem; font-weight:800; letter-spacing:-.02em; }

/* ── Admin ────────────────────────────────────────────────── */
.page-admin { padding-top:40px; padding-bottom:40px; }
.admin-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:28px; }
.admin-header h1 { font-size:1.75rem; font-weight:700; }
.admin-tabs { display:flex; gap:4px; background:var(--bg3); border:1px solid var(--border); border-radius:var(--radius); padding:3px; }
.admin-tabs a { padding:7px 16px; border-radius:6px; color:var(--text-muted); font-size:.875rem; }
.admin-tabs a.active { background:var(--bg2); color:var(--text); font-weight:600; box-shadow:var(--shadow); }
.admin-tabs a:hover { text-decoration:none; color:var(--text); }

.admin-table { width:100%; border-collapse:collapse; font-size:.875rem; margin-top:8px; }
.admin-table th { text-align:left; padding:10px 12px; background:var(--bg3); border-bottom:1px solid var(--border); color:var(--text-muted); font-size:.78rem; text-transform:uppercase; }
.admin-table td { padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
.admin-table tr:hover td { background:var(--bg3); }

.status-badge { padding:2px 8px; border-radius:12px; font-size:.78rem; font-weight:600; }
.status-paid     { background:rgba(16,185,129,.1); color:#059669; }
.status-pending  { background:rgba(245,158,11,.1); color:#b45309; }
.status-failed   { background:rgba(239,68,68,.1); color:#dc2626; }
.status-refunded { background:var(--bg3); color:var(--text-dim); }
[data-theme="dark"] .status-paid    { color:#6ee7b7; }
[data-theme="dark"] .status-pending { color:var(--amber); }
[data-theme="dark"] .status-failed  { color:#fca5a5; }

.settings-form { max-width:600px; }
.settings-section { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; margin-bottom:20px; }
.settings-section h3 { font-size:1rem; font-weight:700; margin-bottom:16px; }
.settings-row { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); gap:20px; }
.settings-row:last-child { border-bottom:none; }
.settings-row label { font-size:.875rem; color:var(--text-muted); }
.settings-row input, .settings-row select {
  width:160px; padding:7px 10px; background:var(--bg);
  border:1px solid var(--border); border-radius:var(--radius);
  color:var(--text); font-size:.875rem;
}

/* ── Mobile nav open state ────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute; top: 60px; right: 12px; left: auto;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    gap: 2px;
    z-index: 99;
    box-shadow: var(--shadow);
  }
  .main-nav.nav-open a,
  .main-nav.nav-open .nav-email,
  .main-nav.nav-open .btn-cta,
  .main-nav.nav-open .btn-upgrade {
    display: flex !important;
    width: 100%;
    border-radius: var(--radius);
    padding: 9px 14px;
  }
  .main-nav.nav-open .btn-cta { color: #fff !important; justify-content: center; }
  .main-nav.nav-open .btn-upgrade { justify-content: center; }
  .main-nav.nav-open .nav-email { font-size:.82rem; cursor:default; }
}

/* ── Tablet — hero collapses here ─────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 70px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 2.5rem; }
  .hero-demo { max-width: 600px; margin: 0 auto; width: 100%; }
  .demo-kpis { grid-template-columns: repeat(4,1fr); }
}

/* ── Responsive (≤768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { position: sticky; top: 0; z-index: 100; }
  .hero { padding: 50px 0 44px; }
  .hero-title { font-size: 2rem; }
  .main-nav { display:none; }
  .main-nav .btn-cta, .main-nav .btn-upgrade { display:none; }
  .nav-toggle { display:block; }
  .plan-cards { grid-template-columns:1fr; overflow:hidden; }
  .plan-card { padding:24px; }
  .plan-badge-top { font-size:.7rem; padding:3px 10px; }
  .kpi-row { grid-template-columns:repeat(2,1fr); }
  .stat-card-wide { grid-column:span 1; }
  .db-header { flex-direction:column; }
  .db-controls { width: 100%; }
  .range-tabs { flex-wrap: wrap; }
  .admin-header { flex-direction:column; align-items:flex-start; }
  .stats-grid { grid-template-columns:1fr; }
  .demo-kpis { grid-template-columns:repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-nav { flex-wrap: wrap; gap: 12px; }
  .pricing-hero h1 { font-size: 1.75rem; }
  .plan-price { font-size: 2rem; }
  .page-auth { padding: 30px 16px 24px; }
  .auth-box { padding: 28px 20px; }
  .page-sites, .page-admin { padding-top: 24px; padding-bottom: 24px; }
  .sites-grid { grid-template-columns: 1fr; }
  .add-site-form .input-row { flex-direction: column; }
  .admin-tabs { flex-wrap: wrap; }
  .settings-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .settings-row input, .settings-row select { width: 100%; }
  .section-how, .section-features, .section-pricing-preview { padding: 50px 0; }
  .section-title { font-size: 1.4rem; margin-bottom: 28px; }
  .hero-demo { max-width: 100%; }
  .competitor-table-wrap .section-title { padding: 20px 20px 4px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .hero-social-proof { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .header-inner { gap: 8px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-demo { max-width: 100%; }
}

/* ============================================================
   Landing page (index.php) — lp-* namespace
   ============================================================ */

/* ── Body ─────────────────────────────────────────────────── */
.lp-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
[data-theme="dark"] .lp-body {
  background: #0d1829;
}

/* ── Header ───────────────────────────────────────────────── */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
[data-theme="dark"] .lp-header {
  background: rgba(13,24,41,0.92);
  border-bottom-color: rgba(255,255,255,.06);
}
.lp-header--scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.09); }

.lp-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.lp-logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.lp-logo:hover { text-decoration: none; }
.lp-logo-icon {
  width: 32px; height: 32px;
  background: var(--blue-dark); color: #fff;
  font-size: 1.2rem; font-weight: 800;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.lp-logo-icon--sm {
  width: 24px; height: 24px; font-size: .9rem;
}
.lp-logo-name {
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--text);
}

.lp-nav {
  display: flex; align-items: center; gap: 40px;
  font-size: .875rem; font-weight: 500;
  margin-left: auto;
}
.lp-nav a { color: var(--text-muted); text-decoration: none; transition: color .15s; padding: 11px 4px; }
.lp-nav a:hover { color: var(--blue-dark); text-decoration: none; }
.lp-nav-cta {
  background: var(--blue-dark); color: #fff !important;
  padding: 9px 36px; border-radius: 50px;
  font-weight: 700; font-size: .85rem;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.lp-nav .lp-nav-cta { padding: 9px 36px; }
.lp-nav-cta:hover { background: #1d4ed8 !important; box-shadow: 0 6px 20px rgba(37,99,235,.4); }

.lp-header-right { display: flex; align-items: center; gap: 8px; }
.lp-theme-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; padding: 6px 8px; border-radius: 50%;
  color: #374151;
  display: flex; align-items: center;
  transition: background .15s, color .15s;
}
[data-theme="dark"] .lp-theme-toggle { color: rgba(255,255,255,0.8); }
.lp-theme-toggle:hover { background: var(--bg3); }
.lp-nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.3rem; cursor: pointer; color: var(--text);
  padding: 4px 8px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.lp-hero {
  padding: 130px 0 96px;
  background:
    radial-gradient(circle at 80% 10%, rgba(59,130,246,.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(59,130,246,.05) 0%, transparent 40%),
    var(--bg);
}
[data-theme="dark"] .lp-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(59,130,246,.15) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(59,130,246,.08) 0%, transparent 40%),
    #0d1829;
}

.lp-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

/* Badge pill */
.lp-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 50px;
  background: rgba(59,130,246,.1); color: #2563eb;
  font-size: .8rem; font-weight: 700; margin-bottom: 24px;
}
[data-theme="dark"] .lp-badge-pill { background: rgba(59,130,246,.2); color: #93c5fd; }
.lp-badge-dot {
  position: relative; display: inline-flex;
  width: 8px; height: 8px;
}
.lp-badge-dot span {
  display: block; width: 8px; height: 8px;
  border-radius: 50%; background: #3b82f6;
}
.lp-badge-dot::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%; background: rgba(59,130,246,.5);
  animation: lp-ping 1.4s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes lp-ping {
  0%   { transform: scale(1); opacity: .6; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

.lp-hero-h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 20px; color: var(--text);
}
.lp-gradient-text {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-muted); margin-bottom: 36px; max-width: 520px;
}

.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.lp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-dark); color: #fff;
  font-weight: 700; font-size: .95rem;
  padding: 15px 28px; border-radius: 16px;
  text-decoration: none; transition: all .15s;
  box-shadow: 0 8px 28px rgba(37,99,235,.3);
}
.lp-btn-primary:hover { background: #1d4ed8; box-shadow: 0 10px 32px rgba(37,99,235,.4); text-decoration: none; transform: translateY(-1px); }
.lp-btn-ghost {
  display: inline-flex; align-items: center;
  background: var(--bg); color: var(--text);
  font-weight: 700; font-size: .95rem;
  padding: 15px 28px; border-radius: 16px;
  text-decoration: none; transition: all .15s;
  border: 1.5px solid var(--border);
}
.lp-btn-ghost:hover { background: var(--bg3); text-decoration: none; }

.lp-hero-checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
}
.lp-check-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text-muted);
}
.lp-check-item::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(16,185,129,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* Demo card */
.lp-hero-demo { position: relative; }
.lp-demo-glow {
  position: absolute; inset: -20px;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.14));
  border-radius: 32px; filter: blur(32px); z-index: 0;
}
.lp-demo-card {
  position: relative; z-index: 1;
  background: var(--bg); border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,.12);
  overflow: hidden;
}
[data-theme="dark"] .lp-demo-card {
  background: #111e35;
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .lp-demo-titlebar {
  background: #0d1829;
  border-bottom-color: rgba(255,255,255,.07);
}
[data-theme="dark"] .lp-demo-kpi {
  background: #0d1829;
}
.lp-demo-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.lp-demo-dots { display: flex; gap: 7px; }
.lp-dot { width: 12px; height: 12px; border-radius: 50%; }
.lp-dot--r { background: #ef4444; }
.lp-dot--y { background: #f59e0b; }
.lp-dot--g { background: #22c55e; }
.lp-demo-url {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim);
}
.lp-demo-body { padding: 20px; }

.lp-demo-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 20px; }
.lp-demo-kpi {
  background: var(--bg2); border-radius: 10px; padding: 10px 12px;
}
.lp-kpi-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 4px; }
.lp-kpi-val { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.lp-kpi-val--blue { color: var(--blue-dark); }
.lp-kpi-val--red  { color: var(--red); }

.lp-demo-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 100px; margin-bottom: 18px;
}
.lp-demo-bar {
  flex: 1; background: rgba(59,130,246,.25); border-radius: 3px 3px 0 0;
  transition: background .15s;
}
.lp-demo-bar:hover { background: #3b82f6; }
.lp-demo-bar:nth-child(4),
.lp-demo-bar:nth-child(8) { background: #2563eb; }

.lp-demo-table { display: flex; flex-direction: column; gap: 2px; }
.lp-demo-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 8px; border-radius: 8px; font-size: .82rem;
  transition: background .15s;
}
.lp-demo-row:hover { background: var(--bg2); }
.lp-demo-row span:first-child { color: var(--text-muted); }
.lp-demo-row span:last-child  { font-weight: 700; }

/* ── Section commons ──────────────────────────────────────── */
.lp-section { padding: 96px 0; }
.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lp-section-h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900; letter-spacing: -.025em;
  color: var(--text);
}
.lp-section-head { text-align: center; margin-bottom: 64px; }
.lp-section-sub { font-size: 1.1rem; color: var(--text-muted); margin-top: 12px; }

/* ── How it works ─────────────────────────────────────────── */
.lp-how {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .lp-how {
  background: #0a1221;
  border-color: rgba(255,255,255,.06);
}
.lp-how .lp-section-h2 { text-align: center; margin-bottom: 60px; }

.lp-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative;
}
.lp-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.lp-step--line { position: relative; }
.lp-step--line::after {
  content: '';
  position: absolute; top: 32px; left: calc(50% + 32px);
  width: calc(100% - 40px); height: 2px;
  background: var(--border); z-index: 0;
}
.lp-step-num {
  width: 64px; height: 64px;
  background: var(--blue-dark); color: #fff;
  font-size: 1.5rem; font-weight: 900;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
  box-shadow: 0 6px 20px rgba(37,99,235,.3);
  transition: transform .2s;
}
.lp-step:hover .lp-step-num { transform: translateY(-4px); }
.lp-step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.lp-step p  { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

/* ── Features ─────────────────────────────────────────────── */
.lp-benefit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px;
}
.lp-benefit-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.lp-benefit-check {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(37,99,235,.1); color: #2563eb;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
[data-theme="dark"] .lp-benefit-check { background: rgba(37,99,235,.2); }
.lp-benefit-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.lp-benefit-desc  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Pricing CTA ──────────────────────────────────────────── */
.lp-pricing-cta {
  background: #2563eb; color: #fff;
  padding: 96px 0; overflow: hidden; position: relative;
}
[data-theme="dark"] .lp-pricing-cta { background: #1a3260; }
.lp-pricing-orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none;
}
.lp-pricing-orb--tr {
  width: 360px; height: 360px;
  background: rgba(255,255,255,.1);
  top: -120px; right: -100px;
}
.lp-pricing-orb--bl {
  width: 260px; height: 260px;
  background: rgba(147,197,253,.18);
  bottom: -80px; left: -80px;
}
.lp-pricing-inner {
  position: relative; z-index: 1; text-align: center;
}
.lp-pricing-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 900; letter-spacing: -.025em; margin-bottom: 20px;
}
.lp-pricing-inner p {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}
.lp-pricing-inner p strong { color: #fff; }
.lp-pricing-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 20px;
}
.lp-pricing-btn {
  display: inline-block;
  background: #fff; color: #2563eb;
  font-weight: 800; font-size: 1rem;
  padding: 16px 36px; border-radius: 16px;
  text-decoration: none; transition: all .15s;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.lp-pricing-btn:hover { background: #f1f5f9; text-decoration: none; transform: translateY(-1px); }
.lp-pricing-note { font-size: .85rem; color: rgba(255,255,255,.65); font-style: italic; }

/* ── Footer ───────────────────────────────────────────────── */
.lp-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.lp-footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
}
.lp-footer-brand {
  display: flex; align-items: center; gap: 8px;
}
.lp-footer-copy { font-size: .85rem; color: var(--text-dim); margin-left: 8px; }
.lp-footer-nav {
  display: flex; gap: 28px;
  font-size: .875rem; font-weight: 500;
}
.lp-footer-nav a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.lp-footer-nav a:hover { color: var(--blue-dark); }
.lp-footer-social { display: flex; gap: 12px; }
.lp-social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.lp-social-btn:hover { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.3); text-decoration: none; }

/* ── Landing page responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .lp-hero { padding: 110px 0 80px; }
  .lp-hero-demo { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .lp-nav { display: none; }
  .lp-nav--open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px; z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .lp-nav--open a { padding: 10px 14px; border-radius: 10px; color: var(--text); }
  .lp-nav--open .lp-nav-cta { justify-content: center; border-radius: 10px; }
  .lp-nav-toggle { display: block; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-step--line::after { display: none; }
  .lp-benefit-grid { grid-template-columns: 1fr; }
  .lp-section { padding: 64px 0; }
  .lp-demo-kpis { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .lp-hero { padding: 96px 0 60px; }
  .lp-steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-benefit-grid { grid-template-columns: 1fr; }
  .lp-hero-checks { grid-template-columns: 1fr; }
  .lp-hero-h1 { font-size: 2rem; }
  .lp-footer-nav { flex-wrap: wrap; gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   PRICING PAGE  (pr-* namespace)
   ═══════════════════════════════════════════════════════════ */

/* ── Page body ─────────────────────────────────────────────── */
.pr-body {
  background: var(--bg);
  color: var(--text);
}

/* ── Hero ──────────────────────────────────────────────────── */
.pr-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: var(--bg);
}
.pr-hero-inner { max-width: 1100px; margin: 0 auto; }
.pr-hero-h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}
.pr-hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ── Billing toggle ────────────────────────────────────────── */
.pr-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}
.pr-toggle-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 6px;
}
.pr-toggle-label {
  font-size: .875rem;
  font-weight: 700;
  color: #2563eb;
  transition: color .2s;
}
.pr-toggle-label--dim { color: var(--text-muted); }
.pr-toggle-label--active { color: #2563eb !important; }
.pr-save-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}
[data-theme="dark"] .pr-save-badge { background: rgba(22,163,74,.2); color: #4ade80; }

.pr-toggle-btn {
  width: 52px; height: 30px;
  background: #e2e8f0;
  border-radius: 999px;
  border: none; cursor: pointer; padding: 3px;
  position: relative; transition: background .2s;
}
[data-theme="dark"] .pr-toggle-btn { background: #334155; }
.pr-toggle-circle {
  display: block;
  width: 24px; height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s;
}
[data-theme="dark"] .pr-toggle-circle { background: #94a3b8; }
.pr-toggle-circle--on { transform: translateX(22px); }

/* ── Plan cards ────────────────────────────────────────────── */
.pr-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.pr-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.pr-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.pr-card--featured {
  border-color: #2563eb;
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(37,99,235,.12);
  position: relative;
}
.pr-most-popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.pr-card-head { margin-bottom: 28px; }
.pr-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.pr-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.1;
}
.pr-price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pr-plan-desc {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.pr-plan-sub {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Feature list ──────────────────────────────────────────── */
.pr-features {
  list-style: none;
  padding: 0; margin: 0 0 32px;
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.pr-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--text);
}
.pr-feat--off { color: var(--text-dim); }
.pr-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
}
.pr-check--green {
  background: #dcfce7;
  color: #16a34a;
}
.pr-check--green::before { content: '✓'; font-weight: 900; }
[data-theme="dark"] .pr-check--green { background: rgba(22,163,74,.2); color: #4ade80; }

.pr-check--blue {
  background: #dbeafe;
  color: #2563eb;
}
.pr-check--blue::before { content: '✓'; font-weight: 900; }
[data-theme="dark"] .pr-check--blue { background: rgba(37,99,235,.2); color: #60a5fa; }

.pr-check--x {
  background: #f1f5f9;
  color: #cbd5e1;
}
.pr-check--x::before { content: '✕'; font-weight: 900; font-size: .65rem; }
[data-theme="dark"] .pr-check--x { background: rgba(255,255,255,.06); color: #475569; }

/* ── CTA buttons ───────────────────────────────────────────── */
.pr-btn {
  display: block;
  padding: 15px 24px;
  border-radius: 18px;
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.pr-btn--outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
}
.pr-btn--outline:hover {
  background: var(--bg);
  border-color: #94a3b8;
  text-decoration: none;
}
.pr-btn--primary {
  background: #2563eb;
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(37,99,235,.25);
}
.pr-btn--primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Comparison table ──────────────────────────────────────── */
.pr-compare {
  padding: 96px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pr-section-h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.025em;
  text-align: center;
  margin-bottom: 72px;
  color: var(--text);
}
.pr-table-wrap { overflow-x: auto; }

/* New card-column comparison table */
.pr-ctable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

/* Header row */
.pr-ct-spacer { width: 220px; }
.pr-ct-th {
  padding-bottom: 32px;
  text-align: center;
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(100,116,139,.5);
  vertical-align: bottom;
}
.pr-ct-th--brand {
  padding: 0;
  vertical-align: bottom;
}
.pr-ct-brand-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 32px 16px 24px;
  background: rgba(37,99,235,.05);
  border: 2px solid #2563eb;
  border-bottom: none;
  border-radius: 28px 28px 0 0;
}
[data-theme="dark"] .pr-ct-brand-head { background: rgba(37,99,235,.12); }
.pr-ct-brand-name {
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #2563eb;
}
.pr-ct-star { font-size: 1rem; margin-top: 4px; line-height: 1; }

/* Body rows */
.pr-ct-row td { border-bottom: 1px solid var(--border); }
.pr-ct-row--last td { border-bottom: none; }

.pr-ct-label {
  padding: 26px 32px 26px 0;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  white-space: nowrap;
}
.pr-ct-cell {
  text-align: center;
  padding: 20px 8px;
}
.pr-ct-cell--brand {
  background: rgba(37,99,235,.05);
  border-left: 2px solid #2563eb;
  border-right: 2px solid #2563eb;
}
[data-theme="dark"] .pr-ct-cell--brand { background: rgba(37,99,235,.1); }
.pr-ct-cell--brand-last {
  border-bottom: 2px solid #2563eb !important;
  border-radius: 0 0 28px 28px;
}

/* Price cells */
.pr-ct-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-muted);
}
.pr-ct-price--brand {
  color: #2563eb;
  font-size: 1.05rem;
}

/* Icon badges */
.pr-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
}
.pr-ico--yes {
  background: #dcfce7;
  color: #16a34a;
}
[data-theme="dark"] .pr-ico--yes { background: rgba(22,163,74,.25); color: #4ade80; }
.pr-ico--yes-dim {
  background: #f0fdf4;
  color: rgba(22,163,74,.55);
}
[data-theme="dark"] .pr-ico--yes-dim { background: rgba(22,163,74,.1); color: rgba(74,222,128,.5); }
.pr-ico--no {
  background: #fff1f2;
  color: rgba(239,68,68,.7);
}
[data-theme="dark"] .pr-ico--no { background: rgba(239,68,68,.12); color: rgba(239,68,68,.6); }

/* ── FAQ ───────────────────────────────────────────────────── */
.pr-faq { padding: 88px 24px; background: var(--bg); scroll-margin-top: 64px; }
.pr-faq-inner { max-width: 720px; margin: 0 auto; }
.pr-faq-list { display: flex; flex-direction: column; gap: 12px; }
.pr-faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow .15s;
}
.pr-faq-item[open] { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.pr-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  gap: 16px;
}
.pr-faq-q::-webkit-details-marker { display: none; }
.pr-faq-arrow {
  font-size: .75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.pr-faq-item[open] .pr-faq-arrow { transform: rotate(180deg); }
.pr-faq-a {
  padding: 0 24px 22px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Pricing page responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .pr-cards { grid-template-columns: 1fr; }
  .pr-hero { padding: 110px 20px 60px; }
  .pr-hero-h1 { font-size: 2.2rem; }
  .pr-card { padding: 28px; border-radius: 24px; }
  .pr-compare, .pr-faq { padding: 64px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES  (au-* namespace)
   ═══════════════════════════════════════════════════════════ */

.au-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Main / card layout ────────────────────────────────────── */
.au-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 64px;
}
.au-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.07);
}
[data-theme="dark"] .au-card { box-shadow: none; }

/* ── Flash messages ────────────────────────────────────────── */
.au-flash {
  border-radius: 14px;
  padding: 12px 16px;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.au-flash--ok  { background: #dcfce7; color: #15803d; }
.au-flash--err { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .au-flash--ok  { background: rgba(22,163,74,.2);  color: #4ade80; }
[data-theme="dark"] .au-flash--err { background: rgba(239,68,68,.15); color: #f87171; }

/* ── Typography ────────────────────────────────────────────── */
.au-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 6px;
}
.au-desc {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
}

/* ── Form fields ───────────────────────────────────────────── */
.au-form { display: flex; flex-direction: column; gap: 16px; }
.au-field { display: flex; flex-direction: column; gap: 6px; }
.au-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 4px;
}
.au-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  outline: none;
  transition: box-shadow .15s;
  box-sizing: border-box;
}
.au-input::placeholder { color: var(--text-dim); font-weight: 400; }
.au-input:focus { box-shadow: 0 0 0 2.5px #2563eb; }
[data-theme="dark"] .au-input { background: rgba(255,255,255,.06); }
.au-textarea { resize: vertical; min-height: 120px; line-height: 1.6; font-family: inherit; }

/* ── Submit button ─────────────────────────────────────────── */
.au-btn {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,.28);
  transition: background .15s, transform .1s;
  margin-top: 4px;
}
.au-btn:hover  { background: #1d4ed8; }
.au-btn:active { transform: scale(.98); }

/* ── Links / footer row ────────────────────────────────────── */
.au-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.au-link-primary {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.au-link-primary:hover { text-decoration: underline; }
.au-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.au-switch {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ── Terms line ────────────────────────────────────────────── */
.au-terms {
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 0 2px;
  margin: 0;
}
.au-terms a { color: var(--text-muted); font-weight: 700; }

/* ── Back link (forgot page) ───────────────────────────────── */
.au-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .15s;
}
.au-back:hover { color: #2563eb; text-decoration: none; }

/* ── Nav active state ──────────────────────────────────────── */
.lp-nav .lp-nav-active { color: #2563eb; }

/* ── Prose pages (Privacy, Terms, Docs) ────────────────────── */
.lp-prose-main {
  min-height: calc(100vh - 64px);
  padding: 100px 24px 80px;
}
.lp-prose-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.lp-prose-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 12px;
}
.lp-prose-h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.15;
}
.lp-prose-meta {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 56px;
}
.lp-prose-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.lp-prose-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.lp-prose-section p,
.lp-prose-section li {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.lp-prose-section ul {
  margin: 10px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-prose-section a { color: #2563eb; font-weight: 600; text-decoration: none; }
.lp-prose-section a:hover { text-decoration: underline; }
.lp-prose-section code {
  font-size: .82em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}
.lp-prose-section pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: .82rem;
  overflow-x: auto;
  margin-top: 12px;
  line-height: 1.6;
}
.lp-prose-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.lp-prose-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.lp-prose-card thead tr { background: var(--bg3); }
.lp-prose-card th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.lp-prose-card th:not(:first-child) { text-align: center; }
.lp-prose-card td {
  padding: 10px 16px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.lp-prose-card td:not(:first-child) { text-align: center; font-weight: 600; color: var(--text); }
.lp-prose-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
}
.lp-prose-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-right: 12px;
}
.lp-prose-step {
  display: flex;
  align-items: flex-start;
}
.lp-prose-step-body { flex: 1; }
.lp-prose-step-body strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Contact page ──────────────────────────────────────────── */
.ct-main {
  min-height: calc(100vh - 64px);
  padding: 100px 24px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.ct-wrap {
  max-width: 1040px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
/* ── Left column ─────── */
.ct-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 12px;
}
.ct-h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}
.ct-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 380px;
}
.ct-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.ct-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ct-social-row:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37,99,235,.1);
  transform: translateX(3px);
}
.ct-social-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ct-social-icon--mail { background: #2563eb; }
.ct-social-icon--wa   { background: #25d366; }
.ct-social-icon--tg   { background: #229ed9; }
.ct-social-icon--ig   { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ct-social-icon--x    { background: #000; }
[data-theme="dark"] .ct-social-icon--x { background: #fff; color: #000; }
.ct-social-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ct-social-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ct-social-val {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.ct-social-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color .15s;
}
.ct-social-row:hover .ct-social-arrow { color: #2563eb; }
.ct-cta-box {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 20px;
  padding: 24px 28px;
}
.ct-cta-text {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 12px;
  font-weight: 500;
}
.ct-cta-btn {
  display: inline-block;
  background: #fff;
  color: #2563eb;
  font-size: .875rem;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity .15s, transform .12s;
}
.ct-cta-btn:hover { opacity: .92; transform: translateY(-1px); }
/* ── Right column: form ─── */
.ct-form-col {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.06);
}
[data-theme="dark"] .ct-form-col { box-shadow: none; }
.ct-form-h {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.01em;
}
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 2px;
}
.ct-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.ct-input::placeholder { color: var(--text-dim); }
.ct-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
[data-theme="dark"] .ct-input { background: rgba(255,255,255,.05); }
.ct-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.ct-submit {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,.28);
  transition: background .15s, transform .12s, box-shadow .15s;
  margin-top: 4px;
}
.ct-submit:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,99,235,.32); }
/* ── Success state ─── */
.ct-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  gap: 16px;
}
.ct-sent-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(37,99,235,.1);
  display: flex; align-items: center; justify-content: center;
  color: #2563eb;
}
.ct-sent-h {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.02em;
}
.ct-sent-p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.ct-sent-back {
  display: inline-block;
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 8px;
}
/* ── Responsive ─── */
@media (max-width: 768px) {
  .ct-main { padding: 88px 16px 60px; }
  .ct-wrap { grid-template-columns: 1fr; gap: 40px; }
  .ct-lead { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   App Shell + Sites + Dashboard  (v8)
   ═══════════════════════════════════════════════════════════ */

/* ── App shell header ──────────────────────────────────────── */
.app-header {
  height: 72px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow .2s;
}
[data-theme="dark"] .app-header {
  background: rgba(13,24,41,0.92);
  border-bottom-color: rgba(255,255,255,.06);
}
.app-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 0;
}
.app-logo-mark {
  display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; margin-right: 20px;
}
.app-logo-mark:hover, .app-logo-mark:hover .lp-logo-name, .app-logo-mark:focus {
  text-decoration: none;
}
/* app header logo reuses lp-logo-icon / lp-logo-name — no separate definition needed */
.app-breadcrumb {
  display: flex; align-items: center; gap: 5px;
  font-size: .82rem; flex: 1;
}
.app-breadcrumb a {
  color: var(--text-muted); font-weight: 500; text-decoration: none;
  padding: 4px 8px; border-radius: 6px; transition: background .12s;
}
.app-breadcrumb a:hover { background: var(--bg3); color: var(--text); }
.app-breadcrumb-sep { color: var(--border); }
.app-breadcrumb-cur { color: var(--text); font-weight: 600; padding: 4px 8px; }
.app-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.app-plan-badge {
  font-size: .6rem; font-weight: 800; padding: 3px 7px;
  border-radius: 5px; letter-spacing: .06em; text-transform: uppercase;
}
.app-plan-badge--pro { background: rgba(37,99,235,.1); color: #2563eb; }
.app-plan-badge--free { background: var(--bg3); color: var(--text-dim); }
.app-email { font-size: .75rem; color: var(--text-dim); font-weight: 500; }
.app-theme-btn {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; font-size: .85rem; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.app-logout {
  font-size: .78rem; color: var(--text-dim); text-decoration: none;
  padding: 5px 10px; border-radius: 7px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg3);
  transition: all .12s;
}
.app-logout:hover { color: var(--text-muted); text-decoration: none; }
.app-main {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 24px 60px; width: 100%;
}

/* ── App footer ────────────────────────────────────────────── */
/* App footer reuses lp-footer / lp-footer-inner / lp-social-btn etc.
   Only need margin-top since lp-footer handles background, border, padding. */
.lp-footer.app-footer { margin-top: 48px; }

/* ── Flash ─────────────────────────────────────────────────── */
.app-flash { border-radius: 12px; padding: 11px 16px; font-size: .875rem; font-weight: 500; margin-bottom: 20px; }
.app-flash--ok  { background: rgba(16,185,129,.1); color: #059669; border: 1px solid rgba(16,185,129,.2); }
.app-flash--err { background: rgba(239,68,68,.1); color: #ef4444; border: 1px solid rgba(239,68,68,.2); }

/* ── Sites page ────────────────────────────────────────────── */
.si-page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.si-page-title { font-size: 1.5rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; }
.si-page-sub { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }
.si-add-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; margin-bottom: 24px; }
.si-add-title { font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -.01em; }
.si-add-row { display: flex; gap: 10px; align-items: stretch; }
.si-add-input {
  flex: 1; padding: 11px 15px; border-radius: 11px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: .875rem; font-weight: 500;
  outline: none; transition: border-color .14s; font-family: inherit;
}
.si-add-input:focus { border-color: #2563eb; }
[data-theme="dark"] .si-add-input { background: rgba(255,255,255,.05); }
.si-add-btn {
  padding: 11px 20px; border-radius: 11px; background: #2563eb;
  color: #fff; font-size: .85rem; font-weight: 700; border: none;
  cursor: pointer; white-space: nowrap; transition: background .14s;
}
.si-add-btn:hover { background: #1d4ed8; }
.si-add-hint { font-size: .75rem; color: var(--text-dim); margin-top: 8px; }
.si-limit-warn { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); border-radius: 10px; padding: 12px 16px; font-size: .875rem; color: var(--text-muted); }
.si-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.si-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: box-shadow .15s, border-color .15s; }
.si-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.07); border-color: rgba(37,99,235,.2); }
[data-theme="dark"] .si-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.3); }
.si-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.si-domain-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-weight: 900; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-transform: uppercase;
}
.si-domain-name { font-size: .975rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.si-domain-url { font-size: .72rem; color: var(--text-dim); margin-top: 1px; }
.si-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.si-kpi { background: var(--bg3); border-radius: 11px; padding: 10px 13px; }
.si-kpi-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); margin-bottom: 3px; }
.si-kpi-val { font-size: 1.35rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.si-kpi-sub { font-size: .65rem; color: var(--text-dim); margin-top: 1px; }
.si-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.si-btn {
  padding: 6px 12px; border-radius: 8px; font-size: .755rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg3); color: var(--text-muted);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  gap: 4px; transition: all .12s; white-space: nowrap; font-family: inherit;
}
.si-btn:hover { border-color: #2563eb; color: #2563eb; background: rgba(37,99,235,.05); text-decoration: none; }
.si-btn--primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.si-btn--primary:hover { background: #1d4ed8; color: #fff; }
.si-btn--active { background: rgba(16,185,129,.1); color: #059669; border-color: rgba(16,185,129,.25); }
.si-btn--active:hover { background: rgba(16,185,129,.15); border-color: #059669; color: #059669; }
.si-btn--warn { background: rgba(245,158,11,.1); color: #d97706; border-color: rgba(245,158,11,.25); }
.si-btn--danger { color: #ef4444; border-color: rgba(239,68,68,.2); }
.si-btn--danger:hover { background: rgba(239,68,68,.08); border-color: #ef4444; }
.si-snippet-toggle { font-size: .72rem; color: var(--text-dim); cursor: pointer; background: none; border: none; padding: 0; display: flex; align-items: center; gap: 4px; font-family: inherit; }
.si-snippet-toggle:hover { color: var(--text-muted); }
.si-snippet-body { margin-top: 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; display: none; }
.si-snippet-body.open { display: block; }
.si-snippet-label { font-size: .67rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.si-snippet-wrap { display: flex; align-items: flex-start; gap: 8px; }
.si-snippet-code { flex: 1; font-size: .7rem; font-family: monospace; color: var(--text-muted); word-break: break-all; background: none; border: none; padding: 0; line-height: 1.5; }
.si-copy-btn { flex-shrink: 0; padding: 4px 9px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; font-size: .7rem; font-weight: 600; cursor: pointer; color: var(--text-muted); white-space: nowrap; transition: all .12s; font-family: inherit; }
.si-copy-btn:hover { border-color: #2563eb; color: #2563eb; }
.si-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.si-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.si-excl-list { margin-bottom: 10px; }
.si-excl-loading, .si-excl-empty { font-size: .75rem; color: var(--text-dim); padding: 4px 0; }
.si-excl-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.si-excl-row:last-child { border-bottom: none; }
.si-excl-ip-val { font-size: .78rem; font-family: monospace; color: var(--text); font-weight: 600; }
.si-excl-label-val { font-size: .72rem; color: var(--text-dim); background: var(--bg2); border-radius: 4px; padding: 1px 6px; }
.si-excl-del { margin-left: auto; flex-shrink: 0; background: none; border: none; color: var(--text-dim); font-size: 1rem; cursor: pointer; padding: 0 2px; line-height: 1; }
.si-excl-del:hover { color: #ef4444; }
.si-excl-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.si-excl-ip { flex: 0 0 200px; padding: 5px 9px; background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; font-size: .78rem; color: var(--text); font-family: monospace; }
.si-excl-ip:focus { outline: none; border-color: #2563eb; }
.si-excl-label { flex: 1; min-width: 100px; padding: 5px 9px; background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; font-size: .78rem; color: var(--text); font-family: inherit; }
.si-excl-label:focus { outline: none; border-color: #2563eb; }
.si-excl-cidr-badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #2563eb; background: rgba(37,99,235,.1); border-radius: 4px; padding: 1px 5px; flex-shrink: 0; }
[data-theme="dark"] .si-excl-cidr-badge { color: #93c5fd; background: rgba(147,197,253,.12); }
.si-myip-btn { padding: 5px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; font-size: .75rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: background .14s, color .14s; }
.si-myip-btn:hover { background: var(--bg2); color: var(--text); border-color: #2563eb; }
.si-upgrade { margin-top: 24px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.si-upgrade-text { font-size: .82rem; color: var(--text-muted); }
.si-upgrade-cta { padding: 8px 16px; background: #2563eb; color: #fff; border-radius: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.si-upgrade-cta:hover { background: #1d4ed8; text-decoration: none; }

/* ── Dashboard ─────────────────────────────────────────────── */
.ds-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ds-site-title { font-size: 1.25rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; margin-right: auto; }
.ds-range-tabs { display: flex; background: var(--bg3); border-radius: 9px; padding: 3px; gap: 2px; }
.ds-range-tab { padding: 5px 11px; border-radius: 7px; font-size: .75rem; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: all .12s; }
.ds-range-tab:hover { color: var(--text); text-decoration: none; }
.ds-range-tab.active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ds-controls form { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.ds-ctrl-btn {
  height: 33px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .12s;
  white-space: nowrap;
  font-family: inherit;
  vertical-align: middle;
}
.ds-ctrl-btn:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; }
.ds-ctrl-btn--active { background: rgba(16,185,129,.1); color: #059669; border-color: rgba(16,185,129,.25); }
/* Live visitor badge */
.ds-live { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; color: var(--text-muted); }
.ds-live--header { margin: 0; font-size: .72rem; }
.ds-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.ds-live--active .ds-live-dot { background: #10b981; animation: ds-pulse 2s infinite; }
.ds-live-count { font-weight: 700; color: var(--text); font-size: .85rem; min-width: 1ch; }
.ds-live--active .ds-live-count { color: #10b981; }
@keyframes ds-pulse { 0%,100%{ opacity:1; } 50%{ opacity:.4; } }
/* Confirm modal */
.ds-modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; align-items: center; justify-content: center; display: none; background: rgba(0,0,0,.6); }
.ds-modal-backdrop.open { display: flex; }
.ds-modal { background: #fff; border-radius: 16px; padding: 28px 28px 22px; min-width: 320px; max-width: 420px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
[data-theme="dark"] .ds-modal { background: #1e2535; }
.ds-modal-msg { font-size: .95rem; color: #111827; font-weight: 500; margin: 0 0 18px; line-height: 1.5; }
[data-theme="dark"] .ds-modal-msg { color: #f3f4f6; }
.ds-modal-ip-card { background: #f3f4f6; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
[data-theme="dark"] .ds-modal-ip-card { background: #0f172a; }
.ds-modal-ip-val { font-family: monospace; font-size: 1rem; font-weight: 700; color: #111827; }
[data-theme="dark"] .ds-modal-ip-val { color: #f9fafb; }
.ds-modal-ip-label { font-size: .78rem; color: #6b7280; background: #fff; border: 1px solid #e5e7eb; border-radius: 5px; padding: 2px 8px; }
[data-theme="dark"] .ds-modal-ip-label { background: #1e2535; border-color: #374151; color: #9ca3af; }
.ds-modal-btns { display: flex; gap: 10px; justify-content: flex-end; }
.ds-modal-cancel { padding: 8px 20px; border-radius: 9px; border: 1px solid #d1d5db; background: #f9fafb; color: #374151; font-size: .84rem; cursor: pointer; }
[data-theme="dark"] .ds-modal-cancel { background: #374151; border-color: #4b5563; color: #d1d5db; }
.ds-modal-cancel:hover { background: #f3f4f6; }
.ds-modal-ok { padding: 8px 20px; border-radius: 9px; border: none; background: #ef4444; color: #fff; font-size: .84rem; font-weight: 700; cursor: pointer; }
.ds-modal-ok:hover { background: #dc2626; }
/* Own-IP banner */
.ds-ip-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); border-radius: 12px; font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.ds-ip-banner svg { flex-shrink: 0; color: #f59e0b; }
.ds-ip-banner strong { color: var(--text); }
.ds-ip-banner-cta { margin-left: 4px; padding: 4px 12px; background: #f59e0b; color: #fff; border-radius: 6px; font-size: .75rem; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.ds-ip-banner-cta:hover { background: #d97706; text-decoration: none; }
.ds-ip-banner-close { margin-left: auto; flex-shrink: 0; background: none; border: none; color: var(--text-dim); font-size: 1.1rem; cursor: pointer; padding: 0 2px; line-height: 1; }
.ds-ip-banner-close:hover { color: var(--text); }

/* KPI cards */
.ds-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.ds-kpi { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; position: relative; }
.ds-kpi-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ds-kpi-icon--blue   { background: rgba(37,99,235,.1); color: #2563eb; }
.ds-kpi-icon--green  { background: rgba(16,185,129,.1); color: #10b981; }
.ds-kpi-icon--red    { background: rgba(239,68,68,.1);  color: #ef4444; }
.ds-kpi-icon--amber  { background: rgba(245,158,11,.1); color: #f59e0b; }
.ds-kpi-icon--violet { background: rgba(124,58,237,.1); color: #7c3aed; }
.ds-kpi-label { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 3px; }
.ds-kpi-value { font-size: 1.75rem; font-weight: 900; color: var(--text); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ds-kpi-note { font-size: .68rem; color: var(--text-dim); margin-top: 5px; line-height: 1.4; }
.ds-kpi-q { position: absolute; top: 11px; right: 11px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border); cursor: pointer; font-size: .6rem; font-weight: 700; color: var(--text-dim); display: flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; transition: all .12s; }
.ds-kpi-q:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
/* Chart */
.ds-chart-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.ds-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ds-chart-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.ds-chart-legend { display: flex; gap: 14px; }
.ds-chart-leg { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--text-muted); }
.ds-chart-leg-dot { width: 8px; height: 8px; border-radius: 50%; }
.ds-chart-empty { height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-dim); font-size: .875rem; gap: 8px; }
/* Stat grid */
.ds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.ds-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.ds-panel--wide { grid-column: 1 / -1; }
.ds-panel--half { grid-column: span 1; }
.ds-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ds-panel-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.ds-panel-pro { font-size: .58rem; background: rgba(37,99,235,.1); color: #2563eb; padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: .05em; }
/* Tip button */
.ds-tip-btn { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border); font-size: .58rem; font-weight: 700; color: var(--text-dim); cursor: pointer; padding: 0; font-family: inherit; transition: all .12s; flex-shrink: 0; }
.ds-tip-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
/* Bar rows */
.ds-rows { display: flex; flex-direction: column; }
.ds-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.ds-row:first-child { border-top: none; }
.ds-row-label { flex: 0 0 130px; font-size: .8rem; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-row-track { flex: 1; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.ds-row-fill { height: 100%; background: #2563eb; border-radius: 2px; }
.ds-row-fill--green { background: #10b981; }
.ds-row-fill--amber { background: #f59e0b; }
.ds-row-val { flex: 0 0 42px; font-size: .75rem; font-weight: 700; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
/* Donut */
.ds-donut-wrap { display: flex; justify-content: center; }
/* Excluded IPs panel */
.ds-excl-panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-top: 12px; margin-bottom: 0; overflow: hidden; }
.ds-excl-toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: none; border: none; font-size: .82rem; font-weight: 600; color: var(--text-muted); cursor: pointer; text-align: left; }
.ds-excl-toggle:hover { color: var(--text); }
.ds-excl-toggle-icon { transition: transform .2s; flex-shrink: 0; }
.ds-excl-count { font-size: .72rem; color: var(--text-dim); font-weight: 400; }
.ds-excl-body { padding: 0 18px 16px; border-top: 1px solid var(--border); }
.ds-excl-hint { font-size: .75rem; color: var(--text-dim); margin: 12px 0 10px; line-height: 1.5; }
.ds-excl-add-btn { padding: 5px 14px; background: #2563eb; color: #fff; border: none; border-radius: 7px; font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ds-excl-add-btn:hover { background: #1d4ed8; }
/* Upgrade */
.ds-upgrade { background: linear-gradient(135deg,rgba(37,99,235,.05),rgba(124,58,237,.05)); border: 1px solid rgba(37,99,235,.12); border-radius: 18px; padding: 26px 28px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.ds-upgrade-body h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.ds-upgrade-body ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ds-upgrade-body li { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.ds-upgrade-body li::before { content: '✓'; color: #10b981; font-weight: 800; }
.ds-upgrade-btn { padding: 12px 24px; background: #2563eb; color: #fff; border-radius: 12px; font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.ds-upgrade-btn:hover { background: #1d4ed8; text-decoration: none; }
/* Goals */
.ds-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ds-goal-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.ds-goal-name { font-size: .65rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.ds-goal-val { font-size: 1.6rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ds-goal-sub { font-size: .67rem; color: var(--text-dim); margin-top: 3px; }
/* Link badge */
.ds-badge { font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.ds-badge--aff { background: rgba(245,158,11,.12); color: #d97706; }
.ds-badge--ext { background: var(--bg3); color: var(--text-dim); }
.ds-badge--int { background: rgba(16,185,129,.1); color: #059669; }
/* No data */
/* SEO links row (below footer) */
.seo-links { border-top: 1px solid var(--border); padding: 10px 0; text-align: center; }
.seo-links a { font-size: .75rem; color: var(--text-dim); text-decoration: none; }
.seo-links a:hover { color: var(--accent); text-decoration: underline; }
.lp-inline-link { color: inherit; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 2px; }
.lp-inline-link:hover { color: var(--blue); }

.ds-no-data { font-size: .8rem; color: var(--text-dim); padding: 14px 0; text-align: center; }
/* Tooltip */
.ds-tooltip { position: fixed; z-index: 9999; background: var(--text); color: var(--bg); font-size: .72rem; line-height: 1.5; padding: 8px 12px; border-radius: 9px; max-width: 210px; box-shadow: 0 4px 20px rgba(0,0,0,.2); pointer-events: none; opacity: 0; transition: opacity .12s; }
.ds-tooltip.show { opacity: 1; }
/* Responsive */
@media (max-width: 1100px) { .ds-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .ds-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  {
  .app-main { padding: 18px 14px 48px; }
  .ds-kpis { grid-template-columns: repeat(2, 1fr); }
  .ds-grid { grid-template-columns: 1fr; }
  .si-grid { grid-template-columns: 1fr; }
  .ds-controls { gap: 5px; }
  .app-email { display: none; }
  .ds-row-label { flex: 0 0 100px; }
}
