/* SuperMercado Pro - Estilos Principais */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #1e1b4b;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-width: 260px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #020617;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ========================
   Loading Screen
======================== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}
.loading-logo { font-size: 64px; margin-bottom: 16px; animation: bounce 1s infinite; }
.loading-title {
  color: white; font-size: 24px; font-weight: 700;
  margin-bottom: 32px; letter-spacing: -0.5px;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========================
   Auth Screens
======================== */
.auth-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-icon { font-size: 52px; display: block; margin-bottom: 12px; }
.auth-logo h1 { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.auth-logo p { color: var(--text-muted); font-size: 14px; }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; text-align: center; margin-bottom: 28px; }

/* ========================
   Form Elements
======================== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit;
  background: var(--bg-card); color: var(--text);
  transition: all 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-input.error { border-color: var(--danger); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-input-group { position: relative; }
.form-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 16px;
}
.form-input-group .form-input { padding-left: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* ========================
   Buttons
======================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
  font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(1.1); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-warning { background: var(--warning); color: white; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: rgba(99,102,241,0.1); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-outline-primary {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: white; }

/* ========================
   App Layout
======================== */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 1000; transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo-icon { font-size: 32px; }
.sidebar-logo-text h2 { color: white; font-size: 17px; font-weight: 800; line-height: 1.2; }
.sidebar-logo-text span { color: rgba(255,255,255,0.5); font-size: 12px; }

.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-section-title {
  padding: 12px 20px 4px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 1px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; cursor: pointer;
  color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500;
  transition: all 0.2s; border-left: 3px solid transparent;
  margin: 1px 0;
}
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item.active {
  color: white; background: rgba(99,102,241,0.3);
  border-left-color: var(--primary-light);
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }
.nav-badge {
  margin-left: auto; background: var(--primary);
  color: white; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-info {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: white; flex-shrink: 0;
}
.user-name { color: white; font-size: 13px; font-weight: 600; }
.user-email { color: rgba(255,255,255,0.5); font-size: 11px; }

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

.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: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title { font-size: 20px; font-weight: 700; }
.topbar-subtitle { font-size: 13px; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.hamburger-btn {
  display: none; background: none; border: none;
  font-size: 20px; cursor: pointer; color: var(--text);
  padding: 8px;
}

.page-content { flex: 1; padding: 24px; overflow-y: auto; }

/* ========================
   Cards
======================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 16px; font-weight: 700; }
.card-body { padding: 20px; }

/* ========================
   Stats Cards
======================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 50%;
  transform: translate(20px, -20px);
  opacity: 0.1;
}
.stat-card.primary::before { background: var(--primary); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before { background: var(--info); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.stat-icon.primary { background: rgba(99,102,241,0.12); color: var(--primary); }
.stat-icon.success { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-icon.warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-icon.info { background: rgba(59,130,246,0.12); color: var(--info); }
.stat-icon.danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.stat-value { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-change {
  font-size: 12px; font-weight: 600; margin-top: 6px;
  display: flex; align-items: center; gap: 4px;
}
.stat-change.up { color: var(--danger); }
.stat-change.down { color: var(--success); }
.stat-change.neutral { color: var(--text-muted); }

/* ========================
   Modals
======================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 900px; }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.modal-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal-close {
  background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text-muted);
  padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--bg-card);
}

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

/* ========================
   Badges & Tags
======================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-primary { background: rgba(99,102,241,0.12); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.12); color: var(--info); }
.badge-gray { background: rgba(107,114,128,0.12); color: var(--text-muted); }

/* ========================
   Progress Bars
======================== */
.progress-bar {
  background: var(--border); border-radius: 6px;
  height: 8px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 6px;
  transition: width 0.5s ease;
}
.progress-fill.primary { background: var(--primary); }
.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }

/* ========================
   Purchase Items
======================== */
.purchase-item-row {
  display: grid;
  grid-template-columns: 1fr 100px 90px 90px 90px 40px;
  gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.purchase-item-row:last-child { border-bottom: none; }

/* ========================
   Shopping List
======================== */
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.list-item:last-child { border-bottom: none; }
.list-item.checked .list-item-name {
  text-decoration: line-through; color: var(--text-muted);
}
.checkbox-custom {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.checkbox-custom.checked { background: var(--success); border-color: var(--success); color: white; }

/* ========================
   Price Comparison
======================== */
.price-compare-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center;
  gap: 16px; transition: all 0.2s; margin-bottom: 8px;
}
.price-compare-card.best { border-color: var(--success); background: rgba(16,185,129,0.04); }
.price-compare-card.worst { border-color: var(--danger); background: rgba(239,68,68,0.04); }
.store-rank {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.store-rank.first { background: #fef3c7; color: #d97706; }
.store-rank.second { background: #f1f5f9; color: #64748b; }
.store-rank.third { background: #fef3c7; color: #92400e; }

/* ========================
   Chart Container
======================== */
.chart-container {
  position: relative; height: 280px;
  display: flex; align-items: center; justify-content: center;
}

/* ========================
   Alerts
======================== */
.alert {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14px; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-warning { background: #fffbeb; border-left: 4px solid var(--warning); color: #92400e; }
.alert-danger { background: #fef2f2; border-left: 4px solid var(--danger); color: #991b1b; }
.alert-success { background: #f0fdf4; border-left: 4px solid var(--success); color: #166534; }
.alert-info { background: #eff6ff; border-left: 4px solid var(--info); color: #1e40af; }

/* ========================
   Toast Notifications
======================== */
.toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 99999; display: flex; flex-direction: column; gap: 8px;
  max-width: 360px;
}
.toast {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex; align-items: center; gap: 10px;
  animation: slideRight 0.3s ease;
  font-size: 14px;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

/* ========================
   Empty State
======================== */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; max-width: 300px; margin: 0 auto 20px; }

/* ========================
   Search Box
======================== */
.search-box {
  position: relative; display: flex; align-items: center;
}
.search-box input {
  width: 100%; padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--bg-card); color: var(--text);
  transition: all 0.2s; outline: none; font-family: inherit;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.search-box i { position: absolute; left: 14px; color: var(--text-muted); }

/* ========================
   Filters
======================== */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.filter-chip {
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); transition: all 0.2s;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ========================
   Budget Overview
======================== */
.budget-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border); margin-bottom: 12px;
}
.budget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.budget-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.budget-values { display: flex; gap: 16px; margin-bottom: 8px; }
.budget-spent { font-size: 22px; font-weight: 800; }
.budget-total { color: var(--text-muted); font-size: 14px; }

/* ========================
   Category Grid
======================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.category-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px; text-align: center;
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card .icon { font-size: 32px; margin-bottom: 8px; }
.category-card .name { font-size: 13px; font-weight: 600; }
.category-card .amount { font-size: 14px; font-weight: 700; margin-top: 4px; }

/* ========================
   Misc
======================== */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-0 { padding: 0; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.overlay-active { overflow: hidden; }

/* ========================
   Animations
======================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ========================
   Responsive - Mobile
======================== */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  
  .sidebar {
    transform: translateX(-260px);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }
  .hamburger-btn { display: flex; }
  
  .main-content { margin-left: 0; }
  
  .page-content { padding: 16px; }
  
  .stats-grid { grid-template-columns: 1fr 1fr; }
  
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  
  .modal { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { align-items: flex-end; }
  
  .filter-bar { gap: 6px; }
  
  .purchase-item-row {
    grid-template-columns: 1fr 70px 70px 70px 70px 36px;
    gap: 4px;
  }
  
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  
  .topbar { padding: 0 16px; }
  
  .table th, .table td { padding: 10px 12px; font-size: 13px; }
  
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 28px 20px; }
  .stat-value { font-size: 20px; }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.sidebar-overlay.show { display: block; }

/* Number formatting */
.currency {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Color picker */
.color-option {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; transition: transform 0.2s;
  border: 2px solid transparent;
}
.color-option:hover, .color-option.selected {
  transform: scale(1.2); border-color: white;
  box-shadow: 0 0 0 2px currentColor;
}
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }

/* Page header */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header-title {
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.page-header-actions { display: flex; gap: 8px; align-items: center; }
