/* GH~Coding POS public demo chrome. All data behind this UI is synthetic. */
#publicDemoBar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100010;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 8px 12px;
  border: 1px solid rgba(190, 255, 92, 0.45);
  border-radius: 999px;
  background: rgba(7, 14, 28, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  color: #eaf3ff;
  font: 600 12px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
}
.public-demo-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: #b6ff5c;
  color: #10210b;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.public-demo-note { opacity: 0.85; }
#demoResetBtn {
  cursor: pointer;
  padding: 5px 11px;
  border: 1px solid rgba(190, 255, 92, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #d8ff9e;
  font: 700 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}
#demoResetBtn:hover { background: rgba(190, 255, 92, 0.14); }
#demoResetBtn:disabled { cursor: wait; opacity: 0.6; }
#demoResetStatus { font-size: 11px; color: #ffd06b; }
@media (max-width: 620px) {
  #publicDemoBar { border-radius: 14px; flex-wrap: wrap; white-space: normal; }
  .public-demo-note { display: none; }
}

/* Demo access panel: two apps + visible synthetic credentials. */
#demoAccessPanel {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100009;
  width: min(940px, calc(100vw - 24px));
  padding: 10px 12px 11px;
  border: 1px solid rgba(124, 196, 255, 0.4);
  border-radius: 14px;
  background: rgba(7, 14, 28, 0.95);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  color: #eaf3ff;
  font: 500 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
html.public-storefront-mode #publicDemoBar,
body.public-storefront-mode #publicDemoBar { display: flex !important; }
html.public-storefront-mode #demoAccessPanel,
body.public-storefront-mode #demoAccessPanel { display: block !important; }
.demo-access-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.demo-access-head strong { color: #9fd4ff; font-size: 13px; }
.demo-access-head span { opacity: 0.8; }
.demo-access-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.demo-launch { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 6px 13px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.demo-launch-customer { background: #7cc4ff; color: #071522; }
.demo-launch-admin { border: 1px solid #7cc4ff; color: #9fd4ff; }
.demo-launch:hover { filter: brightness(1.08); }
.demo-accounts { width: 100%; border-collapse: collapse; font-size: 11px; }
.demo-accounts th, .demo-accounts td { padding: 3px 7px; border-top: 1px solid rgba(124, 196, 255, 0.16); text-align: left; vertical-align: middle; }
.demo-accounts th { color: #7fa9c9; font-weight: 700; }
.demo-accounts code { padding: 1px 5px; border-radius: 4px; background: rgba(124, 196, 255, 0.14); color: #d8ecff; font-size: 11px; }
@media (max-width: 620px) {
  #demoAccessPanel { top: 60px; padding: 8px; }
  .demo-access-head span { display: none; }
  .demo-accounts th:nth-child(2), .demo-accounts td:nth-child(2) { display: none; }
}

/* Hide activation, real payment/secret and backup/license management UI. */
#licenseOverlay,
#licenseGate,
#stab-license,
#settings-panel-license,
#settings-ai-block,
#settings-api-block,
#settings-server-config,
#set-gemini-key,
#set-gemini-key-admin,
#storefront-payment-settings-panel,
#cafe-payment-photo-management,
#cafe-report-payment-methods,
#central-cafe-report-payment-methods,
[data-require-perm="platform.manage"],
[onclick*="backupTenant"],
[onclick*="backupAllTenants"],
[onclick*="generateLicenseKey"],
[onclick*="activateLicenseKey"] {
  display: none !important;
}
