html { scroll-behavior: smooth; }

body { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 640px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

section[id] { scroll-margin-top: 72px; }

/* Skip link a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #0b3b6f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Honeypot — hide from real users without display:none (some bots skip those) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ POPUP KHUYẾN MÃI ============ */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.promo-popup.is-open {
  display: flex;
  animation: popupFade 200ms ease-out;
}

.promo-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 24, 46, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.promo-popup__modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, #0b3b6f 0%, #082c54 100%);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  opacity: 0;
  animation: popupPop 300ms cubic-bezier(0.18, 1.2, 0.4, 1) forwards;
}

.promo-popup__close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
  z-index: 2;
}
.promo-popup__close:hover,
.promo-popup__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.promo-popup__body {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 48px 24px 28px;
  text-align: center;
  cursor: pointer;
}

.promo-popup__badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.2);
  color: #ffc857;
  border: 1px solid rgba(245, 166, 35, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.promo-popup__title {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
}
.promo-popup__title span { color: #ffc857; }

.promo-popup__big {
  margin: 14px 0 10px;
  font-size: 38px;
  font-weight: 900;
  color: #ffc857;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(255, 200, 87, 0.3);
}

.promo-popup__sub {
  margin: 6px 0 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
}
.promo-popup__sub strong { color: #fff; }

.promo-popup__date {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.promo-popup__cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #f5a623, #d98a13);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
  text-align: center;
  letter-spacing: 0.5px;
}
.promo-popup__body:hover .promo-popup__cta {
  transform: translateY(-1px);
  transition: transform 150ms;
}

@keyframes popupFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popupPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@media (max-width: 380px) {
  .promo-popup__title { font-size: 24px; }
  .promo-popup__big   { font-size: 32px; }
  .promo-popup__body  { padding: 44px 18px 22px; }
}
