.bole-promo-active {
  padding-bottom: clamp(86px, 17vw, 128px);
}

.bole-footer-promo,
.bole-popup-backdrop {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bole-footer-promo *,
.bole-popup-backdrop * {
  box-sizing: border-box;
}

.bole-footer-promo {
  position: fixed;
  z-index: 2147483000;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(255, 214, 94, 0.45);
  border-radius: 8px;
  background: #05070d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
  overflow: hidden;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.bole-footer-promo.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.bole-footer-promo a {
  display: block;
  min-height: 64px;
}

.bole-footer-promo img {
  display: block;
  width: 100%;
  height: auto;
}

.bole-footer-close,
.bole-popup-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.bole-footer-close {
  top: 6px;
  right: 6px;
}

.bole-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 18, 0.62);
  opacity: 0;
  transition: opacity 180ms ease;
}

.bole-popup-backdrop.is-visible {
  opacity: 1;
}

.bole-popup {
  position: relative;
  width: min(94vw, 430px);
  color: #fff;
  border: 1px solid rgba(255, 232, 151, 0.45);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 214, 94, 0.28), transparent 28%),
    linear-gradient(145deg, #101529 0%, #351064 52%, #0b1020 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 180ms ease;
}

.bole-popup-backdrop.is-visible .bole-popup {
  transform: translateY(0) scale(1);
}

.bole-popup-close {
  top: 10px;
  right: 10px;
}

.bole-popup-inner {
  padding: 22px;
}

.bole-popup-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 214, 94, 0.44);
  border-radius: 999px;
  color: #ffe89b;
  background: rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.bole-popup-title {
  margin: 0;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.05;
  letter-spacing: 0;
}

.bole-popup-title strong {
  color: #ffd84f;
}

.bole-popup-subtitle {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.55;
}

.bole-offer-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 13px;
}

.bole-offer-tab {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.bole-offer-tab.is-active {
  color: #171207;
  border-color: #ffe178;
  background: linear-gradient(180deg, #ffe790, #ffb735);
}

.bole-offer-panel {
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.bole-offer-title {
  margin: 0 0 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.bole-offer-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.bole-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 14px;
  border-radius: 8px;
  color: #160d05;
  background: linear-gradient(180deg, #ffe790, #ff9e2c);
  box-shadow: 0 10px 24px rgba(255, 157, 43, 0.28);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

/* ── Kicker row with countdown ── */
.bole-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.bole-countdown {
  margin: 0;
  color: #ffe89b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bole-countdown b {
  display: inline-block;
  min-width: 1.6ch;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 214, 94, 0.18);
}

/* ── Tab badge (人氣首選) ── */
.bole-offer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.bole-tab-label {
  font-size: 13px;
  font-weight: 800;
}

.bole-tab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 232, 120, 0.25);
  color: #ffe89b;
}

.bole-offer-tab.is-active .bole-tab-badge {
  background: rgba(0, 0, 0, 0.18);
  color: #5a3800;
}

/* ── Subtitle strong (人數) ── */
.bole-popup-subtitle strong {
  color: #ffe89b;
}

/* ── Process steps micro-copy ── */
.bole-popup-steps {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Footer text fallback ── */
.bole-footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 46px 14px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-wrap: wrap;
  text-decoration: none;
}

.bole-footer-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.bole-footer-cta-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe790, #ff9e2c);
  color: #160d05;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

/* ── Note ── */
.bole-popup-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 520px) {
  .bole-promo-active {
    padding-bottom: clamp(72px, 23vw, 106px);
  }

  .bole-footer-promo {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .bole-popup-inner {
    padding: 18px 15px 16px;
  }

  .bole-offer-tabs {
    gap: 5px;
  }

  .bole-offer-tab {
    min-height: 44px;
    padding: 4px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bole-footer-promo,
  .bole-popup-backdrop,
  .bole-popup {
    transition: none;
  }
}
