/* 1️⃣ Base — Everything perfectly centered */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #eaeaea;
  color: #002b5c;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

header { text-align: center; padding-top: 2rem; }
h1 { font-size: 2.2rem; margin-bottom: 0.3rem; }
.tagline { font-style: italic; color: #444; }

/* 2️⃣ Feature Section */
.feature { text-align: center; margin-top: 2rem; width: 100%; max-width: 800px; }
h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; color: #002b5c; }
.subtext { margin-bottom: 1.5rem; color: #333; }

/* 3️⃣ Live Window — Preview (400×280px, sharp corners) */
#chatBox {
  position: relative;
  width: 400px;
  height: 280px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 !important;        /* ZERO radius */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 4️⃣ Expanded = TRUE FULLSCREEN (no 95%/85vh, no radius) */
#chatBox.expanded {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9999 !important;
}

/* 5️⃣ Chat Button — Centered under window */
.chat-button {
  display: block;
  margin: 1.5rem auto 0;
  background: rgba(255,255,255,.25);
  color: #002b5c;
  border: 2px solid rgba(255,255,255,.4);
  padding: .9rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: all .25s ease-in-out;
}
.chat-button:hover {
  background: #ccd7e2;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

/* 6️⃣ Owner Dashboard Button — Centered */
.owner-access {
  text-align: center;
  margin-top: 1rem;
}
.owner-btn {
  background: rgba(0, 51, 102, 0.9);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.owner-btn:hover {
  background: rgba(0, 51, 102, 1);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.6);
}

/* 7️⃣ Why Love Section & Footer — Centered */
.why-love, footer {
  width: 100%;
  max-width: 900px;
  text-align: center;
  margin: 3rem auto;
}
.why-love .feature { margin: 2rem 0; }

/* 8️⃣ Popup — Centered */
#popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
#popup.hidden { display: none; }

.popup-box {
  background: #fff;
  border: 3px solid #002b5c;
  border-radius: 16px;
  padding: 2rem;
  width: 360px;
  max-width: 90%;
  color: #002b5c;
  box-shadow: 0 8px 24px rgba(0,0,50,.25);
  text-align: center;
}

/* 9️⃣ Responsive — Mobile keeps 400×280 or scales nicely */
@media (max-width: 600px) {
  #chatBox { width: 90vw; height: calc(90vw * 0.7); max-width: 400px; max-height: 280px; }
}
/* FULL-PAGE SOLID GREY SCROLLBAR — right side */
html {
  scrollbar-width: thin;
  scrollbar-color: #999999 transparent;
}
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: #999999;
  border-radius: 0;
  border: 3px solid transparent;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: #777777; }
/* — FORCE SCROLLBAR BACK WHEN NOT IN CHAT — */
body:not(.live-active) {
  overflow-y: auto !important;
}
