/* ==========================================================================
   Desktop macOS Browser Window Frame & Hardware Enclosure - Enterprise
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-viewport-wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.browser-window-frame {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  background: #F8FAFC;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* macOS Titlebar Chrome */
.browser-chrome-header {
  height: 44px;
  background: #090e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  user-select: none;
  flex-shrink: 0;
}

.window-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-light.close { background: #ff5f56; border: 1px solid #e0443e; }
.traffic-light.minimize { background: #ffbd2e; border: 1px solid #dea123; }
.traffic-light.maximize { background: #27c93f; border: 1px solid #1aab29; }

.browser-address-bar {
  flex: 1;
  max-width: 620px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: -0.2px;
}

.browser-address-bar .lock-icon {
  color: #10b981;
}

.browser-address-bar .domain {
  color: #f8fafc;
  font-weight: 600;
}

.browser-chrome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
}

.demo-mode-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.reset-sandbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease-out;
}

.reset-sandbox-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Mobile Device Guard Overlay (Visible only on mobile viewports < 900px)
   ========================================================================== */
.mobile-device-disabled-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #030712;
  z-index: 99999;
  padding: 24px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .mobile-device-disabled-overlay {
    display: flex;
  }
  .demo-viewport-wrapper {
    display: none;
  }
}

.mobile-guard-card {
  max-width: 440px;
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.mobile-guard-icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.mobile-guard-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.mobile-guard-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.mobile-guard-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 24px;
}

.mobile-guard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-guard-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 150ms ease;
}

.mobile-guard-btn-primary:hover {
  background: #1d4ed8;
}

.mobile-guard-btn-secondary {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px;
}

.mobile-guard-btn-secondary:hover {
  color: #ffffff;
}

.mobile-guard-bypass-btn {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #64748b;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 14px;
}

.mobile-guard-bypass-btn:hover {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.4);
}
