@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #0B1D3A;
  --navy-ink: #16213E;
  --navy-light: #1E2E4A;
  --gold: #C9A227;
  --gold-light: #E8C468;
  --gold-soft: rgba(201, 162, 39, 0.12);
  --cream: #FAF8F5;
  --cream-card: #FFFFFF;
  --bg-soft: #F2F5F9;
  --muted: #5C6278;
  --muted-light: #8C92A4;
  --border: #E2DDD2;
  --border-subtle: #ECE7DC;
  
  --stock-ok: #2E7D32;
  --stock-ok-bg: rgba(46, 125, 50, 0.1);
  --stock-low: #B8860B;
  --stock-low-bg: rgba(184, 134, 11, 0.12);
  --stock-out: #C62828;
  --stock-out-bg: rgba(198, 40, 40, 0.09);
  
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 14px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 10px 28px rgba(11, 29, 58, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --serif: 'Lora', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--navy-ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.auth-pending {
  opacity: 0;
  pointer-events: none;
}
body {
  transition: opacity 0.15s ease-in-out;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }

/* ---------- Buttons ---------- */
button, .btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  line-height: 1.3;
}

button:active, .btn:active {
  transform: translateY(1px);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.25);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250, 248, 245, 0.45);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.btn-outline-dark {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--navy);
  background: var(--bg-soft);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn[disabled], button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Forms & Inputs ---------- */
input, select, textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy-ink);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

input::placeholder, textarea::placeholder {
  color: var(--muted-light);
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.field-help {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Checkbox and radio cards */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checkbox-card input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.checkbox-card:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.04);
}

/* ---------- Top bar (shared across all pages) ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.75rem;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.topbar .brand-icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.topbar nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.topbar nav a {
  color: rgba(250, 248, 245, 0.8);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}
.topbar nav a:hover {
  color: var(--gold-light);
}
.topbar nav a.active {
  color: var(--white);
  font-weight: 600;
}

.nav-badge {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ---------- Status Pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-ok { background: var(--stock-ok-bg); color: var(--stock-ok); }
.status-ok::before { background: var(--stock-ok); }
.status-low { background: var(--stock-low-bg); color: var(--stock-low); }
.status-low::before { background: var(--stock-low); }
.status-out { background: var(--stock-out-bg); color: var(--stock-out); }
.status-out::before { background: var(--stock-out); }

/* Feature tags / badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--navy);
  border: 1px solid var(--border-subtle);
}
.tag-24h { background: rgba(11, 29, 58, 0.08); color: var(--navy); }
.tag-delivery { background: rgba(46, 125, 50, 0.08); color: var(--stock-ok); }
.tag-blood { background: var(--gold-soft); color: var(--navy); font-weight: 700; }

/* ---------- Cards & Layout Containers ---------- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  flex: 1;
  width: 100%;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Directory Row (Search cards) ---------- */
.directory-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}
.directory-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.directory-row.ok { border-left-color: var(--stock-ok); }
.directory-row.low { border-left-color: var(--stock-low); }
.directory-row.out { border-left-color: var(--stock-out); opacity: 0.75; }

.directory-row .info { flex: 1; min-width: 0; }
.directory-row .title-row { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.directory-row .name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.directory-row .meta { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.directory-row .tag-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.45rem; }
.directory-row .actions-row { display: flex; gap: 0.75rem; margin-top: 0.75rem; align-items: center; }

.directory-row .distance-badge {
  text-align: right;
  flex-shrink: 0;
}
.directory-row .distance {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  white-space: nowrap;
}
.directory-row .dist-label {
  font-size: 0.75rem;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Switch Toggle ---------- */
.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  display: inline-block;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0;
  background: #CBD2DE;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch .track::before {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.switch input:checked + .track { background: var(--stock-ok); }
.switch input:checked + .track::before { transform: translateX(20px); }

/* ---------- Modal Dialog ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h2 {
  font-size: 1.25rem;
  color: var(--navy);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
}
.modal-close:hover {
  color: var(--navy);
  background: rgba(0, 0, 0, 0.05);
}
.modal-body {
  padding: 1.4rem 1.5rem;
}
.modal-foot {
  padding: 1rem 1.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Detail view item styles */
.detail-section {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.detail-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.detail-value {
  font-size: 0.95rem;
  color: var(--navy-ink);
  font-weight: 500;
}

/* ---------- Verification Badges ---------- */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--stock-ok);
  background: var(--stock-ok-bg);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(46, 125, 50, 0.25);
  letter-spacing: 0.01em;
}
.badge-verified svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

/* ---------- Form Grouping & Contact Fields ---------- */
.form-section-divider {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1.5rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.form-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.phone-input-wrap .prefix {
  position: absolute;
  left: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}
.phone-input-wrap input {
  padding-left: 3.25rem;
}

/* ---------- Email Verification Screen (Firebase Native) ---------- */
.verify-container {
  max-width: 520px;
  margin: 3rem auto 4rem;
  padding: 0 1.25rem;
  flex: 1;
  width: 100%;
}
.verify-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-md);
}
.verify-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.verify-icon-wrap svg {
  width: 32px;
  height: 32px;
}
.masked-email {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-soft);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
  word-break: break-all;
  border: 1px solid var(--border-subtle);
}
.verify-tip-box {
  background: #FDF9EE;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: #7A5C00;
  text-align: left;
  margin: 1rem 0 1.5rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  line-height: 1.45;
}
.verify-tip-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.verify-actions button {
  width: 100%;
}
.btn-resend {
  background: var(--bg-soft);
  color: var(--navy);
  border: 1px solid var(--border);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}
.btn-resend:hover:not(:disabled) {
  background: var(--white);
  border-color: var(--navy);
}
.btn-resend:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.verify-secondary-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--muted);
}
.verify-secondary-links a, .verify-secondary-links button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.verify-secondary-links a:hover, .verify-secondary-links button:hover {
  color: var(--navy);
}

.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}
.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--stock-ok-bg);
  color: var(--stock-ok);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================================================
   WHATSAPP OTP VERIFICATION STYLES
================================================== */
.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 211, 102, 0.12);
  color: #166534;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.whatsapp-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.otp-container {
  margin: 1.25rem 0 0.75rem;
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1rem 0;
}
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--navy);
  transition: all 0.15s ease;
  padding: 0;
  box-sizing: border-box;
}
.otp-input:focus {
  border-color: #25D366;
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.22);
}
.otp-input.error {
  border-color: var(--crimson);
  background: #FEF2F2;
}
.otp-timer {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.otp-timer strong {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.otp-timer.expired strong {
  color: var(--crimson);
}
@media (max-width: 420px) {
  .otp-inputs {
    gap: 0.35rem;
  }
  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* ==================================================
   GLOBAL FOOTER DESIGN SYSTEM
================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(250, 248, 245, 0.82);
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.3fr 1.8fr;
  gap: 2.5rem;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.footer-brand svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.72);
  margin-bottom: 1.25rem;
  max-width: 320px;
}
.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul li a {
  color: rgba(250, 248, 245, 0.75);
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}
.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
  color: var(--white);
  transform: translateX(2px);
  outline: none;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(250, 248, 245, 0.75);
}
.footer-contact-list svg {
  color: var(--gold);
  flex-shrink: 0;
}
.footer-contact-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
  outline: none;
}
.footer-contact-note {
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.55);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(250, 248, 245, 0.6);
  background: rgba(0, 0, 0, 0.15);
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom-inner p {
  margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 640px) {
  .topbar { padding: 0.85rem 1rem; }
  .topbar nav { gap: 0.85rem; font-size: 0.88rem; }
  .field-row { grid-template-columns: 1fr; }
  .container { padding: 1.5rem 1rem 2.5rem; }
  .directory-row { flex-direction: column; align-items: stretch; }
  .directory-row .distance-badge { text-align: left; margin-top: 0.5rem; }
  .modal-card { max-height: 95vh; }
  
  .verify-card { padding: 1.75rem 1.25rem; }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 2rem;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }
}