/* =========================================================
   HOMEPAGE OFFERS - PREMIUM (several offers, one at a time)
   Replaces the old single-offer block when the new list loads.
   Colours come from --op-* so every website theme can tint it.
========================================================= */
html.op-active #offersSection { display: none !important; }

.op {
    --op-a: #ff5aa0; --op-b: #ff2d85; --op-soft: #ffc2da; --op-rgb: 255, 45, 133; --op-bg: #180a14; --op-bg2: #2a0f26; --op-gold: #f3cfa6;
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(900px 420px at 88% 0%, rgba(var(--op-rgb), .26), transparent 62%), radial-gradient(700px 380px at 0% 110%, rgba(123, 44, 255, .2), transparent 62%), linear-gradient(180deg, var(--op-bg2), var(--op-bg));
}
.op[hidden] { display: none; }
.op-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr); align-items: center; gap: clamp(24px, 3vw, 44px);
    max-width: 1360px; margin: 0 auto; padding: 24px clamp(20px, 3.4vw, 48px) 14px; box-sizing: border-box; overflow: hidden; }
.op-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.op-copy > * { animation: op-rise .8s cubic-bezier(.22,.61,.36,1) both; }
.op-copy > *:nth-child(2) { animation-delay: .06s; } .op-copy > *:nth-child(3) { animation-delay: .12s; } .op-copy > *:nth-child(4) { animation-delay: .18s; }
.op-copy > *:nth-child(5) { animation-delay: .24s; } .op-copy > *:nth-child(6) { animation-delay: .3s; } .op-copy > *:nth-child(7) { animation-delay: .36s; } .op-copy > *:nth-child(8) { animation-delay: .42s; }
@keyframes op-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.op-eyebrow { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--op-gold); }
.op-title { margin: 12px 0 8px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.04; letter-spacing: -.01em; color: #fff;
    text-shadow: 0 0 26px rgba(var(--op-rgb), .5); text-wrap: balance; }
.op-line { margin: 0 0 10px; max-width: 30em; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.op-big { display: block; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(34px, 4.4vw, 58px); line-height: 1; letter-spacing: .01em; margin: 0;
    background: linear-gradient(100deg, #fff 0%, var(--op-soft) 35%, var(--op-a) 55%, var(--op-soft) 75%, #fff 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: op-shine 3.2s ease-in-out 1;
    filter: drop-shadow(0 0 18px rgba(var(--op-rgb), .45)); }
@keyframes op-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.op-sub { margin: 6px 0 0; font-size: 13.5px; letter-spacing: .06em; color: var(--op-soft); }
.op-tiers { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.op-tiers li { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 0 0 rgba(var(--op-rgb), 0), inset 0 1px 0 rgba(255,255,255,.12); animation: op-glow 5s ease-in-out 2; }
.op-tiers li:nth-child(2) { animation-delay: -2.5s; }
.op-tiers small { font-size: 11.5px; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.op-tiers b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 22px; color: #fff; }
@keyframes op-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--op-rgb), 0), inset 0 1px 0 rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
    50% { box-shadow: 0 0 26px 0 rgba(var(--op-rgb), .32), inset 0 1px 0 rgba(255,255,255,.18); border-color: rgba(var(--op-rgb), .6); } }
.op-incl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: rgba(255,255,255,.78); }
.op-incl span { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }

.op-time { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--op-soft); }
.op-time i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--op-a); }
.op-time i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(var(--op-rgb), .55); animation: op-ping 2.4s ease-out infinite; will-change: transform, opacity; }
.op-time.hot { color: #ffd2a8; } .op-time.hot i { background: #ffb067; }
@keyframes op-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.op-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 28px; border-radius: 99px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .04em;
    background: linear-gradient(135deg, var(--op-a), var(--op-b)); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 12px 30px rgba(var(--op-rgb), .4), inset 0 1px 0 rgba(255,255,255,.4); transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s; }
.op-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(var(--op-rgb), .5), inset 0 1px 0 rgba(255,255,255,.4); }
.op-cta span { transition: transform .35s; } .op-cta:hover span { transform: translateX(4px); }
.op-foot { margin: 10px 0 0; font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.5); }

/* photos: three frames on laptop, one big frame on phone */
.op-photos { position: relative; height: clamp(280px, 30vw, 400px); min-width: 0; animation: op-fade .9s ease both; }
@keyframes op-fade { from { opacity: 0; } to { opacity: 1; } }
.op-slot { position: absolute; overflow: hidden; border-radius: 26px; background: #120812; border: 1.5px solid rgba(var(--op-rgb), .55);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 34px rgba(var(--op-rgb), .35), 0 24px 50px rgba(0,0,0,.45); }
.op-slot.s0 { left: 0; top: 7%; width: 33%; height: 90%; animation: op-float 9s ease-in-out infinite; }
.op-slot.s1 { left: 33.5%; top: 16%; width: 33%; height: 80%; animation: op-float 11s ease-in-out -3s infinite; }
.op-slot.s2 { left: 67%; top: 0; width: 33%; height: 86%; animation: op-float 10s ease-in-out -6s infinite; }
.op-photos.n1 .op-slot.s0 { width: 78%; left: 11%; } .op-photos.n2 .op-slot.s0 { width: 52%; } .op-photos.n2 .op-slot.s1 { left: 56%; width: 44%; top: 8%; height: 84%; }
@keyframes op-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.op-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.3s ease; }
.op-layer.on { opacity: 1; }
.op-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 3; padding: 10px 22px; border-radius: 99px; white-space: nowrap; font-weight: 800; font-size: 13px; letter-spacing: .08em; color: #fff;
    background: linear-gradient(135deg, var(--op-a), var(--op-b)); box-shadow: 0 10px 28px rgba(var(--op-rgb), .5), inset 0 1px 0 rgba(255,255,255,.4); }

/* several offers: names to tap + a thin progress line */
.op-tabs { position: relative; z-index: 2; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 8px clamp(20px, 3.4vw, 48px) 30px; }
.op-tab { position: relative; overflow: hidden; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; max-width: 100%; padding: 10px 18px 12px; border-radius: 16px; font: inherit; cursor: pointer; text-align: left; color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); transition: background .4s, border-color .4s, color .4s, transform .4s; }
.op-tab b { font-size: 14px; font-weight: 700; color: #fff; } .op-tab small { font-size: 11.5px; letter-spacing: .06em; color: var(--op-soft); }
.op-tab:hover { transform: translateY(-2px); }
.op-tab.on { background: linear-gradient(160deg, rgba(var(--op-rgb), .24), rgba(var(--op-rgb), .08)); border-color: rgba(var(--op-rgb), .7); box-shadow: 0 0 24px rgba(var(--op-rgb), .25); }
.op-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--op-a), var(--op-soft)); }
.op-tab.on i { animation: op-bar var(--op-ms, 9000ms) linear forwards; }
.op.paused .op-tab.on i { animation-play-state: paused; }
@keyframes op-bar { to { width: 100%; } }
.op-tab:focus-visible, .op-cta:focus-visible { outline: 3px solid var(--op-soft); outline-offset: 3px; }

@media (max-width: 860px) {
    .op-in { grid-template-columns: minmax(0, 1fr); gap: 22px; height: auto; overflow: visible; padding-top: 26px; }
    .op-photos { order: -1; height: 300px; }
    .op-slot.s0 { width: 100% !important; left: 0 !important; top: 0; height: 100%; }
    .op-slot.s1, .op-slot.s2 { display: none; }
    .op-badge { bottom: 14px; }
    .op-cta { width: 100%; justify-content: center; }
    .op-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 26px; }
    .op-tabs::-webkit-scrollbar { display: none; }
    .op-tab { flex: 0 0 auto; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .op *, .op *::before { animation: none !important; transition: none !important; } .op-copy > * { opacity: 1 !important; } }

/* website themes */
html[data-nbs-theme="B"] .op { --op-a: #e9b9a3; --op-b: #c75a7b; --op-soft: #f6dccd; --op-rgb: 233, 185, 163; --op-bg: #2a1220; --op-bg2: #3d1b2f; --op-gold: #f0cfa8; }
html[data-nbs-theme="C"] .op { --op-a: #6db3ff; --op-b: #2f7bff; --op-soft: #cfe3ff; --op-rgb: 70, 140, 255; --op-bg: #050a1a; --op-bg2: #0c1a3c; --op-gold: #e8d3a2; }
html[data-nbs-theme="D"] .op { --op-a: #b39bff; --op-b: #7a5ad6; --op-soft: #e4dbff; --op-rgb: 140, 105, 230; --op-bg: #1a1036; --op-bg2: #2c1a58; --op-gold: #e6c7b0; }
html.op-active #home { display: none !important; }
@media (max-width: 860px) {
    .op-photos { height: 250px; }
    .op-foot { display: none; }
    .op-big { font-size: clamp(36px, 11vw, 48px); }
    .op-tiers { gap: 8px; margin-top: 12px; }
    .op-tiers li { padding: 8px 14px; } .op-tiers b { font-size: 18px; }
    .op-incl { margin-top: 12px; } .op-time { margin-top: 12px; } .op-cta { margin-top: 16px; padding: 15px 24px; }
    .op-line { margin-bottom: 12px; font-size: 15px; }
    .op-tabs { scroll-padding-left: clamp(20px, 3.4vw, 48px); }
}

/* light website themes must not turn the offer text dark: this band is always dark */
html[data-nbs-theme] .op .op-title, html[data-nbs-theme] .op .op-tiers b, html[data-nbs-theme] .op .op-tab b { color: #fff !important; }
html[data-nbs-theme] .op .op-line { color: rgba(255, 255, 255, .82) !important; }
html[data-nbs-theme] .op .op-sub, html[data-nbs-theme] .op .op-time, html[data-nbs-theme] .op .op-tab small { color: var(--op-soft) !important; }
html[data-nbs-theme] .op .op-time.hot { color: #ffd2a8 !important; }
html[data-nbs-theme] .op .op-eyebrow { color: var(--op-gold) !important; }
html[data-nbs-theme] .op .op-tiers small, html[data-nbs-theme] .op .op-incl { color: rgba(255, 255, 255, .78) !important; }
html[data-nbs-theme] .op .op-foot { color: rgba(255, 255, 255, .5) !important; }
html[data-nbs-theme] .op .op-cta, html[data-nbs-theme] .op .op-badge { color: #fff !important; }
html[data-nbs-theme] .op .op-tab { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
html[data-nbs-theme] .op .op-tab.on { background: linear-gradient(160deg, rgba(var(--op-rgb), .24), rgba(var(--op-rgb), .08)); border-color: rgba(var(--op-rgb), .7); }
html[data-nbs-theme] .op .op-tiers li { background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.18); }
html[data-nbs-theme] .op .op-incl span { color: rgba(255, 255, 255, .85); }

/* scope line, see-all, sheet, free item */
.op-scope { margin: 16px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--op-gold); }
.op-scope + .op-incl { margin-top: 8px; }
.op-all { appearance: none; font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 12px; border-radius: 99px; background: transparent; color: var(--op-gold); border: 1px solid var(--op-gold); display: inline-flex; gap: 6px; align-items: center; transition: background .2s, color .2s; }
.op-all:hover { background: var(--op-gold); color: #1a1220; }
.op-all b { font-weight: 400; font-size: 15px; line-height: 1; }
.op-was { font-size: .5em; opacity: .7; vertical-align: .35em; text-decoration-thickness: 2px; margin-right: 6px; font-style: normal; }
.op-big em { font-style: italic; }
.op-sheet { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.op-sheet.on { opacity: 1; }
.op-sheet-bg { position: absolute; inset: 0; background: rgba(8, 4, 14, .62); backdrop-filter: blur(4px); }
.op-sheet-card { position: relative; width: min(520px, 100%); max-height: 78vh; overflow: auto; background: #1b1224; color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px 26px 0 0; padding: 12px 24px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 60px rgba(0, 0, 0, .45); }
.op-sheet.on .op-sheet-card { transform: none; }
.op-sheet-grab { width: 42px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); margin: 0 auto 16px; }
.op-sheet-card h3 { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 26px; margin: 6px 0 14px; }
.op-sheet-card .op-eyebrow { color: var(--op-gold, #e8c98a); }
.op-sheet-card ul { list-style: none; margin: 0; padding: 0; }
.op-sheet-card li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 15px; }
.op-sheet-card li i { width: 8px; height: 8px; border-radius: 50%; background: var(--op-gold, #e8c98a); flex: none; }
.op-sheet-x { appearance: none; width: 100%; margin-top: 16px; padding: 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff; font: inherit; cursor: pointer; }
html.op-lock { overflow: hidden; }

.op .op-big .op-was { -webkit-text-fill-color: rgba(255,255,255,.62); color: rgba(255,255,255,.62); text-decoration: line-through; text-decoration-color: var(--op-gold, #e8c98a); }

/* SAME SIZE AS THE NORMAL HERO (565px), whatever offers are running */
@media (min-width: 861px) {
    .op { height: 565px; display: flex; flex-direction: column; }
    .op-in { flex: 1 1 auto; height: auto; min-height: 0; width: 100%; }
    .op-tabs { flex: none; flex-wrap: nowrap; overflow-x: auto; justify-content: center; scrollbar-width: none; padding-bottom: 22px; width: 100%; box-sizing: border-box; }
    .op-tabs::-webkit-scrollbar { display: none; }
}

.op-code { display: inline-flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 9px 16px; border-radius: 14px; border: 1.5px dashed currentColor; }
.op-code small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.op-code b { font-size: 20px; font-weight: 800; letter-spacing: .16em; }

html .op .op-code { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
html .op .op-code small { color: var(--op-soft) !important; opacity: 1; }
html .op .op-code b { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; filter: none; text-shadow: none; animation: none; }

/* no hero flash: if offers were showing on the last visit, keep the hero hidden and hold the offer space until the list arrives */
html.op-wait #home { display: none !important; }
html.op-wait #offersPremium { display: block !important; min-height: clamp(420px, 46vw, 560px); }

/* tags: clearly readable and softly glowing on every theme */
html .op .op-incl span, html[data-nbs-theme] .op .op-incl span { color: #fff !important; font-weight: 600; letter-spacing: .03em; background: rgba(var(--op-rgb), .2); border: 1px solid rgba(var(--op-rgb), .75);
    text-shadow: 0 0 10px rgba(var(--op-rgb), .95), 0 1px 2px rgba(0,0,0,.35); box-shadow: 0 0 14px rgba(var(--op-rgb), .45), inset 0 0 10px rgba(var(--op-rgb), .22); animation: op-chip 3.6s ease-in-out infinite; }
html .op .op-incl span:nth-child(2) { animation-delay: -.7s; } html .op .op-incl span:nth-child(3) { animation-delay: -1.4s; } html .op .op-incl span:nth-child(4) { animation-delay: -2.1s; } html .op .op-incl span:nth-child(5) { animation-delay: -2.8s; }
@keyframes op-chip { 0%, 100% { box-shadow: 0 0 10px rgba(var(--op-rgb), .35), inset 0 0 8px rgba(var(--op-rgb), .18); } 50% { box-shadow: 0 0 22px rgba(var(--op-rgb), .7), inset 0 0 12px rgba(var(--op-rgb), .3); } }

/* a thin light that travels around every photo frame and the Book button */
@property --op-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes op-spin { to { --op-ang: 360deg; } }
.op-slot::after, .op-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 4;
    background: conic-gradient(from var(--op-ang), transparent 0deg, transparent 230deg, rgba(var(--op-rgb), .45) 275deg, var(--op-a) 322deg, #fff 348deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: op-spin 5.5s linear infinite; }
.op-cta { position: relative; }
.op-cta::after { animation-duration: 4.5s; }
.op-slot.s1::after { animation-delay: -1.8s; } .op-slot.s2::after { animation-delay: -3.6s; }
@media (prefers-reduced-motion: reduce) { .op-slot::after, .op-cta::after, html .op .op-incl span { animation: none; } }

/* optional background pictures behind the whole offer */
.op-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.op.has-bg .op-bg { opacity: 1; }
.op-bg-l { position: absolute; inset: -3%; background-size: cover; background-position: center; opacity: 0; filter: blur(2.5px) saturate(1.1); transform: scale(1.12); transition: opacity 2.4s ease; }
.op-bg-l.on { opacity: 1; animation: op-kb 14s ease-out forwards; }
@keyframes op-kb { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.op-bg::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--op-bg) 94%, transparent) 0%, color-mix(in srgb, var(--op-bg) 78%, transparent) 45%, color-mix(in srgb, var(--op-bg) 56%, transparent) 100%),
                linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--op-bg) 70%, transparent) 100%); }
.op.has-bg .op-copy { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
@media (max-width: 860px) {
    .op-bg::after { background: linear-gradient(180deg, color-mix(in srgb, var(--op-bg) 66%, transparent) 0%, color-mix(in srgb, var(--op-bg) 82%, transparent) 55%, color-mix(in srgb, var(--op-bg) 92%, transparent) 100%); }
}
@media (prefers-reduced-motion: reduce) { .op-bg-l.on { animation: none; transform: scale(1.04); } }

/* a video slide has no progress line: the video decides how long it stays */
.op-tab.vt i { display: none; }
