/* ============================================================================
   GUEST (READ-ONLY) LOCKDOWN INSIDE /static/index.html (US WORKSPACE IFRAME)
   ============================================================================ */

body.guest-mode #addOpen,
body.guest-mode #removeOpen,
body.guest-mode #refreshData,
body.guest-mode #signalRefresh,
body.guest-mode #settings,
body.guest-mode #basketAdd,
body.guest-mode [data-xray-trade],
body.guest-mode [data-xray-remove],
body.guest-mode .wl-xray-port-box,
body.guest-mode [data-wl-kpi="portfolio"],
body.guest-mode [data-wl-filter="portfolio"],
body.guest-mode .wl-port-badge {
  display: none !important;
}

/* Re-balance 3 remaining KPI cards cleanly when Portfolio KPI is hidden for guests */
body.guest-mode .wl-kpi-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 680px) {
  body.guest-mode .wl-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Hide personal portfolio contents if guest somehow navigates to #portfolio */
body.guest-mode #portfolio > :not(#guestPortfolioLockCard) {
  display: none !important;
}

.guest-lock-card {
  max-width: 520px;
  margin: 48px auto;
  padding: 24px 22px;
  border-radius: 14px;
  background: #0d131a;
  border: 1px solid rgba(255, 190, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 16px 40px rgba(0, 0, 0, 0.55);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.guest-lock-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #ffbe00;
  text-transform: uppercase;
}
.guest-lock-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}
.guest-lock-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 157, 0.55);
  background: rgba(0, 255, 157, 0.14);
  color: #00ff9d;
  font: 800 13px/1 Manrope, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.guest-lock-btn:hover {
  background: rgba(0, 255, 157, 0.22);
}
