/* ═══════════════════════════════════════════════════════════
   MarketPlace Seller Admin — Stylesheet
   Mobile-First Fully Responsive
   ═══════════════════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=cabinet-grotesk@400,500,700,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --orange:        #F97316;
  --orange-dark:   #C95D0A;
  --orange-light:  #FED7AA;
  --orange-pale:   #FFF7ED;
  --orange-glow:   rgba(249,115,22,.18);

  --white:         #FFFFFF;
  --canvas:        #F5F5F0;
  --gray-50:       #F8F8F6;
  --gray-100:      #EFEFEB;
  --gray-200:      #E2E2DC;
  --gray-300:      #CACAC2;
  --gray-400:      #A8A89E;
  --gray-500:      #888880;
  --gray-600:      #606058;
  --gray-700:      #404038;
  --gray-800:      #282820;
  --gray-900:      #141410;

  --sidebar-bg:    #111110;
  --sidebar-w:     252px;

  --text:          #18180F;
  --text-muted:    #888880;
  --success:       #16A34A;
  --danger:        #DC2626;
  --warning:       #D97706;
  --info:          #2563EB;

  --header-h:      58px;
  --radius:        14px;
  --radius-sm:     8px;
  --radius-xs:     5px;
  --shadow:        0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.05);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --transition:    .18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--canvas);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Sidebar ─────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  border-right: 1px solid rgba(255,255,255,.04);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.sidebar-logo {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo .logo-mark {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px var(--orange-glow);
  flex-shrink: 0;
}
.sidebar-logo .logo-icon .material-symbols-outlined { font-size: 19px; color: #fff; }
.sidebar-logo .logo-text {
  font-family: 'Clash Display', sans-serif;
  font-size: 17px; font-weight: 700;
  color: #fff; letter-spacing: -.3px;
}
.sidebar-logo .logo-text span { color: var(--orange); }

.sidebar-seller {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.seller-info { display: flex; align-items: center; gap: 10px; }
.seller-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0;
  font-family: 'Clash Display', sans-serif;
}
.seller-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.seller-role { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 1px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-section { margin-bottom: 4px; }
.nav-section-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px;
  color: rgba(255,255,255,.22); text-transform: uppercase;
  padding: 10px 18px 4px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  position: relative;
  transition: color var(--transition), background var(--transition);
  margin: 1px 0;
}
.nav-link .material-symbols-outlined { font-size: 18px; flex-shrink: 0; }
.nav-link:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.nav-link.active { color: #fff; background: rgba(249,115,22,.14); }
.nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--orange);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.logout-btn {
  display: flex; align-items: center; gap: 9px;
  background: none; border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4); width: 100%; padding: 8px 13px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  transition: all var(--transition);
}
.logout-btn .material-symbols-outlined { font-size: 17px; }
.logout-btn:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 199;
}
.sidebar-overlay.visible { display: block; }

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

.topbar {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-hamburger {
  display: none;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  border: 1px solid var(--gray-200); background: var(--white);
  cursor: pointer; color: var(--gray-600);
  flex-shrink: 0;
}
.topbar-hamburger .material-symbols-outlined { font-size: 20px; }
.topbar-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--text);
  flex: 1;
  letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200); background: var(--white);
  cursor: pointer; color: var(--gray-500);
  transition: all var(--transition); position: relative;
}
.icon-btn:hover { background: var(--orange-pale); border-color: var(--orange-light); color: var(--orange); }
.icon-btn .material-symbols-outlined { font-size: 18px; }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff;
}

.page-content { flex: 1; padding: 24px 28px; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  border: 1px solid var(--gray-100);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.card-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--text); letter-spacing: -.1px;
}
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════
   STAT CARDS
══════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 13px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
}
.stat-card.accent-orange::after { background: var(--orange); }
.stat-card.accent-green::after  { background: var(--success); }
.stat-card.accent-blue::after   { background: var(--info); }
.stat-card.accent-red::after    { background: var(--danger); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon .material-symbols-outlined { font-size: 19px; }
.stat-icon.orange { background: var(--orange-pale); color: var(--orange); }
.stat-icon.green  { background: #DCFCE7; color: var(--success); }
.stat-icon.blue   { background: #DBEAFE; color: var(--info); }
.stat-icon.red    { background: #FEE2E2; color: var(--danger); }

.stat-body { flex: 1; min-width: 0; }
.stat-value {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px; font-weight: 700;
  line-height: 1; color: var(--text);
  letter-spacing: -.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 500; margin-top: 4px;
}

/* ══════════════════════════════════════
   TABLES
══════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .9px; color: var(--text-muted);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
thead th:first-child { border-radius: var(--radius-xs) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-xs) 0 0; }
tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--orange-pale); }
tbody td { padding: 12px 14px; vertical-align: middle; }
.td-muted { color: var(--text-muted); font-size: 12px; }

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  letter-spacing: .2px;
}
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-danger  { background: #FEE2E2; color: #B91C1C; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info    { background: #DBEAFE; color: #1D4ED8; }
.badge-muted   { background: var(--gray-100); color: var(--gray-600); }
.badge-orange  { background: var(--orange-pale); color: var(--orange-dark); }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  font-family: 'Cabinet Grotesk', sans-serif;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
  letter-spacing: -.1px;
}
.btn .material-symbols-outlined { font-size: 16px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 4px 14px var(--orange-glow); }
.btn-outline {
  background: transparent; color: var(--orange);
  border: 1.5px solid var(--orange-light);
}
.btn-outline:hover { background: var(--orange-pale); border-color: var(--orange); }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 7px; font-size: 11px; }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--gray-700); margin-bottom: 5px;
  letter-spacing: .2px; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 9px 11px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 13px; font-family: 'Cabinet Grotesk', sans-serif;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ══════════════════════════════════════
   SEARCH / FILTER BAR
══════════════════════════════════════ */
.filter-bar {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 7px 11px;
  flex: 1; min-width: 140px;
  transition: border-color var(--transition);
}
.search-wrap:focus-within { border-color: var(--orange); }
.search-wrap .material-symbols-outlined { font-size: 17px; color: var(--gray-400); }
.search-wrap input {
  border: none; outline: none; font-size: 13px;
  font-family: 'Cabinet Grotesk', sans-serif;
  color: var(--text); flex: 1; background: transparent; min-width: 0;
}

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(16px) scale(.98);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  border: 1px solid var(--gray-100);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: -.2px;
}
.modal-body { padding: 18px 20px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 9px;
  padding: 12px 20px; border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 20px; right: 16px; z-index: 9999;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); background: var(--gray-900); color: #fff;
  font-size: 13px; font-weight: 600; font-family: 'Cabinet Grotesk', sans-serif;
  transform: translateY(80px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px; border: 1px solid rgba(255,255,255,.08);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #14532D; border-color: rgba(22,163,74,.3); }
.toast-error   { background: #7F1D1D; border-color: rgba(220,38,38,.3); }
.toast-info    { background: #1E3A5F; border-color: rgba(37,99,235,.3); }
.toast .material-symbols-outlined { font-size: 17px; }

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 10px;
}
.page-header-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -.5px;
}
.page-header-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════
   EMPTY & LOADING STATES
══════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 44px 24px; text-align: center; color: var(--text-muted);
}
.empty-state .material-symbols-outlined { font-size: 42px; color: var(--gray-300); }
.empty-state h4 { font-size: 14px; font-weight: 700; color: var(--gray-500); font-family: 'Clash Display', sans-serif; }
.empty-state p  { font-size: 12px; }

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

/* ══════════════════════════════════════
   GRID UTILS
══════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ══════════════════════════════════════
   DETAIL ROW
══════════════════════════════════════ */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.detail-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--text-muted); margin-bottom: 3px;
}
.detail-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════
   DIVIDER
══════════════════════════════════════ */
.divider { height: 1px; background: var(--gray-100); margin: 18px 0; }

/* ══════════════════════════════════════
   AI RESPONSE
══════════════════════════════════════ */
.ai-response {
  background: linear-gradient(135deg, var(--orange-pale) 0%, #fff 100%);
  border: 1px solid var(--orange-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13.5px; line-height: 1.75;
  color: var(--gray-800);
  white-space: pre-wrap;
  margin-top: 14px;
}
.ai-response-header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--orange-dark);
  margin-bottom: 10px;
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
}
.ai-response-header .material-symbols-outlined { font-size: 18px; }

/* ══════════════════════════════════════
   TABS
══════════════════════════════════════ */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1.5px solid var(--gray-200);
  margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 9px 16px; font-size: 13px; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  transition: all var(--transition);
  font-family: 'Cabinet Grotesk', sans-serif;
  white-space: nowrap; flex-shrink: 0;
}
.tab:hover { color: var(--orange); }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ══════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 20px 18px; }
}

/* ── Mobile (≤768px) — sidebar becomes drawer ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }

  .main-wrap { margin-left: 0; }

  .topbar { padding: 0 14px; }
  .topbar-hamburger { display: flex; }
  .topbar-title { font-size: 15px; }

  .page-content { padding: 16px 14px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 14px 13px; gap: 10px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-icon .material-symbols-outlined { font-size: 16px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }

  .page-header-title { font-size: 19px; }

  .card { padding: 14px 14px; }

  /* Modal — bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh;
    transform: translateY(100%);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer > * { flex: 1; justify-content: center; min-width: 110px; }

  .toast { left: 12px; right: 12px; max-width: none; bottom: 12px; }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
  .stats-grid { gap: 8px; }
  .stat-card { padding: 12px 10px; gap: 8px; }
  .stat-icon { width: 30px; height: 30px; border-radius: 8px; }
  .stat-icon .material-symbols-outlined { font-size: 15px; }
  .stat-value { font-size: 16px; }
  .stat-label { font-size: 9.5px; }

  .page-content { padding: 14px 12px; }
  .topbar { padding: 0 12px; gap: 7px; }
  .topbar-title { font-size: 14px; }

  .modal-body { padding: 14px 14px; }
  .modal-header { padding: 14px 16px; }
  .modal-footer { padding: 10px 14px; gap: 7px; }

  .btn { padding: 7px 12px; font-size: 12px; }

  .card { padding: 12px 12px; }
}

/* ── Extra Small (≤360px) ── */
@media (max-width: 360px) {
  .stats-grid { gap: 6px; }
  .stat-card { padding: 10px 9px; }
  .stat-value { font-size: 15px; }
  .topbar-title { font-size: 13px; }
  .page-header-title { font-size: 17px; }
  .page-content { padding: 12px 10px; }
}