@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --primary: #4F46E5;
  --secondary: #7C3AED;
  --accent: #06B6D4;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --canvas: #F8FAFC;
  --ink: #0F172A;
  --line: #E5E7EB;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
}

body { font-family: 'Inter', sans-serif; background: var(--canvas); color: var(--ink); min-height: 100vh; }
.font-display { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(135deg, #0A0F1E 0%, #1A1040 40%, #0C1829 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 40px 24px;
  box-sizing: border-box;
}

.login-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.orb1 { width: 400px; height: 400px; background: rgba(79,70,229,.25); top: -100px; left: -100px; animation-delay: 0s; }
.orb2 { width: 300px; height: 300px; background: rgba(124,58,237,.2);  bottom: -80px; right: -80px; animation-delay: -3s; }
.orb3 { width: 250px; height: 250px; background: rgba(6,182,212,.12);  top: 50%; left: 60%; animation-delay: -6s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 30px) scale(1.08); }
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05) inset;
  animation: cardIn .5s cubic-bezier(.2,.8,.4,1) both;
  transition: opacity .3s, transform .3s;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
  text-align: center;
}
.login-logo-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(79,70,229,.5);
}
.login-logo-icon svg { width: 30px; height: 30px; stroke: #fff; }
.login-brand h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.login-brand p { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 4px; }

.login-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.login-subtitle { font-size: 13.5px; color: rgba(255,255,255,.5); margin-bottom: 28px; }

.login-error {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #FCA5A5;
  margin-bottom: 16px;
}
.login-error svg { width: 15px; height: 15px; stroke: #FCA5A5; flex-shrink: 0; }

/* Login form inputs */
.login-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.65) !important;
}
.login-label-icon { display: inline-flex; }
.login-label-icon svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.5); }

.login-input {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #fff !important;
}
.login-input::placeholder { color: rgba(255,255,255,.3) !important; }
.login-input:focus {
  border-color: rgba(79,70,229,.7) !important;
  background: rgba(255,255,255,.1) !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.2) !important;
}

/* Password toggle */
.pw-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255,255,255,.4);
  display: flex;
  padding: 4px;
  border-radius: 6px;
  transition: color .15s;
}
.pw-toggle:hover { color: rgba(255,255,255,.7); }
.pw-toggle svg { width: 16px; height: 16px; stroke: currentColor; }

/* Remember me */
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  margin-bottom: 20px;
}

/* Login button */
.btn-login {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(79,70,229,.45);
  margin-bottom: 24px;
}
.btn-login:hover { opacity: .92; box-shadow: 0 6px 28px rgba(79,70,229,.55); }
.btn-login:active { transform: scale(.98); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }
.btn-login svg { width: 16px; height: 16px; stroke: currentColor; }

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

/* Credential cards */
.login-creds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-cred-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-align: center;
}
.login-cred-card:hover { background: rgba(255,255,255,.1); border-color: rgba(79,70,229,.5); }
.login-cred-role { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.login-cred-info { font-size: 12px; color: rgba(255,255,255,.65); }
.login-cred-info strong { color: rgba(255,255,255,.9); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.dashboard { display: flex; min-height: 100vh; overflow: hidden; background: var(--canvas); }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sidebar { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--slate-900); padding: 20px 16px; }
.sidebar-logo { display: flex; align-items: center; gap: 8px; padding: 0 8px; margin-bottom: 28px; }
.logo-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(135deg,#4F46E5,#7C3AED,#06B6D4); flex-shrink: 0; }
.logo-icon svg { width: 16px; height: 16px; stroke: #fff; }
.logo-text { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -0.3px; color: #fff; }
.sidebar-search { display: flex; align-items: center; gap: 8px; border-radius: 12px; background: rgba(255,255,255,.05); padding: 8px 12px; margin-bottom: 20px; cursor: pointer; transition: background .15s; }
.sidebar-search:hover { background: rgba(255,255,255,.09); }
.sidebar-search .s-placeholder { font-size: 12px; color: var(--slate-500); flex: 1; }
.sidebar-search .kbd { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.08); border-radius: 6px; padding: 2px 6px; font-size: 10px; color: var(--slate-400); }
.sidebar-search svg { width: 14px; height: 14px; stroke: var(--slate-500); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 500; cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; color: var(--slate-400); transition: background .15s,color .15s; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #CBD5E1; }
.nav-item.active { background: rgba(255,255,255,.10); color: #fff; }
.nav-item .label { flex: 1; }
.nav-badge { background: rgba(79,70,229,.9); color: #fff; border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 700; }
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 20px 0 12px; }
.sidebar-section-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); padding: 0 12px 8px; display: block; }
.upgrade-card { margin-top: auto; border-radius: 14px; padding: 14px; background: linear-gradient(135deg,rgba(79,70,229,.2),rgba(124,58,237,.2)); }
.upgrade-card .title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.upgrade-card .sub { font-size: 11px; line-height: 1.45; color: var(--slate-400); margin-top: 4px; }
.upgrade-btn { margin-top: 10px; width: 100%; border-radius: 10px; border: none; background: #fff; color: var(--slate-900); font-size: 12px; font-weight: 700; padding: 6px 0; cursor: pointer; transition: background .15s; font-family: inherit; }
.upgrade-btn:hover { background: #f1f5f9; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-user-role { font-size: 11px; color: var(--slate-400); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════════════ */
.main { flex: 1; overflow-y: auto; padding: 24px 32px; }

/* TOPBAR */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.topbar-greeting h1 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--slate-900); }
.topbar-greeting p { font-size: 13px; color: var(--slate-500); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.btn-outline { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--slate-700); cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: background .15s; font-family: inherit; }
.btn-outline:hover { background: var(--slate-50); }
.btn-outline svg { width: 14px; height: 14px; stroke: currentColor; }
.btn-icon { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: background .15s; display: flex; align-items: center; }
.btn-icon:hover { background: var(--slate-50); }
.btn-icon svg { width: 16px; height: 16px; stroke: var(--slate-500); }
.notif-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 999px; background: var(--danger); border: 2px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 12px 6px 6px; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: background .15s; }
.user-chip:hover { background: var(--slate-50); }
.user-avatar { width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(135deg,var(--primary),var(--accent)); flex-shrink: 0; }
.user-chip span { font-size: 13px; font-weight: 500; color: var(--slate-700); }

/* STAT GRID */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { border-radius: 18px; border: 1px solid rgba(226,232,240,.7); background: #fff; padding: 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: box-shadow .3s,transform .3s; }
.stat-card:hover { box-shadow: 0 8px 24px rgba(79,70,229,.10); transform: translateY(-2px); }
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; stroke: #fff; }
.stat-icon.indigo  { background: linear-gradient(135deg,#4F46E5,#7C3AED); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.stat-icon.cyan    { background: linear-gradient(135deg,#06B6D4,#4F46E5); box-shadow: 0 4px 12px rgba(6,182,212,.3); }
.stat-icon.amber   { background: linear-gradient(135deg,#F59E0B,#F97316); box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.stat-icon.emerald { background: linear-gradient(135deg,#22C55E,#14B8A6); box-shadow: 0 4px 12px rgba(34,197,94,.3); }
.stat-delta { display: flex; align-items: center; gap: 2px; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.stat-delta.up   { background: #F0FDF4; color: #16A34A; }
.stat-delta.down { background: #FEF2F2; color: #DC2626; }
.stat-delta svg { width: 12px; height: 12px; stroke: currentColor; }
.stat-label { margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--slate-500); }
.stat-value { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--slate-900); display: flex; align-items: baseline; gap: 2px; }
.stat-value .suffix { color: var(--slate-400); font-size: 18px; font-weight: 500; }

/* MID GRID */
.mid-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.card { border-radius: 20px; border: 1px solid rgba(226,232,240,.7); background: #fff; padding: 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 15px; font-weight: 700; color: var(--slate-900); }

/* QUEUE PULSE */
.queue-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.queue-left { display: flex; align-items: center; gap: 16px; }
.pulse-ring-container { position: relative; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pulse-ring { position: absolute; border-radius: 999px; border: 1px solid rgba(99,102,241,.35); animation: pulseRing 2.4s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes pulseRing { 0%{transform:scale(.55);opacity:.6} 80%{opacity:0} 100%{transform:scale(1);opacity:0} }
.pulse-center { position: relative; z-index: 10; width: 64px; height: 64px; border-radius: 999px; background: linear-gradient(135deg,#4F46E5,#7C3AED); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.35); }
.pulse-center .num { font-size: 20px; font-weight: 800; line-height: 1; }
.pulse-center .lbl { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #C7D2FE; margin-top: 1px; }
.queue-meta .sub { font-size: 12.5px; color: var(--slate-500); margin-top: 2px; }
.queue-actions { display: flex; align-items: center; gap: 8px; }
.btn-filter { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px; cursor: pointer; display: flex; align-items: center; color: var(--slate-400); transition: background .15s; }
.btn-filter:hover { background: var(--slate-50); }
.btn-filter svg { width: 14px; height: 14px; stroke: currentColor; }
.btn-add { display: flex; align-items: center; gap: 4px; background: var(--slate-900); border: none; border-radius: 10px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: #fff; cursor: pointer; transition: background .15s; font-family: inherit; }
.btn-add:hover { background: var(--slate-800); }
.btn-add svg { width: 14px; height: 14px; stroke: #fff; }

/* QUEUE LIST */
.queue-list { border-top: 1px solid var(--slate-100); margin-top: 8px; }
.full-queue-list { border-top: none; margin-top: 0; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid transparent; transition: border-color .15s,background .15s; cursor: pointer; }
.queue-row:hover { border-color: var(--slate-200); background: rgba(248,250,252,.7); }
.row-num { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--slate-100); font-size: 12px; font-weight: 700; color: var(--slate-500); }
.row-info { flex: 1; min-width: 0; }
.row-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate-800); }
.row-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name svg { width: 12px; height: 12px; fill: #FBBF24; stroke: #FBBF24; flex-shrink: 0; }
.row-sub { font-size: 12px; color: var(--slate-400); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-wait { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--slate-400); flex-shrink: 0; }
.row-wait svg { width: 14px; height: 14px; stroke: currentColor; }
.row-status { flex-shrink: 0; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; }
.row-status.waiting { background: var(--slate-100); color: var(--slate-600); }
.row-status.called  { background: #ECFEFF; color: #0E7490; }
.row-status.seated  { background: #F0FDF4; color: #15803D; }
.row-more { flex-shrink: 0; border: none; background: transparent; border-radius: 8px; padding: 6px; cursor: pointer; color: var(--slate-300); opacity: 0; transition: opacity .15s,background .15s; display: flex; }
.queue-row:hover .row-more { opacity: 1; }
.row-more:hover { background: var(--slate-100); color: var(--slate-500); }
.row-more svg { width: 16px; height: 16px; stroke: currentColor; }
.view-full-btn { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 8px; border: none; background: transparent; border-radius: 12px; padding: 8px; font-size: 12.5px; font-weight: 600; color: var(--primary); cursor: pointer; transition: background .15s; font-family: inherit; }
.view-full-btn:hover { background: #EEF2FF; }
.view-full-btn svg { width: 14px; height: 14px; stroke: currentColor; }

/* FLOOR PLAN */
.floor-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.free-badge { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #16A34A; font-weight: 500; }
.free-badge svg { width: 14px; height: 14px; stroke: #16A34A; }
.table-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.table-tile { border-radius: 14px; border: 1px solid var(--slate-200); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: transform .2s,box-shadow .2s; min-height: 72px; }
.table-tile:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.table-tile.available      { background: #F0FDF4; }
.table-tile.occupied       { background: #EEF2FF; }
.table-tile.cleaning       { background: #FFFBEB; }
.table-tile.reserved       { background: #ECFEFF; }
.table-tile.out_of_service { background: #F8FAFC; }
.table-tile-top { display: flex; align-items: center; justify-content: space-between; }
.table-id { font-size: 14px; font-weight: 700; color: var(--slate-800); }
.table-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.dot-available      { background: #22C55E; }
.dot-occupied       { background: #4F46E5; }
.dot-cleaning       { background: #F59E0B; }
.dot-reserved       { background: #06B6D4; }
.dot-out_of_service { background: #94A3B8; }
.table-meta { margin-top: 8px; font-size: 11px; color: var(--slate-500); }
.table-status-label { margin-top: 2px; font-size: 11px; font-weight: 600; }
.label-available      { color: #15803D; }
.label-occupied       { color: #4338CA; }
.label-cleaning       { color: #B45309; }
.label-reserved       { color: #0E7490; }
.label-out_of_service { color: #64748B; }
.floor-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--slate-100); margin-top: 14px; padding-top: 12px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--slate-500); }
.legend-dot { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; }

/* ANALYTICS */
.analytics-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai-tag { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--primary); }
.ai-tag svg { width: 14px; height: 14px; stroke: currentColor; }
.chart-wrap { width: 100%; height: 180px; }

/* PAGE LAYOUT */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--slate-900); }
.page-sub { font-size: 13px; color: var(--slate-500); margin-top: 3px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.filter-tabs { display: flex; background: var(--slate-100); border-radius: 10px; padding: 3px; gap: 2px; }
.filter-tab { border: none; background: transparent; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; color: var(--slate-500); cursor: pointer; transition: background .15s,color .15s; font-family: inherit; }
.filter-tab.active { background: #fff; color: var(--slate-900); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.empty-state { padding: 40px; text-align: center; color: var(--slate-400); font-size: 14px; }

/* TABLES PAGE */
.zone-section { margin-bottom: 28px; }
.zone-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-500); margin-bottom: 12px; }
.tables-full-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; }
.table-tile-lg { border-radius: 16px; border: 1px solid var(--slate-200); padding: 16px; cursor: pointer; transition: transform .2s,box-shadow .2s; }
.table-tile-lg:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.table-tile-lg.available      { background: #F0FDF4; }
.table-tile-lg.occupied       { background: #EEF2FF; }
.table-tile-lg.cleaning       { background: #FFFBEB; }
.table-tile-lg.reserved       { background: #ECFEFF; }
.table-tile-lg.out_of_service { background: #F8FAFC; }
.tile-cap { font-size: 13px; color: var(--slate-600); margin-top: 6px; font-weight: 500; }
.tile-actions { margin-top: 12px; }
.tile-action-btn { background: rgba(0,0,0,.06); border: none; border-radius: 8px; padding: 4px 10px; font-size: 11.5px; font-weight: 600; color: var(--slate-700); cursor: pointer; font-family: inherit; transition: background .15s; }
.tile-action-btn:hover { background: rgba(0,0,0,.12); }

/* RESERVATIONS */
.res-section { margin-bottom: 28px; }
.res-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); margin-bottom: 12px; }
.res-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; transition: box-shadow .2s,transform .2s; }
.res-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); transform: translateY(-1px); }
.res-card-left { flex-shrink: 0; }
.res-time-badge { display: flex; flex-direction: column; align-items: center; background: var(--slate-100); border-radius: 12px; padding: 8px 14px; min-width: 68px; }
.res-time { font-size: 14px; font-weight: 700; color: var(--slate-900); }
.res-date { font-size: 11px; color: var(--slate-500); margin-top: 2px; }
.res-info { flex: 1; min-width: 0; }
.res-name { font-size: 14px; font-weight: 600; color: var(--slate-900); }
.res-details { font-size: 12.5px; color: var(--slate-500); margin-top: 2px; }
.res-notes { font-size: 12px; color: var(--slate-400); margin-top: 4px; font-style: italic; }
.res-status-badge { flex-shrink: 0; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600; }
.res-status-badge.confirmed { background: #F0FDF4; color: #15803D; }
.res-status-badge.pending   { background: #FFFBEB; color: #B45309; }
.res-status-badge.cancelled { background: #FEF2F2; color: #DC2626; }
.res-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn { border: none; background: transparent; border-radius: 8px; padding: 6px; cursor: pointer; color: var(--slate-400); transition: background .15s,color .15s; display: flex; }
.icon-btn:hover { background: var(--slate-100); color: var(--slate-700); }
.icon-btn.danger:hover { background: #FEF2F2; color: var(--danger); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; }

/* SETTINGS */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-section-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 15px; font-weight: 700; color: var(--slate-900); margin-bottom: 20px; }
.settings-desc { font-size: 13px; color: var(--slate-500); line-height: 1.55; margin-bottom: 16px; }
.btn-primary-full { width: 100%; border-radius: 12px; border: none; background: var(--primary); color: #fff; font-size: 13.5px; font-weight: 600; padding: 10px; cursor: pointer; transition: background .15s; font-family: inherit; margin-top: 8px; }
.btn-primary-full:hover { background: #4338CA; }
.btn-danger-full { width: 100%; border-radius: 12px; border: none; background: #FEF2F2; color: var(--danger); font-size: 13.5px; font-weight: 600; padding: 10px; cursor: pointer; transition: background .15s; font-family: inherit; border: 1px solid #FECACA; }
.btn-danger-full:hover { background: #FEE2E2; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
#modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); z-index: 800; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; }
#modal-overlay.show { opacity: 1; }
.modal-dialog { background: #fff; border-radius: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(15,23,42,.25); transform: translateY(12px) scale(.97); transition: transform .2s; }
#modal-overlay.show .modal-dialog { transform: translateY(0) scale(1); }
.modal-wide { max-width: 540px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.modal-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 700; color: var(--slate-900); }
.modal-close { border: none; background: transparent; border-radius: 8px; padding: 6px; cursor: pointer; color: var(--slate-400); display: flex; transition: background .15s; }
.modal-close:hover { background: var(--slate-100); color: var(--slate-700); }
.modal-close svg { width: 16px; height: 16px; stroke: currentColor; }
.modal-body { padding: 20px 24px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 20px; }

/* ═══════════════════════════════════════════════════════════════
   CUSTOM CONFIRM / ALERT DIALOG
   ═══════════════════════════════════════════════════════════════ */
.confirm-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 20px;
  gap: 12px;
}
.confirm-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.confirm-icon-wrap.danger  { background: #FEF2F2; }
.confirm-icon-wrap.danger svg  { stroke: var(--danger); }
.confirm-icon-wrap.warning { background: #FFFBEB; }
.confirm-icon-wrap.warning svg { stroke: var(--warning); }
.confirm-icon-wrap.info    { background: #EEF2FF; }
.confirm-icon-wrap.info svg    { stroke: var(--primary); }
.confirm-icon-wrap.success { background: #F0FDF4; }
.confirm-icon-wrap.success svg { stroke: var(--success); }
.confirm-icon-wrap.error   { background: #FEF2F2; }
.confirm-icon-wrap.error svg   { stroke: var(--danger); }
.confirm-icon-wrap svg { width: 32px; height: 32px; }
.confirm-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 19px; font-weight: 700; color: var(--slate-900); }
.confirm-message { font-size: 13.5px; color: var(--slate-500); line-height: 1.55; max-width: 320px; }
.btn-danger { border: none; background: var(--danger); color: #fff; border-radius: 10px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s; font-family: inherit; }
.btn-danger:hover { background: #DC2626; }

/* ═══════════════════════════════════════════════════════════════
   FORMS + VALIDATION
   ═══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate-700); margin-bottom: 5px; }
.req { color: var(--danger); margin-left: 2px; }
.vip-toggle-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--slate-700); cursor: pointer; margin-bottom: 14px; }
.form-checkbox { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.form-input { width: 100%; border: 1.5px solid var(--slate-200); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--slate-900); background: #fff; outline: none; transition: border-color .15s,box-shadow .15s; font-family: inherit; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.form-textarea { resize: vertical; min-height: 72px; }

/* ── Validation error state ── */
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
.input-error:focus { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important; }
.field-error-msg {
  font-size: 11.5px;
  color: var(--danger);
  margin-top: 5px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  animation: errorIn .2s ease;
}
.field-error-msg svg { width: 12px; height: 12px; stroke: currentColor; flex-shrink: 0; margin-top: 1px; }
@keyframes errorIn { from{opacity:0;transform:translateY(-3px)} to{opacity:1;transform:translateY(0)} }

/* Modal buttons */
.btn-primary { border: none; background: var(--primary); color: #fff; border-radius: 10px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.btn-primary:hover { background: #4338CA; }
.btn-primary svg { width: 14px; height: 14px; stroke: currentColor; }
.btn-ghost { border: 1.5px solid var(--slate-200); background: transparent; color: var(--slate-600); border-radius: 10px; padding: 9px 18px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .15s; font-family: inherit; }
.btn-ghost:hover { background: var(--slate-50); }

/* Status radio */
.status-radio-group { display: flex; flex-direction: column; gap: 8px; }
.status-radio-label { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--slate-200); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: border-color .15s,background .15s; font-size: 13.5px; color: var(--slate-700); font-weight: 500; }
.status-radio-label input[type=radio] { display: none; }
.status-radio-label.selected { border-color: var(--primary); background: #EEF2FF; color: var(--slate-900); }
.status-radio-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 11px 16px; font-size: 13.5px; font-weight: 500; box-shadow: 0 8px 24px rgba(15,23,42,.2); pointer-events: auto; opacity: 0; transform: translateY(8px); transition: opacity .25s,transform .25s; max-width: 340px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #1E293B; color: #fff; }
.toast-error   { background: var(--danger); color: #fff; }
.toast-info    { background: #0E7490; color: #fff; }
.toast-icon { flex-shrink: 0; display: flex; }
.toast-icon svg { width: 15px; height: 15px; stroke: #fff; }
.toast-msg { line-height: 1.35; }

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION PANEL
   ═══════════════════════════════════════════════════════════════ */
#notif-panel { position: fixed; background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: 0 12px 40px rgba(15,23,42,.15); width: 320px; max-height: 420px; overflow-y: auto; z-index: 900; }
.notif-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--slate-100); position: sticky; top: 0; background: #fff; }
.notif-panel-title { font-size: 14px; font-weight: 700; color: var(--slate-900); display: flex; align-items: center; gap: 6px; }
.notif-count { background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.notif-mark-all { border: none; background: transparent; font-size: 12px; color: var(--primary); font-weight: 600; cursor: pointer; font-family: inherit; }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--slate-50); transition: background .12s; }
.notif-item:hover { background: var(--slate-50); }
.notif-item.unread { background: #FAFAFF; }
.notif-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--slate-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon svg { width: 14px; height: 14px; stroke: var(--slate-600); }
.notif-content { flex: 1; min-width: 0; }
.notif-message { font-size: 12.5px; color: var(--slate-800); font-weight: 500; line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--slate-400); margin-top: 2px; }
.notif-unread-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.notif-empty { padding: 28px; text-align: center; color: var(--slate-400); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   QUEUE ACTION MENU
   ═══════════════════════════════════════════════════════════════ */
.queue-action-menu { position: fixed; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; box-shadow: 0 8px 28px rgba(15,23,42,.12); min-width: 190px; padding: 4px; z-index: 1000; animation: menuPop .12s cubic-bezier(.2,.8,.4,1); }
@keyframes menuPop { from{opacity:0;transform:scale(.95) translateY(-4px)} to{opacity:1;transform:scale(1) translateY(0)} }
.qmenu-item { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: transparent; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--slate-700); cursor: pointer; text-align: left; font-family: inherit; transition: background .12s; }
.qmenu-item:hover { background: var(--slate-50); }
.qmenu-item.danger { color: var(--danger); }
.qmenu-item.danger:hover { background: #FEF2F2; }
.qmenu-item svg { width: 14px; height: 14px; stroke: currentColor; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   SEARCH MODAL
   ═══════════════════════════════════════════════════════════════ */
.search-modal-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--slate-100); }
.search-modal-input-wrap svg { width: 18px; height: 18px; stroke: var(--slate-400); flex-shrink: 0; }
.search-modal-input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--slate-900); font-family: inherit; background: transparent; }
.search-modal-input::placeholder { color: var(--slate-400); }
.search-results { padding: 8px; max-height: 360px; overflow-y: auto; }
.search-hint { padding: 24px; text-align: center; color: var(--slate-400); font-size: 13px; }
.search-result-item { display: flex; align-items: center; gap: 12px; width: 100%; border: none; background: transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; font-family: inherit; transition: background .12s; }
.search-result-item:hover { background: var(--slate-50); }
.search-result-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); background: #EEF2FF; border-radius: 6px; padding: 3px 7px; flex-shrink: 0; }
.search-result-label { font-size: 13.5px; font-weight: 600; color: var(--slate-900); }
.search-result-sub { font-size: 12px; color: var(--slate-400); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════
   REGISTRATION PAGE
   ═══════════════════════════════════════════════════════════════ */
.reg-card {
  max-width: 480px;
  max-height: none;
  overflow-y: visible;
  padding: 40px 40px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.reg-card::-webkit-scrollbar { width: 5px; }
.reg-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 99px; }

.reg-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 20px 0 16px;
}
.reg-section-divider::before, .reg-section-divider::after { content:''; flex:1; height:1px; background:rgba(255,255,255,.1); }
.reg-section-divider span { display:flex; align-items:center; gap:6px; white-space:nowrap; flex-shrink:0; }
.reg-section-divider svg { width:13px; height:13px; stroke:rgba(255,255,255,.5); }

.reg-zone-hint { font-size:12px; color:rgba(255,255,255,.4); margin-bottom:14px; line-height:1.45; }

.zone-config { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:14px; overflow:hidden; margin-bottom:4px; }
.zone-config-header { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:rgba(255,255,255,.06); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:rgba(255,255,255,.4); }
.zone-config-row { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-top:1px solid rgba(255,255,255,.06); transition:background .15s; }
.zone-config-row:hover { background:rgba(255,255,255,.04); }
.zone-config-row.zone-row-disabled { opacity:.5; }

.zone-check-label { display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.zone-check-label .form-checkbox { width:18px; height:18px; accent-color:#6366F1; cursor:pointer; }

.zone-badge { display:inline-flex; align-items:center; gap:4px; border-radius:8px; padding:4px 10px; font-size:12px; font-weight:700; border:1px solid transparent; }
.zone-badge.indoor  { background:rgba(34,197,94,.18);  color:#86EFAC; border-color:rgba(34,197,94,.25); }
.zone-badge.outdoor { background:rgba(6,182,212,.18);  color:#67E8F9; border-color:rgba(6,182,212,.25); }
.zone-badge.vip     { background:rgba(245,158,11,.18); color:#FCD34D; border-color:rgba(245,158,11,.25); }

.zone-count-wrap { display:flex; align-items:center; gap:6px; }
.zone-count-input { width:72px !important; text-align:center; padding:7px 8px !important; font-size:14px !important; font-weight:700; }
.zone-count-input:disabled { opacity:.35 !important; cursor:not-allowed !important; background:rgba(255,255,255,.03) !important; }
.zone-count-label { font-size:12px; color:rgba(255,255,255,.4); white-space:nowrap; }

.zone-error { display:flex; align-items:center; gap:6px; color:#FCA5A5; font-size:12px; padding:10px 16px; border-top:1px solid rgba(239,68,68,.2); background:rgba(239,68,68,.08); }
.zone-error svg { width:14px; height:14px; stroke:#FCA5A5; flex-shrink:0; }

.reg-signin-hint { text-align:center; margin-top:16px; font-size:12.5px; color:rgba(255,255,255,.4); }
.login-link { border:none; background:transparent; color:rgba(255,255,255,.7); font-size:inherit; font-weight:600; cursor:pointer; font-family:inherit; text-decoration:underline; text-underline-offset:3px; transition:color .15s; padding:0; }
.login-link:hover { color:#fff; }

/* Registration Success */
.reg-success { display:flex; flex-direction:column; align-items:center; text-align:center; padding:8px 0 16px; gap:12px; }
.reg-success-icon { width:72px; height:72px; border-radius:24px; background:rgba(34,197,94,.15); display:flex; align-items:center; justify-content:center; border:1px solid rgba(34,197,94,.25); margin-bottom:4px; }
.reg-success-icon svg { width:36px; height:36px; stroke:#22C55E; }
.reg-success-title { font-family:'Plus Jakarta Sans',sans-serif; font-size:22px; font-weight:800; color:#fff; letter-spacing:-.5px; }
.reg-success-sub { font-size:14px; color:rgba(255,255,255,.55); line-height:1.55; max-width:320px; }
.reg-creds-box { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:16px 20px; width:100%; margin-top:4px; }
.reg-creds-title { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:rgba(255,255,255,.4); margin-bottom:12px; }
.reg-creds-title svg { width:13px; height:13px; stroke:rgba(255,255,255,.4); }
.reg-cred-row { display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.reg-cred-row:last-child { border-bottom:none; }
.reg-cred-label { font-size:12.5px; color:rgba(255,255,255,.5); }
.reg-cred-val { font-size:13.5px; font-weight:700; color:#fff; background:rgba(255,255,255,.08); border-radius:6px; padding:2px 8px; font-family:'SF Mono','Courier New',monospace; }
.reg-success-note { font-size:12px; color:rgba(255,255,255,.4); background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.2); border-radius:8px; padding:8px 14px; line-height:1.5; }

/* Sync info */
.login-sync-info { display:flex; align-items:center; gap:8px; margin-top:14px; padding:10px 14px; background:rgba(79,70,229,.15); border:1px solid rgba(79,70,229,.3); border-radius:10px; font-size:12px; color:rgba(255,255,255,.6); }
.login-sync-info svg { width:14px; height:14px; stroke:#818CF8; flex-shrink:0; }
.sync-dot-label { display:inline-flex; align-items:center; gap:4px; font-size:10px; color:#22D3EE; }
.sync-dot-label svg { width:10px; height:10px; stroke:#22D3EE; }

/* Zone badges light mode */
.zone-badge-sm { display:inline-flex; align-items:center; border-radius:6px; padding:2px 8px; font-size:11px; font-weight:700; }
.zone-badge-sm.indoor  { background:#F0FDF4; color:#15803D; }
.zone-badge-sm.outdoor { background:#ECFEFF; color:#0E7490; }
.zone-badge-sm.vip     { background:#FFFBEB; color:#92400E; }

/* Settings summary */
.settings-card { height:fit-content; }
.reg-summary { display:flex; flex-direction:column; gap:0; }
.reg-sum-item { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--slate-100); }
.reg-sum-item:last-child { border-bottom:none; }
.reg-sum-label { font-size:13px; color:var(--slate-500); font-weight:500; }
.reg-sum-value { font-size:13px; font-weight:600; color:var(--slate-900); display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.reg-sum-value code { font-family:'SF Mono','Courier New',monospace; background:var(--slate-100); padding:2px 6px; border-radius:5px; font-size:12px; }
.reg-sum-value .zone-badge.indoor  { background:#F0FDF4; color:#15803D; border-color:#BBF7D0; }
.reg-sum-value .zone-badge.outdoor { background:#ECFEFF; color:#0E7490; border-color:#A5F3FC; }
.reg-sum-value .zone-badge.vip     { background:#FFFBEB; color:#92400E; border-color:#FDE68A; }

/* Zone section headings on tables page */
.zone-section { margin-bottom:28px; }
.zone-label { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--slate-600); margin-bottom:14px; }
.zone-label .zone-badge { font-size:12px; padding:4px 10px; }

/* ═══════════════════════════════════════════════════════════════
   ANALYTICS PAGE — LIVE INTERACTIVE
   ═══════════════════════════════════════════════════════════════ */

/* Live badge */
.an-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D;
  border-radius: 8px; padding: 4px 10px; font-size: 11.5px; font-weight: 700;
}
.an-live-badge svg { width: 12px; height: 12px; stroke: currentColor; }

/* Wide row: 2/3 + 1/3 */
.an-row-wide { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* Chart tooltip (floating, follows cursor) */
.chart-tooltip {
  position: fixed; display: none;
  background: #1E293B; color: #fff;
  border-radius: 10px; padding: 9px 13px;
  font-size: 13px; line-height: 1.55;
  pointer-events: none; z-index: 9999;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  max-width: 260px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.08);
}

/* Chart hover effects */
.chart-bar { transition: opacity .15s, filter .15s; }
.chart-bar-group:hover .chart-bar { opacity: .72; filter: brightness(1.18); }
.chart-point { transition: r .12s, filter .12s; }
.chart-point-group:hover .chart-point { filter: drop-shadow(0 0 6px currentColor); }
.donut-segment { transition: opacity .15s; }
.donut-seg-group:hover .donut-segment { opacity: .78; }

/* Donut legend */
.donut-legend { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--slate-100); }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.donut-legend-item span:nth-child(1) { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.donut-legend-item span:nth-child(2) { flex: 1; color: var(--slate-600); }
.donut-legend-item strong { color: var(--slate-900); }

/* Zone performance table */
.zone-perf-table { border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
.zone-perf-header {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr 1fr;
  padding: 10px 16px;
  background: var(--slate-50); font-size: 11.5px; font-weight: 700;
  color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em;
}
.zone-perf-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr 1fr;
  padding: 12px 16px; border-top: 1px solid var(--slate-100);
  align-items: center; font-size: 13px; transition: background .12s;
}
.zone-perf-row:hover { background: var(--slate-50); }
.zp-num { text-align: center; font-weight: 600; color: var(--slate-700); }
.zp-avail { color: #22C55E !important; }
.zp-time  { color: var(--slate-500) !important; }
.zp-bar-wrap { display: flex; align-items: center; gap: 8px; }
.zp-bar { height: 7px; border-radius: 99px; min-width: 2px; transition: width .4s ease; }
.zp-pct { font-size: 12px; font-weight: 700; color: var(--slate-600); flex-shrink: 0; }

/* Summary list */
.an-sum-list { display: flex; flex-direction: column; }
.an-sum-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--slate-100); font-size: 13.5px;
}
.an-sum-row:last-child { border-bottom: none; }
.an-sum-row span { color: var(--slate-500); }
.an-sum-row strong { color: var(--slate-900); font-weight: 700; }
.sum-green { color: #16A34A !important; }
.sum-amber { color: #D97706 !important; }

/* ═══════════════════════════════════════════════════════════════
   CROSS-PLATFORM ROLE SYNC & MULTI-TAB CONTROLS
   ═══════════════════════════════════════════════════════════════ */

/* Topbar Role Switcher Chip */
.role-switcher-chip {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(79,70,229,.08), rgba(124,58,237,.08));
  border: 1px solid rgba(79,70,229,.25);
  border-radius: 12px; padding: 6px 12px;
  cursor: pointer; transition: all .15s ease;
  user-select: none;
}
.role-switcher-chip:hover {
  background: linear-gradient(135deg, rgba(79,70,229,.16), rgba(124,58,237,.16));
  border-color: rgba(79,70,229,.45);
  transform: translateY(-1px);
}
.role-chip-icon { font-size: 14px; }
.role-chip-label { font-size: 13px; font-weight: 700; color: var(--slate-900); }
.role-chip-sub { font-size: 11px; font-weight: 600; color: var(--primary); margin-left: 2px; }

/* Role Tag Badges */
.role-tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.role-tag.admin   { background: rgba(79,70,229,.2); color: #818CF8; }
.role-tag.manager { background: rgba(6,182,212,.2);  color: #67E8F9; }
.role-tag.staff   { background: rgba(34,197,94,.2);  color: #86EFAC; }

/* Multi Window Launcher in Sidebar */
.multi-window-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.multi-tab-btn {
  border: none; border-radius: 8px; padding: 6px 10px;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  text-align: left; transition: all .15s ease; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
}
.multi-tab-btn.admin   { background: rgba(79,70,229,.25); color: #C7D2FE; border: 1px solid rgba(79,70,229,.4); }
.multi-tab-btn.manager { background: rgba(6,182,212,.25);  color: #A5F3FC; border: 1px solid rgba(6,182,212,.4); }
.multi-tab-btn.staff   { background: rgba(34,197,94,.25);  color: #BBF7D0; border: 1px solid rgba(34,197,94,.4); }
.multi-tab-btn:hover   { filter: brightness(1.2); transform: translateX(2px); }

/* Tile pulse highlight when updated from another tab */
.table-tile-pulse {
  animation: tilePulseGlow 0.8s ease-in-out 3;
}
@keyframes tilePulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(79,70,229,.7); transform: scale(1.03); }
  50%  { box-shadow: 0 0 0 12px rgba(79,70,229,0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); transform: scale(1); }
}

/* Quick Action Pills on Floor Table Cards */
.table-quick-actions {
  display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; opacity: 0.85; transition: opacity .15s;
}
.table-tile:hover .table-quick-actions { opacity: 1; }
.t-quick-btn {
  border: none; border-radius: 6px; padding: 2px 6px;
  font-size: 10.5px; font-weight: 700; cursor: pointer;
  transition: transform .1s, background .15s; font-family: inherit;
}
.t-quick-btn.free  { background: #DCFCE7; color: #15803D; }
.t-quick-btn.occ   { background: #E0E7FF; color: #3730A3; }
.t-quick-btn.clean { background: #FEF3C7; color: #92400E; }
.t-quick-btn:hover { transform: scale(1.08); filter: brightness(0.95); }

/* Role Select Modal */
.role-select-list { display: flex; flex-direction: column; gap: 10px; }
.role-opt-btn {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--slate-200); border-radius: 14px;
  padding: 14px; background: #fff; cursor: pointer;
  text-align: left; font-family: inherit; transition: all .15s;
}
.role-opt-btn:hover { border-color: var(--primary); background: var(--slate-50); }
.role-opt-btn.active { border-color: var(--primary); background: #EEF2FF; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.role-icon { font-size: 24px; }
.role-title { font-size: 15px; font-weight: 700; color: var(--slate-900); }
.role-sub { font-size: 12px; color: var(--slate-500); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   PERSISTENT CROSS-TAB POPUP NOTIFICATION (Stays until Manager clicks!)
   ═══════════════════════════════════════════════════════════════ */
.persistent-sync-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 10000;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 380px; width: 100%;
  pointer-events: none;
}

.persistent-sync-popup {
  pointer-events: auto;
  background: #0F172A;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 20px rgba(34,197,94,.15);
  opacity: 0;
  transform: translateY(-20px) scale(0.92);
  transition: all .35s cubic-bezier(.2,.8,.4,1);
  display: flex; flex-direction: column; gap: 12px;
  backdrop-filter: blur(16px);
}

.persistent-sync-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sync-pop-header {
  display: flex; align-items: center; justify-content: space-between;
}
.sync-pop-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 99px; padding: 3px 10px;
}
.sync-pop-badge svg { width: 12px; height: 12px; stroke: currentColor; }

.sync-pop-ping {
  width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  animation: syncPing 1.2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes syncPing {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 1; }
}

.sync-pop-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px; font-weight: 800; color: #fff;
  line-height: 1.35; margin-bottom: 3px;
}
.sync-pop-tid {
  font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.sync-pop-desc {
  font-size: 12.5px; color: rgba(255,255,255,.65);
}
.sync-pop-desc strong { color: #fff; }

.sync-pop-actions {
  display: flex; gap: 8px; margin-top: 4px;
}
.sync-pop-btn {
  width: 100%; border: none; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 700;
  color: #fff; cursor: pointer; font-family: inherit;
  transition: transform .12s, filter .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.sync-pop-btn:hover {
  filter: brightness(1.15); transform: translateY(-1px);
}
.sync-pop-btn:active {
  transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════
   STAFF MANAGEMENT TABLE & MODAL STYLES
   ═══════════════════════════════════════════════════════════════ */
.staff-table-wrap { width: 100%; overflow-x: auto; }
.staff-table { width: 100%; border-collapse: collapse; text-align: left; }
.staff-table th {
  padding: 12px 16px; background: var(--slate-50);
  font-size: 11.5px; font-weight: 700; color: var(--slate-500);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--slate-200);
}
.staff-table td {
  padding: 14px 16px; font-size: 13.5px; color: var(--slate-800);
  border-bottom: 1px solid var(--slate-100); vertical-align: middle;
}
.staff-row:hover { background: rgba(248,250,252,.8); }
.staff-row.system-user { background: rgba(79,70,229,.02); }

.staff-user-cell { display: flex; align-items: center; gap: 12px; }
.staff-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.staff-avatar.admin   { background: rgba(79,70,229,.15); color: #4F46E5; }
.staff-avatar.manager { background: rgba(6,182,212,.15);  color: #0891B2; }
.staff-avatar.staff   { background: rgba(34,197,94,.15);  color: #16A34A; }

.staff-name { font-weight: 700; color: var(--slate-900); }
.staff-id-sub { font-size: 11.5px; color: var(--slate-400); margin-top: 1px; }

.pw-cell { display: flex; align-items: center; gap: 8px; font-family: 'SF Mono','Courier New',monospace; font-size: 13px; }
.pw-mask { color: var(--slate-400); letter-spacing: 2px; }
.pw-text { font-weight: 700; color: var(--slate-900); background: var(--slate-100); padding: 2px 8px; border-radius: 6px; }
.pw-eye-btn {
  border: none; background: transparent; border-radius: 6px; padding: 4px;
  cursor: pointer; color: var(--slate-400); display: flex; transition: color .15s;
}
.pw-eye-btn:hover { color: var(--slate-700); }
.pw-eye-btn svg { width: 15px; height: 15px; stroke: currentColor; }

.badge-system { font-size: 11px; font-weight: 700; color: var(--slate-400); text-transform: uppercase; background: var(--slate-100); padding: 4px 8px; border-radius: 6px; }
.staff-actions-cell { display: flex; gap: 6px; justify-content: flex-end; }

/* ═══════════════════════════════════════════════════════════════
   MANDATORY BLOCKING NOTIFICATION MODAL BACKDROP
   Blocks all interaction on the dashboard until user acknowledges
   ═══════════════════════════════════════════════════════════════ */
.blocking-notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .3s ease;
}

.blocking-notif-backdrop.show {
  opacity: 1;
}

.blocking-notif-modal {
  background: #0F172A;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 24px;
  padding: 36px 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,.7), 0 0 35px rgba(79,70,229,.25);
  transform: scale(0.9) translateY(20px);
  transition: transform .35s cubic-bezier(.175, .885, .32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blocking-notif-backdrop.show .blocking-notif-modal {
  transform: scale(1) translateY(0);
}

.bnotif-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bnotif-icon-wrap svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
}

.bnotif-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.bnotif-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.bnotif-desc {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-bottom: 16px;
}

.bnotif-meta {
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  margin-bottom: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 16px;
  border-radius: 10px;
  width: 100%;
}
.bnotif-meta strong { color: #fff; }

.bnotif-actions { width: 100%; }

.bnotif-btn-primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .15s, filter .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnotif-btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}
.bnotif-btn-primary:active {
  transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════
   SAAS SUBSCRIPTION LOCK SCREEN (APPROVAL / EXPIRATION LOCK)
   ═══════════════════════════════════════════════════════════════ */
.sub-lock-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #1E1B4B 0%, #0F172A 70%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; color: #fff;
}

.sub-lock-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 28px;
  padding: 44px 36px 32px;
  max-width: 540px; width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 40px rgba(245,158,11,.15);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center;
}

.sub-lock-icon-wrap {
  width: 76px; height: 76px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.sub-lock-icon-wrap svg { width: 38px; height: 38px; stroke: currentColor; }

.sub-lock-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  border-radius: 99px; padding: 5px 14px; margin-bottom: 18px;
  text-transform: uppercase;
}
.sub-lock-ping {
  width: 8px; height: 8px; border-radius: 50%;
  animation: syncPing 1.2s cubic-bezier(0,0,0.2,1) infinite;
}

.sub-lock-title {
  font-size: 26px; font-weight: 800; color: #fff;
  margin-bottom: 12px; line-height: 1.25;
}

.sub-lock-subtitle {
  font-size: 14.5px; color: rgba(255,255,255,.75);
  line-height: 1.6; margin-bottom: 24px;
}
.sub-lock-subtitle strong { color: #fff; }

.tenant-id-box {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 16px; padding: 16px; margin-bottom: 24px;
  text-align: left;
}
.tenant-label {
  font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.5);
  letter-spacing: .06em; display: block; margin-bottom: 8px;
}
.tenant-code-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tenant-code-row code {
  font-family: 'SF Mono','Courier New',monospace;
  font-size: 14px; font-weight: 700; color: #FBBF24;
  word-break: break-all;
}
.copy-tid-btn {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12px;
  font-weight: 700; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; gap: 4px; transition: background .15s;
}
.copy-tid-btn:hover { background: rgba(255,255,255,.2); }

.sub-lock-actions {
  width: 100%; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px;
}
.sub-lock-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 800; border-radius: 14px; padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(37,211,102,.3); transition: transform .15s, filter .15s;
}
.sub-lock-wa-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

.sub-lock-refresh-btn {
  width: 100%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: 13.5px;
  font-weight: 700; border-radius: 12px; padding: 12px 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s; font-family: inherit;
}
.sub-lock-refresh-btn:hover { background: rgba(255,255,255,.16); }

.sub-lock-footer { font-size: 12.5px; color: rgba(255,255,255,.45); }
.sub-lock-logout-btn {
  background: transparent; border: none; color: rgba(255,255,255,.6);
  font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline;
  margin-top: 8px; font-family: inherit;
}
.sub-lock-logout-btn:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   FLUID MULTI-DEVICE AUTO-ADAPTIVE DESIGN ENGINE
   Supports: Phones, Foldables, Tablets, Laptops, Desktops, TVs
   ═══════════════════════════════════════════════════════════════ */

/* Ultra-Wide Monitors & TVs (> 1400px) */
@media (min-width: 1401px) {
  .dashboard { max-width: 1800px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .tables-full-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
  .table-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Laptops & Tablets Landscape (1025px - 1400px) */
@media (min-width: 1025px) and (max-width: 1400px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
  .table-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Navigation Header & Slide-Over Drawer System (<= 1024px) */
@media (max-width: 1024px) {
  .dashboard { flex-direction: column; min-height: 100dvh; }

  /* Mobile Header Bar */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--slate-900);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: sticky;
    top: 0;
    z-index: 990;
  }
  .mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-header-brand .logo-text {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
  }
  .mobile-menu-btn:hover { background: rgba(255,255,255,.18); }
  .mobile-menu-btn svg { width: 18px; height: 18px; stroke: currentColor; }

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

  /* Drawer Backdrop Overlay */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Slide-Over Drawer Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    height: 100dvh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    box-shadow: none;
    border-right: 1px solid rgba(255,255,255,.14);
    padding: 20px 16px;
    overflow-y: auto;
    background: #0F172A;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 12px 0 45px rgba(0, 0, 0, 0.75);
  }
  .drawer-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    margin-left: auto;
  }
  .drawer-close-btn:hover { background: rgba(255,255,255,.2); }
  .drawer-close-btn svg { width: 16px; height: 16px; stroke: #fff; }

  .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .nav-item { width: 100%; justify-content: flex-start; padding: 10px 12px; min-width: 0; }
  .sidebar-user { display: flex; margin-top: auto; }

  .main { padding: 16px 14px 36px; }
  .mid-grid, .analytics-grid, .an-row-wide, .settings-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (min-width: 769px) {
  .mobile-header { display: none !important; }
  .sidebar-backdrop { display: none !important; }
  .drawer-close-btn { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE ENGINE (Phones & Tablets)
   ═══════════════════════════════════════════════════════════════ */

/* Mobile Dashboard Section Switcher Tabs */
.mobile-dash-tabs {
  display: none;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.md-tab {
  flex: 1;
  min-width: 90px;
  white-space: nowrap;
  background: #0F172A;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all .2s ease;
}
.md-tab.active {
  background: #4F46E5;
  color: #fff;
  border-color: #4F46E5;
  box-shadow: 0 4px 14px rgba(79,70,229,.4);
}

/* Mobile Staff Cards List */
.mobile-staff-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.mobile-staff-card {
  background: #0F172A;
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.mobile-staff-card.admin {
  border-color: rgba(245,158,11,.4);
  background: linear-gradient(135deg,#0F172A,#1E1B4B);
}
.mstaff-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mstaff-info {
  flex: 1;
  min-width: 0;
}
.mstaff-info .staff-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mstaff-info .staff-id-sub {
  font-size: 11.5px;
  color: var(--slate-400);
}
.mstaff-details {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}
.mstaff-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mstaff-detail-row code {
  background: rgba(255,255,255,.1);
  padding: 2px 8px;
  border-radius: 6px;
  color: #A5B4FC;
  font-family: monospace;
}
.mstaff-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-share-mobile {
  flex: 1;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-edit-mobile {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-delete-mobile {
  background: rgba(239,68,68,.15);
  color: #EF4444;
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-outline-full {
  width: 100%;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-dash-tabs { display: flex; }
  .mobile-staff-list { display: flex; }
  .staff-table-wrap { display: none; }

  /* Compact Topbar on Mobile */
  .topbar {
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
  }
  .topbar-greeting h1 {
    font-size: 17px !important;
    margin-bottom: 2px !important;
  }
  .topbar-greeting p {
    font-size: 11.5px !important;
  }
  .topbar-actions {
    display: none !important;
  }

  /* Compact Page Headers & Action Bars */
  .page-header {
    margin-bottom: 14px !important;
  }
  .page-title {
    font-size: 20px !important;
  }
  .page-sub {
    font-size: 12px !important;
  }
  .page-actions {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
  }
  .page-actions button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Bottom Sheet Dialog Modals on Mobile Phones */
  .modal-backdrop {
    align-items: flex-end !important;
  }
  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 88dvh !important;
    animation: mobileSlideUp .25s cubic-bezier(.175, .885, .32, 1.275) !important;
  }

  /* Touch Cards Spacing */
  .card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
  }
  .stat-value {
    font-size: 19px !important;
  }

  .table-grid, .tables-full-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .queue-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .queue-row-right {
    width: 100% !important;
    justify-content: space-between !important;
    border-top: 1px solid var(--slate-100) !important;
    padding-top: 8px !important;
  }
}

@keyframes mobileSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   14-DAY DEMO, SUBSCRIPTION PLANS & GPAY QR STYLES
   ═══════════════════════════════════════════════════════════════ */
.trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(16,185,129,.12));
  border: 1px solid rgba(34,197,94,.4);
  color: #4ADE80;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.trial-pill svg { width: 14px; height: 14px; stroke: currentColor; }

.sub-plans-card {
  width: 100%;
  max-width: 860px;
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  text-align: center;
  color: #fff;
  margin: 20px auto;
}
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
  text-align: left;
}
.plan-card {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .25s ease;
}
.plan-card:hover {
  border-color: rgba(79,70,229,.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.plan-card.featured {
  background: linear-gradient(145deg, rgba(79,70,229,.18), rgba(124,58,237,.15));
  border-color: #4F46E5;
  box-shadow: 0 12px 36px rgba(79,70,229,.35);
}
.plan-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.featured-badge {
  color: #FBBF24;
}
.plan-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
}
.plan-price .currency { font-size: 20px; font-weight: 700; color: #38BDF8; }
.plan-price .amount { font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.plan-price .period { font-size: 13px; color: var(--slate-400); margin-left: 4px; }
.plan-desc { font-size: 12.5px; color: var(--slate-300); margin-bottom: 16px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
}
.plan-features li { display: flex; align-items: center; gap: 8px; }
.plan-features li svg { width: 16px; height: 16px; stroke: #22C55E; flex-shrink: 0; }
.plan-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.plan-btn:hover {
  background: #4F46E5;
  border-color: #4F46E5;
}
.featured-btn {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-color: #4F46E5;
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
}
.featured-btn:hover {
  background: linear-gradient(135deg, #4338CA, #6D28D9);
}

/* GPay QR Card & Payment Modal */
.gpay-qr-card {
  background: #0F172A;
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 18px;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.gpay-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.gpay-amount-badge {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 15px;
}
.qr-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  margin: 0 auto 14px;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.upi-id-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px 12px;
}
.upi-id-label { font-size: 11.5px; color: var(--slate-400); }
.upi-id-code { font-family: monospace; font-size: 13px; font-weight: 700; color: #38BDF8; }
.upi-copy-btn {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.upi-copy-btn:hover { background: rgba(255,255,255,.2); }

/* PayPal Gateway & Subscription Checkout Styles */
.plan-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.plan-btn-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0070BA, #003087);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 14px rgba(0, 112, 186, 0.35);
}
.plan-btn-paypal:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(0, 112, 186, 0.45);
}
.plan-btn-gpay-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .15s, color .15s, border-color .15s;
}
.plan-btn-gpay-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.paypal-checkout-card {
  background: #0F172A;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  margin-top: 12px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.paypal-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.paypal-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.paypal-logo-icon {
  background: #003087;
  color: #0070BA;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  border: 1px solid rgba(0, 112, 186, 0.4);
}
.paypal-price-badge {
  background: linear-gradient(135deg, #0070BA, #003087);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14.5px;
}
.paypal-container-wrap {
  min-height: 120px;
  padding: 8px 0;
  margin-top: 8px;
}
.paypal-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--slate-400);
}
.paypal-trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   GOOGLE ADSENSE MONETIZATION UNITS
   ═══════════════════════════════════════════════════════════════ */
.tableos-ad-unit {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tableos-ad-unit.sidebar-ad-unit {
  margin: 12px 14px 16px 14px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.tableos-ad-unit.sidebar-ad-unit:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.15);
  transform: translateY(-1px);
}

.tableos-ad-unit.banner-ad-unit {
  margin-top: 24px;
  margin-bottom: 8px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Dark mode banner adjustment */
@media (prefers-color-scheme: dark) {
  .tableos-ad-unit.banner-ad-unit {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  }
}

.ad-unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ad-badge-pill {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.15);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.ad-brand-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--slate-400);
}

.ad-unit-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-mock-icon {
  font-size: 22px;
  line-height: 1;
}

.ad-mock-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.ad-mock-text p {
  font-size: 11px;
  color: var(--slate-400);
  line-height: 1.35;
  margin: 0;
}

.ad-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #A5B4FC;
  background: rgba(79, 70, 229, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  margin-top: 4px;
}

.ad-cta-btn:hover {
  background: rgba(79, 70, 229, 0.35);
  color: #fff;
}

/* Banner details */
.ad-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-banner-visual {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.ad-banner-details {
  flex: 1;
  min-width: 220px;
}

.ad-banner-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (prefers-color-scheme: dark) {
  .ad-banner-headline {
    color: #F8FAFC;
  }
}

.ad-banner-sub {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.4;
  margin: 0;
}

.ad-banner-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.2s;
  flex-shrink: 0;
}

.ad-banner-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.ad-slot-wrapper {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  overflow: hidden;
}

.ad-slot-wrapper ins.adsbygoogle {
  width: 100% !important;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE SEATING ASSIGNMENT & GUEST HISTORY
   ═══════════════════════════════════════════════════════════════ */
.row-table-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(79, 70, 229, 0.1);
  color: #4F46E5;
  border: 1px solid rgba(79, 70, 229, 0.25);
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.table-tile-guest-badge {
  background: rgba(79, 70, 229, 0.08);
  border: 1px dashed rgba(79, 70, 229, 0.3);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #4F46E5;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.table-current-guest {
  font-size: 10.5px;
  font-weight: 700;
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-active-guest-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.04));
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.guest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.guest-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #4F46E5;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
}

.guest-seated-time {
  font-size: 11.5px;
  color: var(--slate-500);
  font-weight: 600;
}

.guest-card-body h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}

.guest-card-body p {
  font-size: 12px;
  color: var(--slate-600);
  margin: 0;
}

.table-history-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.history-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.table-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.table-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 8px 12px;
}

.th-guest {
  display: flex;
  flex-direction: column;
}

.th-guest strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.th-guest span {
  font-size: 11px;
  color: var(--slate-500);
}

.th-time {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.th-badge {
  font-size: 11px;
  font-weight: 700;
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

.th-time small {
  font-size: 10px;
  color: var(--slate-400);
  margin-top: 2px;
}

.history-empty {
  font-size: 12px;
  color: var(--slate-400);
  font-style: italic;
  margin: 0;
}

/* Seat Guest Modal */
.seat-guest-info-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.sgi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.sgi-text h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}

.sgi-text p {
  font-size: 12px;
  color: var(--slate-600);
  margin: 0;
}

.seat-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 2px;
}

.seat-table-card {
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seat-table-card:hover {
  transform: translateY(-2px);
  border-color: #4F46E5;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
}

.seat-table-card.available {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.03), #fff);
}

.seat-table-card.available:hover {
  border-color: #22C55E;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.2);
}

.st-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.st-id {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.st-cap {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 600;
}

.st-card-zone {
  font-size: 11px;
  color: var(--slate-600);
}

.st-card-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.st-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.fit-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #15803D;
  background: #DCFCE7;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════
   PUBLIC WEBSITE & CONTENT PAGES (STRICT SEPARATION FROM APP)
   ═══════════════════════════════════════════════════════════════ */
.public-site {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1E293B;
  background: #F8FAFC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
}

.public-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFFFFF;
}

.public-brand-logo svg {
  width: 18px;
  height: 18px;
}

.public-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.public-nav-link:hover, .public-nav-link.active {
  color: #FFFFFF;
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.public-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.public-btn-primary {
  background: var(--primary);
  border: none;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-btn-primary:hover {
  background: #4338CA;
  transform: translateY(-1px);
}

.public-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.public-hero {
  background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%);
  color: #FFFFFF;
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #A5B4FC;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.public-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 20px;
  color: #FFFFFF;
}

.public-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 680px;
  margin: 0 auto 36px;
}

.public-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.public-hero-btn {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.public-hero-btn.primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.public-hero-btn.primary:hover {
  background: #4338CA;
  transform: translateY(-2px);
}

.public-hero-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.public-hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.public-hero-perks {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13.5px;
  color: #94A3B8;
  flex-wrap: wrap;
}

/* SECTION HEADERS */
.public-section {
  padding: 80px 0;
}

.public-section.alt {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.public-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.public-section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
  display: inline-block;
}

.public-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.public-section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #64748B;
}

/* WORKFLOW CARDS */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.workflow-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.workflow-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.workflow-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}

.workflow-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #64748B;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748B;
}

/* GUIDES GRID */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.guide-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.1);
}

.guide-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-meta span.tag {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.guide-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 12px;
}

.guide-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #64748B;
  margin-bottom: 20px;
  flex: 1;
}

.guide-read-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ARTICLE / GUIDE VIEW */
.article-wrap {
  padding: 60px 0 100px;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  margin-bottom: 24px;
}

.article-breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #E2E8F0;
}

.article-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: #64748B;
  flex-wrap: wrap;
}

.article-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
}

.article-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #1E293B;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-callout {
  background: #EEF2FF;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 28px 0;
  font-size: 15px;
  color: #312E81;
}

/* EDITORIAL COMPLIANT AD WRAPPER FOR PUBLIC GUIDES ONLY */
.public-guide-ad-slot {
  margin: 40px 0;
  padding: 16px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  text-align: center;
}

.public-guide-ad-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  margin-bottom: 8px;
}

/* LEGAL & CONTENT PAGES */
.legal-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 44px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  margin-bottom: 60px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px; }
  .public-nav-links { display: none; }
}

/* FOOTER */
.public-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.public-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .public-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .public-footer-inner { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.public-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}



