/* =========================================================
   SHADAB RESTAURANT — DESIGN SYSTEM
   Display: Cormorant Garamond · UI/Body: Outfit
   ========================================================= */

:root{
  --gold:        #C2410C;   /* CraviX flame orange — primary brand accent (WCAG-AA safe for text) */
  --gold-soft:   #FFA733;   /* bright logo amber-orange — gradients & decorative use only */
  --navy:        #0D233B;   /* CraviX wordmark navy */
  --amber:       #E8A33D;
  --emerald:     #1BA672;
  --danger:      #C62828;
  --link:        #2258C7;   /* order-card in-line link actions (e.g. "Track my order") — kept distinct from gold/emerald/amber so it doesn't collide with total/status/warning colors already used on the same card */

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: .18s;
  --dur-med: .38s;
  --dur-slow: .6s;

  --shadow-1: 0 2px 14px rgba(13,35,59,.08);
  --shadow-2: 0 16px 44px rgba(13,35,59,.14);
  --shadow-gold: 0 8px 22px rgba(194,65,12,.24);

  --bottomnav-h: 64px;
}

[data-theme="dark"]{
  --bg:         #0A0F1C;
  --bg-elev:    #0E1526;
  --surface:    #131B2E;
  --surface-2:  #1A2438;
  --surface-3:  #222E45;
  --border:     rgba(194,65,12,.22);
  --border-soft: rgba(226,231,240,.08);
  --text:       #EDF1F7;
  --text-dim:   #AEB8C9;
  --text-faint: #78859B;
  --glass: rgba(19,28,46,.75);
  --glass-strong: rgba(14,21,38,.92);
  --link:       #6CA3FF;   /* lighter blue for legible contrast on the dark surface */
  color-scheme: dark;
}

[data-theme="light"]{
  --bg:         #F6F7FA;
  --bg-elev:    #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #F1F2F6;
  --surface-3:  #E7E9EF;
  --border:     rgba(13,35,59,.10);
  --border-soft: rgba(13,35,59,.07);
  --text:       #14213A;
  --text-dim:   #566179;
  --text-faint: #8B94A7;
  --glass: rgba(255,255,255,.86);
  --glass-strong: rgba(255,255,255,.97);
  color-scheme: light;
}

/* CRITICAL: our own component rules (e.g. .admin-gate{display:flex}) would
   otherwise beat the browser's default [hidden]{display:none}, since author
   CSS always outranks the user-agent stylesheet. This guarantees anything
   marked hidden actually disappears. */
[hidden]{ display:none !important; }

*,*::before,*::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
button, a, .dish-card, .addbtn, .stepper button, .cart-line, .admin-tab, .manage-row, .order-card{
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus, a:focus{ outline: none; }
html{
  /* Stops the browser from rubber-banding/bouncing the whole page past its
     top/bottom edge. On iOS Safari in particular, that elastic overscroll
     drags EVERYTHING in the viewport along with it — including
     position:fixed elements like .bottomnav below — which is what reads
     as the footer "moving up and down" while scrolling or flicking to the
     end of the page. Chrome/Android get the same benefit (no overscroll
     glow dragging the layout). */
  overscroll-behavior-y: none;
}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
  min-height: 100vh; min-height: 100dvh; /* dvh: matches the fix already used for .cart-drawer — avoids the page's own height snapping as a mobile browser's address bar shows/hides mid-scroll */
  overscroll-behavior-y: none;
}
h1,h2,h3{ font-family:'Poppins', sans-serif; margin:0; letter-spacing:-.01em; font-weight:700; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea{ font-family:inherit; }
::selection{ background: var(--gold); color:#FFFFFF; }

.icon{ width:20px; height:20px; }

/* ---------- ambient background glow (signature) ---------- */
.ambient-glow{
  position: fixed; z-index:0; pointer-events:none;
  width: 60vw; height: 60vw; border-radius:50%;
  filter: blur(90px); opacity:.05;
}
.ambient-glow--a{ top:-20vw; right:-16vw; background: radial-gradient(circle, var(--gold), transparent 70%); }
.ambient-glow--b{ bottom:-24vw; left:-18vw; background: radial-gradient(circle, var(--emerald), transparent 70%); opacity:.04; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar{
  position: sticky; top:0; z-index:40;
  background: var(--glass);
  /* Same repaint-cost reasoning as .bottomnav below: a sticky header
     recomputes its blur every scroll frame too, so keeping this light
     matters just as much for smoothness. */
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  contain: layout style paint;
}
.topbar__inner{
  max-width: 1180px; margin:0 auto;
  display:flex; align-items:center; gap:16px;
  padding: 16px 20px;
}
.hamburger{
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--border);
  background: var(--surface);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast);
  flex-shrink:0;
}
.hamburger:hover{ background: var(--surface-2); }
.hamburger:active{ transform: scale(.92); }
.hamburger span{
  width:18px; height:2px; background: var(--gold); border-radius:2px;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast);
}
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.brand{ display:flex; align-items:center; gap:12px; margin-right:auto; min-width:0; flex-shrink:1; }
.brand__crest{ color: var(--gold); font-size:20px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.brand__crest img{ width:42px; height:42px; border-radius:11px; display:block; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.brand__text{ min-width:0; flex-shrink:1; }
.brand__name{ display:block; font-family:'Poppins', sans-serif; font-weight:800; font-size:21px; line-height:1; letter-spacing:-.01em; white-space:nowrap; color: var(--text); }
.brand__name span{ color: var(--gold); }
.brand__sub{ display:block; font-size:9.5px; letter-spacing:.3em; text-transform:uppercase; color:var(--text-faint); margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }

/* ---------- brand wordmark image (replaces the plain-text "CraviX")
   two crops of the same artwork so the lettering stays legible on
   both a white topbar and a dark one — the theme toggle swaps which
   is visible instead of swapping any actual markup.
   The logo lives in a box with a defined height AND a shrinkable
   max-width; object-fit:contain guarantees the artwork always scales
   down to fit that box in full instead of being cropped by overflow
   when the header runs out of horizontal room on small screens. ---------- */
.brand-logo{ display:block; line-height:0; height:30px; max-width: 128px; min-width:0; }
.brand-logo img{ display:block; height:100%; width:100%; object-fit:contain; object-position:left center; }
.brand-logo--topbar{ height:42px; max-width:168px; }
.brand-logo--sidenav{ height:34px; max-width:160px; }
.brand-logo--footer{ height:26px; max-width:140px; }
/* scoped to .brand-logo (2 classes) so this reliably beats the plain
   ".brand-logo img" rule above (1 class + 1 element) on specificity —
   the previous single-class ".brand-logo__img--dark{ display:none }"
   lost that fight and both logos rendered stacked on top of each
   other in light mode. */
.brand-logo .brand-logo__img--dark{ display:none; }
body[data-theme="dark"] .brand-logo .brand-logo__img--light{ display:none; }
body[data-theme="dark"] .brand-logo .brand-logo__img--dark{ display:block; }

.topbar__actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
@media (max-width: 380px){
  .topbar__inner{ gap:10px; padding-left:16px; padding-right:16px; }
  .topbar__actions{ gap:4px; }
  .brand{ gap:8px; }
  .brand__crest img{ width:36px; height:36px; }
  .brand-logo--topbar{ height:34px; max-width:132px; }
  .brand__sub{ display:none; }
}
.iconbtn{
  position:relative;
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display:flex; align-items:center; justify-content:center;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast), border-color var(--dur-fast);
  flex-shrink:0;
}
.iconbtn:hover{ background: var(--surface-2); border-color: var(--gold); }
.iconbtn:active{ transform: scale(.9); }

#themeToggle .icon-moon{ display:none; }
[data-theme="light"] #themeToggle .icon-sun{ display:none; }
[data-theme="light"] #themeToggle .icon-moon{ display:block; }

.cart-badge{
  position:absolute; top:-4px; right:-4px;
  min-width:18px; height:18px; padding:0 4px;
  border-radius:9px; background: var(--gold); color:#FFFFFF;
  font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center;
  transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring);
  box-shadow: var(--shadow-gold);
}
.cart-badge.is-visible{ transform: scale(1); }
.cart-badge.bump{ animation: bump .4s var(--ease-spring); }
@keyframes bump{ 0%{transform:scale(1)} 40%{transform:scale(1.45)} 100%{transform:scale(1)} }

.ordertime-strip{
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:12px; letter-spacing:.02em; color: var(--text-dim);
  padding:7px 12px; border-top:1px solid var(--border-soft);
  background: var(--surface-2);
  transition: color var(--dur-fast) var(--ease);
}
.ordertime-strip .dot{ width:6px; height:6px; border-radius:50%; background: var(--emerald); box-shadow:0 0 0 3px rgba(47,125,95,.2); flex-shrink:0; }
.ordertime-strip.is-closed .dot{ background: var(--danger); box-shadow:0 0 0 3px rgba(209,85,63,.2); }
.ordertime-strip.is-closed{ color: var(--danger); font-weight:600; }

/* transient below-header event banner (order placed / status updates) */
.event-banner{
  display:flex; align-items:center; gap:9px; justify-content:center;
  font-size:13px; font-weight:600; letter-spacing:.01em;
  padding:9px 14px; color:#fff;
  background: linear-gradient(90deg, var(--emerald), #3d9d76);
  overflow:hidden;
  animation: eventBannerIn .38s var(--ease-spring);
}
.event-banner[hidden]{ display:none; }
.event-banner.is-leaving{ animation: eventBannerOut .3s var(--ease) forwards; }
.event-banner__icon{ font-size:15px; line-height:1; }
@keyframes eventBannerIn{
  0%{ max-height:0; padding-top:0; padding-bottom:0; opacity:0; transform: translateY(-6px); }
  100%{ max-height:60px; padding-top:9px; padding-bottom:9px; opacity:1; transform: translateY(0); }
}
@keyframes eventBannerOut{
  0%{ max-height:60px; padding-top:9px; padding-bottom:9px; opacity:1; }
  100%{ max-height:0; padding-top:0; padding-bottom:0; opacity:0; }
}

/* ---------- header search panel ---------- */
.search-panel{
  max-height:0; overflow:hidden; opacity:0;
  background: var(--surface); border-top:0 solid var(--border-soft);
  transition: max-height var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease);
}
.search-panel.is-open{ max-height:min(70vh, 480px); opacity:1; border-top-width:1px; overflow-y:auto; }
.search-panel__inner{ display:flex; align-items:center; gap:10px; padding:14px 20px; position:sticky; top:0; background: var(--surface); z-index:1; }
.search-panel__inner .icon{ color: var(--text-faint); flex-shrink:0; }
.search-panel__inner input{
  flex:1; border:none; background:none; color: var(--text); font-size:15px; font-family:inherit;
  min-width:0;
}
.search-panel__inner input:focus{ outline:none; }
.search-panel__inner input::placeholder{ color: var(--text-faint); }
.search-results{ padding: 0 12px 12px; }
.search-result-row{
  display:flex; align-items:center; gap:12px; padding:10px 8px; border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease);
}
.search-result-row:hover{ background: var(--surface-2); }
.search-result-row__media{ width:42px; height:42px; border-radius:11px; overflow:hidden; flex-shrink:0; background: linear-gradient(155deg, var(--surface-3), var(--surface-2)); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color: var(--gold); }
.search-result-row__media svg{ width:22px; height:22px; }
.search-result-row__media img{ width:100%; height:100%; object-fit:cover; }
.search-result-row__name{ flex:1; font-size:13.5px; font-weight:600; }
.search-result-row__price{ font-size:13px; color: var(--gold); font-weight:700; flex-shrink:0; }
.search-empty{ text-align:center; color: var(--text-faint); font-size:13.5px; padding: 30px 20px; }

/* =========================================================
   SIDE NAV — tree-line menu
   ========================================================= */
.navshade{
  position:fixed; inset:0; z-index:60;
  background: rgba(6,5,3,.55); backdrop-filter: blur(2px);
  opacity:0; pointer-events:none;
  transition: opacity .32s cubic-bezier(.16,1,.3,1);
}
.navshade.is-open{ opacity:1; pointer-events:auto; }

.sidenav{
  position:fixed; top:0; left:0; bottom:0; z-index:61;
  width: min(340px, 86vw);
  touch-action: pan-y; /* let vertical scroll inside the drawer stay native; horizontal is ours to handle for swipe-to-close */
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  border-right:1px solid var(--border);
  /* 8px of shadow off the right edge reads as a physical panel sliding
     over the page rather than a flat layer popping in/out — small
     touch, but it's what makes the motion feel weighted instead of
     sitting flush with the content underneath it. */
  box-shadow: 10px 0 40px rgba(6,5,3,.28);
  transform: translateX(-104%) translateZ(0);
  -webkit-transform: translateX(-104%) translateZ(0);
  /* An expo-out curve (fast start, long soft settle) is the same shape
     iOS/Android's own native drawers use — it reads as "premium" where
     the old generic --ease felt mechanical on both open AND close. */
  transition: transform .32s cubic-bezier(.16,1,.3,1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display:flex; flex-direction:column;
  padding: 22px 0 18px;
}
.sidenav.is-open{ transform: translateX(0) translateZ(0); }

.sidenav__head{ display:flex; align-items:center; gap:12px; padding: 0 22px 18px; border-bottom:1px solid var(--border-soft); }
.sidenav__head .brand__crest{ font-size:24px; }
.sidenav__title{ font-family:'Poppins', sans-serif; font-weight:700; font-size:21px; }
.sidenav__subtitle{ font-size:9.5px; letter-spacing:.28em; text-transform:uppercase; color:var(--text-faint); }
.sidenav__close{ margin-left:auto; }

.sidenav__user{ display:flex; align-items:center; gap:12px; padding:18px 22px; border-bottom:1px solid var(--border-soft); }
.avatar{ width:40px; height:40px; border-radius:50%; background: var(--surface-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.sidenav__user-name{ font-weight:600; font-size:14.5px; }
.sidenav__user-hint{ font-size:11.5px; color: var(--text-faint); margin-top:1px; }

.sidenav__list{ list-style:none; margin:0; padding:10px 12px; flex:1; overflow-y:auto; }
.sidenav__list li a{
  position:relative;
  display:flex; align-items:center; gap:12px;
  padding:13px 14px; border-radius: var(--radius-md);
  font-size:14.5px; font-weight:500; color: var(--text);
  transition: background var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.sidenav__list li a:hover{ background: var(--surface-2); padding-left:18px; }
.sidenav__list li a.is-active{ background: linear-gradient(90deg, rgba(194,65,12,.16), transparent); color: var(--gold); }
.li-ico{ font-size:16px; width:20px; text-align:center; flex-shrink:0; }
.li-line{
  position:absolute; left:14px; right:14px; bottom:2px; height:1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin:left; transition: transform var(--dur-med) var(--ease);
}
.sidenav__list li a:hover .li-line{ transform: scaleX(1); }
.sidenav__divider{ height:1px; background: var(--border-soft); margin:10px 8px; }
.sidenav__foot{
  padding: 12px 22px 16px; font-size:10.5px; color: var(--text-faint); border-top:1px solid var(--border-soft);
  display:flex; flex-direction:column; gap:8px;
}
.sidenav__credit{
  align-self:flex-start; background:none; border:none; cursor:pointer; font: inherit;
  font-size:11.5px; color: var(--text-faint); padding:6px 0; display:inline-flex; align-items:center; gap:4px;
  transition: color var(--dur-fast) var(--ease);
}
.sidenav__credit:hover{ color: var(--gold); }
.sidenav__credit-name{ color: var(--gold); font-weight:600; }
.sidenav__credit-heart{ color: var(--danger); display:inline-block; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat{ 0%,100%{ transform:scale(1); } 25%{ transform:scale(1.25); } 40%{ transform:scale(1); } }

/* =========================================================
   LAYOUT / VIEWS
   ========================================================= */
#mainContent{ position:relative; z-index:1; max-width:1180px; margin:0 auto; padding: 0 20px 90px; }
.view{ transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.view.is-leaving{ opacity:0; transform: translateY(-8px); pointer-events:none; }
.view.is-entering{ animation: viewIn var(--dur-med) var(--ease) both; }
@keyframes viewIn{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:none; } }

.page-head{ padding: 34px 0 18px; }
.page-head h2{ font-size: clamp(28px,4vw,38px); }
.page-head p{ color: var(--text-dim); margin-top:6px; }
.page-head--row{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
/* My Orders header — a small eyebrow label replaces the previous large
   slab of near-empty top padding, so the page reads "heading, then
   straight into content" instead of a tall quiet gap before anything
   useful appears. */
.page-head--orders{ padding: 20px 0 14px; }
.page-head__eyebrow{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color: var(--gold); margin-bottom:6px;
}

/* ---- Track My Order page header — back arrow + title, sitting on
   one row instead of stacked, since a back action reads best right
   next to what it's backing out of. ---- */
/* Tighter than the generic .page-head (34px 0 18px) — this page has a
   live map further down that should be visible without scrolling, so
   the header shouldn't eat more vertical space than it needs to. */
.track-order-head{ display:flex; align-items:center; gap:14px; padding:16px 0 14px; }
.track-order-head__back{ flex-shrink:0; }
.track-order-head h2{ font-size: clamp(22px,4vw,30px); }
.track-order-head p{ color: var(--text-dim); margin-top:4px; font-size:13.5px; }
.track-order-head p span{ font-weight:700; color: var(--text); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  text-align:center;
  padding: 40px 20px 26px;
  border-bottom: none;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; z-index:-1; left:50%; top:-40%;
  width:120vw; height:120vw; max-width:900px; max-height:900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-soft) 16%, transparent), transparent 65%);
  pointer-events:none;
}
.hero__ornament{ display:none; }
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--gold); margin-bottom:10px; animation: fadeUp .6s var(--ease) both;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  padding:6px 14px; border-radius:999px;
}
.hero__title{
  font-family:'Poppins', sans-serif;
  font-size: clamp(34px, 8vw, 56px); font-weight:800; line-height:1.02; letter-spacing:-.02em;
  color: var(--text);
  animation: fadeUp .7s .04s var(--ease) both;
  display:flex; justify-content:center;
}
.hero__title-accent{ font-style: normal; color: var(--gold); }
.brand-logo--hero{ height: clamp(64px, 15vw, 118px); max-width: min(90vw, 420px); }
.hero__sub{ font-size: clamp(13px,2vw,15.5px); letter-spacing:.02em; text-transform:none; color: var(--text-dim); margin-top:8px; font-weight:500; animation: fadeUp .7s .08s var(--ease) both; }
.hero__cta-row{ display:flex; gap:14px; justify-content:center; margin-top:20px; flex-wrap:wrap; animation: fadeUp .7s .14s var(--ease) both; }
.hero__whatsapp{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px;
  margin-top:16px; text-decoration:none; color: var(--text-dim); font-size:13px;
  animation: fadeUp .7s .2s var(--ease) both;
}
.hero__whatsapp-link{
  display:inline-flex; align-items:center; gap:5px; color:#2fbf6a; font-weight:700;
  border-bottom:1px solid rgba(47,191,106,.45); transition: opacity var(--dur-fast) var(--ease);
}
.hero__whatsapp:hover .hero__whatsapp-link{ opacity:.8; }
.hero__whatsapp.is-hidden{ display:none; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(16px);} to{ opacity:1; transform:none; } }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px 26px; border-radius: 999px; border:1px solid transparent;
  font-weight:600; font-size:14.5px; letter-spacing:.01em;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast), background var(--dur-fast), opacity var(--dur-fast);
  white-space: nowrap;
}
.btn:active{ transform: scale(.96); }
.btn--primary{ background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#FFFFFF; box-shadow: var(--shadow-gold); }
.btn--primary:hover{ box-shadow: 0 12px 34px rgba(194,65,12,.4); transform: translateY(-1px); }
.btn--ghost{ background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover{ background: var(--surface-2); border-color: var(--gold); }
.btn--danger{ background: transparent; border-color: rgba(209,85,63,.4); color: var(--danger); }
.btn--danger:hover{ background: rgba(209,85,63,.1); border-color: var(--danger); }
.btn--track{ background: linear-gradient(180deg, var(--emerald), #158a5c); color:#FFFFFF; box-shadow: 0 10px 26px rgba(27,166,114,.28); }
.btn--track:hover{ box-shadow: 0 12px 32px rgba(27,166,114,.4); transform: translateY(-1px); }
.btn--block{ width:100%; }
.btn:disabled{ opacity:.45; cursor:not-allowed; box-shadow:none; transform:none; }

/* ---------- Menu — dish cards (world-class grid layout) ---------- */
.menu{ padding: 40px 0 20px; }
.menu__head{ text-align:center; margin-bottom:26px; }
.menu__head h2{ font-size: clamp(26px,4vw,34px); }
.menu__head p{ color: var(--text-dim); margin-top:6px; font-size:14px; }

.menu-catnav{
  position: sticky; top: var(--topbar-h, 108px); z-index:20; display:flex; gap:8px; overflow-x:auto;
  padding: 10px 2px 14px; margin-bottom:6px; background: var(--bg); scrollbar-width:none;
}
.menu-catnav::-webkit-scrollbar{ display:none; }
.menu-catnav button{
  flex-shrink:0; padding:8px 16px; border-radius:999px; border:1px solid var(--border-soft);
  background: var(--surface); color: var(--text-dim); font-size:13px; font-weight:600; white-space:nowrap;
  transition: all var(--dur-fast) var(--ease-spring);
}
.menu-catnav button.is-active{ background: var(--gold); color:#FFFFFF; border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.menu__list{ transition: opacity var(--dur-med) var(--ease); }
.menu__list.is-closed{ opacity:.7; }
.menu__grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap:16px;
}

.dish-card{
  display:flex; flex-direction:column; gap:14px;
  padding: 16px; background: var(--surface);
  border:1px solid var(--border-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  opacity:0; animation: dishIn .5s var(--ease) forwards;
}
@keyframes dishIn{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform:none; } }
.dish-card:hover{ border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-2); }

.dish-card__top{ display:flex; align-items:flex-start; gap:14px; }
.dish-card__media{
  width:76px; height:76px; border-radius:18px; flex-shrink:0;
  background: linear-gradient(155deg, var(--surface-3), var(--surface-2));
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
}
.dish-card__media svg{ width:32px; height:32px; }
.dish-card__title{ min-width:0; flex:1; padding-top:2px; }
.dish-card__name-row{ display:flex; align-items:center; gap:7px; }
.nonveg-dot{ width:12px; height:12px; border:1.5px solid #b23b2e; border-radius:3px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.nonveg-dot::after{ content:''; width:6px; height:6px; border-radius:50%; background:#b23b2e; }
.dish-card__name{ font-size:15.5px; font-weight:700; line-height:1.35; margin:0; color: var(--text); letter-spacing:-.005em; }
.dish-card__desc{ font-size:12px; color: var(--text-faint); line-height:1.5; margin-top:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dish-card__note{ display:inline-block; margin-top:4px; font-size:11px; color: var(--text-faint); background: var(--surface-2); border:1px solid var(--border-soft); border-radius:999px; padding:2px 9px; }

.dish-card__bottom{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:12px; border-top:1px dashed var(--border-soft); }
.dish-card__price{ font-weight:800; font-size:17px; color: var(--text); font-variant-numeric: tabular-nums; }

.stepper{ display:flex; align-items:center; gap:0; border:1px solid var(--gold); border-radius:999px; overflow:hidden; flex-shrink:0; box-shadow: var(--shadow-gold); }
.stepper button{ width:32px; height:32px; background: var(--gold); color: #fff; border:none; font-size:16px; font-weight:700; display:flex; align-items:center; justify-content:center; transition: background var(--dur-fast); }
.stepper button:hover:not(:disabled){ background: var(--gold-soft); }
.stepper button:active:not(:disabled){ transform: scale(.9); }
.stepper button:disabled{ opacity:.35; cursor:not-allowed; }
.stepper__count{ width:28px; text-align:center; font-weight:800; font-size:13.5px; font-variant-numeric: tabular-nums; background: var(--surface); color: var(--text); align-self:stretch; display:flex; align-items:center; justify-content:center; }

.addbtn{
  flex-shrink:0; padding: 9px 22px; border-radius:999px; border:1.5px solid var(--gold);
  background: var(--surface); color: var(--gold); font-weight:800; font-size:12.5px; letter-spacing:.04em; text-transform:uppercase;
  box-shadow: var(--shadow-1);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast);
}
.addbtn:hover:not(:disabled){ background: var(--gold); color:#FFFFFF; }
.addbtn:active:not(:disabled){ transform: scale(.92); }
.addbtn:disabled{ opacity:.4; cursor:not-allowed; border-color: var(--border); color: var(--text-faint); box-shadow:none; }
.addbtn.is-closed-pill{ border-style:dashed; }


/* ---------- Banner carousel (auto-rotating, Hotstar/food-app style) ---------- */
.banner-carousel{
  position:relative; width:100%; aspect-ratio: 16 / 9; max-height: 380px;
  border-radius: var(--radius-lg); overflow:hidden; margin-top:16px;
  box-shadow: var(--shadow-2); background: var(--surface-2);
  touch-action: pan-y;
}
.banner-track{ display:flex; width:100%; height:100%; transition: transform .6s cubic-bezier(.65,0,.35,1); will-change: transform; }
.banner-slide{ position:relative; flex: 0 0 100%; width:100%; height:100%; overflow:hidden; }
.banner-slide img{ width:100%; height:100%; object-fit:cover; display:block; transform: scale(1.06); transition: transform 5.2s linear; }
.banner-slide.is-active img{ transform: scale(1.16); }
.banner-nav{
  position:absolute; top:50%; transform: translateY(-50%); width:36px; height:36px; border-radius:50%;
  background: rgba(10,9,6,.45); backdrop-filter: blur(6px); color:#fff; border:1px solid rgba(255,255,255,.25);
  font-size:20px; line-height:1; display:flex; align-items:center; justify-content:center;
  opacity:0; transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast);
}
.banner-carousel:hover .banner-nav{ opacity:1; }
.banner-nav--prev{ left:10px; }
.banner-nav--next{ right:10px; }
.banner-nav:hover{ background: rgba(10,9,6,.7); }
.banner-dots{ position:absolute; left:0; right:0; bottom:10px; display:flex; gap:6px; justify-content:center; }
.banner-dots button{
  position:relative; width:7px; height:7px; border-radius:999px; background: rgba(255,255,255,.4); border:none; padding:0;
  overflow:hidden; transition: width var(--dur-med) var(--ease-spring);
}
.banner-dots button.is-active{ width:26px; }
.banner-dots button::after{
  content:''; position:absolute; inset:0; border-radius:999px; background: var(--gold-soft);
  transform: scaleX(0); transform-origin:left; width:100%; height:100%;
}
.banner-dots button.is-active::after{ animation: dotFill 4.5s linear forwards; }
.banner-dots button.is-paused::after{ animation-play-state: paused; }
@keyframes dotFill{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

/* ---------- dish card media: real photo if provided, else the SVG icon ---------- */
.dish-card__media{ overflow:hidden; padding:0; }
.dish-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.manage-row__media{ overflow:hidden; padding:0; }
.manage-row__media img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- item detail modal ---------- */
.item-detail-modal{ padding:0; overflow:hidden; text-align:left; max-width:400px; }
.item-detail__media{ width:100%; aspect-ratio: 4/3; background: linear-gradient(155deg, var(--surface-3), var(--surface-2)); display:flex; align-items:center; justify-content:center; color: var(--gold); }
.item-detail__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.item-detail__media svg{ width:88px; height:88px; }
.item-detail__body{ padding:22px 24px 26px; }
.item-detail__category{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--gold); background: rgba(194,65,12,.1); border:1px solid var(--border); border-radius:999px; padding:4px 12px; margin-bottom:10px; }
.item-detail-modal h3{ font-size:24px; margin-bottom:8px; }
.item-detail__desc{ color: var(--text-dim); font-size:14px; line-height:1.6; margin-bottom:18px; }
.item-detail__row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.item-detail__price{ font-size:22px; font-weight:700; color: var(--gold); }

.menu-category{ margin-bottom: 30px; }
.menu-category:last-child{ margin-bottom:0; }
.menu-category__title{
  display:flex; align-items:center; gap:12px;
  font-size:13px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color: var(--gold);
  margin-bottom:14px;
}
.menu-category__title::after{ content:''; flex:1; height:1px; background: linear-gradient(90deg, var(--border), transparent); }

/* countdown emphasis inside the ordering strip */
.ordertime-strip strong{ font-variant-numeric: tabular-nums; font-weight:700; }
.ordertime-strip.is-grace{ color: var(--amber); font-weight:600; }
.ordertime-strip.is-grace .dot{ background: var(--amber); box-shadow:0 0 0 3px rgba(232,163,61,.28); animation: pulse-dot 1.1s infinite; }
@keyframes pulse-dot{ 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.35); opacity:.6; } }

/* ---------- Trust strip ---------- */
.trust{ display:grid; grid-template-columns: repeat(4,1fr); gap:14px; padding: 30px 0 50px; }
.trust__item{ display:flex; align-items:center; gap:12px; padding:16px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md); }
.trust__item span{ font-size:22px; flex-shrink:0; }
.trust__item strong{ display:block; font-size:13.5px; }
.trust__item small{ color: var(--text-faint); font-size:11.5px; }

/* =========================================================
   ORDERS LIST (shared: my orders + admin)
   ========================================================= */
.orders-list{ display:flex; flex-direction:column; gap:14px; padding-bottom: 30px; }
.order-card{
  background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 16px 18px; animation: fadeUp .4s var(--ease) both;
  box-shadow: var(--shadow-1);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.order-card:hover{ box-shadow: var(--shadow-2); border-color: var(--border); }
.order-card__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.order-card__who{ min-width:0; flex:1; }
.order-card__customer,.order-card__phone{ overflow-wrap:anywhere; }
.order-card__id{ font-size:12px; color: var(--text-faint); letter-spacing:.03em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.order-card__status{ font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; letter-spacing:.03em; text-transform:uppercase; flex-shrink:0; }
.order-card__status.pending{ background: rgba(194,65,12,.15); color: var(--gold); }
.order-card__status.delivered{ background: rgba(47,125,95,.16); color: var(--emerald); }
.order-card__items{ font-size:13.5px; color: var(--text-dim); line-height:1.7; }
.order-card__foot{ display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding-top:12px; border-top:1px dashed var(--border-soft); flex-wrap:wrap; gap:6px; }
/* Distinct "data" chip — deliberately NOT the brand gold used by the
   Track/Terms links right below it, so a total amount, an action link,
   and an info link never read as three instances of the same thing. */
.order-card__total{
  font-weight:800; color: var(--text); font-size:14.5px;
  background: var(--surface-2); border:1px solid var(--border-soft);
  border-radius:999px; padding:4px 12px; letter-spacing:.01em;
}
.order-card__meta{ font-size:11.5px; color: var(--text-faint); }

.empty-state{ text-align:center; padding: 60px 20px; color: var(--text-faint); animation: fadeUp .4s var(--ease) both; }
.empty-state span{ font-size:34px; display:block; margin-bottom:10px; }

/* admin variant */
.orders-list--admin .order-card__customer{ font-weight:600; font-size:14px; margin-bottom:2px; }
.orders-list--admin .order-card__phone{ font-size:11.5px; color: var(--text-faint); }

/* =========================================================
   PROFILE
   ========================================================= */
.profile-card{
  max-width:440px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-xl);
  padding: 30px 26px; display:flex; flex-direction:column; gap:18px; align-items:center; text-align:center;
  animation: fadeUp .5s var(--ease) both;
}
.profile-card__avatar-wrap{ position:relative; width:76px; height:76px; }
.profile-card__avatar{ width:76px; height:76px; border-radius:50%; background: var(--surface-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:34px; overflow:hidden; }
.profile-card__avatar img{ width:100%; height:100%; object-fit:cover; }
.profile-card__avatar-edit{
  position:absolute; right:-4px; bottom:-2px; width:28px; height:28px; border-radius:50%;
  background: var(--gold); border:2px solid var(--surface); color:#1a1400; font-size:13px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.profile-card__avatar-edit:hover{ transform: scale(1.08); }
.profile-card__field{ width:100%; text-align:left; }
.profile-card__field > span{ display:block; font-size:11.5px; font-weight:600; color: var(--text-faint); text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px; }
.profile-card__value{ padding:12px 14px; border-radius: var(--radius-md); background: var(--surface-2); border:1px solid var(--border-soft); font-size:14.5px; }
.profile-card__editrow{ display:flex; gap:8px; align-items:center; }
.profile-card__editrow input{ flex:1; padding:12px 14px; border-radius: var(--radius-md); border:1px solid var(--border-soft); background: var(--surface-2); color: var(--text); font-size:14.5px; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast); }
.profile-card__editrow input:disabled{ color: var(--text); opacity: 1; -webkit-text-fill-color: var(--text); }
.profile-card__editrow input:not(:disabled){ border-color: var(--gold); background: var(--surface); }
.profile-card__editrow .iconbtn{ width:38px; height:38px; font-size:14px; }

/* =========================================================
   ADMIN
   ========================================================= */
.admin-gate{ min-height: 60vh; display:flex; align-items:center; justify-content:center; padding: 30px 0; }
.admin-gate__card{
  width:100%; max-width:380px; text-align:center; padding: 40px 30px;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2); animation: fadeUp .5s var(--ease) both;
}
.admin-gate__ico{ font-size:34px; margin-bottom:10px; }
.admin-gate__card h2{ font-size:24px; margin-bottom:6px; }
.admin-gate__card p{ color: var(--text-dim); font-size:13.5px; margin-bottom:20px; }

.field{ display:flex; flex-direction:column; gap:6px; text-align:left; margin-bottom:14px; }
.field span{ font-size:12px; font-weight:600; color: var(--text-dim); }
.field-hint{ font-size:11px; color: var(--text-faint); line-height:1.4; margin-top:-2px; }
.linklike[disabled]{ opacity:.55; pointer-events:none; }
.field input, .field textarea{
  padding:12px 14px; border-radius: var(--radius-md); border:1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size:14.5px; width:100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field textarea:focus{ outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,65,12,.16); }
.field--inline{ flex-direction:row; align-items:center; gap:10px; }
.field--inline span{ margin:0; }

.field-error{ color: var(--danger); font-size:12.5px; margin-top:8px; transition: color var(--dur-fast) var(--ease); }
.field-success{ color: var(--emerald); font-size:12.5px; margin-top:8px; }

/* Critical auth errors (wrong credentials, mismatched passwords, bad OTP)
   get a stronger red + a short vibrate so they can't be missed. */
.field-error--shake{
  color:#ff4d4f; font-weight:600;
  animation: fieldShake .42s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes fieldShake{
  10%,90%{ transform: translateX(-1px); }
  20%,80%{ transform: translateX(2px); }
  30%,50%,70%{ transform: translateX(-4px); }
  40%,60%{ transform: translateX(4px); }
  100%{ transform: translateX(0); }
}

/* password show/hide */
.pwd-field{ position:relative; display:flex; align-items:center; }
.pwd-field input{ padding-right:42px; }
.pwd-eye{
  position:absolute; right:6px; width:32px; height:32px; border-radius:50%;
  background:none; border:none; color: var(--text-faint); font-size:15px;
  display:flex; align-items:center; justify-content:center; transition: color var(--dur-fast), background var(--dur-fast);
}
.pwd-eye:hover{ color: var(--gold); background: var(--surface-3); }

.admin-panel__hint{ font-size:12px; color: var(--text-faint); margin: -6px 0 16px; }

/* Quick-action cluster ("Close restaurant" / "Notify arrived" / "Lock
   admin") — deliberately built to the exact same geometry as the
   .admin-tab tiles just below (same padding, font-size, corner radius,
   gap), so the whole cluster reads as one continuous, evenly-sized
   block of options instead of a separate row of oversized pill
   buttons sitting above a completely different-looking grid. Colour is
   the only thing that still tells them apart (ghost outline for
   Close/Lock, solid gold for the actionable Notify button) — the same
   language the tab grid itself uses for its own "active" tile. */
.page-head__actions{
  display:grid; grid-template-columns: 1fr 1fr; gap:8px;
  width:100%; margin-top:14px;
}
.page-head__actions .btn{
  width:100%; border-radius: var(--radius-md);
  padding:11px 14px; font-size:13.5px; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#adminLogoutBtn{ grid-column: 1 / -1; }
.btn--compact{ padding:9px 16px; font-size:13px; }

/* tabs: a clean 2-column grid on mobile, single row once there's room */
.admin-tabs{
  display:grid; grid-template-columns: repeat(2, 1fr); gap:8px;
  margin: 10px 0 14px;
}
@media (min-width: 560px){
  .admin-tabs{ grid-template-columns: repeat(4, auto); }
}
/* Restore Cleared only ever appears as the 9th (odd) tile in an
   otherwise-even 2-column grid — left dangling alone on the left with a
   blank hole beside it. Whenever it's actually shown, give it the full
   row instead, so the whole cluster always resolves into complete,
   evenly-filled rows. */
#restoreOrdersTabBtn:not([hidden]){ grid-column: 1 / -1; }
/* Separates the menu (tabs above) from the selected tab's data (below),
   as its own thin horizontal section divider. */
.admin-tabs-divider{ height:1px; background: var(--border); margin:0 0 20px; }
.admin-tab{
  display:flex; align-items:center; justify-content:center; gap:7px;
  padding:11px 14px; border-radius: var(--radius-md); border:1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-size:13.5px; font-weight:600; white-space:nowrap;
  transition: all var(--dur-fast) var(--ease);
}
.admin-tab__ico{ font-size:14px; }
.admin-tab:hover{ border-color: var(--gold); color: var(--text); }
.admin-tab.is-active{ background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#FFFFFF; border-color: transparent; box-shadow: var(--shadow-gold); }
.admin-tab--danger{ color: var(--danger); border-color: rgba(209,85,63,.35); }
.admin-tab--danger:hover{ background: rgba(209,85,63,.08); border-color: var(--danger); color: var(--danger); }

/* copy buttons: side-by-side, equal width, icon + label. Always stay in
   one row — labels are short ("Copy list" / "Copy IDs") specifically so
   they never need to stack and eat vertical space. */
.copy-buttons-row{ display:flex; gap:10px; margin-bottom:10px; }
.copy-buttons-row .copy-btn{ flex:1; display:flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-left:8px; padding-right:8px; }
.copy-btn__ico{ width:15px; height:15px; flex-shrink:0; }
@media (max-width: 340px){
  .copy-buttons-row .copy-btn{ font-size:12.5px; gap:5px; }
}

.admin-panel{ display:none; animation: fadeUp .4s var(--ease) both; }
.admin-panel.is-active{ display:block; }

.admin-stats-row{ display:flex; gap:12px; margin-bottom:16px; }
.admin-panel__toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.admin-stat{ flex:1; display:flex; flex-direction:column; padding:14px 18px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md); }
.admin-stat strong{ font-size:22px; color: var(--gold); }
.admin-stat span{ font-size:11px; color: var(--text-faint); margin-top:2px; }

/* -- ₹ pool progress banner -- */
.pool-banner{
  padding:14px 18px; margin-bottom:16px; background: var(--surface);
  border:1px solid var(--border-soft); border-radius: var(--radius-md);
}
.pool-banner__text{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.pool-banner__text strong{ font-size:16px; color: var(--gold); }
.pool-banner__text span{ font-size:12px; color: var(--text-faint); }
.pool-banner__track{ height:8px; border-radius:999px; background: var(--surface-2); overflow:hidden; }
.pool-banner__fill{ height:100%; border-radius:999px; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transition: width .5s var(--ease); }
.pool-banner.is-met .pool-banner__fill{ background: linear-gradient(90deg, #4caf7d, #2e9d63); }
.pool-banner.is-met .pool-banner__text strong{ color:#2e9d63; }

/* -- single order-progress tracker shown once at the top of the admin
   All Orders panel, instead of repeating one per card (every order in a
   tab moves through the same stage together, so one shared tracker is
   enough). Same card chrome as .pool-banner/.admin-stat for visual
   consistency; a touch more bottom padding since the tracker's own
   labels sit lower than the pool banner's text. */
.admin-order-progress-card{
  padding:14px 18px 18px; margin-bottom:16px; background: var(--surface);
  border:1px solid var(--border-soft); border-radius: var(--radius-md);
}
.admin-order-progress-card .order-progress{ margin-top:14px; }
.admin-order-progress-card__title{ font-size:12px; font-weight:700; color: var(--text-faint); letter-spacing:.3px; text-transform:uppercase; }

/* -- admins list -- */
.admins-list{ display:flex; flex-direction:column; gap:10px; }
.admin-row{
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  padding:14px 16px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md);
}
.admin-row--blocked{ opacity:.65; border-color: rgba(209,85,63,.35); }
.admin-row__info{ display:flex; flex-direction:column; gap:2px; }
.admin-row__info strong{ font-size:14px; }
.admin-row__info small{ font-size:11px; color: var(--text-faint); }
.admin-row__actions{ display:flex; align-items:center; gap:8px; }
.admin-row__badge{ font-size:11px; padding:4px 10px; border-radius:999px; background: var(--surface-2); color: var(--text-faint); }
.admin-row__badge--active{ background: rgba(46,157,99,.12); color:#2e9d63; }

.btn--sm{ padding:7px 14px; font-size:12px; border-radius: var(--radius-sm, 8px); }

/* -- customers list -- */
.customers-list{ display:flex; flex-direction:column; gap:10px; }
.customer-row{
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  padding:14px 16px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md);
  cursor:pointer; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease);
}
.customer-row:hover{ border-color: var(--gold-soft); transform: translateY(-1px); }
.customer-row:active{ transform: translateY(0) scale(.99); }
.customer-row--blocked{ opacity:.6; border-color: rgba(209,85,63,.35); }
.customer-row__info{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.customer-row__info strong{ font-size:14px; }
.customer-row__info small{ font-size:11px; color: var(--text-faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.customer-row__stats{ display:flex; gap:16px; align-items:center; flex-shrink:0; }
.customer-row__stat{ display:flex; flex-direction:column; align-items:flex-end; }
.customer-row__stat strong{ font-size:14px; color: var(--gold); }
.customer-row__stat span{ font-size:9.5px; color: var(--text-faint); text-transform:uppercase; letter-spacing:.04em; }
.customer-row__chevron{ color: var(--text-faint); font-size:16px; }

.customer-detail-modal{ max-width:380px; }
.customer-detail-stats{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0 6px; text-align:left; }
.customer-detail-stat{ padding:12px 14px; background: var(--surface-2); border-radius: var(--radius-md); }
.customer-detail-stat strong{ display:block; font-size:18px; color: var(--gold); }
.customer-detail-stat span{ font-size:11px; color: var(--text-faint); }
/* Compact, horizontal action row for the customer detail modal — kept
   deliberately small (not full-width) and hidden until the customer's
   data has actually finished loading, so the buttons never flash into
   view underneath a "Loading…" state. */
.customer-detail-actions{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:6px; }
.customer-detail-actions .btn{ width:auto; flex:0 1 auto; }

/* reusable search field (admin orders / verify) */
.search-field{
  display:flex; align-items:center; gap:10px; padding:11px 16px; margin-bottom:14px;
  background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), opacity .25s var(--ease), transform .25s var(--ease);
}
.search-field[hidden]{ display:none; }
#panel-allorders .search-field:not([hidden]){ animation: searchFieldIn .25s var(--ease); }
@keyframes searchFieldIn{ from{ opacity:0; transform: translateY(-6px); } to{ opacity:1; transform:none; } }
.search-field:focus-within{ border-color: var(--gold); }
.search-field .icon{ width:17px; height:17px; color: var(--text-faint); flex-shrink:0; }
.search-field input{ flex:1; border:none; background:none; color: var(--text); font-size:14px; font-family:inherit; min-width:0; }
.search-field input:focus{ outline:none; }
.search-field__clear{
  border:none; background:none; color: var(--text-faint); font-size:14px; line-height:1;
  padding:4px; cursor:pointer; flex-shrink:0;
}
.search-field__clear:hover{ color: var(--text); }
.filter-chip--icon{ padding:9px 12px; flex-shrink:0; }
.filter-chip--icon .icon{ width:16px; height:16px; display:block; }
.filter-chip--icon.is-active{ background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#FFFFFF; border-color: transparent; }
.search-field input::placeholder{ color: var(--text-faint); }

.verify-list{ display:flex; flex-direction:column; gap:10px; padding-bottom:30px; }
.verify-item{
  display:flex; align-items:center; gap:14px; padding:14px 16px; flex-wrap:wrap;
  background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.verify-item.is-delivered{ opacity:.55; }
.verify-item__arrived-tag{
  display:inline-block; font-size:10px; font-weight:700; letter-spacing:.02em;
  padding:2px 7px; border-radius:999px; margin-left:4px; vertical-align:middle;
  background: rgba(124,58,237,.14); color:#7C3AED;
}
.verify-item__info{ flex:1; min-width:180px; }
.verify-item__name{ font-weight:600; font-size:14.5px; }
.verify-item__detail{ font-size:12px; color: var(--text-faint); margin-top:2px; }
.checkbox-wrap{ display:flex; align-items:center; gap:8px; font-size:12px; color: var(--text-dim); flex-shrink:0; cursor:pointer; user-select:none; }
.checkbox-wrap input{ display:none; }
.checkbox-box{
  width:24px; height:24px; border-radius:7px; border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center; transition: all var(--dur-fast) var(--ease-spring); flex-shrink:0;
}
.checkbox-wrap input:checked + .checkbox-box{ background: var(--emerald); border-color: var(--emerald); }
.checkbox-box::after{ content:''; width:12px; height:7px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform var(--dur-fast) var(--ease-spring); margin-top:-2px; }
.checkbox-wrap input:checked + .checkbox-box::after{ transform: rotate(-45deg) scale(1); }

.menu-manage-list{ display:flex; flex-direction:column; gap:10px; padding-bottom:24px; }
.manage-row{
  display:flex; align-items:center; gap:14px; padding:12px 14px;
  background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md);
}
.manage-row__media{ width:44px; height:44px; border-radius:12px; flex-shrink:0; background: linear-gradient(155deg, var(--surface-3), var(--surface-2)); border:1px solid var(--border); color: var(--gold); display:flex; align-items:center; justify-content:center; }
.manage-row__media svg{ width:24px; height:24px; }
.manage-row__info{ flex:1; min-width:0; }
.manage-row__name{ font-weight:600; font-size:14px; }
.manage-row__meta{ font-size:11.5px; color: var(--text-faint); margin-top:2px; }
.manage-row__actions{ display:flex; gap:8px; flex-shrink:0; }
.manage-row__actions button{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border); background: var(--surface-2); color: var(--text);
  display:flex; align-items:center; justify-content:center; font-size:13px; transition: all var(--dur-fast) var(--ease);
}
.manage-row__actions button:hover{ border-color: var(--gold); color: var(--gold); }
.manage-row__actions button.danger:hover{ border-color: var(--danger); color: var(--danger); }

.icon-choice-row{ display:flex; gap:10px; flex-wrap:wrap; }
.icon-choice{
  width:52px; height:52px; border-radius:14px; border:1px solid var(--border); background: var(--surface-2);
  color: var(--text-faint); display:flex; align-items:center; justify-content:center; transition: all var(--dur-fast) var(--ease-spring);
}
.icon-choice svg{ width:26px; height:26px; }
.icon-choice.is-selected{ border-color: var(--gold); color: var(--gold); background: rgba(194,65,12,.1); transform: scale(1.05); }

.confirm-modal{ max-width:340px; }
.clear-orders-countdown{ font-weight:700; color: var(--danger); font-size:14px; font-variant-numeric: tabular-nums; margin-bottom:18px !important; }

.photo-upload-row{ display:flex; align-items:center; gap:14px; }
.photo-upload-preview{
  width:64px; height:64px; border-radius:14px; background: var(--surface-2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; overflow:hidden; color: var(--text-faint); font-size:10.5px; text-align:center; flex-shrink:0;
}
.photo-upload-preview img{ width:100%; height:100%; object-fit:cover; }
.photo-upload-actions{ display:flex; flex-direction:column; gap:8px; }
.photo-upload-btn{ text-align:center; padding:9px 16px; font-size:13px; }

.settings-card{ max-width:480px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-lg); padding:24px; margin-bottom:20px; }
.settings-card h3{ font-size:20px; margin-bottom:8px; }
.settings-card > p{ color: var(--text-dim); font-size:13.5px; line-height:1.6; margin-bottom:18px; }
/* Compact variant — the Testing Mode head card only needs a heading, its
   switch, a short blurb and a one-line status note, so it doesn't need
   the full 24px settings-card padding/spacing; this keeps it tight and
   proportionate instead of towering over the console below it. */
.settings-card--compact{ padding:16px 18px 14px; }
.settings-card--compact .readmore__text{ margin-bottom:8px; font-size:13px; }
.settings-card--compact .settings-current{ margin-top:2px; }
.settings-card--compact .settings-row--testingmode-head{ margin-bottom:8px; }
/* Console variant — wider than the standard 480px settings card so the
   boxed parameter groups below have room to sit two-across. */
.settings-card--console{ max-width:680px; }

/* Sub-headings inside a single settings-card that bundles several
   related blocks together (e.g. the Privacy PIN card: who's-using-it
   list, change-PIN form, forgot-PIN flow all in one place) — a plain
   h3 per block would read like three separate cards stacked oddly. */
.settings-subhead{ font-size:14px; font-weight:700; margin:22px 0 10px; padding-top:16px; border-top:1px solid var(--border-soft); }
.settings-subhead:first-of-type{ margin-top:16px; }

/* Small inline badge next to a locked field's label (e.g. the item
   form's profit margin input before the Privacy PIN is unlocked). */
.pin-lock-badge{ display:inline-block; margin-left:8px; font-size:10.5px; font-weight:600; color: var(--text-faint); background: rgba(255,255,255,.06); border:1px solid var(--border-soft); border-radius:999px; padding:2px 8px; vertical-align:middle; }
.pin-lock-badge.is-unlocked{ color:#22C55E; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.settings-row{ display:flex; align-items:flex-end; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.settings-row .field{ margin-bottom:0; flex:1; min-width:180px; }
.settings-current{ font-size:13px; color: var(--text-dim); margin-top:6px; }
.settings-current strong{ color: var(--gold); }
/* Quick test console — every timing/threshold field in one compact grid
   instead of the one-setting-per-tap flow the rest of Settings uses,
   since Development Mode exists specifically to let testing skip that. */
.dev-console-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:10px 12px;
  margin:10px 0;
}
@media (max-width:420px){ .dev-console-grid{ grid-template-columns:1fr; } }

/* Quick test console — fields grouped into labelled sections (ordering,
   delivery, pool, cancellation, restaurant) instead of one flat list, so
   an admin can scan straight to the parameter they need. */
/* Quick test console — fields grouped into labelled sections (ordering,
   delivery, pool, cancellation, restaurant), each its own bordered box
   in a responsive grid, so an admin can scan straight to the box they
   need instead of reading down one long list. */
.dev-console-groups{ display:grid; grid-template-columns:1fr; gap:14px; margin:14px 0 18px; }
@media (min-width:640px){ .dev-console-groups{ grid-template-columns:1fr 1fr; } }
.dev-console-group{
  padding:16px; border-radius:14px;
  background: var(--surface-2); border:1px solid var(--border-soft);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.dev-console-group:hover{ border-color: var(--gold); box-shadow:0 6px 16px rgba(0,0,0,.07); transform:translateY(-1px); }
.dev-console-group__label{
  display:flex; align-items:center; gap:7px;
  font-size:11.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  color: var(--gold); margin-bottom:12px;
}
.dev-console-group .dev-console-grid{ margin:0; }
.dev-console-group .filter-chips{ margin-bottom:10px; }

/* Read more / Read less — JS (initReadMoreBlocks) truncates the actual
   text content to fit a small line budget and appends the toggle as a
   real inline node at the end of that text, so "Read more"/"Read less"
   always sits right after the visible copy instead of wrapping onto its
   own line. See .readmore__toggle below for the inline link styling. */
.readmore__text{ color: var(--text-dim); font-size:13.5px; line-height:1.6; margin-bottom:16px; }
.readmore__toggle{
  display:inline; background:none; border:none; padding:0; margin:0 0 0 2px;
  color: var(--gold); font-size:13.5px; font-weight:700; font-family:inherit;
  cursor:pointer; white-space:nowrap;
}
.readmore__toggle:hover{ text-decoration:underline; }

/* Admin Dashboard ⇄ Testing Mode switch — a professional segmented title
   control. The heading itself IS the switch: "Admin Dashboard" and 👨🏻‍💻
   sit as two labelled segments inside one pill, with a sliding highlight
   (sized/positioned in JS, since the two labels are different widths)
   gliding smoothly between them. Flipping it swaps the whole dashboard
   body for the standalone Testing Mode page. */
.admin-dash-title-wrap{ margin-bottom:2px; }
.admin-mode-switch{
  display:inline-flex; align-items:center; position:relative; vertical-align:middle;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
.admin-mode-switch input{ position:absolute; opacity:0; width:1px; height:1px; }
.admin-mode-switch--title .admin-mode-switch__track{
  display:inline-flex; align-items:center; position:relative;
  padding:5px; border-radius:999px; gap:2px;
  background: var(--surface-3); border:1px solid var(--border-soft);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.admin-mode-switch--title:hover .admin-mode-switch__track{
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.07);
}
.admin-mode-switch--title .admin-mode-switch__option{
  position:relative; z-index:1; display:inline-block;
  padding:10px 20px; border-radius:999px; white-space:nowrap;
  font-size:19px; font-weight:800; letter-spacing:.1px; font-family:inherit;
  color: var(--text-dim);
  transition: color .32s var(--ease);
}
.admin-mode-switch--title .admin-mode-switch__option--dev{ padding:10px 18px; font-size:21px; }
.admin-mode-switch--title .admin-mode-switch__option.is-active{ color:#FFFFFF; text-shadow:0 1px 2px rgba(0,0,0,.18); }
/* Springy overshoot easing (slight bounce past the target, then settle)
   on the highlight pill is what makes the flip feel tactile rather than
   a flat linear slide — combined with the label "pop" below, each tap
   reads as a physical, satisfying click into place. */
.admin-mode-switch--title .admin-mode-switch__thumb{
  position:absolute; top:5px; left:5px; height:calc(100% - 10px); width:0; margin:0;
  border-radius:999px; z-index:0;
  background: linear-gradient(135deg, var(--gold), #C98A2C);
  box-shadow: 0 4px 12px rgba(201,138,44,.35), 0 1px 2px rgba(0,0,0,.15);
  transition: transform .52s cubic-bezier(.34,1.56,.64,1), width .52s cubic-bezier(.34,1.56,.64,1), background .32s var(--ease), box-shadow .32s var(--ease);
}
.admin-mode-switch--title .admin-mode-switch__thumb::after{
  content:""; position:absolute; inset:0; border-radius:inherit; opacity:0;
  box-shadow:0 0 0 0 rgba(201,138,60,.5);
}
@keyframes cravixThumbPulse{
  0%{ box-shadow:0 0 0 0 rgba(201,138,60,.5); opacity:1; }
  100%{ box-shadow:0 0 0 16px rgba(201,138,60,0); opacity:0; }
}
@keyframes cravixThumbPulseDanger{
  0%{ box-shadow:0 0 0 0 rgba(163,54,54,.5); opacity:1; }
  100%{ box-shadow:0 0 0 16px rgba(163,54,54,0); opacity:0; }
}
.admin-mode-switch--title.is-flipping input:not(:checked) ~ .admin-mode-switch__track .admin-mode-switch__thumb::after{
  animation: cravixThumbPulse .55s var(--ease);
}
.admin-mode-switch--title.is-flipping input:checked ~ .admin-mode-switch__track .admin-mode-switch__thumb::after{
  animation: cravixThumbPulseDanger .55s var(--ease);
}
@keyframes cravixLabelPop{
  0%{ transform:scale(.82); }
  55%{ transform:scale(1.08); }
  100%{ transform:scale(1); }
}
.admin-mode-switch--title .admin-mode-switch__option.is-active{ animation: cravixLabelPop .42s cubic-bezier(.34,1.56,.64,1); }
.admin-mode-switch--title input:checked ~ .admin-mode-switch__track .admin-mode-switch__thumb{
  background: linear-gradient(135deg, var(--danger), #A33636);
  box-shadow: 0 4px 12px rgba(163,54,54,.35), 0 1px 2px rgba(0,0,0,.15);
}
.admin-mode-switch--title input:focus-visible ~ .admin-mode-switch__track{ outline:2px solid var(--gold); outline-offset:2px; }
.admin-mode-switch--title:active .admin-mode-switch__thumb{ filter:brightness(.96); }
@media (max-width: 480px){
  .admin-mode-switch--title .admin-mode-switch__option{ font-size:16px; padding:9px 14px; }
  .admin-mode-switch--title .admin-mode-switch__option--dev{ font-size:19px; padding:9px 14px; }
}

/* Testing Mode page — replaces the whole dashboard body (live tracker,
   tabs, every tab panel, subtitle, and the header action buttons) when
   the switch above is set to 👨🏻‍💻, leaving only the title switch and
   the Testing Mode content on screen. */
.admin-testing-mode-view{ display:none; }
.admin-testing-mode-view .settings-row--testingmode-head{ justify-content:space-between; }
.admin-testing-mode-view .settings-row--testingmode-head h3{ margin:0; }
#adminDash.is-testing-mode > .admin-live-banner,
#adminDash.is-testing-mode > .admin-tabs,
#adminDash.is-testing-mode > .admin-tabs-divider,
#adminDash.is-testing-mode > .admin-panel,
#adminDash.is-testing-mode #adminDashSubtitle,
#adminDash.is-testing-mode #adminPageHeadActions{ display:none; }
#adminDash.is-testing-mode > .admin-testing-mode-view{ display:block; }

@keyframes cravixDashSwap{
  from{ opacity:0; transform:translateY(14px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
#adminDash.is-testing-mode > .admin-testing-mode-view,
#adminDash:not(.is-testing-mode) > .admin-tabs{
  animation: cravixDashSwap .42s cubic-bezier(.16,1,.3,1);
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.drawershade{ position:fixed; inset:0; z-index:70; background: rgba(6,5,3,.55); backdrop-filter: blur(2px); opacity:0; pointer-events:none; transition: opacity var(--dur-med) var(--ease); }
.drawershade.is-open{ opacity:1; pointer-events:auto; }

.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:71;
  width: min(400px, 92vw);
  height: 100vh; height: 100dvh; /* dvh where supported: stays correct even as a mobile browser's address bar shows/hides, instead of the fixed 100vh being measured against a viewport taller than what's actually visible */
  background: var(--glass-strong); backdrop-filter: blur(22px) saturate(160%);
  border-left:1px solid var(--border);
  display:flex; flex-direction:column;
  transform: translateX(104%); transition: transform var(--dur-med) var(--ease);
}
.cart-drawer.is-open{ transform: translateX(0); }
.cart-drawer__head{ flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--border-soft); }
.cart-drawer__head h3{ font-size:20px; }
.cart-drawer__body{
  flex:1 1 auto;
  min-height:0; /* the actual fix: without this, a flex child's default min-height:auto lets it grow to fit its content (e.g. every cart item) instead of respecting flex:1 and scrolling internally — which is exactly what was pushing the Place Order button off the bottom of the screen. */
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding: 14px 18px; display:flex; flex-direction:column; gap:12px;
}
.cart-drawer__foot{
  flex:0 0 auto; /* never part of the scroll area, never compressible — always fully visible */
  position:sticky; bottom:0; /* defensive second layer: even if some browser's flex implementation misbehaves, sticky still pins this to the bottom of the scroll container */
  background: var(--glass-strong);
  padding: 16px 22px 22px; border-top:1px solid var(--border-soft);
}
.cart-total-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-size:15px; }
.cart-total-row strong{ font-size:20px; color: var(--gold); }
.cart-note{ margin-top:10px; font-size:12px; color: var(--danger); text-align:center; }

.cart-line{ padding:12px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md); }
.cart-line.is-new{ animation: fadeUp .3s var(--ease) both; }
.cart-line__top{ display:flex; align-items:flex-start; gap:12px; }
.cart-line__media{
  width:44px; height:44px; border-radius:12px; flex-shrink:0; overflow:hidden;
  background: linear-gradient(155deg, var(--surface-3), var(--surface-2)); border:1px solid var(--border);
  color: var(--gold); display:flex; align-items:center; justify-content:center;
}
.cart-line__media svg{ width:22px; height:22px; }
.cart-line__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.cart-line__info{ flex:1; min-width:0; }
.cart-line__name{ font-size:13.5px; font-weight:600; line-height:1.35; }
.cart-line__price{ font-size:12px; color: var(--text-faint); margin-top:3px; }
.cart-line__remove{ width:26px; height:26px; border-radius:50%; background: var(--surface-2); border:none; color: var(--text-faint); font-size:13px; flex-shrink:0; transition: all var(--dur-fast); }
.cart-line__remove:hover{ background: var(--danger); color:#fff; }
.cart-line__bottom{ display:flex; justify-content:flex-end; margin-top:10px; }

/* =========================================================
   MODALS (auth / checkout)
   ========================================================= */
.modal-shade{ position:fixed; inset:0; z-index:80; background: rgba(6,5,3,.6); backdrop-filter: blur(4px); opacity:0; pointer-events:none; transition: opacity var(--dur-med) var(--ease); }
.modal-shade.is-open{ opacity:1; pointer-events:auto; }

.modal{
  position:fixed; left:50%; top:50%; z-index:81;
  width: min(420px, 90vw); max-height:88vh; overflow-y:auto;
  background: var(--bg-elev); border:1px solid var(--border); border-radius: var(--radius-xl);
  padding: 34px 28px 28px; text-align:center;
  box-shadow: var(--shadow-2);
  transform: translate(-50%,-46%) scale(.94); opacity:0; pointer-events:none;
  transition: transform var(--dur-med) var(--ease-spring), opacity var(--dur-fast) var(--ease);
}
.modal.is-open{ transform: translate(-50%,-50%) scale(1); opacity:1; pointer-events:auto; }
.modal__close{ position:absolute; top:16px; right:16px; }
.modal__ico{ font-size:32px; margin-bottom:8px; }
.modal h3{ font-size:22px; margin-bottom:6px; }
.modal p{ color: var(--text-dim); font-size:13.5px; margin-bottom:20px; line-height:1.5; }
.auth-step{ animation: fadeUp .35s var(--ease) both; }

.otp-boxes{ display:flex; gap:10px; justify-content:center; margin-bottom:14px; }
.otp-box{
  width:52px; height:58px; text-align:center; font-size:22px; font-weight:700;
  border-radius: var(--radius-md); border:1px solid var(--border); background: var(--surface-2); color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow .22s var(--ease-spring), transform .22s var(--ease-spring);
}
/* PIN boxes are visually masked (dots) via -webkit-text-security instead
   of type="password". type="password" on 6 separate, auto-advancing
   fields made mobile browsers pop their own password-autofill /
   suggestion bar in and out above the keyboard on EVERY digit as focus
   jumped box to box — that's what read as the page "shaking". Masking
   with CSS instead keeps the dot appearance with none of that native
   chrome. (Firefox doesn't support text-security and will show the
   digit briefly instead of a dot — a harmless fallback, not a security
   issue, since the PIN itself is never sent in plain text and the box
   still isn't a real password field for any password manager to grab.) */
.pin-box{ -webkit-text-security: disc; text-security: disc; font-size:26px; }
.otp-box:focus{ outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,65,12,.16); transform: translateY(-2px); }
.otp-box.is-filled{ border-color: var(--gold); animation: otpPop .32s var(--ease-spring) both; }
@keyframes otpPop{
  0%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(194,65,12,.35); }
  40%{ transform: scale(1.16); box-shadow: 0 0 0 6px rgba(194,65,12,.16); }
  100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(194,65,12,0); }
}
.otp-box.is-invalid{
  border-color:#ff4d4f; color:#ff4d4f;
  animation: fieldShake .42s cubic-bezier(.36,.07,.19,.97) both;
}
.otp-box[disabled]{ opacity:.45; }

/* Success state for the Privacy PIN gate — held for ~550ms (see
   playPinGateSuccess in app.js) so a correct PIN feels confirmed
   before the modal closes, instead of just vanishing. */
.pin-gate--success .otp-box{
  border-color:#22C55E; background: rgba(34,197,94,.12); color:#22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.pin-gate--success #pinGateIcon{ animation: pinUnlockPop .5s var(--ease-spring) both; }
@keyframes pinUnlockPop{
  0%{ transform: scale(1) rotate(0deg); }
  45%{ transform: scale(1.35) rotate(-10deg); }
  100%{ transform: scale(1) rotate(0deg); }
}
.demo-otp-hint{ font-size:12px; color: var(--gold); background: rgba(194,65,12,.1); border:1px dashed var(--gold); border-radius:10px; padding:8px 10px; margin-bottom:16px; }
.linklike{ background:none; border:none; color: var(--gold); font-weight:600; font-size:12.5px; padding:0; margin-top:12px; cursor:pointer; }
.linklike:hover{ text-decoration: underline; }
.linklike--inline{ margin-top:0; display:inline; font-size:inherit; }

.otp-boxes--6 .otp-box{ width:40px; height:50px; font-size:19px; }
.otp-boxes--6{ gap:7px; }

/* OTP countdown — a slim progress bar that drains over the 90s validity
   window, plus a mm:ss readout. Turns red and switches copy once the
   code has expired, and the Resend button only appears at that point. */
.otp-timer{ display:flex; flex-direction:column; align-items:center; gap:6px; margin: 2px 0 14px; }
.otp-timer__row{ display:flex; align-items:center; gap:8px; font-size:12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.otp-timer__dot{ width:6px; height:6px; border-radius:50%; background: var(--gold); animation: pulse-dot 1.1s ease-in-out infinite; }
.otp-timer__track{ width:100%; max-width:220px; height:4px; border-radius:3px; background: var(--surface-3); overflow:hidden; }
.otp-timer__bar{ height:100%; width:100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transform-origin:left; transition: width 1s linear, background .3s var(--ease); }
.otp-timer.is-expired .otp-timer__row{ color:#ff4d4f; font-weight:600; }
.otp-timer.is-expired .otp-timer__dot{ background:#ff4d4f; animation:none; }
.otp-timer.is-expired .otp-timer__bar{ background:#ff4d4f; width:0%; }
.otp-timer.is-warning .otp-timer__bar{ background: linear-gradient(90deg,#ff9d4d,#ff4d4f); }

.modal__ico--success{ font-size:44px; }

/* -------- auth modal: switch between login/signup -------- */
.auth-switch{
  margin-top:18px; padding-top:16px; border-top:1px solid var(--border-soft);
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.auth-switch span{ font-size:12.5px; color: var(--text-dim); }
.auth-switch .btn{ margin:0; }

/* -------- password strength meter -------- */
.pwd-strength{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.pwd-strength__track{
  flex:1; height:5px; border-radius:4px; background: var(--surface-3); overflow:hidden;
}
.pwd-strength__bar{
  height:100%; width:0%; border-radius:4px; background: var(--danger);
  transition: width .25s var(--ease), background-color .25s var(--ease);
}
.pwd-strength__bar.lvl-1{ background: var(--danger); }
.pwd-strength__bar.lvl-2{ background: #D89B3C; }
.pwd-strength__bar.lvl-3{ background: var(--emerald); }
.pwd-strength__label{ font-size:11.5px; font-weight:700; color: var(--text-dim); min-width:64px; text-align:right; }

.checkout-summary{ text-align:left; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md); padding:14px; margin-bottom:16px; font-size:13.5px; }
.checkout-summary .cs-row{ display:flex; justify-content:space-between; padding:4px 0; color: var(--text-dim); gap:10px; }
.checkout-summary .cs-total{ display:flex; justify-content:space-between; padding-top:10px; margin-top:8px; border-top:1px dashed var(--border-soft); font-weight:700; color: var(--gold); }

/* =========================================================
   TOAST
   ========================================================= */
.toast{
  position:fixed; left:50%; bottom:26px; z-index:100;
  transform: translate(-50%, 20px); opacity:0; pointer-events:none;
  background: var(--glass-strong); backdrop-filter: blur(16px);
  border:1px solid var(--border); color: var(--text);
  padding: 13px 22px; border-radius: 999px; font-size:13.5px; font-weight:500;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-med) var(--ease-spring), opacity var(--dur-fast) var(--ease);
  display:flex; align-items:center; gap:8px; max-width: 90vw; text-align:center;
}
.toast.is-visible{ transform: translate(-50%, 0); opacity:1; }

/* =========================================================
   ORDER STATUS — cancelled
   ========================================================= */
.order-card__status.cancelled{ background: rgba(209,85,63,.14); color: var(--danger); }
.order-card__status.confirmed{ background: rgba(194,65,12,.15); color: var(--gold); }
.order-card__status.preparing{ background: rgba(90,130,214,.16); color: #5A82D6; }
/* "Arrived" sits between Preparing and Delivered — the admin's Notify
   Order broadcast landed here, but nobody's verified this specific order
   in the Verify Orders panel yet. Purple keeps it visually distinct from
   both the blue "preparing" and the green "delivered" it sits between. */
.order-card__status.arrived{ background: rgba(124,58,237,.16); color: #7C3AED; }
.order-card--cancelled{ opacity:.72; }

/* =========================================================
   ORDER PROGRESS — animated line-stepper (Pending -> Confirmed ->
   Preparing -> Delivered), styled after the progress trackers seen in
   top-rated food delivery apps.
   ========================================================= */
.order-progress{
  position:relative; height:54px; margin-top:16px;
}
.order-progress__track{
  position:absolute; top:9px; left:12.5%; right:12.5%; height:3px;
  background: var(--surface-3); border-radius:3px; z-index:0;
}
.order-progress__fill{
  position:absolute; top:9px; left:12.5%; height:3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  border-radius:3px; z-index:1;
  transition: width .7s var(--ease-spring);
}
/* The traveling "tracker" itself — a small glowing dot that rides the
   leading edge of the fill, left-offset by the same 12.5% the track is
   inset by. It's what makes the bar unmistakably a live, moving tracker
   rather than a bar that just happens to change width between polls. */
.order-progress__cursor{
  position:absolute; top:5px; width:11px; height:11px; border-radius:50%;
  background: var(--emerald); z-index:3; pointer-events:none;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(47,125,95,.22), 0 1px 4px rgba(0,0,0,.25);
  transition: left .7s var(--ease-spring);
  animation: orderProgressCursorPulse 1.4s ease-in-out infinite;
}
@keyframes orderProgressCursorPulse{
  0%,100%{ transform: translateX(-50%) scale(1); }
  50%{ transform: translateX(-50%) scale(1.25); }
}
/* Each stage marker is positioned by the exact same STAGE_POSITIONS
   value (12.5/37.5/62.5/87.5%) that the track's own ends and the
   cursor's math are built on — not by handing 4 flex items equal
   widths and hoping the math coincides. left:X% + translateX(-50%)
   centers each dot/label pair precisely on its point on the line,
   however the label text wraps and on any screen width.
   Width is intentionally narrower than the 25%-apart grid the dots
   loosely suggest — the dots themselves sit at UNEVEN positions
   (12.5/31.25/59/87.5%, following PROGRESS_BOUNDS), so on the
   narrower gaps (like Pending→Confirmed) a 25%-wide box centered on
   each dot overlapped its neighbor by several percent, and longer
   words like "CONFIRMED" visually ran into the label beside it —
   reading as one merged word instead of two separate stages. 20% keeps
   every label clearly inside its own space with room to spare. */
.order-progress__step{
  position:absolute; top:6px; width:20%;
  transform: translateX(-50%);
  z-index:2; display:flex; flex-direction:column;
  align-items:center; gap:6px;
}
/* Stage dots are now plain, static waypoint markers — just a reference
   for where each label sits on the track. They used to pulse and glow
   on the "active" stage, which combined with the traveling cursor dot
   (added below) to look like two separate trackers fighting for
   attention right next to each other. There is only one live indicator
   now: the cursor. These dots just fill in solid once the cursor has
   passed them, and never animate on their own. */
.order-progress__dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--surface-3); border:2px solid var(--surface-3);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.order-progress__step--done .order-progress__dot,
.order-progress__step--active .order-progress__dot{
  background: var(--gold); border-color: var(--gold);
}
.order-progress__step--upcoming .order-progress__dot{ background: var(--surface-2); }
/* Slightly smaller and tighter than before (was 9.5px / letter-spacing
   0) so each stage's word reliably fits inside its own narrower 20%-wide
   box instead of spilling into the next label — that spillover, not the
   dots' own positions, was what made adjacent stage names (e.g.
   "PENDING" and "CONFIRMED") look like they'd merged into one word. */
.order-progress__label{
  font-size:8.5px; font-weight:700; color: var(--text-faint);
  text-align:center; letter-spacing:.1px; text-transform:uppercase;
  transition: color .4s var(--ease); line-height:1.3; max-width: 100%;
  white-space:nowrap;
}
.order-progress__step--done .order-progress__label,
.order-progress__step--active .order-progress__label{ color: var(--text); }

/* =========================================================
   TRACK MY ORDER — dedicated page: id/status card (with the SAME
   horizontal .order-progress tracker used in the admin dashboard —
   see orderProgressHTML() — reused here as-is rather than maintaining
   a second, separate design), and the live map below it.
   ========================================================= */
.track-order-card{
  background: var(--surface); border:1px solid var(--border-soft);
  border-radius: var(--radius-md); box-shadow: var(--shadow-1);
  padding:16px 16px 18px; margin-bottom:14px;
  animation: orderCardIn .4s var(--ease);
}
.track-order-card__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

/* Smooths every order-card status/content swap on live-refresh so a
   background poll never reads as a jarring flash. */
.order-card{ animation: orderCardIn .35s var(--ease); }
@keyframes orderCardIn{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none; } }
.order-card__status{ transition: background-color .35s var(--ease), color .35s var(--ease); cursor:pointer; white-space:nowrap; }
.order-card__status:active{ transform: scale(.96); }
.order-card__delivery{
  font-size:12px; font-weight:600; color: var(--emerald);
  margin-top:12px; display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:nowrap;
}
.order-card__delivery-text{
  display:flex; align-items:center; gap:6px; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* "Track my order" now reads as an inline text link sitting right next
   to the delivery time, not a button — no fill, no border, no pill
   shape, just underlined link-colored text with a small pin glyph. It
   uses a dedicated blue (--link) rather than the brand gold or the
   emerald already used for delivery/status text on this same card, so
   it never gets lost against — or confused with — either of those. */
.order-card__track-link{
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; font-size:12px; font-weight:700; color: var(--link);
  text-decoration: underline; text-underline-offset: 2px;
  cursor:pointer; white-space:nowrap; flex-shrink:0;
  display:inline-flex; align-items:center; gap:4px;
  transition: opacity .15s var(--ease);
}
.order-card__track-link:hover{ opacity:.75; }
.order-card__track-link:active{ opacity:.55; }
/* Professional outline pin (replaces the old 📍 emoji, which rendered
   inconsistently across platforms/fonts) — sized and colored to sit
   quietly inline with the underlined label text. */
.order-card__track-ico{ width:13px; height:13px; flex-shrink:0; }
/* Stand-alone (no delivery time yet) — right-align on its own. */
.order-card__delivery:has(> .order-card__track-link:only-child){ justify-content:flex-end; }

/* =========================================================
   MY ORDERS STAGE LINE — replaces the old mini progress bar on each
   order card. A single quiet line of plain-language status instead of
   a visual tracker (the dedicated Track My Order page is where that
   lives now); a small pulsing dot echoes the same "still moving"
   feeling the old cursor gave, without redrawing a whole bar every
   time the underlying stage shifts.
   ========================================================= */
.order-card__stage{
  display:flex; align-items:center; gap:8px;
  margin-top:14px; padding:9px 13px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  font-size:12.5px; font-weight:700; color: var(--text);
  animation: orderCardIn .35s var(--ease);
}
.order-card__stage-dot{
  width:8px; height:8px; border-radius:50%; flex:0 0 auto;
  background: var(--gold);
  animation: orderStageDotPulse 1.6s ease-in-out infinite;
}
@keyframes orderStageDotPulse{
  0%,100%{ opacity:.55; transform:scale(.85); }
  50%{ opacity:1; transform:scale(1.15); }
}
.order-card__stage--delivered{ background: rgba(47,125,95,.12); color: var(--emerald); }
.order-card__stage--delivered .order-card__stage-dot{ background: var(--emerald); animation:none; }
.order-card__stage--confirmed-reached,
.order-card__stage--preparing-reached{ background: rgba(90,130,214,.14); color:#5A82D6; }
.order-card__stage--confirmed-reached .order-card__stage-dot,
.order-card__stage--preparing-reached .order-card__stage-dot{ background:#5A82D6; animation:none; }
/* ---- "Not taking orders this session" note — shown on a held order
   once today's ordering window (closing time + extra time) has closed
   without the pool reaching its minimum. Uses the same warm danger tone
   as cancelled-order styling so it reads as a soft, final notice rather
   than an error. ---- */
.order-card__session-ended{
  display:flex; align-items:flex-start; gap:8px;
  margin-top:12px; padding:10px 12px;
  background: rgba(209,85,63,.1); border:1px solid rgba(209,85,63,.24);
  border-radius: var(--radius-sm);
  font-size:12.5px; line-height:1.55; color: var(--text-dim);
  animation: orderCardIn .35s var(--ease);
}
.order-card__session-ended-ico{ font-size:15px; line-height:1.4; flex-shrink:0; }
.order-card__session-ended:empty{ display:none; margin-top:0; padding:0; border:none; }
.order-card__actions{ display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.order-card__actions:empty{ margin-top:0; }
.order-card__actions .btn{ flex:1; min-width:120px; }

/* Order-placed modal: reuses the shared .modal system so it dims the
   background properly and never overlaps card content underneath it
   (the old toast floated over the menu list with nothing dimmed behind
   it, which read as a misaligned/broken overlay). */
.order-placed-modal__ico{ font-size:44px; }
.status-info-modal__ico{ font-size:44px; }
.order-placed-modal__meta{
  font-size:12.5px; font-weight:600; color: var(--text-dim);
  background: var(--surface); border:1px solid var(--border-soft);
  border-radius: 999px; padding:8px 14px; margin: 4px 0 16px; display:inline-block;
}
/* ---- Order card cancel-status note + "Cancellation terms" link — now a
   SINGLE paragraph instead of two stacked blocks. The note text (if any)
   and the terms link render inline, side by side, with a small gap
   between them (the note's own trailing space plus the link's ::before
   icon spacing) — reading as one natural line like "The kitchen has
   started preparing this order — it can no longer be cancelled.
   ℹ Cancellation terms" rather than two disconnected rows. When there's
   no note text (order still freely cancellable), the paragraph just
   holds the terms link on its own, unchanged from before. ---- */
.order-card__cancel-note{
  margin-top:12px; font-size:12px; color: var(--text-faint);
  text-align:center; line-height:1.6;
}
.order-card__cancel-note-text{ margin-right:4px; }

/* ---- Cancellation-mode selector (settings) ---- */
.cancel-mode-panel{ margin-top:14px; padding-top:14px; border-top:1px dashed var(--border-soft); }
.cancel-mode-panel[hidden]{ display:none; }

/* ---- Cancellation terms modal body ---- */
.cancel-terms__body{ text-align:left; margin: 4px 0 18px; }
.cancel-terms__body p{
  font-size:13.5px; line-height:1.5; color: var(--text-dim);
  padding:10px 0; border-bottom:1px solid var(--border-soft);
}
.cancel-terms__body p:last-child{ border-bottom:none; }

/* ---- Order card "Cancellation terms" control — a lightweight,
   hyperlink-style text trigger rather than a full block button. Now sits
   inline inside .order-card__cancel-note, right beside its note text
   (see above), rather than in its own row underneath. ---- */
.order-card__terms-link{
  display:inline-flex; align-items:center; gap:5px;
  background:none; border:none; padding:4px 2px; margin:0;
  font-size:12.5px; font-weight:600; letter-spacing:.1px;
  color: var(--text-dim); cursor:pointer;
  text-decoration: underline; text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease), transform .15s var(--ease);
}
.order-card__terms-link::before{ content:"ℹ"; font-size:11px; opacity:.75; text-decoration:none; }
.order-card__terms-link:hover{ color: var(--text); text-decoration-color: currentColor; }
.order-card__terms-link:active{ transform: scale(.96); }

/* ---- Final-stage completion glow — a small celebratory pulse the
   moment the last 8-10% closes out to "Order reached", so completing
   the bar reads as a deliberate, satisfying finish rather than just
   another silent width change. ---- */
.order-progress__step--done.order-progress__step:last-child .order-progress__dot,
.order-card--reached .order-progress__step--active .order-progress__dot{
  animation: orderProgressComplete .6s var(--ease-spring);
}
@keyframes orderProgressComplete{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.35); }
  100%{ transform: scale(1); }
}

/* =========================================================
   LIVE TRACKER — a single, real, tile-based map (Leaflet +
   CARTO/OpenStreetMap tiles, road-snapped route) shown ONCE above
   the order list, not repeated per card, since every order shares
   the same Shadab Restaurant → SSN College journey. A heading-aware
   vehicle marker glides along the real route in sync with whichever
   order it currently represents.
   ========================================================= */
.live-tracker{
  position:relative; margin-bottom:16px; border-radius: var(--radius-md);
  overflow:hidden; border:1px solid var(--border-soft);
  box-shadow: var(--shadow-1);
  background: var(--surface);
  animation: orderCardIn .4s var(--ease);
}
.live-tracker__map{ width:100%; height:230px; background: var(--surface-2); position:relative; }
/* Placeholder shown instead of the map before the overall closing time
   (closing time + extra/grace minutes) arrives — swapped in/out of the
   exact same slot #liveTracker occupies via applyLiveMapState(). */
.live-tracker-pending{
  display:flex; align-items:center; gap:12px;
  margin-bottom:16px; padding:16px 18px; border-radius: var(--radius-md);
  border:1px solid var(--border-soft); background: var(--surface);
  box-shadow: var(--shadow-1);
  animation: orderCardIn .4s var(--ease);
}
.live-tracker-pending__ico{
  flex-shrink:0; font-size:24px; line-height:1;
  animation: liveTrackerVeilBob 1.4s ease-in-out infinite;
}
/* "Order picked" — the order is fully verified/delivered, there's no
   live position left to track, so the icon sits still (no bob) and the
   card reads as a calm, finished state rather than "still in progress". */
.live-tracker-pending--picked{ border-color: rgba(47,125,95,.35); background: rgba(47,125,95,.08); }
.live-tracker-pending--picked .live-tracker-pending__ico{ animation:none; }
.live-tracker-pending--picked .live-tracker-pending__text{ color: var(--emerald); }
.live-tracker-pending__copy{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.live-tracker-pending__text{ font-size:13px; font-weight:600; color: var(--text); }
.live-tracker-pending__timer{
  font-size:15px; font-weight:800; color: var(--gold); letter-spacing:.01em;
  font-variant-numeric: tabular-nums;
}
/* Final-minute countdown — visibly "running out": red, and a soft pulse
   on every tick instead of just quietly counting down like the calmer
   "minutes" phase above it. */
.live-tracker-pending__timer.is-urgent{
  color:#DC2626; animation: liveTrackerPendingUrgent 1s ease-in-out infinite;
}
@keyframes liveTrackerPendingUrgent{
  0%,100%{ opacity:1; } 50%{ opacity:.55; }
}
/* Loading veil — covers the map the instant it's created and only
   fades away once live-tracker.js has both (a) a real progress % to
   show and (b) settled on final route geometry (the real road-snapped
   OSRM route, or the straight-line fallback if that never arrives).
   Without this, the map used to reveal a straight-line route at 0%
   immediately, then visibly jump to a different road-snapped position
   a moment later — this replaces that glitch with one clean reveal. */
.live-tracker__veil{
  position:absolute; inset:0; z-index:1000;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  background: linear-gradient(100deg, var(--surface-2) 20%, var(--surface-3) 40%, var(--surface-2) 60%);
  background-size: 250% 100%;
  animation: liveTrackerVeilShimmer 1.5s ease-in-out infinite;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.live-tracker__veil.is-hidden{ opacity:0; }
.live-tracker__veil-ico{ font-size:22px; animation: liveTrackerVeilBob 1s ease-in-out infinite; }
.live-tracker__veil-label{ font-size:11px; font-weight:700; letter-spacing:.02em; color: var(--text-dim); }
@keyframes liveTrackerVeilShimmer{ 0%{ background-position:0 0; } 100%{ background-position:-250% 0; } }
@keyframes liveTrackerVeilBob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-4px); } }
/* Leaflet needs real pixel dimensions on its tile/pane layers; letting
   our own border-radius + overflow:hidden clip the square tile canvas
   is what gives the map its rounded-card look without fighting Leaflet's
   internal sizing. */
.live-tracker__map .leaflet-container{ width:100%; height:100%; font-family:inherit; background: var(--surface-2); }
.live-tracker__map .leaflet-control-attribution{
  font-size:9px; background: var(--glass); color: var(--text-faint);
}
.live-tracker__map .leaflet-control-attribution a{ color: var(--text-dim); }
.live-tracker__map .leaflet-control-zoom a{
  background: var(--surface); color: var(--text); border-color: var(--border-soft);
}
.live-tracker__map .leaflet-control-zoom a:hover{ background: var(--surface-2); }
/* The routing-machine plugin's turn-by-turn itinerary panel isn't part
   of this design — we draw our own route line and only use the plugin
   for real road-snapped coordinates, so its panel stays hidden. */
.leaflet-routing-container{ display:none !important; }

/* ---- Head bar above the customer Track My Order map — just the live
   status badge now (e.g. "Order confirmed"). The restaurant/college
   names used to also be repeated here, directly above the exact same
   two names shown in .live-tracker__stops below the map — removed so
   each place name appears exactly once. ---- */
.live-tracker__head{
  display:flex; align-items:center; justify-content:flex-start;
  gap:10px; flex-wrap:wrap;
  padding:11px 14px; background: var(--surface-2);
  border-bottom:1px solid var(--border-soft);
}
/* Inside the head bar the badge sits inline, not floating over the map. */
.live-tracker__head .live-tracker__badge{ position:static; flex-shrink:0; }
/* Small direction icon sitting between the two place names below the
   map, so "Shadab Restaurant" and "RGUKT-Ongole" visually read as a
   single from → to journey rather than two unconnected labels. */
.live-tracker__stops-arrow{
  flex-shrink:0; display:flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:50%; margin-top:2px;
  background: var(--surface-2); border:1px solid var(--border-soft);
  color: var(--gold);
}
.live-tracker__stops-arrow svg{ width:14px; height:14px; }

/* "Live route" badge, floating top-left over the map (default — only
   applies where it isn't nested in a .live-tracker__head/.admin-live-banner__head
   row, both of which switch it to position:static above). */
.live-tracker__badge{
  position:absolute; top:10px; left:10px; z-index:401;
  display:flex; align-items:center; gap:6px;
  background: var(--glass-strong); backdrop-filter: blur(6px);
  border:1px solid var(--border-soft); border-radius:999px;
  padding:5px 10px 5px 8px; font-size:10px; font-weight:700;
  letter-spacing:.3px; text-transform:uppercase; color: var(--text-dim);
  box-shadow: var(--shadow-1);
}
.live-tracker__dot{
  width:7px; height:7px; border-radius:50%; background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(27,166,114,.22);
  animation: orderMapLiveDot 1.6s ease-in-out infinite;
}
@keyframes orderMapLiveDot{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.55; transform:scale(1.3); }
}

/* Origin/destination pins (rendered as Leaflet divIcons) */
.live-tracker__pin{ width:24px; height:32px; position:relative; }
.live-tracker__pin span{
  position:absolute; left:50%; top:0; width:22px; height:22px;
  border-radius:50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
  border:2px solid var(--bg-elev);
}
.live-tracker__pin--start span{ background: var(--gold); }
.live-tracker__pin--end span{ background: var(--emerald); }

/* Vehicle marker — an animated scooter glyph inside a pulsing
   brand-gold badge, the same "you are here" language Google Maps uses
   for a live position. Sizes bumped slightly (34px vs the old 30px)
   since an emoji glyph needs a touch more room than the vector arrow
   it replaced to read clearly at small map zoom levels. */
.live-tracker__vehicle{ position:relative; width:40px; height:40px; transition: opacity .18s var(--ease); }
/* Brief cross-fade used only when the real road-snapped route replaces
   the straight-line fallback AFTER the map has already been revealed
   to the person (a slow-network edge case) — swaps the vehicle to its
   correct position while invisible instead of visibly teleporting it. */
.live-tracker__vehicle--swap{ opacity:0; }
.live-tracker__vehicle-pulse{
  position:absolute; inset:0; border-radius:50%; background: var(--gold);
  opacity:.28; animation: liveTrackerPulse 1.8s ease-out infinite;
}
.live-tracker__vehicle.is-moving .live-tracker__vehicle-pulse{ animation-duration: 1s; }
@keyframes liveTrackerPulse{
  0%{ transform: scale(.55); opacity:.5; }
  100%{ transform: scale(1.25); opacity:0; }
}
/* A soft "contact shadow" under the scooter — grounds it on the map and
   breathes in sync with the bob below, instead of the glyph looking
   like it's floating flat on the tile layer. */
.live-tracker__vehicle::after{
  content:"";
  position:absolute; left:50%; bottom:2px; width:22px; height:7px;
  background: radial-gradient(closest-side, rgba(13,35,59,.4), transparent 75%);
  border-radius:50%; transform: translateX(-50%) scaleX(1);
  opacity:.55; transition: opacity .3s ease;
  pointer-events:none;
}
.live-tracker__vehicle.is-moving::after{
  animation: liveTrackerShadowPulse .9s ease-in-out infinite;
}
@keyframes liveTrackerShadowPulse{
  0%,100%{ transform: translateX(-50%) scaleX(1); opacity:.55; }
  50%{ transform: translateX(-50%) scaleX(.68); opacity:.3; }
}
/* Rotated every animation frame by live-tracker.js (a plain JS-driven
   glide, not a CSS transition) to face the real road bearing at each
   point along the route — kept deliberately separate from the bob
   animation on the glyph inside it (below) so the two never fight over
   the same `transform` property. The very short transition here just
   smooths out per-frame rounding, it isn't what creates the motion.
   No circular badge chrome anymore (no background fill, no border, no
   shadow ring) — the 🛵 glyph sits directly on the map, the way a flat
   marker icon would, instead of looking boxed inside a button-like
   disc. */
.live-tracker__vehicle-dot{
  position:absolute; inset:0; border-radius:0; background:none; border:none; box-shadow:none;
  display:flex; align-items:center; justify-content:center;
  transition: transform .12s linear;
  transform-origin:center;
}
/* Trailing speed streak — sits inside the rotor so it always points
   behind the direction of travel, however the vehicle is currently
   facing. Purely cosmetic, only plays while actually gliding. */
.live-tracker__vehicle-dot::before{
  content:"";
  position:absolute; top:50%; left:-15px; width:13px; height:2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65));
  border-radius:2px; transform: translateY(-50%); opacity:0;
}
.live-tracker__vehicle.is-moving .live-tracker__vehicle-dot::before{
  animation: liveTrackerSpeedStreak .55s ease-in-out infinite;
}
@keyframes liveTrackerSpeedStreak{
  0%{ opacity:0; transform: translateY(-50%) translateX(4px); }
  35%{ opacity:.85; }
  100%{ opacity:0; transform: translateY(-50%) translateX(-11px); }
}
.live-tracker__vehicle-glyph{
  font-size:26px; line-height:1; display:inline-block;
  filter: drop-shadow(0 2px 3px rgba(13,35,59,.45));
}
/* The 🙋‍♂️ "destination reached" glyph, rotated 90° clockwise from its
   default orientation — set in live-tracker.js the instant progress
   hits 100% (order arrived), removed again if that's ever undone. */
.live-tracker__vehicle-glyph--walker{ transform: rotate(90deg); }
/* A gentle up/down bob while actually between stops — a stationary
   scooter (just placed, or already delivered) stays perfectly still
   instead of looking like it's endlessly idling in place. */
.live-tracker__vehicle.is-moving .live-tracker__vehicle-glyph{
  animation: liveTrackerScooterBob .9s ease-in-out infinite;
}
@keyframes liveTrackerScooterBob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-2px); }
}
/* One-shot "arrived" flourish — fired exactly once by live-tracker.js
   the instant the glide actually reaches 100%, celebrating the moment
   the vehicle completes the route instead of just quietly stopping. */
.live-tracker__vehicle--arrived .live-tracker__vehicle-glyph{
  animation: liveTrackerArrivedBounce .8s var(--ease-spring);
}
@keyframes liveTrackerArrivedBounce{
  0%{ transform: scale(1) translateY(0); }
  30%{ transform: scale(1.4) translateY(-11px); }
  55%{ transform: scale(.9) translateY(2px); }
  78%{ transform: scale(1.1) translateY(-4px); }
  100%{ transform: scale(1) translateY(0); }
}
.live-tracker__vehicle--arrived .live-tracker__vehicle-pulse{
  animation: liveTrackerPulse .5s ease-out 2;
}

/* From/To footer strip — sits directly under the map, matching the
   card style used elsewhere for a from/to summary. */
.live-tracker__stops{
  position:relative; display:flex; align-items:flex-start;
  justify-content:space-between; gap:10px; padding:10px 12px;
  border-top:1px solid var(--border-soft);
}
.live-tracker__stop{ display:flex; align-items:flex-start; gap:7px; max-width:44%; }
.live-tracker__stop-ico{
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:11px;
  background: var(--surface-2); border:1px solid var(--border-soft); margin-top:1px;
}
.live-tracker__stop strong{ display:block; font-size:11.5px; font-weight:700; color: var(--text); line-height:1.3; }
.live-tracker__stop small{ display:block; font-size:10px; color: var(--text-faint); line-height:1.3; }
.live-tracker__stop--end{ text-align:right; flex-direction:row-reverse; }

/* -- ADMIN LIVE BANNER — the live-tracker map promoted to a full hero
   banner at the very top of the admin dashboard (above the page title
   and tabs), instead of being buried inside the All Orders panel. It
   stays the single source of truth for "where's the current order"
   across every admin tab, since tickAdminLiveTracker() (app.js) keeps
   it gliding once a second regardless of which tab is open. */
.admin-live-banner{
  margin: 18px 0 22px;
  border-radius: 22px;
  box-shadow: var(--shadow-1), 0 22px 44px -26px rgba(194,65,12,.4);
  animation: orderCardIn .45s var(--ease);
}
.admin-live-banner__head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap; padding:16px 16px 12px;
}
.admin-live-banner__title{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.admin-live-banner__kicker{
  font-size:10.5px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; color: var(--gold);
}
.admin-live-banner__route{
  font-size:14.5px; font-weight:800; color: var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* Inside the banner the badge sits in its own header row rather than
   floating over the map, so it no longer needs to be absolutely
   positioned. */
.admin-live-banner .live-tracker__badge{ position:static; flex-shrink:0; }
.admin-live-banner .live-tracker__map{
  height: 240px; width: calc(100% - 24px); margin: 0 12px;
  border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border-soft);
}
.admin-live-banner .live-tracker__stops{ border-top:none; padding-top:14px; }
@media (max-width: 720px){
  .admin-live-banner .live-tracker__map{ height: 190px; }
}
@media (max-width: 420px){
  .admin-live-banner .live-tracker__map{ height: 160px; }
  .admin-live-banner__route{ font-size:12.5px; }
}

.admin-stat--danger strong{ color: var(--danger); }

/* =========================================================
   FILTER CHIPS (admin — all orders status filter)
   ========================================================= */
.filter-chips-row{ display:flex; align-items:center; gap:8px; margin-bottom:16px; }
.filter-chips{ display:flex; gap:8px; flex-wrap:wrap; flex:1; min-width:0; margin-bottom:0; }
.filter-chip{
  padding:8px 16px; border-radius:999px; font-size:12.5px; font-weight:600;
  background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim);
  transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover{ border-color: var(--gold); color: var(--text); }
.filter-chip.is-active{ background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#FFFFFF; border-color: transparent; box-shadow: var(--shadow-gold); }

/* =========================================================
   ADMIN SETTINGS — list-first, tap-to-expand
   ========================================================= */
.settings-list{ display:flex; flex-direction:column; gap:10px; max-width:520px; animation: fadeUp .35s var(--ease) both; }
.settings-list__item{
  display:flex; align-items:center; gap:14px; width:100%; text-align:left;
  background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding:16px 18px; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.settings-list__item:hover{ border-color: var(--gold); transform: translateX(2px); }
.settings-list__item:active{ transform: scale(.98); }
.settings-list__ico{ font-size:22px; flex-shrink:0; width:40px; height:40px; display:flex; align-items:center; justify-content:center; background: var(--surface-2); border-radius: var(--radius-md); }
.settings-list__body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.settings-list__body strong{ font-size:14.5px; }
.settings-list__body small{ color: var(--text-faint); font-size:12px; }
.settings-list__chev{ font-size:20px; color: var(--text-faint); flex-shrink:0; }

.settings-detail{ animation: fadeUp .35s var(--ease) both; }
.settings-detail__back{
  display:inline-flex; align-items:center; gap:6px; margin-bottom:18px;
  font-size:13.5px; font-weight:600; color: var(--gold); background:none;
}
.settings-detail__back:hover{ text-decoration: underline; }
.settings-subpanel{ display:none; }
.settings-subpanel.is-active{ display:block; animation: fadeUp .3s var(--ease) both; }

.admin-contacts-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }

/* =========================================================
   CONTACT US MODAL
   ========================================================= */
.contact-modal .contact-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:18px; max-height: 40vh; overflow-y:auto; }
.contact-row{
  display:flex; align-items:center; gap:14px; padding:14px 16px;
  background: var(--surface-2); border:1px solid var(--border-soft); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.contact-row:hover{ border-color: var(--gold); transform: translateX(2px); }
.contact-row__ico{ font-size:20px; flex-shrink:0; }
.contact-row__body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.contact-row__body strong{ font-size:14px; }
.contact-row__body span{ font-size:13px; color: var(--text-dim); }
.contact-row__body small{ font-size:11.5px; color: var(--text-faint); }
.contact-whatsapp-btn{ background: linear-gradient(180deg, #2fbf6a, #1f9b52); }
.contact-whatsapp-btn:hover{ filter: brightness(1.06); }

/* =========================================================
   HOME PAGE FOOTER — delivery window + WhatsApp CTA
   ========================================================= */
.home-footer{
  max-width: 1180px; margin: 8px auto 40px; padding: 0 20px;
  display:flex; flex-direction:column; gap:14px;
}
.home-footer__card{
  display:flex; align-items:center; gap:16px;
  background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 18px 22px;
}
.home-footer__ico{ font-size:26px; flex-shrink:0; }
.home-footer__body{ display:flex; flex-direction:column; gap:2px; }
.home-footer__body strong{ font-size:14.5px; }
.home-footer__body span{ color: var(--gold); font-weight:700; font-size:15px; }
.home-footer__body small{ color: var(--text-faint); font-size:12px; }

.home-footer__whatsapp{
  display:flex; align-items:center; gap:14px;
  background: linear-gradient(135deg, rgba(47,191,106,.14), rgba(31,155,82,.08));
  border:1px solid rgba(47,191,106,.3); border-radius: var(--radius-lg);
  padding: 16px 20px; transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.home-footer__whatsapp:hover{ transform: translateY(-2px); border-color: #2fbf6a; }
.home-footer__whatsapp-ico{ color:#2fbf6a; flex-shrink:0; width:40px; height:40px; display:flex; align-items:center; justify-content:center; background: rgba(47,191,106,.14); border-radius:50%; }
.home-footer__whatsapp-text{ flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.home-footer__whatsapp-text strong{ font-size:14.5px; }
.home-footer__whatsapp-text small{ color: var(--text-faint); font-size:12px; }
.home-footer__whatsapp-arrow{ font-size:22px; color:#2fbf6a; flex-shrink:0; }

.brand-strip__mark{ display:flex; align-items:center; gap:8px; }
.brand-strip__diamond{ color: var(--gold); font-size:12px; }
.brand-strip__name{ font-family:'Poppins', sans-serif; font-weight:800; font-size:20px; letter-spacing:-.01em; }
.brand-strip__sub{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color: var(--text-faint); }
.brand-strip__tagline{ max-width:320px; font-size:13px; color: var(--text-faint); line-height:1.6; }
.brand-strip__badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.brand-strip__badges span{
  font-size:11px; padding:6px 12px; border-radius:999px;
  background: var(--surface); border:1px solid var(--border-soft); color: var(--text-faint);
}

/* =========================================================
   SITE FOOTER — world-class multi-column footer with
   quick links, service info, copyright and developer credit.
   Animates gently into view the first time it's scrolled to.
   ========================================================= */
.site-footer{
  margin-top:10px; padding:36px 22px 24px;
  border-top:1px solid var(--border-soft);
  opacity:0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.site-footer.is-visible{ opacity:1; transform:none; }
.site-footer__top{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:28px 20px;
  max-width:1180px; margin:0 auto;
}
.site-footer__col{ display:flex; flex-direction:column; gap:10px; align-items:flex-start; text-align:left; }
.site-footer__col--brand{ gap:12px; }
.site-footer__heading{
  font-size:11px; letter-spacing:.16em; text-transform:uppercase; color: var(--gold);
  margin:0 0 2px; font-weight:700;
}
.site-footer__col a, .site-footer__static{
  font-size:13.5px; color: var(--text-dim); text-decoration:none;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  display:inline-block;
}
.site-footer__col a:hover{ color: var(--gold); transform: translateX(3px); }
.site-footer__static b{ color: var(--text); font-weight:600; }
.site-footer__divider{
  max-width:1180px; margin:28px auto 18px; height:1px;
  background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
}
.site-footer__bottom{
  max-width:1180px; margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px;
}
.site-footer__copyright{ font-size:12px; color: var(--text-faint); margin:0; }
.site-footer__credit{
  background:none; border:none; cursor:pointer; font: inherit;
  font-size:12.5px; color: var(--text-faint); display:inline-flex; align-items:center; gap:5px;
  padding:6px 10px; border-radius:999px; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.site-footer__credit:hover{ color: var(--gold); background: var(--surface-2); }
.site-footer__credit .sidenav__credit-name{ color: var(--gold); font-weight:600; }

@media (max-width:820px){
  .site-footer__top{ grid-template-columns: 1fr 1fr; }
  .site-footer__col--brand{ grid-column: 1 / -1; align-items:flex-start; }
}
@media (max-width:520px){
  .site-footer__top{ grid-template-columns: 1fr; }
  .site-footer__bottom{ flex-direction:column; align-items:flex-start; }
}

/* =========================================================
   CHECKOUT — delivery window note
   ========================================================= */
.delivery-window-note{
  display:flex; align-items:center; gap:10px; font-size:13px; color: var(--text-dim);
  background: var(--surface-2); border:1px solid var(--border-soft); border-radius: var(--radius-md);
  padding:12px 14px; margin-bottom:18px;
}
.delivery-window-note strong{ color: var(--gold); }
.delivery-window-note__ico{ font-size:16px; flex-shrink:0; }

/* =========================================================
   MY ORDERS — status filter tabs (All / Pending / Confirmed /
   Preparing / Delivered). Same pill language as the admin's
   filter-chips, sized down slightly and with a live count badge
   per tab so a customer can tell at a glance how many orders sit
   in each bucket without tapping through.
   ========================================================= */
/* ---- My Orders: today/all day-scope toggle. By default the list only
   shows today's orders — a fresh, uncluttered view each new day, without
   ever deleting older orders — with a plain-text link to bring the full
   history back into view. ---- */
/* ---- Toolbar wrapper: groups the day-scope toggle and the status
   filter tabs into ONE spaced block instead of two separately-margined
   elements stacked on top of each other — this, plus the shorter
   .page-head--orders above it, is what closes up the tall stretch of
   near-empty space that used to sit above the first order card.
   Collapses to nothing when both children are hidden (no orders yet),
   so an empty state doesn't leave a dead gap behind either. ---- */
.orders-toolbar{ display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.orders-toolbar:not(:has(> *:not([hidden]))){ display:none; }
.orders-day-toggle{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  font-size:12.5px; color: var(--text-faint);
}
.orders-day-toggle[hidden]{ display:none; }
.link-btn{
  background:none; border:none; padding:2px; margin:0;
  font-size:12.5px; font-weight:600; color: var(--gold); cursor:pointer;
  text-decoration: underline; text-decoration-color: rgba(194,65,12,.4);
  text-underline-offset: 3px;
}
.link-btn:hover{ color: var(--emerald); text-decoration-color: currentColor; }
.link-btn:active{ transform: scale(.97); }
.orders-filter-tabs{
  display:flex; gap:8px; overflow-x:auto; padding-bottom:2px;
  scrollbar-width:none;
}
.orders-filter-tabs::-webkit-scrollbar{ display:none; }
.orders-filter-tabs[hidden]{ display:none; }
.orders-filter-tab{
  display:flex; align-items:center; gap:6px; flex-shrink:0;
  padding:8px 14px; border-radius:999px; font-size:12.5px; font-weight:600;
  background: var(--surface); border:1px solid var(--border-soft); color: var(--text-dim);
  transition: all var(--dur-fast) var(--ease);
}
.orders-filter-tab:hover{ border-color: var(--gold); color: var(--text); }
.orders-filter-tab.is-active{
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#FFFFFF;
  border-color: transparent; box-shadow: var(--shadow-gold);
}
.orders-filter-tab__count{
  font-size:10.5px; font-weight:700; min-width:17px; height:17px; padding:0 4px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; background: var(--surface-2); color: var(--text-faint);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.orders-filter-tab.is-active .orders-filter-tab__count{ background: rgba(255,255,255,.22); color:#FFFFFF; }

/* =========================================================
   DELIVERY ARRIVED — below-header notification banner
   Reuses the existing .ordertime-strip (the same element that
   shows "Ordering closes in…" / "Kitchen closed…") so the
   notification appears exactly where the countdown clock
   normally lives, as requested — no separate banner competing
   for space under the header.
   ========================================================= */
.ordertime-strip.is-arrived{
  color:#1f8a52; font-weight:700; background: rgba(46,157,99,.12);
  animation: arrivedIn .45s var(--ease-spring);
}
.ordertime-strip.is-arrived .dot{
  background:#2e9d63; box-shadow:0 0 0 3px rgba(46,157,99,.22);
  animation: pulse-dot 1.4s infinite;
}
@keyframes arrivedIn{
  0%{ opacity:0; transform: translateY(-8px) scale(.98); }
  60%{ opacity:1; transform: translateY(1px) scale(1.01); }
  100%{ opacity:1; transform:none; }
}

/* =========================================================
   POOL NOT REACHED — same below-header strip, sorry-state
   Shown only to customers who actually have a pending order
   affected by it (see tick()'s myPoolFailed gating in app.js).
   ========================================================= */
.ordertime-strip.is-pool-failed{
  color:#b23b3b; font-weight:700; background: rgba(178,59,59,.12);
  animation: poolFailedIn .45s var(--ease-spring);
}
.ordertime-strip.is-pool-failed .dot{
  background:#b23b3b; box-shadow:0 0 0 3px rgba(178,59,59,.22);
}
@keyframes poolFailedIn{
  0%{ opacity:0; transform: translateY(-8px) scale(.98); }
  60%{ opacity:1; transform: translateY(1px) scale(1.01); }
  100%{ opacity:1; transform:none; }
}
.pool-banner.is-failed .pool-banner__fill{ background: linear-gradient(90deg, #d16a5f, #b23b3b); }

/* =========================================================
   RESTAURANT CLOSED (admin's manual switch) — same below-header
   strip, strongest/most solid treatment of the bunch since this
   overrides every other state and lasts the whole day.
   ========================================================= */
.ordertime-strip.is-restaurant-closed{
  color:#FFFFFF; font-weight:700; background: linear-gradient(90deg, #C62828, #8f1f1f);
  animation: restaurantClosedIn .45s var(--ease-spring);
}
.ordertime-strip.is-restaurant-closed .dot{
  background:#FFFFFF; box-shadow:0 0 0 3px rgba(255,255,255,.32);
}
@keyframes restaurantClosedIn{
  0%{ opacity:0; transform: translateY(-8px) scale(.98); }
  60%{ opacity:1; transform: translateY(1px) scale(1.01); }
  100%{ opacity:1; transform:none; }
}
.pool-banner.is-failed .pool-banner__text strong{ color:#b23b3b; }
.pool-banner.is-failed{ animation: poolFailedIn .45s var(--ease-spring); }

/* =========================================================
   PASSWORD STRENGTH METER — used by the admin "Change Central/Local
   Password" settings panels. A thin animated track that fills and
   recolors live as the admin types, from red (very weak) through to
   deep green (very strong).
   ========================================================= */
.pwd-strength{ margin: 2px 0 14px; }
.pwd-strength__track{
  height:6px; border-radius:999px; background: var(--surface-2); overflow:hidden;
}
.pwd-strength__fill{
  height:100%; width:0%; border-radius:999px; background: var(--danger);
  transition: width var(--dur-med) var(--ease-spring), background var(--dur-fast) var(--ease);
}
.pwd-strength__label{
  display:inline-block; margin-top:6px; font-size:12px; font-weight:600;
  transition: color var(--dur-fast) var(--ease);
}

/* =========================================================
   ADMIN — "Notify order arrived" / "Undo delivery arrived" toggle
   button, sitting beside "Lock admin" in the dashboard header. This is a
   manual notification the admin sends on their own judgment (not gated
   on order status), so it stays tappable at all times — a soft pulsing
   ring on the bell state just gives it a "there's an action waiting"
   feel instead of sitting like a plain static button. Switches to the
   quieter "is-arrived" outline once the notification's been sent.
   ========================================================= */
.admin-deliver-btn{ display:flex; align-items:center; justify-content:center; gap:6px; position:relative; }
.admin-deliver-btn__ico{ font-size:14px; line-height:1; }
.admin-deliver-btn:not(:disabled):not(.is-arrived)::after{
  content:""; position:absolute; inset:-3px; border-radius:999px;
  border:2px solid var(--gold); opacity:0; pointer-events:none;
  animation: deliverReadyPulse 2.2s ease-out infinite;
}
@keyframes deliverReadyPulse{
  0%{ opacity:.55; transform:scale(1); }
  100%{ opacity:0; transform:scale(1.18); }
}
.admin-deliver-btn.is-loading{ opacity:.7; pointer-events:none; }
/* Once delivery has been broadcast, the button flips to an "Undo" look —
   ghost/outline instead of the solid gold primary — so its state reads at
   a glance instead of looking identical to the action that hasn't
   happened yet. */
.admin-deliver-btn.is-arrived{
  background: transparent; border-color: var(--border); color: var(--text);
  box-shadow:none;
}
.admin-deliver-btn.is-arrived:hover{ background: var(--surface-2); border-color: var(--danger); }

/* =========================================================
   TOGGLE SWITCH — used by Settings → Restaurant Status
   ========================================================= */
.settings-row--toggle{ align-items:center; gap:12px; }
/* Small on/off status indicator shown beside a toggle's text label,
   so the current state reads at a glance without parsing the sentence. */
.status-dot{ width:9px; height:9px; border-radius:50%; background:#9CA3AF; flex-shrink:0; transition: background .15s var(--ease), box-shadow .15s var(--ease); }
.status-dot.is-on{ background:#22C55E; box-shadow:0 0 0 3px rgba(34,197,94,.18); }
.status-dot.is-off{ background:#9CA3AF; }
.switch{ display:inline-block; position:relative; flex-shrink:0; }
.switch input{ position:absolute; opacity:0; width:1px; height:1px; }
.switch__track{
  display:block; width:46px; height:26px; border-radius:999px;
  background: var(--surface-3); border:1px solid var(--border-soft);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  cursor:pointer;
}
.switch__thumb{
  display:block; width:20px; height:20px; margin:2px; border-radius:50%;
  background:#FFFFFF; box-shadow:0 1px 3px rgba(0,0,0,.25);
  transition: transform var(--dur-fast) var(--ease);
}
.switch input:checked + .switch__track{ background: var(--danger); border-color: var(--danger); }
.switch input:checked + .switch__track .switch__thumb{ transform: translateX(20px); }
.switch input:focus-visible + .switch__track{ outline:2px solid var(--gold); outline-offset:2px; }

/* =========================================================
   ADMIN "CLOSE RESTAURANT" BUTTON — reuses .admin-deliver-btn's
   layout, but its own colour: quiet ghost when open (so it
   doesn't compete with the primary Notify button), solid danger
   red once the restaurant is actually closed so its state is
   unmistakable at a glance.
   ========================================================= */
#adminRestaurantClosedBtn.is-closed{
  background: var(--danger); border-color: var(--danger); color:#FFFFFF;
}
#adminRestaurantClosedBtn.is-closed:hover{ background:#a82121; border-color:#a82121; }

/* =========================================================
   REVENUE PANEL — date range toolbar, stat row (reuses
   .admin-stat), hand-drawn canvas bar chart, and a simple
   per-day list.

   The toolbar used to be 4 flex items (From field, To field, Apply,
   This week) in one flex-wrap row — with no defined widths, the
   wrap point was unpredictable and different items ended up alone
   on their own line depending on screen width. Now it's two
   deliberate rows: dates side-by-side on top, actions side-by-side
   below — so the layout is the same shape at every width instead of
   reflowing arbitrarily.
   ========================================================= */
.revenue-toolbar{ flex-direction:column; align-items:stretch; gap:12px; }
.revenue-toolbar__dates{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.revenue-toolbar__field{ display:flex; flex-direction:column; gap:6px; text-align:left; cursor:pointer; }
.revenue-toolbar__field span{ font-size:12px; font-weight:600; color: var(--text-dim); }
.revenue-toolbar__field input[type="date"]{
  width:100%; min-width:0;
  padding:11px 12px; border-radius: var(--radius-sm); border:1px solid var(--border);
  background: var(--surface); color: var(--text); font-family:inherit; font-size:13.5px;
}
.revenue-toolbar__field input[type="date"]:focus{ outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,65,12,.16); }

/* Shared 2-up action row — same pattern used for the Menu panel's
   "Add new item" / "Restore original menu" pair, so both windows
   resolve to the same predictable, evenly-split shape instead of
   each wrapping differently based on their own text length. */
.btn-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; }
.btn-row .btn{
  width:100%; white-space:normal; text-align:center;
  /* Compact tile sizing (same scale as the Settings / Clear Orders
     cluster above it) instead of the default .btn pill padding —
     at half-screen width that default size read as oversized. */
  padding:11px 12px; font-size:13.5px; line-height:1.25;
  border-radius: var(--radius-md);
}

.revenue-chart-card{
  background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding:16px; margin:14px 0; position:relative;
}
.revenue-chart-canvas{ width:100%; height:220px; display:block; }
.revenue-day-list{ display:flex; flex-direction:column; gap:8px; }
.revenue-day-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 16px; background: var(--surface); border:1px solid var(--border-soft); border-radius: var(--radius-md);
}
.revenue-day-row__date{ font-weight:600; }
.revenue-day-row__count{ font-size:12px; color: var(--text-faint); margin-left:6px; }
.revenue-day-row__warn{ display:block; font-size:11px; font-weight:700; color: var(--danger); margin-top:3px; }
.revenue-day-row__amount{ font-weight:700; color: var(--gold); font-variant-numeric: tabular-nums; }
.revenue-day-row{ flex-wrap:wrap; }
.revenue-day-row__figures{ display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
.revenue-day-row__figure{ display:flex; flex-direction:column; align-items:flex-end; font-variant-numeric: tabular-nums; }
.revenue-day-row__figure small{ font-size:10px; color: var(--text-faint); font-weight:600; text-transform:uppercase; letter-spacing:.02em; }
.revenue-day-row__figure strong{ font-size:14px; }
.revenue-day-row__figure--paid strong{ color:#EF4444; }
.revenue-day-row__figure--profit strong{ color:#22C55E; }
.revenue-day-row{ cursor:pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.revenue-day-row:hover, .revenue-day-row:focus-visible{ background: var(--surface-2); border-color: var(--gold); }

.revenue-day-modal{ max-width:460px; text-align:left; }
.revenue-day-modal h3{ text-align:left; }
.revenue-day-item-list{ display:flex; flex-direction:column; gap:6px; margin-top:6px; max-height:52vh; overflow-y:auto; }
.revenue-day-item-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 12px; background: var(--surface-2); border-radius: var(--radius-md);
}
.revenue-day-item-row__name{ font-weight:600; font-size:13.5px; text-align:left; }
.revenue-day-item-row__qty{ font-size:11px; color: var(--text-faint); font-weight:500; }
.revenue-day-item-row__hint{ display:block; font-size:10.5px; color:#EF4444; font-weight:600; margin-top:2px; }
.revenue-day-item-row__figures{ display:flex; gap:12px; flex-shrink:0; }
.revenue-day-item-row__figure{ display:flex; flex-direction:column; align-items:flex-end; font-variant-numeric: tabular-nums; min-width:56px; }
.revenue-day-item-row__figure small{ font-size:9.5px; color: var(--text-faint); font-weight:600; text-transform:uppercase; letter-spacing:.02em; }
.revenue-day-item-row__figure strong{ font-size:13px; }
.revenue-day-item-row__figure--paid strong{ color:#EF4444; }
.revenue-day-item-row__figure--profit strong{ color:#22C55E; }
.revenue-day-item-row--total{ background: var(--surface-3, var(--surface-2)); border:1px solid var(--border); margin-top:4px; }
.revenue-day-item-row--total .revenue-day-item-row__name{ font-size:14px; }
.revenue-day-item-row--total .revenue-day-item-row__figure strong{ font-size:14.5px; }

/* Admin stats row: let 4 stat cards wrap 2-up on narrow screens instead
   of squeezing them all into one unreadable line. */
.admin-stats-row--wrap{ flex-wrap:wrap; }
.admin-stats-row--wrap .admin-stat{ flex:1 1 130px; }
.admin-stat--profit strong{ color:#22C55E; }

/* Revenue series picker — same chip look as the rest of the app, with a
   small colored dot so each chip doubles as the chart's legend. */
.revenue-chip{ display:inline-flex; align-items:center; gap:6px; }
.revenue-chip__dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; opacity:.45; transition: opacity .15s ease; }
.revenue-chip.is-active .revenue-chip__dot{ opacity:1; box-shadow:0 0 0 3px rgba(255,255,255,.25); }
.revenue-chip:not(.is-active){ opacity:.6; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px){
  .trust{ grid-template-columns: 1fr; }
  .hero{ padding: 46px 16px 30px; }
  .settings-row{ flex-direction:column; align-items:stretch; }
  .settings-row .btn{ width:100%; }
  /* Toggle rows (switch + label, e.g. Development mode / Restaurant
     status) are never as wide as a button row, so they shouldn't be
     forced into the same stacked-column layout — keep them inline. */
  .settings-row--toggle{ flex-direction:row; align-items:center; }
  .home-footer__card, .home-footer__whatsapp{ flex-direction:row; }
  .filter-chips{ overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
  .orders-filter-tabs{ flex-wrap:nowrap; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}

/* =========================================================
   HERO WHATSAPP LINE — quiet inline link under Order Now,
   never floats or overlays content.
   ========================================================= */

/* =========================================================
   EDIT ORDER MODAL
   ========================================================= */
.edit-order-modal h3{ display:flex; align-items:center; gap:8px; }
.edit-order-items{ display:flex; flex-direction:column; gap:10px; max-height: 260px; overflow-y:auto; margin-bottom:14px; }
.edit-order-total{ margin-bottom:16px; }

/* Smooth removal instead of an abrupt DOM snap when a dish is deleted
   from the edit-order (or admin new-order) list. */
.cart-line{ transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), max-height var(--dur-med) var(--ease), margin var(--dur-med) var(--ease), padding var(--dur-med) var(--ease); overflow:hidden; max-height:200px; }
.cart-line.is-removing{ opacity:0; transform: scale(.94) translateX(-8px); max-height:0; margin:0; padding-top:0; padding-bottom:0; border-width:0; }

/* -------- "Add a dish" trigger button (replaces the old <select>) -------- */
.edit-order-addbtn{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 14px; margin-bottom:14px; border-radius: var(--radius-md);
  border:1.5px dashed var(--border); background: var(--surface-2); color: var(--gold);
  font-size:14px; font-weight:600; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.edit-order-addbtn:hover{ background: var(--surface-3); border-color: var(--gold); }
.edit-order-addbtn:active{ transform: scale(.98); }
.edit-order-addbtn__ico{ font-size:16px; line-height:1; }

/* -------- collapsed "Edit delivery address & contact number" link -------- */
.edit-order-contact-toggle{
  width:100%; display:flex; align-items:center; gap:10px; text-align:left;
  padding:12px 4px; margin-bottom:4px; background:none; border:none; border-top:1px solid var(--border-soft);
  color: var(--text-dim); font-size:13px; font-weight:600;
}
.edit-order-contact-toggle:hover{ color: var(--text); }
.edit-order-contact-toggle__ico{ font-size:13px; opacity:.75; }
.edit-order-contact-toggle__chev{ margin-left:auto; transition: transform var(--dur-fast) var(--ease); opacity:.6; }
.edit-order-contact-toggle.is-open .edit-order-contact-toggle__chev{ transform: rotate(90deg); }
.edit-order-contact-fields{
  overflow:hidden; animation: contactFieldsOpen var(--dur-med) var(--ease) both;
  padding-top:6px;
}
@keyframes contactFieldsOpen{
  from{ opacity:0; max-height:0; transform: translateY(-4px); }
  to{ opacity:1; max-height:260px; transform: translateY(0); }
}

/* =========================================================
   DISH PICKER MODAL (Add a dish / Admin New Order)
   ========================================================= */
.dish-picker-modal{ width: min(440px, 92vw); text-align:left; z-index:83; }
#dishPickerShade{ z-index:82; }
.dish-picker-modal h3{ text-align:center; }
.dish-picker__search{
  display:flex; align-items:center; gap:10px; padding:11px 14px; margin-bottom:14px;
  border-radius: var(--radius-md); border:1px solid var(--border-soft); background: var(--surface-2);
}
.dish-picker__search svg{ width:16px; height:16px; color: var(--text-faint); flex-shrink:0; }
.dish-picker__search input{ flex:1; background:none; border:none; color: var(--text); font-size:14px; }
.dish-picker__search input:focus{ outline:none; }
.dish-picker__list{ display:flex; flex-direction:column; gap:8px; max-height:min(48vh, 420px); overflow-y:auto; margin-bottom:16px; padding-right:2px; }
.dish-picker__row{
  display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius: var(--radius-md);
  border:1px solid var(--border-soft); background: var(--surface); cursor:pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.dish-picker__row:hover{ background: var(--surface-2); }
.dish-picker__row.is-checked{ border-color: var(--gold); background: rgba(194,65,12,.08); }
.dish-picker__media{
  width:44px; height:44px; border-radius: var(--radius-sm); overflow:hidden; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; background: var(--surface-2);
}
.dish-picker__media svg{ width:20px; height:20px; }
.dish-picker__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.dish-picker__info{ flex:1; min-width:0; }
.dish-picker__name{ font-size:13.5px; font-weight:600; line-height:1.3; }
.dish-picker__note{ color: var(--text-faint); font-weight:400; }
.dish-picker__price{ font-size:12px; color: var(--gold); margin-top:2px; font-weight:600; }
.dish-picker__check{
  width:22px; height:22px; flex-shrink:0; accent-color: var(--gold); cursor:pointer;
}
.empty-state--compact{ padding:32px 16px; }
.empty-state--compact span{ font-size:26px; margin-bottom:6px; }

/* =========================================================
   EMPTY-ORDER -> CANCEL CONFIRM MODAL
   ========================================================= */
#emptyOrderModal{ z-index:85; }
#emptyOrderShade{ z-index:84; }

/* =========================================================
   PROFILE PHOTO CROPPER
   ========================================================= */
.photo-crop-modal{ width: min(360px, 90vw); }
.photo-crop__stage{
  position:relative; width:280px; height:280px; margin: 6px auto 18px; border-radius: var(--radius-lg);
  overflow:hidden; background: var(--surface-2); touch-action:none; cursor:grab;
}
.photo-crop__stage:active{ cursor:grabbing; }
.photo-crop__stage canvas{ display:block; width:280px; height:280px; }
.photo-crop__ring{
  position:absolute; inset:0; border-radius:50%; box-shadow: 0 0 0 2000px rgba(6,5,3,.55);
  border: 2px solid var(--gold); pointer-events:none;
}
.photo-crop__zoom{ width:100%; accent-color: var(--gold); margin-bottom:18px; }

/* =========================================================
   ADMIN NEW ORDER
   ========================================================= */
.admin-new-order-btn{ margin-bottom:14px; display:flex; align-items:center; justify-content:center; gap:8px; }
.admin-new-order-btn__ico{ font-size:16px; line-height:1; }
.admin-new-order-confirm-toggle{ flex-direction:row; align-items:center; gap:10px; }
.admin-new-order-confirm-toggle input{ width:20px; height:20px; accent-color: var(--gold); flex-shrink:0; }
.admin-order-edit-btn{ margin-top:10px; }
.field__optional{ font-weight:400; color: var(--text-faint); text-transform:none; }


/* =========================================================
   BOTTOM TAB BAR — CraviX mobile navigation
   Fixed, iOS/Swiggy-style: Discover / Cart / Track order / Profile
   ========================================================= */
body{ padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px)); }

.bottomnav{
  position: fixed; left:0; right:0; bottom:0; z-index:50;
  display:flex; align-items:stretch;
  height: var(--bottomnav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--glass-strong);
  /* 20px was needlessly expensive: backdrop-filter blur is one of the
     costliest paints a GPU can do, and it has to be recomputed every
     single frame for a fixed element while the page scrolls behind it.
     On mid/low-end Android phones that repaint cost is enough to drop
     frames right on this element, which reads as the bar "glitching" or
     lagging during scroll even though its position is correct. 10px
     against the already-near-opaque --glass-strong background looks
     effectively identical but is dramatically cheaper to repaint. */
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 24px rgba(13,35,59,.08);
  /* Forces this onto its own GPU compositing layer instead of being
     repainted/relaid-out against the scrolling content behind it every
     frame — that per-frame repaint (made heavier by the blur above) is
     what causes a fixed footer to visibly lag/jump on mobile during fast
     or momentum scrolling. Pinning it to its own layer keeps it rock
     steady regardless of what's happening in the page underneath it. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style paint;
}
.bottomnav__item{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  position:relative;
  color: var(--text-faint); font-size:10.5px; font-weight:600; letter-spacing:.01em;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-spring);
}
.bottomnav__item svg{ width:22px; height:22px; transition: transform var(--dur-fast) var(--ease-spring); }
.bottomnav__item .bottomnav__label{ line-height:1; }
.bottomnav__item:active{ transform: scale(.92); }
.bottomnav__item.is-active{ color: var(--gold); }
.bottomnav__item.is-active svg{ transform: translateY(-1px); }
.bottomnav__item.is-active::before{
  content:''; position:absolute; top:2px; left:50%; width:26px; height:3px; border-radius:0 0 4px 4px;
  background: var(--gold); transform: translateX(-50%);
}
.bottomnav__cart-badge{
  position:absolute; top:2px; right:calc(50% - 20px);
  min-width:16px; height:16px; padding:0 3px; border-radius:8px;
  background: var(--gold); color:#fff; font-size:9.5px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring);
  box-shadow: 0 2px 6px rgba(194,65,12,.4);
}
.bottomnav__cart-badge.is-visible{ transform: scale(1); }
/* all existing overlays (drawershade 70 / cart-drawer 71 / modal-shade 80 / modal 81+) already sit above the bottom bar (50) */
