/* ============================================================
   Scoop — "Belle full on the go"
   Palette pulled from the logo: chili red #E22028, wordmark
   near-black #14110F. Warm paper background to feel like a
   Lagos lunch spot, not a tech dashboard. The signature is the
   "scoop wave" — the curve from the logo reused as a divider.
   ============================================================ */

:root {
  --red: #e22028;
  --red-deep: #b3171d;
  --ink: #14110f;
  --ink-soft: #4a423d;
  --paper: #fbf6ee;
  --paper-2: #f3ead9;
  --cream-line: #e7dcc8;
  --gold: #f0a526;
  --white: #ffffff;
  --green: #1f9d57;

  /* Aliases so the guest/subscriber templates share the same brand colors as
     the rest of the site instead of an undefined custom property. */
  --accent: var(--red);
  --accent-rgb: 226, 32, 40;
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --text-dark: var(--ink);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(20, 17, 15, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 17, 15, 0.14);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 84px 0; }
.muted { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .78rem; color: var(--red); margin-bottom: .6rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(226,32,40,.28); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,238,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--red); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.logout-form { display: inline; }
.logout-form button { background: none; border: 0; color: var(--ink); font-weight: 600; cursor: pointer; font-family: var(--font-body); font-size:.95rem; }
.logout-form button:hover { color: var(--red); }

/* ---- Hero with slider ---- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; padding: 72px 0 96px; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: 1.2rem; max-width: 34ch; color: var(--ink-soft); margin: 1rem 0 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.4rem; }
.hero-stats b { font-family: var(--font-display); font-size: 1.7rem; display: block; }
.hero-stats span { font-size: .85rem; color: var(--ink-soft); }

/* slider */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--paper-2); }
.slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.6,.01,.1,1); }
.slide { min-width: 100%; height: 100%; position: relative; display: grid; place-items: end start; color: #fff; padding: 1.6rem; background-color: var(--ink); background-size: cover; background-position: center; background-repeat: no-repeat; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,17,15,.78)); }
.slide-label { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; max-width: 16ch; }
.slider-dots { position: absolute; bottom: 14px; right: 16px; z-index: 3; display: flex; gap: .4rem; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.slider-dots button.active { background: #fff; width: 22px; border-radius: 5px; }

/* ---- Scoop wave divider (the signature) ---- */
.wave { display: block; width: 100%; height: 40px; color: var(--red); }
.wave path { fill: none; stroke: currentColor; stroke-width: 8; stroke-linecap: round; }

/* ---- Sections / cards ---- */
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card .ic { font-size: 1.8rem; }
.card h3 { margin-top: .6rem; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.menu-item { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); overflow: hidden; }
.menu-item .ph { height: 130px; background-size: cover; background-position: center; }
.menu-item .body { padding: .9rem 1.1rem; font-family: var(--font-display); font-weight: 700; }

/* ---- Video band ---- */
.video-band { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.video-card { aspect-ratio: 16/9; border-radius: var(--radius); background: linear-gradient(135deg,#2a211b,#14110f); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.play { width: 78px; height: 78px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color:#fff; font-size: 1.6rem; }

/* ---- FAQ accordion ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .ans { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #d8cfc6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #d8cfc6; }
.site-footer a:hover { color: var(--red); text-decoration: none; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.socials { display: flex; gap: .7rem; margin-top: .6rem; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--red); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---- Auth & forms ---- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 48px 0; }
.auth-card { width: min(440px, 100%); background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--cream-line); border-radius: 10px;
  font: inherit; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

/* Password fields with a show/hide toggle: icon sits inside the input on the
   right, vertically centered, instead of floating in the label row. */
.password-field { position: relative; }
.password-field input { padding-right: 2.6rem; }
.password-field .toggle-password-btn,
.password-field .password-toggle {
  position: absolute; top: 50%; right: .7rem; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 0; line-height: 1;
  font-size: 1.05rem; color: var(--ink-soft);
}
.password-field .toggle-password-btn:hover,
.password-field .password-toggle:hover { color: var(--ink); }
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }
.alert-error { background: #fdecec; color: var(--red-deep); border: 1px solid #f6c9cb; }
.alert-info { background: #eef7f1; color: #0c6b39; border: 1px solid #c7e7d3; }
.choice { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border: 1.5px solid var(--cream-line); border-radius: 10px; margin-bottom: .6rem; cursor: pointer; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--red); background: #fdecec; }
.choice input { margin-top: .25rem; }

/* ---- Dashboard / app ---- */
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.order-list { display: grid; gap: 1rem; }
.order-row { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-row .meta { font-size: .88rem; color: var(--ink-soft); }
.badge { font-family: var(--font-display); font-weight: 700; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge-received { background:#eef1f5; color:#475569; }
.badge-processing { background:#fff3e0; color:#b45309; }
.badge-loading { background:#e8f0fe; color:#1d4ed8; }
.badge-ready { background:#e7f7ee; color:#0c6b39; }
.badge-completed { background:#eef1f5; color:#334155; }
.badge-cancelled { background:#fdecec; color:#b3171d; }
.notif { background: var(--red); color:#fff; border-radius: 999px; font-size:.72rem; padding: .1rem .5rem; font-weight:700; }
.badge-new {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.4rem;
  display: inline-block;
  vertical-align: middle;
  animation: newPulse 1.5s infinite;
}
@keyframes newPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 8px rgba(226,32,40,0.5); }
  100% { transform: scale(1); }
}
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); background: var(--white); border: 1px dashed var(--cream-line); border-radius: var(--radius); }

.panel { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: .5rem 1rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; }

/* chat */
.chat { display: grid; gap: .7rem; margin: 1rem 0; max-height: 420px; overflow-y: auto; padding: .4rem; }
.bubble { max-width: 78%; padding: .7rem 1rem; border-radius: 16px; }
.bubble small { display:block; font-size:.72rem; opacity:.7; margin-top:.3rem; }
.bubble.user { background: var(--red); color:#fff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble.admin { background: var(--paper-2); color: var(--ink); justify-self: start; border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: .6rem; }
.chat-form input { flex: 1; padding: .7rem 1rem; border: 1.5px solid var(--cream-line); border-radius: 999px; font: inherit; }

/* admin table */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.stat { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1rem; text-align:center; }
.stat b { font-family: var(--font-display); font-size: 1.8rem; display:block; }
.stat span { font-size:.8rem; color: var(--ink-soft); }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cream-line); }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--cream-line); font-size: .9rem; }
.table th { background: var(--paper-2); font-family: var(--font-display); }
.table tr:hover td { background: #fffdf8; }
.filters { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem; }
.filters a { padding:.35rem .85rem; border-radius:999px; border:1px solid var(--cream-line); color:var(--ink); font-size:.85rem; font-weight:600; }
.filters a.active { background: var(--ink); color:#fff; border-color: var(--ink); }

/* contact map */
.map-embed { width:100%; height: 360px; border:0; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap:2rem; align-items:start; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .hero-grid, .video-band, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 1rem 6%; gap: 1rem; border-bottom: 1px solid var(--cream-line); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .kv { grid-template-columns: 1fr; }
  .table { display:block; overflow-x:auto; }
}

/* ===== v2: priced menu, add-ons, payment, real-time ===== */

/* Payment status badges */
.badge-pending { background:#fff3e0; color:#b45309; }
.badge-confirmed { background:#e7f7ee; color:#0c6b39; }

/* Landing menu cards */
.menu-item .body { padding: 1rem 1.1rem 1.2rem; }
.menu-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.menu-desc { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .9rem; margin-top: .35rem; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .9rem; }
.price { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 1.05rem; }

/* Meal picker (order form) */
.meal-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .7rem; }
.meal-option { display: flex; align-items: center; gap: .7rem; border: 1.5px solid var(--cream-line); border-radius: 12px; padding: .55rem .7rem; cursor: pointer; background: var(--paper); }
.meal-option:has(input:checked) { border-color: var(--red); background: #fdecec; }
.meal-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.meal-thumb { width: 52px; height: 52px; border-radius: 9px; background: var(--paper-2) center/cover no-repeat; flex: 0 0 auto; }
.meal-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.meal-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.1; }
.meal-info .price { font-size: .9rem; }

/* Add-ons */
.addons { display: grid; gap: .5rem; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--cream-line); border-radius: 10px; padding: .6rem .9rem; background: var(--paper); }
.addon-qty { width: 76px; padding: .45rem .6rem; border: 1.5px solid var(--cream-line); border-radius: 8px; font: inherit; text-align: center; }

/* Payment box */
.pay-box { background: var(--paper-2); border: 1px dashed var(--red); border-radius: 12px; padding: 1rem 1.1rem; }
.pay-box .kv { grid-template-columns: 150px 1fr; gap: .3rem 1rem; }

/* Order total bar */
.order-total { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); border-radius: 12px; padding: .9rem 1.2rem; margin: 0 0 1rem; }
.order-total span { font-weight: 600; }
.order-total strong { font-family: var(--font-display); font-size: 1.4rem; }

/* Bill / summary table */
.bill { width: 100%; border-collapse: collapse; }
.bill td { padding: .45rem 0; border-bottom: 1px dashed var(--cream-line); font-size: .95rem; }
.bill td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.bill .bill-total td { border-bottom: 0; border-top: 2px solid var(--ink); font-family: var(--font-display); font-size: 1.1rem; padding-top: .7rem; }

/* Admin menu management */
.menu-admin { display: grid; gap: .7rem; }
.menu-admin-row { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: .8rem 1rem; }
.menu-admin .ph.sm { width: 64px; height: 64px; border-radius: 10px; background: var(--paper-2) center/cover no-repeat; }
.menu-admin-info strong { font-family: var(--font-display); }
.menu-admin-info .muted { font-size: .88rem; }
.menu-admin-info .price { font-size: .95rem; margin-top: .2rem; }
.menu-admin-actions { display: flex; gap: .4rem; }
.menu-admin-actions form { margin: 0; }

@media (max-width: 680px) {
  .menu-admin-row { grid-template-columns: 56px 1fr; row-gap: .5rem; }
  .menu-admin-state, .menu-admin-actions { grid-column: 2; }
  .meal-pick { grid-template-columns: 1fr; }
}

/* ===== v2.1: professional admin dashboard, menu edit, live bits ===== */

/* Admin header */
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin-top-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.live-note { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; margin: .3rem 0 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31,157,87,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,87,.5); } 70% { box-shadow: 0 0 0 7px rgba(31,157,87,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,87,0); } }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.kpi { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink-soft); }
.kpi.kpi-accent::before { background: var(--red); }
.kpi.kpi-warn::before { background: var(--gold); }
.kpi.kpi-good::before { background: var(--green); }
.kpi-label { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; display: block; margin-top: .25rem; letter-spacing: -.02em; }

/* Filter pills with counts */
.filters a { display: inline-flex; align-items: center; gap: .4rem; }
.pill-count { background: var(--paper-2); color: var(--ink-soft); border-radius: 999px; font-size: .72rem; padding: .02rem .42rem; font-weight: 700; }
.filters a.active .pill-count { background: rgba(255,255,255,.22); color: #fff; }

/* Orders table */
.table-wrap { overflow-x: auto; border: 1px solid var(--cream-line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.orders-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.orders-table th, .orders-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--cream-line); font-size: .9rem; vertical-align: middle; }
.orders-table thead th { background: var(--paper-2); font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.orders-table tbody tr:last-child td { border-bottom: 0; }
.orders-table tbody tr:hover td { background: #fffdf8; }
.orders-table .mono { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.cust { display: flex; align-items: center; gap: .6rem; }
.cust-name { display: flex; flex-direction: column; line-height: 1.2; }
.cust-name .muted { font-size: .8rem; }
.avatar { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .notif { margin-right: .4rem; }

/* Menu admin: card wrapper + inline edit */
.menu-admin-item { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-admin-item .menu-admin-row { background: transparent; border: 0; border-radius: 0; }
.btn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.menu-edit { border-top: 1px dashed var(--cream-line); }
.menu-edit > summary { cursor: pointer; list-style: none; padding: .7rem 1rem; font-weight: 600; font-size: .9rem; color: var(--red); display: flex; align-items: center; gap: .4rem; }
.menu-edit > summary::-webkit-details-marker { display: none; }
.menu-edit[open] > summary { background: var(--paper-2); }
.menu-edit-form { padding: 1rem; border-top: 1px solid var(--cream-line); }
.menu-edit-form .btn { margin-top: .4rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ===== Documentation page ===== */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.4rem; align-items: start; }
.doc-toc { position: sticky; top: 90px; display: grid; gap: .3rem; }
.doc-toc a { padding: .5rem .8rem; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.doc-toc a:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }
.doc-step { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--cream-line); }
.doc-step:last-child { border-bottom: 0; }
.doc-step .num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.doc-step h4 { margin: .1rem 0 .25rem; font-size: 1.05rem; }
.doc-step p { margin: 0; color: var(--ink-soft); }
.status-legend { display: grid; gap: .7rem; }
.status-legend .row { display: flex; align-items: center; gap: .9rem; }
.status-legend .row span.txt { color: var(--ink-soft); }
@media (max-width: 820px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; grid-auto-flow: column; overflow-x: auto; }
}

/* ===== v2.2: full mobile polish ===== */

/* Tablets and below */
@media (max-width: 880px) {
  /* Put the hamburger on the far right, auth buttons just before it. */
  .nav-toggle { order: 3; }
  .nav-actions { order: 2; gap: .5rem; }
  .hero-grid { padding: 40px 0 56px; gap: 1.4rem; }
  .hero-stats { gap: 1.4rem; flex-wrap: wrap; }
}

/* Phones */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { width: 91%; }
  h3 { font-size: 1.18rem; }

  /* Nav: keep brand + compact actions + toggle on one tidy row */
  .nav { gap: .5rem; }
  .brand img { height: 32px; }
  .nav-actions .btn { padding: .4rem .8rem; font-size: .82rem; }
  .nav-links { top: 58px; }

  /* Hero */
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats { gap: 1.1rem 1.8rem; margin-top: 1.8rem; }
  .hero-stats b { font-size: 1.45rem; }

  /* Cards & panels a touch tighter */
  .card, .panel { padding: 1.2rem; }
  .auth-card { padding: 1.6rem; }

  /* Footer collapses to a single column */
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }

  /* Admin: stack header actions full width */
  .admin-top { align-items: flex-start; }
  .admin-top-actions { width: 100%; }
  .admin-top-actions .btn { flex: 1 1 auto; justify-content: center; }
  .kpi b { font-size: 1.6rem; }

  /* Contact-style two-column blocks already stack at 880; keep maps tidy */
  .video-card { aspect-ratio: 16/10; }

  /* Order form payment + total read better stacked */
  .order-total { flex-direction: row; }
  .pay-box .kv { grid-template-columns: 120px 1fr; }

  /* Buttons inside forms go full width for easy tapping */
  .menu-edit-form .btn, .panel form > .btn:not(.btn-sm) { width: 100%; justify-content: center; }
}

/* Small phones */
@media (max-width: 400px) {
  h1 { font-size: 2.1rem; }
  .nav-actions .btn { padding: .35rem .65rem; font-size: .78rem; }
  .hero-cta { gap: .5rem; }
  .btn { padding: .7rem 1.1rem; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 1.4rem; }
}

/* ----- All-Time Revenue Banner ----- */
.revenue-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 14px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(15, 52, 96, 0.25);
}

.revenue-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.revenue-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.revenue-banner-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}

.revenue-banner-val {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.revenue-banner-right {
  display: flex;
  gap: 2rem;
}

.revenue-banner-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.revenue-banner-stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.revenue-banner-stat b {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
}

/* ----- Isolated Date Controls Bar ----- */
.date-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--paper);
  border: 1.5px solid var(--cream-line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.date-tabs {
  display: flex;
  gap: 0;
  background: var(--paper-2);
  border-radius: 8px;
  padding: 3px;
}

.date-tab {
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.date-tab:hover {
  color: var(--text-dark);
  background: rgba(255,255,255,0.5);
}

.date-tab.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.date-picker-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.date-picker-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

#calendar_date {
  width: 145px;
  padding: 0.4rem 0.5rem;
  border: 1.5px solid var(--cream-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--paper);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#calendar_date:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.date-active-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ----- Order Type Filter Bar ----- */
.type-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.type-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.type-tab {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--paper);
  border: 1px solid var(--cream-line);
  text-decoration: none;
  transition: all 0.2s ease;
}

.type-tab:hover {
  border-color: var(--text-muted);
  color: var(--text-dark);
}

.type-tab.active {
  background: var(--ink-soft);
  color: #fff;
  border-color: var(--ink-soft);
}

.type-tab--daily.active {
  background: #ea580c; /* Orange for daily */
  border-color: #ea580c;
}

.type-tab--sub.active {
  background: #2563eb; /* Blue for subs */
  border-color: #2563eb;
}

/* ----- Admin Layout with Sidebar ----- */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--paper);
  border: 1.5px solid var(--cream-line);
  border-radius: 12px;
  padding: 1.1rem;
  position: sticky;
  top: 90px;
}

.sidebar-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--cream-line);
  font-weight: 700;
}

.export-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.export-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.export-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.export-group--highlight {
  border: 1.5px solid var(--red);
  padding: 0.5rem;
  border-radius: 8px;
  background: #fff5f5;
}

.export-group--highlight label {
  color: var(--red);
  font-weight: 700;
}

.btn-group {
  display: flex;
  gap: 0.25rem;
}

.btn-group .btn {
  flex: 1;
  padding: 0.3rem 0.45rem;
  font-size: 0.78rem;
  justify-content: center;
}

/* ----- Bento KPI Cards ----- */
.kpi-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.kpi-card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  padding: 1rem 1rem 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.kpi-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}

.kpi-card--total::after { background: var(--ink-soft); }
.kpi-card--daily::after { background: #f97316; }
.kpi-card--sub::after { background: #3b82f6; }
.kpi-card--revenue::after { background: #22c55e; }
.kpi-card--pending::after { background: #eab308; }

.kpi-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.kpi-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.kpi-body .kpi-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-body .kpi-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: block;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Old KPI classes kept for backward compat */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.kpi { background: var(--white); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink-soft); }
.kpi.kpi-accent::before { background: var(--red); }
.kpi.kpi-warn::before { background: var(--gold); }
.kpi.kpi-good::before { background: var(--green); }
.kpi-label { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; display: block; margin-top: .25rem; letter-spacing: -.02em; }

/* ----- Responsive Admin ----- */
@media (max-width: 880px) {
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .admin-sidebar {
    position: static;
    order: 2;
  }
  .admin-main {
    order: 1;
  }
  .export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
  }
  .kpi-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .revenue-banner {
    padding: 1rem 1.2rem;
  }
  .revenue-banner-val {
    font-size: 1.55rem;
  }
  .revenue-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .revenue-banner-right {
    width: 100%;
    justify-content: space-between;
  }
  .revenue-banner-stat {
    align-items: flex-start;
  }
  .date-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .date-tabs {
    width: 100%;
    justify-content: stretch;
  }
  .date-tab {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.78rem;
  }
  .date-picker-wrap {
    width: 100%;
    justify-content: space-between;
  }
  #calendar_date {
    flex: 1;
  }
  .admin-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .admin-top-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .admin-top-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  .kpi-bento {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .kpi-card {
    padding: 0.75rem 0.7rem 0.65rem;
    gap: 0.5rem;
  }
  .kpi-icon {
    font-size: 1.1rem;
  }
  .kpi-body .kpi-val {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .kpi-bento {
    grid-template-columns: 1fr;
  }
}


/* ----- Notification Consent Banner ----- */
.notif-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 500px;
  margin-left: auto;
  background: var(--paper);
  border: 2px solid var(--cream-line);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 1rem;
  z-index: 1000;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.notif-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.notif-banner-content span {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.notif-banner-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ----- Foreground Popup Notifications ----- */
.notif-popup-container {
  position: fixed;
  top: 80px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 1001;
  max-width: 380px;
  width: 90%;
}

.notif-popup {
  background: var(--paper);
  border-left: 5px solid var(--red);
  border-top: 1.5px solid var(--cream-line);
  border-right: 1.5px solid var(--cream-line);
  border-bottom: 1.5px solid var(--cream-line);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  gap: 0.8rem;
  align-items: start;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100px); opacity: 0; }
}

.notif-popup-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.notif-popup-body {
  flex: 1;
}

.notif-popup-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.notif-popup-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.notif-popup-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  margin: -0.2rem -0.2rem 0 0;
  line-height: 1;
}

.notif-popup-close:hover {
  color: var(--red);
}

/* ----- Subscription slots grid ----- */
.subscription-grid {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 601px) {
  .subscription-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 600px) {
  .subscription-grid {
    grid-template-columns: 1fr;
  }
}



