/* =========================================================
   Sheikh Zaid Al-Masri — black & gold theme
   ========================================================= */
:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: rgba(255, 255, 255, .08);
  --line-gold: rgba(214, 178, 94, .28);
  --ink: #f3ede2;
  --ink-2: #c9c2b5;
  --muted: #8f897e;
  --gold: #d6b25e;
  --gold-2: #f0d99b;
  --gold-3: #a8843a;
  --accent: var(--gold);
  --danger: #f87171;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --callig: "Aref Ruqaa", "Amiri", serif;
  --res: #2e2e33;
  color-scheme: dark;
}
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, -apple-system, Roboto, Arial, sans-serif;
  --display: "Amiri", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); }
body.has-basket { padding-bottom: 88px; }
body.dialog-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: .005em; }
html[lang="ar"] h2 { font-weight: 700; line-height: 1.45; }
h3 { font-size: 1.05rem; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.section { padding: 64px 16px; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.ltr, [dir="rtl"] .done .code { direction: ltr; unicode-bidi: isolate; }
::selection { background: rgba(214, 178, 94, .35); }

/* Eyebrow: small gold label with a line */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .8; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }

.ornament { display: block; width: 120px; height: 12px; margin: 18px 0 26px; fill: none; stroke: var(--gold); stroke-width: 1; }
.ornament circle { fill: var(--gold); stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 24px; border: 0; border-radius: 999px;
  background: var(--gold); color: #17130a; font: 600 1rem var(--font);
  text-decoration: none; cursor: pointer; transition: transform .08s, filter .15s, box-shadow .2s, background .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,.25); border-top-color: #17130a; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #17130a; box-shadow: 0 10px 30px -10px rgba(214, 178, 94, .55), inset 0 1px 0 rgba(255,255,255,.35); padding: 12px 30px; }
.btn-gold:hover { box-shadow: 0 14px 36px -10px rgba(214, 178, 94, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-gold); }
.btn-outline:hover, .btn-ghost:hover { background: rgba(214, 178, 94, .08); filter: none; }
.btn-wa { background: #25d366; color: #052e16; }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { border: 0; background: rgba(255,255,255,.06); width: 36px; height: 36px; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Top bar & brand ---------- */
.preview-bar { background: #3b2f12; color: var(--gold-2); text-align: center; padding: 8px 16px; font-size: .9rem; }
.topbar { position: absolute; inset-inline: 0; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.list-page .topbar { position: static; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mark {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  font: 700 1.35rem/1 var(--callig); color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(240, 217, 155, .18), transparent 60%), #0e0e10;
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(214, 178, 94, .08);
  padding-bottom: 4px;
}
.brand-name { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: .02em; }
html[lang="ar"] .brand-name { font-family: var(--callig); font-size: 1.35rem; font-weight: 700; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.lang-switch a { color: var(--ink-2); text-decoration: none; font-size: .85rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; line-height: 1.3; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { background: var(--gold); color: #17130a; }
.lang-switch a[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.lang-switch a[lang="en"] { font-family: "Inter", "Segoe UI", sans-serif; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 128px 0 72px; min-height: min(92vh, 860px); display: flex; align-items: center;
  background: radial-gradient(1000px 520px at 50% -8%, rgba(214, 178, 94, .20), transparent 62%), radial-gradient(700px 400px at 85% 110%, rgba(214, 178, 94, .07), transparent 60%), var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M36 6l9 21 21 9-21 9-9 21-9-21-21-9 21-9z'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 75%); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero.has-photo .hero-inner { grid-template-columns: 1.25fr .9fr; }
.hero-copy { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.04; letter-spacing: -.01em; margin: 6px 0 0; max-width: 16ch;
  background: linear-gradient(180deg, #fff 10%, #f3e3bd 60%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .hero h1 { font-weight: 700; line-height: 1.35; font-size: clamp(2.4rem, 6.6vw, 4.4rem); padding-bottom: .1em; }
.hero h1 bdi { -webkit-text-fill-color: transparent; }
.hero .ornament { margin: 20px 0 26px; }
.hero-facts { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.hero-facts li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.hero-facts span { display: flex; flex-direction: column; }
.hero-facts small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.hero-facts svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.closed-badge { display: inline-block; margin: 0; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-gold); color: var(--gold-2); font-weight: 600; }
.hero-photo { margin: 0; position: relative; border-radius: 220px 220px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line-gold); animation: rise 1.1s .15s cubic-bezier(.2,.7,.2,1) both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) contrast(1.03); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,.6)); }

/* Emblem (shown instead of a photo) */
.hero.has-emblem .hero-inner { grid-template-columns: 1.25fr .9fr; }
.hero-emblem { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; animation: rise 1.1s .15s cubic-bezier(.2,.7,.2,1) both; }
.hero-emblem::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(214,178,94,.16), transparent 70%); filter: blur(10px); }
.emblem-rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1; opacity: .55; animation: turn 140s linear infinite; }
.emblem-rings rect { opacity: .55; }
.emblem-dots circle { fill: var(--gold); stroke: none; }
@keyframes turn { to { transform: rotate(360deg); } }
.emblem-name { position: relative; font: 700 clamp(2.4rem, 4.6vw, 3.6rem)/1.5 var(--callig); text-align: center; max-width: 7em; padding-bottom: .2em;
  background: linear-gradient(180deg, #fff3d6, var(--gold) 70%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(214,178,94,.15); }
.eyebrow-spacer { visibility: hidden; }

/* Countdown */
.countdown { margin-top: 40px; }
.countdown-label { margin: 0 0 10px; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .countdown-label { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.countdown-grid { display: flex; gap: 10px; }
.cd { min-width: 74px; padding: 12px 10px 10px; text-align: center; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); box-shadow: inset 0 0 0 1px var(--line); }
.cd b { display: block; font: 600 1.9rem/1 var(--display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
html[lang="ar"] .cd b { font-family: var(--font); font-size: 1.6rem; }
.cd span { display: block; margin-top: 6px; font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .cd span { letter-spacing: 0; font-size: .8rem; }

/* ---------- About & speaker ---------- */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; } }
.prose p { margin: 0 0 1em; color: var(--ink-2); font-size: 1.05rem; }
.speaker { display: flex; gap: 18px; align-items: center; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 0 0 1px var(--line-gold); margin-bottom: 12px; }
.speaker img, .speaker-initials { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.speaker-initials { display: grid; place-items: center; background: #0e0e10; color: var(--gold); font: 700 1.4rem var(--display); box-shadow: inset 0 0 0 1px var(--gold); }
.speaker-initials.mark { font: 700 1.9rem/1 var(--callig); padding-bottom: 6px; }
.speaker > div:last-child { flex: 1; min-width: 0; }
.speaker h3 { margin: 0 0 2px; font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--gold-2); }
html[lang="ar"] .speaker h3 { font-family: var(--callig); font-weight: 700; font-size: 1.6rem; line-height: 1.5; }
.speaker-role { margin: 0 0 6px; color: var(--gold); font-weight: 500; font-size: .92rem; }
.speaker-bio { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Seats section ---------- */
.seats-section { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; scroll-margin-top: 0; }
.seats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.seats-head p { margin: 0; }
.seats-head h2 { margin-bottom: 4px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: #86efac; background: rgba(34,197,94,.08); box-shadow: inset 0 0 0 1px rgba(34,197,94,.25); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.live.off { color: var(--muted); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.live.off .dot { background: #52525b; animation: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }
.legend { list-style: none; padding: 0; margin: 22px 0 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend b { color: var(--ink); font-weight: 600; }
.sw { display: inline-block; width: 15px; height: 15px; border-radius: 4px; flex: none; }
.sw-sel { background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.sw-held { background: transparent; box-shadow: inset 0 0 0 1.5px #6b6b73; background-image: repeating-linear-gradient(45deg, transparent 0 3px, #3a3a40 3px 4px); }
.sw-res { background: var(--res); }
.my-bookings { margin-top: 16px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-2); }
.chip { border: 0; background: rgba(214, 178, 94, .1); color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--line-gold); font: 600 .85rem var(--font); padding: 6px 12px; border-radius: 999px; cursor: pointer; }

.map-wrap { padding: 0 8px; }
@media (min-width: 700px) { .map-wrap { padding: 0 16px; } }
.seatmap {
  height: clamp(320px, calc((100vw - 32px) / var(--map-ratio) + 40px), 72vh);
  border-radius: var(--radius); background: radial-gradient(800px 300px at 50% 0%, rgba(214,178,94,.06), transparent 70%), #0d0d0f; box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 699px) { .seatmap { height: max(260px, calc((100vw - 16px) / var(--map-ratio) + 50px)); } }
.map-help { margin: 10px 4px 0; font-size: .82rem; text-align: center; }
.touch .only-mouse, .mouse .only-touch { display: none; }

/* Seat map in the dark theme (the admin keeps the light defaults from seatmap.css) */
.seatmap .seat text { fill: var(--zt, #fff); }
.seatmap .seat.av:hover rect { stroke: #fff; }
.seatmap .seat.sel rect { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.seatmap .seat.sel text { fill: #0a0a0b; }
.seatmap .seat.held rect { fill: transparent; stroke: #6b6b73; }
.seatmap .seat.held text { fill: #6b6b73; }
.seatmap .seat.res rect { fill: var(--res); }
.seatmap .seat.res text { fill: #5b5b62; }
.seatmap .seat.blk rect { fill: #17171a; stroke: #222226; }
.seatmap .sm-shape path, .seatmap .sm-shape rect { fill: #1a1712; stroke: var(--line-gold); stroke-width: 1; }
.seatmap .sm-shape text { fill: var(--gold); }
.seatmap .sm-labels text { fill: #6b6b73; }
.seatmap .sm-ctrl button { background: #19191c; color: var(--ink); border-color: var(--line); box-shadow: none; }
.seatmap .sm-ctrl button:hover { background: #222226; }
.seatmap .sm-tip { background: #f3ede2; color: #0a0a0b; }

.picked { margin-top: 20px; }
.picked h3 { font-size: 1rem; color: var(--ink-2); }
.picked ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picked li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; font-size: .9rem; font-weight: 600; }
[dir="rtl"] .picked li { padding: 6px 12px 6px 6px; }
.picked li .muted { font-weight: 400; font-size: .82rem; }
.chip-x { border: 0; background: transparent; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.chip-x:hover { background: rgba(255,255,255,.08); color: var(--ink); }

/* ---------- Original seating chart ---------- */
.plan-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: -2px 0 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #2a2a2f; transition: background .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; inset-inline-start: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--gold); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
[dir="rtl"] .switch input:checked + .switch-ui::after { transform: translateX(-16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--gold); outline-offset: 2px; }
.link-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 6px 2px; color: var(--gold); font: 600 .92rem var(--font); cursor: pointer; }
.link-btn:hover { color: var(--gold-2); }
.link-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.seatmap.plan-on { background: #fff; }
.seatmap.plan-on .sm-bg image { opacity: 1; }
.seatmap.plan-on .seat text { opacity: 0; }
.seatmap.plan-on .seat.av rect { fill-opacity: .3; stroke: var(--z); stroke-width: 1.2; }
.seatmap.plan-on .seat.av:hover rect { fill-opacity: .55; }
.seatmap.plan-on .seat.sel rect { fill: #0a0a0b; fill-opacity: .75; }
.seatmap.plan-on .seat.res rect { fill: #52525b; fill-opacity: .75; }
.seatmap.plan-on .seat.held rect { fill: #a1a1aa; fill-opacity: .5; }
.seatmap.plan-on .sm-labels, .seatmap.plan-on .sm-shapes { opacity: 0; }
.plan-scroll { padding: 12px; background: #0d0d0f; overscroll-behavior: contain; }
.plan-scroll img { width: 100%; height: auto; cursor: zoom-in; border-radius: 8px; background: #fff; }
.plan-scroll.zoomed { overflow: auto; }
.plan-scroll.zoomed img { width: 260%; max-width: none; cursor: zoom-out; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-foot p { margin: 0; flex: 1 1 260px; }

/* ---------- Payment & location ---------- */
.pay-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 8px 0 14px; }
.pay-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.pay-card p { margin: 12px 0 0; color: var(--ink-2); font-size: .97rem; }
.pay-logo { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: .9rem; font-family: "Inter", "Segoe UI", sans-serif; }
.pay-cash { background: rgba(16,185,129,.12); color: #6ee7b7; }
.pay-whish { background: #e11d48; color: #fff; }
.pay-omt { background: #facc15; color: #1c1917; }
.location-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.location p { color: var(--ink-2); margin: 0; }
.location p b { color: var(--ink); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-foot { padding: 56px 16px 48px; text-align: center; border-top: 1px solid var(--line); background: var(--bg-2); }
.site-foot .ornament { margin: 0 auto 22px; }
.site-foot .brand { justify-content: center; }
.site-foot p { margin: 14px 0 0; }
.foot-wa { color: var(--gold); text-decoration: none; font-weight: 600; }
.foot-wa:hover { text-decoration: underline; }

/* ---------- Basket ---------- */
.basket {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(14, 14, 16, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-gold); box-shadow: 0 -10px 40px rgba(0,0,0,.5);
  padding-bottom: env(safe-area-inset-bottom); animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.basket-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.basket-info { font-size: 1rem; }
.basket-info b { color: var(--gold-2); }
.basket-timer { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.basket-timer.urgent { color: var(--danger); font-weight: 600; }
.basket .btn { padding: 10px 30px; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); }

/* ---------- Dialogs ---------- */
.dialog {
  border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px var(--line-gold); color: var(--ink); background: var(--surface);
}
.dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.dialog[open] { display: flex; flex-direction: column; animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog-body { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 48px); }
.dialog-body[hidden] { display: none; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 1.45rem; }
.dialog-scroll { overflow-y: auto; padding: 16px 20px; -webkit-overflow-scrolling: touch; }
.dialog-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.dialog-foot p { margin: 8px 0 0; }
@media (max-width: 599px) {
  .dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .dialog-body { max-height: 100%; height: 100%; }
  .dialog-scroll { flex: 1; }
}
.dialog.dialog-wide { width: min(1100px, calc(100vw - 32px)); }
@media (max-width: 599px) { .dialog.dialog-wide { width: 100vw; } }
.summary { margin-bottom: 8px; }
.sum-list { list-style: none; padding: 0; margin: 0; max-height: 180px; overflow: auto; }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.sum-list li > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.sum-total { display: flex; justify-content: space-between; padding: 12px 0 4px; font-weight: 700; font-size: 1.1rem; }
.sum-total span:last-child { color: var(--gold-2); }
.hold-note { font-size: .82rem; color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.fields { display: grid; gap: 14px; }
.fields label, .methods legend { font-weight: 500; font-size: .9rem; display: block; color: var(--ink-2); }
.fields input {
  display: block; width: 100%; margin-top: 6px; min-height: 50px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid #2c2c31; font: 16px var(--font); color: var(--ink); background: #0f0f11; transition: border-color .15s, box-shadow .15s;
}
.fields input::placeholder { color: #5f5a52; }
.fields input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 178, 94, .15); }
.fields input.invalid { border-color: var(--danger); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.methods { border: 0; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.methods legend { margin-bottom: 8px; padding: 0; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method-card { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 12px; background: #0f0f11; box-shadow: inset 0 0 0 1px #2c2c31; transition: box-shadow .15s, background .15s; }
.method input:checked + .method-card { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px rgba(214, 178, 94, .12); background: rgba(214, 178, 94, .06); }
.method input:focus-visible + .method-card { outline: 2px solid var(--gold); outline-offset: 2px; }
.method-info { margin-top: 12px; background: rgba(214, 178, 94, .07); box-shadow: inset 0 0 0 1px var(--line-gold); border-radius: 12px; padding: 12px 14px; font-size: .93rem; color: var(--ink-2); }
.method-info b { color: var(--gold-2); }
.form-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(248,113,113,.1); color: #fca5a5; font-size: .92rem; }
.done .code { font: 700 2.3rem/1.2 var(--display); letter-spacing: .2em; text-align: center; color: var(--gold-2); background: #0f0f11; box-shadow: inset 0 0 0 1px var(--line-gold); border-radius: 14px; padding: 12px; margin: 6px 0 10px; }
.done p { margin: 0 0 6px; }
.done-check { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; background: rgba(34,197,94,.12); display: grid; place-items: center; }
.done-check svg { width: 34px; height: 34px; fill: none; stroke: #4ade80; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done .sum-list { margin-top: 14px; }
.done-actions { display: grid; gap: 8px; }
.wa-step { background: rgba(37,211,102,.07); box-shadow: inset 0 0 0 1px rgba(37,211,102,.35); border-radius: 14px; padding: 14px 16px 16px; margin-bottom: 18px; }
.wa-step-title { font-weight: 700; font-size: 1.02rem; margin: 0 0 4px; color: #86efac; }
.wa-step p.small { margin: 0 0 12px; color: var(--ink-2); }
.wa-step.sent { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }
.wa-step.sent .wa-step-title { color: var(--ink); }
.wa-step.sent .btn-wa { background: transparent; color: #86efac; box-shadow: inset 0 0 0 1px rgba(37,211,102,.4); }
.btn-wa svg { width: 22px; height: 22px; }
.status-pill { display: inline-block; background: rgba(214, 178, 94, .14); color: var(--gold-2); font-weight: 600; padding: 3px 12px; border-radius: 999px; font-size: .8rem; }

/* Alert popup */
.dialog.dialog-alert { width: min(400px, calc(100vw - 32px)); height: fit-content; max-height: calc(100% - 32px); border-radius: 20px; margin: auto; }
.alert-body { padding: 28px 22px 20px; text-align: center; }
.alert-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: rgba(214, 178, 94, .12); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-gold); display: grid; place-items: center; font: 700 1.6rem var(--display); }
.alert-body h2 { font-size: 1.45rem; margin-bottom: 8px; }
.alert-body p { color: var(--ink-2); margin: 0 0 20px; }
.alert-body form { margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 20px); z-index: 50; opacity: 0; pointer-events: none;
  background: var(--ink); color: #0a0a0b; padding: 11px 16px; border-radius: 12px; font-size: .92rem; max-width: calc(100vw - 32px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Event list (several events) ---------- */
.list-page .wrap { padding-top: 40px; padding-bottom: 40px; }
.list-page .topbar-inner { padding-top: 18px; padding-bottom: 18px; }
.list-title { font-family: var(--display); font-size: 2.4rem; }
.banner { background: rgba(214, 178, 94, .1); color: var(--gold-2); padding: 10px 14px; border-radius: 10px; }
.event-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 20px; }
.event-card { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.event-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-gold); }
.event-card-img { height: 150px; background: radial-gradient(400px 160px at 50% 0%, rgba(214,178,94,.25), transparent 70%), #0f0f11 center/cover; }
.event-card-body { padding: 18px; }
.event-card-date { color: var(--gold); font-weight: 600; font-size: .85rem; }
.event-card h2 { font-size: 1.4rem; margin: 6px 0; }

/* ---------- Embed (inside WordPress iframe) ---------- */
.embed .hero { min-height: 0; padding-top: 110px; }
.embed .site-foot { display: none; }

/* ---------- Arabic ---------- */
/* Any letter-spacing breaks the joined Arabic letters */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] .done .code { letter-spacing: .2em !important; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero.has-photo .hero-inner, .hero.has-emblem .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .hero-photo { max-width: 340px; order: -1; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero { padding: 104px 0 56px; min-height: 0; }
  .brand-name { font-size: 1.05rem; }
  html[lang="ar"] .brand-name { font-size: 1.15rem; }
  .mark { width: 38px; height: 38px; font-size: 1.15rem; }
  .hero-facts { flex-direction: column; gap: 14px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .countdown-grid { gap: 8px; }
  .cd { flex: 1; min-width: 0; padding: 10px 4px 8px; }
  .cd b { font-size: 1.5rem; }
  .section { padding: 48px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
