/* ============================================================
   Marble Rock Finance — Global Stylesheet
   ============================================================ */

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

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

:root {
  --navy-950: #050a18;
  --navy-900: #0a0f1e;
  --navy-800: #0d1526;
  --navy-700: #111d35;
  --navy-600: #1a2744;
  --navy-500: #243358;
  --gold-300: #f0c040;
  --gold-400: #d4af37;
  --gold-500: #b8960c;
  --emerald:  #10b981;
  --red:      #ef4444;
  --blue:     #3b82f6;
  --slate-100:#e2e8f0;
  --slate-200:#cbd5e1;
  --slate-300:#94a3b8;
  --slate-400:#64748b;
  --slate-500:#475569;
  --slate-600:#334155;
  --radius:   14px;
  --shadow:   0 8px 32px rgba(0,0,0,.4);
  --transition: all .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy-900);
  color: var(--slate-100);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.light {
  background: #f1f5f9;
  color: #1e293b;
}

/* ── Typography ───────────────────────────────────────────── */
.font-display { font-family: 'Inter', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', Consolas, monospace; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* ── Glass card ───────────────────────────────────────────── */
.glass {
  background: rgba(13,21,38,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,.12);
}
.card {
  background: rgba(13,21,38,.85);
  border: 1px solid rgba(212,175,55,.12);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ── Gold gradient text ────────────────────────────────────── */
.text-gold {
  background: linear-gradient(135deg,#d4af37,#f0c040,#d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 10px;
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; outline: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-gold {
  background: linear-gradient(135deg,#d4af37,#f0c040);
  color: var(--navy-900);
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 0 24px rgba(212,175,55,.4); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(212,175,55,.4);
  color: var(--gold-400);
}
.btn-ghost:hover:not(:disabled) { background: rgba(212,175,55,.08); }

.btn-danger {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #ef4444;
}
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.2); }

.btn-full { width: 100%; }
.btn-sm   { padding: 8px 16px; font-size: 12px; }
.btn-lg   { padding: 16px 32px; font-size: 16px; }

/* ── Form inputs ──────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--navy-700);
  border: 1px solid var(--navy-500);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--slate-100);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.input::placeholder { color: var(--slate-500); }
.input:focus { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.5); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 42px; }
.input-icon-wrap .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--slate-500); pointer-events: none; width: 16px; height: 16px;
}
.input-icon-wrap .icon-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--slate-500); cursor: pointer; background: none; border: none;
}
.input-icon-wrap .icon-right:hover { color: var(--slate-200); }

select.input { appearance: none; cursor: pointer; }
textarea.input { resize: vertical; min-height: 80px; }

label.field-label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--slate-400); margin-bottom: 6px; letter-spacing: .3px;
}

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Password strength bar ────────────────────────────────── */
.strength-bars { display: flex; gap: 4px; margin-top: 6px; }
.strength-bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--navy-600); transition: background .3s;
}
.strength-label { font-size: 11px; margin-top: 4px; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 10px; font-size: 14px;
  margin-bottom: 16px;
}
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-warn    { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.alert-info    { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
}
.badge-gold     { background: rgba(212,175,55,.1); color: var(--gold-400); border-color: rgba(212,175,55,.3); }
.badge-emerald  { background: rgba(16,185,129,.1); color: var(--emerald);  border-color: rgba(16,185,129,.3); }
.badge-red      { background: rgba(239,68,68,.1);  color: var(--red);      border-color: rgba(239,68,68,.3); }
.badge-blue     { background: rgba(59,130,246,.1); color: var(--blue);     border-color: rgba(59,130,246,.3); }
.badge-slate    { background: rgba(100,116,139,.1);color: var(--slate-300);border-color: rgba(100,116,139,.3); }

/* ── Shimmer loader ───────────────────────────────────────── */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.shimmer {
  background: linear-gradient(90deg,var(--navy-700) 25%,var(--navy-600) 50%,var(--navy-700) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ── Spinner ──────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(10,15,30,.3);
  border-top-color: var(--navy-900);
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner-gold {
  border-color: rgba(212,175,55,.2);
  border-top-color: var(--gold-400);
}

/* ── Layout ───────────────────────────────────────────────── */
#app { display: flex; min-height: 100vh; }

/* Auth pages */
.auth-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 24px;
}
.auth-panel { display: flex; min-height: 100vh; width: 100%; }
.auth-left {
  display: none; flex: 1; background: var(--navy-800);
  border-right: 1px solid rgba(212,175,55,.1);
  padding: 48px; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
@media(min-width:1024px) { .auth-left { display: flex; } }
.auth-right {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 24px;
}
.auth-box { width: 100%; max-width: 460px; }

/* Sidebar layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; display: none; flex-direction: column;
  background: rgba(13,21,38,.9);
  border-right: 1px solid rgba(212,175,55,.1);
  backdrop-filter: blur(20px);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  overflow-y: auto;
}
@media(min-width:1024px) { .sidebar { display: flex; } }

.sidebar-logo { padding: 24px; border-bottom: 1px solid rgba(212,175,55,.1); }
.sidebar-logo .logo-title { font-family:'Playfair Display',serif; font-size: 20px; color: var(--gold-400); font-weight: 700; }
.sidebar-logo .logo-sub   { font-size: 10px; color: var(--slate-500); letter-spacing: 3px; text-transform: uppercase; }

.sidebar-user {
  margin: 12px 16px; padding: 12px; border-radius: 10px;
  background: rgba(26,39,68,.5); border: 1px solid rgba(212,175,55,.08);
}
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg,#d4af37,#f0c040);
  color: var(--navy-900); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 2px 12px; border-radius: 10px;
  color: var(--slate-400); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: var(--transition); cursor: pointer;
  border: none; background: none; width: calc(100% - 24px); text-align: left;
}
.nav-link:hover { color: var(--slate-100); background: rgba(26,39,68,.6); }
.nav-link.active { color: var(--gold-400); background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.2); }
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Main content */
.main-wrap { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
@media(min-width:1024px) { .main-wrap { margin-left: 260px; } }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,21,38,.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,.08);
  padding: 16px 24px; display: flex; align-items: center; gap: 16px;
}

.page-content { flex: 1; padding: 24px; max-width: 960px; }
@media(min-width:640px) { .page-content { padding: 32px; } }

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--gold-400);
  margin-bottom: 4px;
}
.page-sub { color: var(--slate-400); font-size: 14px; margin-bottom: 24px; }

/* Mobile bottom nav */
.bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,21,38,.95); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212,175,55,.1); padding: 8px 0 4px;
}
@media(min-width:1024px) { .bottom-nav { display: none; } }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px; font-size: 10px; font-weight: 500;
  color: var(--slate-500); cursor: pointer; padding: 4px;
  background: none; border: none; transition: var(--transition);
}
.bottom-nav-item.active { color: var(--gold-400); }
.bottom-nav-item svg { width: 20px; height: 20px; }

/* Add padding for mobile bottom nav */
@media(max-width:1023px) { .page-content { padding-bottom: 80px; } }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(212,175,55,.1); }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 600;
  color: var(--slate-500); text-transform: uppercase; letter-spacing: .8px;
  background: rgba(26,39,68,.5); border-bottom: 1px solid rgba(212,175,55,.08);
}
tbody tr { border-bottom: 1px solid rgba(26,39,68,.6); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(26,39,68,.3); }
td { padding: 14px 16px; font-size: 14px; color: var(--slate-200); }

/* ── Circular progress (transfer modal) ───────────────────── */
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--navy-600); stroke-width: 10; }
.progress-ring-fill {
  fill: none; stroke: url(#goldGrad); stroke-width: 10;
  stroke-linecap: round; transition: stroke-dashoffset .4s ease;
}

/* ── Modal overlay ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,10,24,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-box {
  background: var(--navy-800); border: 1px solid rgba(212,175,55,.2);
  border-radius: 20px; padding: 32px; width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(.92)} to{opacity:1;transform:scale(1)} }

/* ── Quick action grid ────────────────────────────────────── */
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media(max-width:480px) { .quick-grid { grid-template-columns: repeat(4,1fr); } }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 14px; border: 1px solid rgba(212,175,55,.08);
  background: rgba(13,21,38,.8); cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.quick-btn:hover { border-color: rgba(212,175,55,.25); background: rgba(212,175,55,.05); transform: translateY(-2px); }
.quick-btn .icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.quick-btn span { font-size: 11px; font-weight: 500; color: var(--slate-400); }

/* ── Balance card ─────────────────────────────────────────── */
.balance-card {
  border-radius: 20px; padding: 32px;
  background: linear-gradient(135deg,#0d1526 0%,#1a2744 50%,#0d1526 100%);
  border: 1px solid rgba(212,175,55,.2);
  box-shadow: 0 0 40px rgba(212,175,55,.08);
  position: relative; overflow: hidden;
}
.balance-card::before {
  content:''; position:absolute; top:-60px; right:-60px;
  width:200px; height:200px; border-radius:50%;
  background: radial-gradient(circle,rgba(212,175,55,.15),transparent 70%);
  pointer-events:none;
}

/* ── Virtual card ─────────────────────────────────────────── */
.vcard {
  border-radius: 16px; padding: 24px; aspect-ratio: 1.586/1;
  position: relative; overflow: hidden; cursor: default;
  transition: var(--transition);
}
.vcard:hover { transform: scale(1.02); }
.vcard-visa       { background: linear-gradient(135deg,#0d1526,#1a2744,#243358); }
.vcard-mastercard { background: linear-gradient(135deg,#1a0d26,#2a1744,#1a1526); }
.vcard-verve      { background: linear-gradient(135deg,#0d1a26,#0d2618,#1a2618); }
.vcard-frozen { position: absolute; inset: 0; background: rgba(5,10,24,.75); backdrop-filter:blur(4px); border-radius:16px; display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px; }

/* ── Transaction row ──────────────────────────────────────── */
.txn-row { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid rgba(26,39,68,.5); }
.txn-row:last-child { border-bottom:none; }
.txn-icon { width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.txn-icon.debit   { background:rgba(239,68,68,.1); }
.txn-icon.credit  { background:rgba(16,185,129,.1); }
.txn-amount.debit  { color: var(--red); font-weight:600; }
.txn-amount.credit { color: var(--emerald); font-weight:600; }

/* ── Step wizard ──────────────────────────────────────────── */
.step-bar { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.step-dot {
  width:32px;height:32px;border-radius:50%;font-weight:700;font-size:13px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition: var(--transition);
}
.step-dot.done    { background:linear-gradient(135deg,#d4af37,#f0c040); color:var(--navy-900); }
.step-dot.active  { background:linear-gradient(135deg,#d4af37,#f0c040); color:var(--navy-900); }
.step-dot.pending { background:var(--navy-700); color:var(--slate-500); border:1px solid var(--navy-500); }
.step-line { flex:1; height:2px; background:var(--navy-600); border-radius:2px; }
.step-line.done { background:linear-gradient(90deg,#d4af37,#f0c040); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tab-bar { display:flex; background:var(--navy-800); border:1px solid var(--navy-600); border-radius:12px; padding:4px; gap:2px; }
.tab-btn { flex:1; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; background:none; color:var(--slate-400); transition:var(--transition); }
.tab-btn.active { background:linear-gradient(135deg,#d4af37,#f0c040); color:var(--navy-900); }
.tab-btn:hover:not(.active) { color:var(--slate-200); }

/* ── Divider ──────────────────────────────────────────────── */
.divider { height:1px; background:linear-gradient(90deg,transparent,rgba(212,175,55,.15),transparent); margin:20px 0; }

/* ── Info rows ────────────────────────────────────────────── */
.info-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid rgba(26,39,68,.5); }
.info-row:last-child { border-bottom:none; }
.info-label { color:var(--slate-500); font-size:13px; }
.info-value { color:var(--slate-100); font-size:13px; font-weight:600; }

/* ── Toast notifications ──────────────────────────────────── */
#toast-container { position:fixed; top:20px; right:20px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.toast {
  min-width:280px; max-width:380px; padding:14px 18px; border-radius:12px;
  background:var(--navy-700); border:1px solid rgba(212,175,55,.2);
  color:var(--slate-100); font-size:14px; display:flex; align-items:center; gap:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  animation: toastIn .3s ease; pointer-events:auto;
}
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from{opacity:0;transform:translateX(100%)} to{opacity:1;transform:translateX(0)} }
@keyframes toastOut { from{opacity:1;transform:translateX(0)} to{opacity:0;transform:translateX(100%)} }
.toast-success { border-color:rgba(16,185,129,.3); }
.toast-error   { border-color:rgba(239,68,68,.3); }

/* ── Confetti ─────────────────────────────────────────────── */
.confetti-piece {
  position:fixed; top:-10px; border-radius:50%; pointer-events:none; z-index:9998;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform:translateY(0) rotate(0deg); opacity:1; }
  80%  { opacity:1; }
  100% { transform:translateY(110vh) rotate(720deg); opacity:0; }
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display:flex; align-items:center; justify-content:space-between; margin-top:16px; }
.page-btn { padding:8px 14px; border-radius:8px; border:1px solid var(--navy-500); background:none; color:var(--slate-400); cursor:pointer; font-size:13px; transition:var(--transition); }
.page-btn:hover:not(:disabled) { border-color:rgba(212,175,55,.4); color:var(--gold-400); }
.page-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ── Search/filter bar ────────────────────────────────────── */
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.filter-bar .input { flex:1; min-width:200px; }

/* ── Investment card ──────────────────────────────────────── */
.invest-card { cursor:pointer; transition:var(--transition); }
.invest-card:hover { transform:translateY(-4px); box-shadow:0 0 30px rgba(212,175,55,.15); border-color:rgba(212,175,55,.3) !important; }

/* ── Progress bar ─────────────────────────────────────────── */
.progress-bar-wrap { background:var(--navy-700); border-radius:999px; overflow:hidden; height:8px; }
.progress-bar-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,#d4af37,#f0c040); transition:width 1s ease; }

/* ── Toggle switch ────────────────────────────────────────── */
.toggle-wrap { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid rgba(26,39,68,.5); }
.toggle-wrap:last-child { border-bottom:none; }
.toggle { width:44px;height:24px;border-radius:999px;cursor:pointer;position:relative;transition:var(--transition);border:none; }
.toggle.on  { background:linear-gradient(135deg,#d4af37,#f0c040); }
.toggle.off { background:var(--navy-600); }
.toggle-knob { position:absolute;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:var(--transition);box-shadow:0 1px 4px rgba(0,0,0,.3); }
.toggle.on  .toggle-knob { left:23px; }
.toggle.off .toggle-knob { left:3px; }

/* ── Copy button ──────────────────────────────────────────── */
.copy-btn { background:none;border:none;cursor:pointer;color:var(--slate-500);transition:var(--transition);padding:4px; }
.copy-btn:hover { color:var(--gold-400); }

/* ── Floating orbs (landing) ──────────────────────────────── */
.orb { position:absolute;border-radius:50%;filter:blur(60px);pointer-events:none; }
.orb-gold   { background:rgba(212,175,55,.06); }
.orb-emerald{ background:rgba(16,185,129,.05); }

/* ── Landing hero ─────────────────────────────────────────── */
.landing { background:var(--navy-900); min-height:100vh; }
.hero { padding:140px 24px 80px; text-align:center; position:relative; overflow:hidden; }
.hero h1 { font-family:'Playfair Display',serif; font-size:clamp(40px,8vw,80px); font-weight:800; line-height:1.1; margin-bottom:24px; }
.hero p { font-size:clamp(16px,2vw,20px); color:var(--slate-400); max-width:600px; margin:0 auto 40px; line-height:1.7; }
.hero-btns { display:flex;gap:16px;justify-content:center;flex-wrap:wrap; }

.section { padding:80px 24px; max-width:1200px; margin:0 auto; }
.section-title { font-family:'Playfair Display',serif; font-size:clamp(28px,4vw,44px); font-weight:700; text-align:center; margin-bottom:12px; }
.section-sub { color:var(--slate-400); text-align:center; max-width:560px; margin:0 auto 48px; line-height:1.7; }

.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.stat-grid    { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
@media(min-width:640px) { .stat-grid { grid-template-columns:repeat(4,1fr); } }

.testimonial-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }

/* ── Mobile overlay sidebar ───────────────────────────────── */
.sidebar-overlay { display:none; position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:99; }
.sidebar-overlay.open { display:block; }
.sidebar-mobile { display:flex; }
@media(max-width:1023px) {
  .sidebar { display:flex; transform:translateX(-100%); transition:transform .3s ease; }
  .sidebar.open { transform:translateX(0); }
}

/* ── Utilities ────────────────────────────────────────────── */
.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-8   { gap:8px; }
.gap-12  { gap:12px; }
.gap-16  { gap:16px; }
.gap-20  { gap:20px; }
.gap-24  { gap:24px; }
.flex-1  { flex:1; }
.w-full  { width:100%; }
.text-center { text-align:center; }
.text-right  { text-align:right; }
.truncate { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.hidden { display:none !important; }
.mt-4  { margin-top:4px; }
.mt-8  { margin-top:8px; }
.mt-12 { margin-top:12px; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.mb-4  { margin-bottom:4px; }
.mb-8  { margin-bottom:8px; }
.mb-12 { margin-bottom:12px; }
.mb-16 { margin-bottom:16px; }
.mb-24 { margin-bottom:24px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.grid-4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
.text-xs   { font-size:11px; }
.text-sm   { font-size:13px; }
.text-base { font-size:15px; }
.text-lg   { font-size:18px; }
.text-xl   { font-size:22px; }
.text-2xl  { font-size:28px; }
.text-3xl  { font-size:36px; }
.fw-500 { font-weight:500; }
.fw-600 { font-weight:600; }
.fw-700 { font-weight:700; }
.color-gold    { color:var(--gold-400); }
.color-emerald { color:var(--emerald); }
.color-red     { color:var(--red); }
.color-muted   { color:var(--slate-500); }
.color-sub     { color:var(--slate-400); }
.rounded { border-radius:var(--radius); }
.rounded-full { border-radius:999px; }
.border-top { border-top:1px solid rgba(26,39,68,.5); }
.pointer { cursor:pointer; }
