/* ═══════════════════════════════════════════════════
   DealInbox — Unified Design System
   Fonts: Instrument Serif (display) + Geist (body)
   Theme: Refined editorial dark
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Core */
  --bg:    #0c0c0c;
  --bg1:   #111111;
  --bg2:   #161616;
  --bg3:   #1c1c1c;
  --bg4:   #222222;
  --line:  rgba(255,255,255,0.07);
  --line2: rgba(255,255,255,0.11);
  /* Text */
  --t1: #e8e8e8;
  --t2: #999;
  --t3: #555;
  --t4: #333;
  /* Accent – restrained, only where it matters */
  --green:  #3ecf8e;
  --green-bg: rgba(62,207,142,0.08);
  --amber:  #c89a00;
  --amber-bg: rgba(200,154,0,0.08);
  --red:    #e05454;
  --red-bg: rgba(224,84,84,0.08);
  --blue:   #7b9cff;
  --blue-bg: rgba(123,156,255,0.08);
  /* Radii */
  --r: 8px;
  --r-sm: 6px;
  --r-lg: 12px;
  /* Font */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Geist', -apple-system, sans-serif;
  --mono:  'SF Mono','Fira Code',monospace;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
p { color: var(--t2); line-height: 1.65; }
h1, h2, h3 { color: var(--t1); line-height: 1.2; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }

/* ── GLOBAL NAV (auth / misc pages) ── */
.pub-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center;
  padding: 0 32px; height: 52px;
  background: rgba(12,12,12,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--t1); letter-spacing: -.3px; margin-right: auto;
}
.pub-nav-right { display: flex; align-items: center; gap: 10px; }
.pub-nav-login { font-size: 13px; color: var(--t3); transition: color .15s; }
.pub-nav-login:hover { color: var(--t1); }
.pub-nav-cta {
  font-size: 13px; font-weight: 500; background: var(--t1); color: var(--bg);
  padding: 6px 14px; border-radius: var(--r-sm); transition: opacity .15s;
}
.pub-nav-cta:hover { opacity: .85; color: var(--bg); }

/* ── GLOBAL FOOTER ── */
.g-footer { border-top: 1px solid var(--line); padding: 24px 32px; }
.g-footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.g-footer-logo { font-size: 14px; font-weight: 600; color: var(--t1); }
.g-footer-inner span:not(.g-footer-logo) { font-size: 12px; color: var(--t3); }

/* ── GLOBAL PRIMARY BUTTON ── */
.g-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--t1); color: var(--bg);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: var(--r-sm);
  border: none; cursor: pointer; transition: opacity .15s; letter-spacing: -.1px;
  text-decoration: none;
}
.g-btn-primary:hover { opacity: .85; color: var(--bg); }

/* ── BUTTONS (app) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  border: 1px solid var(--line2); background: var(--bg2); color: var(--t2);
  cursor: pointer; transition: all .12s; white-space: nowrap; line-height: 1;
  text-decoration: none;
}
.btn:hover { background: var(--bg3); color: var(--t1); border-color: var(--bg4); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--t1); border-color: transparent; color: var(--bg); font-weight: 500; }
.btn-primary:hover { opacity: .85; background: var(--t1); color: var(--bg); border-color: transparent; }
.btn-green { background: var(--green-bg); border-color: rgba(62,207,142,.2); color: var(--green); }
.btn-danger { background: var(--red-bg); border-color: rgba(224,84,84,.2); color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--t3); }
.btn-ghost:hover { background: var(--bg2); color: var(--t2); border-color: transparent; }
.btn-sm { padding: 4px 9px; font-size: 11px; }
.btn-lg { padding: 9px 18px; font-size: 13px; }
.btn-xl { padding: 11px 22px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-outline-dark { background: transparent; border-color: var(--line2); color: var(--t2); }

/* ── INPUTS ── */
input, textarea, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-sm); color: var(--t1); font-family: var(--sans);
  font-size: 13px; padding: 8px 11px; outline: none;
  transition: border-color .12s, box-shadow .12s; line-height: 1.4;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
input::placeholder, textarea::placeholder { color: var(--t4); }
input:disabled { opacity: .3; cursor: not-allowed; }
label {
  display: block; font-size: 11px; font-weight: 500; color: var(--t3);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em;
}
.fg { margin-bottom: 14px; }
.hint { font-size: 11px; color: var(--t3); margin-top: 4px; }
select option { background: var(--bg2); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:540px) { .form-row-2 { grid-template-columns: 1fr; } }
.input-prefix { display: flex; }
.iprefix {
  background: var(--bg3); border: 1px solid var(--line2); border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm); padding: 8px 10px;
  font-size: 13px; color: var(--t3);
}
.input-prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ── FLASH ── */
.flash-container { position: fixed; top: 60px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 6px; }
.flash {
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: 12px; color: var(--t2);
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.flash-error { border-color: rgba(224,84,84,.3); color: var(--red); }
.flash-success { border-color: rgba(62,207,142,.3); color: var(--green); }
.flash-close { background: none; border: none; color: var(--t3); cursor: pointer; font-size: 14px; padding: 0; }

/* ═══════════════════════════════════════════════
   APP LAYOUT — sidebar + main
═══════════════════════════════════════════════ */
.app-wrap { display: flex; min-height: 100vh; }

.sidebar {
  width: 200px; min-height: 100vh;
  background: var(--bg1); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
}
.sb-logo {
  padding: 18px 18px 14px; font-size: 15px; font-weight: 600;
  color: var(--t1); border-bottom: 1px solid var(--line); letter-spacing: -.3px;
}
.sb-user {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.sb-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--t2); flex-shrink: 0;
}
.sb-name { font-size: 12px; font-weight: 500; color: var(--t1); line-height: 1.3; }
.sb-handle { font-size: 10px; color: var(--t4); }
.sb-nav { flex: 1; padding: 8px 8px 0; display: flex; flex-direction: column; gap: 1px; }
.sn-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--t3); transition: all .12s;
  position: relative; cursor: pointer; text-decoration: none;
}
.sn-item:hover { background: var(--bg2); color: var(--t2); }
.sn-item.active { background: var(--bg2); color: var(--t1); }
.sn-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: var(--t1); border-radius: 0 2px 2px 0;
}
.sn-icon { font-size: 12px; width: 16px; text-align: center; opacity: .6; }
.sn-badge {
  margin-left: auto; background: var(--red-bg); color: var(--red);
  font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 5px;
}
.sb-bot { padding: 8px; border-top: 1px solid var(--line); margin-top: auto; }
.sn-muted { color: var(--t4); font-size: 12px; }

.app-main { margin-left: 200px; flex: 1; }
.app-content { padding: 28px 32px; max-width: 1080px; }

@media(max-width:820px) {
  .sidebar { width: 48px; }
  .sb-logo, .sb-user .sb-info, .sn-item span:not(.sn-icon):not(.sn-badge), .sb-bot .sn-item span:not(.sn-icon) { display: none; }
  .app-main { margin-left: 48px; }
  .app-content { padding: 18px 16px; }
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.page-header h1 { font-size: 20px; font-weight: 600; margin-bottom: 2px; letter-spacing: -.3px; }
.page-sub { font-size: 12px; color: var(--t3); }
.back-link { font-size: 11px; color: var(--t3); display: inline-block; margin-bottom: 4px; }
.back-link:hover { color: var(--t1); }
.ph-actions { display: flex; gap: 7px; align-items: center; }

/* ── KPI CARDS ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.kpi-card {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px;
}
.kpi-card.hi { border-color: rgba(255,255,255,0.12); background: var(--bg2); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kpi-icon { font-size: 13px; opacity: .3; }
.kpi-new-badge { font-size: 9px; font-weight: 600; color: var(--t1); background: var(--bg3); padding: 1px 6px; border-radius: 5px; }
.kpi-val { font-size: 24px; font-weight: 600; color: var(--t1); line-height: 1; margin-bottom: 4px; letter-spacing: -.03em; }
.kpi-label { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.kpi-link { font-size: 11px; color: var(--t3); }
.kpi-link:hover { color: var(--t1); }
.kpi-up { font-size: 10px; color: var(--green); }

/* ── PIPELINE BAR ── */
.pip-wrap { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 16px; }
.pip-bar { height: 3px; display: flex; gap: 2px; border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.pip-seg { border-radius: 1px; transition: flex .4s ease; }
.pip-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pip-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--t3); }
.pip-dot { width: 6px; height: 6px; border-radius: 2px; }

/* ── DASH GRID ── */
.dash-grid { display: grid; grid-template-columns: 1fr 210px; gap: 10px; }
@media(max-width:900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-right { display: flex; flex-direction: column; gap: 10px; }

/* ── CARDS ── */
.card {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.ch-title { font-size: 10px; font-weight: 500; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; }
.ch-link { font-size: 11px; color: var(--t3); }
.ch-link:hover { color: var(--t1); }

/* ── ENQ LIST ── */
.enq-list { display: flex; flex-direction: column; }
.enq-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); transition: background .1s; cursor: pointer;
  text-decoration: none;
}
.enq-row:last-child { border-bottom: none; }
.enq-row:hover { background: var(--bg2); }
.nd { width: 5px; height: 5px; border-radius: 50%; background: var(--t1); flex-shrink: 0; }
.nd-ph { width: 5px; flex-shrink: 0; }
.er-left { flex: 1; min-width: 0; }
.er-brand { font-size: 13px; font-weight: 500; color: var(--t1); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-meta { font-size: 11px; color: var(--t3); }
.er-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.er-time { font-size: 10px; color: var(--t4); }

/* ── STATUS PILLS ── */
.pill {
  font-size: 10px; font-weight: 500; padding: 2px 7px;
  border-radius: 5px; display: inline-flex; align-items: center; white-space: nowrap;
}
.pill-new      { background: rgba(255,255,255,0.06); color: var(--t2); }
.pill-reviewing{ background: var(--bg3); color: var(--t3); border: 1px solid var(--line2); }
.pill-negotiating { background: var(--amber-bg); color: var(--amber); }
.pill-accepted { background: var(--green-bg); color: var(--green); }
.pill-closed   { background: var(--green-bg); color: var(--green); }
.pill-declined { background: var(--red-bg); color: var(--red); }
.status-pill { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 6px; display: inline-flex; align-items: center; }
.status-pill-lg { font-size: 12px; padding: 5px 12px; }

/* ── SCORE BADGE ── */
.score { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.score-hot { background: var(--green-bg); color: var(--green); }
.score-warm { background: var(--amber-bg); color: var(--amber); }
.score-cold { background: var(--bg3); color: var(--t3); }

/* ── LINK ROW ── */
.link-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; margin: 8px 14px 0;
}
.link-text { font-size: 11px; color: var(--t2); font-family: var(--mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-hint { font-size: 11px; color: var(--t3); padding: 5px 14px 10px; line-height: 1.5; }

/* ── ACTIVITY ── */
.act-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.act-row { display: flex; gap: 9px; }
.act-line-wrap { display: flex; flex-direction: column; align-items: center; }
.act-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bg3); flex-shrink: 0; margin-top: 3px; }
.act-dot.on { background: var(--t1); }
.act-trail { flex: 1; width: 1px; background: var(--line); margin-top: 3px; min-height: 8px; }
.act-text { font-size: 12px; font-weight: 500; color: var(--t1); }
.act-detail { font-size: 11px; color: var(--t3); margin-top: 1px; }
.act-time { font-size: 10px; color: var(--t4); margin-top: 1px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 20px; }
.es-icon { font-size: 24px; margin-bottom: 10px; opacity: .3; }
.empty-state h3 { color: var(--t2); font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.empty-state p { font-size: 12px; color: var(--t3); margin-bottom: 16px; }
.empty-small { padding: 16px; text-align: center; font-size: 11px; color: var(--t3); }

/* ── INSIGHT BANNER ── */
.insight-banner {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px 16px; margin-bottom: 16px;
}
.insight-banner p { font-size: 12px; color: var(--t2); line-height: 1.5; }

/* ── FILTER TABS ── */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.ft-tab {
  display: flex; align-items: center; gap: 5px; padding: 5px 12px;
  border-radius: var(--r-sm); font-size: 12px; color: var(--t3);
  background: var(--bg1); border: 1px solid var(--line); transition: all .12s; cursor: pointer;
  text-decoration: none;
}
.ft-tab:hover { color: var(--t2); border-color: var(--line2); }
.ft-tab.active { background: var(--bg2); color: var(--t1); border-color: var(--line2); }
.ft-count { background: var(--bg3); padding: 0 5px; border-radius: 4px; font-size: 9px; font-weight: 600; }

/* ── VIEW TOGGLE ── */
.view-toggle { display: flex; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-sm); overflow: hidden; }
.vt-btn { padding: 5px 11px; font-size: 11px; font-family: var(--sans); color: var(--t3); background: transparent; border: none; cursor: pointer; transition: all .12s; }
.vt-btn.active { background: var(--bg3); color: var(--t1); }

/* ── ENQ TABLE ── */
.enq-table-wrap { overflow-x: auto; }
.enq-table { width: 100%; border-collapse: collapse; }
.enq-table th {
  padding: 8px 12px; text-align: left; font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; color: var(--t3);
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg1);
}
.enq-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.enq-table tr:last-child td { border-bottom: none; }
.enq-table tr:hover td { background: var(--bg2); }
.etd-brand { font-size: 13px; font-weight: 500; color: var(--t1); display: flex; align-items: center; gap: 6px; }
.etd-contact { font-size: 10px; color: var(--t4); margin-top: 1px; }
.td-muted { color: var(--t3); font-size: 12px; }
.td-green { color: var(--green); font-size: 12px; }
.td-time { font-size: 11px; color: var(--t4); }
.row-new .etd-brand { color: var(--t1); }
.quick-status-select { width: auto; padding: 4px 7px; font-size: 11px; }

/* ── KANBAN ── */
.kanban-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: start; }
.kanban-col { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kanban-head { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.kanban-label { font-size: 11px; font-weight: 500; }
.kanban-count { font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--bg3); color: var(--t3); }
.kanban-body { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.kanban-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 10px; cursor: pointer; transition: border-color .12s; display: block;
}
.kanban-card:hover { border-color: var(--line2); }
.kc-brand { font-weight: 500; font-size: 12px; margin-bottom: 2px; color: var(--t1); }
.kc-meta { font-size: 10px; color: var(--t3); }

/* ── ENQUIRY DETAIL ── */
.score-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; }
.score-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.score-label { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.score-num { font-size: 14px; font-weight: 600; color: var(--t1); }
.score-num.high { color: var(--green); }
.score-num.mid { color: var(--amber); }
.score-num.low { color: var(--t3); }
.score-bar-wrap { height: 3px; background: var(--bg3); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.score-bar { height: 100%; border-radius: 2px; background: var(--t3); }
.score-bar.high { background: var(--green); }
.score-bar.mid { background: var(--amber); }
.score-checks { display: flex; flex-direction: column; gap: 5px; }
.score-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t3); }
.sc-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.tracking-banner {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.tb-left { display: flex; align-items: center; gap: 10px; }
.tb-icon { font-size: 16px; opacity: .6; }
.tb-title { font-size: 13px; font-weight: 500; color: var(--t1); margin-bottom: 2px; }
.tb-sub { font-size: 11px; color: var(--t3); }
.tb-right { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tb-url { font-family: var(--mono); font-size: 10px; color: var(--t2); background: var(--bg2); padding: 5px 9px; border-radius: 5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.detail-grid { display: grid; grid-template-columns: 1fr 240px; gap: 10px; }
@media(max-width:900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-main { display: flex; flex-direction: column; gap: 10px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 10px; }

.dc-title { font-size: 10px; font-weight: 500; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.detail-fields { padding: 4px 0; }
.df-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.df-row:last-child { border-bottom: none; }
.df-label { font-size: 11px; color: var(--t3); width: 72px; flex-shrink: 0; }
.df-value { font-size: 13px; color: var(--t1); flex: 1; }
.df-budget { color: var(--green); }
.brief-text { font-size: 13px; color: var(--t2); line-height: 1.7; padding: 14px; white-space: pre-wrap; }
.note-card { border-color: var(--line2); }

.ai-wrap { padding: 14px; }
.ai-label { font-size: 11px; color: var(--t3); margin-bottom: 10px; }
.ai-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ai-btn {
  font-size: 12px; font-family: var(--sans); padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--bg2); border: 1px solid var(--line2); color: var(--t2); cursor: pointer; transition: all .12s;
}
.ai-btn:hover { background: var(--bg3); color: var(--t1); border-color: var(--line2); }
.ai-output {
  display: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px; font-size: 12px; color: var(--t2); white-space: pre-wrap; line-height: 1.6;
  margin-bottom: 10px; min-height: 60px;
}
.ai-output.visible { display: block; }
.ai-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.status-form { padding: 14px; }
.sidebar-actions { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.timeline { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.tl-item { display: flex; gap: 9px; align-items: flex-start; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg3); flex-shrink: 0; margin-top: 3px; border: 1px solid var(--line2); }
.tl-dot-on { background: var(--t1); border-color: var(--t1); }
.tl-action { font-size: 12px; font-weight: 500; color: var(--t1); }
.tl-time { font-size: 10px; color: var(--t4); margin-top: 2px; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-box { background: var(--bg1); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 20px; width: 100%; max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { font-size: 15px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--t3); cursor: pointer; font-size: 18px; line-height: 1; }
.modal-actions { display: flex; gap: 7px; margin-top: 14px; justify-content: flex-end; }
.rate-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.rate-item { display: flex; gap: 6px; align-items: center; }
.rate-item select { width: auto; flex: 1; }
.rate-item input { width: 100px; }
.hidden { display: none !important; }

/* ── ANALYTICS ── */
.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media(max-width:700px) { .analytics-grid { grid-template-columns: 1fr; } }
.analytics-card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
}
.analytics-card h2 { font-size: 13px; font-weight: 500; color: var(--t1); margin-bottom: 16px; letter-spacing: -.1px; }
.analytics-card-wide { grid-column: span 2; }
@media(max-width:700px) { .analytics-card-wide { grid-column: span 1; } }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bc-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.bc-bar-wrap { flex: 1; display: flex; align-items: flex-end; }
.bc-bar { background: var(--t1); opacity: .15; width: 100%; border-radius: 3px 3px 0 0; transition: opacity .2s; min-width: 20px; }
.bc-bar:hover { opacity: .35; }
.bc-val { font-size: 10px; color: var(--t3); font-weight: 500; }
.bc-label { font-size: 9px; color: var(--t4); text-transform: uppercase; letter-spacing: .05em; }
.sb-list { display: flex; flex-direction: column; gap: 8px; }
.sb-row { display: flex; align-items: center; gap: 10px; }
.sb-label { font-size: 11px; color: var(--t2); width: 80px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.sb-dot { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; }
.sb-bar-wrap { flex: 1; height: 3px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.sb-bar { height: 100%; border-radius: 2px; }
.sb-count { font-size: 11px; color: var(--t3); min-width: 16px; text-align: right; }
.top-brands { display: flex; flex-direction: column; gap: 9px; }
.tb-row { display: flex; align-items: center; gap: 10px; }
.tb-rank { font-size: 10px; font-weight: 600; width: 20px; }
.tb-name { font-size: 12px; color: var(--t1); flex: 1; }
.tb-count { font-size: 11px; color: var(--t3); }

/* ── SETTINGS ── */
.settings-grid { display: grid; grid-template-columns: 1fr 260px; gap: 12px; }
@media(max-width:800px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 10px;
}
.settings-card h2 { font-size: 14px; font-weight: 500; color: var(--t1); margin-bottom: 16px; letter-spacing: -.1px; }
.plan-badge { background: var(--bg3); color: var(--t2); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.media-kit-card { text-align: center; padding: 4px; }
.media-kit-card h3 { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.media-kit-card p { font-size: 11px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════ */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: var(--bg); }
.auth-wrap { width: 100%; max-width: 360px; }
.auth-logo { font-size: 15px; font-weight: 600; color: var(--t1); letter-spacing: -.3px; display: block; text-align: center; margin-bottom: 24px; }
.auth-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.auth-h1 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--t1); margin-bottom: 4px; letter-spacing: -.02em; }
.auth-sub { font-size: 13px; color: var(--t3); margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 12px; color: var(--t3); }
.auth-foot a { color: var(--t2); }
.auth-foot a:hover { color: var(--t1); }

/* ── SUCCESS ── */
.success-track-box {
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--r-lg); padding: 16px; margin: 16px 0; text-align: left;
}
.stb-label { font-size: 11px; font-weight: 500; color: var(--t1); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.stb-sub { font-size: 12px; color: var(--t3); line-height: 1.5; margin-bottom: 12px; }
.stb-url-row { display: flex; align-items: center; gap: 7px; background: var(--bg); border-radius: var(--r-sm); padding: 7px 10px; }
.stb-url { font-size: 10px; color: var(--t2); font-family: var(--mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stb-copy { background: var(--bg3); border: 1px solid var(--line2); color: var(--t2); font-size: 11px; font-family: var(--sans); padding: 4px 9px; border-radius: var(--r-sm); cursor: pointer; transition: all .12s; flex-shrink: 0; }
.stb-copy:hover { color: var(--t1); }
.stb-back { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: var(--t3); }
.stb-back:hover { color: var(--t1); }

/* ═══════════════════════════════════════════════
   PUBLIC PAGE (brand enquiry form)
═══════════════════════════════════════════════ */
.pp-body { background: var(--bg); }
.pp-nav {
  display: flex; align-items: center; padding: 0 32px; height: 52px;
  border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px);
}
.pp-nav-logo { font-size: 15px; font-weight: 600; color: var(--t1); letter-spacing: -.3px; }
.pp-wrap { max-width: 560px; margin: 0 auto; padding: 40px 20px 60px; }
.pp-creator {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.pp-av {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg2);
  border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 600; color: var(--t2); flex-shrink: 0;
}
.pp-name { font-size: 18px; font-weight: 600; color: var(--t1); letter-spacing: -.2px; margin-bottom: 2px; }
.pp-handle { font-size: 12px; color: var(--t3); }
.pp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pp-tag { font-size: 11px; color: var(--t3); background: var(--bg2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; }
.pp-bio { font-size: 13px; color: var(--t2); line-height: 1.65; margin-bottom: 12px; }
.pp-meta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.pp-meta-item { font-size: 12px; color: var(--t3); }
.pp-form-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.pp-form-head { margin-bottom: 20px; }
.pp-form-head h2 { font-size: 16px; font-weight: 600; color: var(--t1); margin-bottom: 4px; letter-spacing: -.2px; }
.pp-form-head p { font-size: 13px; color: var(--t3); }
.pp-submit { width: 100%; margin-top: 4px; padding: 12px; font-size: 14px; }
.pp-form-note { font-size: 11px; color: var(--t4); text-align: center; margin-top: 10px; line-height: 1.5; }
.pp-footer { text-align: center; padding: 20px; font-size: 11px; color: var(--t4); }
.pp-footer a { color: var(--t3); }
.pp-footer a:hover { color: var(--t1); }

/* ═══════════════════════════════════════════════
   BRAND PORTAL (tracking page)
═══════════════════════════════════════════════ */
.bp-body { background: var(--bg); }
.bp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 52px;
  border-bottom: 1px solid var(--line);
  background: rgba(12,12,12,0.9); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 10;
}
.bp-nav-logo { font-size: 15px; font-weight: 600; color: var(--t1); letter-spacing: -.3px; }
.bp-nav-link { font-size: 12px; color: var(--t3); transition: color .15s; }
.bp-nav-link:hover { color: var(--t1); }

.bp-wrap { max-width: 600px; margin: 0 auto; padding: 40px 20px 64px; display: flex; flex-direction: column; gap: 12px; }

.bp-header { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.bp-header-av {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600; color: var(--t2);
}
.bp-collab-title {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 400;
  color: var(--t1); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 4px;
}
.bp-x { color: var(--t3); margin: 0 2px; }
.bp-submitted { font-size: 12px; color: var(--t3); }

.bp-status-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.bp-status-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.bp-status-label-sm { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.bp-status-pill { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 6px; }

.bp-steps { padding: 18px; display: flex; flex-direction: column; gap: 0; }
.bp-step { display: flex; gap: 14px; }
.bp-step-track { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.bp-step-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--line2);
  color: var(--t3); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.bp-step-done .bp-step-dot { background: var(--green-bg); border-color: rgba(62,207,142,.3); color: var(--green); }
.bp-step-active .bp-step-dot { background: var(--bg2); border-color: var(--t1); color: var(--t1); }
.bp-step-declined .bp-dot-x { background: var(--red-bg); border-color: rgba(224,84,84,.3); color: var(--red); }
.bp-step-line { flex: 1; width: 1px; background: var(--line); margin: 4px 0; min-height: 24px; }
.bp-step-content { padding-bottom: 20px; flex: 1; }
.bp-step:last-child .bp-step-content { padding-bottom: 0; }
.bp-step-title { font-size: 13px; font-weight: 500; color: var(--t3); margin-bottom: 3px; }
.bp-step-done .bp-step-title { color: var(--t1); }
.bp-step-active .bp-step-title { color: var(--t1); }
.bp-step-declined .bp-step-title { color: var(--red); }
.bp-step-sub { font-size: 12px; color: var(--t4); line-height: 1.5; }
.bp-step-time { font-size: 10px; color: var(--t4); margin-top: 4px; }

.bp-message { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.bp-message-from { font-size: 10px; font-weight: 500; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.bp-message-body { font-size: 13px; color: var(--t2); line-height: 1.65; white-space: pre-wrap; }

.bp-cta-box {
  background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.bp-cta-text { font-size: 13px; color: var(--t2); line-height: 1.55; flex: 1; min-width: 200px; }
.bp-cta-text strong { color: var(--t1); font-weight: 500; }
.bp-email-btn {
  background: var(--t1); color: var(--bg); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--r-sm); white-space: nowrap;
  transition: opacity .15s; flex-shrink: 0;
}
.bp-email-btn:hover { opacity: .85; color: var(--bg); }

.bp-section-label { font-size: 10px; font-weight: 500; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; margin-top: 8px; }
.bp-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media(max-width:480px) { .bp-details-grid { grid-template-columns: 1fr; } }
.bp-detail { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.bp-detail-label { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; margin-bottom: 5px; }
.bp-detail-val { font-size: 13px; font-weight: 500; color: var(--t1); }
.bp-val-green { color: var(--green); }

.bp-brief-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.bp-brief-text { font-size: 13px; color: var(--t2); line-height: 1.7; margin-top: 8px; white-space: pre-wrap; }

.bp-creator-card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.bp-creator-av {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg2);
  border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600; color: var(--t2); flex-shrink: 0;
}
.bp-creator-name { font-size: 14px; font-weight: 500; color: var(--t1); margin-bottom: 3px; }
.bp-creator-meta { font-size: 11px; color: var(--t3); margin-bottom: 8px; }
.bp-creator-bio { font-size: 12px; color: var(--t2); line-height: 1.6; }

.bp-faq { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.bp-faq-item { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-sm); }
.bp-faq-item summary {
  font-size: 13px; font-weight: 500; padding: 12px 16px; cursor: pointer;
  list-style: none; color: var(--t1); display: flex; align-items: center; justify-content: space-between;
}
.bp-faq-item summary::after { content: '+'; color: var(--t3); font-size: 16px; }
.bp-faq-item[open] summary::after { content: '−'; }
.bp-faq-item p { font-size: 12px; color: var(--t2); line-height: 1.65; padding: 0 16px 14px; }
.bp-faq-item p a { color: var(--t2); text-decoration: underline; text-underline-offset: 2px; }

.bp-powered { text-align: center; padding: 20px; font-size: 11px; color: var(--t4); }
.bp-powered a { color: var(--t3); }
.bp-powered a:hover { color: var(--t1); }

/* ═══════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════ */
.landing-body { font-family: var(--sans); background: var(--bg); }
.landing-body .pub-nav { display: none; }
.landing-body .g-footer { display: none; }

/* nav */
.ln-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center;
  padding: 0 40px; height: 54px;
  background: rgba(12,12,12,0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.ln-logo { font-size: 15px; font-weight: 600; color: var(--t1); letter-spacing: -.3px; margin-right: auto; text-decoration: none; }
.ln-nav-links { display: flex; gap: 28px; margin-right: 28px; }
.ln-nav-links a { font-size: 13px; color: var(--t3); transition: color .15s; }
.ln-nav-links a:hover { color: var(--t1); }
.ln-nav-right { display: flex; align-items: center; gap: 10px; }
.ln-login { font-size: 13px; color: var(--t3); transition: color .15s; padding: 6px 12px; }
.ln-login:hover { color: var(--t1); }
.ln-cta { font-size: 13px; font-weight: 500; background: var(--t1); color: var(--bg); padding: 7px 16px; border-radius: var(--r-sm); transition: opacity .15s; }
.ln-cta:hover { opacity: .85; color: var(--bg); }
@media(max-width:600px) { .ln-nav-links { display: none; } .ln-nav { padding: 0 20px; } }

/* hero */
.l-hero { max-width: 1100px; margin: 0 auto; padding: 100px 40px 80px; display: flex; flex-direction: column; align-items: center; }
.l-hero-inner { text-align: center; max-width: 680px; margin-bottom: 64px; }
.l-badge { display: inline-block; font-size: 11px; color: var(--t3); border: 1px solid var(--line); padding: 4px 12px; border-radius: 100px; margin-bottom: 32px; letter-spacing: .02em; }
.l-h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; color: #fff; margin-bottom: 22px; }
.l-h1 em { font-style: italic; color: var(--t2); }
.l-sub { font-size: 15px; line-height: 1.75; color: var(--t3); max-width: 520px; margin: 0 auto 32px; }
.l-hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.l-btn-primary { background: var(--t1); color: var(--bg); font-size: 14px; font-weight: 500; letter-spacing: -.1px; padding: 11px 24px; border-radius: var(--r-sm); text-decoration: none; transition: opacity .15s; }
.l-btn-primary:hover { opacity: .85; color: var(--bg); }
.l-btn-ghost { background: transparent; color: var(--t3); font-size: 14px; border: 1px solid var(--line2); padding: 11px 24px; border-radius: var(--r-sm); text-decoration: none; transition: all .15s; }
.l-btn-ghost:hover { color: var(--t1); border-color: var(--line2); }
.l-proof { font-size: 12px; color: var(--t4); display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.l-proof-dot { opacity: .4; }

/* dashboard preview */
.l-preview { width: 100%; max-width: 900px; background: var(--bg1); border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.5); }
.lp-chrome { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.lp-dots { display: flex; gap: 5px; }
.lp-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: var(--bg3); }
.lp-addr { flex: 1; text-align: center; font-size: 11px; color: var(--t4); background: var(--bg3); padding: 3px 10px; border-radius: 4px; font-family: var(--mono); max-width: 220px; margin: 0 auto; }
.lp-body { display: grid; grid-template-columns: 156px 1fr; }
.lp-sidebar { background: var(--bg2); border-right: 1px solid var(--line); padding: 14px 10px; }
.lp-sb-logo { font-size: 13px; font-weight: 600; color: var(--t1); padding: 2px 6px 14px; letter-spacing: -.2px; }
.lp-sb-item { font-size: 12px; color: var(--t3); padding: 6px 8px; border-radius: var(--r-sm); margin-bottom: 1px; display: flex; align-items: center; justify-content: space-between; }
.lp-sb-item.active { background: var(--bg3); color: var(--t1); }
.lp-badge { background: var(--bg3); color: var(--t3); font-size: 9px; padding: 1px 5px; border-radius: 4px; }
.lp-main { padding: 16px; }
.lp-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.lp-kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.lp-kv { font-size: 18px; font-weight: 600; color: var(--t1); margin-bottom: 2px; letter-spacing: -.02em; }
.lp-kl { font-size: 10px; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }
.lp-table { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.lp-th { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 7px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--t4); border-bottom: 1px solid var(--line); background: var(--bg2); }
.lp-tr { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 12px; align-items: center; border-bottom: 1px solid var(--line); font-size: 12px; }
.lp-tr:last-child { border-bottom: none; }
.lp-brand { color: var(--t1); font-weight: 500; }
.lp-amt { color: var(--t3); font-size: 11px; }
.lp-s { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 4px; }
.lp-s-new { background: rgba(255,255,255,0.05); color: var(--t2); }
.lp-s-neg { background: var(--amber-bg); color: var(--amber); }
.lp-s-done { background: var(--green-bg); color: var(--green); }
.lp-s-rev { background: var(--bg3); color: var(--t4); }

/* container */
.l-container { max-width: 1000px; margin: 0 auto; padding: 0 40px; }
@media(max-width:600px) { .l-container { padding: 0 20px; } }

/* section shared */
.l-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); margin-bottom: 14px; font-weight: 500; }
.l-section-h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: #fff; margin-bottom: 48px; }

/* problem/solution */
.l-ps { padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg1); }
.l-ps-grid { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: start; }
@media(max-width:700px) { .l-ps-grid { grid-template-columns: 1fr; } }
.l-ps-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); margin-bottom: 16px; font-weight: 500; }
.l-ps-col h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; line-height: 1.2; color: #fff; margin-bottom: 20px; letter-spacing: -.02em; }
.l-ps-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.l-ps-col ul li { font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.l-ps-bad ul li { color: var(--t3); }
.l-ps-bad ul li::before { content: '—'; position: absolute; left: 0; color: var(--t4); }
.l-ps-good ul li { color: rgba(255,255,255,.65); }
.l-ps-good ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 12px; }
.l-ps-divider { display: flex; align-items: center; justify-content: center; padding-top: 52px; }
.l-ps-arrow { font-size: 18px; color: var(--t4); }
@media(max-width:700px) { .l-ps-divider { display: none; } .l-ps-good { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); } }

/* how it works */
.l-how { padding: 100px 0; }
.l-steps { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: start; }
@media(max-width:760px) { .l-steps { grid-template-columns: 1fr; } .l-step-line { display: none; } }
.l-step-n { font-family: var(--serif); font-size: 2.5rem; color: var(--bg3); line-height: 1; margin-bottom: 14px; }
.l-step h3 { font-size: 14px; font-weight: 500; color: var(--t1); margin-bottom: 8px; letter-spacing: -.1px; }
.l-step p { font-size: 13px; color: var(--t3); line-height: 1.7; }
.l-step p strong { color: var(--t2); font-weight: 500; }
.l-step-line { display: flex; align-items: flex-start; justify-content: center; padding-top: 18px; }
.l-step-line::after { content: ''; width: 1px; height: 24px; background: var(--line2); display: block; }

/* features */
.l-features { padding: 100px 0; border-top: 1px solid var(--line); background: var(--bg1); }
.l-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media(max-width:640px) { .l-feat-grid { grid-template-columns: 1fr; } }
.l-feat { background: var(--bg2); padding: 28px 32px; transition: background .2s; }
.l-feat:hover { background: var(--bg3); }
.l-feat-wide { grid-column: span 2; border-bottom: 1px solid var(--line); }
@media(max-width:640px) { .l-feat-wide { grid-column: span 1; } }
.l-feat-icon { font-size: 20px; margin-bottom: 12px; opacity: .6; }
.l-feat h3 { font-size: 14px; font-weight: 500; color: var(--t1); margin-bottom: 7px; letter-spacing: -.1px; }
.l-feat p { font-size: 13px; color: var(--t3); line-height: 1.7; }
.l-feat p strong { color: var(--t2); font-weight: 500; }

/* pricing */
.l-pricing { padding: 100px 0; border-top: 1px solid var(--line); }
.l-pricing-sub { font-size: 14px; color: var(--t3); margin-top: -32px; margin-bottom: 40px; max-width: 460px; line-height: 1.7; }
.l-timer { display: inline-flex; align-items: center; gap: 16px; background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 18px; margin-bottom: 36px; }
.l-timer-label { font-size: 12px; color: var(--t3); white-space: nowrap; }
.l-timer-clock { display: flex; align-items: center; gap: 4px; }
.l-tc { text-align: center; }
.l-tc span { display: block; font-size: 17px; font-weight: 600; color: var(--t1); letter-spacing: -.02em; line-height: 1; min-width: 26px; text-align: center; }
.l-tc small { font-size: 9px; color: var(--t4); text-transform: uppercase; letter-spacing: .06em; }
.l-tc-sep { font-size: 14px; color: var(--t4); padding: 0 2px; line-height: 1.4; }
.l-price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:560px) { .l-price-cards { grid-template-columns: 1fr; } }
.l-price-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative; }
.l-price-featured { background: #fff; border-color: transparent; }
.l-pc-tag { position: absolute; top: -1px; left: 20px; background: var(--green); color: #000; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 0 0 7px 7px; }
.l-pc-plan { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); font-weight: 500; margin-bottom: 10px; margin-top: 8px; }
.l-price-featured .l-pc-plan { color: rgba(0,0,0,0.4); }
.l-pc-price { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; letter-spacing: -.03em; color: var(--t1); line-height: 1; margin-bottom: 6px; }
.l-pc-price span { font-family: var(--sans); font-size: 13px; color: var(--t3); font-weight: 400; }
.l-price-featured .l-pc-price { color: #0c0c0c; }
.l-price-featured .l-pc-price span { color: rgba(0,0,0,0.4); }
.l-pc-desc { font-size: 12px; color: var(--t3); margin-bottom: 20px; line-height: 1.5; }
.l-price-featured .l-pc-desc { color: rgba(0,0,0,0.45); }
.l-pc-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.l-pc-list li { font-size: 13px; color: rgba(255,255,255,.55); padding-left: 18px; position: relative; }
.l-pc-list li::before { content: '✓'; position: absolute; left: 0; font-size: 11px; color: var(--t4); }
.l-price-featured .l-pc-list li { color: rgba(0,0,0,.65); }
.l-price-featured .l-pc-list li::before { color: rgba(0,0,0,.3); }
.l-dim { opacity: .3; }
.l-pc-btn { display: block; text-align: center; text-decoration: none; padding: 11px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; letter-spacing: -.1px; transition: opacity .15s; border: 1px solid var(--line2); color: var(--t3); background: transparent; }
.l-pc-btn:hover { opacity: .75; color: var(--t3); }
.l-pc-btn-dark { background: #0c0c0c; color: #fff !important; border-color: transparent; }
.l-pc-btn-dark:hover { opacity: .85; color: #fff !important; }

/* landing footer */
.l-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.l-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.l-footer-logo { font-size: 14px; font-weight: 600; color: var(--t1); letter-spacing: -.2px; }
.l-footer-inner span:not(.l-footer-logo) { font-size: 12px; color: var(--t4); }
.landing-body .flash-container { top: 62px; }

/* ── 404 ── */
.not-found-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; text-align: center; }
.nf-wrap { max-width: 360px; }
.nf-num { font-family: var(--serif); font-size: 6rem; font-weight: 400; color: var(--bg3); line-height: 1; }
.nf-wrap h2 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 500; }


/* ── UPGRADE / PRO ── */
.sn-upgrade { color: var(--t2) !important; border: 1px solid var(--line2); margin: 6px 0 0; }
.sn-upgrade:hover { background: var(--bg2) !important; color: var(--t1) !important; }
.sn-upgrade.active { background: var(--bg2) !important; color: var(--t1) !important; }
.plan-badge { background: var(--bg3); color: var(--t2); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.plan-badge-pro { background: var(--t1); color: var(--bg); }

/* ── Mobile sidebar toggle ── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--line2);
  color: var(--t1);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .sidebar-toggle { display: flex; }
  .sidebar {
    position: fixed !important;
    top: 0; left: -240px;
    height: 100vh;
    z-index: 150;
    transition: left .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.3);
  }
  .sidebar.open { left: 0; }
  .app-main { margin-left: 0 !important; }
}

/* ── Export CSV button ── */
.export-btn { font-size: 11px; padding: 5px 10px; }
