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

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-bg: #EFF6FF;
  --gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  --gradient-alt: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #60A5FA 100%);
  --white: #FFFFFF;
  --bg: #F0F4FF;
  --bg-card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #06B6D4;
  --shadow: 0 4px 20px rgba(37,99,235,.08);
  --shadow-lg: 0 10px 40px rgba(37,99,235,.15);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-width: 260px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

.dark {
  --primary-bg: #1E293B;
  --bg: #0F172A;
  --bg-card: #1E293B;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #334155;
  --shadow: 0 4px 20px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  transition:var(--transition);
  min-height:100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--primary-light); border-radius:10px; }

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

/* ===== SIDEBAR ===== */
.sidebar {
  width:var(--sidebar-width);
  background:var(--gradient);
  position:fixed;
  top:0; left:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  z-index:100;
  transition:var(--transition);
  box-shadow:4px 0 20px rgba(37,99,235,.2);
}
.sidebar-logo {
  padding:24px 20px;
  border-bottom:1px solid rgba(255,255,255,.15);
  display:flex;
  align-items:center;
  gap:12px;
}
.sidebar-logo .logo-icon {
  width:42px; height:42px;
  background:rgba(255,255,255,.2);
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  backdrop-filter:blur(10px);
}
.sidebar-logo .logo-text { color:#fff; }
.sidebar-logo .logo-text h2 { font-size:16px; font-weight:700; letter-spacing:.5px; }
.sidebar-logo .logo-text span { font-size:11px; opacity:.8; }

.sidebar-menu { flex:1; padding:16px 12px; overflow-y:auto; }
.menu-section { margin-bottom:8px; }
.menu-label {
  font-size:10px;
  font-weight:600;
  color:rgba(255,255,255,.5);
  text-transform:uppercase;
  letter-spacing:1.2px;
  padding:12px 8px 6px;
}
.menu-item {
  display:flex; align-items:center; gap:12px;
  padding:11px 12px;
  border-radius:12px;
  color:rgba(255,255,255,.8);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition:var(--transition);
  position:relative;
  margin-bottom:2px;
}
.menu-item:hover { background:rgba(255,255,255,.15); color:#fff; }
.menu-item.active { background:rgba(255,255,255,.2); color:#fff; font-weight:600; }
.menu-item.active::before {
  content:'';
  position:absolute; left:0; top:50%;
  transform:translateY(-50%);
  width:3px; height:60%; border-radius:0 4px 4px 0;
  background:#fff;
}
.menu-item .icon { width:20px; text-align:center; font-size:16px; }
.menu-item .badge {
  margin-left:auto;
  background:rgba(255,255,255,.25);
  color:#fff;
  font-size:11px;
  padding:2px 7px;
  border-radius:20px;
  font-weight:600;
}

.sidebar-bottom {
  padding:16px 12px;
  border-top:1px solid rgba(255,255,255,.15);
}
.user-info {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.1);
}
.user-avatar {
  width:38px; height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center;
  font-size:16px;
  font-weight:700;
  color:#fff;
  flex-shrink:0;
}
.user-detail { flex:1; min-width:0; }
.user-detail .name { color:#fff; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-detail .role { color:rgba(255,255,255,.6); font-size:11px; }

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

/* ===== TOPBAR ===== */
.topbar {
  background:var(--bg-card);
  border-bottom:1px solid var(--border);
  padding:0 24px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky; top:0; z-index:50;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.topbar-left { display:flex; align-items:center; gap:16px; }
.menu-toggle {
  background:none; border:none;
  width:36px; height:36px;
  border-radius:10px;
  cursor:pointer;
  display:none;
  align-items:center; justify-content:center;
  color:var(--text);
  font-size:18px;
  transition:var(--transition);
}
.menu-toggle:hover { background:var(--primary-bg); color:var(--primary); }
.page-title { font-size:18px; font-weight:700; color:var(--text); }
.topbar-right { display:flex; align-items:center; gap:8px; }
.topbar-btn {
  width:36px; height:36px;
  border-radius:10px;
  background:none; border:1px solid var(--border);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted);
  font-size:15px;
  transition:var(--transition);
  position:relative;
  text-decoration:none;
}
.topbar-btn:hover { background:var(--primary-bg); color:var(--primary); border-color:var(--primary); }
.topbar-btn .notif-dot {
  position:absolute; top:4px; right:4px;
  width:8px; height:8px;
  background:var(--danger);
  border-radius:50%;
  border:2px solid var(--bg-card);
}
.notif-count {
  position:absolute; top:-4px; right:-4px;
  background:var(--danger);
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:1px 5px;
  border-radius:10px;
  min-width:18px;
  text-align:center;
  border:2px solid var(--bg-card);
}

/* ===== PAGE BODY ===== */
.page-body { padding:24px; flex:1; }

/* ===== CARDS ===== */
.card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:var(--transition);
}
.card:hover { box-shadow:var(--shadow-lg); }
.card-header {
  padding:20px 24px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.card-title { font-size:16px; font-weight:700; color:var(--text); }
.card-subtitle { font-size:13px; color:var(--text-muted); margin-top:2px; }
.card-body { padding:20px 24px; }
.card-footer {
  padding:16px 24px;
  border-top:1px solid var(--border);
  background:var(--bg);
}

/* ===== STAT CARDS ===== */
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  display:flex;
  align-items:center;
  gap:16px;
  box-shadow:var(--shadow);
  transition:var(--transition);
  position:relative;
  overflow:hidden;
}
.stat-card::before {
  content:'';
  position:absolute; top:0; left:0; right:0;
  height:3px;
  background:var(--gradient);
}
.stat-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.stat-icon {
  width:52px; height:52px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px;
  flex-shrink:0;
}
.stat-icon.blue { background:#EFF6FF; color:var(--primary); }
.stat-icon.green { background:#ECFDF5; color:var(--success); }
.stat-icon.yellow { background:#FFFBEB; color:var(--warning); }
.stat-icon.red { background:#FEF2F2; color:var(--danger); }
.stat-icon.purple { background:#F5F3FF; color:#7C3AED; }
.stat-info { flex:1; }
.stat-label { font-size:12px; color:var(--text-muted); font-weight:500; margin-bottom:4px; }
.stat-value { font-size:22px; font-weight:800; color:var(--text); line-height:1; }
.stat-change { font-size:12px; margin-top:4px; }
.stat-change.up { color:var(--success); }
.stat-change.down { color:var(--danger); }

/* ===== SALDO CARD ===== */
.saldo-card {
  background:var(--gradient-alt);
  border-radius:var(--radius);
  padding:28px;
  color:#fff;
  position:relative;
  overflow:hidden;
  margin-bottom:24px;
}
.saldo-card::before {
  content:'';
  position:absolute;
  top:-40px; right:-40px;
  width:200px; height:200px;
  background:rgba(255,255,255,.08);
  border-radius:50%;
}
.saldo-card::after {
  content:'';
  position:absolute;
  bottom:-60px; right:60px;
  width:150px; height:150px;
  background:rgba(255,255,255,.05);
  border-radius:50%;
}
.saldo-label { font-size:13px; opacity:.8; font-weight:500; letter-spacing:.5px; text-transform:uppercase; }
.saldo-amount { font-size:36px; font-weight:800; margin:8px 0 4px; letter-spacing:-.5px; }
.saldo-sub { font-size:12px; opacity:.7; }
.saldo-actions { display:flex; gap:10px; margin-top:20px; position:relative; z-index:1; }
.saldo-btn {
  flex:1;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  padding:10px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  text-align:center;
  text-decoration:none;
  backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.saldo-btn:hover { background:rgba(255,255,255,.25); color:#fff; }

/* ===== STATUS BADGE ===== */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
}
.badge-success { background:#ECFDF5; color:#059669; }
.badge-warning { background:#FFFBEB; color:#D97706; }
.badge-danger { background:#FEF2F2; color:#DC2626; }
.badge-info { background:#EFF6FF; color:var(--primary); }
.badge-gray { background:#F1F5F9; color:#64748B; }
.badge-dot::before {
  content:'';
  width:6px; height:6px;
  border-radius:50%;
  background:currentColor;
  flex-shrink:0;
}

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

/* ===== FORMS ===== */
.form-group { margin-bottom:18px; }
.form-label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; }
.form-label .required { color:var(--danger); margin-left:2px; }
.form-control {
  width:100%;
  padding:12px 16px;
  border:1.5px solid var(--border);
  border-radius:10px;
  font-size:14px;
  font-family:'Inter',sans-serif;
  background:var(--bg-card);
  color:var(--text);
  transition:var(--transition);
  outline:none;
}
.form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.form-control::placeholder { color:var(--text-muted); }
select.form-control { cursor:pointer; }
textarea.form-control { resize:vertical; min-height:100px; }
.input-group { position:relative; }
.input-group .form-control { padding-left:42px; }
.input-group .input-icon {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  color:var(--text-muted); font-size:15px;
}
.input-group.right .form-control { padding-left:16px; padding-right:42px; }
.input-group.right .input-icon { left:auto; right:14px; }
.form-hint { font-size:12px; color:var(--text-muted); margin-top:4px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* ===== BUTTONS ===== */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 22px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  font-family:'Inter',sans-serif;
  cursor:pointer;
  border:none;
  transition:var(--transition);
  text-decoration:none;
  white-space:nowrap;
}
.btn:disabled { opacity:.6; cursor:not-allowed; }
.btn-primary { background:var(--gradient); color:#fff; }
.btn-primary:hover { background:linear-gradient(135deg,#1D4ED8,#2563EB); transform:translateY(-1px); box-shadow:0 6px 20px rgba(37,99,235,.35); }
.btn-secondary { background:var(--bg); border:1.5px solid var(--border); color:var(--text); }
.btn-secondary:hover { background:var(--primary-bg); border-color:var(--primary); color:var(--primary); }
.btn-success { background:var(--success); color:#fff; }
.btn-success:hover { background:#059669; transform:translateY(-1px); }
.btn-danger { background:var(--danger); color:#fff; }
.btn-danger:hover { background:#DC2626; transform:translateY(-1px); }
.btn-warning { background:var(--warning); color:#fff; }
.btn-outline { background:transparent; border:1.5px solid var(--primary); color:var(--primary); }
.btn-outline:hover { background:var(--primary); color:#fff; }
.btn-sm { padding:7px 14px; font-size:12px; border-radius:8px; }
.btn-lg { padding:14px 28px; font-size:16px; border-radius:12px; }
.btn-block { width:100%; }
.btn-icon { width:36px; height:36px; padding:0; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height:100vh;
  background:var(--gradient-alt);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  position:relative;
  overflow:hidden;
}
.auth-page::before {
  content:'';
  position:absolute;
  top:-100px; left:-100px;
  width:400px; height:400px;
  background:rgba(255,255,255,.06);
  border-radius:50%;
}
.auth-page::after {
  content:'';
  position:absolute;
  bottom:-100px; right:-100px;
  width:500px; height:500px;
  background:rgba(255,255,255,.04);
  border-radius:50%;
}
.auth-card {
  background:#fff;
  border-radius:24px;
  padding:40px;
  width:100%; max-width:440px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  position:relative; z-index:1;
}
.auth-logo { text-align:center; margin-bottom:32px; }
.auth-logo .logo-wrap {
  width:64px; height:64px;
  background:var(--gradient);
  border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  font-size:28px;
  color:#fff;
  margin:0 auto 12px;
  box-shadow:0 8px 24px rgba(37,99,235,.35);
}
.auth-logo h1 { font-size:24px; font-weight:800; color:var(--text); }
.auth-logo p { color:var(--text-muted); font-size:14px; margin-top:4px; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:20px 0; }
.auth-divider span { font-size:12px; color:var(--text-muted); white-space:nowrap; }
.auth-divider::before, .auth-divider::after {
  content:''; flex:1; height:1px; background:var(--border);
}
.auth-footer { text-align:center; margin-top:20px; font-size:13px; color:var(--text-muted); }
.auth-footer a { color:var(--primary); font-weight:600; text-decoration:none; }
.auth-footer a:hover { text-decoration:underline; }

/* ===== ALERTS ===== */
.alert {
  padding:14px 18px;
  border-radius:10px;
  font-size:14px;
  margin-bottom:16px;
  display:flex; align-items:center; gap:10px;
  border-left:4px solid;
}
.alert-success { background:#ECFDF5; border-color:var(--success); color:#065F46; }
.alert-danger { background:#FEF2F2; border-color:var(--danger); color:#991B1B; }
.alert-warning { background:#FFFBEB; border-color:var(--warning); color:#92400E; }
.alert-info { background:#EFF6FF; border-color:var(--primary); color:#1E40AF; }

/* ===== QRIS PAGE ===== */
.qris-container { text-align:center; }
.qris-frame {
  background:linear-gradient(145deg,#fff,#f0f4ff);
  border:2px solid var(--border);
  border-radius:24px;
  padding:28px;
  display:inline-block;
  box-shadow:var(--shadow-lg);
  position:relative;
  max-width:320px; width:100%;
}
.qris-header { margin-bottom:16px; }
.qris-header h3 { font-size:14px; font-weight:700; color:var(--primary); letter-spacing:1px; }
.qris-image { width:220px; height:220px; border-radius:12px; margin:0 auto; display:block; }
.qris-name { font-size:15px; font-weight:700; color:var(--text); margin-top:14px; }
.qris-placeholder {
  width:220px; height:220px;
  background:var(--bg);
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto;
  flex-direction:column; gap:8px;
  color:var(--text-muted);
  font-size:13px;
}

/* ===== UPLOAD AREA ===== */
.upload-area {
  border:2px dashed var(--border);
  border-radius:12px;
  padding:32px;
  text-align:center;
  cursor:pointer;
  transition:var(--transition);
  background:var(--bg);
}
.upload-area:hover, .upload-area.drag { border-color:var(--primary); background:var(--primary-bg); }
.upload-area .upload-icon { font-size:36px; margin-bottom:10px; color:var(--primary); }
.upload-area p { font-size:14px; color:var(--text-muted); }
.upload-area span { font-size:13px; color:var(--primary); font-weight:600; }
.file-preview { margin-top:12px; display:none; }
.file-preview img { max-height:150px; border-radius:8px; box-shadow:var(--shadow); }

/* ===== TOAST ===== */
#toast-container {
  position:fixed; bottom:90px; right:20px;
  z-index:10000;
  display:flex; flex-direction:column; gap:10px;
}
.toast {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 18px;
  min-width:280px; max-width:340px;
  box-shadow:var(--shadow-lg);
  display:flex; align-items:flex-start; gap:12px;
  animation:slideIn .3s ease;
  border-left:4px solid var(--primary);
}
.toast.success { border-left-color:var(--success); }
.toast.error { border-left-color:var(--danger); }
.toast.warning { border-left-color:var(--warning); }
.toast-icon { font-size:18px; flex-shrink:0; margin-top:1px; }
.toast-body { flex:1; }
.toast-title { font-size:14px; font-weight:600; color:var(--text); }
.toast-msg { font-size:13px; color:var(--text-muted); margin-top:2px; }
.toast-close { background:none; border:none; cursor:pointer; color:var(--text-muted); font-size:16px; flex-shrink:0; }
@keyframes slideIn { from{transform:translateX(110%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes slideOut { from{transform:translateX(0);opacity:1} to{transform:translateX(110%);opacity:0} }
.toast.out { animation:slideOut .3s ease forwards; }

/* ===== CS FLOATING BUTTON ===== */
.cs-float {
  position:fixed; bottom:24px; right:24px;
  z-index:1000;
}
.cs-trigger {
  width:56px; height:56px;
  border-radius:50%;
  background:var(--gradient);
  border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; color:#fff;
  box-shadow:0 6px 20px rgba(37,99,235,.45);
  transition:var(--transition);
  animation:pulse 2.5s infinite;
  text-decoration:none;
}
.cs-trigger:hover { transform:scale(1.1); box-shadow:0 8px 30px rgba(37,99,235,.6); }
@keyframes pulse {
  0%,100% { box-shadow:0 6px 20px rgba(37,99,235,.45),0 0 0 0 rgba(37,99,235,.4); }
  70% { box-shadow:0 6px 20px rgba(37,99,235,.45),0 0 0 12px rgba(37,99,235,0); }
}
.cs-popup {
  position:absolute; bottom:70px; right:0;
  width:300px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-lg);
  overflow:hidden;
  display:none;
  transform-origin:bottom right;
  animation:popIn .3s cubic-bezier(.34,1.56,.64,1);
}
.cs-popup.open { display:block; }
@keyframes popIn { from{transform:scale(.5);opacity:0} to{transform:scale(1);opacity:1} }
.cs-popup-header {
  background:var(--gradient);
  padding:16px 18px;
  display:flex; align-items:center; gap:12px;
  position:relative;
}
.cs-avatar {
  width:44px; height:44px;
  border-radius:50%;
  background:rgba(255,255,255,.2);
  border:2px solid rgba(255,255,255,.5);
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  color:#fff; flex-shrink:0;
}
.cs-info { flex:1; color:#fff; }
.cs-info .name { font-size:14px; font-weight:700; }
.cs-info .status { font-size:12px; opacity:.85; display:flex; align-items:center; gap:5px; }
.cs-info .status::before {
  content:'';
  width:7px; height:7px;
  background:#4ADE80; border-radius:50%;
  flex-shrink:0;
}
.cs-close {
  background:rgba(255,255,255,.2); border:none;
  width:28px; height:28px; border-radius:50%;
  cursor:pointer; color:#fff; font-size:16px;
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.cs-close:hover { background:rgba(255,255,255,.35); }
.cs-popup-body { padding:16px; }
.cs-msg { font-size:13px; color:var(--text-muted); margin-bottom:14px; text-align:center; }
.cs-btns { display:flex; flex-direction:column; gap:10px; }
.cs-btn {
  display:flex; align-items:center; gap:12px;
  padding:13px 16px;
  border-radius:12px;
  text-decoration:none;
  font-size:14px; font-weight:600;
  transition:var(--transition);
  border:none; cursor:pointer; width:100%;
}
.cs-btn.wa { background:#ECFDF5; color:#16A34A; }
.cs-btn.wa:hover { background:#D1FAE5; transform:translateX(2px); }
.cs-btn.tg { background:#EFF6FF; color:var(--primary); }
.cs-btn.tg:hover { background:#DBEAFE; transform:translateX(2px); }
.cs-btn .icon { font-size:20px; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.06); }

/* ===== LOADING ===== */
.loading-overlay {
  position:fixed; inset:0;
  background:rgba(15,23,42,.5);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
  backdrop-filter:blur(4px);
  display:none;
}
.loading-overlay.show { display:flex; }
.spinner {
  width:44px; height:44px;
  border:4px solid rgba(255,255,255,.2);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.page-loader {
  display:inline-block;
  width:20px; height:20px;
  border:2px solid rgba(255,255,255,.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .7s linear infinite;
}

/* ===== NOTIFICATION ITEMS ===== */
.notif-item {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  transition:var(--transition);
  cursor:pointer;
}
.notif-item:last-child { border-bottom:none; }
.notif-item:hover { background:var(--primary-bg); }
.notif-item.unread { background:#EFF6FF; }
.notif-item.unread:hover { background:#DBEAFE; }
.notif-icon { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.notif-icon.success { background:#ECFDF5; color:var(--success); }
.notif-icon.info { background:#EFF6FF; color:var(--primary); }
.notif-icon.warning { background:#FFFBEB; color:var(--warning); }
.notif-icon.danger { background:#FEF2F2; color:var(--danger); }
.notif-content { flex:1; }
.notif-title { font-size:14px; font-weight:600; color:var(--text); }
.notif-msg { font-size:13px; color:var(--text-muted); margin-top:2px; }
.notif-time { font-size:11px; color:var(--text-muted); margin-top:4px; }
.notif-dot { width:8px; height:8px; border-radius:50%; background:var(--primary); flex-shrink:0; margin-top:5px; }

/* ===== DARK MODE TOGGLE ===== */
.dark-toggle {
  width:36px; height:36px;
  border-radius:10px;
  background:none; border:1px solid var(--border);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted);
  font-size:15px;
  transition:var(--transition);
}
.dark-toggle:hover { background:var(--primary-bg); color:var(--primary); }

/* ===== ADMIN ===== */
.admin-tag {
  background:linear-gradient(135deg,#7C3AED,#A855F7);
  color:#fff;
  font-size:10px;
  padding:2px 8px;
  border-radius:20px;
  font-weight:600;
  letter-spacing:.5px;
}

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

/* ===== SEARCH ===== */
.search-box {
  position:relative;
  flex:1; max-width:300px;
}
.search-box input {
  width:100%;
  padding:9px 16px 9px 38px;
  border:1.5px solid var(--border);
  border-radius:10px;
  font-size:13px;
  background:var(--bg-card);
  color:var(--text);
  outline:none;
  font-family:'Inter',sans-serif;
  transition:var(--transition);
}
.search-box input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.search-box .icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--text-muted); font-size:14px; }

/* ===== MODAL ===== */
.modal-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.5);
  z-index:2000;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  backdrop-filter:blur(4px);
  display:none;
}
.modal-overlay.open { display:flex; }
.modal {
  background:var(--bg-card);
  border-radius:20px;
  width:100%; max-width:500px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  animation:modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from{transform:scale(.8);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:17px; font-weight:700; }
.modal-close { background:none; border:none; cursor:pointer; color:var(--text-muted); font-size:20px; transition:var(--transition); }
.modal-close:hover { color:var(--danger); }
.modal-body { padding:24px; }
.modal-footer { padding:16px 24px; border-top:1px solid var(--border); display:flex; gap:10px; justify-content:flex-end; }

/* ===== PAGINATION ===== */
.pagination { display:flex; gap:6px; align-items:center; justify-content:center; margin-top:20px; }
.page-btn {
  width:34px; height:34px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text);
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
  text-decoration:none;
}
.page-btn:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-bg); }
.page-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ===== RESPONSIVE ===== */
.sidebar-overlay {
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,.5);
  z-index:99;
  backdrop-filter:blur(2px);
}

@media (max-width: 768px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .sidebar-overlay.show { display:block; }
  .main-content { margin-left:0; }
  .menu-toggle { display:flex; }
  .page-body { padding:16px; }
  .form-row { grid-template-columns:1fr; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .saldo-amount { font-size:28px; }
  .auth-card { padding:28px 20px; }
  .topbar { padding:0 16px; }
  tbody td { font-size:13px; padding:12px 10px; }
  thead th { padding:10px; }
  .cs-popup { width:260px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns:1fr; }
  .saldo-actions { flex-direction:column; }
}
