/* ============================================================
   THE SELLERS PORTAL — Design System
   Colors: Navy #133e7c | Teal #1aa0aa | Gold #f59e0b
   ============================================================ */

:root {
  --navy:        #133e7c;
  --navy-dark:   #0d2d5e;
  --navy-light:  #1a4f9a;
  --teal:        #1aa0aa;
  --teal-dark:   #148a93;
  --teal-light:  #e6f7f8;
  --gold:        #f59e0b;
  --gold-light:  #fef3c7;
  --bg:          #f0f4f8;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --border-light:#f1f5f9;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-faint:  #94a3b8;
  --red:         #ef4444;
  --red-bg:      #fee2e2;
  --green:       #10b981;
  --green-bg:    #dcfce7;
  --purple:      #8b5cf6;
  --purple-bg:   #ede9fe;
  --sidebar-w:   256px;
  --topbar-h:    60px;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.15);
  --transition:  0.15s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.sidebar-logo {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-icon {
  width: 34px; height: 34px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.sidebar-logo-text { line-height: 1.2; }
.sidebar-logo-text strong { color: #fff; font-size: 13.5px; font-weight: 700; display: block; }
.sidebar-logo-text span { color: rgba(255,255,255,.45); font-size: 10.5px; }

.nav-section { padding: 8px 0; flex: 1; }
.nav-label {
  color: rgba(255,255,255,.3);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 12px 18px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 18px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.nav-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.92); border-left-color: rgba(255,255,255,.15); }
.nav-item.active {
  background: rgba(26,160,170,.18);
  color: #fff;
  border-left-color: var(--teal);
  font-weight: 600;
}
.nav-item i { width: 17px; text-align: center; flex-shrink: 0; opacity: .7; font-size: 13.5px; }
.nav-item:hover i, .nav-item.active i { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-user {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 32px; height: 32px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info strong { color: #fff; font-size: 12.5px; font-weight: 600; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { color: rgba(255,255,255,.4); font-size: 11px; text-transform: capitalize; }
.sidebar-logout { background: none; border: none; color: rgba(255,255,255,.35);
  padding: 4px; border-radius: 4px; transition: color var(--transition); }
.sidebar-logout:hover { color: rgba(255,255,255,.8); }

/* ---- Main content area ---- */
.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ---- Topbar ---- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; gap: 5px;
  font-size: 13px;
}
.topbar-btn:hover { background: var(--border-light); color: var(--text); }
.topbar-notif-count {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 17px; height: 17px;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Page content ---- */
.content { padding: 24px; flex: 1; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-header h2 { font-size: 18px; font-weight: 700; }
.page-header p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 14px; font-weight: 600; }
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--border-light);
}

/* ---- Stat cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}
.stat-icon.navy { background: rgba(19,62,124,.1); color: var(--navy); }
.stat-icon.teal  { background: var(--teal-light); color: var(--teal); }
.stat-icon.gold  { background: var(--gold-light); color: var(--gold); }
.stat-icon.red   { background: var(--red-bg); color: var(--red); }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1; color: var(--text); }
.stat-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbfc; }
.td-sm { font-size: 12.5px; }
.td-mono { font-family: 'SF Mono', monospace; font-size: 12px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-navy   { background: rgba(19,62,124,.1);  color: var(--navy); }
.badge-teal   { background: var(--teal-light);   color: var(--teal-dark); }
.badge-gold   { background: var(--gold-light);   color: #92400e; }
.badge-red    { background: var(--red-bg);        color: #b91c1c; }
.badge-green  { background: var(--green-bg);      color: #15803d; }
.badge-purple { background: var(--purple-bg);     color: #6d28d9; }
.badge-gray   { background: var(--border-light);  color: var(--text-muted); }
.badge-blue   { background: #dbeafe;              color: #1d4ed8; }

/* Status → badge mapping helpers applied in JS */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.3;
}
.btn-primary   { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-teal      { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-gold      { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #d97706; }
.btn-outline   { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--border-light); }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost     { background: none; border: none; color: var(--text-muted); padding: 6px 10px; }
.btn-ghost:hover { color: var(--text); background: var(--border-light); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,160,170,.12);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-control::placeholder { color: var(--text-faint); }
.form-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.form-error { font-size: 11.5px; color: var(--red); margin-top: 4px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .18s ease;
}
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }
@keyframes modalIn { from { opacity:0; transform:scale(.97) translateY(8px); } }
.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-faint); font-size: 20px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: all var(--transition); }
.modal-close:hover { background: var(--border-light); color: var(--text); }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  max-width: 340px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn .22s ease;
  pointer-events: auto;
}
.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
.toast.warning { background: #92400e; }
.toast.info    { background: #1e40af; }
@keyframes toastIn { from { opacity:0; transform:translateX(24px); } }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-2 { margin-top: 16px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: 'SF Mono', Consolas, monospace; }
.font-bold { font-weight: 700; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-faint);
}
.empty-state i { font-size: 36px; margin-bottom: 12px; display: block; opacity: .4; }
.empty-state p { font-size: 14px; }

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row td { text-align: center; padding: 32px; color: var(--text-faint); }

/* Search / filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-bar .form-control { max-width: 220px; }
.search-input { position: relative; }
.search-input i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 13px; }
.search-input input { padding-left: 32px; }

/* Timeline */
.timeline { padding: 0; list-style: none; }
.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px; top: 28px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
}
.timeline-content { flex: 1; }
.timeline-content strong { font-size: 13px; font-weight: 600; display: block; }
.timeline-content p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.timeline-content time { font-size: 11px; color: var(--text-faint); margin-top: 3px; display: block; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  background: none;
  border-left: none; border-right: none; border-top: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); }

/* POA output */
.poa-section {
  background: var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.poa-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--navy);
  margin-bottom: 8px;
}
.poa-section p { font-size: 13.5px; color: var(--text); white-space: pre-wrap; line-height: 1.6; }

/* ============================================================
   LOGIN PAGE (no sidebar)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1a5a9a 100%);
}
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #fff;
}
.auth-brand { margin-bottom: 48px; text-align: center; }
.auth-brand-icon {
  width: 64px; height: 64px;
  background: var(--teal);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(26,160,170,.4);
}
.auth-brand h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-brand p { color: rgba(255,255,255,.55); font-size: 14px; }
.auth-features { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.auth-feature { display: flex; align-items: center; gap: 12px; }
.auth-feature-icon { width: 36px; height: 36px; background: rgba(255,255,255,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.auth-feature strong { display: block; font-size: 13.5px; color: rgba(255,255,255,.9); }
.auth-feature span { font-size: 12px; color: rgba(255,255,255,.45); }
.auth-right {
  width: 420px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-card { width: 100%; max-width: 360px; }
.auth-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-card > p { color: var(--text-muted); font-size: 13.5px; margin-bottom: 28px; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 9px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; background: none; border-left: none; border-right: none; border-top: none; }
.auth-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.auth-footer { margin-top: 20px; text-align: center; font-size: 12px; color: var(--text-faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  /* Tables stay readable on tablet by allowing horizontal scroll inside the wrapper */
  .table-wrap table { min-width: 520px; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px 10px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; }
  .auth-left { display: none; }
  .auth-right { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 10px; }
  .form-row-3 { grid-template-columns: 1fr; }
  /* Make modal usable on small screens — no margin gobbling */
  .modal { max-width: 96vw !important; max-height: 92vh; overflow-y: auto; margin: 4vh auto; }
  .modal-lg, .modal-xl { max-width: 96vw !important; }
  .modal-body { padding: 14px !important; }
  .card { padding: 12px; border-radius: 10px; }
  .card-header { flex-wrap: wrap; gap: 6px; }
  .card-header h3 { font-size: 14px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; gap: 0; }
  .tabs .tab { white-space: nowrap; font-size: 12px; padding: 8px 10px; }
  /* Tables: ensure container scrolls horizontally and the cells stay compact */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 540px; font-size: 12px; }
  .table-wrap th, .table-wrap td { padding: 6px 8px; }
  /* Buttons stack better on small screens */
  .btn { font-size: 12.5px; padding: 7px 12px; }
  .btn-sm { font-size: 11.5px; padding: 5px 9px; }
  /* Body bumps font size up slightly so links are easier to tap */
  body { font-size: 14px; }
  /* Larger tap targets for inline icon-only buttons */
  .btn-ghost.btn-sm { min-width: 32px; min-height: 32px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .main { padding: 10px; }
  .card { padding: 10px; }
}
