/* ============================================================
   AYCANE Manager Portal — Queue/Reservation redesign (2026)
   Warm cream + deep teal, Inter. Layered OVER Bootstrap on the
   dashboard + settings pages (portal-queue class on <html>).
   Design source: Claude Design "Queue Manager.dc.html".
   ============================================================ */

.pq {
  --pq-bg: #EEF3F2;
  --pq-header: #12302E;
  --pq-header-2: #0E2624;
  --pq-ink: #143331;
  --pq-ink-soft: #3C5654;
  --pq-muted: #5A716F;
  --pq-muted-2: #8A9A97;
  --pq-teal: #1E6B65;
  --pq-teal-dark: #17544F;
  --pq-mint: #79BFBC;
  --pq-accent: #F26B4E;
  --pq-card: #ffffff;
  --pq-border: #E4EAE9;
  --pq-border-cool: #D8E2E0;
  --pq-line: #EEF1F0;
  --pq-soft: #F4F8F7;
  --pq-soft-teal: #E6F2F0;
  --pq-warn: #C6873F;
  --pq-warn-bg: #FBEFD6;
  --pq-danger: #B4432E;
  --pq-danger-bg: #FBE4DC;
  --pq-danger-2: #C6522F;
  --pq-ok: #1E7A48;
  --pq-ok-bg: #E4F2E9;
  --pq-side: #E7EDEC;
}

/* ---- Recolor portal.css tokens to the light cream/teal theme (settings + shared) ---- */
html.pq {
  --portal-bg: #EEF3F2;
  --portal-surface: #ffffff;
  --portal-surface-hover: #F4F8F7;
  --portal-border: #E4EAE9;
  --portal-brand: #1E6B65;
  --portal-brand-hover: #17544F;
  --portal-brand-active: #17544F;
  --portal-text: #143331;
  --portal-text-muted: #5A716F;
}
/* Bootstrap/portal component fixes under the light theme */
.pq .nav-pills .nav-link { color: var(--pq-muted); font-weight: 700; }
.pq .nav-pills .nav-link.active { background: var(--pq-teal) !important; color: #fff !important; }
.pq .portal-card { box-shadow: none; }
.pq .card { background: #fff; border: 1px solid var(--pq-border); color: var(--pq-ink); }
.pq .card-header { background: transparent; border-color: var(--pq-line); color: var(--pq-ink); }
.pq .list-group-item { background: transparent; color: var(--pq-ink); border-color: var(--pq-line); }
.pq .text-muted { color: var(--pq-muted) !important; }
.pq .btn-brand { background: var(--pq-teal); border-color: var(--pq-teal); color: #fff; }
.pq .btn-brand:hover { background: var(--pq-teal-dark); border-color: var(--pq-teal-dark); color: #fff; }
.pq .btn-outline-brand { color: var(--pq-teal); border-color: var(--pq-teal); }
.pq .btn-outline-brand:hover { background: var(--pq-soft-teal); color: var(--pq-teal); }
.pq .form-switch .form-check-input:checked { background-color: var(--pq-teal); border-color: var(--pq-teal); }
.pq .accordion-button { background: #fff; color: var(--pq-ink); }
.pq .accordion-button:not(.collapsed) { background: var(--pq-soft-teal); color: var(--pq-teal); }
.pq .table { color: var(--pq-ink); }
.pq .table-dark { --bs-table-bg: #fff; --bs-table-color: var(--pq-ink); --bs-table-border-color: var(--pq-line); background: #fff; color: var(--pq-ink); }
.pq .table-dark > :not(caption) > * > * { background-color: #fff; color: var(--pq-ink); }
.pq .btn-outline-light { color: var(--pq-teal); border-color: var(--pq-border-cool); }
.pq .btn-outline-light:hover { background: var(--pq-soft-teal); color: var(--pq-teal); }
.pq .btn-outline-secondary { color: var(--pq-muted); border-color: var(--pq-border-cool); }
.pq .btn-outline-secondary:hover { background: var(--pq-soft); color: var(--pq-ink); }
.pq .alert-info { background: var(--pq-soft-teal); color: var(--pq-teal-dark); border-color: #CDE7E4; }
.pq .form-text, .pq .small { color: var(--pq-muted); }
.pq .modal-content.bg-dark, .pq .bg-dark { background: #fff !important; color: var(--pq-ink) !important; }
.pq code { color: var(--pq-teal); background: var(--pq-soft-teal); padding: 1px 6px; border-radius: 6px; }

/* ---- Reset the page onto the light theme ---- */
html.pq, .pq body.portal-body {
  background: var(--pq-bg) !important;
  color: var(--pq-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pq * { box-sizing: border-box; }
.pq ::selection { background: var(--pq-mint); color: #0E2E2C; }
.pq a { color: var(--pq-teal); text-decoration: none; }
.pq input::placeholder, .pq textarea::placeholder { color: #9FB0AD; }
.pq .aycsc::-webkit-scrollbar { width: 9px; height: 9px; }
.pq .aycsc::-webkit-scrollbar-thumb { background: #CFDAD8; border-radius: 9px; }

@keyframes pqUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pqToast { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes pqPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pqPush { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pqFlash { 0% { box-shadow: 0 0 0 0 rgba(242,107,78,.5); } 100% { box-shadow: 0 0 0 14px rgba(242,107,78,0); } }

/* ============================================================
   Header (dark) — replaces the old topbar + tabbar
   ============================================================ */
.pq-header {
  background: var(--pq-header);
  color: #EAF7F5;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.pq-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pq-brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.pq-brand-text { font-weight: 800; font-size: 14px; letter-spacing: .14em; color: #fff; }
.pq-header-sep { width: 1px; height: 26px; background: rgba(255,255,255,.14); flex-shrink: 0; }
.pq-venue { display: flex; align-items: center; gap: 9px; flex-shrink: 0; min-width: 0; }
.pq-venue-avatar {
  width: 30px; height: 30px; border-radius: 8px; background: var(--pq-mint); color: #0E2E2C;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.pq-venue-name { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.pq-venue-sub { font-size: 11px; color: #8FA6A3; line-height: 1.15; }
.pq-nav { display: flex; gap: 4px; margin-left: 8px; }
.pq-nav a, .pq-nav button {
  padding: 9px 15px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  font-family: inherit; border: none; background: transparent; color: #9FC2BE; transition: all .14s ease; white-space: nowrap;
}
.pq-nav a:hover, .pq-nav button:hover { color: #EAF7F5; }
.pq-nav a.active, .pq-nav button.active { background: rgba(121,191,188,.20); color: #fff; }
.pq-header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pq-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #8FE3B6; white-space: nowrap; }
.pq-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #3FD37E; display: inline-block; animation: pqPulse 2s ease-in-out infinite; }
.pq-live.reconnecting { color: #F2C98A; } .pq-live.reconnecting .dot { background: #E7B15E; }
.pq-live.polling { color: #F2C98A; } .pq-live.polling .dot { background: #E7B15E; animation: none; }
.pq-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; color: #fff; }
.pq-user { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); }
.pq-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); color: #EAF7F5; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.pq-user-label { font-size: 12.5px; color: #B9CDCB; white-space: nowrap; }
.pq-logout { background: none; border: none; color: #9FC2BE; cursor: pointer; padding: 6px; display: inline-flex; border-radius: 8px; }
.pq-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ============================================================
   Layout: main + diner-preview aside
   ============================================================ */
.pq-shell { display: flex; min-height: calc(100vh - 60px); }
.pq-main { flex: 1; min-width: 0; padding: 22px 24px; }
.pq-main-inner { max-width: 1040px; }

.pq-aside {
  width: 340px; flex-shrink: 0; background: var(--pq-side); border-left: 1px solid #DCE6E4;
  display: flex; flex-direction: column; align-self: stretch;
  position: sticky; top: 60px; height: calc(100vh - 60px);
}
.pq-aside.collapsed { width: 0; border-left: none; overflow: hidden; }
.pq-aside-toggle {
  position: fixed; top: 72px; right: 12px; z-index: 1020;
  background: #fff; border: 1.5px solid var(--pq-border-cool); color: var(--pq-teal);
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer; display: none;
  align-items: center; justify-content: center; box-shadow: 0 6px 18px -8px rgba(20,51,49,.3);
}
.pq-has-aside .pq-aside-toggle { display: inline-flex; }
.pq-aside-head { padding: 14px 16px 10px; flex-shrink: 0; }
.pq-aside-head-row { display: flex; align-items: center; justify-content: space-between; }
.pq-aside-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7A908D; }
.pq-diner-tabs { display: inline-flex; background: #D6E0DE; border-radius: 999px; padding: 2px; }
.pq-diner-tabs button {
  padding: 5px 12px; border-radius: 999px; border: none; font-weight: 700; font-size: 12px; cursor: pointer;
  font-family: inherit; background: transparent; color: var(--pq-muted);
}
.pq-diner-tabs button.active { background: #fff; color: var(--pq-ink); }
.pq-aside-body { flex: 1; overflow-y: auto; padding: 0 22px 22px; display: flex; flex-direction: column; align-items: center; }
.pq-aside-note { font-size: 11.5px; color: var(--pq-muted-2); text-align: center; margin-top: 14px; max-width: 250px; line-height: 1.5; }

/* Phone mockup */
.pq-phone { width: 250px; background: #0E1F1E; border-radius: 38px; padding: 10px; box-shadow: 0 26px 54px -22px rgba(20,51,49,.55); margin-top: 6px; }
.pq-phone-screen { background: #F4F7F6; border-radius: 30px; overflow: hidden; position: relative; min-height: 460px; }
.pq-phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #0E1F1E; border-radius: 999px; z-index: 6; }
.pq-phone-top { background: var(--pq-teal); padding: 34px 16px 16px; color: #fff; }
.pq-phone-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.pq-phone-brand img { width: 22px; height: 22px; border-radius: 6px; }
.pq-phone-venue { font-weight: 800; font-size: 16px; margin-top: 12px; }
.pq-phone-venue-sub { font-size: 11.5px; color: #BFE4DF; }
.pq-phone-body { padding: 16px; }
.pq-phone-card { background: #fff; border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 4px 14px rgba(20,51,49,.06); }
.pq-phone-card.left { text-align: left; }
.pq-phone-empty { text-align: center; color: var(--pq-muted-2); font-size: 13px; padding: 40px 10px; }
.pq-phone-feed { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.pq-feed-item { background: #fff; border-radius: 12px; padding: 11px 12px; box-shadow: 0 2px 8px rgba(20,51,49,.05); animation: pqPush .3s ease both; }
.pq-feed-head { display: flex; align-items: center; gap: 7px; }
.pq-feed-ic { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.pq-feed-title { font-weight: 700; font-size: 12.5px; color: var(--pq-ink); }
.pq-feed-time { margin-left: auto; font-size: 10.5px; color: #9FB0AD; }
.pq-feed-body { font-size: 12px; color: var(--pq-muted); margin-top: 4px; line-height: 1.4; }
.pq-diner-big { font-size: 52px; font-weight: 800; color: var(--pq-teal); letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 2px; }
.pq-diner-big.sm { font-size: 30px; }
.pq-diner-big.warn { color: var(--pq-warn); font-size: 30px; }
.pq-diner-big.ready { color: var(--pq-danger); font-size: 28px; }
.pq-diner-sub { font-size: 12.5px; color: var(--pq-muted); font-weight: 600; }
.pq-diner-pill { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 999px; background: #F0F3F2; color: var(--pq-muted-2); }
.pq-diner-pill.warn { color: var(--pq-warn); background: var(--pq-warn-bg); }
.pq-diner-pill.ready { color: var(--pq-danger); background: var(--pq-danger-bg); }
.pq-diner-eyebrow { font-size: 12px; color: var(--pq-muted-2); font-weight: 600; }

/* ============================================================
   Page headers, buttons, stat cards
   ============================================================ */
.pq-tabpane { animation: pqUp .25s ease both; }
.pq-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pq-h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--pq-ink); }
.pq-sub { color: var(--pq-muted); margin: 4px 0 0; font-size: 14px; }
.pq-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

.pq-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; padding: 10px 14px; border-radius: 11px; cursor: pointer; font-family: inherit; border: 1.5px solid transparent; transition: background .14s ease, filter .14s ease, border-color .14s ease; white-space: nowrap; }
.pq-btn:disabled { cursor: not-allowed; }
.pq-btn-white { background: #fff; color: #2C4A48; border-color: var(--pq-border-cool); }
.pq-btn-white:hover { background: var(--pq-soft); }
.pq-btn-teal { background: var(--pq-teal); color: #fff; }
.pq-btn-teal:hover { background: var(--pq-teal-dark); color: #fff; }
.pq-btn-outline { background: #fff; color: var(--pq-teal); border-color: var(--pq-teal); }
.pq-btn-outline:hover { background: var(--pq-soft-teal); }
.pq-btn-accent { background: var(--pq-accent); color: #fff; }
.pq-btn-accent:hover { filter: brightness(1.05); color: #fff; }
.pq-btn-accent:disabled { background: #E4EBEA; color: #9AA9A6; }
.pq-btn-warn { background: var(--pq-warn-bg); color: #8A5A16; border-color: #F0D9A6; }
.pq-btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.pq-icon-btn { background: #fff; border: 1.5px solid var(--pq-border-cool); color: #2C4A48; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pq-icon-btn:hover { background: var(--pq-soft); }
.pq-icon-btn.active { color: var(--pq-danger); }

/* toolbar controls */
.pq-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.pq-select { padding: 9px 12px; border: 1.5px solid var(--pq-border-cool); border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--pq-ink); background: #fff; font-weight: 600; cursor: pointer; }
.pq-select:focus { outline: none; border-color: var(--pq-teal); }
.pq-status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 8px 13px; border-radius: 999px; }
.pq-status-pill.on { background: var(--pq-soft-teal); color: var(--pq-teal); }
.pq-status-pill.off { background: #F0F3F2; color: var(--pq-muted-2); }
.pq-status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pq-autopause-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--pq-warn-bg); color: #8A5A16; font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 999px; }

.pq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 11px; margin-top: 18px; }
.pq-stat { background: #fff; border: 1px solid var(--pq-border); border-radius: 14px; padding: 14px 16px; transition: box-shadow .2s ease; }
.pq-stat-label { font-size: 12px; color: var(--pq-muted-2); font-weight: 600; }
.pq-stat-num { font-size: 26px; font-weight: 800; color: var(--pq-ink); letter-spacing: -.02em; }
.pq-stat-num.teal { color: var(--pq-teal); }
.pq-stat-num small { font-size: 13px; color: var(--pq-muted-2); font-weight: 800; }
.pq-stat.flash { animation: pqFlash 1.5s ease-out; }

/* banners / alerts */
.pq-banner { border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pq-banner.warn { background: var(--pq-warn-bg); border: 1px solid #F0D9A6; }
.pq-banner-title { font-weight: 700; font-size: 14px; color: #8A5A16; }
.pq-banner-msg { font-size: 13px; color: #A9803C; }
.pq-capacity { background: var(--pq-danger-bg); border: 1px solid #F2C9BC; color: #A6371F; border-radius: 12px; padding: 11px 15px; font-size: 13.5px; font-weight: 600; margin-top: 16px; display: flex; align-items: center; gap: 9px; }

/* ============================================================
   Tier chips + queue cards
   ============================================================ */
.pq-tierchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pq-tierchip { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; border: 1.5px solid var(--pq-border-cool); background: #fff; color: #4E6B68; transition: all .12s ease; }
.pq-tierchip:hover { border-color: var(--pq-mint); }
.pq-tierchip.active { border-color: var(--pq-teal); background: var(--pq-teal); color: #fff; }

.pq-callnext-row { display: flex; gap: 9px; flex-wrap: wrap; }

.pq-queue-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pq-tier-section { margin-top: 18px; }
.pq-tier-head { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--pq-ink); }
.pq-tier-head .prefix { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; }
.pq-tier-head .count { font-size: 12.5px; color: var(--pq-muted-2); font-weight: 600; }

.pq-card {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 15px; padding: 15px 16px;
  border: 1.5px solid var(--pq-border); transition: border-color .12s ease, box-shadow .12s ease; flex-wrap: wrap;
}
.pq-card.selectable { cursor: pointer; }
.pq-card.is-next { border-color: #F2C9A6; box-shadow: 0 0 0 3px rgba(242,169,90,.14); }
.pq-card.selected { border-color: var(--pq-teal); box-shadow: 0 0 0 3px rgba(30,107,101,.12); }
.pq-card.confirming { border-color: var(--pq-danger-2); box-shadow: 0 0 0 3px rgba(198,82,47,.12); }
.pq-pos { width: 40px; height: 40px; border-radius: 11px; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--pq-soft-teal); color: var(--pq-teal); }
.pq-card.is-next .pq-pos { background: var(--pq-accent); color: #fff; }
.pq-card-main { flex: 1; min-width: 0; }
.pq-card-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pq-name { font-weight: 800; font-size: 16px; color: var(--pq-ink); }
.pq-name-edit { cursor: text; }
.pq-origin { display: inline-flex; color: var(--pq-muted-2); }
.pq-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pq-badge-tier { color: #3C5654; background: #EEF4F3; }
.pq-badge-status.waiting { color: var(--pq-muted-2); background: #F0F3F2; }
.pq-badge-status.notified, .pq-badge-status.called { color: var(--pq-warn); background: var(--pq-warn-bg); }
.pq-badge-status.ready { color: var(--pq-danger); background: var(--pq-danger-bg); }
.pq-badge-arrived { color: var(--pq-ok); background: var(--pq-ok-bg); }
.pq-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: #7A908D; min-width: 0; }
/* long unbroken values (emails, URLs) must wrap inside the card, never collide with actions */
.pq-card-meta span { overflow-wrap: anywhere; min-width: 0; }
.pq-card-meta .strong { font-weight: 700; color: #3C5654; display: inline-flex; align-items: center; gap: 4px; }
.pq-wait.wait-ok { color: #3C5654; }
.pq-wait.wait-warn { color: var(--pq-warn); font-weight: 700; }
.pq-wait.wait-danger { color: var(--pq-danger-2); font-weight: 700; }
.pq-note-line { margin-top: 6px; font-size: 12.5px; color: #8A5A16; background: var(--pq-warn-bg); border-radius: 7px; padding: 4px 9px; display: inline-block; }
.pq-card-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.pq-card-actions .row1 { display: flex; gap: 6px; }
.pq-card-actions .row2 { display: flex; gap: 10px; }
.pq-linkbtn { background: none; border: none; font-weight: 600; font-size: 12px; cursor: pointer; font-family: inherit; padding: 2px; }
.pq-linkbtn.danger { color: var(--pq-danger); } .pq-linkbtn.danger:hover { text-decoration: underline; }
.pq-linkbtn.muted { color: var(--pq-muted-2); } .pq-linkbtn.muted:hover { text-decoration: underline; }
.pq-linkbtn.teal { color: var(--pq-teal); } .pq-linkbtn.teal:hover { text-decoration: underline; }

/* inline confirm strip + notes + edit (visibility driven by Bootstrap .d-none toggles in JS) */
.pq-confirm { flex-basis: 100%; width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pq-confirm-text { font-size: 12px; font-weight: 700; color: var(--pq-danger-2); }
.pq-notes-wrap { flex-basis: 100%; width: 100%; margin-top: 8px; }
.pq-inline-input { font-family: inherit; font-size: 14px; color: var(--pq-ink); background: #fff; border: 1.5px solid var(--pq-teal); border-radius: 8px; padding: 6px 10px; width: 100%; outline: none; }
.pq-empty { text-align: center; color: var(--pq-muted-2); font-size: 14px; padding: 40px 0; background: #fff; border: 1px dashed #C9D8D5; border-radius: 16px; }

/* ============================================================
   Reservations
   ============================================================ */
.pq-daystrip { display: flex; gap: 7px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; }
.pq-day { flex-shrink: 0; width: 58px; display: flex; flex-direction: column; align-items: center; padding: 9px 0 8px; border-radius: 13px; cursor: pointer; font-family: inherit; border: 1.5px solid var(--pq-border); background: #fff; color: var(--pq-ink); }
.pq-day.active { border-color: var(--pq-teal); background: var(--pq-teal); color: #fff; }
.pq-day .dow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.pq-day .num { font-size: 19px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.pq-day .badge { margin-top: 6px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--pq-soft-teal); color: var(--pq-teal); }
.pq-day.active .badge { background: rgba(255,255,255,.2); color: #fff; }

.pq-res-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 20px; align-items: start; }
.pq-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pq-col-title { font-size: 15px; font-weight: 800; color: var(--pq-ink); margin: 0; }
.pq-col-meta { font-size: 12.5px; color: var(--pq-muted-2); font-weight: 600; }

.pq-slotlist { display: flex; flex-direction: column; gap: 8px; }
.pq-slot { background: #fff; border: 1px solid var(--pq-border); border-radius: 13px; padding: 12px 14px; }
.pq-slot-row { display: flex; align-items: center; gap: 12px; }
.pq-slot-time { width: 68px; font-weight: 800; font-size: 14px; color: var(--pq-ink); flex-shrink: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pq-slot-bar-wrap { flex: 1; min-width: 0; }
.pq-slot-bar-track { height: 7px; border-radius: 99px; background: var(--pq-line); overflow: hidden; }
.pq-slot-bar { height: 100%; border-radius: 99px; background: var(--pq-teal); transition: width .3s ease; }
.pq-slot-bar.mid { background: var(--pq-warn); } .pq-slot-bar.full { background: var(--pq-danger-2); }
.pq-slot-cap { font-size: 12px; font-weight: 700; flex-shrink: 0; width: 42px; text-align: right; color: var(--pq-muted); }
.pq-slot-cap.full { color: var(--pq-danger-2); }
.pq-slot-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-left: 80px; }
.pq-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--pq-soft); border: 1px solid var(--pq-border); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: #3C5654; cursor: pointer; font-family: inherit; }
.pq-chip .nm { font-weight: 700; } .pq-chip .sz { opacity: .7; }
.pq-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.pq-upcoming { display: flex; flex-direction: column; gap: 9px; }
.pq-up-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1.5px solid var(--pq-border); border-radius: 13px; padding: 12px 13px; cursor: pointer; font-family: inherit; text-align: left; width: 100%; }
.pq-up-card.selected { border-color: var(--pq-teal); }
.pq-up-time { text-align: center; flex-shrink: 0; width: 52px; }
.pq-up-time .t { font-weight: 800; font-size: 14px; color: var(--pq-teal); font-variant-numeric: tabular-nums; }
.pq-up-time .c { font-size: 10.5px; color: var(--pq-muted-2); font-weight: 600; }
.pq-up-main { flex: 1; min-width: 0; border-left: 1px solid var(--pq-line); padding-left: 11px; }
.pq-up-name { font-weight: 700; font-size: 14px; color: var(--pq-ink); }
.pq-up-sub { font-size: 12px; color: var(--pq-muted-2); }
.pq-badge-res { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.pq-badge-res.pending { color: var(--pq-warn); background: var(--pq-warn-bg); }
.pq-badge-res.confirmed { color: var(--pq-ok); background: var(--pq-ok-bg); }
.pq-badge-res.arrived { color: #2A5F9E; background: #E4EEF9; }
.pq-badge-res.seated, .pq-badge-res.completed { color: var(--pq-teal); background: var(--pq-soft-teal); }
.pq-badge-res.cancelled { color: var(--pq-muted-2); background: #F0F3F2; }
.pq-badge-res.no_show { color: var(--pq-danger); background: var(--pq-danger-bg); }

/* ============================================================
   Settings cards
   ============================================================ */
.pq-card-panel { background: #fff; border: 1px solid var(--pq-border); border-radius: 16px; padding: 22px; margin-top: 14px; }
.pq-card-panel:first-of-type { margin-top: 18px; }
.pq-panel-title { font-size: 15px; font-weight: 800; color: var(--pq-ink); margin: 0; }
.pq-panel-sep { border-top: 1px solid var(--pq-line); margin-top: 16px; padding-top: 16px; }
.pq-setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pq-setting-row + .pq-setting-row { margin-top: 13px; }
.pq-setting-label { font-size: 13.5px; font-weight: 600; color: #2C4A48; }
.pq-setting-hint { font-size: 12px; color: var(--pq-muted-2); }
.pq-setting-val { font-weight: 700; color: var(--pq-ink); font-size: 14px; }
.pq-setting-val.teal { color: var(--pq-teal); font-weight: 800; }
.pq-sync-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--pq-soft-teal); color: var(--pq-teal); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-top: 8px; }

/* toggle switch */
.pq-toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; border: none; cursor: pointer; flex-shrink: 0; transition: background .16s ease; background: #CBD6D4; padding: 0; }
.pq-toggle.on { background: var(--pq-teal); }
.pq-toggle .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .16s ease; }
.pq-toggle.on .knob { transform: translateX(18px); }
/* stepper */
.pq-stepper { display: flex; align-items: center; gap: 10px; }
.pq-step-btn { width: 32px; height: 32px; border-radius: 9px; border: 1.5px solid var(--pq-border-cool); background: #fff; color: #2C4A48; font-size: 18px; font-weight: 700; cursor: pointer; font-family: inherit; line-height: 1; }
.pq-step-btn:hover { background: var(--pq-soft); }
.pq-step-val { font-weight: 800; font-size: 16px; color: var(--pq-ink); min-width: 22px; text-align: center; }
.pq-range { width: 100%; margin-top: 8px; accent-color: var(--pq-teal); }
.pq-range-scale { display: flex; justify-content: space-between; font-size: 11px; color: #9FB0AD; }

/* ============================================================
   Connection dot / offline / toast (override portal.css)
   ============================================================ */
.pq .connection-dot { width: 9px; height: 9px; border-radius: 50%; background: #3FD37E; display: inline-block; }
.pq .connection-dot.reconnecting, .pq .connection-dot.polling { background: #E7B15E; }
.pq .offline-banner { background: var(--pq-warn-bg); color: #8A5A16; text-align: center; padding: 8px; font-size: 13px; font-weight: 600; display: none; }
.pq .offline-banner.show { display: block; }
.pq-toast-mount { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pq .portal-toast { background: var(--pq-header); color: #fff; padding: 13px 20px; border-radius: 13px; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px; animation: pqToast .3s ease both; }
.pq .portal-toast.removing { opacity: 0; transition: opacity .3s ease; }
.pq .portal-toast .toast-icon { color: #5BE0A6; }
.pq .portal-toast.error { background: #8A2318; } .pq .portal-toast.error .toast-icon { color: #FFB4A2; }
.pq .portal-toast.warning { background: #8A5A16; } .pq .portal-toast.warning .toast-icon { color: #FFD98A; }

/* ============================================================
   Modal restyle (over Bootstrap) — light cards, rounded
   ============================================================ */
.pq .modal-content { background: #fff; color: var(--pq-ink); border: none; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.pq .modal-header, .pq .modal-footer { border-color: var(--pq-line) !important; }
.pq .modal-title { font-weight: 800; color: var(--pq-ink); }
.pq .form-label { font-size: 13px; font-weight: 600; color: #2C4A48; margin-bottom: 6px; }
.pq .portal-input, .pq .form-control, .pq .form-select { background: #fff; border: 1.5px solid var(--pq-border-cool); border-radius: 10px; color: var(--pq-ink); font-family: inherit; }
.pq .portal-input:focus, .pq .form-control:focus, .pq .form-select:focus { border-color: var(--pq-teal); box-shadow: 0 0 0 3px rgba(30,107,101,.12); background: #fff; color: var(--pq-ink); }
.pq .btn-close { filter: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .pq-aside { position: fixed; right: 0; top: 60px; z-index: 1025; box-shadow: -18px 0 40px -24px rgba(20,51,49,.4); }
  .pq-aside.collapsed { box-shadow: none; }
}
/* ---- Visual-audit fixes (2026-07-29) ---- */
/* Aside header: reserve space for the fixed collapse chevron so it never overlaps the Queue/Booking toggle */
.pq-aside-head-row { padding-right: 44px; }
/* Fullscreen mobile modals: footer must stay visible and reachable */
@media (max-width: 767.98px) {
  .pq .modal-fullscreen-md-down .modal-content { border-radius: 0; }
  .pq .modal-fullscreen-md-down .modal-footer { position: sticky; bottom: 0; background: #fff; z-index: 5; box-shadow: 0 -6px 16px -12px rgba(20,51,49,.35); }
}
/* Cards on small screens: actions get their own full row; meta stops crushing */
@media (max-width: 560px) {
  .pq-card { flex-wrap: wrap; }
  .pq-card-actions { width: 100%; flex-direction: row !important; justify-content: flex-end; align-items: center; gap: 10px; }
  .pq-rcard { flex-wrap: wrap; }
  /* Force badge + action cluster onto their own row (main fills the avatar row) */
  .pq-rcard-main { flex-basis: calc(100% - 59px); }
}
/* Data tables (history/subscription): scroll horizontally instead of crushing columns */
.pq .table-responsive .table { min-width: 560px; }
.pq .table td, .pq .table th { white-space: nowrap; }
/* Active filter chips must be readable (was dark-on-dark) */
.pq .btn-outline-secondary.active, .pq .btn-check:checked + .btn-outline-secondary {
  background: var(--pq-teal); border-color: var(--pq-teal); color: #fff;
}
/* No stray Bootstrap blue: primary buttons are teal in this portal */
.pq .btn-primary { background: var(--pq-teal); border-color: var(--pq-teal); }
.pq .btn-primary:hover, .pq .btn-primary:focus { background: var(--pq-teal-dark); border-color: var(--pq-teal-dark); }
/* Promote wizard stepper breathing room on small screens */
@media (max-width: 480px) {
  .pq .step-indicator { padding: 0 14px; }
  .pq input[type="date"] { min-width: 0; }
}

/* Header must NEVER push logout off-screen: nav scrolls, side items shed progressively */
.pq-clock { white-space: nowrap; }
.pq-nav { min-width: 0; flex-shrink: 1; overflow-x: auto; scrollbar-width: none; }
.pq-nav::-webkit-scrollbar { display: none; }
.pq-header-right { flex-shrink: 0; }
@media (max-width: 1280px) {
  .pq-clock { display: none; }
  .pq-live span:not(.dot) { display: none; }
  .pq-user-label { display: none; }
  .pq-header { gap: 12px; }
}
@media (max-width: 900px) {
  .pq-res-grid { grid-template-columns: 1fr; }
  .pq-venue-sub { display: none; }
  .pq-venue-name { max-width: 20vw; }
  .pq-nav a, .pq-nav button { padding: 8px 11px; }
}
@media (max-width: 680px) {
  .pq-main { padding: 16px 14px; }
  .pq-slot-chips { padding-left: 0; }
  .pq-header-right { gap: 10px; }
  .pq-header { padding: 0 12px; }
  .pq-brand-text { display: none; }
  .pq-venue-name { max-width: 28vw; }
}

/* ============================================================
   PORTAL (pre-dashboard) — sidebar shell, auth, wizard, plans
   Design source: Claude Design "Queue Portal.dc.html"
   ============================================================ */

/* Buttons rendered as <a> must keep their own text color (the generic
   `.pq a { color: teal }` rule otherwise wins and makes teal-on-teal invisible) */
.pq a.pq-btn-teal, .pq a.pq-btn-accent, .pq a.pq-btn-block { color: #fff; }
.pq a.pq-btn-white { color: #2C4A48; }
.pq a.pq-btn-outline { color: var(--pq-teal); }
.pq a.pq-btn-warn { color: #8A5A16; }
.pq a.pq-sidebar-item { color: #9FC2BE; }
.pq a.pq-sidebar-item.active { color: #EAF7F5; }
.pq a.pq-back-link { color: var(--pq-muted); }
.pq a.pq-rcard, .pq a.pq-rcard:hover { color: inherit; }

/* ---- App shell: left sidebar + scrolling main ---- */
.pq-app { display: flex; min-height: 100vh; }
.pq-sidebar {
  width: 246px; flex-shrink: 0; background: var(--pq-header); color: #EAF7F5;
  padding: 20px 16px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.pq-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.pq-sidebar-brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.pq-sidebar-brand span { font-weight: 800; font-size: 16px; letter-spacing: .14em; color: #fff; }
.pq-sidebar-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 10px 13px;
  border-radius: 11px; font-size: 14.5px; font-weight: 600; cursor: pointer; border: none;
  font-family: inherit; background: transparent; color: #9FC2BE; transition: background .14s ease, color .14s ease; text-decoration: none;
}
.pq-sidebar-item:hover { background: rgba(255,255,255,.06); color: #EAF7F5; }
.pq-sidebar-item.active { background: rgba(121,191,188,.20); color: #EAF7F5; }
.pq-sidebar-item svg { flex-shrink: 0; }
.pq-sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; display: flex; align-items: center; gap: 11px; }
.pq-sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pq-mint); color: #0E2E2C; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.pq-sidebar-user { flex: 1; min-width: 0; }
.pq-sidebar-user .nm { font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-sidebar-user .em { font-size: 11.5px; color: #8FA6A3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-sidebar-signout { background: transparent; border: none; color: #8FA6A3; cursor: pointer; padding: 4px; display: flex; }
.pq-sidebar-signout:hover { color: #fff; }
.pq-appmain { flex: 1; min-width: 0; padding: clamp(22px, 3vw, 40px); max-height: 100vh; overflow-y: auto; }
.pq-appmain-inner { max-width: 1000px; }
.pq-sidebar-toggle { display: none; }

/* ---- Greeting / section heads ---- */
.pq-greet { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--pq-ink); }
.pq-greet-sub { color: var(--pq-muted); margin: 6px 0 0; font-size: 15px; }
.pq-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 14px; }
.pq-section-head h2 { font-size: 17px; font-weight: 800; color: var(--pq-ink); margin: 0; }

/* ---- Overview stat grid (bigger than the queue stats) ---- */
.pq-ostats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 24px; }
.pq-ostat { background: #fff; border: 1px solid var(--pq-border); border-radius: 16px; padding: 20px; }
.pq-ostat .lbl { font-size: 13px; color: var(--pq-muted-2); font-weight: 600; }
.pq-ostat .num { font-size: 30px; font-weight: 800; color: var(--pq-ink); letter-spacing: -.02em; margin-top: 2px; }
.pq-ostat .num.ok { color: var(--pq-ok); }
.pq-ostat .num.warn { color: var(--pq-warn); }

/* ---- Restaurant list cards ---- */
.pq-rlist { display: flex; flex-direction: column; gap: 11px; }
.pq-rcard {
  text-align: left; background: #fff; border: 1px solid var(--pq-border); border-radius: 16px; padding: 16px 18px;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 15px;
  transition: box-shadow .15s ease, transform .15s ease; text-decoration: none; width: 100%;
}
.pq-rcard:hover { box-shadow: 0 8px 22px -12px rgba(20,51,49,.35); transform: translateY(-1px); }
.pq-rcard-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--pq-soft-teal); color: var(--pq-teal); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.pq-rcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pq-rcard-main { flex: 1; min-width: 0; }
.pq-rcard-name { font-weight: 700; font-size: 15.5px; color: var(--pq-ink); }
.pq-rcard-meta { font-size: 13px; color: var(--pq-muted-2); }
.pq-rbadge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.pq-rbadge.await { color: var(--pq-warn); background: var(--pq-warn-bg); }
.pq-rbadge.verified { color: var(--pq-teal); background: var(--pq-soft-teal); }
.pq-rbadge.active { color: var(--pq-ok); background: var(--pq-ok-bg); }
.pq-rbadge.pending { color: var(--pq-warn); background: var(--pq-warn-bg); }
.pq-rcard-chev { color: #B4C3C0; flex-shrink: 0; }

/* ---- Big content card / empty add-first ---- */
.pq-card-lg { background: #fff; border: 1px solid var(--pq-border); border-radius: 18px; padding: 26px; }
.pq-empty-lg { background: #fff; border: 1px dashed #C9D8D5; border-radius: 20px; padding: 44px 28px; text-align: center; margin-top: 24px; }
.pq-empty-lg .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--pq-soft-teal); color: var(--pq-teal); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.pq-empty-lg h2 { font-size: 20px; font-weight: 800; color: var(--pq-ink); margin: 18px 0 0; }
.pq-empty-lg p { color: var(--pq-muted); margin: 8px auto 0; font-size: 15px; max-width: 34em; }

/* ---- Form fields (portal) ---- */
.pq-field { margin-top: 16px; }
.pq-field:first-child { margin-top: 0; }
.pq-flabel { font-size: 13px; font-weight: 600; color: #2C4A48; margin-bottom: 6px; display: block; }
.pq-input, .pq textarea.pq-input, .pq select.pq-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--pq-border-cool); border-radius: 11px;
  font-size: 15px; font-family: inherit; color: var(--pq-ink); background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.pq-input:focus { border-color: var(--pq-teal); box-shadow: 0 0 0 3px rgba(30,107,101,.10); }
.pq textarea.pq-input { resize: vertical; line-height: 1.5; min-height: 72px; }
.pq-ferr { color: var(--pq-danger-2); font-size: 12.5px; margin-top: 5px; }
.pq-btn-block { width: 100%; background: var(--pq-teal); color: #fff; border: none; padding: 13px; border-radius: 12px; font-weight: 700; font-size: 15.5px; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .14s ease; }
.pq-btn-block:hover { background: var(--pq-teal-dark); color: #fff; }
.pq-btn-block:disabled { opacity: .55; cursor: default; }
.pq-oauth { width: 100%; background: #fff; color: #2C4A48; border: 1.5px solid var(--pq-border-cool); padding: 11px; border-radius: 12px; font-weight: 600; font-size: 14.5px; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 9px; }
.pq-oauth:hover { background: var(--pq-soft); }
.pq-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #9FB0AD; font-size: 12.5px; }
.pq-or span.line { flex: 1; height: 1px; background: #DCE6E4; }
.pq-input-group { position: relative; }
.pq-input-group .pq-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #8A9A97; cursor: pointer; padding: 6px; display: inline-flex; }
.pq-back-link { background: none; border: none; color: var(--pq-muted); font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 0; text-decoration: none; }
.pq-back-link:hover { color: var(--pq-ink); }

/* ---- Auth split-screen ---- */
.pq-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.pq-auth-brand { background: var(--pq-header); color: #EAF7F5; padding: clamp(32px,4vw,56px); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.pq-auth-brand::before { content: ""; position: absolute; top: -120px; right: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(121,191,188,.28), rgba(121,191,188,0) 70%); pointer-events: none; }
.pq-auth-logo { display: inline-flex; align-items: center; gap: 11px; position: relative; width: max-content; text-decoration: none; }
.pq-auth-logo img { width: 40px; height: 40px; border-radius: 11px; display: block; }
.pq-auth-logo .wm { font-weight: 800; font-size: 19px; letter-spacing: .16em; color: #fff; }
.pq-auth-logo .biz { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #8FD3CC; border: 1px solid rgba(143,211,204,.4); padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.pq-auth-hero { position: relative; max-width: 30em; }
.pq-auth-hero h1 { font-size: clamp(28px,3vw,38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; margin: 0; }
.pq-auth-hero p { color: #AFD3CF; font-size: 16px; margin: 16px 0 0; line-height: 1.6; }
.pq-auth-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px; margin-top: 26px; backdrop-filter: blur(6px); }
.pq-auth-card-head { display: flex; justify-content: space-between; align-items: center; }
.pq-auth-card-head .t { font-weight: 700; font-size: 14.5px; color: #fff; }
.pq-auth-card-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #8FE3B6; }
.pq-auth-card-head .live .dot { width: 7px; height: 7px; border-radius: 50%; background: #3FD37E; display: inline-block; }
.pq-auth-card-stats { display: flex; gap: 9px; margin-top: 14px; }
.pq-auth-card-stats .s { flex: 1; background: rgba(255,255,255,.06); border-radius: 12px; padding: 11px; }
.pq-auth-card-stats .s .l { font-size: 11px; color: #9FC2BE; }
.pq-auth-card-stats .s .v { font-size: 22px; font-weight: 800; color: #fff; }
.pq-auth-card-stats .s .v.mint { color: var(--pq-mint); }
.pq-auth-card-stats .s .v.amber { color: #F2A65A; }
.pq-auth-foot { position: relative; color: #7FA6A2; font-size: 12.5px; }
.pq-auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(28px,4vw,52px); }
.pq-auth-inner { width: 100%; max-width: 400px; animation: pqUp .3s ease both; }
.pq-auth-inner h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--pq-ink); }
.pq-auth-inner .sub { color: var(--pq-muted); margin: 8px 0 0; font-size: 15px; }
.pq-auth-mobile-logo { display: none; }
@media (max-width: 900px) {
  .pq-auth { grid-template-columns: 1fr; }
  .pq-auth-brand { display: none; }
  .pq-auth-mobile-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; }
}

/* ---- Wizard / detail steppers ---- */
.pq-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.pq-step { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pq-step .dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; margin-right: 8px; }
.pq-step.done { background: var(--pq-ok-bg); color: var(--pq-ok); } .pq-step.done .dot { background: var(--pq-ok); color: #fff; }
.pq-step.active { background: var(--pq-soft-teal); color: var(--pq-teal); } .pq-step.active .dot { background: var(--pq-teal); color: #fff; }
.pq-step.idle { background: var(--pq-line); color: #9AA9A6; } .pq-step.idle .dot { background: #CBD6D4; color: #fff; }

/* ---- Fetched-restaurant confirm card ---- */
.pq-gcard { background: #fff; border: 1px solid var(--pq-border); border-radius: 18px; overflow: hidden; }
.pq-gcard-cover { height: 120px; background: linear-gradient(135deg, #1E5A55, var(--pq-mint)); position: relative; display: flex; align-items: center; justify-content: center; }
.pq-gcard-cover .via { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.9); color: var(--pq-muted); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pq-gcard-body { padding: 22px; }
.pq-gcard-row { display: flex; gap: 11px; align-items: flex-start; }
.pq-gcard-row svg { flex-shrink: 0; margin-top: 1px; }

/* ---- Form chips (multi/single select) ---- */
.pq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pq-chip {
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--pq-border-cool); background: #fff; color: #4E6B68; transition: all .12s ease;
}
.pq-chip:hover { border-color: var(--pq-mint); }
.pq-chip.on { border-color: var(--pq-teal); background: var(--pq-soft-teal); color: var(--pq-teal); }

/* ---- Plan cards (subscription) ---- */
.pq-plangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; align-items: stretch; }
.pq-plan { position: relative; background: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; border: 1.5px solid var(--pq-border); cursor: pointer; transition: border-color .14s ease, box-shadow .14s ease; }
.pq-plan:hover { border-color: var(--pq-mint); }
.pq-plan.recommended { border-color: #CFE0DD; }
.pq-plan.selected { border-color: var(--pq-accent); box-shadow: 0 0 0 3px rgba(242,107,78,.12); }
.pq-plan-rec-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--pq-accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 5px 13px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.pq-plan-name { font-weight: 800; font-size: 17px; color: var(--pq-ink); }
.pq-plan-desc { color: var(--pq-muted-2); font-size: 13px; margin: 4px 0 0; }
.pq-plan-price { margin: 16px 0 2px; }
.pq-plan-price .amt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--pq-ink); }
.pq-plan-price .per { color: var(--pq-muted-2); font-weight: 600; font-size: 14px; }
.pq-plan-feats { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.pq-plan-feats .f { display: flex; gap: 9px; font-size: 13.5px; color: var(--pq-ink-soft); }
.pq-plan-feats .f .ck { color: var(--pq-ok); font-weight: 800; }
.pq-plan-save { font-size: 12px; font-weight: 700; color: var(--pq-ok); background: var(--pq-ok-bg); padding: 3px 9px; border-radius: 999px; align-self: flex-start; margin-top: 10px; }
.pq-bill-toggle { display: inline-flex; background: #E4EBEA; border-radius: 999px; padding: 3px; }
.pq-bill-toggle button { border: none; padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; background: transparent; color: var(--pq-muted); }
.pq-bill-toggle button.on { background: #fff; color: var(--pq-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---- OTP inputs ---- */
.pq-otp { display: flex; gap: 10px; justify-content: center; }
.pq-otp input { width: 46px; height: 56px; text-align: center; font-size: 24px; font-weight: 800; border: 1.5px solid var(--pq-border-cool); border-radius: 12px; color: var(--pq-ink); background: #fff; outline: none; font-family: inherit; }
.pq-otp input:focus { border-color: var(--pq-teal); box-shadow: 0 0 0 3px rgba(30,107,101,.12); }

/* ---- Toast (portal-level, single) ---- */
.pq-toast-fixed { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--pq-header); color: #fff; padding: 13px 20px; border-radius: 13px; font-weight: 600; font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px; z-index: 2000; animation: pqToast .3s ease both; }

/* ---- Success / status panel ---- */
.pq-status-panel { max-width: 560px; margin: 8px auto 0; text-align: center; }
.pq-status-ic { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.pq-status-ic.ok { background: var(--pq-ok-bg); color: var(--pq-ok); }
.pq-status-ic.warn { background: var(--pq-warn-bg); color: var(--pq-warn); }
.pq-status-ic.danger { background: var(--pq-danger-bg); color: var(--pq-danger); }

/* ---- Sidebar responsive (mobile drawer) ---- */
@media (max-width: 860px) {
  .pq-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 40px -24px rgba(0,0,0,.5); }
  .pq-sidebar.open { transform: translateX(0); }
  .pq-sidebar-toggle { display: inline-flex; position: fixed; top: 12px; left: 12px; z-index: 45; background: var(--pq-header); color: #fff; border: none; width: 42px; height: 42px; border-radius: 11px; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0,0,0,.4); }
  .pq-appmain { padding-top: 64px; }
  .pq-plangrid, .pq-ostats { grid-template-columns: 1fr; }
}

/* Plan grid: balanced 2×2 on tablet instead of a 3+1 orphan (must come AFTER the base .pq-plangrid rule) */
@media (max-width: 1100px) and (min-width: 561px) {
  .pq-plangrid { grid-template-columns: repeat(2, 1fr); }
}
