/* =========================================================
   QAHWATI POS v5 Pro — 2027 Minimalist Luxury (Mobile + PC Web Responsive)
   ========================================================= */
:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-subtle: #F1EFEA;
  --ink: #16181D;
  --ink-muted: #6E7178;
  --border: rgba(22, 24, 29, 0.08);
  --border-strong: rgba(22, 24, 29, 0.15);

  --obsidian: #181A1F;
  --obsidian-ink: #FAF9F6;
  --gold: #B88A44;
  --gold-soft: rgba(184, 138, 68, 0.13);
  --sage: #1E8E6E;
  --sage-soft: rgba(30, 142, 110, 0.12);
  --amber: #C97A16;
  --amber-soft: rgba(201, 122, 22, 0.14);
  --crimson: #C83E3B;
  --crimson-soft: rgba(200, 62, 59, 0.12);
  --whatsapp: #1FAF5A;

  --shadow-xs: 0 2px 10px rgba(22, 24, 29, 0.03);
  --shadow-sm: 0 10px 30px rgba(22, 24, 29, 0.05);
  --shadow-lg: 0 20px 48px rgba(22, 24, 29, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font: 'Cairo', 'Tajawal', 'NeoSansArabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.dark {
  --bg: #0B0D10;
  --surface: #14171D;
  --surface-subtle: #1B1F27;
  --ink: #F5F4F0;
  --ink-muted: #8E939E;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);

  --obsidian: #D4AF37;
  --obsidian-ink: #0B0D10;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --sage: #34D399;
  --sage-soft: rgba(52, 211, 153, 0.14);
  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.15);
  --crimson: #F87171;
  --crimson-soft: rgba(248, 113, 113, 0.14);

  --shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 104px;
  transition: background 0.25s ease, color 0.25s ease;
  user-select: none;
}

input, select, textarea {
  font-family: var(--font);
  user-select: text;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ==================== FROSTED TOP BAR (MOBILE + PC DESKTOP) ==================== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

body.dark .top-bar {
  background: rgba(11, 13, 16, 0.88);
}

.top-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.identity-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monogram-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--obsidian);
  color: var(--obsidian-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.identity-text h1 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.identity-text span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: block;
}

/* Desktop inline nav inside top bar on wide PC screens */
.desktop-top-nav {
  display: none;
}

@media (min-width: 920px) {
  body {
    padding-bottom: 36px;
  }
  .desktop-top-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-subtle);
    padding: 5px;
    border-radius: 15px;
  }
  .desktop-nav-btn {
    padding: 8px 14px;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
  }
  .desktop-nav-btn.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
  }
  .bottom-dock {
    display: none !important;
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.circle-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
}

.bt-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.bt-dot.connected {
  background: var(--sage);
  box-shadow: 0 0 8px var(--sage);
}

.switch-user-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
}

/* ==================== RESPONSIVE CONTAINER & PC WORKSTATION ==================== */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 16px;
}

@media (min-width: 920px) {
  .container {
    max-width: 1180px;
    padding: 24px 22px;
  }
  .pos-workstation {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
    align-items: start;
  }
  .order-tray {
    position: sticky;
    top: 84px;
  }
  .desktop-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
}

.surface-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.section-heading {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.section-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Executive Hero Card */
.hero-noir-card {
  background: linear-gradient(145deg, #181A1F 0%, #262932 100%);
  color: #FAF9F6;
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-lg);
}

body.dark .hero-noir-card {
  background: linear-gradient(145deg, #191D26 0%, #111318 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.hero-eyebrow {
  font-size: 0.78rem;
  color: #D4AF37;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.hero-amount {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-mini-label {
  font-size: 0.75rem;
  opacity: 0.75;
  display: block;
}

.hero-mini-val {
  font-size: 1.05rem;
  font-weight: 800;
}

/* ==================== LOGIN SCREEN ==================== */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 18px;
}

.login-atelier-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 32px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.atelier-emblem {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--obsidian);
  color: var(--obsidian-ink);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.login-atelier-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.login-atelier-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.user-selector-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.user-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.user-chip.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--ink);
}

.pin-indicators {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-muted);
  transition: all 0.15s ease;
}

.pin-dot.filled {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  direction: ltr;
}

.key-btn {
  height: 56px;
  border-radius: 18px;
  background: var(--surface-subtle);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-btn:active {
  background: var(--obsidian);
  color: var(--obsidian-ink);
  transform: scale(0.95);
}

.key-btn.bio {
  background: var(--gold-soft);
  color: var(--gold);
}

.key-btn.del {
  background: var(--crimson-soft);
  color: var(--crimson);
}

/* ==================== PILLS & OPEN TABLES ==================== */
.segmented-bar {
  display: flex;
  background: var(--surface-subtle);
  padding: 5px;
  border-radius: 16px;
  gap: 6px;
  margin-bottom: 18px;
}

.seg-btn {
  flex: 1;
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-muted);
  text-align: center;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.scroll-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.scroll-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill.active {
  background: var(--obsidian);
  color: var(--obsidian-ink);
  border-color: transparent;
}

.filter-pill.open-table {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
}

.filter-pill.open-table.active {
  background: var(--amber);
  color: #ffffff;
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 12px 16px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.1s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-luxury   { background: var(--obsidian); color: var(--obsidian-ink); box-shadow: var(--shadow-sm); }
.btn-gold     { background: var(--gold); color: #FFFFFF; }
.btn-sage     { background: var(--sage); color: #FFFFFF; }
.btn-amber    { background: var(--amber); color: #FFFFFF; }
.btn-crimson  { background: var(--crimson); color: #FFFFFF; }
.btn-whatsapp { background: var(--whatsapp); color: #FFFFFF; }
.btn-ghost    { background: var(--surface-subtle); color: var(--ink); }
.btn-outline  { background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); }
.btn-sm       { padding: 8px 12px; font-size: 0.78rem; border-radius: 12px; }
.btn-block    { width: 100%; }

/* ==================== MENU GRID ==================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-bottom: 18px;
}

@media (min-width: 540px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-tile {
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.menu-tile:active {
  transform: scale(0.96);
}

.menu-tile.in-cart {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, var(--surface) 60%, var(--gold-soft) 100%);
}

.menu-emoji {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.menu-name {
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.menu-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold);
}

.count-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--obsidian);
  color: var(--obsidian-ink);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== ORDER TRAY ==================== */
.order-tray {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px;
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.tray-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.tray-row:last-child {
  border-bottom: none;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qty-circle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-subtle);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.dual-checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

/* ==================== FORMS & ROWS ==================== */
.field-group {
  margin-bottom: 13px;
}

.field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink-muted);
}

.input-box {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 0.92rem;
  outline: none;
}

.input-box:focus {
  border-color: var(--gold);
  background: var(--surface);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--surface-subtle);
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.emoji-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.emoji-opt {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-subtle);
  border: 1px solid transparent;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-opt.picked {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-subtle);
  margin-bottom: 10px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.badge-sage    { background: var(--sage-soft); color: var(--sage); }
.badge-gold    { background: var(--gold-soft); color: var(--gold); }
.badge-amber   { background: var(--amber-soft); color: var(--amber); }
.badge-crimson { background: var(--crimson-soft); color: var(--crimson); }

/* ==================== BOTTOM DOCK ==================== */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 8px 14px;
  z-index: 50;
}

body.dark .bottom-dock {
  background: rgba(20, 23, 29, 0.92);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
  padding: 6px 10px;
  border-radius: 14px;
}

.dock-item.active {
  color: var(--ink);
  background: var(--gold-soft);
}

.dock-item .ico {
  font-size: 1.25rem;
}

/* ==================== MODAL & THERMAL RECEIPT ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 16, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 28px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.thermal-paper {
  width: 245px;
  margin: 0 auto;
  background: #ffffff;
  color: #000000;
  padding: 14px 12px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  direction: rtl;
}

.thermal-paper.w80 {
  width: 300px;
}

.thermal-paper h3 {
  text-align: center;
  font-size: 15px;
  margin-bottom: 3px;
}

.thermal-line {
  border-top: 1px dashed #000;
  margin: 7px 0;
}

.thermal-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
}

.thermal-wifi-box {
  border: 1px solid #000;
  padding: 5px;
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--obsidian);
  color: var(--obsidian-ink);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

@media print {
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea {
    position: fixed;
    left: 0;
    top: 0;
    width: 58mm;
    padding: 2mm;
    margin: 0;
    border: none;
  }
}


/* ==================== MULTILINGUAL SWITCHER & LTR OVERRIDES ==================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface-subtle);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--border);
  gap: 3px;
}

.lang-pill {
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}

.lang-pill.active {
  background: var(--obsidian);
  color: var(--obsidian-ink);
}

html[dir="ltr"] body {
  direction: ltr;
}

html[dir="ltr"] .thermal-paper {
  direction: ltr;
}

html[dir="ltr"] .count-pill {
  right: auto;
  left: 10px;
}

html[dir="ltr"] .bt-dot {
  right: auto;
  left: 7px;
}


/* ==================== V7 ENTERPRISE ADDITIONS (KDS, SHORTCUTS, QR MENU, SYNC) ==================== */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
}
.sync-dot.live { background: var(--sage); box-shadow: 0 0 8px var(--sage); }
.sync-dot.syncing { background: var(--amber); }

/* PC Keyboard Shortcut Badge on Menu Tiles */
.shortcut-kbd {
  display: none;
}

@media (min-width: 920px) {
  .shortcut-kbd {
    display: inline-flex;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-strong);
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--ink-muted);
  }
  html[dir="ltr"] .shortcut-kbd {
    left: auto;
    right: 10px;
  }
}

/* Barcode & Quick Search Strip */
.barcode-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

/* Kitchen & Bar Display (KDS) Grid */
.kds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  .kds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .kds-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kds-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 18px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.kds-card.status-new {
  border-color: var(--amber);
}

.kds-card.status-preparing {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--surface) 75%, var(--gold-soft) 100%);
}

.kds-card.status-ready {
  border-color: var(--sage);
  background: linear-gradient(180deg, var(--surface) 75%, var(--sage-soft) 100%);
}

.kds-items {
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kds-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.94rem;
  font-weight: 800;
}

/* QR Table Tent Cards */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 680px) {
  .qr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.qr-tent-card {
  background: #ffffff;
  color: #16181D;
  border: 1.5px solid #181A1F;
  border-radius: 20px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-tent-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
}

.qr-tent-card .qr-table-tag {
  background: #181A1F;
  color: #FAF9F6;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Customer Digital QR Menu Shell */
.customer-menu-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 110px;
}

.customer-floating-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 608px;
  margin: 0 auto;
  background: var(--obsidian);
  color: var(--obsidian-ink);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}

@media print {
  body.printing-qr * { visibility: hidden !important; }
  body.printing-qr #qrPrintSheet, body.printing-qr #qrPrintSheet * { visibility: visible !important; }
  body.printing-qr #qrPrintSheet {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    padding: 10mm;
  }
}


/* ==================== V8 SAAS ACTIVATION & SUPER ADMIN PORTAL ==================== */
.saas-banner {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.sa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 760px) {
  .sa-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sa-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.sa-kpi-card .lbl {
  font-size: 0.76rem;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.sa-kpi-card .val {
  font-size: 1.35rem;
  font-weight: 800;
}

.lock-overlay-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
