/* ============================================================================
   RouteService — Mobile-First Design System
   Breakpoints: 480px (xs), 640px (sm), 768px (md), 1024px (lg)
   ============================================================================ */

:root {
  --ink:         #0f1117;
  --ink-soft:    #4b5160;
  --ink-faint:   #8b93a6;
  --surface:     #ffffff;
  --surface-2:   #f6f7f9;
  --surface-3:   #eceef2;
  --accent:      #2563eb;
  --accent-hover:#1d4ed8;
  --accent-light:#dbeafe;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --font-display:'DM Serif Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.site-main { flex: 1; padding: 16px 0 48px; isolation: isolate; }
@media (min-width: 640px) { .site-main { padding: 32px 0 80px; } .site-nav { top: 64px; max-height: calc(100vh - 64px); } }

/* ── Header ──────────────────────────────────────────────────────────────────── */

.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-3);
  position: sticky; top: 0; z-index: 10000;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 8px;
}

@media (min-width: 640px) { .header-inner { height: 64px; } }

.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1rem; flex-shrink: 0;
}

.brand-icon { font-size: 1.2rem; color: var(--accent); }
@media (min-width: 640px) { .brand-icon { font-size: 1.4rem; } .brand { font-size: 1.1rem; gap: 10px; } }

/* Hamburger toggle */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm); flex-shrink: 0;
  -webkit-appearance: none; appearance: none;
  outline: none; -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) { .nav-toggle { display: none; } }

/* Nav drawer — mobile */
.site-nav {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  /* height auto — only as tall as content, not full screen */
  max-height: calc(100vh - 56px);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 8px 12px 20px;
  gap: 2px;
  overflow-y: auto;
  z-index: 9999;
  border-bottom: 1px solid var(--surface-3);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.site-nav.is-open { display: flex; }

@media (min-width: 768px) {
  .site-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0; gap: 6px;
    background: rgba(248,248,248,.97);
    border: none; overflow: visible; align-items: center;
  }
}

.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 12px 14px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  display: block;
}

.site-nav a:hover { color: var(--ink); background: var(--surface-2); }

@media (min-width: 768px) {
  .site-nav a {
    color: var(--ink);
    font-size: .88rem;
    font-weight: 500;
    padding: 7px 12px;
    letter-spacing: .01em;
  }
  .site-nav a:hover {
    color: var(--accent);
    background: var(--accent-light);
  }
}

@media (min-width: 768px) {
  .site-nav a { font-size: .88rem; padding: 6px 10px; }
}

/* Mobile nav divider */
.nav-divider {
  height: 1px; background: var(--surface-3);
  margin: 8px 0;
}

@media (min-width: 768px) { .nav-divider { display: none; } }

.nav-btn-ghost {
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 1rem; font-weight: 500;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-body); transition: color .15s, background .15s;
  text-align: left; width: 100%; display: block;
}

.nav-btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

@media (min-width: 768px) {
  .nav-btn-ghost {
    font-size: .88rem; padding: 7px 12px; width: auto;
    color: var(--ink); font-weight: 500;
    letter-spacing: .01em;
  }
  .nav-btn-ghost:hover { color: var(--accent); background: var(--accent-light); }
}

/* ── Buttons ──────────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 500; font-size: .95rem;
  border: none; cursor: pointer;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; white-space: nowrap;
  min-height: 44px; /* touch target */
}

.btn-primary:hover  { background: var(--accent-hover); }
.btn-primary:active { transform: scale(.97); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-primary.btn-full { width: 100%; }
.btn-full-mobile { width: 100%; }
@media (min-width: 480px) { .btn-full-mobile { width: auto; } }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--surface-3); background: transparent;
  color: var(--ink); padding: 12px 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: .95rem; cursor: pointer;
  transition: border-color .15s, background .15s;
  white-space: nowrap; touch-action: manipulation; min-height: 44px;
}

.btn-ghost:hover { border-color: var(--ink-faint); background: var(--surface-2); }
.btn-ghost.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }

.btn-sm {
  padding: 8px 14px; font-size: .82rem; background: var(--accent);
  color: #fff; border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font-body);
  touch-action: manipulation; min-height: 36px; white-space: nowrap;
}

.btn-sm:hover { background: var(--accent-hover); }

/* ── Forms ────────────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: .8rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em;
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 17px; /* prevent iOS zoom + larger for readability */
  font-weight: 500;
  color: var(--ink); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none; width: 100%;
  -webkit-appearance: none; appearance: none;
  min-height: 48px; /* touch target */
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b93a6' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}

.field-row { display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 640px) {
  .field-row { flex-direction: row; }
  .field-row > .field { flex: 1 1 0; min-width: 0; }
  .field-row-3 { flex-direction: row; }
}

.field-sm { flex: none !important; }
@media (min-width: 640px) { .field-sm { max-width: 130px; } }

.field-optional { font-weight: 400; color: var(--ink-faint); text-transform: none; letter-spacing: 0; font-size: .76rem; display: block; margin-top: 2px; }
.field-error { font-size: .8rem; color: var(--red); }
.field-inline { flex-direction: row; align-items: center; gap: 10px; }

.validation-summary {
  background: var(--red-light); border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: .9rem; color: var(--red);
}

.validation-summary ul { padding-left: 16px; margin-top: 4px; }

/* ── Alerts ───────────────────────────────────────────────────────────────────── */

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: .9rem;
}

.alert-success { background: var(--green-light); color: var(--green); }
.alert-warning  { background: var(--amber-light); color: var(--amber); }

/* ── Footer ───────────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--surface-3); padding: 20px 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .82rem; color: var(--ink-faint); text-align: center;
}

@media (min-width: 640px) {
  .site-footer .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── Auth Pages ───────────────────────────────────────────────────────────────── */

.auth-page {
  min-height: 80vh; display: flex;
  align-items: flex-start; justify-content: center;
  padding: 24px 0 40px;
}

@media (min-width: 640px) { .auth-page { align-items: center; padding: 40px 0; } }

.auth-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 20px;
  width: 100%; max-width: 460px;
}

@media (min-width: 480px) { .auth-card { padding: 36px 32px; border: 1px solid var(--surface-3); box-shadow: var(--shadow-lg); } }
@media (min-width: 640px) { .auth-card { padding: 48px 40px; } }

.auth-brand { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 20px; }

.auth-card h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 6px; }
@media (min-width: 480px) { .auth-card h1 { font-size: 2rem; } }

.auth-sub { color: var(--ink-soft); margin-bottom: 24px; font-size: .95rem; }

.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--surface-3);
  background: var(--surface); color: var(--ink);
  transition: border-color .15s, background .15s;
  min-height: 48px; touch-action: manipulation;
}

.btn-social:hover { border-color: var(--ink-faint); background: var(--surface-2); }
.btn-apple { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-apple:hover { background: #1f2937; }

.divider {
  text-align: center; position: relative;
  margin: 20px 0; color: var(--ink-faint); font-size: .82rem;
}

.divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--surface-3);
}

.divider span { position: relative; background: var(--surface); padding: 0 12px; }

.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .88rem; color: var(--ink-soft); }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ── Setup / Profile Form ─────────────────────────────────────────────────────── */

.setup-page { max-width: 760px; }

.page-header { margin-bottom: 24px; }
@media (min-width: 640px) { .page-header { margin-bottom: 36px; } }

.step-indicator { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }

.step-badge {
  font-size: .72rem; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; background: var(--surface-3); color: var(--ink-faint);
  white-space: nowrap;
}

.step-badge.active { background: var(--accent-light); color: var(--accent); }
.step-badge.done   { background: var(--green-light); color: var(--green); }
.step-sep { color: var(--ink-faint); font-size: .78rem; }

.page-header h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 6px; }
@media (min-width: 640px) { .page-header h1 { font-size: 2.2rem; } }
.page-header p { color: var(--ink-soft); font-size: .95rem; }

.setup-form { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .setup-form { gap: 28px; } }

.form-section {
  background: var(--surface); border: 1px solid var(--surface-3);
  border-radius: var(--radius); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 14px;
}

@media (min-width: 640px) { .form-section { padding: 24px 28px; gap: 16px; } }

.section-title {
  font-size: .95rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--surface-3);
}

.section-icon { font-size: 1rem; }
.section-note { font-size: .84rem; color: var(--ink-faint); }

.secure-badge {
  font-size: .72rem; font-weight: 500;
  background: var(--green-light); color: var(--green);
  padding: 3px 10px; border-radius: 20px; margin-left: auto;
}

/* ── Card Preview ─────────────────────────────────────────────────────────────── */

.card-preview {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #38bdf8 100%);
  border-radius: 14px; padding: 20px 22px; color: #fff;
  box-shadow: 0 8px 32px rgba(37,99,235,.35);
}

@media (min-width: 480px) { .card-preview { padding: 24px 28px; border-radius: 16px; } }

.card-preview-brand { font-size: .82rem; letter-spacing: .1em; opacity: .8; margin-bottom: 16px; }

.card-preview-number {
  font-size: 1.1rem; letter-spacing: .12em;
  font-family: 'Courier New', monospace; margin-bottom: 20px;
}

@media (min-width: 480px) { .card-preview-number { font-size: 1.3rem; letter-spacing: .15em; } }

.card-preview-bottom { display: flex; justify-content: space-between; font-size: .82rem; }
.card-preview-label { opacity: .7; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }

/* ── Schedule Page ────────────────────────────────────────────────────────────── */

.schedule-page { max-width: 1100px; }
.schedule-layout { display: flex; flex-direction: column; gap: 24px; }

@media (min-width: 900px) {
  .schedule-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
}

.schedule-form { display: flex; flex-direction: column; gap: 20px; }

/* ── Order Summary Sidebar ────────────────────────────────────────────────────── */

.order-summary {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 22px 20px;
  order: -1; /* show above form on mobile */
}

@media (min-width: 900px) {
  .order-summary { padding: 24px 22px; position: sticky; top: 84px; order: 0; }
}

.order-summary h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 16px; }

.summary-row {
  display: flex; justify-content: space-between;
  font-size: .88rem; padding: 7px 0; color: rgba(255,255,255,.75);
}

.summary-divider { height: 1px; background: rgba(255,255,255,.15); margin: 6px 0; }
.summary-total { font-size: 1.05rem; font-weight: 600; color: #fff; }

.summary-secure {
  font-size: .76rem; color: rgba(255,255,255,.45);
  text-align: center; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.summary-info { margin-top: 20px; }
.summary-info h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 10px; }
.summary-info ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.summary-info li { font-size: .84rem; color: rgba(255,255,255,.7); }

/* ── Saved Card ───────────────────────────────────────────────────────────────── */

.saved-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--accent-light); border-radius: var(--radius-sm);
  padding: 14px 16px;
}

@media (min-width: 480px) { .saved-card { flex-direction: row; align-items: center; justify-content: space-between; } }

.saved-card-info { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.switch-label { font-size: .84rem; color: var(--accent); cursor: pointer; white-space: nowrap; }

/* ── Confirmation Page ────────────────────────────────────────────────────────── */

.confirmation-page { max-width: 860px; }

.confirmation-hero { text-align: center; padding: 36px 0 28px; }

.check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.confirmation-hero h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 8px; }
.confirmation-hero p { color: var(--ink-soft); }

.confirmation-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

@media (min-width: 640px) {
  .confirmation-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.conf-card { border: 1px solid var(--surface-3); border-radius: var(--radius); overflow: hidden; }

.conf-card-header {
  padding: 11px 16px; font-weight: 600; font-size: .86rem;
  background: var(--surface-2);
}

.conf-card-header.pickup   { border-left: 3px solid var(--green); }
.conf-card-header.delivery { border-left: 3px solid var(--accent); }
.conf-card-header.payment  { border-left: 3px solid var(--amber); }

.conf-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }

.conf-detail { display: flex; flex-direction: column; gap: 2px; }
.conf-detail span { font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.conf-detail strong { font-size: .86rem; }
.conf-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--surface-3); }

.confirmation-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

@media (min-width: 480px) { .confirmation-actions { flex-direction: row; justify-content: center; align-items: center; } }

/* ── Order Dashboard ──────────────────────────────────────────────────────────── */

.dashboard-header {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px;
}

@media (min-width: 640px) {
  .dashboard-header { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 32px; }
}

.dashboard-header h1 { font-family: var(--font-display); font-size: 1.8rem; }
@media (min-width: 640px) { .dashboard-header h1 { font-size: 2rem; } }

.empty-state {
  text-align: center; padding: 48px 24px;
  background: var(--surface-2); border-radius: var(--radius);
}

.empty-icon { font-size: 2.5rem; margin-bottom: 16px; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 24px; font-size: .95rem; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }

.order-card {
  border: 1px solid var(--surface-3); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .15s;
}

.order-card:hover { box-shadow: var(--shadow); }

.order-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--surface-3);
}

.order-number { font-weight: 600; font-size: .86rem; }

.order-card-body {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
}

@media (min-width: 480px) {
  .order-card-body { flex-direction: row; align-items: center; gap: 12px; }
}

.order-leg { flex: 1; font-size: .95rem; font-weight: 500; }
.leg-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 3px; }
.order-arrow { color: var(--ink-faint); font-size: 1.1rem; display: none; }
@media (min-width: 480px) { .order-arrow { display: block; } }
.order-total { font-weight: 600; font-size: 1rem; }

.order-card-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: 8px 16px; border-top: 1px solid var(--surface-3);
  font-size: .76rem; color: var(--ink-faint); gap: 6px;
}

.tx-badge {
  background: var(--surface-2); padding: 2px 8px;
  border-radius: 4px; font-family: monospace; font-size: .72rem;
}

.form-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .form-actions { flex-direction: row; align-items: center; } }
.form-note { font-size: .8rem; color: var(--ink-faint); }

/* ── Status Badges ────────────────────────────────────────────────────────────── */

.order-status,
.status-badge {
  font-size: .72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}

.status-paymentprocessed { background: var(--green-light); color: var(--green); }
.status-confirmed        { background: var(--accent-light); color: var(--accent); }
.status-pending          { background: var(--surface-3); color: var(--ink-soft); }
.status-readytobill      { background: var(--amber-light); color: var(--amber); }
.status-paymentfailed    { background: var(--red-light); color: var(--red); }
.status-pickedup         { background: var(--amber-light); color: var(--amber); }
.status-intransit        { background: var(--amber-light); color: var(--amber); }
.status-delivered        { background: var(--surface-3); color: var(--ink-soft); }
.status-cancelled        { background: var(--red-light); color: var(--red); }
.status-refunded         { background: var(--surface-3); color: var(--ink-soft); }

/* ════════════════════════════════════════════════════════════════════════════════
   GUEST LANDING PAGE — clean, open, minimal navy
   ════════════════════════════════════════════════════════════════════════════ */

.guest-home { background: var(--surface); }

.guest-hero { padding: 40px 0 48px; }
@media (min-width: 768px) { .guest-hero { padding: 72px 0 80px; } }

.guest-hero-inner {
  display: flex; flex-direction: column; gap: 36px;
}

@media (min-width: 768px) {
  .guest-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
}

.guest-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: var(--accent);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 20px;
  margin-bottom: 16px;
}

.guest-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.guest-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.08; color: var(--ink); margin-bottom: 16px;
}

.guest-hero-text h1 em { font-style: italic; color: var(--accent); }

.guest-sub { font-size: 1rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 440px; }
@media (min-width: 640px) { .guest-sub { font-size: 1.05rem; } }

.guest-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
@media (min-width: 480px) { .guest-actions { flex-direction: row; } }

.guest-trust { font-size: .8rem; color: var(--ink-faint); }

.guest-hero-visual { display: flex; align-items: center; justify-content: center; }

.guest-card-stack { position: relative; width: 100%; max-width: 320px; margin: 0 auto; }

.guest-card {
  background: var(--ink); color: #fff;
  border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow-lg);
}

.guest-card-back {
  position: absolute; top: 12px; left: 12px; right: -12px;
  height: 100%; background: var(--accent-light);
  border-radius: 18px; z-index: 0;
}

.guest-card-front { position: relative; z-index: 1; }

.guest-card-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; gap: 12px;
}

.guest-card-label { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.guest-card-val   { font-size: .9rem; font-weight: 500; }
.guest-card-status { font-size: .85rem; color: #4ade80; font-weight: 500; }
.guest-card-divider { height: 1px; background: rgba(255,255,255,.1); }

.guest-steps { padding: 48px 0 40px; background: var(--surface-2); }
@media (min-width: 768px) { .guest-steps { padding: 80px 0; } }

.guest-steps-label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 32px;
}

.guest-steps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

@media (min-width: 768px) { .guest-steps-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.guest-step { }

.guest-step-num {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 10px; display: block;
}

.guest-step h3 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.guest-step p  { font-size: .85rem; color: var(--ink-soft); }

.guest-cta { padding: 48px 0; }
@media (min-width: 768px) { .guest-cta { padding: 80px 0; } }

.guest-cta-inner {
  text-align: center; max-width: 520px; margin: 0 auto;
}

.guest-cta-inner h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.guest-cta-inner p  { color: var(--ink-soft); margin-bottom: 28px; }

/* ════════════════════════════════════════════════════════════════════════════════
   CUSTOMER LANDING PAGE — warm, energetic, orange accent
   ════════════════════════════════════════════════════════════════════════════ */

.cust-home { --cust-accent: #ea580c; --cust-light: #fff7ed; --cust-mid: #fed7aa; }

.cust-hero {
  padding: 36px 0 44px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffffff 60%);
}

@media (min-width: 768px) { .cust-hero { padding: 64px 0 72px; } }

.cust-hero-inner {
  display: flex; flex-direction: column; gap: 32px;
}

@media (min-width: 768px) {
  .cust-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}

.cust-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cust-accent); margin-bottom: 12px;
}

.cust-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1; color: var(--ink); margin-bottom: 14px;
}

.cust-hero-text h1 em { font-style: italic; color: var(--cust-accent); }

.cust-sub { font-size: .98rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 400px; }

.cust-hero-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .cust-hero-actions { flex-direction: row; } }

/* Override btn colors for customer accent */
.cust-home .btn-primary { background: var(--cust-accent); }
.cust-home .btn-primary:hover { background: #c2410c; }

.cust-steps-card {
  background: var(--surface); border: 1px solid var(--surface-3);
  border-radius: 18px; padding: 22px 20px;
  box-shadow: var(--shadow-lg); max-width: 340px; margin: 0 auto; width: 100%;
}

.cust-step-item {
  display: flex; align-items: flex-start; gap: 14px;
  opacity: .45;
}

.cust-step-item.done, .cust-step-item.active { opacity: 1; }

.cust-step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; flex-shrink: 0;
}

.cust-step-item.done .cust-step-dot   { background: var(--green-light); color: var(--green); }
.cust-step-item.active .cust-step-dot { background: var(--cust-accent); color: #fff; }

.cust-step-dot.pulse { animation: dot-pulse 1.8s ease-in-out infinite; }

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234,88,12,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(234,88,12,0); }
}

.cust-step-title { font-size: .9rem; font-weight: 600; color: var(--ink); }
.cust-step-note  { font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }

.cust-step-connector {
  width: 2px; height: 20px; background: var(--surface-3);
  margin-left: 15px; border-radius: 2px;
}

.cust-features { padding: 40px 0; }
@media (min-width: 640px) { .cust-features { padding: 60px 0; } }

.cust-feature-grid {
  display: flex; flex-direction: column; gap: 14px;
}

@media (min-width: 640px) { .cust-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.cust-feature {
  background: var(--surface-2); border-radius: var(--radius);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 10px;
}

@media (min-width: 640px) { .cust-feature { align-items: flex-start; } }

.cust-feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.cust-feature h3 { font-size: .95rem; font-weight: 600; }
.cust-feature p  { font-size: .85rem; color: var(--ink-soft); }

/* ════════════════════════════════════════════════════════════════════════════════
   ADMIN LANDING PAGE — dark command center, slate/indigo
   ════════════════════════════════════════════════════════════════════════════ */

.admin-home {
  background: #f3f4f6;
  min-height: calc(100vh - 56px);
  color: #1f2937;
}

@media (min-width: 640px) { .admin-home { min-height: calc(100vh - 64px); } }

.admin-home-hero {
  padding: 48px 0 40px; text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) { .admin-home-hero { padding: 64px 0 48px; } }

.admin-home-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e5e7eb; color: #4b5563;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 20px;
  border: 1px solid #d1d5db; margin-bottom: 20px;
}

.admin-home-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #111827; line-height: 1.1; margin-bottom: 12px;
}

.admin-home-title span { color: #6b7280; font-style: italic; }

.admin-home-sub { font-size: .95rem; color: #6b7280; margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; }

.admin-home-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
@media (min-width: 480px) { .admin-home-actions { flex-direction: row; } }

.admin-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #374151; color: #fff;
  padding: 13px 26px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: background .15s;
  min-height: 44px; touch-action: manipulation;
}

.admin-btn-primary:hover { background: #1f2937; }

.admin-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #d1d5db; background: #fff;
  color: #374151; padding: 13px 26px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: .95rem; cursor: pointer;
  transition: border-color .15s, background .15s; min-height: 44px;
}

.admin-btn-outline:hover { border-color: #9ca3af; background: #f9fafb; color: #111827; }

.admin-home-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) { .admin-home-grid { grid-template-columns: repeat(4, 1fr); } }

.admin-tile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 20px; background: #f9fafb;
  text-decoration: none; color: #374151;
  transition: background .15s;
  position: relative; overflow: hidden;
}

@media (min-width: 640px) { .admin-tile { padding: 32px 28px; } }

.admin-tile:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.admin-tile-accent { background: #f0f0f0; }
.admin-tile-accent:hover { background: #fff; }
.admin-tile-accent .admin-tile-icon { color: #4b5563; }
.admin-tile-accent .admin-tile-label { color: #1f2937; }

.admin-tile-icon { font-size: 1.5rem; color: #9ca3af; margin-bottom: 4px; }
.admin-tile-label { font-size: .95rem; font-weight: 700; color: #111827; }
.admin-tile-desc { font-size: .8rem; color: #6b7280; line-height: 1.5; flex: 1; }
.admin-tile-arrow { font-size: .9rem; color: #9ca3af; margin-top: 8px; transition: transform .2s, color .15s; }

.admin-tile:hover .admin-tile-arrow { transform: translateX(4px); color: #374151; }

/* ════════════════════════════════════════════════════════════════════════════════
   ADMIN MANAGEMENT VIEWS
   ════════════════════════════════════════════════════════════════════════════ */

.admin-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px;
}

@media (min-width: 768px) { .admin-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; } }

.stat-card {
  background: var(--surface-2); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; border: 1px solid var(--surface-3);
}

@media (min-width: 640px) { .stat-card { padding: 22px; } }

.stat-card-alert  { border-color: #fbbf24; background: var(--amber-light); }
.stat-card-error  { border-color: #f87171; background: var(--red-light); }
.stat-card-success{ border-color: #4ade80; background: var(--green-light); }

.stat-number { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .stat-number { font-size: 2rem; } }
.stat-label  { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

/* Scrollable admin tables on mobile */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--surface-3); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 600px; }

.admin-table th {
  background: var(--ink); color: #fff; padding: 10px 12px;
  text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}

.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--surface-3); vertical-align: middle; font-size: .92rem; font-weight: 500; color: var(--ink); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-2); }
.admin-table tr.row-error td { background: var(--red-light); }

.admin-table code {
  font-size: .76rem; background: var(--surface-2);
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}

.batch-summary {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-2); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px; border: 1px solid var(--surface-3);
}

@media (min-width: 640px) { .batch-summary { flex-direction: row; align-items: center; gap: 24px; padding: 20px 24px; } }

.batch-stat { font-size: .9rem; color: var(--ink-soft); }
.batch-stat strong { color: var(--ink); font-size: 1.1rem; }
.batch-stat-error strong { color: var(--red); }

.batch-run-btn { margin-top: 4px; }
@media (min-width: 640px) { .batch-run-btn { margin-left: auto; margin-top: 0; } }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.filter-chip {
  padding: 5px 12px; border-radius: 20px; font-size: .8rem;
  background: var(--surface-2); color: var(--ink-soft);
  text-decoration: none; border: 1px solid var(--surface-3);
  transition: background .15s; white-space: nowrap;
}

.filter-chip:hover  { background: var(--surface-3); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Detail Grid ──────────────────────────────────────────────────────────────── */

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.detail-card { border: 1px solid var(--surface-3); border-radius: var(--radius); overflow: hidden; }

.detail-card-title {
  background: var(--surface-2); padding: 11px 16px;
  font-weight: 600; font-size: .86rem; border-bottom: 1px solid var(--surface-3);
}

.detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 16px; font-size: .84rem;
  border-bottom: 1px solid var(--surface-3); gap: 12px;
}

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

.detail-row span {
  color: var(--ink-faint); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; flex-shrink: 0;
}

.detail-row strong, .detail-row code { text-align: right; word-break: break-all; font-size: .92rem; font-weight: 600; }

/* ── Profile Edit ─────────────────────────────────────────────────────────────── */

.profile-edit-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--accent-light); border-radius: var(--radius-sm);
  padding: 14px 16px;
}

/* ── Misc ─────────────────────────────────────────────────────────────────────── */

.alert-info { background: var(--accent-light); color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════════
   GUEST LANDING — Service Highlights (replaces card-stack)
   ════════════════════════════════════════════════════════════════════════ */

.guest-hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .guest-hero-highlights { max-width: 420px; }
}

.guest-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}

.guest-highlight:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37,99,235,.08);
}

.guest-highlight-featured {
  border-color: var(--accent);
  background: var(--accent-light);
}

.guest-highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 10px;
}

.guest-highlight-featured .guest-highlight-icon {
  background: rgba(255,255,255,.7);
}

.guest-highlight-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.guest-highlight-desc {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.guest-highlight-badge {
  position: absolute;
  top: -1px; right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
}

.guest-trust {
  font-size: .8rem;
  color: var(--ink-faint);
  margin-top: 16px;
}

.guest-trust span {
  color: #f59e0b;
  letter-spacing: .05em;
}

/* ════════════════════════════════════════════════════════════════════════════
   CUSTOMER LANDING — Greeting + Tracking Card
   ════════════════════════════════════════════════════════════════════════ */

.cust-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: 24px;
  padding: 7px 16px;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.cust-greeting strong { color: var(--ink); }
.cust-wave { font-size: 1.1rem; }

.cust-hero { padding: 32px 0 40px; background: linear-gradient(160deg, #fff7ed 0%, #ffffff 55%); }
@media (min-width: 768px) { .cust-hero { padding: 56px 0 64px; } }

.cust-hero-inner {
  display: flex; flex-direction: column; gap: 32px;
}

@media (min-width: 768px) {
  .cust-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

.cust-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1; color: var(--ink); margin-bottom: 14px;
}

.cust-hero-text h1 em { font-style: italic; color: #ea580c; }

.cust-sub { font-size: .95rem; color: var(--ink-soft); margin-bottom: 26px; max-width: 400px; }

.cust-hero-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .cust-hero-actions { flex-direction: row; } }

.cust-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #ea580c; color: #fff;
  padding: 13px 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer;
  transition: background .15s, transform .1s;
  min-height: 48px; touch-action: manipulation;
  width: 100%;
}

@media (min-width: 480px) { .cust-btn-primary { width: auto; } }
.cust-btn-primary:hover  { background: #c2410c; }
.cust-btn-primary:active { transform: scale(.97); }
.cust-btn-icon { font-size: 1.1rem; font-weight: 700; }

.cust-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #fed7aa; background: rgba(255,255,255,.8);
  color: #9a3412; padding: 13px 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: .95rem; font-weight: 500;
  cursor: pointer; min-height: 48px; width: 100%;
  transition: border-color .15s, background .15s;
}

@media (min-width: 480px) { .cust-btn-outline { width: auto; } }
.cust-btn-outline:hover { border-color: #ea580c; background: #fff7ed; }

/* Tracking card */
.cust-track-card {
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
}

.cust-track-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}

.cust-track-label { font-size: .78rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }

.cust-track-live {
  display: flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; color: var(--green);
}

.cust-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

.cust-track-steps { display: flex; flex-direction: column; }

.cust-track-step {
  display: flex; align-items: center; gap: 12px;
}

.cust-track-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  background: var(--surface-3); color: var(--ink-faint);
  flex-shrink: 0; border: 2px solid var(--surface-3);
}

.cust-track-step.done .cust-track-dot {
  background: var(--green-light); color: var(--green);
  border-color: var(--green);
}

.cust-track-step.active .cust-track-dot {
  background: #fff7ed; color: #ea580c;
  border-color: #ea580c; font-size: 1rem;
}

.pulse-dot { animation: track-pulse 1.6s ease-in-out infinite; }

@keyframes track-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234,88,12,.3); }
  50%       { box-shadow: 0 0 0 7px rgba(234,88,12,0); }
}

.cust-track-info { flex: 1; }
.cust-track-name { font-size: .88rem; font-weight: 600; color: var(--ink); }
.cust-track-time { font-size: .76rem; color: var(--ink-faint); }

.cust-track-step.active .cust-track-name { color: #ea580c; }
.cust-track-step.active .cust-track-time { color: #ea580c; }

.cust-track-line {
  width: 2px; height: 20px; background: var(--surface-3);
  margin-left: 14px; border-radius: 2px;
}

.cust-track-line.done   { background: var(--green); }
.cust-track-line.active { background: linear-gradient(to bottom, var(--green), #ea580c); }

/* Features strip */
.cust-features { padding: 32px 0 40px; }
@media (min-width: 640px) { .cust-features { padding: 48px 0; } }

.cust-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

@media (min-width: 768px) { .cust-feature-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.cust-feature {
  background: var(--surface-2); border-radius: var(--radius);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--surface-3);
}

.cust-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.cust-feature h3 { font-size: .88rem; font-weight: 600; }
.cust-feature p  { font-size: .8rem; color: var(--ink-soft); }

/* ════════════════════════════════════════════════════════════════════════════
   LOGIN — Fixed Remember Me checkbox
   ════════════════════════════════════════════════════════════════════════ */

.remember-row {
  display: flex;
  align-items: center;
  margin: 4px 0 2px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: .9rem;
  color: var(--ink-soft);
}

.remember-check {
  width: 18px !important;
  height: 18px !important;
  min-height: unset !important;
  padding: 0 !important;
  border: 1.5px solid var(--surface-3) !important;
  border-radius: 4px !important;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.remember-text { line-height: 1; }

/* ════════════════════════════════════════════════════════════════════════════
   NAV BUTTONS — Get Started + New Order (correct colors)
   ════════════════════════════════════════════════════════════════════════ */

.nav-get-started {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff !important;
  padding: 9px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: .88rem;
  border: none; cursor: pointer;
  transition: background .15s;
  min-height: 40px; white-space: nowrap;
  /* Mobile: full width in nav drawer */
  width: 100%; margin-top: 8px; justify-content: center;
}

.nav-get-started:hover { background: var(--accent-hover) !important; color: #fff !important; }


.nav-greeting {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 30px;
  background: var(--surface-2); border: 1px solid var(--surface-3);
  white-space: nowrap; pointer-events: none;
}
.nav-greeting-icon { font-size: .82rem; }
[data-role="admin"]    .nav-greeting { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
[data-role="driver"]   .nav-greeting { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
[data-role="customer"] .nav-greeting { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
.nav-new-order {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ea580c; color: #fff !important;
  padding: 9px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: .88rem;
  border: none; cursor: pointer;
  transition: background .15s;
  min-height: 40px; white-space: nowrap;
  width: 100%; margin-top: 8px; justify-content: center;
}

.nav-new-order:hover { background: #c2410c !important; color: #fff !important; }

/* Desktop: shrink to auto width */
@media (min-width: 768px) {
  .nav-get-started,
  .nav-new-order {
    width: auto; margin-top: 0;
  }
}

/* Hamburger z-index handled in base rules above */

/* ════════════════════════════════════════════════════════════════════════════
   ORDER INDEX — Amount TBD styling
   ════════════════════════════════════════════════════════════════════════ */

.order-amount-pending {
  font-size: .82rem; font-weight: 600;
  color: var(--amber); background: var(--amber-light);
  padding: 3px 10px; border-radius: 20px;
  cursor: help;
}

.order-pending-note {
  font-size: .76rem; color: var(--ink-faint);
}

/* ════════════════════════════════════════════════════════════════════════════
   NEW ORDER — Info notice, simplified layout
   ════════════════════════════════════════════════════════════════════════ */

.schedule-form-wrap { max-width: 680px; margin: 0 auto; }

.order-info-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .9rem; color: var(--ink);
  margin-bottom: 4px;
}

.order-info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ════════════════════════════════════════════════════════════════════════════
   PROFILE EDIT — Change Password section
   ════════════════════════════════════════════════════════════════════════ */

.change-pwd-section {
  margin-top: 24px;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
}

.change-pwd-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 20px;
  flex-wrap: wrap;
}

.change-pwd-title {
  font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 3px;
}

.change-pwd-note {
  font-size: .82rem; color: var(--ink-faint);
}

/* ════════════════════════════════════════════════════════════════════════════
   GUEST HOW IT WORKS — Timeline redesign
   ════════════════════════════════════════════════════════════════════════ */

.guest-steps-header {
  text-align: center; margin-bottom: 40px;
}

.guest-steps-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink); margin-top: 8px;
}

.guest-steps-timeline {
  display: flex; flex-direction: column;
  max-width: 640px; margin: 0 auto;
  gap: 0;
}

.guest-step-item {
  display: flex; align-items: flex-start; gap: 20px;
}

.guest-step-bubble {
  position: relative; flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  border: 2px solid #bfdbfe;
}

.guest-step-bubble-2 { background: #fff7ed; border-color: #fed7aa; }
.guest-step-bubble-3 { background: #f0fdf4; border-color: #bbf7d0; }
.guest-step-bubble-4 { background: #fdf4ff; border-color: #e9d5ff; }

.guest-step-num-badge {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}

.guest-step-emoji { line-height: 1; }

.guest-step-content {
  padding: 10px 0 0;
  flex: 1;
}

.guest-step-content h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}

.guest-step-content p {
  font-size: .88rem; color: var(--ink-soft); line-height: 1.6;
}

.guest-step-connector-v {
  width: 2px; height: 28px;
  background: var(--surface-3);
  margin-left: 31px; border-radius: 2px;
}

@media (min-width: 640px) {
  .guest-step-item { gap: 28px; }
  .guest-step-bubble { width: 72px; height: 72px; border-radius: 20px; }
  .guest-step-connector-v { margin-left: 35px; height: 32px; }
  .guest-step-content h3 { font-size: 1.05rem; }
  .guest-step-content p  { font-size: .92rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   ORDER INDEX — Edit button (Pending only)
   ════════════════════════════════════════════════════════════════════════ */

.order-edit-btn {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 600;
  color: var(--accent); text-decoration: none;
  padding: 4px 12px; border-radius: 20px;
  border: 1.5px solid var(--accent-light);
  background: var(--accent-light);
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.order-edit-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════════════
   ORDER EDIT — Delete / Cancel section
   ════════════════════════════════════════════════════════════════════════ */

.order-delete-section {
  margin-top: 32px;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius);
  background: var(--red-light);
  overflow: hidden;
}

.order-delete-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 20px; flex-wrap: wrap;
}

.order-delete-title {
  font-size: .95rem; font-weight: 600;
  color: var(--red); margin-bottom: 3px;
}

.order-delete-note {
  font-size: .82rem; color: #991b1b;
}

.btn-delete {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .15s; min-height: 44px;
  white-space: nowrap; touch-action: manipulation;
}

.btn-delete:hover { background: #b91c1c; }

/* ── Form actions — equal height buttons ─────────────────────────────────────── */

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-actions .btn-primary,
.form-actions .btn-ghost {
  height: 52px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .form-actions { flex-direction: row; }
}

/* ════════════════════════════════════════════════════════════════════════════
   ORDER EDIT — Button row fixes
   ════════════════════════════════════════════════════════════════════════ */

/* Make form-actions on edit page stack properly on mobile */
.schedule-form .form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

@media (min-width: 480px) {
  .schedule-form .form-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Ensure ghost btn-lg has a visible border */
.schedule-form .form-actions .btn-ghost.btn-lg {
  border: 1.5px solid var(--surface-3);
  color: var(--ink-soft);
  min-width: 100px;
  justify-content: center;
}

.schedule-form .form-actions .btn-ghost.btn-lg:hover {
  border-color: var(--ink-faint);
  background: var(--surface-2);
  color: var(--ink);
}

/* Delete section — ensure always visible below the form */
.order-delete-section {
  margin-top: 40px !important;
  display: block !important;
}

/* Profile Edit — button row same style as Order Edit */
.setup-form .form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .setup-form .form-actions {
    flex-direction: row;
    align-items: center;
  }
}

.setup-form .form-actions .btn-ghost.btn-lg {
  border: 1.5px solid var(--surface-3);
  color: var(--ink-soft);
  min-width: 120px;
  justify-content: center;
}

.setup-form .form-actions .btn-ghost.btn-lg:hover {
  border-color: var(--ink-faint);
  background: var(--surface-2);
  color: var(--ink);
}

/* ════════════════════════════════════════════════════════════════════════════
   PROFILE EDIT — No card on file notice
   ════════════════════════════════════════════════════════════════════════ */

.no-card-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--amber-light);
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.no-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.no-card-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 4px;
}

.no-card-note {
  font-size: .82rem;
  color: #92400e;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   DUAL STATUS BADGES — Order Status + Payment Status
   ════════════════════════════════════════════════════════════════════════ */

/* Order Status */
.status-order-pending     { background: var(--surface-3); color: var(--ink-soft); }
.status-order-pickedup    { background: var(--amber-light); color: var(--amber); }
.status-order-downloaded  { background: var(--accent-light); color: var(--accent); }
.status-order-processing  { background: #fdf4ff; color: #9333ea; }
.status-order-intransit   { background: var(--amber-light); color: var(--amber); }
.status-order-delivered   { background: var(--green-light); color: var(--green); }
.status-order-done        { background: var(--surface-3); color: var(--ink-soft); }

/* Payment Status */
.status-pay-pending   { background: var(--surface-3); color: var(--ink-faint); }
.status-pay-processed { background: var(--green-light); color: var(--green); }
.status-pay-failed    { background: var(--red-light); color: var(--red); }
.status-pay-rejected  { background: var(--red-light); color: var(--red); }

/* ════════════════════════════════════════════════════════════════════════════
   DRIVER UI
   ════════════════════════════════════════════════════════════════════════ */

.driver-home { background: var(--surface); }

.driver-hero {
  padding: 56px 0;
  background: linear-gradient(160deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
}

.driver-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff; margin-bottom: 12px; margin-top: 16px;
}

.driver-sub { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: 1rem; }

.driver-order-card { border-left: 4px solid var(--accent); }

.driver-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--surface-3);
  background: var(--surface-2);
}

.driver-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  min-height: 42px; touch-action: manipulation; white-space: nowrap;
  transition: background .15s, transform .1s;
}

.driver-btn:active { transform: scale(.97); }

.driver-btn-pickup    { background: var(--accent); color: #fff; }
.driver-btn-pickup:hover { background: var(--accent-hover); }

.driver-btn-scan      { background: #9333ea; color: #fff; }
.driver-btn-scan:hover { background: #7c3aed; }

.driver-btn-delivered { background: var(--green); color: #fff; }
.driver-btn-delivered:hover { background: #15803d; }

.driver-btn-done      { background: var(--ink); color: #fff; }
.driver-btn-done:hover { background: #1f2937; }

.driver-btn-detail      { background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--surface-3); }
.driver-btn-detail:hover { background: var(--surface-3); }

.driver-btn-outline {
  background: transparent; color: var(--ink-soft);
  border: 1.5px solid var(--surface-3);
}

.driver-btn-outline:hover { background: var(--surface-3); }

/* Admin stats — 5-column grid */
@media (min-width: 768px) {
  .admin-stats { grid-template-columns: repeat(5, 1fr); }
}

/* ── Admin OrderDetail action buttons — uniform size ─────────────────────── */
.order-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.order-detail-actions form {
  display: flex;
}

.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 100px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
  touch-action: manipulation;
}

.od-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.od-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.od-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--surface-3);
}

.od-btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-faint); color: var(--ink); }

/* ── Order/Index — Delivery TBD ──────────────────────────────────────────── */
.delivery-tbd {
  font-size: .82rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ── Confirmation — 2-card centered layout ───────────────────────────────── */
.confirmation-cards-centered {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto 32px;
}

@media (min-width: 560px) {
  .confirmation-cards-centered {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ROLE-BASED THEMING
   Gray header/nav for Admin · Dark Green for Customer · Dark Blue for Driver
   ════════════════════════════════════════════════════════════════════════ */

/* ── ADMIN — Slate gray tone ─────────────────────────────────────────────── */

[data-role="admin"] .site-header {
  background: #f1f3f5;
  border-bottom: 1px solid #d0d5db;
}

[data-role="admin"] .brand-name { color: #374151; }
[data-role="admin"] .brand-icon { color: #6b7280; }

[data-role="admin"] .site-nav {
  background: #f1f3f5;
}

@media (min-width: 768px) {
  [data-role="admin"] .site-nav {
    background: #f1f3f5;
  }
}

[data-role="admin"] .site-nav a,
[data-role="admin"] .nav-btn-ghost {
  color: #374151;
}

[data-role="admin"] .site-nav a:hover,
[data-role="admin"] .nav-btn-ghost:hover {
  background: #e5e7eb;
  color: #111827;
}

[data-role="admin"] .site-footer {
  background: #f1f3f5;
  border-top-color: #d0d5db;
}

/* ── CUSTOMER — Dark Green ───────────────────────────────────────────────── */

[data-role="customer"] {
  --cust-theme:      #14532d;
  --cust-theme-mid:  #166534;
  --cust-theme-btn:  #16a34a;
  --cust-theme-btn-hover: #15803d;
  --cust-theme-light: #dcfce7;
}

[data-role="customer"] .site-header {
  background: #14532d;
  border-bottom: 1px solid #166534;
}

[data-role="customer"] .brand-name { color: #f0fdf4; }
[data-role="customer"] .brand-icon { color: #86efac; }

[data-role="customer"] .site-nav {
  background: #14532d;
  border-top-color: #166534;
  border-bottom-color: #166534;
}

@media (min-width: 768px) {
  [data-role="customer"] .site-nav {
    background: #14532d;
  }
}

[data-role="customer"] .site-nav a,
[data-role="customer"] .nav-btn-ghost {
  color: #bbf7d0;
}

[data-role="customer"] .site-nav a:hover,
[data-role="customer"] .nav-btn-ghost:hover {
  background: #166534;
  color: #f0fdf4;
}

[data-role="customer"] .nav-divider { background: #166534; }

[data-role="customer"] .nav-new-order {
  background: #16a34a;
  color: #fff !important;
}

[data-role="customer"] .nav-new-order:hover {
  background: #15803d !important;
}

[data-role="customer"] .nav-toggle span { background: #f0fdf4; }

[data-role="customer"] .site-footer {
  background: #14532d;
  border-top-color: #166534;
}

[data-role="customer"] .site-footer .container { color: #86efac; }

/* ── DRIVER — Dark Blue ──────────────────────────────────────────────────── */

[data-role="driver"] {
  --driver-theme:       #1e3a5f;
  --driver-theme-mid:   #1e40af;
  --driver-theme-light: #dbeafe;
}

[data-role="driver"] .site-header {
  background: #1e3a5f;
  border-bottom: 1px solid #1e40af;
}

[data-role="driver"] .brand-name { color: #eff6ff; }
[data-role="driver"] .brand-icon { color: #93c5fd; }

[data-role="driver"] .site-nav {
  background: #1e3a5f;
  border-top-color: #1e40af;
  border-bottom-color: #1e40af;
}

@media (min-width: 768px) {
  [data-role="driver"] .site-nav {
    background: #1e3a5f;
  }
}

[data-role="driver"] .site-nav a,
[data-role="driver"] .nav-btn-ghost {
  color: #bfdbfe;
}

[data-role="driver"] .site-nav a:hover,
[data-role="driver"] .nav-btn-ghost:hover {
  background: #1e40af;
  color: #eff6ff;
}

[data-role="driver"] .nav-divider { background: #1e40af; }

[data-role="driver"] .nav-toggle span { background: #eff6ff; }

[data-role="driver"] .site-footer {
  background: #1e3a5f;
  border-top-color: #1e40af;
}

[data-role="driver"] .site-footer .container { color: #93c5fd; }

/* ── GUEST — keep default white ──────────────────────────────────────────── */
[data-role="guest"] .site-header {
  background: rgba(255,255,255,.97);
}

/* ════════════════════════════════════════════════════════════════════════════
   ORDER CREATE — Visual Date + Time Slot Picker
   ════════════════════════════════════════════════════════════════════════ */

.picker-section { background: var(--surface); }

.picker-question {
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ── Date chips ───────────────────────────────────────────────────────────── */

.date-picker-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.date-picker-row::-webkit-scrollbar { display: none; }

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 14px 10px;
  border: 1.5px solid var(--surface-3);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: var(--font-body);
  flex-shrink: 0;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.date-chip:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.date-chip.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.date-chip-day {
  font-size: .82rem;
  font-weight: 600;
  text-transform: capitalize;
  color: inherit;
}

.date-chip-num {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
}

.date-chip-month {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: inherit;
  opacity: .85;
}

.date-chip-sub {
  font-size: .68rem;
  color: inherit;
  opacity: .7;
  margin-top: 2px;
}

.date-chip.active .date-chip-day,
.date-chip.active .date-chip-num,
.date-chip.active .date-chip-month,
.date-chip.active .date-chip-sub { color: #fff; opacity: 1; }

/* Next arrow */
.date-chip-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  align-self: center;
  border: 1.5px solid var(--surface-3);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-body);
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}

.date-chip-nav:hover {
  background: var(--surface-2);
  border-color: var(--ink-faint);
  color: var(--ink);
}

/* ── Time slot chips ─────────────────────────────────────────────────────── */

.time-slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.time-chip {
  padding: 10px 18px;
  border: 1.5px solid var(--surface-3);
  border-radius: 30px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.time-chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.time-chip.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* Anytime — full width, dashed border to signal flexibility */
.time-chip-anytime {
  width: 100%;
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .01em;
}
.time-chip-anytime:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
}
.time-chip-anytime.active {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@media (min-width: 640px) {
  .date-chip { min-width: 80px; padding: 16px 12px; }
  .time-chip { font-size: .92rem; padding: 11px 22px; }
}


/* ── All inline inputs (e.g. Admin CustomerDetail editable fields) ────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  font-size: 16px;   /* iOS safe minimum */
  font-weight: 500;
}

/* ── Stat card numbers ───────────────────────────────────────────────────── */
.stat-number { font-size: 1.8rem; }

/* ── Order number badge ──────────────────────────────────────────────────── */
.order-number { font-size: .92rem; font-weight: 700; }

/* Remove any visible placeholder styling */
::placeholder { color: transparent; }
::-webkit-input-placeholder { color: transparent; }
::-moz-placeholder { color: transparent; opacity: 0; }
:-ms-input-placeholder { color: transparent; }

/* ── Admin Customers filter bar ──────────────────────────────────────────── */
.customers-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  align-items: center;
}

.customers-filter-labels {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.customers-filter-labels span {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

@media (max-width: 640px) {
  .customers-filter-labels { display: none; }
  .customers-filter-bar > * { flex: 1 1 calc(50% - 8px); min-width: 0; }
}

/* ── Status override — backward button warning style ─────────────────────── */
.btn-sm-warn {
  background: var(--amber) !important;
}
.btn-sm-warn:hover { background: #b45309 !important; }
