/* The offer pop-up card — three designs the owner chooses from (lib/offer.js) */
.ofc { position: relative; width: min(100%, 360px); color: #eef2f8; text-align: center; font-family: inherit; }
.ofc * { box-sizing: border-box; }
.ofc h2, .ofc p { margin: 0; }
.ofc__x { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(190,210,240,.3); background: rgba(4,7,13,.6); color: #cfd6e2; display: grid; place-items: center; font-size: 12px; cursor: pointer; z-index: 3; }
.ofc__btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #2b88ff, #0b4fc4); box-shadow: 0 10px 30px -10px rgba(30,123,255,.7); }
.ofc__text { color: #b9c3d1; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.ofc__tag { font-size: 40px; line-height: 1; }
.ofc__pct { display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.ofc__pct b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.ofc__pct span { font-size: 15px; font-weight: 600; color: #cfe3ff; }

/* 1 — classic: dark glass, blue light from the top */
.ofc--classic { display: grid; gap: 10px; justify-items: center; padding: 32px 22px 22px; border-radius: 26px; border: 1px solid rgba(95,180,255,.45);
  background: radial-gradient(120% 70% at 50% 0%, rgba(30,123,255,.35), transparent 70%), linear-gradient(180deg, #101c34, #04080f); box-shadow: 0 0 60px -10px rgba(30,123,255,.55), 0 40px 80px -30px #000; }
.ofc--classic .ofc__title { font-size: 23px; line-height: 1.35; }
.ofc--classic .ofc__pct b { color: #5fb4ff; }
.ofc--classic .ofc__btn { margin-top: 6px; }

/* 2 — showroom: the owner's car comes out of the card under a blue spotlight */
.ofc--showroom { display: grid; gap: 8px; margin-top: 74px; padding: 92px 22px 20px; border-radius: 26px; border: 1px solid rgba(160,190,230,.18);
  background: radial-gradient(70% 45% at 50% 0%, rgba(30,123,255,.45), transparent 70%), linear-gradient(180deg, #0c1526, #04070d); box-shadow: 0 40px 80px -30px #000; }
.ofc--showroom .ofc__car { position: absolute; top: -72px; left: 50%; transform: translateX(-50%); width: 232px; max-width: 72%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.7)); pointer-events: none; }
.ofc--showroom .ofc__glow { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); width: 230px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95,180,255,.55), transparent); filter: blur(4px); }
.ofc--showroom .ofc__kicker { font-size: 11px; letter-spacing: .32em; color: #5fb4ff; font-weight: 700; }
.ofc--showroom .ofc__title { font-size: 23px; line-height: 1.35; background: linear-gradient(180deg, #fff 0%, #dfe4ec 40%, #8f99a8 75%, #e9edf3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ofc--showroom .ofc__pct b { color: transparent; -webkit-text-stroke: 1.5px #5fb4ff; font-size: 48px; }
.ofc--showroom .ofc__text { color: #9aa4b2; }
.ofc--showroom .ofc__btn { margin-top: 6px; }
.ofc__foot { font-size: 10.5px; letter-spacing: .25em; color: #5b6576; margin-top: 2px; }

/* 3 — photo: the opening image on top, a «عرض محدود» ribbon */
.ofc--photo { border-radius: 26px; overflow: hidden; background: #0a0f18; box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgba(255,255,255,.08); }
.ofc__pic { position: relative; height: 190px; background: #000 center 38% / 118% no-repeat; }
.ofc__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,24,0) 35%, #0a0f18 96%); }
.ofc__rib { position: absolute; top: 18px; right: -34px; transform: rotate(38deg); background: linear-gradient(135deg, #ff5d6c, #e0313f); color: #fff; font-size: 11.5px; font-weight: 800; padding: 6px 42px; z-index: 2; box-shadow: 0 6px 14px -6px #000; }
.ofc__body { position: relative; z-index: 1; margin-top: -54px; padding: 0 20px 20px; display: grid; gap: 10px; justify-items: center; }
.ofc--photo .ofc__pct { background: rgba(10,15,24,.75); border: 1px solid rgba(95,180,255,.5); border-radius: 999px; padding: 6px 18px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ofc--photo .ofc__pct b { font-size: 26px; color: #5fb4ff; }
.ofc--photo .ofc__pct span { font-size: 13px; }
.ofc--photo .ofc__title { font-size: 21px; line-height: 1.35; }
.ofc--photo .ofc__btn { width: 100%; }

/* the pop-up opens with a soft lift */
.offer .ofc { transform: translateY(24px) scale(.96); transition: transform .45s cubic-bezier(.22,.8,.2,1); }
.offer.is-on .ofc { transform: none; }
