@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
  --demo-banner-height: 62px;
}

.demo-banner {
  position: relative;
  z-index: 400;
  width: 100%;
  background: linear-gradient(110deg, #0ef596, #0abf62);
  color: #04341f;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  padding: 10px 16px;
  box-shadow: 0 10px 26px rgba(14, 245, 150, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: demoPulse 3s ease-in-out infinite;
}

.demo-banner * {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: inherit;
  line-height: 1.25;
}

.demo-banner__left,
.demo-banner__right {
  width: 150px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.demo-banner__right {
  justify-content: flex-end;
}

.demo-banner__copy {
  flex: 1;
  text-align: center;
  line-height: 1.25;
}

.demo-banner__title {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.demo-banner__subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.demo-banner__leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(120deg, #ff4f4f, #d7263d);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 18px rgba(215, 38, 61, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s;
}

.demo-banner__leave:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(215, 38, 61, 0.45);
  filter: brightness(1.05);
}

.demo-banner__leave:active {
  transform: translateY(0);
}

@keyframes demoPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(14, 245, 150, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08); }
  50% { box-shadow: 0 14px 32px rgba(14, 245, 150, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14); }
}

@media (max-width: 768px) {
  :root { --demo-banner-height: 70px; }
  .demo-banner { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .demo-banner__left, .demo-banner__right { width: auto; }
  .demo-banner__copy { order: 3; width: 100%; }
}

/* Align floating nav + dots to the same green theme */
.float-nav {
  background: linear-gradient(120deg, #0ef596, #0abf62) !important;
  color: #04341f !important;
  border: 1px solid rgba(4, 52, 31, 0.35) !important;
  box-shadow: 0 10px 24px rgba(14, 245, 150, 0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}
.float-nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 14px 30px rgba(14, 245, 150, 0.45) !important;
  filter: brightness(1.05);
}
.float-nav:active {
  transform: translateY(-50%) scale(1.0);
}

.demo-dots {
  background: rgba(14, 245, 150, 0.18) !important;
  border: 1px solid rgba(4, 52, 31, 0.15) !important;
  box-shadow: 0 10px 26px rgba(14, 245, 150, 0.35) !important;
}
.demo-dots a {
  border: 1px solid rgba(4, 52, 31, 0.4) !important;
  background: rgba(14, 245, 150, 0.25) !important;
}
.demo-dots a.active {
  background: #0ef596 !important;
  border-color: #0abf62 !important;
  box-shadow: 0 0 0 4px rgba(14, 245, 150, 0.35) !important;
}

/* Entry modal */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.demo-modal {
  width: min(520px, 94vw);
  background: #0c1f16;
  color: #d7ffec;
  border: 1px solid rgba(14, 245, 150, 0.25);
  border-radius: 12px;
  box-shadow: 0 20px 46px rgba(0,0,0,0.45), 0 0 0 1px rgba(14, 245, 150, 0.25);
  padding: 18px;
  animation: demoModalIn 0.35s ease;
}
.demo-modal__title {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #0ef596;
}
.demo-modal__body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #d7ffec;
}
.demo-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.demo-modal__btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}
.demo-modal__btn--confirm {
  background: linear-gradient(110deg, #0ef596, #0abf62);
  color: #04341f;
  box-shadow: 0 10px 24px rgba(14, 245, 150, 0.35);
}
.demo-modal__btn--leave {
  background: linear-gradient(120deg, #ff4f4f, #d7263d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 38, 61, 0.35);
}
.demo-modal__btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.demo-modal__btn:active { transform: translateY(0); }

@keyframes demoModalIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
