/* ═══════════════════════════════════════════════════════════════════
   BOCA WEST PRIVATE EQUITY PLATFORM — DESIGN SYSTEM
   Professional finance dashboard · Dark + Light modes
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── LIGHT (default) ──────────────────────────────────────────────── */
:root {
  --green-950: #020C06;
  --green-900: #062010;
  --green-800: #0D3018;
  --green-700: #1A5230;
  --green-600: #227342;
  --green-500: #2D8A57;
  --green-400: #4CAF7D;
  --green-200: #A8D5BC;
  --green-100: #D4EDE0;
  --green-50:  #EEF7F2;
  --gold:       #C9993A;
  --gold-light: #E4B85A;
  --gold-shine: #F5D07A;
  --gold-dim:   #8A6620;

  --bg-page:      #F5F7F5;
  --bg-surface:   #FFFFFF;
  --bg-elevated:  #FFFFFF;
  --bg-inset:     #F5F7F5;
  --bg-code:      #F0F4F0;

  --text-950: #040C06;
  --text-800: #1A2E1A;
  --text-600: #3A5A3A;
  --text-400: #6A8A6A;
  --text-200: #A8C4A8;

  --border:    #E0E8E0;
  --border-md: #C4D4C4;
  --border-lg: #A8C4A8;

  --red:      #C0392B;
  --red-bg:   #FEF2F2;
  --amber:    #D68910;
  --amber-bg: #FFFBEB;
  --blue:     #2874A6;
  --blue-bg:  #EFF6FF;
  --purple:   #7C3AED;
  --purple-bg:#F5F3FF;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'Space Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(6,32,16,.04);
  --shadow-sm: 0 2px 8px rgba(6,32,16,.07);
  --shadow-md: 0 6px 20px rgba(6,32,16,.10);
  --shadow-lg: 0 16px 48px rgba(6,32,16,.14);

  --sidebar-w: 260px;
  --topbar-h:  62px;
}

/* ── DARK ─────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-page:      #0A1512;
  --bg-surface:   #12211A;
  --bg-elevated:  #172D22;
  --bg-inset:     #0A1512;
  --bg-code:      #0A1512;

  --text-950: #FFFFFF;
  --text-800: #E4EEE4;
  --text-600: #A8C4A8;
  --text-400: #6E8E7B;
  --text-200: #4A6A57;

  --border:    #1F3A2A;
  --border-md: #2A4A38;
  --border-lg: #3A5A48;

  --red-bg:    #2A1A16;
  --amber-bg:  #2A2214;
  --blue-bg:   #16232F;
  --green-50:  #0E2417;
  --purple-bg: #1E1A2E;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.35);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
}

/* ═══ RESET & BASE ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text-800); background: var(--bg-page); line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
a { color: var(--green-500); text-decoration: none; transition: color .18s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ═══ ICONS ═════════════════════════════════════════════════════════ */
.icon { display: inline-block; width: 18px; height: 18px; vertical-align: middle; flex-shrink: 0; }
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 32px; height: 32px; }

/* ═══ AUTH PAGES ═════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(160deg, #020C06 0%, #062010 40%, #1A5230 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.7);
}
.auth-visual::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,58,.12), transparent 65%);
  bottom: -200px; right: -100px;
  pointer-events: none;
}
.auth-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.auth-mark {
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1.5px solid rgba(201,153,58,.5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
}
.auth-brand h1 { color: #fff; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.auth-brand p { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.auth-tagline { font-size: .92rem; line-height: 1.8; max-width: 380px; position: relative; z-index: 2; }
.auth-tagline strong { color: rgba(255,255,255,.9); font-weight: 600; }
.auth-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 2; }
.auth-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px 16px; }
.auth-stat-val { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); font-weight: 700; line-height: 1; margin-bottom: 4px; }
.auth-stat-lbl { font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); }

.auth-form-side { background: var(--bg-surface); display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form-box { width: 100%; max-width: 400px; }
.auth-form-box h2 { font-family: var(--serif); font-size: 1.75rem; color: var(--text-950); margin-bottom: 6px; font-style: italic; }
.auth-form-box .subtitle { color: var(--text-400); font-size: .9rem; margin-bottom: 32px; }
.auth-form-box .footer-links { text-align: center; margin-top: 24px; font-size: .82rem; color: var(--text-400); }
.auth-form-box .footer-links a { color: var(--gold); font-weight: 600; }

/* ═══ LAYOUT ════════════════════════════════════════════════════════ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--green-900);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
}
[data-theme="dark"] .sidebar { background: #04120A; border-right: 1px solid var(--border); }

.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid rgba(201,153,58,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  flex-shrink: 0;
}
.sidebar-brand h2 { font-family: var(--serif); font-size: .9rem; color: #fff; font-weight: 600; line-height: 1.2; }
.sidebar-brand p { font-family: var(--mono); font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.sidebar-section {
  padding: 18px 20px 6px;
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  font-weight: 700;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  color: rgba(255,255,255,.55);
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .18s;
  position: relative;
}
.nav-item:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.04); }
.nav-item.active { color: #fff; border-left-color: var(--gold); background: rgba(255,255,255,.06); }
.nav-item .icon { opacity: .7; }
.nav-item.active .icon { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--gold); color: var(--green-900);
  font-family: var(--mono); font-size: .55rem;
  padding: 2px 7px; border-radius: 10px;
  font-weight: 700; letter-spacing: .04em;
}
.sidebar-divider { height: 1px; background: rgba(255,255,255,.06); margin: 8px 20px; }
.sidebar-user {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: .82rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }

.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-family: var(--serif); font-size: 1rem; color: var(--text-950); font-weight: 600; font-style: italic; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-950);
}
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  color: var(--text-600);
  cursor: pointer;
  transition: all .18s;
  position: relative;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn-badge {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold); color: var(--green-900);
  font-family: var(--mono); font-size: .52rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: .78rem; font-weight: 700;
  flex-shrink: 0;
}
.avatar.gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--green-900); }

.content { padding: 26px 28px; flex: 1; }

/* ═══ TYPOGRAPHY ════════════════════════════════════════════════════ */
.page-header { margin-bottom: 24px; }
.eyebrow { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
h1.page-title { font-family: var(--serif); font-size: 1.6rem; color: var(--text-950); font-style: italic; line-height: 1.2; margin-bottom: 4px; }
.page-desc { color: var(--text-400); font-size: .88rem; line-height: 1.65; max-width: 720px; }

/* ═══ CARDS ═════════════════════════════════════════════════════════ */
.card { background: var(--bg-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden; }
.card + .card { margin-top: 18px; }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.card-title { font-family: var(--serif); font-size: .98rem; font-weight: 600; color: var(--text-950); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg-inset); }

/* ═══ PORTFOLIO HERO ═══════════════════════════════════════════════ */
.port-hero {
  background: linear-gradient(145deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
  border-radius: var(--radius-xl);
  padding: 30px 28px 24px;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
  color: #fff;
}
.port-hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,58,.18), transparent 70%);
  top: -80px; right: -60px;
  pointer-events: none;
}
.ph-label { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: 10px; }
.ph-amount { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1.05; margin-bottom: 6px; position: relative; z-index: 1; }
.ph-sub { font-family: var(--mono); font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.ph-sub.up { color: #6EDEA0; }
.ph-sub.down { color: #F08080; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.ph-stat { padding: 0 16px; border-right: 1px solid rgba(255,255,255,.08); }
.ph-stat:first-child { padding-left: 0; }
.ph-stat:last-child { border-right: none; }
.ph-stat-label { font-family: var(--mono); font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 5px; }
.ph-stat-val { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: #fff; }
.ph-stat-val.gold { color: var(--gold-shine); }

/* ═══ KPI GRID ══════════════════════════════════════════════════════ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 20px 20px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
}
.kpi::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green-500); }
.kpi-gold::before { background: var(--gold); }
.kpi-blue::before { background: var(--blue); }
.kpi-amber::before { background: var(--amber); }
.kpi-red::before { background: var(--red); }
.kpi-purple::before { background: var(--purple); }
.kpi-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--green-50); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.kpi-gold .kpi-icon { background: rgba(201,153,58,.1); }
.kpi-blue .kpi-icon { background: var(--blue-bg); }
.kpi-amber .kpi-icon { background: var(--amber-bg); }
.kpi-red .kpi-icon { background: var(--red-bg); }
.kpi-purple .kpi-icon { background: var(--purple-bg); }
.kpi-label { font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-400); margin-bottom: 6px; font-weight: 700; }
.kpi-value { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--text-950); line-height: 1; }
.kpi-delta { font-family: var(--mono); font-size: .7rem; margin-top: 8px; color: var(--text-400); display: flex; align-items: center; gap: 4px; }
.kpi-delta.up { color: var(--green-500); }
.kpi-delta.down { color: var(--red); }

/* ═══ FORMS ═════════════════════════════════════════════════════════ */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-400); margin-bottom: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: .9rem; color: var(--text-800);
  background: var(--bg-surface);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,153,58,.12); }
.field textarea { resize: vertical; min-height: 90px; }
.field .help { font-size: .74rem; color: var(--text-400); margin-top: 5px; line-height: 1.5; }
.field .help.err { color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.field-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.field-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.field-checkbox label { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .85rem; color: var(--text-800); margin-bottom: 0; font-weight: 400; line-height: 1.6; }

/* ═══ BUTTONS ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap; line-height: 1.2;
  transition: all .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--green-900); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); color: var(--green-900); }
.btn-green { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.btn-green:hover { background: var(--green-800); color: #fff; }
.btn-outline { background: var(--bg-surface); color: var(--text-800); border-color: var(--border-md); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text-400); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-inset); color: var(--text-800); }
.btn-danger { background: var(--bg-surface); color: var(--red); border-color: rgba(192,57,43,.25); }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { padding: 7px 13px; font-size: .72rem; }
.btn-lg { padding: 13px 24px; font-size: .84rem; }
.btn-block { width: 100%; }

/* ═══ TABLES ════════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table thead th {
  background: var(--bg-inset); padding: 10px 16px; text-align: left;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-400); border-bottom: 1.5px solid var(--border); font-weight: 700; white-space: nowrap;
}
.data-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-800); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-inset); }
.td-num { font-family: var(--mono); font-weight: 700; color: var(--text-950); }
.td-num.pos { color: var(--green-500); }
.td-num.neg { color: var(--red); }
.td-muted { color: var(--text-400); font-size: .8rem; }

/* ═══ PILLS ═════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; white-space: nowrap;
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-active, .pill-approved, .pill-completed, .pill-credited, .pill-confirmed, .pill-paid { background: rgba(45,138,87,.12); color: var(--green-500); }
.pill-pending, .pill-under_review, .pill-awaiting_confirmations, .pill-payment_detected, .pill-submitted, .pill-processing, .pill-broadcast { background: rgba(214,137,16,.12); color: var(--amber); }
.pill-rejected, .pill-closed, .pill-failed, .pill-cancelled, .pill-suspended, .pill-restricted { background: rgba(192,57,43,.12); color: var(--red); }
.pill-new, .pill-draft, .pill-awaiting_payment, .pill-email_verification_required, .pill-kyc_required, .pill-additional_info_required, .pill-email_confirmation_required, .pill-additional_verification_required, .pill-pending_payment, .pill-pending_review, .pill-pending_approval { background: rgba(40,116,166,.12); color: var(--blue); }
.pill-refunded, .pill-hold { background: rgba(124,58,237,.12); color: var(--purple); }

/* ═══ ALERTS ════════════════════════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .86rem; line-height: 1.55; border-left: 3px solid; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert .icon { margin-top: 2px; flex-shrink: 0; }
.alert-success { background: var(--green-50); border-color: var(--green-500); color: var(--green-700); }
.alert-error { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.alert-info { background: var(--blue-bg); border-color: var(--blue); color: var(--blue); }
.alert-warning { background: var(--amber-bg); border-color: var(--amber); color: var(--amber); }
[data-theme="dark"] .alert-success { color: #6EDEA0; }
[data-theme="dark"] .alert-error { color: #F08080; }

/* ═══ RISK DISCLOSURE ═══════════════════════════════════════════════ */
.risk-notice {
  background: var(--amber-bg);
  border: 1px solid var(--amber);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-800);
  margin-bottom: 18px;
}
.risk-notice strong { color: var(--amber); }
[data-theme="dark"] .risk-notice { color: var(--text-800); }

/* ═══ EMPTY STATE ═══════════════════════════════════════════════════ */
.empty { text-align: center; padding: 52px 24px; }
.empty-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--green-500);
}
.empty h3 { font-family: var(--serif); font-size: 1rem; color: var(--text-600); margin-bottom: 4px; }
.empty p { font-size: .84rem; color: var(--text-400); line-height: 1.65; max-width: 400px; margin: 0 auto; }

/* ═══ WALLET DEPOSIT UI ═════════════════════════════════════════════ */
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .18s;
  background: var(--bg-surface);
}
.wallet-opt:hover { border-color: var(--gold); }
.wallet-opt.sel { border-color: var(--gold); background: rgba(201,153,58,.04); }
.wallet-coin {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.wallet-name { font-weight: 600; font-size: .88rem; color: var(--text-950); }
.wallet-network { font-family: var(--mono); font-size: .62rem; color: var(--text-400); }
.wallet-addr-box {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: .78rem; color: var(--text-800);
  word-break: break-all; margin: 12px 0;
}
.qr-container {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid var(--border);
}

/* ═══ MESSAGES ══════════════════════════════════════════════════════ */
.msg-bubble { max-width: 78%; margin-bottom: 16px; }
.msg-bubble.from-me { margin-left: auto; }
.msg-meta { font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-400); margin-bottom: 4px; }
.msg-bubble.from-me .msg-meta { text-align: right; color: var(--gold-dim); }
.msg-content { padding: 12px 16px; border-radius: 12px; font-size: .88rem; line-height: 1.65; }
.msg-bubble:not(.from-me) .msg-content { background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-800); border-radius: 2px 12px 12px 12px; }
.msg-bubble.from-me .msg-content { background: var(--green-900); color: rgba(255,255,255,.9); border-radius: 12px 2px 12px 12px; }
.msg-bubble.admin-reply .msg-content { background: rgba(201,153,58,.08); border: 1px solid rgba(201,153,58,.2); border-left: 3px solid var(--gold); color: var(--text-800); }
[data-theme="dark"] .msg-bubble.admin-reply .msg-content { color: var(--text-800); }

/* ═══ ONBOARDING STEPS ═════════════════════════════════════════════ */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; overflow-x: auto; }
.step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border-md);
  background: var(--bg-surface); color: var(--text-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  flex-shrink: 0;
}
.step.done .step-num { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.step.current .step-num { border-color: var(--gold); background: var(--gold); color: var(--green-900); }
.step-label { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-400); font-weight: 700; white-space: nowrap; }
.step.current .step-label { color: var(--gold); }
.step.done .step-label { color: var(--green-500); }
.step-line { width: 40px; height: 1.5px; background: var(--border-md); margin: 0 8px; flex-shrink: 0; }
.step.done + .step-line, .step-line.done { background: var(--green-500); }

/* ═══ TIMELINE ══════════════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1.5px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -24px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--green-400); border: 2px solid var(--bg-surface); box-shadow: 0 0 0 2px var(--green-400); }
.tl-dot.gold { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.tl-meta { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-400); margin-bottom: 3px; }
.tl-title { font-size: .88rem; font-weight: 600; color: var(--text-950); margin-bottom: 2px; }
.tl-body { font-size: .82rem; color: var(--text-400); line-height: 1.55; }

/* ═══ FILTERS ═══════════════════════════════════════════════════════ */
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-btn {
  padding: 6px 14px; border-radius: 20px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--text-400);
  background: var(--bg-surface); cursor: pointer;
  transition: all .18s;
}
.filter-btn:hover, .filter-btn.on { background: var(--green-900); color: #fff; border-color: var(--green-900); }

/* ═══ ANNOUNCEMENT CARDS ═══════════════════════════════════════════ */
.ann-card { border: 1px solid var(--border); border-left: 3px solid var(--green-500); background: var(--bg-surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 14px 18px; margin-bottom: 12px; }
.ann-card.high { border-left-color: var(--gold); }
.ann-date { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-400); margin-bottom: 6px; }
.ann-title { font-family: var(--serif); font-size: .98rem; color: var(--text-950); margin-bottom: 5px; }
.ann-body { font-size: .85rem; color: var(--text-600); line-height: 1.65; }

/* ═══ SIDEBAR OVERLAY ══════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* ═══ UTILITY ═══════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 18px; }
.mt-6 { margin-top: 24px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 18px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-mono { font-family: var(--mono); }
.text-serif { font-family: var(--serif); }
.text-sm { font-size: .82rem; }
.text-xs { font-size: .72rem; }
.text-lg { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-400); }
.text-green { color: var(--green-500); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-950 { color: var(--text-950); }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.hidden { display: none !important; }

/* Legacy aliases (safe) */
.lede { color: var(--text-400); font-size: .88rem; line-height: 1.65; }
.section-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--text-950); }

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 32px 24px; }
  .grid-2, .grid-2-1, .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .ph-grid { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .ph-stat { border-right: none; }
  .ph-amount { font-size: 2rem; }
  .wallet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  h1.page-title { font-size: 1.35rem; }
  .ph-grid { grid-template-columns: 1fr; }
}
