:root {
  --bottom-ad-bar-height: 100px;
  --bottom-ad-bar-height-mobile: 90px;
}

/* Reserve space for the fixed promo bar */
body {
  padding-bottom: var(--bottom-ad-bar-height) !important;
}

/* Fixed bottom promo bar */
#bottom-ad-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100%;
  height: var(--bottom-ad-bar-height);
  background: linear-gradient(135deg, #eef5ff 0%, #f8faff 100%);
  border-top: 1px solid #d1d5db;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.bottom-ad-bar__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  text-align: center;
}

.bottom-ad-bar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1;
  margin: 0;
}

.bottom-ad-bar__promo-text {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  line-height: 1.3;
}

.bottom-ad-bar__remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid #3b82f6;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bottom-ad-bar__remove-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* ---- Page navigation promo popup ---- */
#promo-nav-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: promo-fade-in 0.25s ease-out;
}

.promo-nav-popup__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: promo-scale-in 0.25s ease-out;
}

.promo-nav-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.promo-nav-popup__close:hover {
  color: #374151;
  background: #f3f4f6;
}

.promo-nav-popup__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.promo-nav-popup__title {
  font-size: 20px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 10px;
}

.promo-nav-popup__body {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 20px;
}

.promo-nav-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.promo-nav-popup__actions .btn--primary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}

.promo-nav-popup__actions .btn--primary:hover {
  background: #2563eb;
}

.promo-nav-popup__actions .btn--ghost {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.promo-nav-popup__actions .btn--ghost:hover {
  background: #f9fafb;
  color: #374151;
}

/* Animations */
@keyframes promo-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes promo-scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: var(--bottom-ad-bar-height-mobile) !important;
  }

  #bottom-ad-bar {
    height: var(--bottom-ad-bar-height-mobile);
  }

  .bottom-ad-bar__inner {
    padding: 6px 8px;
    gap: 4px;
  }

  .bottom-ad-bar__label {
    font-size: 9px;
  }

  .bottom-ad-bar__promo-text {
    font-size: 12px;
  }

  .bottom-ad-bar__remove-btn {
    font-size: 12px;
    padding: 5px 12px;
  }

  .promo-nav-popup__card {
    padding: 24px 20px;
    width: 92%;
  }
}
