/* FundVault Pro — Main Stylesheet */
/* Dark Financial Theme — Precision & Trust */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  /* Core Palette */
  --c-bg:        #0d0f14;
  --c-surface:   #13161e;
  --c-surface2:  #1a1e2a;
  --c-surface3:  #212536;
  --c-border:    rgba(255,255,255,0.07);
  --c-border2:   rgba(255,255,255,0.12);

  /* Brand Accent — Electric Gold */
  --c-gold:      #f0b429;
  --c-gold-dim:  #a67c1c;
  --c-gold-bg:   rgba(240,180,41,0.08);
  --c-gold-bg2:  rgba(240,180,41,0.15);

  /* Semantic */
  --c-green:     #22c55e;
  --c-green-bg:  rgba(34,197,94,0.10);
  --c-red:       #ef4444;
  --c-red-bg:    rgba(239,68,68,0.10);
  --c-blue:      #60a5fa;
  --c-blue-bg:   rgba(96,165,250,0.10);
  --c-yellow:    #fbbf24;
  --c-yellow-bg: rgba(251,191,36,0.10);
  --c-purple:    #a78bfa;
  --c-purple-bg: rgba(167,139,250,0.10);

  /* Text */
  --t-primary:   #f0f0f5;
  --t-secondary: #8a8fa8;
  --t-muted:     #5a5e72;
  --t-inverse:   #0d0f14;

  /* Typography */
  --font:        'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', monospace;

  /* Sizing */
  --sidebar-w:   260px;
  --header-h:    64px;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         200ms;
}

/* ======================== BASE ======================== */
html { font-size: 15px; height: 100%; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--t-primary);
  height: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-gold); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; }

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border2); border-radius: 99px; }

/* ======================== TYPOGRAPHY ======================== */
h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem;  font-weight: 500; }
h4 { font-size: 0.95rem; font-weight: 500; }

.text-muted  { color: var(--t-secondary); }
.text-sm     { font-size: 0.82rem; }
.text-xs     { font-size: 0.72rem; }
.text-mono   { font-family: var(--font-mono); }
.text-gold   { color: var(--c-gold); }
.text-green  { color: var(--c-green); }
.text-red    { color: var(--c-red); }
.text-blue   { color: var(--c-blue); }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.fw-500      { font-weight: 500; }
.fw-600      { font-weight: 600; }

/* ======================== LAYOUT ======================== */
.app-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  min-height: 100vh;
}

.app-sidebar {
  grid-row: 1 / -1;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.app-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.app-main {
  background: var(--c-bg);
  overflow-y: auto;
  padding: 2rem;
}

/* ======================== SIDEBAR ======================== */
.sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--c-gold), #d97706);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #000;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 1rem; font-weight: 600;
  color: var(--t-primary);
  line-height: 1.2;
}
.sidebar-logo .logo-text span {
  display: block; font-size: 0.68rem; font-weight: 400;
  color: var(--t-muted); letter-spacing: 0.05em; text-transform: uppercase;
}

.sidebar-role-badge {
  margin: 0.75rem 1.25rem;
  padding: 0.35rem 0.75rem;
  background: var(--c-gold-bg);
  border: 1px solid rgba(240,180,41,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.sidebar-user {
  margin: 0 1rem 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--c-surface2);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), #d97706);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600; color: #000; flex-shrink: 0;
}
.sidebar-user .user-info .name { font-size: 0.85rem; font-weight: 500; }
.sidebar-user .user-info .uid  { font-size: 0.72rem; color: var(--t-muted); font-family: var(--font-mono); }

.sidebar-nav { flex: 1; padding: 0.5rem 0; }
.nav-group-label {
  padding: 0.75rem 1.5rem 0.35rem;
  font-size: 0.65rem; font-weight: 600;
  color: var(--t-muted); letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.6rem 1.25rem;
  margin: 1px 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--t-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.nav-item:hover { background: var(--c-surface2); color: var(--t-primary); }
.nav-item.active {
  background: var(--c-gold-bg2);
  color: var(--c-gold);
  font-weight: 500;
}
.nav-item i { font-size: 1rem; flex-shrink: 0; }
.nav-item .badge-count {
  margin-left: auto; background: var(--c-red);
  color: #fff; font-size: 0.65rem; font-weight: 600;
  padding: 1px 6px; border-radius: 99px; min-width: 18px; text-align: center;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--c-border);
}

/* ======================== HEADER ======================== */
.header-title { font-size: 1rem; font-weight: 500; color: var(--t-secondary); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.header-btn {
  width: 36px; height: 36px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--t-secondary);
  font-size: 1rem;
  cursor: pointer; transition: all var(--dur) var(--ease);
  position: relative;
}
.header-btn:hover { border-color: var(--c-border2); color: var(--t-primary); }
.header-btn .notif-dot {
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px;
  background: var(--c-red); border-radius: 50%;
  border: 2px solid var(--c-surface);
}

/* ======================== CARDS ======================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-sm { padding: 1.1rem 1.25rem; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-title { font-size: 0.9rem; font-weight: 500; color: var(--t-primary); }
.card-subtitle { font-size: 0.78rem; color: var(--t-secondary); margin-top: 2px; }

/* ======================== STAT CARDS ======================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.stat-card:hover { border-color: var(--c-border2); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--stat-color, transparent);
}
.stat-card.gold   { --stat-color: var(--c-gold); }
.stat-card.green  { --stat-color: var(--c-green); }
.stat-card.blue   { --stat-color: var(--c-blue); }
.stat-card.red    { --stat-color: var(--c-red); }
.stat-card.purple { --stat-color: var(--c-purple); }

.stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.stat-card.gold   .stat-icon { background: var(--c-gold-bg);   color: var(--c-gold);   }
.stat-card.green  .stat-icon { background: var(--c-green-bg);  color: var(--c-green);  }
.stat-card.blue   .stat-icon { background: var(--c-blue-bg);   color: var(--c-blue);   }
.stat-card.red    .stat-icon { background: var(--c-red-bg);    color: var(--c-red);    }
.stat-card.purple .stat-icon { background: var(--c-purple-bg); color: var(--c-purple); }

.stat-card .stat-label {
  font-size: 0.72rem; font-weight: 500;
  color: var(--t-muted); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 0.35rem;
}
.stat-card .stat-value {
  font-size: 1.65rem; font-weight: 600;
  color: var(--t-primary); letter-spacing: -0.02em;
  font-family: var(--font-mono);
  line-height: 1;
}
.stat-card .stat-meta {
  font-size: 0.75rem; color: var(--t-muted);
  margin-top: 0.4rem;
}
.stat-card .stat-change {
  font-size: 0.75rem; font-weight: 500;
  margin-top: 0.4rem;
}
.stat-card .stat-change.up   { color: var(--c-green); }
.stat-card .stat-change.down { color: var(--c-red); }

/* ======================== TABLES ======================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.855rem;
}
.data-table thead th {
  background: var(--c-surface2);
  color: var(--t-muted);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.data-table .mono { font-family: var(--font-mono); font-size: 0.8rem; }

/* ======================== BADGES ======================== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.03em; white-space: nowrap;
}
.badge-success { background: var(--c-green-bg);  color: var(--c-green);  }
.badge-danger  { background: var(--c-red-bg);    color: var(--c-red);    }
.badge-warning { background: var(--c-yellow-bg); color: var(--c-yellow); }
.badge-info    { background: var(--c-blue-bg);   color: var(--c-blue);   }
.badge-purple  { background: var(--c-purple-bg); color: var(--c-purple); }
.badge-secondary { background: var(--c-surface3); color: var(--t-secondary); }
.badge-gold    { background: var(--c-gold-bg2); color: var(--c-gold); }

/* ======================== FORMS ======================== */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--t-secondary); margin-bottom: 0.4rem;
}
.form-control {
  width: 100%; padding: 0.65rem 0.9rem;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--t-primary);
  font-family: var(--font); font-size: 0.875rem;
  transition: border-color var(--dur) var(--ease);
  outline: none;
}
.form-control:focus { border-color: var(--c-gold); }
.form-control::placeholder { color: var(--t-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.72rem; color: var(--t-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.72rem; color: var(--c-red); margin-top: 0.3rem; }

.form-row { display: grid; gap: 1rem; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all var(--dur) var(--ease);
  white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-gold   { background: var(--c-gold); color: #000; }
.btn-gold:hover { background: #e0a424; }
.btn-outline { background: transparent; border-color: var(--c-border2); color: var(--t-primary); }
.btn-outline:hover { background: var(--c-surface2); }
.btn-ghost  { background: transparent; color: var(--t-secondary); }
.btn-ghost:hover { background: var(--c-surface2); color: var(--t-primary); }
.btn-success { background: var(--c-green-bg); border-color: rgba(34,197,94,0.3); color: var(--c-green); }
.btn-danger  { background: var(--c-red-bg);   border-color: rgba(239,68,68,0.3);  color: var(--c-red); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm); }

/* ======================== TABS ======================== */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--c-border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.6rem 1.1rem; font-size: 0.855rem; font-weight: 400;
  color: var(--t-secondary); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  margin-bottom: -1px; transition: all var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--t-primary); }
.tab-btn.active { color: var(--c-gold); border-bottom-color: var(--c-gold); font-weight: 500; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ======================== ALERTS ======================== */
.alert {
  padding: 0.85rem 1.1rem; border-radius: var(--radius);
  font-size: 0.855rem; margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 9px; border: 1px solid;
}
.alert-success { background: var(--c-green-bg);  border-color: rgba(34,197,94,0.25);  color: var(--c-green);  }
.alert-danger  { background: var(--c-red-bg);    border-color: rgba(239,68,68,0.25);   color: var(--c-red);    }
.alert-warning { background: var(--c-yellow-bg); border-color: rgba(251,191,36,0.25); color: var(--c-yellow); }
.alert-info    { background: var(--c-blue-bg);   border-color: rgba(96,165,250,0.25);  color: var(--c-blue);   }

/* ======================== MODALS ======================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--radius-xl);
  padding: 2rem; width: 90%; max-width: 520px;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--dur) var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title { font-size: 1.05rem; font-weight: 600; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-surface2); border: 1px solid var(--c-border);
  color: var(--t-secondary); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.modal-close:hover { background: var(--c-surface3); color: var(--t-primary); }

/* ======================== MISC ======================== */
.divider { height: 1px; background: var(--c-border); margin: 1.25rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }

.progress-bar {
  height: 6px; background: var(--c-surface3); border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-yellow));
  transition: width 0.6s var(--ease);
}

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 500;
  background: var(--c-surface3); color: var(--t-secondary);
}

/* Withdrawal breakdown box */
.breakdown-box {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.35rem 0;
  font-size: 0.855rem;
}
.breakdown-row.total {
  border-top: 1px solid var(--c-border);
  margin-top: 0.5rem; padding-top: 0.75rem;
  font-weight: 600;
}

/* Account card */
.account-card {
  background: linear-gradient(135deg, var(--c-surface2) 0%, var(--c-surface3) 100%);
  border: 1px solid var(--c-border2);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative; overflow: hidden;
}
.account-card::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(240,180,41,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(240,180,41,0.05) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(96,165,250,0.04) 0%, transparent 50%);
}
.login-box {
  width: 100%; max-width: 440px; padding: 2.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--radius-xl);
}

/* Toast */
#toast-container {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.855rem;
  min-width: 280px; max-width: 380px;
  display: flex; align-items: flex-start; gap: 9px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.25s var(--ease);
}
.toast.success { border-left: 3px solid var(--c-green); }
.toast.error   { border-left: 3px solid var(--c-red); }
.toast.info    { border-left: 3px solid var(--c-blue); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }

/* Utilities */
.d-flex    { display: flex; }
.d-grid    { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.p-0 { padding: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mt-auto { margin-top: auto; }
.w-100 { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }

/* Chart area */
.chart-area { position: relative; height: 220px; }

/* Responsive */
@media (max-width: 900px) {
  .app-wrapper { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────
   EXTENDED COMPONENTS (v2)
───────────────────────────────────────── */

/* Filter Bar */
.filter-bar { margin-bottom: 1.25rem; }
.filter-form { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.filter-form .form-control { max-width: 220px; }

/* Tab row */
.tab-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab-btn { padding: .45rem 1rem; border-radius: 6px; font-size: .875rem; font-weight: 500;
  background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text-muted);
  text-decoration: none; transition: all .2s; }
.tab-btn:hover, .tab-btn.active { background: var(--c-gold); border-color: var(--c-gold); color: #000; }

/* User Cell */
.user-cell { display: flex; align-items: center; gap: .75rem; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--c-gold);
  color: #000; font-size: .75rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }

/* Action Buttons */
.action-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-xs { padding: .25rem .65rem !important; font-size: .78rem !important; border-radius: 4px !important; }
.btn-success { background: var(--c-green) !important; color: #fff !important; border-color: var(--c-green) !important; }
.btn-danger  { background: var(--c-red)   !important; color: #fff !important; border-color: var(--c-red) !important; }
.btn-warning { background: #e6a817 !important; color: #000 !important; border-color: #e6a817 !important; }

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; padding: 1.25rem; flex-wrap: wrap; }
.page-btn { padding: .4rem .75rem; border-radius: 6px; background: var(--c-surface2);
  border: 1px solid var(--c-border); color: var(--c-text-muted); font-size: .85rem;
  text-decoration: none; transition: all .15s; }
.page-btn:hover, .page-btn.active { background: var(--c-gold); color: #000; border-color: var(--c-gold); }

/* Detail Grid */
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.25rem; }
.detail-list { padding: .75rem 1.25rem 1.25rem; }
.detail-row { display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0; border-bottom: 1px solid var(--c-border); font-size: .875rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--c-text-muted); }

/* Stat Mini Grid */
.stat-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--c-border); border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; margin: 0 1.25rem 1.25rem; }
.stat-mini { background: var(--c-surface); padding: .85rem 1rem; font-size: .8rem; color: var(--c-text-muted); }
.stat-mini-val { font-size: 1.05rem; font-weight: 700; font-family: var(--font-mono); color: var(--c-text); margin-bottom: .2rem; }

/* Stats Row (horizontal) */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.stats-row .stat-card { flex: 1; min-width: 160px; }

/* Alert */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .875rem; }
.alert-danger { background: rgba(239,68,68,.12); border: 1px solid var(--c-red); color: #fca5a5; }

/* Back link */
.back-link { color: var(--c-text-muted); text-decoration: none; font-size: .85rem; display: inline-block; margin-bottom: .5rem; }
.back-link:hover { color: var(--c-gold); }

/* Form row 2 col */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Checkbox label */
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.checkbox-label input[type=checkbox] { accent-color: var(--c-gold); width: 15px; height: 15px; }

/* Input prefix */
.input-prefix-wrap { position: relative; }
.input-prefix { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--c-text-muted); font-size: .875rem; pointer-events: none; }
.input-prefix-wrap .form-control { padding-left: 1.8rem; }

/* Plan Grid */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.plan-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; }
.plan-card-header { padding: 1.25rem 1.25rem .75rem; display: flex; justify-content: space-between; align-items: flex-start; }
.plan-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.plan-rate { font-size: 1.6rem; font-weight: 800; font-family: var(--font-mono); }
.plan-rate span { font-size: .8rem; font-weight: 400; color: var(--c-text-muted); }
.plan-details { padding: 0 1.25rem; border-top: 1px solid var(--c-border); }
.plan-detail-row { display: flex; justify-content: space-between; padding: .5rem 0;
  font-size: .85rem; border-bottom: 1px solid var(--c-border); }
.plan-detail-row:last-child { border-bottom: none; }
.plan-detail-row span:first-child { color: var(--c-text-muted); }
.plan-desc { padding: .75rem 1.25rem 0; font-size: .8rem; color: var(--c-text-muted); }
.plan-actions { padding: 1rem 1.25rem; display: flex; gap: .5rem; border-top: 1px solid var(--c-border); margin-top: .5rem; }
.plan-gold .plan-rate { color: var(--c-gold); }
.plan-green .plan-rate { color: var(--c-green); }
.plan-blue .plan-rate { color: var(--c-blue); }
.plan-purple .plan-rate { color: var(--c-purple); }
.plan-red .plan-rate { color: var(--c-red); }

/* Two col layout */
.two-col-layout { display: grid; grid-template-columns: 380px 1fr; gap: 1.5rem; align-items: start; }

/* Account Card Full (investor) */
.account-card-full { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; }
.acf-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-border); }
.acf-plan { font-weight: 700; font-size: 1.05rem; margin-bottom: .25rem; }
.acf-no { font-size: .8rem; color: var(--c-text-muted); }
.acf-rate { font-size: 1.4rem; font-weight: 800; font-family: var(--font-mono); color: var(--c-gold); display: flex; align-items: center; gap: .5rem; }
.acf-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px;
  background: var(--c-border); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.acf-stat { background: var(--c-surface); padding: 1rem; text-align: center; font-size: .78rem; color: var(--c-text-muted); }
.acf-stat-val { font-size: 1rem; font-weight: 700; font-family: var(--font-mono); color: var(--c-text); margin-bottom: .2rem; }
.acf-footer { padding: 1rem 1.5rem; display: flex; gap: .75rem; background: var(--c-surface2); }

/* Empty State */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.empty-state p { color: var(--c-text-muted); margin-bottom: 1.5rem; }

/* btn-sm */
.btn-sm { padding: .4rem .9rem !important; font-size: .85rem !important; }

/* Card Header */
.card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { margin: 0; font-size: .95rem; font-weight: 600; }

/* code */
code { font-family: var(--font-mono); font-size: .82em; color: var(--c-text-muted); background: var(--c-surface2); padding: .15em .4em; border-radius: 4px; }

/* pre */
pre { font-family: var(--font-mono); font-size: .8rem; color: var(--c-text-muted); }

/* Stat-gold variant */
.stat-gold { border-top-color: var(--c-gold); }
.stat-gold .stat-value { color: var(--c-gold); }
.stat-purple { border-top-color: var(--c-purple); }
.stat-purple .stat-value { color: var(--c-purple); }

/* Total row in breakdown */
.total-row { border-top: 1px solid var(--c-border) !important; margin-top: .5rem; padding-top: .75rem !important; }

@media (max-width:900px) {
  .detail-grid, .two-col-layout { grid-template-columns: 1fr; }
  .acf-stats { grid-template-columns: repeat(2,1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   LEDGER ENTRIES & EMPLOYEE ROLE  (v3)
═══════════════════════════════════════════════════════════ */

/* ── Quick Action Bar ─────────────────────────────────── */
.quick-actions-bar {
  display: flex; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.qbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 10px; border: none;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .2s;
}
.qbtn-income  { background: rgba(34,197,94,.15);  color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.qbtn-income:hover  { background: #22c55e; color: #fff; }
.qbtn-expense { background: rgba(239,68,68,.15);  color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.qbtn-expense:hover { background: #ef4444; color: #fff; }

/* ── Section Labels ───────────────────────────────────── */
.section-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--c-text-muted);
  margin-bottom: .75rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--c-border);
}

/* ── Entry Modal ──────────────────────────────────────── */
.fv-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); z-index: 1000;
  display: none; place-items: center;
}
.fv-modal-overlay.active { display: grid; }
.fv-modal {
  background: var(--c-surface); border: 1px solid var(--c-border2);
  border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,.5);
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.fv-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; background: var(--c-surface); z-index: 1;
}
.fv-modal-title { font-weight: 700; font-size: 1.05rem; }
.fv-modal-close {
  width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface2);
  border: 1px solid var(--c-border); color: var(--c-text-muted);
  font-size: 1.1rem; cursor: pointer; display: grid; place-items: center;
}
.fv-modal-close:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.fv-modal-body { padding: 1.5rem; }

/* ── Entry Type Toggle ────────────────────────────────── */
.entry-type-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem;
}
.ett-btn {
  padding: .7rem; border-radius: 8px; border: 1.5px solid var(--c-border2);
  background: var(--c-surface2); color: var(--c-text-muted);
  font-size: .875rem; font-weight: 600; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: all .2s;
}
.ett-btn.income.active  { background: rgba(34,197,94,.12);  border-color: #22c55e; color: #22c55e; }
.ett-btn.expense.active { background: rgba(239,68,68,.12);  border-color: #ef4444; color: #ef4444; }

/* ── Form controls inside modal ───────────────────────── */
.fm-group { margin-bottom: 1rem; }
.fm-label {
  display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--c-text-muted); margin-bottom: .35rem;
}
.fm-control {
  width: 100%; padding: .6rem .85rem;
  background: var(--c-surface2); border: 1px solid var(--c-border2);
  border-radius: 7px; color: var(--c-text); font-size: .875rem;
  outline: none; font-family: inherit; transition: border .15s, box-shadow .15s;
}
.fm-control:focus { border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(240,180,41,.12); }
.fm-control::placeholder { color: var(--c-text-muted); }
textarea.fm-control { resize: vertical; }
select.fm-control { cursor: pointer; }
.fm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fm-prefix-wrap { position: relative; }
.fm-prefix {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--c-text-muted); font-size: .875rem; pointer-events: none;
}
.fm-prefix-wrap .fm-control { padding-left: 1.65rem; }
.fm-actions { margin-top: 1.25rem; }
.fm-alert {
  padding: .65rem .9rem; border-radius: 7px; font-size: .85rem;
}
.fm-alert-success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.fm-alert-danger  { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

/* ── Ledger Table ─────────────────────────────────────── */
.ledger-table-wrap { overflow-x: auto; }
.ledger-table { min-width: 700px; }
.ledger-row { transition: background .12s; }
.ledger-row-income  { border-left: 3px solid transparent; }
.ledger-row-expense { border-left: 3px solid transparent; }
.ledger-row-income:hover  { background: rgba(34,197,94,.04); border-left-color: rgba(34,197,94,.4); }
.ledger-row-expense:hover { background: rgba(239,68,68,.04); border-left-color: rgba(239,68,68,.4); }
.ledger-income { color: var(--c-green); font-family: var(--font-mono); font-weight: 700; }
.ledger-expense { color: var(--c-red);   font-family: var(--font-mono); font-weight: 700; }
.ledger-amount { font-size: .95rem; }
.ledger-desc { font-weight: 500; font-size: .875rem; }
.ledger-comment-preview {
  font-size: .75rem; color: var(--c-text-muted); margin-top: .2rem;
  font-style: italic; max-width: 320px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ledger-by-name { font-weight: 600; font-size: .85rem; }
.ledger-by-role { font-size: .72rem; color: var(--c-text-muted); }
.ledger-cat {
  font-size: .72rem; background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: 4px; padding: .15rem .45rem; color: var(--c-text-muted);
}
.text-right { text-align: right !important; }
.btn-comment-count {
  background: none; border: 1px solid var(--c-border); border-radius: 6px;
  padding: .2rem .55rem; font-size: .78rem; cursor: pointer;
  color: var(--c-text-muted); transition: all .15s; white-space: nowrap;
}
.btn-comment-count:hover { border-color: var(--c-gold); color: var(--c-text); }

/* ── Comment Modal ────────────────────────────────────── */
.cm-entry-summary { margin-bottom: 1rem; padding: .75rem; background: var(--c-surface2); border-radius: 8px; }
.cm-entry-desc { font-weight: 600; font-size: .9rem; }
.cm-list { max-height: 260px; overflow-y: auto; margin-bottom: 1rem; }
.cm-item {
  padding: .75rem; border-radius: 8px; background: var(--c-surface2);
  margin-bottom: .5rem; border-left: 3px solid var(--c-gold);
}
.cm-meta { display: flex; gap: .5rem; align-items: center; margin-bottom: .35rem; flex-wrap: wrap; }
.cm-author { font-weight: 700; font-size: .82rem; }
.cm-role { font-size: .72rem; color: var(--c-text-muted); background: var(--c-border); padding: .1rem .4rem; border-radius: 4px; }
.cm-time { font-size: .72rem; color: var(--c-text-muted); margin-left: auto; }
.cm-body { font-size: .875rem; line-height: 1.5; }
.cm-loading, .cm-empty { text-align: center; padding: 1.5rem; color: var(--c-text-muted); font-size: .85rem; }

/* ── Ledger Summary Bar ───────────────────────────────── */
.ledger-summary-bar {
  display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.lsb-item {
  flex: 1; min-width: 140px; background: var(--c-surface);
  border: 1px solid var(--c-border2); border-radius: 10px;
  padding: .85rem 1.1rem; display: flex; justify-content: space-between; align-items: center;
}
.lsb-item span { font-size: .8rem; color: var(--c-text-muted); }
.lsb-item strong { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; }
.lsb-item.green strong { color: var(--c-green); }
.lsb-item.red   strong { color: var(--c-red); }
.lsb-item.gold  strong { color: var(--c-gold); }

/* ── Filter Tabs ──────────────────────────────────────── */
.filter-tabs {
  display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.ftab {
  padding: .4rem .95rem; border-radius: 20px; font-size: .82rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--c-border2);
  color: var(--c-text-muted); background: var(--c-surface); transition: all .15s;
}
.ftab:hover { border-color: var(--c-gold); color: var(--c-text); }
.ftab.active { background: var(--c-gold); border-color: var(--c-gold); color: #000; }
.ftab.income.active  { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.ftab.expense.active { background: var(--c-red);   border-color: var(--c-red);   color: #fff; }

/* ── Page Header Bar ──────────────────────────────────── */
.page-header-bar {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.page-header-bar .page-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 .25rem; }
.page-header-bar .page-sub   { color: var(--c-text-muted); font-size: .875rem; margin: 0; }

/* ── Btn color variants (missing) ─────────────────────── */
.btn-success { background: var(--c-green) !important; color: #fff !important; border: 1px solid var(--c-green) !important; }
.btn-success:hover { filter: brightness(.88); }
.btn-danger  { background: var(--c-red)   !important; color: #fff !important; border: 1px solid var(--c-red) !important; }
.btn-danger:hover  { filter: brightness(.88); }

/* ── Employee role badge colour ───────────────────────── */
.badge-warning { background: var(--c-yellow-bg, rgba(234,179,8,.15)); color: #fde68a; }

@media (max-width: 600px) {
  .fm-row-2, .entry-type-toggle { grid-template-columns: 1fr; }
  .quick-actions-bar { flex-direction: column; }
  .ledger-summary-bar { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS, OPPORTUNITIES & APPROVALS  (v4)
═══════════════════════════════════════════════════════════ */

/* ── Alert Bar (inline dismissable) ──────────────────────── */
.alert-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem;
  background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.3);
  color: #fde68a; font-size: .875rem;
}
.alert-bar a { color: #fde68a; font-weight: 700; text-decoration: underline; }
.alert-bar i { font-size: 1.1rem; flex-shrink: 0; }

/* ── Projects Grid ────────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1.25rem; margin-bottom: 1.5rem;
}
.project-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 12px; overflow: hidden;
  border-top: 3px solid var(--c-gold);
  transition: border-color .2s, box-shadow .2s;
}
.project-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.project-card.project-inactive { opacity: .65; }
.project-gold   { border-top-color: var(--c-gold);   }
.project-blue   { border-top-color: var(--c-blue);   }
.project-green  { border-top-color: var(--c-green);  }
.project-purple { border-top-color: var(--c-purple); }
.project-red    { border-top-color: var(--c-red);    }
.project-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.1rem 1.25rem .75rem;
}
.project-type-badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-text-muted); margin-bottom: .25rem;
}
.project-name { font-weight: 700; font-size: 1rem; }
.project-code { font-size: .75rem; color: var(--c-text-muted); font-family: var(--font-mono); }
.project-desc { padding: 0 1.25rem .75rem; font-size: .82rem; color: var(--c-text-muted); line-height: 1.5; }
.project-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--c-surface2); border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.project-stats > div { padding: .6rem .5rem; text-align: center; }
.ps-val { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; }
.ps-lbl { font-size: .68rem; color: var(--c-text-muted); margin-top: .1rem; }
.project-progress { padding: .75rem 1.25rem; }
.progress-track { height: 6px; background: var(--c-border); border-radius: 3px; }
.progress-fill  { height: 100%; background: linear-gradient(90deg,var(--c-gold),var(--c-green)); border-radius: 3px; transition: width .5s; }
.project-actions {
  padding: .75rem 1.25rem; display: flex; gap: .4rem; flex-wrap: wrap;
  border-top: 1px solid var(--c-border);
}

/* ── Opportunities Page ───────────────────────────────────── */
.opp-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1.25rem; margin-bottom: 1.5rem;
}
.opp-plan-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 1.5rem; position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.opp-plan-card:hover  { border-color: var(--c-gold); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.opp-plan-card.featured {
  border-color: var(--c-gold);
  background: linear-gradient(135deg, var(--c-surface) 0%, rgba(240,180,41,.04) 100%);
}
.opp-featured-badge {
  position: absolute; top: -1px; right: 1.25rem;
  background: var(--c-gold); color: #000; font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 0 0 6px 6px; text-transform: uppercase;
}
.opp-plan-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem;
}
.opp-plan-name { font-weight: 700; font-size: 1.05rem; margin-bottom: .25rem; }
.opp-project-tag {
  font-size: .75rem; color: var(--c-text-muted);
  display: flex; align-items: center; gap: .25rem;
}
.opp-rate {
  font-size: 2rem; font-weight: 800; font-family: var(--font-mono);
  color: var(--c-gold); text-align: right; line-height: 1;
}
.opp-rate span { font-size: .75rem; font-weight: 400; color: var(--c-text-muted); display: block; }
.opp-desc { font-size: .82rem; color: var(--c-text-muted); margin-bottom: 1rem; line-height: 1.5; }
.opp-details { margin-bottom: 1rem; }
.opp-detail {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; border-bottom: 1px solid var(--c-border); font-size: .82rem;
}
.opp-detail:last-child { border-bottom: none; }
.opp-detail span { color: var(--c-text-muted); }
.opp-detail strong { font-weight: 600; }
.opp-roi-preview {
  background: var(--c-surface2); border: 1px solid var(--c-border);
  border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem;
}
.opp-roi-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; padding: .25rem 0;
}
.opp-roi-item span { color: var(--c-text-muted); }
.opp-action { margin-top: auto; }
.opp-status-msg {
  padding: .6rem .85rem; border-radius: 8px; font-size: .82rem;
  font-weight: 600; text-align: center;
}
.opp-status-msg.success { background: rgba(34,197,94,.1);  color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.opp-status-msg.pending { background: rgba(234,179,8,.1);  color: #fde68a; border: 1px solid rgba(234,179,8,.25); }
.opp-status-msg.full    { background: rgba(100,116,139,.1); color: var(--c-text-muted); border: 1px solid var(--c-border); }

/* ── Join Modal Summary ───────────────────────────────────── */
.opp-join-summary {
  background: rgba(240,180,41,.08); border: 1px solid rgba(240,180,41,.2);
  border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.opp-join-plan-name { font-weight: 700; font-size: .95rem; }
.opp-join-rate { font-size: 1.4rem; font-weight: 800; color: var(--c-gold); font-family: var(--font-mono); }

/* ── Opportunity Teaser Cards (dashboard) ─────────────────── */
.opp-teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 1rem;
}
.opp-teaser-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 10px; padding: 1.25rem; text-align: center;
  transition: border-color .2s;
}
.opp-teaser-card:hover { border-color: var(--c-gold); }
.opp-teaser-rate {
  font-size: 2.2rem; font-weight: 800; color: var(--c-gold);
  font-family: var(--font-mono); line-height: 1;
}
.opp-teaser-rate span { font-size: .75rem; color: var(--c-text-muted); font-weight: 400; }
.opp-teaser-name    { font-weight: 700; font-size: .9rem; margin: .4rem 0; }
.opp-teaser-project { font-size: .75rem; color: var(--c-text-muted); margin-bottom: .4rem; }
.opp-teaser-min     { font-size: .78rem; color: var(--c-text-muted); }

/* ── Approvals Page ───────────────────────────────────────── */
.approvals-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1rem;
}
.approval-card {
  background: var(--c-surface); border: 1px solid var(--c-border2);
  border-radius: 12px; padding: 1.25rem;
  border-top: 3px solid var(--c-yellow, #eab308);
}
.approval-header { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: .85rem; }
.approval-meta   { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; font-size: .78rem; color: var(--c-text-muted); }
.approval-actions { display: flex; gap: .5rem; margin-top: 1rem; }

/* ── Per-project detail ───────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width:800px) { .grid-2 { grid-template-columns: 1fr; } .projects-grid, .opp-plans-grid { grid-template-columns: 1fr; } }
