/* =============================================
   FLEXI ACCESS BANK — Modern Design System
   ============================================= */

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

/* ── CSS Variables ── */
:root {
  --primary:        #0f3460;
  --primary-dark:   #0a2540;
  --primary-light:  #1a4d8f;
  --primary-bg:     #e8f0fe;
  --accent:         #e94560;
  --accent-light:   #fff0f3;
  --success:        #10b981;
  --success-light:  #d1fae5;
  --warning:        #f59e0b;
  --warning-light:  #fef3c7;
  --danger:         #ef4444;
  --danger-light:   #fee2e2;
  --info:           #3b82f6;
  --info-light:     #dbeafe;
  --white:          #ffffff;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-300:       #cbd5e1;
  --gray-400:       #94a3b8;
  --gray-500:       #64748b;
  --gray-600:       #475569;
  --gray-700:       #334155;
  --gray-800:       #1e293b;
  --gray-900:       #0f172a;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --border:         #e2e8f0;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 16px rgba(0,0,0,.08);
  --shadow-md:      0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:      0 16px 48px rgba(0,0,0,.12);
  --shadow-xl:      0 24px 64px rgba(0,0,0,.14);
  --transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w:      260px;
  --header-h:       64px;
  /* aliases */
  --border-radius:     var(--radius);
  --border-radius-lg:  var(--radius-lg);
  --gray:              var(--gray-500);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* =============================================
   LAYOUT
   ============================================= */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f3460 0%, #0a2540 100%);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-w))); }

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-brand img { height: 36px; width: auto; }
.sidebar-brand-text {
  font-size: 18px; font-weight: 800; color: #fff;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 12px 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 99px; }

.nav-section { padding: 8px 0; }
.nav-section-title {
  padding: 6px 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 20px;
  color: rgba(255,255,255,.7);
  font-size: 13.5px; font-weight: 500;
  transition: var(--transition);
  border-radius: 0; position: relative;
  margin: 1px 8px; border-radius: 10px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-item.active {
  color: #fff;
  background: rgba(255,255,255,.15);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.user-mini { display: flex; align-items: center; gap: 10px; }
.user-mini-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #c62a47);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-mini-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.user-mini-role { font-size: 11px; color: rgba(255,255,255,.5); }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.main-content.expanded { margin-left: 0; }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-600); transition: var(--transition);
}
.header-toggle:hover { background: var(--gray-100); color: var(--primary); }
.header-title { font-size: 16px; font-weight: 700; color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-600); transition: var(--transition);
  position: relative;
}
.header-icon-btn:hover { background: var(--gray-100); color: var(--primary); }
.badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  padding: 3px 5px; border-radius: 99px; min-width: 16px; text-align: center;
}
.header-user {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 6px 10px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header-user:hover { background: var(--gray-100); }
.header-user-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.header-user-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; }
.header-user-role { font-size: 11px; color: var(--text-muted); }

/* ── Page Content ── */
.page-content { flex: 1; padding: 24px; max-width: 1400px; width: 100%; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.page-header p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--gray-50); }

/* ── Stat Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-card-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.stat-card-icon.primary { background: var(--primary-bg); }
.stat-card-icon.success { background: var(--success-light); }
.stat-card-icon.warning { background: var(--warning-light); }
.stat-card-icon.danger  { background: var(--danger-light); }
.stat-card-value { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; line-height: 1; margin-bottom: 6px; }
.stat-card-change { font-size: 12px; color: var(--text-muted); }
.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--danger); }

/* ── Balance Card ── */
.balance-card {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 60%, #1a1a2e 100%);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  color: #fff;
  position: relative; overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute; top: -60px; right: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(233,69,96,.25) 0%, transparent 70%);
  border-radius: 50%;
}
.balance-card::after {
  content: '';
  position: absolute; bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.balance-label { font-size: 12px; font-weight: 600; opacity: .6; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.balance-amount { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.balance-available { font-size: 13px; opacity: .7; margin-bottom: 24px; }
.balance-meta { display: flex; gap: 24px; }
.balance-meta-item label { font-size: 10px; opacity: .5; text-transform: uppercase; letter-spacing: .8px; display: block; margin-bottom: 2px; }
.balance-meta-item span { font-size: 14px; font-weight: 600; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 4px 12px rgba(15,52,96,.25); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(15,52,96,.35); color: #fff; }
.btn-accent  { background: linear-gradient(135deg, var(--accent), #c62a47); color: #fff; box-shadow: 0 4px 12px rgba(233,69,96,.25); }
.btn-success { background: linear-gradient(135deg, #059669, var(--success)); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,.2); }
.btn-success:hover { color: #fff; }
.btn-warning { background: linear-gradient(135deg, #d97706, var(--warning)); color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,.2); }
.btn-danger  { background: linear-gradient(135deg, #dc2626, var(--danger)); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.2); }
.btn-danger:hover { color: #fff; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--gray-200); color: var(--text); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn-block { width: 100%; justify-content: center; }

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,52,96,.1); background: var(--white); }
.form-control:disabled { background: var(--gray-100); color: var(--text-muted); cursor: not-allowed; }
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 42px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); width: 16px; height: 16px; pointer-events: none; }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  width: 44px; height: 24px; background: var(--gray-300);
  border-radius: 99px; transition: var(--transition); position: relative;
}
.toggle-track::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-track { background: var(--success); }
.toggle-switch input:checked + .toggle-track::after { left: calc(100% - 21px); }
.toggle-label { font-size: 13px; font-weight: 500; color: var(--text); }

/* =============================================
   TABLES
   ============================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--gray-50); padding: 12px 16px;
  text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 13px 16px; border-bottom: 1px solid var(--gray-100);
  font-size: 13px; color: var(--text); vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* =============================================
   BADGES / STATUS
   ============================================= */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.badge-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge-success { background: var(--success-light); color: #065f46; }
.badge-success::before { background: var(--success); }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-warning::before { background: var(--warning); }
.badge-danger  { background: var(--danger-light); color: #991b1b; }
.badge-danger::before { background: var(--danger); }
.badge-info    { background: var(--info-light); color: #1e40af; }
.badge-info::before { background: var(--info); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-secondary::before { background: var(--gray-400); }
.badge-primary { background: var(--primary-bg); color: var(--primary-dark); }
.badge-primary::before { background: var(--primary); }

/* =============================================
   ALERTS
   ============================================= */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: 13px; font-weight: 500;
  border-left: 4px solid transparent;
}
.alert-success { background: var(--success-light); border-color: var(--success); color: #065f46; }
.alert-danger,
.alert-error   { background: var(--danger-light);  border-color: var(--danger);  color: #991b1b; }
.alert-warning { background: var(--warning-light); border-color: var(--warning); color: #92400e; }
.alert-info    { background: var(--info-light);    border-color: var(--info);    color: #1e40af; }

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: modalFadeIn .2s ease;
}
.modal-overlay.active { display: flex; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: modalSlideIn .25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-xl);
}
.modal-lg { max-width: 680px; }
.modal-xl { max-width: 820px; }
@keyframes modalSlideIn { from { transform: scale(.94) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: none; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--gray-500);
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; }

/* =============================================
   TABS
   ============================================= */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--gray-100); border-radius: var(--radius); padding: 4px; }
.tab-btn {
  flex: 1; padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border: none; background: transparent; cursor: pointer;
  transition: var(--transition); text-align: center; text-decoration: none;
}
.tab-btn:hover { color: var(--text); text-decoration: none; }
.tab-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

/* =============================================
   DROPDOWN
   ============================================= */
.dropdown-wrapper { position: relative; }
.custom-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); z-index: 1050;
  border: 1px solid var(--border); overflow: hidden;
  animation: dropdownIn .15s cubic-bezier(0.4,0,0.2,1);
}
.custom-dropdown.hidden { display: none !important; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
#notifDropdown { width: 340px; max-height: 420px; overflow-y: auto; }
#userDropdown { width: 200px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--gray-100); transition: var(--transition);
  text-decoration: none;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); text-decoration: none; }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-light); }

/* =============================================
   TRANSACTION LIST (user)
   ============================================= */
.tx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.tx-icon.credit  { background: var(--success-light); }
.tx-icon.debit   { background: var(--danger-light); }
.tx-icon.transfer{ background: var(--info-light); }
.tx-icon.reversal{ background: var(--warning-light); }
.tx-details { flex: 1; min-width: 0; }
.tx-desc { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-ref  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.tx-amount { text-align: right; flex-shrink: 0; }
.tx-amount .amount { font-size: 14px; font-weight: 700; }
.tx-amount .credit-amount { color: var(--success); }
.tx-amount .debit-amount  { color: var(--danger); }
.tx-amount .date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   QUICK ACTIONS
   ============================================= */
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition);
  cursor: pointer; text-decoration: none; color: var(--text);
}
.quick-action:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; color: var(--primary); }
.quick-action-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: var(--transition);
}
.quick-action:hover .quick-action-icon { transform: scale(1.1); }
.quick-action span { font-size: 12px; font-weight: 600; text-align: center; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 20px 0; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: var(--transition); text-decoration: none; padding: 0 10px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* =============================================
   AUTH PAGES (Login/Register)
   ============================================= */
.auth-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
  position: relative; overflow: hidden;
}
.auth-body::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(233,69,96,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-body::after {
  content: '';
  position: absolute; bottom: -20%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-container { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}
.auth-brand {
  text-align: center; margin-bottom: 28px;
}
.auth-brand-logo { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; margin-bottom: 4px; }
.auth-brand-tagline { font-size: 12px; color: var(--text-muted); }
.auth-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-secure { text-align: center; margin-top: 16px; font-size: 11px; color: rgba(255,255,255,.5); }

/* OTP Inputs */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.otp-box {
  width: 52px; height: 56px;
  border: 2px solid var(--border); border-radius: var(--radius);
  text-align: center; font-size: 22px; font-weight: 700; color: var(--primary);
  transition: var(--transition); outline: none; background: var(--gray-50);
}
.otp-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,52,96,.1); background: var(--white); }

/* PIN Inputs */
.pin-inputs { display: flex; gap: 12px; justify-content: center; margin: 12px 0; }
.pin-box {
  width: 56px; height: 60px;
  border: 2px solid var(--border); border-radius: var(--radius);
  text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 2px;
  transition: var(--transition); outline: none; background: var(--gray-50);
  -webkit-text-security: disc;
}
.pin-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,52,96,.1); background: var(--white); }

/* =============================================
   SECURITY GATE (Transfer steps)
   ============================================= */
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 28px;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1;
}
.step-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: var(--transition);
  border: 2px solid var(--border); background: var(--white); color: var(--text-muted);
  position: relative; z-index: 1;
}
.step.done   .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(15,52,96,.15); }
.step-label { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.step.active .step-label { color: var(--primary); }
.step.done   .step-label { color: var(--success); }
.step-line { flex: 1; height: 2px; background: var(--border); margin-bottom: 22px; }
.step-line.done { background: var(--success); }

/* Security gate banner */
.gate-banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 1px solid #f59e0b40; margin-bottom: 20px;
}
.gate-banner-icon { font-size: 24px; flex-shrink: 0; }
.gate-banner-text .title { font-size: 14px; font-weight: 700; color: #92400e; }
.gate-banner-text .desc  { font-size: 12px; color: #a16207; margin-top: 2px; }

/* Popup overlay */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.popup-box {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 36px; text-align: center;
  max-width: 420px; width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn .3s cubic-bezier(0.34,1.56,0.64,1);
}
.popup-icon { font-size: 48px; margin-bottom: 12px; }
.popup-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.popup-message { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

/* =============================================
   ADMIN — User table
   ============================================= */
.user-row td { vertical-align: middle; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.user-email { font-size: 11px; color: var(--text-muted); }
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* =============================================
   SEARCH BAR
   ============================================= */
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px;
  transition: var(--transition); flex: 1;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,52,96,.08); }
.search-bar input { border: none; outline: none; font-size: 14px; color: var(--text); background: transparent; flex: 1; }
.search-bar svg { color: var(--gray-400); flex-shrink: 0; }

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin .7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .7s linear infinite; }

/* =============================================
   MISC
   ============================================= */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; }
.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Section title */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text); }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.empty-state p  { font-size: 13px; color: var(--text-muted); }

/* Responsive sidebar overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }
.sidebar-overlay.active { display: block; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .quick-action { padding: 14px 8px; }
  .quick-action-icon { width: 40px; height: 40px; font-size: 18px; }
  .balance-amount { font-size: 28px; }
  .header-user-info { display: none; }
  .modal { max-width: 100%; border-radius: 20px 20px 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .custom-dropdown { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; }
  #notifDropdown,#userDropdown { width: auto; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab-btn { white-space: nowrap; flex: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-action span { font-size: 10px; }
  .auth-card { padding: 24px 20px; }
  .balance-amount { font-size: 24px; }
  .stat-card-value { font-size: 20px; }
}
