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

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: #0f172a;
  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;
}

.reset-sandbox-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease-out;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.demo-mode-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Mobile Device Guard Overlay (< 992px or mobile viewport)
   ========================================================================== */
.mobile-device-disabled-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #030712;
  color: #f8fafc;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  box-sizing: border-box;
}

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

.mobile-guard-card {
  max-width: 440px;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 36px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.mobile-guard-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 16px;
}

.mobile-guard-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
  display: inline-block;
}

.mobile-guard-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mobile-guard-desc {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 24px;
}

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

.mobile-guard-btn-primary {
  background: linear-gradient(to top, #2563eb, #3b82f6);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

.mobile-guard-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.mobile-guard-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-guard-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mobile-guard-bypass-btn {
  margin-top: 14px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.mobile-guard-bypass-btn:hover {
  color: #94a3b8;
}

