/* ── WaitingZone customer app shell — shared styles ──────────── */
:root {
  --bg: #f7f7f8;
  --green: #18181b;
  --green2: #27272a;
  --blue: #18181b;
  --purple: #27272a;
  --red: #DC2626;
  --amber: #B45309;
  --border: rgba(24,24,27,0.06);
  --glass: rgba(24,24,27,0.03);
  --text: #18181b;
  --muted: rgba(24,24,27,0.4);
  --subtle: rgba(24,24,27,0.65);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

.qf-body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + 16px);
}

.qf-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.qf-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.16; animation: qfOrbFloat 10s ease-in-out infinite alternate; }
.qf-orb-1 { width: 480px; height: 480px; background: var(--green); top: -160px; left: -120px; }
.qf-orb-2 { width: 380px; height: 380px; background: var(--purple); bottom: -120px; right: -100px; animation-delay: -4s; }
@keyframes qfOrbFloat { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(30px,20px) scale(1.08);} }
.qf-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(24,24,27,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(24,24,27,0.02) 1px, transparent 1px); background-size: 60px 60px; }

.qf-wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 20px; }

/* ── Top bar ── */
.qf-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.qf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.qf-brand-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; color:#fff; }
.qf-brand-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; }
.qf-icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--subtle); text-decoration: none; cursor: pointer; transition: all 0.2s; position: relative; }
.qf-icon-btn:hover { border-color: rgba(24,24,27,0.3); color: var(--text); }
.qf-back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.82rem; margin-bottom: 16px; }
.qf-back-btn:hover { color: var(--text); }

/* ── Section headings ── */
.qf-h1 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.qf-sub { font-size: 0.88rem; color: var(--muted); }
.qf-section-title { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; margin: 26px 0 14px; display: flex; align-items: center; justify-content: space-between; }
.qf-section-title a, .qf-section-title button { font-size: 0.76rem; font-weight: 500; color: var(--green); text-decoration: none; background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── Cards / lists ── */
.qf-card { background: rgba(255,255,255,0.7); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.qf-r-card { display: flex; gap: 14px; padding: 12px; cursor: pointer; background: rgba(255,255,255,0.7); border: 1px solid var(--border); border-radius: 18px; text-decoration: none; color: inherit; transition: all 0.2s ease; position: relative; }
.qf-r-card:hover { border-color: rgba(24,24,27,0.25); transform: translateY(-2px); }
.qf-r-thumb { width: 84px; height: 84px; border-radius: 14px; flex-shrink: 0; object-fit: cover; background: linear-gradient(135deg, rgba(24,24,27,0.12), rgba(24,24,27,0.12)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.qf-r-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.qf-r-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.98rem; }
.qf-r-meta { font-size: 0.76rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qf-r-cuisine { display: inline-block; font-size: 0.7rem; color: var(--green); background: rgba(24,24,27,0.08); border: 1px solid rgba(24,24,27,0.18); padding: 3px 9px; border-radius: 99px; width: fit-content; }
.qf-fav-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(247,247,248,0.7); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); backdrop-filter: blur(6px); }
.qf-fav-btn.active { color: var(--red); border-color: rgba(220,38,38,0.4); }

.qf-chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; }
.qf-chip-row::-webkit-scrollbar { display: none; }
.qf-chip { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--border); color: var(--subtle); font-size: 0.78rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.qf-chip.active { background: rgba(24,24,27,0.1); border-color: var(--green); color: var(--green); }

.qf-empty { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 0.88rem; }
.qf-empty-icon { font-size: 2rem; margin-bottom: 10px; }
.qf-loading { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 0.85rem; }

.qf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 12px; border: none; cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.88rem; text-decoration: none; transition: all 0.2s ease; }
.qf-btn-primary { background: var(--accent); color:#fff; box-shadow: 0 0 24px rgba(24,24,27,0.18); }
.qf-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(24,24,27,0.3); }
.qf-btn-secondary { background: var(--glass); border: 1px solid var(--border); color: var(--text); }
.qf-btn-secondary:hover { border-color: rgba(24,24,27,0.35); }
.qf-btn-danger { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); color: var(--red); }
.qf-btn-block { width: 100%; }

.qf-input-label { font-size: 0.76rem; font-weight: 500; color: var(--muted); margin-bottom: 7px; display: block; letter-spacing: 0.04em; text-transform: uppercase; }
.qf-input { width: 100%; padding: 13px 15px; background: var(--glass); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif; outline: none; transition: all 0.2s; }
.qf-input:focus { border-color: rgba(24,24,27,0.35); background: rgba(24,24,27,0.03); }
.qf-input-wrap { margin-bottom: 16px; }

.qf-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; }
.qf-badge-waiting, .qf-badge-pending { background: rgba(180,83,9,0.1); border: 1px solid rgba(180,83,9,0.3); color: #B45309; }
.qf-badge-called, .qf-badge-confirmed { background: rgba(194,65,12,0.1); border: 1px solid rgba(194,65,12,0.3); color: #C2410C; }
.qf-badge-seated, .qf-badge-completed { background: rgba(194,65,12,0.08); border: 1px solid rgba(194,65,12,0.3); color: #C2410C; }
.qf-badge-cancelled, .qf-badge-no-show { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); color: #DC2626; }

/* ── Bottom nav ── */
.qf-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: var(--nav-h);
  display: flex;
  background: rgba(255,255,255,0.88);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  padding-bottom: env(safe-area-inset-bottom);
}
.qf-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em;
  position: relative; transition: color 0.2s;
}
.qf-nav-item svg { width: 21px; height: 21px; }
.qf-nav-item.active { color: var(--green); }
.qf-nav-item .qf-nav-dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(24,24,27,0.6); display: none; }
.qf-nav-item.has-badge .qf-nav-dot { display: block; }

@media (max-width: 380px) {
  .qf-nav-item { font-size: 0.6rem; }
}


/* ── Shared: restaurant card extras, cuisine pills, search, skeletons ──
   (Home and Browse both use these so the two screens look identical.) */
.qf-r-desc { font-size: 0.78rem; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-badges { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--subtle); margin-top: 2px; }
.r-rating { display: inline-flex; align-items: center; gap: 3px; color: #B45309; font-weight: 600; }
.r-price { color: var(--muted); }

.cuisine-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 4px 20px 6px; scroll-snap-type: x proximity; }
.cuisine-row::-webkit-scrollbar { display: none; }
.cuisine-pill { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 68px; text-decoration: none; color: inherit; background: none; border: none; padding: 0; font: inherit; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.cuisine-pill-icon { width: 54px; height: 54px; border-radius: 17px; background: var(--glass); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--subtle); transition: all 0.2s ease; }
.cuisine-pill:active .cuisine-pill-icon { transform: scale(0.94); }
.cuisine-pill span { font-size: 0.68rem; color: var(--subtle); text-align: center; line-height: 1.2; }
.cuisine-pill.active .cuisine-pill-icon { background: rgba(24,24,27,0.12); border-color: var(--green); color: var(--green); box-shadow: 0 0 20px rgba(24,24,27,0.18); }
.cuisine-pill.active span { color: var(--green); font-weight: 600; }

.qf-search { position: relative; }
.qf-search > i.ph-magnifying-glass { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 1.05rem; }
.qf-search-input { width: 100%; padding: 15px 44px 15px 44px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.92rem; outline: none; transition: all 0.2s; }
.qf-search-input::placeholder { color: var(--muted); }
.qf-search-input:focus { border-color: rgba(24,24,27,0.4); background: rgba(24,24,27,0.03); box-shadow: 0 0 0 3px rgba(24,24,27,0.07); }
.qf-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(24,24,27,0.08); color: var(--subtle); cursor: pointer; display: none; align-items: center; justify-content: center; }
.qf-search-clear.show { display: flex; }

.qf-skel .qf-r-thumb, .qf-skel-line { background: linear-gradient(90deg, rgba(24,24,27,0.04), rgba(24,24,27,0.1), rgba(24,24,27,0.04)); background-size: 200% 100%; animation: qfShimmer 1.2s infinite; }
.qf-skel-line { height: 12px; border-radius: 6px; }
@keyframes qfShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.qf-r-card { -webkit-tap-highlight-color: transparent; }
.qf-r-card:active { transform: scale(0.985); }
@media (prefers-reduced-motion: reduce) { .qf-skel .qf-r-thumb, .qf-skel-line, .qf-orb { animation: none !important; } }

.r-live { display:inline-flex; align-items:center; gap:6px; font-size:0.74rem; font-weight:600; color:var(--subtle); margin-top:4px; }
.r-live-dot { width:7px; height:7px; border-radius:50%; background:#C2410C; box-shadow:0 0 0 3px rgba(194,65,12,.18); }
