/* ═══════════════════════════════════════════════════════════════════
   Maharaj Navratri Counter — shared look (light & dark)
   ═══════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: light;
  --maroon: #6d0f33; --maroon-2: #4a0822; --maroon-3: #2a0413; --pink: #e91e63; --saffron: #e8491d; --gold: #ffc93c; --gold-2: #ffe08a; --marigold: #f6a400;
  --jain: #1f9d55; --jain-50: #e3f7eb;
  --bg: #fbf4ea; --card: #ffffff; --card-2: #fff8ef; --ink: #26170f; --ink-2: #6e5d50; --ink-3: #ab9b8d; --line: #efe2d3; --line-2: #f7efe5;
  --field: #fff; --field-line: #e3d4c3;
  --green: #0f9d6b; --green-50: #e3f7ee; --red: #d92d2d; --red-50: #fdeaea; --amber: #b87400; --amber-50: #fff3d6; --blue: #1e6fd9; --blue-50: #e8f0fd; --violet: #7c3aed; --violet-50: #f0e9fe;
  --shadow: 0 10px 26px -14px rgba(109,15,51,.3); --shadow-lg: 0 24px 50px -18px rgba(74,8,34,.5);
  --display: "Baloo Bhai 2", "Inter", system-ui, sans-serif; --fest: "Yatra One", "Baloo Bhai 2", serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Gujarati", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #130a0c; --card: #1e1316; --card-2: #26191c; --ink: #f8ede4; --ink-2: #c6b2a7; --ink-3: #87736b; --line: #382629; --line-2: #2b1c1f;
  --field: #170e11; --field-line: #4a353b; --jain: #34d399; --jain-50: #0f2b21;
  --green: #34d399; --green-50: #0f2b21; --red: #f87171; --red-50: #3a1616; --amber: #fbbf24; --amber-50: #33270c; --blue: #60a5fa; --blue-50: #13233a; --violet: #a78bfa; --violet-50: #241a3a;
  --shadow: 0 10px 26px -14px rgba(0,0,0,.85); --shadow-lg: 0 24px 50px -18px rgba(0,0,0,.95);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(circle at 1px 1px, rgba(194,24,91,.07) 1.2px, transparent 1.6px) 0 0 / 18px 18px, var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 14px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bell { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,201,60,.7); } 50% { box-shadow: 0 0 0 8px rgba(255,201,60,0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ═════════ Festive header ═════════ */
.garland { display: block; width: 100%; height: 46px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.garland .bell { transform-box: fill-box; transform-origin: 50% 0; animation: bell 2.4s ease-in-out infinite; }
.top { position: sticky; top: 0; z-index: 30; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 85% 0, rgba(255,201,60,.22), transparent 45%), linear-gradient(135deg, #9c1446, var(--maroon) 50%, var(--maroon-2));
  box-shadow: 0 8px 20px -12px rgba(74,8,34,.7); }
.top::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16; background: radial-gradient(circle, #ffc93c 1.2px, transparent 1.7px) 0 0 / 18px 18px; }
.top .garland { margin-bottom: -10px; height: 40px; }
.top .bar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding-bottom: 8px; }
.top h1 { font-size: 21px; line-height: 1.05; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1 small { display: block; font-family: var(--font); font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.78); }
.logo-chip { background: #fff; border-radius: 12px; padding: 4px 8px; display: flex; flex-shrink: 0; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.logo-chip img { height: 28px; display: block; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.13); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }
.icon-btn svg { width: 19px; height: 19px; }
.pass-no-chip { font-family: var(--display); font-weight: 800; font-size: 15px; color: #3a1d00; background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 6px 11px; border-radius: 11px; white-space: nowrap; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* ═════════ Building blocks ═════════ */
.sec { display: flex; align-items: center; gap: 8px; margin: 18px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sec::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.sec .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.pad { padding: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.in { width: 100%; height: 48px; border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--field); padding: 0 13px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.in:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(233,30,99,.15); }
.in.bad { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217,45,45,.12); }
textarea.in { height: auto; min-height: 64px; padding: 11px 13px; resize: vertical; }
label.f { display: block; }
label.f + label.f { margin-top: 10px; }
label.f > span { display: block; font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 5px; letter-spacing: .03em; }
.hint { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.err-msg { color: var(--red); font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.btn { height: 48px; padding: 0 18px; border-radius: 15px; border: 0; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--maroon)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(233,30,99,.6); transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--marigold)); color: #3a1d00; box-shadow: 0 8px 18px -8px rgba(246,164,0,.8); }
.btn.green { background: linear-gradient(135deg, #16b07a, #0b8a5c); box-shadow: 0 8px 18px -8px rgba(15,157,107,.7); }
.btn.wa { background: #25d366; box-shadow: 0 8px 18px -8px rgba(37,211,102,.8); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--field-line); box-shadow: none; }
.btn.danger { background: var(--card); color: var(--red); border: 1.5px solid color-mix(in srgb, var(--red) 40%, transparent); box-shadow: none; }
.btn.sm { height: 38px; padding: 0 12px; font-size: 13.5px; border-radius: 12px; }
.btn.lg { height: 58px; font-size: 18px; border-radius: 18px; font-family: var(--display); }
.btn.block { width: 100%; }
.btn svg { width: 19px; height: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 42px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--field-line); background: var(--card); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .12s; }
.chip:active { transform: scale(.97); }
.chip.on { background: linear-gradient(135deg, var(--pink), var(--maroon)); border-color: var(--pink); color: #fff; box-shadow: 0 6px 14px -6px rgba(233,30,99,.7); }
.chip.jain { border-color: color-mix(in srgb, var(--jain) 55%, transparent); color: var(--jain); }
.chip.jain.on { background: linear-gradient(135deg, #22b366, #12803f); border-color: #1f9d55; color: #fff; }
.chip.sm { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 11px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 15px; }
.seg button { flex: 1; height: 42px; border: 0; border-radius: 11px; background: none; font-weight: 800; font-size: 14.5px; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.seg button.on.c { background: linear-gradient(135deg, #16b07a, #0b8a5c); color: #fff; }
.seg button.on.o { background: linear-gradient(135deg, #3b82f6, #1e5fd0); color: #fff; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 900; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.s-BOOKED { background: var(--blue-50); color: var(--blue); } .s-PREPARING { background: var(--amber-50); color: var(--amber); }
.s-READY { background: var(--violet-50); color: var(--violet); } .s-DELIVERED { background: var(--green-50); color: var(--green); } .s-CANCELLED { background: var(--red-50); color: var(--red); }
.jain-badge { background: var(--jain-50); color: var(--jain); border: 1.5px solid color-mix(in srgb, var(--jain) 50%, transparent); }
.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); }
.empty .em { font-size: 42px; display: block; margin-bottom: 6px; }

/* ═════════ Night circles ═════════ */
.nights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 4px; }
.night { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 4px 0; color: var(--ink); }
.night .c { width: 54px; height: 54px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; background: var(--c); color: var(--t, #fff);
  border: 3px solid var(--card); box-shadow: 0 7px 14px -7px rgba(0,0,0,.55); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.night .c small { font-size: 8.5px; font-weight: 900; text-transform: uppercase; }
.night .c b { font-family: var(--display); font-size: 20px; }
.night .l { font-size: 10.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.night .l.full { color: var(--red); }
.night.on .c { transform: scale(1.12); box-shadow: 0 0 0 3px var(--gold), 0 10px 18px -6px rgba(0,0,0,.6); animation: pulse 2s infinite; }
.night.past { opacity: .4; }
.other-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* ═════════ Item rows ═════════ */
.items { padding: 4px 0; }
.item { padding: 11px 14px; border-top: 1px solid var(--line-2); }
.item:first-child { border-top: 0; }
.item.on { background: linear-gradient(90deg, color-mix(in srgb, var(--marigold) 12%, transparent), transparent 70%); }
.item .nm { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.item .nm .tri { width: 18px; height: 16px; flex-shrink: 0; }
.item .ctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--field); overflow: hidden; flex-shrink: 0; }
.item.on .stepper { border-color: var(--marigold); }
.stepper button { width: 42px; height: 46px; border: 0; background: none; font-size: 24px; font-weight: 700; color: var(--saffron); }
.stepper button:active { background: color-mix(in srgb, var(--saffron) 12%, transparent); }
.stepper input { width: 66px; height: 46px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-weight: 900; font-size: 19px; outline: none; background: transparent; }
.pcs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.pcs input { width: 100%; min-width: 0; height: 46px; border: 1.5px solid var(--field-line); border-radius: 13px; background: var(--field); text-align: right; padding: 0 10px; font-size: 15px; font-weight: 700; outline: none; }
.pcs span { font-size: 11px; font-weight: 800; color: var(--ink-3); }
.quick { display: flex; gap: 6px; margin-top: 7px; }
.quick button { flex: 1; height: 32px; border-radius: 10px; border: 1px dashed var(--field-line); background: transparent; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.quick button:active { background: var(--card-2); }
.tot-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-top: 2px dashed var(--line); font-weight: 800; }
.tot-line b { font-family: var(--display); font-size: 24px; }

/* ═════════ Money ═════════ */
.money-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 15px; }
.money-row b { font-family: var(--display); font-size: 22px; }
.rupee-in { position: relative; }
.rupee-in span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-3); }
.rupee-in .in { padding-left: 30px; font-weight: 800; font-size: 18px; }
.remain { margin-top: 12px; border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; background: var(--red-50); color: var(--red); border: 2px solid color-mix(in srgb, var(--red) 35%, transparent); }
.remain.paid { background: var(--green-50); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.remain span { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.remain b { font-family: var(--display); font-size: 30px; line-height: 1; }

/* ═════════ Sticky bottom bar ═════════ */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; width: calc(100% - 20px); max-width: 740px;
  display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 15px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, var(--maroon-3), var(--maroon) 70%); box-shadow: var(--shadow-lg); }
.dock .t { flex: 1; min-width: 0; line-height: 1.15; }
.dock .t small { display: block; font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .t b { display: block; font-family: var(--display); font-size: 25px; line-height: 1.05; color: var(--gold-2); }
.dock .t em { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: #ffb4b4; line-height: 1.1; }
.dock .t em:empty { display: none; }
main.with-dock { padding-bottom: 110px; }

/* ═════════ Sheet / toast ═════════ */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(20,6,10,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: rise .18s; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--card); color: var(--ink); border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font-size: 20px; margin-bottom: 12px; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 26px; } }
/* Toasts sit at the bottom, above the booking dock, where the thumb and eyes already are */
.toast { position: fixed; bottom: calc(96px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 90; width: max-content; max-width: min(92vw, 520px);
  display: flex; align-items: center; gap: 10px; background: #26170f; color: #fff; padding: 10px 16px 10px 10px; border-radius: 16px; font-size: 14px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); animation: toast-in .28s cubic-bezier(.2,1.4,.4,1); }
.toast i { width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; background: rgba(255,255,255,.18); }
.toast.ok { background: #0b8a5c; } .toast.bad { background: #c02a2f; } .toast.warn { background: #b87400; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }

/* Confetti burst on booking / delivery */
.confetti { position: fixed; left: 50%; top: 42%; z-index: 95; pointer-events: none; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: confetti 1.3s cubic-bezier(.15,.7,.3,1) forwards; }
.confetti i:nth-child(3n) { width: 11px; height: 11px; border-radius: 50%; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r)); } }

/* Skeleton shimmer while data loads */
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--line-2), var(--line) 40%, var(--line-2) 80%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }

/* ═════════ Login / hub ═════════ */
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 0 18px 24px; position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(circle at 50% 38%, rgba(255,201,60,.24), transparent 45%), radial-gradient(130% 90% at 50% 0%, #a3154a, var(--maroon) 45%, var(--maroon-3)); }
.splash::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .2; background: radial-gradient(circle, #ffc93c 1.3px, transparent 1.8px) 0 0 / 22px 22px, radial-gradient(circle, #fff 1px, transparent 1.5px) 11px 11px / 22px 22px; }
.splash .garland { position: absolute; top: 0; left: 0; right: 0; height: 64px; }
.splash .mandala { position: absolute; z-index: -1; left: 50%; top: 46%; width: 620px; height: 620px; margin: -310px 0 0 -310px; opacity: .4; animation: spin 140s linear infinite; }
.box { margin: auto 0; width: 100%; max-width: 400px; padding: 24px 22px; background: var(--card); color: var(--ink); border-radius: 28px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); animation: rise .35s ease-out both;
  border: 2px solid transparent; background-image: linear-gradient(var(--card), var(--card)), linear-gradient(135deg, var(--gold), var(--pink) 40%, var(--saffron) 70%, var(--gold)); background-origin: border-box; background-clip: padding-box, border-box; }
.box img.logo { width: 170px; max-width: 64%; }
:root[data-theme="dark"] .box img.logo { background: #fff; border-radius: 16px; padding: 6px 12px; }
.box h2 { font-family: var(--fest); font-weight: 400; font-size: 29px; color: var(--maroon); margin-top: 6px; }
:root[data-theme="dark"] .box h2 { color: var(--gold); }
.box .gu { font-family: var(--display); color: var(--pink); font-weight: 700; margin: 0 0 6px; }
.box form { text-align: left; margin-top: 8px; }
.hub-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; margin-top: 10px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card-2); color: var(--ink); text-align: left; text-decoration: none; transition: transform .1s; }
.hub-btn:active { transform: scale(.98); }
.hub-btn .ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; background: var(--c, linear-gradient(135deg, var(--pink), var(--maroon))); box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.hub-btn b { display: block; font-family: var(--display); font-size: 19px; }
.hub-btn small { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.tonight { margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #fff4dc, var(--card-2)); border: 1.5px dashed var(--marigold); text-align: left; }
:root[data-theme="dark"] .tonight { background: linear-gradient(135deg, #33270c, var(--card-2)); }
.tonight b { font-family: var(--display); font-size: 22px; }

/* ═════════ Navratri Pass (always light — it is an image) ═════════ */
.pass-stage { display: flex; justify-content: center; align-items: flex-start; }
.pass { width: 540px; flex-shrink: 0; position: relative; color: #26170f; background: #fffaf2; border-radius: 30px; overflow: hidden; font-family: var(--font); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.pass .ph { position: relative; overflow: hidden; padding: 0 26px 26px; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(255,201,60,.35), transparent 45%), linear-gradient(140deg, #b0174f, #6d0f33 55%, #3a0619); }
.pass .ph .dots { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle, #ffc93c 1.4px, transparent 1.9px); background-size: 20px 20px; }
.pass .ph .mand { position: absolute; right: -90px; top: -30px; width: 330px; height: 330px; opacity: .55; }
.pass .ph .gar { display: block; width: calc(100% + 52px); margin: 0 -26px -4px; height: 58px; }
.pass .ph .row1 { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.pass .ph .lc { background: #fff; border-radius: 16px; padding: 7px 12px; display: flex; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.pass .ph .lc img { height: 44px; display: block; }
.pass .ph .ttl { font-family: var(--fest); font-size: 38px; line-height: .95; color: #ffe08a; }
.pass .ph .ttl small { display: block; font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: .18em; color: rgba(255,255,255,.82); margin-top: 6px; }
.pass .ph .row2 { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pass .ph .pno { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .9; color: #ffc93c; text-shadow: 0 4px 16px rgba(0,0,0,.35); }
.pass .ph .pno small { display: block; font-family: var(--font); font-size: 12px; letter-spacing: .14em; font-weight: 800; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.pass .ph .when { text-align: right; }
.pass .ph .nightpill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-weight: 900; font-size: 15px; background: var(--nc); color: var(--nt); box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.pass .ph .time { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; margin-top: 8px; }
.pass .perf { position: relative; height: 26px; background: #fffaf2; }
.pass .perf::before { content: ''; position: absolute; left: 24px; right: 24px; top: 50%; border-top: 3px dashed #ead9c6; }
.pass .perf::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0 50%, #2a0413 13px, transparent 14px), radial-gradient(circle at 100% 50%, #2a0413 13px, transparent 14px); }
.pass .pb { padding: 4px 26px 22px; }
.pass .cust b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.05; }
.pass .cust span { font-size: 15px; color: #6e5d50; font-weight: 600; }
.pass table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.pass th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #3a0619; padding: 9px 12px; }
.pass th:first-child { border-radius: 10px 0 0 10px; } .pass th:last-child { border-radius: 0 10px 10px 0; }
.pass td { padding: 9px 12px; border-bottom: 1px solid #f0e3d3; font-weight: 600; }
.pass td.r, .pass th.r { text-align: right; }
.pass tr.tot td { border-bottom: 0; border-top: 2.5px solid #26170f; font-weight: 900; font-size: 18px; }
.pass .pack { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 12px; font-weight: 900; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; background: #fff1d1; color: #8a4b00; border: 2px solid #f6a400; }
.pass .pack.jain { background: #e3f7eb; color: #12803f; border-color: #1f9d55; }
.pass .pack small { font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 13px; }
.pass .payrow { display: flex; gap: 16px; align-items: stretch; margin-top: 16px; }
.pass .pay { flex: 1; min-width: 0; }
.pass .pay .ln { display: flex; justify-content: space-between; padding: 4px 0; font-size: 16px; color: #6e5d50; font-weight: 600; }
.pass .pay .ln b { color: #26170f; font-size: 18px; }
.pass .pay .due { margin-top: 8px; border-radius: 16px; padding: 12px 14px; background: #fdeaea; border: 2.5px solid #d92d2d; color: #c02a2f; }
.pass .pay .due span { display: block; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pass .pay .due b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; margin-top: 4px; }
.pass .pay .paid { margin-top: 8px; border-radius: 16px; padding: 10px 14px; background: #e3f7ee; border: 2.5px solid #0f9d6b; color: #0b8a5c; font-family: var(--display); font-size: 34px; font-weight: 800; text-align: center; transform: rotate(-4deg); }
.pass .qr { width: 150px; flex-shrink: 0; text-align: center; }
.pass .qr .q { background: #fff; padding: 8px; border-radius: 14px; border: 2px solid #ead9c6; }
.pass .qr img { width: 100%; display: block; }
.pass .qr code { display: block; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 13.5px; margin-top: 6px; letter-spacing: .06em; }
.pass .note { margin-top: 12px; font-size: 14px; background: #fff4dc; padding: 8px 12px; border-radius: 10px; }
.pass .pf { text-align: center; padding: 14px 26px 18px; background: #3a0619; color: rgba(255,255,255,.85); font-size: 12.5px; line-height: 1.5; }
.pass .pf b { display: block; color: #ffe08a; font-size: 15px; }
.pass .pf .gu { font-family: var(--display); color: #ffc93c; font-size: 18px; font-weight: 700; }
.pass .stamp-c { position: absolute; right: 30px; top: 330px; transform: rotate(-14deg); border: 4px solid #d92d2d; color: #d92d2d; font-family: var(--display); font-weight: 800; font-size: 34px; padding: 2px 14px; border-radius: 12px; background: rgba(255,255,255,.85); }

/* Only while a pass is being printed (printPass adds the class), so other print buttons still work */
@media print {
  body.printing-pass > *:not(#print-area) { display: none !important; }
  body.printing-pass #print-area { display: block !important; }
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#print-area { display: none; }
#print-area img { width: 100%; max-width: 148mm; display: block; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 420px) { .top .logo-chip { display: none; } }

/* ═════════ Booking steps (sticky progress under the header) ═════════ */
.steps { position: sticky; top: var(--hdr-h, 82px); z-index: 20; display: flex; gap: 4px; margin: 0 -14px; padding: 8px 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.steps button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border: 0; background: none; color: var(--ink-3); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.steps button i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 900; border: 2px solid var(--field-line); background: var(--card); color: var(--ink-3); transition: all .2s; }
.steps button.done { color: var(--green); }
.steps button.done i { background: var(--green); border-color: var(--green); color: #fff; }
.steps button.next { color: var(--ink); }
.steps button.next i { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 0 4px rgba(233,30,99,.14); }
.steps button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Numbered section titles that tick off as they are filled */
.sec.step { scroll-margin-top: calc(var(--hdr-h, 82px) + 66px); }
.sec.step::before { display: none; }
.sec.step .n { width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; font-size: 11.5px; letter-spacing: 0; color: #fff; background: linear-gradient(135deg, var(--pink), var(--maroon)); }
.sec.step.done .n { background: var(--green); }
.sec.step.done .n b { display: none; }
.sec.step.done .n::after { content: '✓'; }
.sec.step .r b { color: var(--ink); }

/* Dock progress line */
.dock { overflow: hidden; }
.dock .prog { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--marigold)); transition: width .35s ease; }
.dock.ready .prog { background: linear-gradient(90deg, #22c58b, #16b07a); }
.dock.ready #book { animation: pulse 2s infinite; }

/* Item rows: clearer active state and a live quantity badge */
.item { position: relative; transition: background .2s; }
.item.on::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--marigold); }
.item .nm .qty { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--saffron); background: color-mix(in srgb, var(--marigold) 16%, transparent); padding: 3px 9px; border-radius: 999px; }
.item:not(.on) .nm .qty { display: none; }
.quick button { border-style: solid; border-color: var(--line); background: var(--card-2); transition: background .12s, color .12s; }
.quick button:hover { color: var(--saffron); }
.card { transition: box-shadow .2s; }
.in:hover:not(:focus) { border-color: color-mix(in srgb, var(--field-line) 60%, var(--ink-3)); }
.chip:hover:not(.on) { border-color: var(--ink-3); }
.btn:focus-visible, .chip:focus-visible, .night:focus-visible .c, .steps button:focus-visible i, .hub-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ═════════ Hub (home after login) ═════════ */
.hub { width: 100%; max-width: 440px; margin: 72px 0 0; animation: rise .35s ease-out both; text-align: left; }
.hub-top { display: flex; align-items: center; gap: 8px; }
.hub-top .logo-chip img { height: 32px; }
.hub-top .icon-btn { width: auto; min-width: 40px; padding: 0 12px; font-weight: 800; font-size: 13.5px; gap: 6px; }
.hub h2 { font-family: var(--fest); font-weight: 400; font-size: 30px; line-height: 1.1; color: #fff; margin-top: 22px; }
.hub .role { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--gold-2); background: rgba(255,201,60,.14); border: 1px solid rgba(255,201,60,.35); }
.hero { margin-top: 18px; padding: 16px; border-radius: 24px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.hero .eyebrow .np { padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; background: var(--c); color: var(--t); }
.hero .big { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; margin-top: 8px; color: var(--gold); }
.hero .big small { font-size: 16px; color: #fff; font-weight: 700; margin-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { padding: 9px 10px; border-radius: 14px; background: rgba(0,0,0,.18); }
.stats b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.1; }
.stats span { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.7); }
.hero .err { color: #ffd0d0; font-weight: 700; font-size: 13.5px; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hub-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: 16px; border-radius: 24px; text-decoration: none; color: #fff; background: var(--c); box-shadow: 0 16px 30px -16px rgba(0,0,0,.7); transition: transform .12s; }
.hub-tile:active { transform: scale(.98); }
.hub-tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
.hub-tile .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.hub-tile b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.1; }
.hub-tile small { display: block; font-size: 12.5px; font-weight: 600; opacity: .85; margin-top: 2px; }
.hub-tile .go { position: absolute; right: 14px; top: 14px; opacity: .7; font-size: 20px; }
.hub-tile.wide .go { position: static; margin-left: auto; }
.hub-tile.light { color: #3a1d00; }
.hub-tile::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }

/* ═════════ Pickup: tonight's list ═════════ */
.idle-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 20px 2px 10px; }
.idle-head h3 { font-size: 19px; }
.idle-head small { display: block; font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pills { display: flex; gap: 6px; }
.pills span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pills .due { color: var(--red); background: var(--red-50); border-color: transparent; }
.slot { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; padding: 10px 14px 6px; background: var(--card-2); border-top: 1px solid var(--line-2); }
.slot:first-child { border-top: 0; border-radius: 20px 20px 0 0; }
.r.done-row { opacity: .5; }
/* tighter item rows: six samosa types fit on fewer screens */
.item { padding: 10px 14px 9px; }
.item .ctl { margin-top: 7px; }
.stepper button, .stepper input, .pcs input { height: 44px; }
.quick { margin-top: 6px; }
.quick button { height: 30px; }
