/* ══════════════════════════════════════════════════════
   Gentle Journey — Organisation Portal Styles
   ══════════════════════════════════════════════════════ */

:root {
  --green: #1a5c32;
  --green-mid: #2d7a47;
  --green-light: #e8f5ee;
  --green-pale: #f2faf5;
  --gold: #C8921A;
  --gold-light: #FEF3C7;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --bg: #F8FAFC;
  --sidebar-width: 260px;
  --card-radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

h1,h2,h3,h4 { font-family: 'Outfit', sans-serif; }
a { cursor: pointer; text-decoration: none; }

/* ── AUTH ─────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, hsl(142,65%,12%) 0%, hsl(142,50%,20%) 50%, hsl(40,75%,32%) 100%);
}
.auth-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: slideUp 0.4s ease;
}
.auth-card-wide { max-width: 680px; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 28px; }
.auth-brand { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--green); }
.auth-subtitle { font-size: 0.78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; background: var(--gold-light); padding: 3px 10px; border-radius: 20px; }
.auth-heading { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.auth-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; }
.auth-divider { text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin: 16px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-help { text-align: center; font-size: 0.82rem; color: var(--text-secondary); margin-top: 20px; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; margin-bottom: 16px; }
.pending-info-card { background: var(--green-light); border-radius: 12px; padding: 20px; margin-top: 20px; }
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 0.85rem; color: var(--text-secondary); }
.form-check input { width: 18px; height: 18px; accent-color: var(--green); }

/* ── APP SHELL ────────────────────────────────────── */
#app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width);
  background: var(--green);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.sidebar-logo { display: flex; align-items: center; gap: 12px; padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 800; color: white; line-height: 1.2; }
.sidebar-portal-label { font-size: 0.68rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.org-badge { margin: 16px 16px 8px; background: rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 14px; }
.org-badge-name { font-weight: 700; font-size: 0.9rem; color: white; }
.org-badge-type { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: capitalize; margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; user-select: none; }
.nav-item:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-item.active { background: rgba(255,255,255,0.18); color: white; }
.nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-user { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; font-weight: 600; }
.btn-signout { width: 100%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.2); padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.btn-signout:hover { background: rgba(255,255,255,0.2); color: white; }
.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; padding: 32px; max-width: calc(100vw - var(--sidebar-width)); }
.mobile-topbar { display: none; }
.mobile-nav { display: none; }

/* ── VIEWS ────────────────────────────────────────── */
.view { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; gap: 16px; }
.page-title { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.page-subtitle { font-size: 0.9rem; color: var(--text-secondary); margin-top: 2px; }

/* ── CARDS ────────────────────────────────────────── */
.card { background: white; border-radius: var(--card-radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h3 { font-size: 1rem; font-weight: 700; }
.section-header { margin-bottom: 14px; }
.section-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* ── STATS ────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow); text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--green); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }

/* ── LAYOUT ───────────────────────────────────────── */
.two-col-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

/* ── TRIP CARDS ───────────────────────────────────── */
.trip-card { background: white; border-radius: 12px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; display: flex; gap: 14px; align-items: center; transition: transform 0.15s ease; }
.trip-card:hover { transform: translateX(3px); }
.trip-client-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: var(--green); flex-shrink: 0; overflow: hidden; }
.trip-client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.trip-info { flex: 1; min-width: 0; }
.trip-client-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.trip-route { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.trip-time { font-size: 0.78rem; font-weight: 700; color: var(--green); }

/* ── STATUS BADGES ────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize; }
.badge-pending   { background: #FEF3C7; color: #D97706; }
.badge-confirmed { background: #EFF6FF; color: #2563EB; }
.badge-en-route  { background: #F5F3FF; color: #7C3AED; }
.badge-in-transit{ background: #ECFDF5; color: #059669; }
.badge-completed { background: #F3F4F6; color: #4B5563; }
.badge-cancelled { background: #FEF2F2; color: #DC2626; }
.badge-tms       { background: #EFF6FF; color: #1D4ED8; }
.badge-acc       { background: #F0FDF4; color: #15803D; }
.badge-full      { background: #F9FAFB; color: #6B7280; }

/* ── FEED ─────────────────────────────────────────── */
.feed-list { background: white; border-radius: var(--card-radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 400px; overflow-y: auto; }
.feed-item { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.83rem; line-height: 1.4; }
.feed-item:last-child { border-bottom: none; }
.feed-empty { color: var(--text-secondary); text-align: center; padding: 20px 0; }
.feed-time { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }

/* ── EMPTY STATE ──────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; background: white; border-radius: var(--card-radius); box-shadow: var(--shadow); }
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.empty-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.empty-desc { font-size: 0.88rem; color: var(--text-secondary); }

/* ── BUTTONS ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; transition: all 0.15s ease; font-family: 'Plus Jakarta Sans', sans-serif; white-space: nowrap; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,92,50,0.35); }
.btn-outline { background: white; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-link { background: none; border: none; color: var(--green); font-size: 0.88rem; font-weight: 600; cursor: pointer; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
.btn-link:hover { text-decoration: underline; }

/* ── FORMS ────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.9rem; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-primary); background: white; transition: border-color 0.15s ease, box-shadow 0.15s ease; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,92,50,0.1); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }

/* ── WIZARD ───────────────────────────────────────── */
.wizard-progress { display: flex; align-items: center; margin-bottom: 28px; background: white; border-radius: var(--card-radius); padding: 20px 28px; box-shadow: var(--shadow); }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; opacity: 0.4; transition: opacity 0.2s ease; }
.wizard-step.active { opacity: 1; }
.wizard-step.done { opacity: 0.75; }
.wz-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--border); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; transition: all 0.2s ease; }
.wizard-step.active .wz-dot { background: var(--green); color: white; }
.wizard-step.done .wz-dot { background: var(--green-light); color: var(--green); }
.wizard-step span { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); }
.wizard-step.active span { color: var(--green); }
.wizard-connector { flex: 1; height: 2px; background: var(--border); margin: 0 8px; margin-bottom: 20px; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ── OPTION CARDS ─────────────────────────────────── */
.option-group { display: flex; flex-direction: column; gap: 10px; }
.option-card { border: 2px solid var(--border); border-radius: 12px; padding: 14px 18px; cursor: pointer; transition: all 0.15s ease; background: white; }
.option-card:hover { border-color: var(--green); background: var(--green-pale); }
.option-card.selected { border-color: var(--green); background: var(--green-light); }
.option-title { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); }
.option-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 3px; }

/* ── RESIDENT GRIDS ───────────────────────────────── */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.client-select-card { border: 2px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; text-align: center; transition: all 0.15s ease; background: white; }
.client-select-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.client-select-card.selected { border-color: var(--green); background: var(--green-light); }
.client-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green-light); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; color: var(--green); overflow: hidden; }
.client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-select-name { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.client-select-age { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.client-grid-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.client-full-card { background: white; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow); text-align: center; transition: all 0.2s ease; border: 2px solid transparent; }
.client-full-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--green-light); }
.client-full-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--green-light); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: var(--green); overflow: hidden; }
.client-full-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-full-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.client-full-meta { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.6; }
.client-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.selected-client-banner { background: var(--green-light); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--green); font-size: 0.9rem; }

/* ── PRICE ESTIMATE ───────────────────────────────── */
.price-estimate { background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-top: 20px; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.88rem; color: var(--text-secondary); }
.price-total { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.price-divider { height: 1px; background: var(--border); margin: 8px 0; }
.tms-row { color: #059669; font-weight: 700; }
.org-owes-row { color: var(--green); font-size: 0.95rem; font-weight: 800; }

/* ── SUMMARY ──────────────────────────────────────── */
.summary-list { display: flex; flex-direction: column; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-secondary); font-weight: 600; }
.summary-value { font-weight: 700; color: var(--text-primary); text-align: right; max-width: 55%; }
.confirm-intro { background: hsl(142,60%,96%); border: 1.5px solid hsl(142,50%,75%); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.9rem; color: hsl(142,50%,28%); font-weight: 600; text-align: center; }

/* ── SUCCESS ──────────────────────────────────────── */
.success-card { max-width: 480px; margin: 0 auto; text-align: center; }
.booking-ref { background: var(--green-light); border-radius: 10px; padding: 14px; font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--green); letter-spacing: 0.05em; text-align: center; }

/* ── TABLE ────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { text-align: left; padding: 12px 14px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--green-pale); }
.data-table tr:last-child td { border-bottom: none; }
.table-empty { text-align: center; padding: 40px; color: var(--text-secondary); }

/* ── BILLING ──────────────────────────────────────── */
.billing-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.billing-card { background: white; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow); }
.billing-card-label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.billing-card-value { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--text-primary); }
.billing-card-sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.billing-card-total { border-left: 4px solid var(--green); }
.billing-card-tms   { border-left: 4px solid #2563EB; }
.billing-card-org   { border-left: 4px solid var(--gold); }
.billing-card-total .billing-card-value { color: var(--green); }
.billing-card-tms .billing-card-value   { color: #2563EB; }
.billing-card-org .billing-card-value   { color: var(--gold); }
.billing-note { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; }

/* ── MODALS ───────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; animation: fadeIn 0.2s ease; }
.modal-box { background: white; border-radius: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.2); animation: slideUp 0.25s ease; }
.modal-large { max-width: 680px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: white; z-index: 1; }
.modal-header h3 { font-size: 1.1rem; font-weight: 800; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.modal-close:hover { background: var(--border); }
.modal-body { padding: 20px 24px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 24px 20px; border-top: 1px solid var(--border); }

/* ── PHOTO UPLOAD ─────────────────────────────────── */
.photo-upload-area { border: 2px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.15s ease; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.photo-upload-area:hover { border-color: var(--green); background: var(--green-pale); }

/* ── TOAST ────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { padding: 14px 20px; border-radius: 12px; color: white; font-size: 0.9rem; font-weight: 600; max-width: 340px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.toast-success { background: var(--green); }
.toast-error   { background: #DC2626; }
.toast-warning { background: #D97706; }
.toast-info    { background: #2563EB; }

/* ── RESPONSIVE ───────────────────────────────────── */

/* Large desktop (1400px+) — ultra-wide screens */
@media (min-width: 1400px) {
  :root { --sidebar-width: 280px; }
  .main-content { padding: 40px 48px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .billing-summary-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .two-col-layout { grid-template-columns: 1fr 400px; gap: 28px; }
  .client-grid-large { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .page-title { font-size: 2rem; }
}

/* Standard desktop content cap — prevents runaway content on 2K/4K monitors */
.main-content {
  max-width: 1400px;
  margin-left: var(--sidebar-width);
  margin-right: auto;
  box-sizing: border-box;
}

/* Desktop table improvements — horizontal scroll on overflow */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  background: white;
}
.table-wrap .data-table { margin: 0; }

/* Desktop wizard — side-by-side layout on wide screens */
@media (min-width: 1100px) {
  .wizard-desktop-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
  }
}

/* Medium desktop (1100px) */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-layout { grid-template-columns: 1fr; }
}

/* Tablet / small laptop (768px) */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
    padding: 16px 16px 80px;
  }
  .mobile-topbar {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--green);
    color: white;
    margin: -16px -16px 20px;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .mobile-brand { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; color: white; }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    border-top: 1.5px solid var(--border);
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }
  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s;
  }
  .mob-nav-item span:first-child { font-size: 1.2rem; }
  .mob-nav-item.active { color: var(--green); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .page-title { font-size: 1.4rem; }
  .wizard-step span { display: none; }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-card-wide { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 1.5rem; }
  .billing-summary-grid { grid-template-columns: 1fr 1fr; }
  .billing-card-value { font-size: 1.3rem; }
}

