/* ============================================================
   Better Promotion — "Halloween Night" design
   ============================================================ */

@keyframes pbnFlicker { 0%,100% { opacity: 1 } 42% { opacity: .86 } 46% { opacity: 1 } 52% { opacity: .74 } 58% { opacity: .95 } }
@keyframes pbnFloat   { 0%,100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-5px) rotate(2deg) } }
@keyframes pbnSwing   { 0%,100% { transform: rotate(-3.5deg) } 50% { transform: rotate(3.5deg) } }
@keyframes pbnBat     { 0%,100% { transform: translate(0,0) scaleY(1) } 50% { transform: translate(7px,-4px) scaleY(.6) } }
@keyframes pbnBob     { 0%,100% { transform: translateY(0) } 50% { transform: translateY(5px) } }
@keyframes pbnPulse   { 0%,100% { opacity: .55; transform: scale(1) } 50% { opacity: .85; transform: scale(1.08) } }
@keyframes pbnTwinkle { 0%,100% { opacity: .9 } 50% { opacity: .45 } }
@keyframes pbnShine   { 0% { left: -60% } 55%,100% { left: 130% } }

.pbn {
  --pbn-gap: 24px;
  position: relative;
  min-height: 120px;
  overflow: hidden;
  font-family: "Sora", system-ui, sans-serif;
  color: #F5EEFF;
  background:
    radial-gradient(ellipse 240px 190px at 82px 54%, rgba(255,190,130,.34), rgba(255,190,130,0) 72%),
    radial-gradient(ellipse 640px 150px at 73% 125%, rgba(249,115,22,.30), rgba(249,115,22,0) 72%),
    radial-gradient(ellipse 420px 160px at 34% -40%, rgba(167,105,255,.22), rgba(167,105,255,0) 70%),
    linear-gradient(90deg, #160728 0%, #2A0D4E 30%, #36105C 58%, #2B0C4A 82%, #1C0833 100%);
  box-shadow: inset 0 1px 0 rgba(216,194,255,.18), inset 0 -1px 0 rgba(249,115,22,.35);
  box-sizing: border-box;
}
.pbn *, .pbn *::before, .pbn *::after { box-sizing: border-box; }
.pbn { padding: 0 20px; }

/* --- Scenery --- */
.pbn-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 210px 18px,#fff,transparent), radial-gradient(1px 1px at 340px 92px,#e9d5ff,transparent),
    radial-gradient(1.4px 1.4px at 470px 30px,#fff,transparent), radial-gradient(1px 1px at 640px 14px,#fff,transparent),
    radial-gradient(1.2px 1.2px at 760px 96px,#e9d5ff,transparent), radial-gradient(1px 1px at 905px 22px,#fff,transparent),
    radial-gradient(1.4px 1.4px at 1040px 104px,#fff,transparent), radial-gradient(1px 1px at 1210px 16px,#e9d5ff,transparent),
    radial-gradient(1.2px 1.2px at 1330px 100px,#fff,transparent), radial-gradient(1px 1px at 1480px 12px,#fff,transparent),
    radial-gradient(1.3px 1.3px at 1590px 104px,#e9d5ff,transparent), radial-gradient(1px 1px at 1700px 20px,#fff,transparent);
  animation: pbnTwinkle 4s ease-in-out infinite;
}
.pbn-fog {
  position: absolute; left: -40px; right: -40px; bottom: -26px; height: 56px; pointer-events: none;
  background:
    radial-gradient(ellipse 300px 30px at 15% 60%, rgba(196,170,255,.16), transparent 70%),
    radial-gradient(ellipse 380px 28px at 52% 70%, rgba(196,170,255,.13), transparent 70%),
    radial-gradient(ellipse 320px 30px at 86% 60%, rgba(196,170,255,.14), transparent 70%);
  filter: blur(6px);
}
.pbn-ground { position: absolute; left: 0; bottom: 0; width: 100%; height: 46px; opacity: .7; fill: #120419; pointer-events: none; }
.pbn-web { position: absolute; right: 0; top: 0; opacity: .32; pointer-events: none; }
.pbn-spider { position: absolute; right: 70px; top: 0; animation: pbnBob 3.4s ease-in-out infinite; pointer-events: none; }
.pbn-spider-thread { width: 1px; height: 16px; margin-left: 6px; background: rgba(216,194,255,.55); }
.pbn-spider svg { display: block; }
.pbn-bat { position: absolute; pointer-events: none; }
.pbn-bat--1 { left: 28.5%; top: 12px; width: 26px; height: 13px; animation: pbnBat 1.6s ease-in-out infinite; }
.pbn-bat--2 { left: 30.3%; top: 28px; width: 16px; height: 8px;  animation: pbnBat 1.2s ease-in-out infinite; }
.pbn-bat--3 { left: 64%;   top: 8px;  width: 20px; height: 10px; animation: pbnBat 1.4s ease-in-out infinite; }

/* --- Layout --- */
.pbn-row {
  position: relative;
  min-height: 120px;
  padding: 0 22px 0 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px var(--pbn-gap);
}
.pbn-sec { position: relative; display: flex; align-items: center; }
/* Dividers: shown only between two visible sections. */
.pbn-div {
  display: none; width: 1px; height: 66px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(216,194,255,0), rgba(216,194,255,.38), rgba(216,194,255,0));
}
.pbn-sec:not([hidden]) ~ .pbn-div:not(:has(+ .pbn-sec[hidden])) { display: block; }

/* Coupon labels float above the boxes so the boxes sit on the row's centre line. */
@container (min-width: 641px) {
  .pbn-code-item { position: relative; }
  .pbn-code-tag { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 4px; text-align: center; white-space: nowrap; }
}

/* --- Offer --- */
.pbn-offer { gap: 14px; }
.pbn-scene { position: relative; width: 132px; height: 120px; flex-shrink: 0; }
.pbn-moon {
  position: absolute; left: 14px; top: 12px; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFF1DA 0%, #FBC89A 42%, #E9A0B8 74%, #B88AE6 100%);
  box-shadow: 0 0 40px rgba(255,190,140,.55), 0 0 90px rgba(200,140,255,.25);
}
.pbn-moon i { position: absolute; border-radius: 50%; }
.pbn-moon i:nth-child(1) { left: 20px; top: 46px; width: 14px; height: 14px; background: rgba(180,110,120,.18); }
.pbn-moon i:nth-child(2) { left: 56px; top: 24px; width: 10px; height: 10px; background: rgba(180,110,120,.16); }
.pbn-moon i:nth-child(3) { left: 58px; top: 58px; width: 18px; height: 18px; background: rgba(180,110,120,.13); }
.pbn-branch { position: absolute; left: 0; top: 0; }
.pbn-ghost {
  position: absolute; left: 96px; top: 30px;
  animation: pbnFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(230,210,255,.85));
}
.pbn-swing {
  position: absolute; left: 22px; top: 8px; width: 76px; height: 108px;
  transform-origin: 50% 0; animation: pbnSwing 3.6s ease-in-out infinite;
}
.pbn-chain { position: absolute; left: 0; top: 0; }
.pbn-glow {
  position: absolute; left: 6px; top: 34px; width: 64px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,150,40,.55), rgba(255,150,40,0) 70%);
  animation: pbnPulse 2.4s ease-in-out infinite;
}
.pbn-pumpkin { position: absolute; left: 0; top: 22px; filter: drop-shadow(0 0 10px rgba(255,140,40,.65)); }
.pbn-face { animation: pbnFlicker 2.6s infinite; }

.pbn-offer-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.pbn-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: #FFC966; text-transform: uppercase; }
.pbn-headline {
  font-family: "Creepster", cursive; font-size: 42px; line-height: 1; letter-spacing: .035em;
  white-space: nowrap; color: #F7F1FF;
  text-shadow: 0 0 16px rgba(214,190,255,.45), 0 2px 0 rgba(42,11,71,.6);
}
.pbn-hl {
  font-size: 54px;
  background: linear-gradient(180deg, #FFF0A8 0%, #FFC23D 45%, #FF8A1F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 10px rgba(255,150,40,.6));
}
.pbn-sub { font-size: 12.5px; color: #D9C8F5; }
.pbn-eyebrow:empty, .pbn-sub:empty { display: none; }

/* --- Save up to (ticket) --- */
.pbn-ticket {
  position: relative; padding: 10px 22px; text-align: center; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,167,51,.18), rgba(249,115,22,.08));
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000 100%) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, transparent 97%, #000 100%) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000 100%) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, transparent 97%, #000 100%) right / 51% 100% no-repeat;
}
.pbn-ticket::after {
  content: ""; position: absolute; inset: 4px 10px;
  border: 1.5px dashed rgba(255,181,71,.65); border-radius: 7px; pointer-events: none;
}
.pbn-save-lbl { position: relative; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: #EBDDFF; text-transform: uppercase; }
.pbn-save-val {
  position: relative; font-family: "Creepster", cursive; font-size: 36px; line-height: 1.02; letter-spacing: .05em;
  background: linear-gradient(180deg, #FFF0A8 0%, #FFB547 55%, #FF8A1F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,150,40,.55));
}

/* --- Coupons --- */
.pbn-coupon { gap: 14px; }
.pbn-tag-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, #7C3AED, #4C1D95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(139,92,246,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.pbn-apply { font-size: 15px; font-weight: 600; white-space: nowrap; }
.pbn-code-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pbn-code-tag { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #FFB547; text-transform: uppercase; min-height: 12px; }
.pbn-copied-lbl { display: none; color: #A3E635; }
.pbn-code-item:has(.pb-copied) .pbn-code-lbl { display: none; }
.pbn-code-item:has(.pb-copied) .pbn-copied-lbl { display: inline; }
.pbn-code {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; margin: 0; padding: 0 14px 0 18px;
  border-radius: 10px; border: 1.5px solid #F97316;
  background: linear-gradient(180deg, rgba(42,12,72,.85), rgba(20,6,36,.85));
  color: #FFF6E5; font-family: "Sora", system-ui, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: .15em;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 12px rgba(249,115,22,.35), inset 0 0 10px rgba(249,115,22,.12);
  transition: background .15s, box-shadow .15s, transform .15s;
}
.pbn-code:hover {
  background: rgba(249,115,22,.2);
  box-shadow: 0 0 18px rgba(249,115,22,.55), inset 0 0 12px rgba(249,115,22,.2);
  transform: translateY(-1px);
}
.pbn-code-sep { width: 1px; height: 22px; border-left: 1.5px dashed rgba(255,181,71,.5); }
.pbn-ic-check { display: none; }
.pbn-code.pb-copied .pbn-ic-copy { display: none; }
.pbn-code.pb-copied .pbn-ic-check { display: block; }

/* --- Countdown --- */
.pbn-timer { gap: 12px; }
.pbn-timer-hd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pbn-countdown { display: flex; align-items: center; gap: 5px; }
.pbn-unit {
  position: relative; width: 58px; height: 66px; border-radius: 11px;
  border: 1.5px solid rgba(249,115,22,.9);
  background: linear-gradient(180deg, rgba(64,22,108,.92) 0%, rgba(44,14,78,.92) 50%, rgba(22,6,40,.94) 50%, rgba(14,4,26,.94) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(249,115,22,.32), inset 0 1px 0 rgba(255,255,255,.12);
}
.pbn-unit::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.pbn-num { position: relative; font-size: 27px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(255,200,120,.35); }
.pbn-unit-lbl { position: relative; margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: .16em; color: #D8C2FF; }
.pbn-colon { font-size: 22px; font-weight: 800; color: #FFB547; animation: pbnTwinkle 1s steps(2) infinite; }

/* --- CTA + close --- */
.pbn-end { display: flex; align-items: center; gap: 14px; }
.pbn-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 8px 0 26px; border-radius: 999px;
  background: linear-gradient(180deg, #FFDA6B 0%, #FFB03B 55%, #FF9324 100%);
  color: #1B0933; font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 24px rgba(255,167,51,.6), inset 0 -3px 0 rgba(154,52,18,.3), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .15s, box-shadow .15s;
}
.pbn-cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: pbnShine 3.2s ease-in-out infinite;
}
.pbn-cta:hover { color: #1B0933; transform: translateY(-1px); box-shadow: 0 0 30px rgba(255,167,51,.8), inset 0 -3px 0 rgba(154,52,18,.35); }
.pbn-cta-arrow { width: 36px; height: 36px; border-radius: 50%; background: #1B0933; display: flex; align-items: center; justify-content: center; }
.pbn-close {
  width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(245,238,255,.45); background: rgba(14,4,26,.35);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pbn-close:hover { background: rgba(255,255,255,.1); border-color: rgba(245,238,255,.8); }
.pbn-code:focus-visible, .pbn-cta:focus-visible, .pbn-close:focus-visible { outline: 2px solid #FFD15C; outline-offset: 3px; }

/* --- Narrower containers: wrap, pin the close button --- */
/* Laptop widths: compact single row. */
@container (max-width: 1799px) {
  .pbn-row { --pbn-gap: 12px; flex-wrap: nowrap; padding: 0 48px 0 0; }
  .pbn-close { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 32px; height: 32px; }

  .pbn-offer { gap: 8px; }
  .pbn-scene { width: 96px; height: 92px; }
  .pbn-moon, .pbn-branch, .pbn-ghost, .pbn-swing { zoom: .76; }
  .pbn-eyebrow { font-size: 10px; }
  .pbn-headline { font-size: 32px; }
  .pbn-hl { font-size: 42px; }
  .pbn-sub { font-size: 11px; }

  .pbn-ticket { padding: 7px 14px; }
  .pbn-save-val { font-size: 28px; }

  .pbn-coupon { gap: 10px; }
  .pbn-tag-icon { display: none; }
  .pbn-apply { font-size: 13px; }
  .pbn-code { min-height: 40px; font-size: 14px; letter-spacing: .12em; gap: 8px; padding: 0 10px 0 12px; }

  .pbn-timer { gap: 8px; }
  .pbn-timer-hd span { display: none; }
  .pbn-unit { width: 46px; height: 54px; }
  .pbn-num { font-size: 21px; }
  .pbn-unit-lbl { margin-top: 4px; }

  .pbn-cta { min-height: 44px; padding: 0 6px 0 16px; gap: 8px; font-size: 14px; }
  .pbn-cta-arrow { width: 32px; height: 32px; }
}
/* Smaller laptops / tablets: two tidy rows, no dividers. */
@container (max-width: 1339px) {
  .pbn-row { flex-wrap: wrap; justify-content: center; padding: 12px 48px 16px 0; gap: 12px 24px; }
  .pbn-div { display: none !important; }
  .pbn-close { top: 12px; transform: none; }
}
/* Row 1: offer, save, coupons. Row 2: countdown + button. */
@container (min-width: 900px) and (max-width: 1339px) {
  .pbn-offer, .pbn-save, .pbn-coupon { order: 1; }
  .pbn-row::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .pbn-timer, .pbn-end { order: 3; }
}
/* Mobile: same compact standard layout as the other designs. */
@container (max-width: 640px) {
  .pbn { min-height: 0; padding: 0; }
  .pbn-row { min-height: 0; justify-content: center; padding: 10px 38px 12px 12px; gap: 8px 10px; }
  .pbn-div { display: none !important; }
  .pbn-close { top: 8px; right: 8px; width: 24px; height: 24px; }
  .pbn-close svg { width: 10px; height: 10px; }
  .pbn-web { width: 60px; height: 46px; }
  .pbn-spider { display: none; }

  /* Offer: just the lantern + headline. */
  .pbn-offer { gap: 6px; }
  .pbn-scene { width: 34px; height: 32px; }
  .pbn-moon, .pbn-branch, .pbn-ghost, .pbn-chain { display: none; }
  .pbn-swing { left: -2px; top: -14px; zoom: .5; animation: none; }
  .pbn-offer-text { align-items: flex-start; text-align: left; }
  .pbn-eyebrow, .pbn-sub { display: none; }
  .pbn-headline { font-size: 22px; }
  .pbn-hl { font-size: 27px; }

  /* Row 1: offer + save ticket. Row 2: coupons. Row 3: countdown + button. */
  .pbn-ticket { padding: 2px 12px; }
  .pbn-ticket::after { inset: 2px 7px; }
  .pbn-save-lbl { font-size: 7px; letter-spacing: .1em; }
  .pbn-save-val { font-size: 16px; }

  .pbn-coupon { width: 100%; justify-content: center; gap: 8px; }
  .pbn-tag-icon, .pbn-apply { display: none; }
  .pbn-code-item { gap: 2px; }
  .pbn-code-tag { font-size: 8.5px; min-height: 10px; }
  .pbn-code { min-height: 32px; font-size: 13px; letter-spacing: .08em; gap: 6px; padding: 0 8px 0 10px; border-radius: 8px; }
  .pbn-code-sep { height: 16px; }
  .pbn-code svg { width: 13px; height: 13px; }

  .pbn-timer { gap: 5px; }
  .pbn-timer-hd span { display: none; }
  .pbn-timer-hd svg { width: 15px; height: 15px; }
  .pbn-countdown { gap: 2px; }
  .pbn-unit { width: 32px; height: 36px; border-radius: 7px; }
  .pbn-num { font-size: 15px; }
  .pbn-unit-lbl { margin-top: 2px; font-size: 7px; letter-spacing: .08em; }
  .pbn-colon { font-size: 13px; }

  .pbn-end { gap: 8px; }
  .pbn-cta { min-height: 34px; padding: 0 4px 0 11px; gap: 6px; font-size: 12.5px; }
  .pbn-cta-arrow { width: 26px; height: 26px; }
  .pbn-cta-arrow svg { width: 11px; height: 11px; }
}

@container (max-width: 360px) {
  .pbn-row { padding-left: 8px; padding-right: 32px; gap: 8px 6px; }
  .pbn-timer-hd { display: none; }
  .pbn-unit { width: 30px; }
  .pbn-colon { font-size: 11px; }
  .pbn-cta-arrow { display: none; }
  .pbn-cta { padding: 0 11px; }
  .pbn-code { font-size: 12px; letter-spacing: .05em; padding: 0 6px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pbn *, .pbn *::after { animation: none !important; }
}
