/* public/assets/css/app.css — Modern Light-Dark Slate Theme */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-base:        #1a1f2e;
  --bg-deep:        #141824;
  --bg-surface:     #202534;
  --bg-card:        rgba(32,37,52,.85);
  --bg-glass:       rgba(255,255,255,.06);
  --bg-glass-hover: rgba(255,255,255,.10);

  --border:         rgba(255,255,255,.10);
  --border-accent:  rgba(99,102,241,.45);

  --primary:        #6366f1;
  --primary-glow:   rgba(99,102,241,.28);
  --primary-light:  #a5b4fc;
  --secondary:      #8b5cf6;
  --accent:         #22d3ee;
  --accent-glow:    rgba(34,211,238,.2);

  --success:        #34d399;
  --success-bg:     rgba(52,211,153,.12);
  --warning:        #fbbf24;
  --warning-bg:     rgba(251,191,36,.12);
  --danger:         #f87171;
  --danger-bg:      rgba(248,113,113,.12);
  --info:           #22d3ee;
  --info-bg:        rgba(34,211,238,.12);

  --text-primary:   #f0f4ff;
  --text-secondary: #b0bdd6;
  --text-muted:     #606a80;
  --text-accent:    #a5b4fc;

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,.25);
  --shadow:      0 4px 20px rgba(0,0,0,.35);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.45);
  --shadow-glow: 0 0 28px var(--primary-glow);

  --topbar-h:   64px;
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ── Light mode ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-base:        #f0f2f8;
  --bg-deep:        #e4e8f2;
  --bg-surface:     #ffffff;
  --bg-card:        rgba(255,255,255,.95);
  --bg-glass:       rgba(0,0,0,.04);
  --bg-glass-hover: rgba(0,0,0,.07);

  --border:         rgba(0,0,0,.10);
  --border-accent:  rgba(99,102,241,.45);

  --text-primary:   #1a1f2e;
  --text-secondary: #3d4663;
  --text-muted:     #8892aa;
  --text-accent:    #6366f1;

  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow:      0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.16);
  --shadow-glow: 0 0 28px var(--primary-glow);
}

[data-theme="light"] body {
  background: var(--bg-base);
  color: var(--text-primary);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%,  rgba(99,102,241,.06)  0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(139,92,246,.05) 0%, transparent 50%),
    radial-gradient(ellipse 35% 30% at 92% 15%,  rgba(34,211,238,.04) 0%, transparent 45%);
}

[data-theme="light"] .topbar {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

[data-theme="light"] .card {
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.08);
}

[data-theme="light"] .mobile-menu {
  background: rgba(248,249,255,.98);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

[data-theme="light"] .dropdown-menu {
  background: rgba(255,255,255,.98);
  border-color: rgba(0,0,0,.10);
}

[data-theme="light"] .modal {
  background: #ffffff;
  border-color: rgba(99,102,241,.30);
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
}

[data-theme="light"] .form-control {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.14);
  color: var(--text-primary);
}

[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
}

[data-theme="light"] .dual-listbox-select {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12);
  color: var(--text-primary);
}

[data-theme="light"] thead tr {
  background: rgba(0,0,0,.03);
}

[data-theme="light"] tbody tr:hover {
  background: rgba(99,102,241,.05);
}

[data-theme="light"] .stat-card {
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.08);
}

[data-theme="light"] .filter-btn,
[data-theme="light"] .btn-secondary {
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.12);
  color: var(--text-secondary);
}

[data-theme="light"] .topbar-icon-btn {
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.12);
  color: var(--text-secondary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
}

/* Theme toggle button */
.theme-toggle-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}


/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #c7d2fe; }
img { max-width: 100%; display: block; }

/* ── Background ────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%,  rgba(99,102,241,.1)  0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(139,92,246,.08) 0%, transparent 50%),
    radial-gradient(ellipse 35% 30% at 92% 15%,  rgba(34,211,238,.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(20,24,36,.9);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 100;
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
}

.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
}

.topbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.topbar-nav { display: flex; align-items: center; gap: 2px; margin-left: 20px; }

.topbar-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.topbar-nav a:hover { background: var(--bg-glass-hover); color: var(--text-primary); }
.topbar-nav a.active { background: rgba(99,102,241,.12); color: var(--primary-light); }

.topbar-spacer { flex: 1; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.topbar-icon-btn:hover { background: var(--bg-glass-hover); color: var(--text-primary); border-color: var(--border-accent); }
.topbar-icon-btn.analytics-btn:hover { color: var(--accent); border-color: rgba(34,211,238,.4); }

.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; color: #fff; cursor: pointer;
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 180px; padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all var(--transition); z-index: 200;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.dropdown-item:hover { background: var(--bg-glass-hover); color: var(--text-primary); }
.dropdown-item.danger:hover { background: var(--danger-bg); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Main wrapper ──────────────────────────────────────────── */
.main-wrapper { padding-top: var(--topbar-h); min-height: 100vh; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 32px 24px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
}
.card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text-primary); }

/* ── Stat cards ────────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 14px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; position: relative; overflow: hidden;
  transition: all var(--transition);
}
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; opacity: 0; transition: opacity var(--transition);
}
.stat-card.primary::after { background: linear-gradient(90deg,var(--primary),var(--secondary)); }
.stat-card.success::after { background: linear-gradient(90deg,var(--success),#6ee7b7); }
.stat-card.warning::after { background: linear-gradient(90deg,var(--warning),#fcd34d); }
.stat-card.accent::after  { background: linear-gradient(90deg,var(--accent),#67e8f9); }
.stat-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.stat-card:hover::after { opacity: 1; }

.stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.stat-icon.primary { background: rgba(99,102,241,.15); }
.stat-icon.success { background: rgba(52,211,153,.15); }
.stat-icon.warning { background: rgba(251,191,36,.15); }
.stat-icon.accent  { background: rgba(34,211,238,.15); }

.stat-value { font-family: var(--font-head); font-size: 1.65rem; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden; outline: none;
}
.btn::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background var(--transition); }
.btn:hover::before { background: rgba(255,255,255,.07); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 6px 24px var(--primary-glow); color: #fff; }

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { background: var(--bg-glass-hover); color: var(--text-primary); border-color: var(--border-accent); }

.btn-danger { background: linear-gradient(135deg,#ef4444,#dc2626); color:#fff; box-shadow: 0 4px 14px rgba(239,68,68,.3); }
.btn-success { background: linear-gradient(135deg,var(--success),#059669); color:#fff; box-shadow: 0 4px 14px rgba(52,211,153,.3); }
.btn-sm { padding: 6px 13px; font-size: .8125rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Quick amount buttons */
.quick-amount-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 70px; height: 62px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
  color: var(--text-secondary);
  font-family: var(--font-head); font-weight: 600; font-size: .875rem;
}
.quick-amount-btn .icon { font-size: 16px; margin-bottom: 2px; }
.quick-amount-btn .label { font-size: .7rem; font-weight: 500; }
.quick-amount-btn:hover {
  background: rgba(99,102,241,.14); border-color: var(--border-accent);
  color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 4px 14px var(--primary-glow);
}
.quick-amount-btn:active { transform: translateY(0) scale(.96); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
  letter-spacing: .3px; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: rgba(20,24,36,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: .9375rem;
  transition: all var(--transition); outline: none; -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(20,24,36,.9);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b0bdd6' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-control-lg { padding: 13px 16px; font-size: 1rem; border-radius: var(--radius-lg); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .8125rem; color: var(--danger); margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: .875rem; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #6ee7b7; border-color: rgba(52,211,153,.25); }
.alert-error   { background: var(--danger-bg);  color: #fca5a5; border-color: rgba(248,113,113,.25); }
.alert-info    { background: var(--info-bg);    color: #67e8f9; border-color: rgba(34,211,238,.25); }
.alert-warning { background: var(--warning-bg); color: #fcd34d; border-color: rgba(251,191,36,.25); }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead tr { background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
thead th {
  padding: 12px 16px; text-align: left;
  font-size: .75rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-glass); }
td { padding: 12px 16px; color: var(--text-secondary); vertical-align: middle; }
td strong { color: var(--text-primary); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .3px;
}
.badge-primary { background: rgba(99,102,241,.15); color: var(--primary-light); }
.badge-success { background: var(--success-bg);   color: #6ee7b7; }
.badge-danger  { background: var(--danger-bg);    color: #fca5a5; }
.badge-warning { background: var(--warning-bg);   color: #fcd34d; }
.badge-accent  { background: var(--info-bg);      color: #67e8f9; }
.badge-muted   { background: rgba(96,106,128,.2); color: var(--text-muted); }

/* ── Page header ───────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; margin-bottom: 4px; }
.page-subtitle { font-size: .9rem; color: var(--text-muted); }
.section-title {
  font-family: var(--font-head); font-size: .875rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Grid ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width:900px) { .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .container { padding: 20px 16px; }
  .topbar-nav { display: none; }
}

/* ── Auth ──────────────────────────────────────────────────── */
.auth-wrapper { display: flex; min-height: 100vh; align-items: stretch; position: relative; }
.auth-hero {
  flex: 1;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(99,102,241,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(139,92,246,.09) 0%, transparent 50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; position: relative; overflow: hidden;
}
.auth-hero-title { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--text-primary); text-align: center; margin: 24px 0 12px; line-height: 1.2; }
.auth-hero-sub { font-size: .975rem; color: var(--text-secondary); text-align: center; max-width: 360px; line-height: 1.75; }
.auth-form-panel {
  width: 460px; min-height: 100vh;
  background: rgba(14,18,28,.94);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px; overflow-y: auto;
}
.auth-form-title { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.auth-form-subtitle { font-size: .9rem; color: var(--text-muted); margin-bottom: 28px; }
@media(max-width:768px) {
  .auth-hero { display: none; }
  .auth-form-panel { width:100%; border-left:none; padding:32px 24px; }
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl); padding: 32px;
  max-width: 460px; width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(.95) translateY(8px); transition: all var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 44px; margin-bottom: 14px; opacity: .5; }
.empty-state-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state-text { font-size: .875rem; margin-bottom: 18px; }

/* ── Filter bar ────────────────────────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  padding: 7px 16px; border-radius: 100px; font-size: .8125rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--bg-glass); color: var(--text-muted); transition: all var(--transition); white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(99,102,241,.14); border-color: var(--border-accent); color: var(--primary-light);
}

/* ── Progress ──────────────────────────────────────────────── */
.progress-bar { height: 6px; background: rgba(255,255,255,.07); border-radius: 100px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg,var(--primary),var(--secondary)); transition: width .6s ease; }

/* ── Search ────────────────────────────────────────────────── */
.search-input { position: relative; }
.search-input input { padding-left: 38px; }
.search-input .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ── Category pill ─────────────────────────────────────────── */
.category-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; font-size: .75rem; font-weight: 600;
  background: rgba(99,102,241,.12); color: var(--text-accent);
  border: 1px solid rgba(99,102,241,.22); white-space: nowrap;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin   { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .4s ease both; }
.stagger > * { animation: fadeIn .4s ease both; }
.stagger > *:nth-child(1) { animation-delay:.04s; }
.stagger > *:nth-child(2) { animation-delay:.08s; }
.stagger > *:nth-child(3) { animation-delay:.12s; }
.stagger > *:nth-child(4) { animation-delay:.16s; }
.stagger > *:nth-child(5) { animation-delay:.20s; }
.stagger > *:nth-child(6) { animation-delay:.24s; }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner { width:18px;height:18px;border:2px solid rgba(255,255,255,.2);border-top-color:var(--primary-light);border-radius:50%;animation:spin .7s linear infinite;display:inline-block; }

/* ── Chart container ───────────────────────────────────────── */
.chart-container { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; }

/* ── Date range ────────────────────────────────────────────── */
.date-range-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.date-range-row .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

/* ── Admin layout ──────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.admin-content { flex: 1; padding: 32px 24px; max-width: 1100px; margin: 0 auto; width: 100%; }

/* ── Utilities ─────────────────────────────────────────────── */
.text-primary-c { color: var(--primary-light); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.text-muted     { color: var(--text-muted); }
.text-right     { text-align: right; }
.text-center    { text-align: center; }
.font-head      { font-family: var(--font-head); }
.fw-700         { font-weight: 700; }
.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}
.flex{display:flex}.flex-col{flex-direction:column}.items-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}
.hidden{display:none!important}
.amount-positive { font-family:var(--font-head); font-weight:700; color:var(--danger); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }