/* X Studio — customer site.
   Type: Alexandria (display) + IBM Plex Sans Arabic (body).
   Signature element: the "light-meter" hour strip in the booking widget. */

:root, [data-theme="dark"] {
  --bg: #0B0E14;          /* blackout */
  --panel: #121826;
  --panel2: #1A2234;
  --line: #26314B;
  --ink: #E9EEF9;
  --muted: #8A97B4;
  --navy: #2B3A8F;
  --gold: #C8952A;
  --gold-hi: #E8B84B;     /* tungsten */
  --free: #1E7A56;
  --busy: #7A2E2E;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}
[data-theme="light"] {
  --bg: #F5F3EE;          /* cyc white */
  --panel: #FFFFFF;
  --panel2: #EFECE4;
  --line: #D9D4C7;
  --ink: #171B26;
  --muted: #5D6579;
  --navy: #1E2761;
  --gold: #A87A1D;
  --gold-hi: #C8952A;
  --free: #1E7A56;
  --busy: #B14A4A;
  --shadow: 0 14px 36px rgba(23,27,38,.12);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:"IBM Plex Sans Arabic", system-ui, sans-serif;
  background:var(--bg); color:var(--ink);
  font-weight:300; line-height:1.7;
}
h1,h2,h3,.widget-head { font-family:"Alexandria", sans-serif; }
:focus-visible { outline:2px solid var(--gold-hi); outline-offset:2px; border-radius:4px; }
@media (prefers-reduced-motion: reduce) { * { animation:none !important; transition:none !important; } }

/* ---------- header ---------- */
.top {
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:20px;
  padding:10px 5vw; background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(14px); border-bottom:1px solid var(--line);
}
.brand { height:42px; }
.brand.small { height:30px; }
[data-theme="dark"] .brand { filter: invert(1) hue-rotate(180deg) saturate(.8) brightness(1.1); }
.topnav { display:none; gap:24px; margin-inline-start:12px; }
.topnav a { color:var(--muted); text-decoration:none; font-size:14px; }
.topnav a:hover { color:var(--ink); }
.topctl { margin-inline-start:auto; display:flex; gap:8px; }
.chip {
  border:1px solid var(--line); background:var(--panel); color:var(--ink);
  padding:7px 14px; border-radius:999px; font-size:13px; cursor:pointer;
  font-family:inherit;
}
.chip.gold { border-color:var(--gold); color:var(--gold-hi); }
.chip:hover { border-color:var(--gold); }
@media (min-width: 860px) { .topnav { display:flex; } }

/* ---------- hero ---------- */
.hero {
  display:grid; gap:36px; padding:56px 5vw 72px;
  grid-template-columns:1fr;
}
@media (min-width: 980px) { .hero { grid-template-columns:1.1fr 1fr; align-items:center; padding-top:80px; } }
.eyebrow { color:var(--gold-hi); font-size:13px; letter-spacing:.06em; margin-bottom:14px; font-weight:600; }
.hero h1 { font-size:clamp(34px, 6vw, 60px); font-weight:900; line-height:1.25; }
.hero .sub { color:var(--muted); margin-top:18px; max-width:46ch; font-size:16px; }

/* ---------- booking widget ---------- */
.widget {
  background:var(--panel); border:1px solid var(--line); border-radius:18px;
  padding:26px; box-shadow:var(--shadow);
}
.widget-head { font-size:20px; font-weight:700; margin-bottom:18px; }
.wlabel { display:block; font-size:12px; color:var(--muted); margin:16px 0 8px; font-weight:600; }
.winput {
  width:100%; background:var(--panel2); border:1px solid var(--line); color:var(--ink);
  border-radius:10px; padding:11px 14px; font-family:inherit; font-size:14px;
}
.hall-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.hall-tab {
  border:1px solid var(--line); background:var(--panel2); color:var(--ink);
  border-radius:10px; padding:9px 16px; cursor:pointer; font-family:inherit; font-size:14px;
}
.hall-tab.on { background:var(--navy); border-color:var(--navy); color:#fff; }

/* Signature: light-meter hour strip */
.meter { display:flex; gap:4px; flex-wrap:wrap; }
.seg {
  flex:1 1 40px; min-width:40px; height:56px; border-radius:8px;
  border:1px solid var(--line); background:var(--panel2);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor:pointer; font-size:11px; color:var(--muted); user-select:none;
  transition:box-shadow .18s, transform .12s;
}
.seg b { font-size:13px; color:var(--ink); font-weight:600; }
.seg.free:hover { border-color:var(--gold); transform:translateY(-1px); }
.seg.busy { background:repeating-linear-gradient(45deg, var(--panel2), var(--panel2) 5px, color-mix(in srgb, var(--busy) 30%, var(--panel2)) 5px, color-mix(in srgb, var(--busy) 30%, var(--panel2)) 8px); cursor:not-allowed; opacity:.55; }
.seg.sel {
  border-color:var(--gold-hi);
  background:linear-gradient(180deg, color-mix(in srgb, var(--gold-hi) 26%, var(--panel2)), var(--panel2));
  box-shadow:0 0 18px color-mix(in srgb, var(--gold-hi) 40%, transparent);
}
.meter-legend { display:flex; gap:18px; margin-top:10px; font-size:11px; color:var(--muted); }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-inline-end:5px; }
.dot.free { background:var(--free); } .dot.busy { background:var(--busy); } .dot.sel { background:var(--gold-hi); }

.summary { margin-top:18px; border-top:1px dashed var(--line); padding-top:16px; display:grid; gap:10px; }
.srow { display:flex; justify-content:space-between; font-size:14px; }
.srow.pkg b { color:var(--gold-hi); }
.cta {
  background:linear-gradient(135deg, var(--navy), #4356c9); color:#fff; border:none;
  padding:13px; border-radius:11px; font-family:"Alexandria",sans-serif; font-weight:700;
  font-size:15px; cursor:pointer; width:100%;
}
.cta:hover { filter:brightness(1.1); }
.whint { color:var(--muted); font-size:12px; margin-top:14px; }

/* ---------- bands ---------- */
.band { padding:64px 5vw; }
.band.alt { background:var(--panel); border-block:1px solid var(--line); }
.band h2 { font-size:clamp(24px,4vw,36px); font-weight:700; margin-bottom:26px; }
.sub.center { text-align:center; color:var(--muted); margin:-14px auto 30px; max-width:60ch; }
.note { color:var(--muted); font-size:12px; margin-top:18px; }
.todo { color:var(--gold-hi); }

.halls-grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.hall-card {
  border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel);
}
.hall-card .ph {
  height:130px; display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:12px;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
    var(--panel2);
}
.hall-card .body { padding:14px 16px; }
.hall-card h3 { font-size:17px; font-weight:700; }
.hall-card .price { color:var(--gold-hi); font-size:14px; margin-top:4px; }
.hall-card .eq { color:var(--muted); font-size:12px; margin-top:6px; }
.hall-card button { margin-top:12px; }

.pkg-grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.pkg-card { border:1px solid var(--gold); border-radius:14px; padding:22px; text-align:center; background:var(--panel); }
.pkg-card .hrs { font-family:"Alexandria",sans-serif; font-size:40px; font-weight:900; color:var(--gold-hi); }
.pkg-card .nm { font-weight:600; margin-top:6px; }
.pkg-card .pr { color:var(--muted); font-size:14px; margin-top:4px; }

.faq { max-width:760px; }
.faq details { border-bottom:1px solid var(--line); padding:14px 0; }
.faq summary { cursor:pointer; font-weight:600; font-size:15px; }
.faq p { color:var(--muted); font-size:14px; margin-top:10px; }

.contact p { margin:8px 0; font-size:15px; }

.foot { display:flex; align-items:center; gap:14px; padding:26px 5vw; color:var(--muted); font-size:13px; border-top:1px solid var(--line); }

/* ---------- overlays ---------- */
.overlay { position:fixed; inset:0; background:rgba(0,0,0,.62); backdrop-filter:blur(8px); z-index:100; display:flex; align-items:center; justify-content:center; }
.overlay[hidden] { display:none; }
.modal { background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:28px; width:min(92vw,400px); box-shadow:var(--shadow); display:grid; gap:12px; position:relative; }
.modal.wide { width:min(94vw,640px); max-height:86vh; overflow:auto; }
.modal h3 { font-size:19px; font-weight:700; }
.modal .x { position:absolute; top:14px; inset-inline-end:14px; background:none; border:none; color:var(--muted); font-size:15px; cursor:pointer; }
.linklike { background:none; border:none; color:var(--gold-hi); cursor:pointer; font-family:inherit; font-size:13px; }
.err { color:#f87171; font-size:13px; }

.balance { border:1px solid var(--gold); border-radius:10px; padding:12px 16px; color:var(--gold-hi); font-size:14px; }
.mine { display:grid; gap:10px; }
.mine .bk { border:1px solid var(--line); border-radius:10px; padding:12px 16px; font-size:13px; display:grid; gap:4px; }
.mine .bk .row { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.mine .bk .st { font-size:11px; padding:2px 10px; border-radius:99px; border:1px solid var(--line); }
.mine .bk .st.cancelled { color:#f87171; border-color:#f87171; }
.mine .bk .st.confirmed { color:#4ade80; border-color:#4ade80; }
.mine .bk a, .mine .bk button.linklike { font-size:12px; }

.toast {
  position:fixed; bottom:22px; left:50%; transform:translateX(-50%);
  background:var(--panel); border:1px solid var(--gold); color:var(--ink);
  padding:11px 20px; border-radius:12px; font-size:13px; z-index:200; box-shadow:var(--shadow);
}

/* hall media gallery */
.gal { display:grid; gap:14px; }
.gal img, .gal video { width:100%; border-radius:12px; border:1px solid var(--line); display:block; background:var(--panel2); }
.gal .gal-empty { color:var(--muted); font-size:14px; text-align:center; padding:30px 10px; }
.hall-card .ph { cursor:pointer; transition:filter .15s; }
.hall-card .ph:hover { filter:brightness(1.15); }
.hall-card .ph img.cover { width:100%; height:130px; object-fit:cover; display:block; }

/* services / offers */
.offers { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); max-width:1100px; margin:0 auto; }
.offer { background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:22px; display:flex; flex-direction:column; gap:10px; }
.offer h3 { font-family:Alexandria; font-size:18px; color:var(--gold-hi); }
.offer p { font-size:14px; line-height:1.9; }
.offer-price b { color:var(--gold-hi); }
.offer-price s { color:var(--muted); font-size:12px; }
.offer-notes { color:var(--muted); font-size:12.5px; }
.offer-actions { margin-top:auto; display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cta.sm { padding:9px 18px; font-size:14px; width:auto; }
.hint { color:var(--muted); font-size:12px; margin-top:4px; }
#screenRow, #camRow { margin-bottom:6px; }

/* floating WhatsApp */
#waFloat { position:fixed; bottom:22px; inset-inline-start:22px; z-index:60; width:56px; height:56px;
  border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.35); transition:transform .15s; }
#waFloat:hover { transform:scale(1.08); }

/* ===== design pass: hero, CTAs, viewfinder signature ===== */
.hero { position:relative; }
.hero::before { content:""; position:absolute; inset:-40px 0 0;
  background:
    radial-gradient(60% 50% at 75% 10%, rgba(200,149,42,.14), transparent 65%),
    radial-gradient(40% 40% at 15% 80%, rgba(56,114,224,.08), transparent 70%);
  pointer-events:none; }
.hero-copy h1 { font-size:clamp(32px,4.2vw,46px); line-height:1.28; overflow-wrap:break-word; }
.cta-row { display:flex; gap:14px; margin:22px 0 10px; flex-wrap:wrap; }
.hero-cta { display:inline-flex; align-items:center; gap:8px; width:auto; padding:14px 26px;
  font-size:16px; box-shadow:0 10px 26px rgba(200,149,42,.28); }
.cta.ghost { width:auto; padding:14px 22px; background:transparent; color:var(--gold-hi);
  border:1px solid var(--gold); box-shadow:none; }
.cta.ghost:hover { background:rgba(200,149,42,.10); }
.trust { color:var(--muted); font-size:12.5px; letter-spacing:.2px; }

/* signature: gold viewfinder corners on the booking widget */
.widget { position:relative; }
.widget::before, .widget::after,
.widget .wf-b::before, .widget .wf-b::after { content:""; position:absolute; width:26px; height:26px;
  border:2px solid var(--gold); pointer-events:none; }
.widget::before { top:-8px; inset-inline-start:-8px; border-inline-end:none; border-bottom:none; border-start-start-radius:10px; }
.widget::after  { top:-8px; inset-inline-end:-8px;  border-inline-start:none; border-bottom:none; border-start-end-radius:10px; }
.widget .wf-b::before { bottom:-8px; inset-inline-start:-8px; border-inline-end:none; border-top:none; border-end-start-radius:10px; }
.widget .wf-b::after  { bottom:-8px; inset-inline-end:-8px;  border-inline-start:none; border-top:none; border-end-end-radius:10px; }

/* smart bundle cards */
.smart-pkg { border-color:var(--gold); position:relative; }
.smart-pkg::after { content:"SMART"; position:absolute; top:10px; inset-inline-end:12px;
  font-size:10px; letter-spacing:2px; color:var(--gold-hi); opacity:.8; }
.smart-pkg .pkg-book { margin-top:10px; }
.pkg-hint { margin-top:8px; padding:10px 12px; border:1px dashed var(--gold); border-radius:10px;
  font-size:12.5px; line-height:2; }
.pkg-chip { display:inline-block; background:rgba(200,149,42,.10); border:1px solid var(--line);
  border-radius:8px; padding:2px 8px; margin:2px; }
.fb-inline { color:var(--gold-hi); }

html, body { overflow-x:hidden; }

/* smart section intro lines */
.smart-intro { max-width:760px; margin:0 auto 20px; text-align:center; }
.smart-line { font-size:16px; line-height:2.1; }
.smart-line b { color:var(--gold-hi); }
.smart-line.gift { color:var(--muted); font-size:14px; }

/* floating Facebook above WhatsApp */
#fbFloat { position:fixed; bottom:90px; inset-inline-start:22px; z-index:60; width:56px; height:56px;
  border-radius:50%; background:#1877F2; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.35); transition:transform .15s; }
#fbFloat:hover { transform:scale(1.08); }

/* contact info: make it POP */
.contact p { font-size:16px; }
.contact a { color:var(--gold-hi); font-weight:700; font-size:17px; text-decoration:none;
  border-bottom:1px dashed var(--gold); }
.contact a:hover { color:#ffd97a; }
.contact #cfgCall, .contact #cfgWa { color:var(--gold-hi); font-weight:600; }

/* admin managers */
.rates-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; }
.rates-grid label { font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.ptable { width:100%; border-collapse:collapse; font-size:13px; }
.ptable th, .ptable td { padding:6px 8px; border-bottom:1px solid var(--line); text-align:start; }
.ptable .winput { padding:6px 8px; font-size:13px; }
