/* Joey's Pizza — «Verde Noche» fresh-look layer (Nov 20 2026).
   Owner order: «Give everything an update. New cool look».
   This sheet is PURE PRESENTATION: it loads LAST in <head> (after
   the app sheet, the home-redesign sheet and the inlined critical
   styles) and only re-skins — new token values plus component
   polish. No layout geometry changes (no sizes, no positions, no
   z-index), no markup or script changes: every screen, sheet,
   picker, price and flow behaves exactly as before, in ES and EN,
   in light and dark mode. The brand stays LIME (owner rule) —
   what changes is everything around it: a cooler fresh-sage paper,
   deeper green-black ink, rounder corners, layered shadows and a
   dark «night» chrome (topbar + bottom nav) in BOTH modes, so the
   lime pops like a lit sign on the truck at night. */

/* ---------- Tokens: light ---------- */
:root {
  --lime: #84cc16;
  --lime-bright: #a3e635;
  --lime-deep: #55830c;
  --lime-ink: #22330a;
  --paper: #f2f4e9;
  --card: #ffffff;
  --ink: #1d2611;
  --ink-soft: #5f6a49;
  --line: #dde3c6;
  --tomato: #cf3a1c;
  --tomato-soft: #fdeee9;
  --shadow: 0 14px 34px #22330a24, 0 2px 8px #22330a14;
  --radius: 22px;
}

/* ---------- Tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --lime: #a3e635;
    --lime-bright: #c8f169;
    --lime-deep: #a3e635;
    --lime-ink: #131c07;
    --paper: #0e1208;
    --card: #1e2913;
    --ink: #f0f3e0;
    --ink-soft: #b3bc9c;
    --line: #3a4a22;
    --tomato: #ff7a59;
    --tomato-soft: #3a1d12;
    --shadow: 0 14px 34px #00000080, 0 2px 8px #00000059;
  }
}

/* ---------- Page wash: a faint lime glow at the top, like the
   truck's sign light spilling over the menu ---------- */
body {
  background-image: radial-gradient(120% 340px at 50% -60px, #84cc1626, #84cc1600 70%);
  background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
  body {
    background-image: radial-gradient(120% 340px at 50% -60px, #a3e6351f, #a3e63500 70%);
  }
}

::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 2px; }

/* ---------- Topbar: deep night-green gradient, lime hairline ---------- */
header.topbar {
  background: linear-gradient(120deg, #2e4d0e 0%, #1c2b05 55%, #131e04 100%);
  box-shadow: 0 10px 28px #131e0452, inset 0 -2px 0 var(--lime);
}
.brand h1 { letter-spacing: -0.01em; }
.status-pill { border: 1.5px solid #f4ffd640; }

/* Lime gradient on the topbar's own action pills */
.call-pill,
.icon-btn {
  background: linear-gradient(160deg, var(--lime-bright), var(--lime) 70%);
  box-shadow: 0 5px 14px #84cc1652, inset 0 1px 0 #ffffff70;
}

/* ---------- Primary buttons: lit-lime gradient + soft glow ---------- */
.add-btn {
  background: linear-gradient(165deg, var(--lime-bright), var(--lime) 72%);
  border-radius: 14px;
  box-shadow: 0 7px 18px #65a30d47, inset 0 1px 0 #ffffff66;
}
.add-btn.ghost {
  background: transparent;
  box-shadow: none;
}
.wa-btn {
  background: linear-gradient(165deg, #25c266, #1faa55 72%);
  box-shadow: 0 7px 18px #1faa5540, inset 0 1px 0 #ffffff59;
}

/* ---------- Cards: rounder, lifted, gentle press ---------- */
.card {
  box-shadow: 0 3px 14px #22330a12, 0 14px 30px -18px #22330a30;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #22330a17, 0 22px 38px -18px #22330a38;
  }
}
.history-card,
.confirm-card { box-shadow: var(--shadow); }
.confirm-card { border-radius: 28px; }
.td-hero { border-radius: 20px; }

/* ---------- Section titles: Archivo Black with a lime swipe ---------- */
.sec-head h2 {
  font-family: "Archivo Black", Archivo, sans-serif;
  letter-spacing: -0.01em;
  background-image: linear-gradient(180deg, transparent 64%, #84cc1666 64%, #84cc1666 92%, transparent 92%);
  background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) {
  .sec-head h2 {
    background-image: linear-gradient(180deg, transparent 64%, #a3e63547 64%, #a3e63547 92%, transparent 92%);
  }
}

/* ---------- Category chips: the active one lights up lime ---------- */
.cat-chip { box-shadow: 0 2px 9px #22330a14; }
.cat-chip[aria-pressed="true"] {
  background: linear-gradient(150deg, var(--lime-bright), var(--lime) 75%);
  color: var(--lime-ink);
  border-color: var(--lime-deep);
  box-shadow: 0 6px 16px #65a30d40;
}

/* ---------- Search + results ---------- */
.nd-search { background: var(--paper); }
.nd-search-box {
  background: var(--card);
  box-shadow: 0 10px 26px #22330a21, inset 0 1px 0 #ffffff80;
}
.nd-results { border-radius: 20px; box-shadow: 0 24px 54px #131e0440; }
.catnav { background: var(--paper); }

/* ---------- Promo carousel cards ---------- */
.nd-card { border-radius: 26px; box-shadow: 0 16px 34px -14px #131e0466; }
.nd-card-tag { box-shadow: 0 3px 10px #131e0459; }

/* ---------- Hero ---------- */
.hero { border-radius: 28px; box-shadow: var(--shadow); }
.hero-chip { box-shadow: 0 3px 10px #131e0433; }

/* ---------- Bottom nav: dark night bar in BOTH modes, with a lit
   lime marker over the active tab ---------- */
.nd-bottomnav {
  background: #121b06f5;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1.5px solid #a3e63540;
  box-shadow: 0 -10px 30px #131e0426;
}
.nd-nav-btn { position: relative; color: #9aa78c; }
.nd-nav-btn.on { color: #e7ffb0; }
.nd-nav-btn.on svg { color: var(--lime-bright); }
.nd-nav-btn.on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 28px;
  height: 3.5px;
  margin-left: -14px;
  border-radius: 0 0 5px 5px;
  background: var(--lime-bright);
  box-shadow: 0 2px 10px #a3e635b3;
}

/* ---------- Sheets: taller dome, night close button ---------- */
.sheet { border-radius: 30px 30px 0 0; box-shadow: 0 -18px 50px #131e044d; }
.sheet-close {
  background: var(--lime-ink);
  color: var(--lime-bright);
  border-color: transparent;
  box-shadow: 0 4px 12px #131e0433;
}
@media (prefers-color-scheme: dark) {
  .sheet-close { background: var(--lime); color: var(--lime-ink); }
}

/* ---------- Loyalty card: deep-green gradient, lit stamps ---------- */
.loyalty {
  background:
    radial-gradient(90% 130% at 88% -10%, #a3e63538, #a3e63500 55%),
    linear-gradient(150deg, #2e4d0e, var(--lime-ink) 58%, #0d1503);
  border: 1px solid #a3e63545;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.stamp.filled { box-shadow: 0 0 0 4px #a3e63530, 0 4px 14px #a3e63540; }
.loyalty .reward { box-shadow: 0 6px 18px #a3e63547; }

/* ---------- Motion: keep it calm for reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:active, .card:hover { transform: none; }
}
