/* ============ Monthly offer pop-up ============ */
.offer { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 26px; background: transparent; overflow: visible; color: #0f172a; }
.offer::backdrop { background: rgba(2, 6, 23, .62); }
.offer[open] { animation: offerIn .45s cubic-bezier(.2, .9, .25, 1.15); }
@keyframes offerIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.offer__card { position: relative; display: grid; grid-template-columns: 250px 1fr; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 50px 120px -30px rgba(2, 6, 23, .7); max-height: calc(100dvh - 24px); }
.offer__x { position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; cursor: pointer; }
.offer__x:hover { background: #f1f5f9; }
.offer__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* discount panel */
.offer__badge { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px 18px; overflow: hidden; text-align: center;
  background: radial-gradient(120% 90% at 20% 10%, #2563eb 0%, #1e3a8a 45%, #0b1226 100%); color: #fff; }
.offer__badge::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.offer__month { position: relative; z-index: 1; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font: 700 12.5px/1 "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .offer__month { letter-spacing: 0; font-size: 14px; }
.offer__badge b { position: relative; z-index: 1; display: flex; align-items: flex-start; font: 800 96px/.9 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 30%, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.offer__badge sup { font-size: 40px; line-height: 1.2; }
.offer__off { position: relative; z-index: 1; font: 800 22px/1 "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: .3em; color: #fde68a; }
html[lang="ar"] .offer__off { letter-spacing: 0; font-size: 26px; }
.offer__ring { position: absolute; width: 230px; height: 230px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.22); animation: offerSpin 26s linear infinite; }
.offer__ring--2 { width: 310px; height: 310px; border-style: solid; border-color: rgba(253,230,138,.15); border-top-color: rgba(253,230,138,.6); animation-duration: 14s; animation-direction: reverse; }
@keyframes offerSpin { to { transform: rotate(360deg); } }

/* content */
.offer__body { padding: 34px 32px 26px; overflow-y: auto; }
.offer__eb { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 12.5px/1 "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #136fb3; }
html[lang="ar"] .offer__eb { letter-spacing: 0; font-size: 14px; }
.offer__eb span { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.18); animation: offerBlink 1.4s ease-in-out infinite; }
@keyframes offerBlink { 50% { opacity: .35; } }
.offer h2 { margin: 0 0 10px; padding-inline-end: 40px; font: 800 26px/1.2 "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: -.02em; color: #0f172a; text-wrap: balance; }
html[lang="ar"] .offer h2 { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: 0; line-height: 1.4; }
.offer h2 em { font-style: normal; color: #dc2626; }
.offer__note { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #475569; }
.offer__cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 20px; }
.offer__cd div { display: grid; justify-items: center; padding: 10px 4px; border-radius: 12px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.offer__cd b { font: 800 24px/1 "Space Grotesk", system-ui, sans-serif; color: #0f172a; font-variant-numeric: tabular-nums; }
.offer__cd small { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .offer__cd small { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.offer__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.offer__btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 14px;
  font: 700 15px/1 "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; text-decoration: none; transition: transform .2s, box-shadow .2s, background-color .2s; }
.offer__btn--wa { background: #16a34a; color: #fff; box-shadow: 0 14px 30px -14px rgba(22,163,74,.9); }
.offer__btn--wa:hover { background: #15803d; transform: translateY(-2px); }
.offer__btn--wa svg { width: 20px; height: 20px; fill: currentColor; }
.offer__btn--ghost { border: 1.5px solid #cbd5e1; color: #0f172a; background: #fff; }
.offer__btn--ghost:hover { border-color: #136fb3; color: #136fb3; }
.offer__btn:focus-visible, .offer__x:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.offer__fine { margin: 14px 0 0; font-size: 12.5px; color: #64748b; }

/* side tab to reopen */
.offer-tab { position: fixed; z-index: 68; top: 50%; inset-inline-end: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 12px 8px; border: 0;
  border-radius: 14px 0 0 14px; background: linear-gradient(180deg, #dc2626, #9f1239); color: #fff; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(159,18,57,.8);
  transform: translate(110%, -50%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
html[dir="rtl"] .offer-tab { border-radius: 0 14px 14px 0; transform: translate(-110%, -50%); }
.offer-tab.is-in { transform: translate(0, -50%); }
.offer-tab:hover { filter: brightness(1.08); }
.offer-tab:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.offer-tab b { font: 800 17px/1 "Space Grotesk", system-ui, sans-serif; }
.offer-tab span { font: 700 11px/1 "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: .12em; }

@media (max-width: 640px) {
  .offer__card { grid-template-columns: 1fr; }
  .offer__badge { flex-direction: row; flex-wrap: wrap; gap: 10px 14px; padding: 22px 18px; }
  .offer__badge b { font-size: 64px; }
  .offer__badge sup { font-size: 28px; }
  .offer__month { order: 3; flex-basis: 100%; width: fit-content; margin-inline: auto; flex-grow: 0; }
  .offer__ring { display: none; }
  .offer__body { padding: 22px 18px 18px; }
  .offer h2 { font-size: 21px; }
  .offer__cd b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .offer[open], .offer__ring, .offer__eb span { animation: none; } .offer-tab { transition: none; } }
