/* assets/css/shared.css — RefundPortal Global Stylesheet */

/* ── RESET & BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg, #f7f5f2);
  color: var(--text, #1a1a1a);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
textarea { resize: vertical; min-height: 90px; }
button { cursor: pointer; }

/* ── CSS VARS (defaults — overridden by PHP inline style) ───────────────────── */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --primary-mid: #1e4570;
  --primary-light: #2a5a8c;
  --accent: #c8974a;
  --accent-dim: rgba(200, 151, 74, 0.12);
  --bg: #f7f5f2;
  --bg-section: #f0ede8;
  --bg-white: #ffffff;
  --border: #e5e2dc;
  --border-strong: #d1cdc6;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --warning: #d97706;
  --warning-bg: #fef9c3;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --sidebar-w: 240px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { color: var(--primary); line-height: 1.25; }
.font-serif { font-family: 'Playfair Display', serif; }

/* ── TOPNAV ─────────────────────────────────────────────────────────────────── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; display: flex; align-items: center;
  padding: 0 40px;
  background: rgba(247, 245, 242, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  width: 100%; overflow: visible;
}
.logo-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  white-space: nowrap;
}
.nav-links {
  display: flex; gap: 24px; list-style: none;
  margin: 0 auto; padding: 0;
}
.nav-links li a {
  font-size: 0.83rem; font-weight: 500;
  color: var(--text-muted); transition: color 0.2s; white-space: nowrap;
}
.nav-links li a:hover { color: var(--primary); }
/* Right side of nav — groups lang + actions + hamburger */
.nav-right {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto; flex-shrink: 0;
}
.nav-actions { display: flex; gap: 8px; }
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; flex-shrink: 0;
  width: 40px; height: 40px; align-items: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: all 0.3s; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0; z-index: 190;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  flex-direction: column; padding: 8px 0;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text); padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s; display: block;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg-section); }

/* ── LANGUAGE SWITCHER ──────────────────────────────────────────────────────── */
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 150px; z-index: 500;
  overflow: hidden; display: none;
}
.lang-dropdown.open { display: block; }
.lang-opt {
  padding: 9px 14px; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
  color: var(--text-muted);
}
.lang-opt:hover { background: var(--bg-section); color: var(--primary); }
.lang-opt.active { color: var(--primary); font-weight: 600; background: var(--accent-dim); }

/* ── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.2s; line-height: 1; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #b8873a; border-color: #b8873a; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-section); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-section); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg { padding: 13px 26px; font-size: 0.92rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── FORM ELEMENTS ──────────────────────────────────────────────────────────── */
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
.fg input, .fg select, .fg textarea {
  padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  color: var(--text); background: var(--bg-white); width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}
.fg .hint { font-size: 0.72rem; color: var(--text-light); margin-top: 3px; }
input[type="file"] {
  padding: 8px 12px; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.83rem; color: var(--text-muted);
  background: var(--bg-section);
}

/* ── CARDS ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.card-body { padding: 20px; }

/* ── BADGES ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; white-space: nowrap;
}
.badge-pending  { background: var(--warning-bg); color: #92400e; }
.badge-review   { background: var(--info-bg); color: #1e40af; }
.badge-approved { background: var(--success-bg); color: #166534; }
.badge-denied   { background: var(--danger-bg); color: #991b1b; }
.badge-paid     { background: #d1fae5; color: #065f46; }
.badge-active   { background: var(--success-bg); color: #166534; }
.badge-suspended{ background: var(--danger-bg); color: #991b1b; }

/* ── ALERTS ─────────────────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius); padding: 13px 16px;
  font-size: 0.83rem; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-danger  { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border: 1px solid #bfdbfe; }

/* ── TABLES ─────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead th {
  padding: 10px 16px;
  text-align: left; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; font-size: 0.82rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(247, 245, 242, 0.7); }

/* ── DASHBOARD SIDEBAR ──────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary-dark, #0f2540);
  position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 300; overflow-y: auto;
  transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.sidebar-logo {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.sidebar-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 1.3rem; display: none;
  width: 32px; height: 32px; align-items: center; justify-content: center;
  border-radius: 6px; transition: background 0.2s;
}
.sidebar-close:hover { background: rgba(255,255,255,0.1); }
/* Overlay behind sidebar on mobile */
#sidebarOverlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.su-name { font-size: 0.82rem; font-weight: 600; color: #fff; }
.su-acct { font-size: 0.65rem; color: rgba(255,255,255,0.4); font-family: monospace; margin-top: 1px; }
.snav { list-style: none; padding: 6px 0; }
.snav-section {
  padding: 14px 20px 5px;
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); font-weight: 600;
}
.snav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.52); text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s; cursor: pointer; position: relative;
}
.snav li a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.snav li a.active {
  color: #fff; background: rgba(255,255,255,0.09);
  border-left-color: var(--accent);
}
.snav li a i { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }
.nbadge {
  background: var(--accent); color: #fff;
  font-size: 0.58rem; font-weight: 700;
  padding: 2px 6px; border-radius: 10px;
  margin-left: auto;
}

/* ── DASH TOPBAR ─────────────────────────────────────────────────────────────── */
.dash-topbar {
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 54px;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-size: 0.95rem; font-weight: 600; color: var(--primary); margin-right: auto; }
.hamburger-dash {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.hamburger-dash span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 1.05rem;
  position: relative; transition: all 0.2s;
}
.icon-btn:hover { background: var(--bg-section); color: var(--primary); }
.notif-badge {
  position: absolute; top: -3px; right: -3px;
  width: 16px; height: 16px; background: var(--danger);
  border-radius: 50%; font-size: 0.55rem; font-weight: 700;
  color: #fff; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-white);
}
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  width: 320px; z-index: 400; display: none;
}
.notif-dropdown.open { display: block; }
.nd-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.nd-header h4 { font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.nd-item {
  display: flex; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background 0.15s;
}
.nd-item.unread { background: rgba(37, 99, 235, 0.02); }
.nd-item:hover { background: var(--bg-section); }
.nd-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem; }
.nd-icon.info { background: var(--info-bg); color: var(--info); }
.nd-title { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.nd-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.nd-time { font-size: 0.67rem; color: var(--text-light); margin-top: 3px; }
.nd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--info); margin-top: 6px; flex-shrink: 0; }

/* ── DASH CONTENT ───────────────────────────────────────────────────────────── */
.dash-content { padding: 22px 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.stat-card.green { border-left: 3px solid var(--success); }
.stat-card.gold  { border-left: 3px solid var(--accent); }
.sc-label { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.sc-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.sc-sub { font-size: 0.7rem; color: var(--text-light); margin-top: 4px; }

/* ── BALANCE CARD ───────────────────────────────────────────────────────────── */
.balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg); padding: 24px;
  color: #fff; margin-bottom: 20px;
}
.bc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.bc-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.bc-acct-num { font-size: 0.68rem; font-family: monospace; opacity: 0.5; background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 6px; }
.bc-amount { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; margin-bottom: 16px; }
.bc-currency-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.curr-tab {
  padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65); cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.curr-tab:hover, .curr-tab.active { background: rgba(255,255,255,0.25); color: #fff; border-color: rgba(255,255,255,0.4); }
.bc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.bc-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; transition: all 0.2s;
}
.bc-btn:hover { background: rgba(255,255,255,0.25); }
.bc-meta { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.15); }
.bm-label { font-size: 0.67rem; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.06em; }
.bm-val { font-size: 0.88rem; font-weight: 700; margin-top: 2px; }

/* ── KYC STRIP ──────────────────────────────────────────────────────────────── */
.kyc-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 0.83rem; margin-bottom: 14px;
}
.kyc-strip.required { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.kyc-strip.pending  { background: var(--info-bg);    color: #1e40af; border: 1px solid #bfdbfe; }
.kyc-strip.verified { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.kyc-strip.rejected { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fca5a5; }

/* ── MODALS ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: flex-end; justify-content: center;
}
.modal-backdrop.open {
  display: flex; align-items: center;
}
.modal-box {
  background: var(--bg-white); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  margin: 24px; animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-white); z-index: 1;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-section);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; transition: all 0.2s;
}
.modal-close:hover { background: var(--border-strong); color: var(--text); }
form.inside-modal, .modal-box form { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }

/* ── AVATAR ─────────────────────────────────────────────────────────────────── */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.avatar-primary { background: rgba(26,58,92,0.1); color: var(--primary); }
.avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }

/* ── LAYOUT MANAGER DRAG ITEMS ──────────────────────────────────────────────── */
.lm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; cursor: grab; transition: box-shadow 0.2s;
  user-select: none;
}
.lm-item:active { cursor: grabbing; box-shadow: var(--shadow-md); }
.lm-drag { color: var(--text-light); font-size: 1rem; }
.lm-label { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.lm-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ── COLOR PICKER SWATCHES ──────────────────────────────────────────────────── */
.swatch-row { display: flex; align-items: center; gap: 12px; }
.swatch {
  width: 36px; height: 36px; border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.1); cursor: pointer;
  position: relative; overflow: hidden;
}
.swatch input[type="color"] {
  position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px);
  border: none; cursor: pointer; opacity: 0;
}

/* ── FLASH MESSAGE ──────────────────────────────────────────────────────────── */
.flash-message {
  position: fixed; top: 70px; right: 20px; z-index: 800;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  transition: all 0.4s; max-width: 380px;
}
.flash-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.flash-danger  { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fca5a5; }
.flash-info    { background: var(--info-bg);    color: #1e40af; border: 1px solid #bfdbfe; }
.flash-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }

/* ── TOGGLE SWITCH ──────────────────────────────────────────────────────────── */
.toggle-switch {
  position: relative; width: 42px; height: 24px;
  display: inline-block; flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 24px;
  background: var(--border-strong); cursor: pointer; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px; transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .topnav { padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex !important; }
  .sidebar { transform: translateX(-240px); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex !important; }
  .dash-main { margin-left: 0 !important; }
  .hamburger-dash { display: flex !important; }
  .nav-actions .btn-outline { display: none; }
  .nav-actions .btn { padding: 7px 14px; font-size: 0.8rem; }
}
@media (max-width: 768px) {
  /* Topnav */
  .topnav { padding: 0 14px; height: 56px; }
  .logo-text { font-size: 0.95rem; }
  /* All sections full width with % padding */
  section { padding-left: 5% !important; padding-right: 5% !important; }
  /* Stack grids into single column */
  section > div { max-width: 100% !important; }
  /* Hero */
  section[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .two-col { grid-template-columns: 1fr !important; }
  /* Balance card */
  .balance-card { padding: 16px; border-radius: 12px; }
  .bc-amount { font-size: 1.8rem; }
  .bc-meta { gap: 12px; flex-wrap: wrap; }
  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  /* Dash content */
  .dash-content { padding: 12px !important; }
  /* Tables scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Modal */
  .modal-box { margin: 0; border-radius: 16px 16px 0 0; width: 100%; max-height: 92vh; position: fixed; bottom: 0; left: 0; right: 0; }
  .modal-backdrop.open { align-items: flex-end; }
  /* Footer */
  footer > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  /* Nav actions on mobile */
  .nav-actions { display: none; }
}
@media (max-width: 480px) {
  .topnav { padding: 0 12px; height: 52px; }
  .mobile-menu { top: 52px; }
  .logo-text { font-size: 0.85rem; }
  section { padding-left: 4% !important; padding-right: 4% !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .bc-amount { font-size: 1.6rem; }
  .btn-lg { padding: 11px 16px; font-size: 0.85rem; }
  /* OTP boxes scale down */
  input[name^="otp"] { width: 40px !important; height: 48px !important; font-size: 1.2rem !important; }
  /* Tables */
  table { min-width: 360px; }
  footer > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* ── PULSE ANIMATION (hero dot) ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
