:root {
  --green: #4CC94F;
  --green-hover: #3DD15A;
  --green-deep: #22A73A;
  --green-dark: #1E9634;
  --on-green: #0A6B1E;
  --mint: #EAFBEA;
  --mint-deep: #CFF5D2;
  --green-soft: #F3FDF3;
  --ink: #16241A;
  --muted: #5A6B5E;
  --line: #E3EBE5;
  --bg: #ffffff;
  --page: #F3F6F4;
  --shadow: 0 8px 28px rgba(22, 36, 26, 0.08);
  --radius: 18px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: var(--green); }
.demo-badge {
  display: inline-flex; align-items: center;
  background: #fff3c4; color: #6a5410;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; border-radius: 999px;
  padding: .85rem 1.25rem; min-height: 48px;
  color: #fff; background: var(--green-deep);
}
.btn:hover, .btn:focus-visible { background: var(--green-dark); }
.btn.full { width: 100%; }
.btn.ghost {
  background: transparent; color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}
.btn.ghost:hover { background: var(--green-soft); }
.logo-img { height: auto; }
.hide { display: none !important; }

/* Hide Netlify’s injected badge so the app UI matches the mockups */
#nl-badge-frame, iframe#nl-badge-frame { display: none !important; visibility: hidden !important; pointer-events: none !important; }


/* Author display rules must not override the hidden attribute (iOS/Safari included). */
[hidden] { display: none !important; }

/* Auth forms used by the customer, restaurant, driver, and owner apps */
.auth-box, .h5-login { background: #fff; border: 1px solid #e6eee6; border-radius: 16px; padding: 1rem 1.1rem; margin: 0.6rem 0 1rem; }
.auth-box h3, .h5-login h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.auth-box label, .h5-login label { display: block; font-size: .85rem; font-weight: 600; margin: .5rem 0 .25rem; }
.auth-box input, .h5-login input { width: 100%; box-sizing: border-box; border: 1px solid #d5ddd5; border-radius: 10px; padding: .55rem .7rem; font: inherit; }
.auth-box .row, .h5-login .row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.auth-box .hint, .h5-login .hint, .auth-error { color: #8a3a2a; font-size: .85rem; margin: .4rem 0 0; }
.auth-hint { color: #4a5a4a; font-size: .8rem; margin: .35rem 0 0; }
.auth-overlay { position: fixed; inset: 0; background: #f4f7f4; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-overlay[hidden] { display: none !important; }
.auth-card { background: #fff; border-radius: 20px; padding: 1.6rem 1.5rem; max-width: 420px; width: 100%; box-shadow: 0 16px 40px rgba(20,40,20,.08); }
.auth-card h1 { margin: 0 0 .35rem; font-size: 1.4rem; }
.auth-card .sub { color: #4a5a4a; margin: 0 0 1rem; }

/* English / Español dropdown (top of every screen) */
.h5-lang-wrap { display: inline-flex; align-items: center; margin-left: 6px; }
.h5-lang { appearance: auto; font: 700 12px/1.2 Inter, system-ui, sans-serif; padding: 6px 8px; border-radius: 10px; border: 1px solid #d7dde5; background: #fff; color: #111; max-width: 112px; }
.h5-lang-floating { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 10px; z-index: 9999; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
