/* ============================================================
   THE REAL ORBIT — Global Stylesheet v2.0
   Clean White + Dark Mode Toggle | Mobile First
   ============================================================ */

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

/* ============================================================
   CSS VARIABLES — LIGHT MODE (DEFAULT)
   ============================================================ */
:root {
  /* Brand */
  --gold:          #C9A84C;
  --gold-hover:    #B8942F;
  --gold-light:    #F8F0DC;
  --gold-dark:     #8B6914;
  --navy:          #0B1B35;
  --navy-mid:      #1A2F5A;

  /* Backgrounds */
  --bg-base:       #F7F6F3;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #FEFEFE;
  --bg-muted:      #F0EFE9;
  --bg-sidebar:    #0B1B35;

  /* Text */
  --text-primary:  #0B1B35;
  --text-secondary:#4A5568;
  --text-muted:    #9BA3AE;
  --text-inverse:  #FFFFFF;

  /* Borders */
  --border:        #E5E3DC;
  --border-focus:  #C9A84C;

  /* Status */
  --success:       #1D9E75;
  --success-bg:    #E8F7F2;
  --danger:        #D85A30;
  --danger-bg:     #FDF0EB;
  --warn:          #BA7517;
  --warn-bg:       #FDF4E5;
  --info:          #1A6DB5;
  --info-bg:       #EBF3FB;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.10);

  /* Layout */
  --sidebar-w:     248px;
  --topbar-h:      62px;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --radius-xl:     20px;

  --font:          'Outfit', sans-serif;
  --mono:          'JetBrains Mono', monospace;

  --transition:    all 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --bg-base:       #0D1117;
  --bg-surface:    #161B22;
  --bg-elevated:   #1C2230;
  --bg-muted:      #1A2030;
  --bg-sidebar:    #080E1A;

  --text-primary:  #E8EAF0;
  --text-secondary:#9BA3B4;
  --text-muted:    #5A6478;

  --border:        #252D3D;
  --border-focus:  #C9A84C;

  --success-bg:    #0D2820;
  --danger-bg:     #2A1510;
  --warn-bg:       #251A08;
  --info-bg:       #0D1E30;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-hover); }

img { max-width: 100%; display: block; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), width 0.3s;
}

.sidebar-logo {
  padding: 28px 20px 24px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.logo-orbit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), #E8C060);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-text-main {
  font-size: 17px; font-weight: 700;
  color: #FFFFFF; letter-spacing: -0.3px;
  line-height: 1.1;
}
.logo-text-sub {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-group { padding: 8px 12px; }
.nav-group-label {
  font-size: 10px; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  padding: 12px 8px 6px;
  font-weight: 600;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px; font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}
.nav-item.active {
  background: rgba(201,168,76,0.18);
  color: var(--gold);
}
.nav-item.active .nav-icon { color: var(--gold); }
.nav-icon {
  font-size: 16px; width: 20px;
  text-align: center; flex-shrink: 0;
  transition: var(--transition);
}
.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  flex-shrink: 0;
}
.nav-badge-red {
  background: var(--danger); color: white;
}

.sidebar-user {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.sidebar-user:hover { background: rgba(255,255,255,0.04); }
.user-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #E8C060);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: var(--navy); flex-shrink: 0;
}
.user-name-sb { font-size: 13px; font-weight: 600; color: #FFF; }
.user-uid-sb  { font-size: 11px; color: rgba(255,255,255,0.4); }
.sidebar-logout { margin-left: auto; font-size: 16px; color: rgba(255,255,255,0.3); }

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

/* TOPBAR */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 20px;
}
.topbar-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.btn-theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--text-primary);
}
.btn-theme-toggle:hover { background: var(--gold-light); border-color: var(--gold); }

.notif-btn {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}
.notif-btn:hover { background: var(--gold-light); border-color: var(--gold); }
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg-surface);
}

.topbar-user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 40px; cursor: pointer;
  transition: var(--transition);
}
.topbar-user-chip:hover { border-color: var(--gold); }
.topbar-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #E8C060);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--navy);
}
.topbar-uname { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* PAGE CONTENT */
.page-content { padding: 24px; flex: 1; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header-title {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.5px;
}
.page-header-sub { font-size: 14px; color: var(--text-secondary); margin-top: 3px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-elevated);
}
.card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.2px;
}
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

/* STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card:hover::before { opacity: 1; }
.stat-card.gold::before { background: var(--gold); opacity: 1; }
.stat-card.success::before { background: var(--success); opacity: 1; }
.stat-card.danger::before  { background: var(--danger); opacity: 1; }
.stat-card.info::before    { background: var(--info); opacity: 1; }
.stat-label {
  font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 600; margin-bottom: 10px;
}
.stat-value {
  font-size: 30px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -1px;
  line-height: 1;
  font-family: var(--font);
}
.stat-value small { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.stat-change {
  font-size: 12px; margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }
.stat-icon {
  position: absolute; top: 16px; right: 16px;
  font-size: 36px; opacity: 0.07; pointer-events: none;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 700; white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13.5px;
}
tbody tr:hover td { background: var(--bg-muted); }
tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-warn    { background: var(--warn-bg);    color: var(--warn); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-gold    { background: var(--gold-light); color: var(--gold-dark); }
.badge-muted   { background: var(--bg-muted);   color: var(--text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  font-family: var(--font);
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap; text-decoration: none;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.35); }
.btn-secondary { background: var(--bg-muted); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-success  { background: var(--success); color: white; }
.btn-success:hover { background: #17855f; }
.btn-danger   { background: var(--danger);  color: white; }
.btn-danger:hover { background: #b84a22; }
.btn-outline  { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold-light); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 7px;
  letter-spacing: -0.1px;
}
.form-label span { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-surface);
  outline: none;
  transition: var(--transition);
  appearance: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center; cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.file-upload-area:hover,
.file-upload-area.dragover { border-color: var(--gold); background: var(--gold-light); }
.file-upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-upload-icon { font-size: 36px; color: var(--text-muted); margin-bottom: 10px; }
.file-upload-text { font-size: 14px; color: var(--text-secondary); }
.file-upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warn    { background: var(--warn-bg);    color: var(--warn); border-left: 4px solid var(--warn); }
.alert-info    { background: var(--info-bg);    color: var(--info); border-left: 4px solid var(--info); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-wrap {
  background: var(--bg-muted);
  border-radius: 20px; height: 10px; overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--gold), #E8C060);
  transition: width 0.6s ease;
}
.progress-bar.success { background: linear-gradient(90deg, var(--success), #2DC98F); }

/* ============================================================
   GROUP CARD
   ============================================================ */
.group-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.group-letter {
  font-size: 40px; font-weight: 800;
  color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.group-status-badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  margin-top: 8px;
}

/* ============================================================
   DEPOSIT STEPS
   ============================================================ */
.deposit-step {
  display: flex; gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.deposit-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.deposit-step-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.deposit-step-body p  { font-size: 13px; color: var(--text-secondary); }

.wallet-copy-box {
  background: var(--bg-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.wallet-addr {
  font-family: var(--mono);
  font-size: 13px; color: var(--text-primary);
  word-break: break-all; flex: 1;
}
.copy-btn {
  background: var(--gold); color: var(--navy);
  border: none; border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.copy-btn:hover { background: var(--gold-hover); }

.qr-box {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============================================================
   INCOME LIST
   ============================================================ */
.income-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.income-item:last-child { border-bottom: none; }
.income-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.income-icon-wrap.gold   { background: var(--gold-light); }
.income-icon-wrap.green  { background: var(--success-bg); }
.income-icon-wrap.blue   { background: var(--info-bg); }
.income-title  { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.income-desc   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.income-amount { margin-left: auto; font-size: 15px; font-weight: 700; white-space: nowrap; }
.income-amount.positive { color: var(--success); }
.income-amount.negative { color: var(--danger); }
.income-claim-btn {
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 20px;
  padding: 5px 14px; font-size: 11px; font-weight: 700;
  cursor: pointer; margin-left: 8px;
  transition: var(--transition);
}
.income-claim-btn:hover { background: var(--gold-hover); }

/* ============================================================
   KYC STATUS
   ============================================================ */
.kyc-status-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.kyc-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; gap: 6px;
  justify-content: center; padding: 20px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-surface);
  text-decoration: none;
  transition: var(--transition);
}
.pagination a:hover { background: var(--gold-light); border-color: var(--gold); color: var(--gold-dark); }
.pagination .active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ============================================================
   MOBILE OVERLAY SIDEBAR
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state h4 { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.empty-state p  { font-size: 13px; margin-top: 6px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center; justify-content: center;
  background: var(--bg-base);
  padding: 20px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--navy);
}
.auth-body { padding: 32px; }
.auth-logo-mark { font-size: 13px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.auth-logo-name { font-size: 26px; font-weight: 800; color: white; margin-top: 6px; }
.auth-logo-sub  { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.auth-form-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.auth-form-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.auth-footer {
  padding: 16px 32px;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px; color: var(--text-secondary);
}
.auth-footer a { color: var(--gold); font-weight: 600; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed; top: 80px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 300px; max-width: 380px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.toast-msg   { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 16px; padding: 0; }
.toast.success { border-left: 4px solid var(--success); }
.toast.danger  { border-left: 4px solid var(--danger); }
.toast.warn    { border-left: 4px solid var(--warn); }
.toast.info    { border-left: 4px solid var(--gold); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px;
  overflow: hidden;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-muted); padding: 0; }
.modal-body  { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  background: var(--bg-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .topbar-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { border-radius: var(--radius); }
  .auth-body { padding: 20px; }
  .topbar { padding: 0 14px; }
  .topbar-uname { display: none; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
}
