/* ═══════════════════════════════════════════════════════════════════
   Stefaan Admin Panel — Redesigned Stylesheet
   Inspired by Zenith Dashboard
   Colour: #D8AC49 (gold) accent · Light = white · Dark = black
   Stack : Bootstrap 5.3 + Bootstrap Icons 1.11
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base Variables (light theme) ───────────────────────────────── */
:root {
  --gold:              #D8AC49;
  --gold-light-top:    #F5CF76;
  --gold-mid:          #F4D674;
  --gold-dark:         #D0A347;
  --gold-darker:       #b8922e;
  --gold-light:        rgba(216,172,73,.14);
  --gold-border:       rgba(216,172,73,.35);
  --gold-gradient:     linear-gradient(90deg, #F5CF76 0%, #F4D674 33.65%, #D8AC49 78.37%, #D0A347 100%);

  --sidebar-width:     240px;
  --header-height:     60px;

  /* Light */
  --sb-bg:             #ffffff;
  --sb-border:         #f0f0f0;
  --sb-text:           #6b7280;
  --sb-text-hover:     #111827;
  --sb-hover-bg:       #f9f7f2;
  --sb-active-bg:      var(--gold);
  --sb-active-text:    #111111;
  --sb-section:        #c4a84d;
  --sb-brand-text:     #111827;
  --sb-brand-sub:      #9ca3af;

  --header-bg:         #ffffff;
  --header-border:     #f0ece0;
  --header-text:       #111827;
  --header-icon:       #6b7280;
  --header-icon-hover: #f9f7f2;

  --page-bg:           #f5f3ee;
  --card-bg:           #ffffff;
  --card-border:       #ede8d8;
  --card-radius:       12px;

  --text-primary:      #111827;
  --text-secondary:    #6b7280;
  --text-muted:        #9ca3af;

  --input-border:      #d1cfc8;
  --input-focus:       var(--gold);
  --table-head-bg:     #faf8f2;
  --table-row-hover:   #faf7ee;
  --table-border:      #f0ece0;
  --divider:           #ede8d8;

  --scrollbar-thumb:   #e0d8c0;
}

/* ── Dark theme overrides ────────────────────────────────────────── */
[data-theme="dark"] {
  --sb-bg:             #0d0d0d;
  --sb-border:         #1f1f1f;
  --sb-text:           #9ca3af;
  --sb-text-hover:     #f9fafb;
  --sb-hover-bg:       #1a1a1a;
  --sb-active-bg:      var(--gold);
  --sb-active-text:    #000000;
  --sb-section:        #D8AC49;
  --sb-brand-text:     #f9fafb;
  --sb-brand-sub:      #6b7280;

  --header-bg:         #111111;
  --header-border:     #1f1f1f;
  --header-text:       #f9fafb;
  --header-icon:       #6b7280;
  --header-icon-hover: #1a1a1a;

  --page-bg:           #0a0a0a;
  --card-bg:           #141414;
  --card-border:       #222222;

  --text-primary:      #f9fafb;
  --text-secondary:    #9ca3af;
  --text-muted:        #6b7280;

  --input-border:      #2a2a2a;
  --table-head-bg:     #1a1a1a;
  --table-row-hover:   #1e1e1e;
  --table-border:      #1f1f1f;
  --divider:           #222222;

  --scrollbar-thumb:   #2a2a2a;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ② Block ALL transitions during initial paint — removed by JS after first frame */
html.preload * {
  transition: none !important;
  animation: none !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--page-bg);
  margin: 0;
  overflow-x: hidden;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.25s, color 0.25s;
}

/* ── Scrollbars ──────────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--scrollbar-thumb); border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }

/* ── Layout wrapper ──────────────────────────────────────────────── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════ */
#sidebar {
  width: var(--sidebar-width);
  background: var(--sb-bg);
  border-right: 1px solid var(--sb-border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow: hidden;           /* sidebar itself does NOT scroll */
  z-index: 1040;
  transition: transform 0.26s cubic-bezier(.4,0,.2,1), background 0.25s;
  display: flex;
  flex-direction: column;
}

/* ── Brand ───────────────────────────────────────────────────────── */
.sidebar-brand {
  padding: 18px 20px;
  border-bottom: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.25s;
}
.sidebar-logo {
  width: 130px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── Nav — scrollable middle section ─────────────────────────────── */
.sidebar-nav {
  padding: 10px 10px 16px;
  flex: 1;
  overflow-y: auto;           /* only the nav list scrolls */
  overflow-x: hidden;
}

.nav-section-label {
  padding: 14px 8px 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sb-section);
  transition: color 0.25s;
}

.sidebar-nav .nav-link {
  color: var(--sb-text);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 1px;
  white-space: nowrap;
  font-weight: 500;
}
.sidebar-nav .nav-link i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sidebar-nav .nav-link:hover {
  color: var(--sb-text-hover);
  background: var(--sb-hover-bg);
}
.sidebar-nav .nav-link.active {
  background: var(--sb-active-bg);
  color: var(--sb-active-text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(216,172,73,.3);
}
.sidebar-nav .nav-link.active i {
  color: var(--sb-active-text);
}

/* ── Collapse toggle ─────────────────────────────────────────────── */
.sidebar-nav .nav-link[data-bs-toggle="collapse"]::after {
  content: '\f282';
  font-family: 'bootstrap-icons';
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s;
  color: var(--sb-section);
}
.sidebar-nav .nav-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* ── Sub-menu ────────────────────────────────────────────────────── */
.sidebar-submenu { padding: 0 0 4px 0; }
.sidebar-submenu .nav-link {
  font-size: 12.5px;
  padding: 7px 12px 7px 40px;
  color: var(--sb-text);
}
.sidebar-submenu .nav-link:hover { color: var(--sb-text-hover); background: var(--sb-hover-bg); }
.sidebar-submenu .nav-link.active {
  color: var(--sb-active-text);
  background: var(--sb-active-bg);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(216,172,73,.3);
}

/* ── Sidebar logout section ──────────────────────────────────────── */
/* ── Sidebar user footer (avatar + name/role + logout icon) ──────── */
.sidebar-user-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: border-color 0.25s;
}
.sidebar-user-footer .user-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: #111; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-footer .user-info { flex: 1; min-width: 0; }
.sidebar-user-footer .user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}
.sidebar-user-footer .user-role {
  font-size: 10.5px;
  color: var(--gold);
  text-transform: capitalize;
}

/* Logout icon button — sits at the right of the user footer row */
.sidebar-logout-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--sb-border);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-logout-btn:hover {
  background: rgba(220,38,38,.10);
  color: #dc2626;
  border-color: rgba(220,38,38,.25);
}

/* ── Overlay ─────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1039;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top Header ──────────────────────────────────────────────────── */
.top-header {
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.sidebar-toggle {
  display: none;
  background: none; border: none;
  font-size: 19px; color: var(--header-icon);
  cursor: pointer; padding: 6px 8px;
  border-radius: 8px; line-height: 1;
  transition: background 0.15s;
}
.sidebar-toggle:hover { background: var(--header-icon-hover); }

.header-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--header-text);
  margin: 0;
  flex: 1;
  transition: color 0.25s;
}

.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Header icon buttons */
.hdr-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--header-icon);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  position: relative;
  text-decoration: none;
}
.hdr-btn:hover {
  background: var(--header-icon-hover);
  border-color: var(--card-border);
  color: var(--text-primary);
}
.hdr-btn .notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--header-bg);
}

/* Theme toggle button */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--header-icon);
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: transparent;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--gold-light);
  border-color: var(--gold-border);
  color: var(--gold);
}

.header-divider {
  width: 1px; height: 22px;
  background: var(--card-border);
  flex-shrink: 0;
}

.header-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: #111; font-size: 12px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--gold-border);
}

/* ── Content Area ────────────────────────────────────────────────── */
.content-area { padding: 20px 24px 24px; flex: 1; }

/* ── Page Header ─────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap; gap: 12px;
}
.page-header-left h4 {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary); margin: 0 0 3px;
  transition: color 0.25s;
}
.page-header-left p  { font-size: 12.5px; color: var(--text-secondary); margin: 0; }
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.page-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-breadcrumb a { color: var(--gold); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb .sep { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════
   STAT CARDS
   ════════════════════════════════════════════════════════════════════ */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border-color: var(--gold-border);
}
[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stat-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

/* Gold-themed stat icon (primary) */
.stat-icon.gold   { background: var(--gold-light); color: var(--gold); border: 1px solid var(--gold-border); }

/* Coloured variants */
.stat-icon.blue   { background: rgba(37,99,235,.1);  color: #2563eb; }
.stat-icon.green  { background: rgba(22,163,74,.1);  color: #16a34a; }
.stat-icon.red    { background: rgba(220,38,38,.1);  color: #dc2626; }
.stat-icon.purple { background: rgba(124,58,237,.1); color: #7c3aed; }
.stat-icon.teal   { background: rgba(13,148,136,.1); color: #0d9488; }
.stat-icon.orange { background: rgba(234,88,12,.1);  color: #ea580c; }
.stat-icon.pink   { background: rgba(236,72,153,.1); color: #ec4899; }
.stat-icon.amber  { background: rgba(202,138,4,.1);  color: #ca8a04; }

.stat-value {
  font-size: 26px; font-weight: 700;
  color: var(--text-primary); line-height: 1;
  letter-spacing: -0.5px;
  transition: color 0.25s;
}
.stat-label {
  font-size: 12px; color: var(--text-secondary);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stat-change { font-size: 11.5px; font-weight: 500; display: flex; align-items: center; gap: 3px; }
.stat-change.up   { color: #16a34a; }
.stat-change.down { color: #dc2626; }
.stat-accent-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5CF76 0%, #F4D674 33.65%, #D8AC49 78.37%, #D0A347 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.stat-card:hover .stat-accent-bar { opacity: 1; }

/* ════════════════════════════════════════════════════════════════════
   CARDS (general)
   ════════════════════════════════════════════════════════════════════ */
.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px;
  margin-bottom: 20px;
  transition: background 0.25s, border-color 0.25s;
}
.admin-card-title {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.25s;
}
.admin-card-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 16px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   TABLE CARD
   ════════════════════════════════════════════════════════════════════ */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 20px;
  transition: background 0.25s, border-color 0.25s;
}
.table-card-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--table-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  transition: border-color 0.25s;
}
.table-card-title {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary); margin: 0; flex: 1;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.25s;
}
.table-card-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 16px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.table-card-actions {
  display: flex; gap: 8px;
  align-items: center; flex-wrap: wrap;
}
.table-responsive { overflow-x: auto; }

/* ── Admin Table ─────────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead tr {
  background: var(--table-head-bg);
  border-bottom: 1px solid var(--table-border);
  transition: background 0.25s;
}
.admin-table th {
  padding: 11px 16px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-secondary); text-align: left;
  white-space: nowrap; transition: color 0.25s;
}
.admin-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--table-border);
  vertical-align: middle;
  transition: background 0.15s, color 0.25s;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--table-row-hover); }

/* ════════════════════════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════════════════════════ */
.sbadge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  line-height: 1.5; white-space: nowrap;
}
.sbadge-active    { background: rgba(22,163,74,.12);  color: #15803d;  border: 1px solid rgba(22,163,74,.2);  }
.sbadge-pending   { background: rgba(202,138,4,.12);  color: #92400e;  border: 1px solid rgba(202,138,4,.2);  }
.sbadge-suspended { background: rgba(220,38,38,.12);  color: #b91c1c;  border: 1px solid rgba(220,38,38,.2);  }
.sbadge-banned    { background: rgba(107,114,128,.12); color: #374151; border: 1px solid rgba(107,114,128,.2);}
.sbadge-review    { background: rgba(124,58,237,.12); color: #6d28d9;  border: 1px solid rgba(124,58,237,.2); }
.sbadge-approved  { background: rgba(22,163,74,.12);  color: #15803d;  border: 1px solid rgba(22,163,74,.2);  }
.sbadge-rejected  { background: rgba(220,38,38,.12);  color: #b91c1c;  border: 1px solid rgba(220,38,38,.2);  }
.sbadge-info      { background: rgba(37,99,235,.12);  color: #1d4ed8;  border: 1px solid rgba(37,99,235,.2);  }
.sbadge-warning   { background: rgba(202,138,4,.12);  color: #92400e;  border: 1px solid rgba(202,138,4,.2);  }
.sbadge-grey      { background: rgba(107,114,128,.1); color: #374151;  border: 1px solid rgba(107,114,128,.15);}
.sbadge-gold      { background: var(--gold-light);    color: var(--gold-dark); border: 1px solid var(--gold-border); }
.sbadge-pink      { background: rgba(236,72,153,.12); color: #be185d;  border: 1px solid rgba(236,72,153,.2); }

[data-theme="dark"] .sbadge-active    { color: #4ade80; }
[data-theme="dark"] .sbadge-approved  { color: #4ade80; }
[data-theme="dark"] .sbadge-pending   { color: #fbbf24; }
[data-theme="dark"] .sbadge-warning   { color: #fbbf24; }
[data-theme="dark"] .sbadge-suspended { color: #f87171; }
[data-theme="dark"] .sbadge-rejected  { color: #f87171; }
[data-theme="dark"] .sbadge-info      { color: #60a5fa; }
[data-theme="dark"] .sbadge-review    { color: #a78bfa; }
[data-theme="dark"] .sbadge-banned    { color: #9ca3af; }
[data-theme="dark"] .sbadge-grey      { color: #9ca3af; }
[data-theme="dark"] .sbadge-gold      { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════ */
/* Primary — gold */
.btn-primary {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #111 !important;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
  color: #111 !important;
}
.btn-primary:focus {
  box-shadow: 0 0 0 3px var(--gold-light) !important;
}

.btn-outline-primary {
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}
.btn-outline-primary:hover {
  background-color: var(--gold) !important;
  color: #111 !important;
}

/* Action buttons (table row) */
.btn-act {
  padding: 5px 11px; font-size: 12px; border-radius: 7px;
  border: 1px solid var(--card-border); background: var(--card-bg);
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.15s; display: inline-flex;
  align-items: center; gap: 4px; text-decoration: none;
  white-space: nowrap; font-weight: 500;
}
.btn-act:hover         { border-color: var(--gold-border); color: var(--gold); background: var(--gold-light); }
.btn-act-danger:hover  { background: rgba(220,38,38,.1); border-color: rgba(220,38,38,.3); color: #dc2626; }
.btn-act-success:hover { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.3); color: #16a34a; }
.btn-act-warning:hover { background: rgba(202,138,4,.1); border-color: rgba(202,138,4,.3); color: #ca8a04; }
.btn-act-info:hover    { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); color: #2563eb; }

/* ════════════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════════════ */
.form-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 5px;
  transition: color 0.25s;
}
.form-control, .form-select {
  font-size: 13px;
  border-color: var(--input-border);
  border-radius: 8px; padding: 8px 12px;
  background: var(--card-bg);
  color: var(--text-primary);
  transition: background 0.25s, border-color 0.2s, color 0.25s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
  background: var(--card-bg);
  color: var(--text-primary);
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #1a1a1a;
  border-color: #2a2a2a;
  color: #f9fafb;
}
[data-theme="dark"] .form-control::placeholder { color: #4b5563; }
[data-theme="dark"] .form-select option { background: #1a1a1a; }

.form-text { font-size: 11.5px; color: var(--text-secondary); }
.input-group-text {
  font-size: 13px; border-color: var(--input-border);
  background: var(--table-head-bg); color: var(--text-secondary);
  transition: background 0.25s, border-color 0.25s;
}

/* Filters bar */
.filters-bar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px; padding: 12px 16px;
  margin-bottom: 16px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  transition: background 0.25s, border-color 0.25s;
}

/* ════════════════════════════════════════════════════════════════════
   USER / PROFILE CELLS
   ════════════════════════════════════════════════════════════════════ */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: #111; font-size: 12px; font-weight: 700;
}
.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.user-cell-name {
  font-size: 13px; font-weight: 500;
  color: var(--text-primary); line-height: 1.3;
  transition: color 0.25s;
}
.user-cell-sub  { font-size: 11.5px; color: var(--text-secondary); }

/* ════════════════════════════════════════════════════════════════════
   KYC IMAGE CARDS
   ════════════════════════════════════════════════════════════════════ */
.kyc-doc-card {
  border: 1px solid var(--card-border); border-radius: 10px;
  overflow: hidden; margin-bottom: 12px;
  transition: border-color 0.25s;
}
.kyc-doc-card .doc-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--table-head-bg); display: flex;
  align-items: center; justify-content: center;
  font-size: 40px; color: var(--text-muted);
}
.kyc-doc-card .doc-label {
  padding: 8px 12px; font-size: 12px; font-weight: 500;
  color: var(--text-secondary); background: var(--table-head-bg);
  border-top: 1px solid var(--card-border);
}

/* ════════════════════════════════════════════════════════════════════
   CHART PLACEHOLDERS
   ════════════════════════════════════════════════════════════════════ */
.chart-box {
  background: var(--table-head-bg);
  border: 2px dashed var(--card-border);
  border-radius: 10px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: var(--text-muted);
  transition: background 0.25s, border-color 0.25s;
}
.chart-box i { font-size: 32px; }
.chart-box p { font-size: 12.5px; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 52px 24px;
  color: var(--text-muted);
}
.empty-state i  { font-size: 42px; display: block; margin-bottom: 12px; color: var(--gold); opacity: 0.5; }
.empty-state h6 { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.empty-state p  { font-size: 12.5px; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] .modal-content {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text-primary);
}
.modal-header {
  border-bottom: 1px solid var(--divider);
  padding: 15px 18px;
  transition: border-color 0.25s;
}
.modal-footer {
  border-top: 1px solid var(--divider);
  padding: 12px 18px;
  transition: border-color 0.25s;
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-body  { padding: 18px; }
[data-theme="dark"] .btn-close { filter: invert(1); }

/* ════════════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════════════ */
.pagination .page-link {
  color: var(--gold-dark); border-color: var(--card-border);
  font-size: 13px; border-radius: 7px; margin: 0 2px;
  padding: 5px 11px; background: var(--card-bg);
  transition: all 0.15s;
}
.pagination .page-item.active .page-link {
  background: var(--gold); border-color: var(--gold); color: #111;
  font-weight: 600;
}
.pagination .page-link:hover {
  background: var(--gold-light);
  border-color: var(--gold-border);
  color: var(--gold-dark);
}

/* ════════════════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ════════════════════════════════════════════════════════════════════ */
.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}
[data-theme="dark"] .form-check-input {
  background-color: #2a2a2a;
  border-color: #3a3a3a;
}

/* ════════════════════════════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] .alert-success {
  background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.25); color: #4ade80;
}
[data-theme="dark"] .alert-danger {
  background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.25); color: #f87171;
}
[data-theme="dark"] .alert-warning {
  background: rgba(202,138,4,.12); border-color: rgba(202,138,4,.25); color: #fbbf24;
}
[data-theme="dark"] .alert-info {
  background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.25); color: #60a5fa;
}
[data-theme="dark"] .btn-close { filter: invert(1) opacity(.7); }

.alert-card {
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; font-size: 13px;
}
.alert-card i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ════════════════════════════════════════════════════════════════════
   SETTINGS ROW
   ════════════════════════════════════════════════════════════════════ */
.setting-row {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--divider);
  flex-wrap: wrap; transition: border-color 0.25s;
}
.setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.setting-info  { flex: 1; min-width: 200px; }
.setting-label { font-size: 13.5px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.setting-desc  { font-size: 12px; color: var(--text-secondary); }
.setting-ctrl  { flex-shrink: 0; min-width: 140px; }

/* ════════════════════════════════════════════════════════════════════
   ACTIVITY FEED
   ════════════════════════════════════════════════════════════════════ */
.activity-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--divider);
  transition: border-color 0.25s;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.activity-dot.gold { background: var(--gold); }
.activity-text { font-size: 13px; color: var(--text-primary); line-height: 1.4; transition: color 0.25s; }
.activity-time { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════════
   REPORT SEVERITY
   ════════════════════════════════════════════════════════════════════ */
.report-severity-1 { border-left: 3px solid #22c55e; }
.report-severity-2 { border-left: 3px solid var(--gold); }
.report-severity-3 { border-left: 3px solid #ef4444; }
.report-severity-4 { border-left: 3px solid #7c3aed; }

/* ════════════════════════════════════════════════════════════════════
   AUTH — SPLIT-PANEL LOGIN
   ════════════════════════════════════════════════════════════════════ */

/* keep old .auth-body stub in case anything else references it */
.auth-body { margin:0; padding:0; }

/* ── Outer card ────────────────────────────────────────────────── */
.auth-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Gradient border wrapper — 2px gradient ring around the card */
.auth-card-wrap {
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #F5CF76 0%, #F4D674 25%, #D8AC49 65%, #D0A347 100%);
  box-shadow:
    0 20px 60px rgba(0,0,0,.12),
    0 6px 20px rgba(0,0,0,.08);
  width: 100%;
  max-width: 980px;
}
.auth-card {
  display: flex;
  width: 100%;
  min-height: 580px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
}

/* ── Left panel — large logo on warm light gold ─────────────────── */
.auth-card-left {
  flex: 0 0 52%;
  background: linear-gradient(160deg, #fdf6e3 0%, #f5eccc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(216,172,73,.30);  /* subtle gold divider */
}
/* radial gold glow behind logo */
.auth-card-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(216,172,73,.20) 0%, transparent 68%);
  pointer-events: none;
}
.auth-card-logo {
  width: 72%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 24px rgba(180,140,40,.25));
}

/* ── Right panel — form ────────────────────────────────────────── */
.auth-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  background: #ffffff;
}

/* Small logo + ADMIN label at top */
.auth-logomark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
}
.auth-logomark-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.auth-logomark-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #9ca3af;
  text-transform: uppercase;
}

/* Title */
.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

/* Alerts */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}
.auth-alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.1px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input {
  width: 100%;
  background: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.auth-input::placeholder { color: #94a3b8; }
.auth-input:focus {
  background: #ffffff;
  border-color: #D8AC49;
  box-shadow: 0 0 0 3px rgba(216,172,73,.12);
}
.auth-input.is-invalid {
  border-color: #ef4444;
  background: #fff5f5;
}

.auth-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: color .15s;
}
.auth-eye:hover { color: #4b5563; }

.auth-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 2px;
}

/* Submit */
.auth-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(90deg, #F5CF76 0%, #F4D674 33.65%, #D8AC49 78.37%, #D0A347 100%);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a0d00;
  cursor: pointer;
  transition: opacity .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(216,172,73,.35);
}
.auth-btn:hover  { opacity: .92; box-shadow: 0 6px 20px rgba(216,172,73,.45); }
.auth-btn:active { transform: scale(.99); }

/* Forgot */
.auth-forgot {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  text-align: center;
  transition: color .15s;
  letter-spacing: 0.2px;
}
.auth-forgot:hover { color: #D8AC49; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .auth-card-wrap     { max-width: 420px; border-radius: 18px; }
  .auth-card          { flex-direction: column; min-height: unset; border-radius: 16px; }
  .auth-card-left     { flex: none; padding: 44px 40px 36px; border-right: none; border-bottom: 1px solid rgba(216,172,73,.20); }
  .auth-card-logo     { width: 55%; }
  .auth-card-right    { padding: 36px 32px 44px; }
}

/* ════════════════════════════════════════════════════════════════════
   GOLD ACCENT UTILITIES
   ════════════════════════════════════════════════════════════════════ */
.text-gold  { color: var(--gold) !important; }
.bg-gold    { background: var(--gold) !important; color: #111 !important; }
.border-gold { border-color: var(--gold) !important; }
.accent-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   AVATAR COLOUR PALETTE  (10 colours cycling on user id % 10)
   ════════════════════════════════════════════════════════════════════ */
.av-0 { background: #6366f1; color: #fff; }
.av-1 { background: #8b5cf6; color: #fff; }
.av-2 { background: #ec4899; color: #fff; }
.av-3 { background: #14b8a6; color: #fff; }
.av-4 { background: #D8AC49; color: #111; }
.av-5 { background: #10b981; color: #fff; }
.av-6 { background: #3b82f6; color: #fff; }
.av-7 { background: #ef4444; color: #fff; }
.av-8 { background: #f97316; color: #fff; }
.av-9 { background: #06b6d4; color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   PAGE TITLE BAR  (breadcrumb + title + action row)
   ════════════════════════════════════════════════════════════════════ */
.page-title-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title-bar .ptb-left { flex: 1; min-width: 0; }
.page-title-bar .ptb-breadcrumb {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.page-title-bar .ptb-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.page-title-bar .ptb-breadcrumb a:hover { color: var(--gold); }
.page-title-bar .ptb-breadcrumb .sep { opacity: .5; }
.page-title-bar h4 {
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin: 0 0 3px;
  letter-spacing: -0.3px;
  transition: color 0.25s;
}
.page-title-bar p {
  font-size: 12.5px; color: var(--text-secondary); margin: 0;
}
.page-title-bar .ptb-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   FILTER TABS  (All / Active / Inactive / Suspended)
   ════════════════════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filter-tabs a, .filter-tabs button {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tabs a:hover, .filter-tabs button:hover {
  border-color: var(--gold-border);
  color: var(--gold-dark);
  background: var(--gold-light);
}
.filter-tabs a.active, .filter-tabs button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   TABLE CONTROLS BAR  (search + action buttons)
   ════════════════════════════════════════════════════════════════════ */
.table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--table-border);
  flex-wrap: wrap;
  transition: border-color 0.25s;
}
.table-controls .tc-search {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  position: relative;
}
.table-controls .tc-search input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  font-size: 13px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--page-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, background 0.25s;
}
.table-controls .tc-search input:focus {
  border-color: var(--gold);
  background: var(--card-bg);
}
[data-theme="dark"] .table-controls .tc-search input {
  background: #1a1a1a;
}
.table-controls .tc-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.table-controls .tc-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════════
   ICON BUTTONS  (pencil / trash in table rows)
   ════════════════════════════════════════════════════════════════════ */
.btn-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--text-secondary);
}
.btn-icon:hover         { background: var(--gold-light); border-color: var(--gold-border); color: var(--gold-dark); }
.btn-icon.bi-danger:hover  { background: rgba(220,38,38,.1); border-color: rgba(220,38,38,.2); color: #dc2626; }
.btn-icon.bi-success:hover { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.2); color: #16a34a; }
.btn-icon.bi-info:hover    { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.2); color: #2563eb; }

/* Table row actions group */
.row-actions {
  display: flex; align-items: center; gap: 4px;
}

/* ════════════════════════════════════════════════════════════════════
   PROFILE HERO  (user detail page top card)
   ════════════════════════════════════════════════════════════════════ */
.profile-hero {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 28px 20px 22px;
  text-align: center;
  margin-bottom: 16px;
  transition: background 0.25s, border-color 0.25s;
}
.profile-hero .ph-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 4px var(--card-bg), 0 0 0 6px var(--gold-border);
}
.profile-hero .ph-name {
  font-size: 17px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 3px;
  transition: color 0.25s;
}
.profile-hero .ph-sub {
  font-size: 13px; color: var(--text-secondary); margin-bottom: 14px;
}
.profile-hero .ph-badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.profile-hero .ph-joined { font-size: 11.5px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════
   INFO GRID  (key-value pairs in detail cards)
   ════════════════════════════════════════════════════════════════════ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}
@media (max-width: 575.98px) { .info-grid { grid-template-columns: 1fr; } }
.info-item .info-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--text-muted); margin-bottom: 4px;
  transition: color 0.25s;
}
.info-item .info-value {
  font-size: 13.5px; font-weight: 500;
  color: var(--text-primary);
  transition: color 0.25s;
}

/* ════════════════════════════════════════════════════════════════════
   TABLE FOOTER / PAGINATION ROW
   ════════════════════════════════════════════════════════════════════ */
.table-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--table-border);
  flex-wrap: wrap; gap: 10px;
  transition: border-color 0.25s;
}
.table-footer .tf-count {
  font-size: 12.5px; color: var(--text-secondary);
}
.table-footer .tf-pages { display: flex; align-items: center; gap: 6px; }

/* ════════════════════════════════════════════════════════════════════
   SECTION CARD (settings tabs-style)
   ════════════════════════════════════════════════════════════════════ */
.section-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0;
  padding: 0 20px;
  transition: border-color 0.25s;
}
.section-tabs a, .section-tabs button {
  padding: 12px 16px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none; border: none; background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.section-tabs a:hover, .section-tabs button:hover { color: var(--text-primary); }
.section-tabs a.active, .section-tabs button.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   STATUS CARD  (system status sidebar)
   ════════════════════════════════════════════════════════════════════ */
.status-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  transition: border-color 0.25s;
}
.status-item:last-child { border-bottom: none; padding-bottom: 0; }
.status-item .si-label { font-size: 13px; color: var(--text-secondary); }
.status-item .si-value { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }

/* ════════════════════════════════════════════════════════════════════
   APPROVE / REJECT BUTTONS  (KYC action buttons)
   ════════════════════════════════════════════════════════════════════ */
.btn-approve {
  padding: 5px 12px; font-size: 12px; border-radius: 7px; font-weight: 600;
  border: 1px solid rgba(22,163,74,.3); background: rgba(22,163,74,.08);
  color: #16a34a; cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-approve:hover { background: rgba(22,163,74,.15); border-color: rgba(22,163,74,.5); color: #15803d; }

.btn-reject {
  padding: 5px 12px; font-size: 12px; border-radius: 7px; font-weight: 600;
  border: 1px solid rgba(220,38,38,.3); background: rgba(220,38,38,.08);
  color: #dc2626; cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-reject:hover { background: rgba(220,38,38,.15); border-color: rgba(220,38,38,.5); color: #b91c1c; }

[data-theme="dark"] .btn-approve { color: #4ade80; }
[data-theme="dark"] .btn-reject  { color: #f87171; }

/* ════════════════════════════════════════════════════════════════════
   HERO BANNER  (dashboard welcome section)
   ════════════════════════════════════════════════════════════════════ */
.hero-banner {
  background: var(--gold-gradient);
  border-radius: 16px;
  padding: 28px 24px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.hero-banner .hb-greeting {
  font-size: 22px; font-weight: 700;
  color: #111; margin-bottom: 4px; letter-spacing: -0.3px;
}
.hero-banner .hb-subtitle {
  font-size: 13px; color: rgba(0,0,0,.6); margin-bottom: 22px;
}
.hero-stat-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stat-card {
  flex: 1; min-width: 140px;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative; z-index: 1;
}
.hero-stat-card .hsc-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: rgba(0,0,0,.55); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.hero-stat-card .hsc-value {
  font-size: 22px; font-weight: 700;
  color: #111; line-height: 1; margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.hero-stat-card .hsc-change {
  font-size: 11px; font-weight: 500;
  color: rgba(0,0,0,.5); display: flex; align-items: center; gap: 3px;
}
.hero-stat-card .hsc-change.up   { color: #166534; }
.hero-stat-card .hsc-change.down { color: #991b1b; }

[data-theme="dark"] .hero-banner {
  background: var(--gold-gradient);
}
[data-theme="dark"] .hero-banner .hb-greeting { color: #f9fafb; }
[data-theme="dark"] .hero-banner .hb-subtitle  { color: rgba(255,255,255,.6); }
[data-theme="dark"] .hero-stat-card { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .hero-stat-card .hsc-label { color: rgba(255,255,255,.55); }
[data-theme="dark"] .hero-stat-card .hsc-value { color: #f9fafb; }
[data-theme="dark"] .hero-stat-card .hsc-change { color: rgba(255,255,255,.5); }
[data-theme="dark"] .hero-stat-card .hsc-change.up   { color: #4ade80; }
[data-theme="dark"] .hero-stat-card .hsc-change.down { color: #f87171; }

/* ════════════════════════════════════════════════════════════════════
   SETTINGS PAGE  (vertical left nav inside content)
   ════════════════════════════════════════════════════════════════════ */
.settings-layout {
  display: flex;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: 500px;
  transition: background 0.25s, border-color 0.25s;
}
.settings-nav {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--card-border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.25s;
}
.settings-nav a, .settings-nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none; border: none; background: transparent;
  cursor: pointer; transition: all 0.15s; width: 100%; text-align: left;
}
.settings-nav a i, .settings-nav button i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.settings-nav a:hover, .settings-nav button:hover { color: var(--text-primary); background: var(--sb-hover-bg); }
.settings-nav a.active, .settings-nav button.active {
  color: var(--gold-dark); background: var(--gold-light);
  font-weight: 600;
}
[data-theme="dark"] .settings-nav a.active,
[data-theme="dark"] .settings-nav button.active { color: var(--gold); }
.settings-content { flex: 1; padding: 24px; min-width: 0; }
.settings-section-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
  transition: color 0.25s;
}
.settings-section-sub {
  font-size: 12.5px; color: var(--text-secondary); margin-bottom: 22px;
}
@media (max-width: 767.98px) {
  .settings-layout { flex-direction: column; }
  .settings-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--card-border); flex-direction: row; flex-wrap: wrap; padding: 10px; }
}

/* ════════════════════════════════════════════════════════════════════
   NOTIFICATIONS FEED
   ════════════════════════════════════════════════════════════════════ */
.notif-feed { display: flex; flex-direction: column; }
.notif-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--table-border);
  transition: background 0.15s, border-color 0.25s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--table-row-hover); }
.notif-item.unread { background: var(--gold-light); }
.notif-item.unread:hover { background: rgba(216,172,73,.2); }
[data-theme="dark"] .notif-item.unread { background: rgba(216,172,73,.08); }
.notif-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: 13.5px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 2px;
  display: flex; align-items: center; gap: 7px;
  transition: color 0.25s;
}
.notif-unread-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.notif-subtitle { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 2px; }
.notif-time { font-size: 11.5px; color: var(--text-muted); }
.notif-meta { flex-shrink: 0; text-align: right; }
.notif-meta .notif-time { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

/* Notif tabs (All / Unread / Read) */
.notif-tabs {
  display: flex; gap: 4px;
}
.notif-tabs a, .notif-tabs button {
  padding: 4px 12px; border-radius: 16px; font-size: 12.5px; font-weight: 500;
  text-decoration: none; border: none; background: transparent;
  color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
}
.notif-tabs a:hover, .notif-tabs button:hover { color: var(--text-primary); background: var(--sb-hover-bg); }
.notif-tabs a.active, .notif-tabs button.active { background: var(--gold); color: #111; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════
   ACTIVITY FEED (dashboard recent activity)
   ════════════════════════════════════════════════════════════════════ */
.activity-feed { display: flex; flex-direction: column; }
.activity-feed-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  transition: border-color 0.25s;
}
.activity-feed-item:last-child { border-bottom: none; }
.af-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.af-body { flex: 1; min-width: 0; font-size: 13px; color: var(--text-primary); transition: color 0.25s; }
.af-body strong { font-weight: 600; }
.af-time { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════
   CLEAN TABLE  (no card border wrapper variant)
   ════════════════════════════════════════════════════════════════════ */
.clean-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s;
}
.clean-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  flex-wrap: wrap; gap: 10px;
}
.clean-table-header .cth-left h5 {
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); margin: 0 0 2px;
  transition: color 0.25s;
}
.clean-table-header .cth-left p {
  font-size: 12.5px; color: var(--text-secondary); margin: 0;
}
.clean-table-header .cth-right { display: flex; gap: 8px; align-items: center; }

/* Gradient primary button */
.btn-gold {
  background: var(--gold);
  border: none;
  color: #111;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: #111;
  box-shadow: 0 4px 12px rgba(216,172,73,.35);
}

/* ════════════════════════════════════════════════════════════════════
   TWO-COLUMN DASHBOARD LAYOUT
   ════════════════════════════════════════════════════════════════════ */
.dash-two-col { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-bottom: 20px; }
@media (max-width: 1199.98px) { .dash-two-col { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  #sidebar          { transform: translateX(-100%); box-shadow: none; }
  #sidebar.show     { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .main-content     { margin-left: 0; }
  .sidebar-toggle   { display: flex; align-items: center; }
  .content-area     { padding: 16px; }
}

@media (max-width: 767.98px) {
  .stat-value         { font-size: 22px; }
  .page-header        { gap: 8px; }
  .filters-bar        { flex-direction: column; align-items: stretch; }
  .table-card-header  { flex-direction: column; align-items: flex-start; }
  .setting-row        { flex-direction: column; align-items: flex-start; }
  .setting-ctrl       { width: 100%; }
  .login-card         { padding: 28px 22px; }
}

@media (max-width: 575.98px) {
  .admin-table th,
  .admin-table td     { padding: 10px 12px; }
  .content-area       { padding: 12px; }
  .header-divider     { display: none; }
}

/* ── Chart / Analytics Placeholder ─────────────────────────────── */
.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  background: var(--sidebar-bg);
  border-radius: 10px;
  text-align: center;
  color: var(--text-muted);
}
.chart-placeholder i   { font-size: 32px; }
.chart-placeholder p   { margin: 0; font-size: 12.5px; line-height: 1.6; }

/* ── Text Gold utility ──────────────────────────────────────────── */
.text-gold { color: var(--gold) !important; }

/* ── Btn-gold full-width variant ────────────────────────────────── */
.btn-gold.w-100 { width: 100%; justify-content: center; }

/* ── Form range (gold thumb) ────────────────────────────────────── */
.form-range::-webkit-slider-thumb { background: var(--gold); }
.form-range::-moz-range-thumb     { background: var(--gold); border-color: var(--gold); }
.form-range::-webkit-slider-runnable-track { background: var(--divider); border-radius: 4px; }

/* ── Dash two-col responsive ─────────────────────────────────────── */
@media (max-width: 991.98px) {
  .dash-two-col { grid-template-columns: 1fr; }
  .settings-layout { flex-direction: column; }
  .settings-nav    { width: 100%; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--divider); padding-bottom: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD PAGE — Flux-identical layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero Banner ──────────────────────────────────────────────────── */
.db-hero {
  background: linear-gradient(90deg, #F5CF76 0%, #F4D674 33.65%, #D8AC49 78.37%, #D0A347 100%);
  border-radius: 16px;
  padding: 28px 32px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.db-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  pointer-events: none;
}
.db-hero::after {
  content: '';
  position: absolute;
  bottom: -70px; right: 28%;
  width: 190px; height: 190px;
  background: rgba(255,255,255,.09);
  border-radius: 50%;
  pointer-events: none;
}
.db-greeting {
  font-size: 26px;
  font-weight: 700;
  color: #1a0d00;
  margin: 0 0 6px;
  position: relative; z-index: 1;
}
.db-subtitle {
  font-size: 13.5px;
  color: rgba(40,18,0,.62);
  margin: 0 0 22px;
  position: relative; z-index: 1;
}

/* Hero glass stat cards */
.db-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative; z-index: 1;
}
.db-hstat {
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 12px;
  padding: 16px 18px;
}
.db-hstat-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.db-hstat-link:hover {
  background: rgba(255,255,255,.48);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.db-hstat-label {
  font-size: 11.5px;
  color: rgba(40,18,0,.68);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.db-hstat-val {
  font-size: 28px;
  font-weight: 700;
  color: #1a0d00;
  line-height: 1;
  margin-bottom: 10px;
}
.db-hstat-chg {
  font-size: 11.5px;
  color: rgba(40,18,0,.58);
  display: flex;
  align-items: center;
  gap: 4px;
}
.db-hstat-chg.up   { color: #14532d; }
.db-hstat-chg.down { color: #7f1d1d; }

/* ── Row layout ───────────────────────────────────────────────────── */
.db-row {
  display: grid;
  grid-template-columns: 3fr 2fr;   /* 60% chart / 40% right — matches reference */
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
.db-col-fill {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.db-col-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Panel (card) ─────────────────────────────────────────────────── */
.db-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.db-panel-grow { flex: 1; }

/* Panel header row */
.db-ph {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}
.db-ph-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.db-ph-sub   { font-size: 12px; color: var(--text-muted); }
.db-ph-link  {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.db-ph-link:hover { color: var(--gold-dark); }

/* Toggle buttons (7D / 30D / 90D) */
.db-toggles { display: flex; gap: 4px; flex-shrink: 0; }
.db-toggle {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all .15s;
  line-height: 1.4;
}
.db-toggle.active {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-color: var(--gold-border);
}

/* ── Chart ────────────────────────────────────────────────────────── */
.db-chart-wrap {
  height: 268px;      /* fixed height — prevents unbounded flex growth */
  display: flex;
  gap: 8px;
}
.db-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 28px;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 34px;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
}
.db-chart-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.db-chart-svg {
  flex: 1;
  width: 100%;
  height: 100%;
  display: block;
}
.db-xaxis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 0 0;
  user-select: none;
}

/* ── KYC Segmented bar ────────────────────────────────────────────── */
.db-seg-bar {
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  display: flex;
  gap: 3px;
  margin: 4px 0 14px;
}
.db-seg         { height: 100%; border-radius: 100px; }
.db-seg-gold    { background: linear-gradient(90deg, #F5CF76 0%, #F4D674 33.65%, #D8AC49 78.37%, #D0A347 100%); }
.db-seg-blue    { background: #3b82f6; }
.db-seg-red     { background: #ef4444; }

.db-seg-legend      { display: flex; gap: 12px; flex-wrap: wrap; }
.db-seg-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.db-seg-dot         { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Activity feed ────────────────────────────────────────────────── */
.db-act-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.db-act-item + .db-act-item { border-top: 1px solid var(--divider); }
.db-act-av   {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  flex-shrink: 0;
}
.db-act-body { flex: 1; font-size: 13px; line-height: 1.45; min-width: 0; }
.db-act-name { font-weight: 600; color: var(--text-primary); }
.db-act-desc { color: var(--text-secondary); font-size: 12.5px; }
.db-act-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ── Registration list (row 3 left) ──────────────────────────────── */
.db-reg-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.db-reg-item + .db-reg-item { border-top: 1px solid var(--divider); }

.db-reg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: #16a34a; }
.dot-amber { background: var(--gold); }
.dot-red   { background: #ef4444; }
.dot-muted { background: var(--text-muted); }

.db-reg-av   {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.db-reg-info { flex: 1; min-width: 0; }
.db-reg-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-reg-sub  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.db-reg-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.db-reg-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* ── Onboarding Funnel progress bars ──────────────────────────────── */
.db-prog-item { padding: 9px 0; }
.db-prog-item + .db-prog-item { border-top: 1px solid var(--divider); }
.db-prog-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.db-prog-pct       { font-size: 12px; color: var(--text-muted); }
.db-prog-bar-wrap  { height: 6px; background: var(--divider); border-radius: 100px; overflow: hidden; }
.db-prog-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #F5CF76 0%, #F4D674 33.65%, #D8AC49 78.37%, #D0A347 100%);
}

.db-row:last-child { margin-bottom: 0; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .db-row           { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .db-col-side      { gap: 16px; }
  .db-hero-stats    { grid-template-columns: repeat(2, 1fr); }
  .db-chart-wrap    { height: 200px; }
  .db-hero          { margin-bottom: 16px; }
}
@media (max-width: 575px) {
  .db-hero          { padding: 20px 20px 18px; margin-bottom: 12px; }
  .db-hero-stats    { grid-template-columns: 1fr 1fr; gap: 10px; }
  .db-hstat-val     { font-size: 22px; }
  .db-greeting      { font-size: 20px; }
  .db-chart-wrap    { height: 180px; }
  .db-row           { gap: 12px; margin-bottom: 12px; }
  .db-col-side      { gap: 12px; }
}


/* ════════════════════════════════════════════════════════════════════
   SPLIT-PANEL LOGIN PAGE  (matches admin panel palette)
   ════════════════════════════════════════════════════════════════════ */

.login-wrap {
  display: flex;
  width: 100vw;
  height: 100vh;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* ── LEFT PANEL — warm cream / gold (matches --page-bg palette) ──── */
.login-left {
  flex: 0 0 63%;
  position: relative;
  background: linear-gradient(160deg, #fdf8ef 0%, #f7eedb 50%, #f0e4c4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px 36px;
  overflow: hidden;
  border-right: 1px solid #ede8d8;
}

/* Subtle dot-grid overlay */
.login-left-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(216,172,73,.28) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: .55;
}

/* Gold radial glow — top left */
.login-left::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(216,172,73,.22) 0%, transparent 65%);
  pointer-events: none;
}

/* Warm amber glow — bottom right */
.login-left::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(208,163,71,.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Inner content above overlays */
.login-left-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
}

/* Brand block */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.login-brand-icon {
  width: 82px; height: 82px;
  background: linear-gradient(135deg, #F5CF76 0%, #D8AC49 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 32px rgba(216,172,73,.38),
    0 2px 6px rgba(216,172,73,.20);
  overflow: hidden;
  padding: 10px;
  margin-bottom: 4px;
}
.login-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.login-brand-name {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1;
}
.login-brand-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #D8AC49;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.login-brand-tagline {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 340px;
  margin: 2px auto 0;
}

/* Feature cards — match admin stat-card style */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.login-feat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid #ede8d8;
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(180,140,40,.08);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.login-feat-card:hover {
  background: rgba(255,255,255,.92);
  border-color: rgba(216,172,73,.45);
  box-shadow: 0 4px 16px rgba(216,172,73,.15);
}
.login-feat-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.lfi-rose  { background: rgba(239,68,68,.10);  color: #dc2626; border: 1px solid rgba(239,68,68,.18); }
.lfi-blue  { background: rgba(59,130,246,.10);  color: #2563eb; border: 1px solid rgba(59,130,246,.18); }
.lfi-green { background: rgba(22,163,74,.10);   color: #16a34a; border: 1px solid rgba(22,163,74,.18); }

.login-feat-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.login-feat-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* Left footer */
.login-left-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding-top: 16px;
}

/* ── RIGHT PANEL — pure white form ──────────────────────────────── */
.login-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 52px 36px;
  overflow-y: auto;
}

.login-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

/* Eyebrow */
.login-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #D8AC49;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Heading */
.login-heading {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0 0 6px;
}

/* Subheading */
.login-subheading {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Alerts */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}
.auth-alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lf-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.1px;
}
.lf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lf-input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.lf-input {
  width: 100%;
  background: #f5f3ee;
  border: 1.5px solid #ede8d8;
  border-radius: 10px;
  padding: 13px 44px 13px 40px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lf-input::placeholder { color: #9ca3af; }
.lf-input:focus {
  background: #ffffff;
  border-color: #D8AC49;
  box-shadow: 0 0 0 3px rgba(216,172,73,.13);
}
.lf-input.is-invalid {
  border-color: #ef4444;
  background: #fff5f5;
}
.lf-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  font-size: 15px;
  transition: color .15s;
}
.lf-eye:hover { color: #6b7280; }
.lf-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 2px;
}

/* Submit button — gold gradient matching admin btn-gold */
.lf-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #F5CF76 0%, #F4D674 33.65%, #D8AC49 78.37%, #D0A347 100%);
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1a0d00;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
  transition: opacity .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(216,172,73,.38);
}
.lf-btn:hover  { opacity: .92; box-shadow: 0 6px 22px rgba(216,172,73,.50); }
.lf-btn:active { transform: scale(.99); }

/* Restricted note */
.lf-restricted {
  text-align: center;
  font-size: 12px;
  color: #d1cfc8;
  margin-top: 18px;
  margin-bottom: 0;
}

/* Right footer */
.login-right-footer {
  text-align: center;
  font-size: 12px;
  color: #d1cfc8;
  padding-top: 16px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .login-left  { flex: 0 0 55%; padding: 40px 36px 28px; }
  .login-right { padding: 40px 36px 28px; }
}
@media (max-width: 700px) {
  html, body { overflow: auto; }
  .login-wrap { flex-direction: column; height: auto; min-height: 100vh; }
  .login-left { flex: none; padding: 48px 28px 40px; min-height: 55vh; }
  .login-left::after { display: none; }
  .login-right { flex: none; padding: 40px 28px 48px; }
  .login-form-wrap { max-width: 100%; }
}
