/* ============================================================
   Lottobingo – Design System v0.3.0
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,0,0&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --bg:          #f6f6f6;
  --surface:     #ffffff;
  --surface-2:   #f0f0f0;
  --border:      #e2e2e2;

  --navy:        #1E3A8A;
  --navy-mid:    #2563EB;
  --navy-bg:     #EFF6FF;
  --navy-dark:   #1e3a8a;

  --amber:       #D97706;
  --amber-bg:    #FEF3C7;
  --amber-light: #FDE68A;

  --green:       #15803D;
  --green-bg:    #DCFCE7;

  --red:         #DC2626;
  --red-bg:      #FEE2E2;

  --text-primary:   #111827;
  --text-secondary: #6B7280;
  --text-muted:     #9CA3AF;
  --text-inverse:   #ffffff;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);

  /* Bottom nav height */
  --nav-height: 72px;

  /* Typography */
  --font: 'Inter', system-ui, sans-serif;
  --font-size-xs:   11px;
  --font-size-sm:   13px;
  --font-size-base: 15px;
  --font-size-md:   17px;
  --font-size-lg:   20px;
  --font-size-xl:   24px;
  --font-size-2xl:  30px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ---------- App Layout ---------- */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
}

#view-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--nav-height);
  -webkit-overflow-scrolling: touch;
}

/* Safe area support for notched phones */
#view-container { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); }

/* ---------- Top Bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.top-bar-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.top-bar-logo .logo-icon {
  font-size: 22px;
  color: var(--amber);
}

/* ---------- Bottom Nav ---------- */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  transition: opacity 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  flex: 1;
}

.nav-item .icon-wrap {
  width: 42px;
  height: 34px;
  border-radius: var(--radius-md);
  background: #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.nav-item .icon {
  font-size: 22px;
  color: var(--text-secondary);
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  line-height: 1;
  transition: color 0.15s;
  user-select: none;
}

.nav-item .nav-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-item.active .icon-wrap { background: var(--navy-bg); }
.nav-item.active .icon { color: var(--navy-mid); }
.nav-item.active .nav-label { color: var(--navy-mid); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card + .card { margin-top: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  width: 100%;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-primary {
  background: var(--navy);
  color: var(--text-inverse);
}

.btn-primary:hover:not(:disabled) { opacity: 0.9; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-amber {
  background: var(--amber);
  color: var(--text-inverse);
}

.btn-green {
  background: var(--green);
  color: var(--text-inverse);
}

.btn-danger {
  background: var(--red);
  color: var(--text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-sm {
  padding: 8px var(--space-4);
  font-size: var(--font-size-sm);
  width: auto;
}

.btn .icon {
  font-size: 18px;
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  line-height: 1;
}

/* ---------- Form Elements ---------- */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group + .form-group { margin-top: var(--space-4); }

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--navy-mid); }
.form-input::placeholder { color: var(--text-muted); }
input[type="date"].form-input { -webkit-appearance: none; appearance: none; }

.form-input.error { border-color: var(--red); }

/* ---------- Chips / Tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.chip-green  { background: var(--green-bg);  color: var(--green); }
.chip-amber  { background: var(--amber-bg);  color: var(--amber); }
.chip-red    { background: var(--red-bg);    color: var(--red); }
.chip-navy   { background: var(--navy-bg);   color: var(--navy-mid); }
.chip-gray   { background: var(--surface-2); color: var(--text-secondary); }

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

/* ---------- Icon sizes ---------- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.icon-sm { font-size: 16px; }
.icon-md { font-size: 20px; }
.icon-lg { font-size: 28px; }
.icon-xl { font-size: 36px; }

/* ---------- Loading Spinner ---------- */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-full {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: var(--space-3);
  color: var(--text-muted);
}

/* ---------- Toast / Snackbar ---------- */
#toast-container {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: #1f2937;
  color: #fff;
  padding: 10px var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s ease;
  pointer-events: auto;
}

.toast.toast-success { background: var(--green); }
.toast.toast-error   { background: var(--red); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section header ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ---------- List rows ---------- */
.list-row {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.list-row:last-child { border-bottom: none; }

.list-row-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-bg);
  color: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 700;
  flex-shrink: 0;
}

.list-row-body { flex: 1; min-width: 0; }
.list-row-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row-sub {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---------- Number Ball ---------- */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: var(--font-size-sm);
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
  cursor: default;
}

.ball.selected {
  background: var(--navy);
  color: var(--text-inverse);
  border-color: var(--navy);
}

.ball.hit {
  background: var(--green);
  color: var(--text-inverse);
  border-color: var(--green);
}

.ball.miss {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Number picker grid */
.number-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
}

.number-grid .ball {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.number-grid .ball:active { transform: scale(0.9); }
.number-grid .ball.selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.number-grid .ball.full:not(.selected) { opacity: 0.35; cursor: not-allowed; }

/* ---------- Stat card ---------- */
.stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg);
  border-radius: var(--radius-md);
}

.stat-rank {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--navy);
  min-width: 28px;
}

.stat-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: var(--navy);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.stat-count {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 28px;
  text-align: right;
}

/* ---------- Hero Jackpot ---------- */
.jackpot-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2563EB 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: #fff;
  text-align: center;
}

.jackpot-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.jackpot-amount {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: #FDE68A;
  margin: var(--space-1) 0;
  letter-spacing: -1px;
}

.jackpot-sub {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* ---------- Phase badge ---------- */
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phase-open    { background: var(--green-bg);  color: var(--green); }
.phase-active  { background: var(--amber-bg);  color: var(--amber); }
.phase-ended   { background: var(--surface-2); color: var(--text-secondary); }

/* ---------- Draw history ---------- */
.draw-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.draw-date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  min-width: 52px;
}

.draw-balls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.draw-balls .ball {
  width: 28px; height: 28px;
  font-size: var(--font-size-xs);
}

/* ---------- Toggle switch ---------- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-label { font-size: var(--font-size-base); font-weight: 500; }
.toggle-desc  { font-size: var(--font-size-xs); color: var(--text-muted); margin-top: 2px; }

.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: background 0.2s;
  cursor: pointer;
}

.toggle input:checked + .toggle-track { background: var(--navy); }

.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-track::after { transform: translateX(20px); }

/* ---------- Empty state ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
  text-align: center;
  gap: var(--space-3);
}

.empty-state .icon {
  font-size: 48px;
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
}

.empty-state p { font-size: var(--font-size-base); }

/* ---------- Error/Info boxes ---------- */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.alert .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-info    { background: var(--navy-bg);  color: var(--navy); }
.alert-success { background: var(--green-bg); color: var(--green); }
.alert-warning { background: var(--amber-bg); color: var(--amber); }
.alert-error   { background: var(--red-bg);   color: var(--red); }

/* ---------- Admin section ---------- */
.admin-phase-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
}

.admin-phase-card.active { border-color: var(--navy); background: var(--navy-bg); }

.admin-round-phases {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.phase-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.phase-step.current { background: var(--navy-bg); border-color: var(--navy-mid); color: var(--navy-mid); }
.phase-step.done    { background: var(--green-bg); border-color: var(--green); color: var(--green); }

.phase-step .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
}

/* ---------- Payment row ---------- */
.payment-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.payment-row:last-child { border-bottom: none; }

.pay-input-row {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 50px;
}
.pay-input-row.open {
  max-height: 80px;
}

.payment-name { flex: 1; font-weight: 500; }
.payment-status { font-size: var(--font-size-xs); font-weight: 700; }

/* ---------- Code display ---------- */
.code-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--navy-bg);
  color: var(--navy);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: var(--font-size-base);
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: all;
}

/* ---------- Page layout helpers ---------- */
.page { padding: var(--space-4); }
.page > * + * { margin-top: var(--space-4); }

/* ---------- Modal / Overlay ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fade-in 0.2s ease;
}

.modal-sheet {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slide-up 0.25s ease;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
}

.modal-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

/* ---------- Login screen ---------- */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh;
  padding: var(--space-6);
  background: var(--bg);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.login-logo .icon {
  font-size: 64px;
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  color: var(--amber);
}

.login-logo h1 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}

.login-logo p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: center;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.login-tabs {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: var(--space-5);
}

.login-tab {
  flex: 1;
  padding: 8px;
  border-radius: 7px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.login-tab.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy-mid);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link:hover { color: var(--navy-dark); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
  margin-top: var(--space-3);
}

.btn-google:hover { background: var(--surface-2); }

.btn-google svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Responsive max-width ---------- */
@media (min-width: 480px) {
  .login-screen { background: #e8e8e8; }
  .login-card { box-shadow: var(--shadow-lg); }
  #bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  #view-container { max-width: 480px; margin: 0 auto; }
  #app { align-items: center; }
  #view-container { width: 100%; }
}

/* ---------- Util ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-navy   { color: var(--navy); }
.text-amber  { color: var(--amber); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.w-full { width: 100%; }
.hidden { display: none !important; }
