/* ============================================================
   SiTempa — Industrial Light Theme
   Sistem Tempahan Kemudahan Awam Rembau
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colours */
  --ink:        #1C1C1E;
  --ink-2:      #3A3A3C;
  --ink-3:      #636366;
  --ink-4:      #8E8E93;
  --border:     #D1D1D6;
  --border-2:   #E5E5EA;
  --surface:    #FFFFFF;
  --surface-2:  #F5F5F0;
  --surface-3:  #EBEBEB;
  --bg:         #FAFAF8;

  /* Accent — Amber/Gold (industrial feel) */
  --amber:      #D97706;
  --amber-2:    #B45309;
  --amber-light:#FEF3C7;
  --amber-mid:  #FDE68A;

  /* Status */
  --green:      #059669;
  --green-light:#D1FAE5;
  --red:        #DC2626;
  --red-light:  #FEE2E2;
  --blue:       #2563EB;
  --blue-light: #DBEAFE;
  --orange:     #EA580C;
  --orange-light:#FFEDD5;
  --purple:     #7C3AED;
  --purple-light:#EDE9FE;

  /* Typography */
  --font-head:  'Inter', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-mono:  'DM Mono', monospace;

  /* Spacing */
  --radius-sm:  4px;
  --radius:     6px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);

  /* Sidebar */
  --sidebar-w:  240px;
  --topbar-h:   60px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select {
  font-family: var(--font-body);
  color: var(--ink);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; }
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 13px; }
.text-base{ font-size: 15px; }
.text-lg  { font-size: 17px; }
.text-xl  { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.font-mono { font-family: var(--font-mono); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--ink-4); }
.text-secondary { color: var(--ink-3); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 24px; }
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-2);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius); }

/* Primary — Amber */
.btn-primary {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn-primary:hover:not(:disabled) { background: var(--amber-2); border-color: var(--amber-2); }

/* Secondary */
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); }

/* Dark */
.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover:not(:disabled) { background: var(--ink-2); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }

/* Danger */
.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

/* Google Sign-In */
.btn-google {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  font-weight: 500;
  gap: 10px;
  padding: 11px 20px;
  box-shadow: var(--shadow-sm);
}
.btn-google:hover:not(:disabled) {
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

/* ── Form Elements ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-label-required::after {
  content: ' *';
  color: var(--red);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.form-input::placeholder { color: var(--ink-4); }
.form-input-error { border-color: var(--red) !important; }
.form-input-error:focus { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--ink-4); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; }
.input-group { position: relative; }
.input-group .form-input { padding-left: 36px; }
.input-group-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.badge-amber   { background: var(--amber-light); color: var(--amber-2); }
.badge-green   { background: var(--green-light); color: var(--green); }
.badge-red     { background: var(--red-light); color: var(--red); }
.badge-blue    { background: var(--blue-light); color: var(--blue); }
.badge-orange  { background: var(--orange-light); color: var(--orange); }
.badge-purple  { background: var(--purple-light); color: var(--purple); }
.badge-neutral { background: var(--surface-3); color: var(--ink-3); }

/* Booking status badges */
.status-pending        { background: var(--amber-light); color: var(--amber-2); }
.status-approved       { background: var(--blue-light); color: var(--blue); }
.status-rejected       { background: var(--red-light); color: var(--red); }
.status-awaiting_payment { background: var(--orange-light); color: var(--orange); }
.status-paid           { background: var(--green-light); color: var(--green); }
.status-cancelled      { background: var(--surface-3); color: var(--ink-3); }
.status-completed      { background: var(--purple-light); color: var(--purple); }

/* ── Alert ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.alert-info    { background: var(--blue-light); border-color: #BFDBFE; color: #1e40af; }
.alert-success { background: var(--green-light); border-color: #A7F3D0; color: #065f46; }
.alert-warning { background: var(--amber-light); border-color: var(--amber-mid); color: var(--amber-2); }
.alert-error   { background: var(--red-light); border-color: #FECACA; color: #991b1b; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-4);
  border-bottom: 1px solid var(--border-2);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-2);
  color: var(--ink-2);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--surface-2); }

/* ── Sidebar Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--ink);
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}
.sidebar-brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 1px;
}
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  padding: 12px 20px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  border-radius: 0;
  transition: all .12s;
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-left-color: var(--amber);
}
.sidebar-link i { width: 16px; text-align: center; font-size: 14px; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-name { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.3; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.4); }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-content { padding: 28px 24px; flex: 1; }

/* ── Page Header ── */
.page-header { margin-bottom: 24px; }
.page-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.3px;
}
.page-subtitle { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.page-header-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

/* ── Stat Cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.5px;
  line-height: 1;
}
.stat-sub {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 6px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-4);
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: .4; }
.empty-state-title { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-bottom: 6px; }
.empty-state-desc { font-size: 13px; }

/* ── Spinner ── */
.spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  flex-shrink: 0;
}
.spin-dark { border-color: rgba(0,0,0,.1); border-top-color: var(--ink-3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-2);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border-2);
  margin: 20px 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-4);
  font-size: 13px;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}

/* ── Calendar ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .12s;
}
.cal-day:hover { background: var(--surface-2); }
.cal-day.today { font-weight: 700; border-color: var(--amber); color: var(--amber-2); }
.cal-day.booked { background: var(--red-light); color: var(--red); cursor: not-allowed; }
.cal-day.available { background: var(--green-light); color: var(--green); }
.cal-day.selected { background: var(--amber); color: #fff; border-color: var(--amber); }
.cal-day.disabled { color: var(--ink-4); cursor: not-allowed; opacity: .4; }
.cal-day.other-month { opacity: .3; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-2); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .12s;
  cursor: pointer;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--amber-2); border-bottom-color: var(--amber); }

/* ── Dropdown ── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  animation: fadeIn .1s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--ink-2);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background .1s;
}
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger:hover { background: var(--red-light); }
.dropdown-divider { height: 1px; background: var(--border-2); margin: 4px 0; }

/* ── Progress Steps ── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-4);
  flex: 1;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.step.active .step-num { background: var(--amber); color: #fff; border-color: var(--amber); }
.step.active { color: var(--ink); }
.step.done .step-num { background: var(--green); color: #fff; border-color: var(--green); }
.step-line { flex: 1; height: 1px; background: var(--border-2); margin: 0 8px; }

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.login-left {
  flex: 1;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.02) 0,
      rgba(255,255,255,.02) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.02) 0,
      rgba(255,255,255,.02) 1px,
      transparent 1px,
      transparent 48px
    );
}
.login-right {
  width: 480px;
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-left: 1px solid var(--border-2);
}
.login-box { width: 100%; max-width: 360px; }

/* ── Tooltip ── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 999;
}

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; } .p-6 { padding: 24px; }
.w-full { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.opacity-0 { opacity: 0; }
.pointer-events-none { pointer-events: none; }
.transition { transition: all .15s; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.border-b { border-bottom: 1px solid var(--border-2); }
.border-t { border-top: 1px solid var(--border-2); }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}
@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { width: 100%; border-left: none; }
  .page-content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}
