/* XELEX web design system. One palette, two moods: night (default, the lounge's own black and violet) and a soft
   day mode. Every colour below is a token, so a page never hard-codes white-on-black: overlays use
   rgb(var(--tint) / alpha), which is white at night and deep ink by day. Motion and light come from fx.js;
   small interactive parts (theme switch, offers, charts) from components.js. */
@import url("/static/fonts/fonts.css");

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0d0920;                         /* menus, sticky table heads */
  --tint: 255 255 255;                     /* overlays: rgb(var(--tint) / .06) */
  --glass: rgba(20, 13, 40, .55);          /* panels */
  --glass-2: rgba(28, 20, 56, .82);        /* raised: modals, sheets, menus */
  --field: rgb(var(--tint) / .05);
  --ink: #fff;
  --ink-2: rgb(var(--tint) / .74);
  --muted: rgb(var(--tint) / .52);
  --line: rgb(var(--tint) / .09);
  --edge: rgb(var(--tint) / .22);          /* the lit top edge of glass */
  --lilac: #b9a6ff;                        /* accent text, focus, links */
  --accent: #7c5cff;                       /* the one filled colour */
  --accent-2: #5b3fd1;
  --head-a: #fff; --head-b: #c9baff;       /* headline ink gradient */
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, .95);
  --glow: rgba(124, 92, 255, .55);
  --free: #3ddc97; --busy: #6c4dff; --warn: #ffc53d; --gray: #5b5670; --danger: #ff5d55;
  --grain: .07;
  --page-glow-a: rgba(124, 92, 255, .22); --page-glow-b: rgba(185, 166, 255, .1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5fb;
  --bg-2: #fff;
  --tint: 30 18 72;
  --glass: rgba(255, 255, 255, .66);
  --glass-2: rgba(255, 255, 255, .9);
  --ink: #140e2b;
  --ink-2: rgb(var(--tint) / .76);
  --muted: rgb(var(--tint) / .54);
  --line: rgb(var(--tint) / .1);
  --edge: rgba(255, 255, 255, .95);
  --lilac: #5b3fd1;
  --accent: #7c5cff;
  --accent-2: #5b3fd1;
  --head-a: #140e2b; --head-b: #5b3fd1;
  --shadow: 0 24px 60px -30px rgba(50, 30, 120, .28);
  --glow: rgba(124, 92, 255, .3);
  --free: #0f9f68; --warn: #c98a00; --danger: #e5413a;
  --grain: .035;
  --page-glow-a: rgba(124, 92, 255, .16); --page-glow-b: rgba(61, 220, 151, .08);
}
:root {
  --r-panel: 24px; --r-ctl: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Shekel", "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --text: "Shekel", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  /* older names the pages use inline: same roles */
  --paper: var(--glass); --black: #000; --violet: var(--lilac); --purple: var(--lilac);
  --lilac-2: rgba(124, 92, 255, .2); --lilac-line: rgba(185, 166, 255, .28);
  --purple-2: var(--lilac); --purple-3: rgba(124, 92, 255, .16); --purple-ink: var(--lilac); --soft: rgba(124, 92, 255, .1); --card: var(--glass);
  font-family: var(--text);
}
* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--bg); scrollbar-color: rgb(var(--tint) / .25) transparent; }
body { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: clip;
  background:
    radial-gradient(1100px 700px at 85% -15%, var(--page-glow-a), transparent 70%),
    radial-gradient(800px 600px at -5% 110%, var(--page-glow-b), transparent 70%),
    var(--bg);
  background-attachment: fixed; transition: background-color .5s, color .5s; }
/* film grain over everything, like the PC screen */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
body > * { position: relative; z-index: 1; }
#fx-aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
:root[data-theme="light"] #fx-aurora { opacity: .45; }
/* a soft light that follows the pointer across the whole page */
#fx-glow { position: fixed; z-index: 0; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: .35; filter: blur(20px); will-change: transform; }
#fx-sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 200; pointer-events: none; }
a { color: var(--lilac); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
::selection { background: rgba(124, 92, 255, .45); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(var(--tint) / .2); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.3; font-weight: 600; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 68px); line-height: 1.18; }
/* headline ink falls from ink into lilac (per word once split, so the reveal keeps the colour) */
h1:not([data-split]), h1 .fx-w > span, .grad { background: linear-gradient(180deg, var(--head-a) 30%, var(--head-b) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: var(--display); font-size: 21px; font-weight: 700; } h3 { font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.num, .stat, .clock { font-variant-numeric: tabular-nums; }
code { background: var(--field); padding: 1px 6px; border-radius: 6px; }
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .18em; margin: -.1em 0 -.18em; }
.fx-w > span { display: inline-block; }

/* page changes fade into each other; the logo stays put */
@view-transition { navigation: auto; }
.logo img { view-transition-name: xelex-logo; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- structure ---------- */
/* a floating bar of glass, not a strip glued to the top */
.topbar { position: sticky; top: 12px; z-index: 20; margin: 12px auto 0; width: min(1440px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px 8px 14px; min-height: 62px; border-radius: 20px; color: var(--ink);
  background: var(--glass); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgb(var(--tint) / .08); transition: background .4s; }
/* the logo is the lounge's own artwork (img/logo.png); its glow comes from the art */
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; flex: none; }
.logo img { height: 54px; width: auto; margin-block: -6px; transition: filter .3s; }
/* by day the logo keeps its own dark shadow, which reads on light too: just a softer glow */
:root[data-theme="light"] .logo img, :root[data-theme="light"] .on-light-logo { filter: none; }
.logo:hover img { filter: brightness(1.1); }
.topbar .spacer { flex: 1; }
.topbar .pill { background: rgb(var(--tint) / .05); color: var(--ink-2); border: 1px solid var(--line); font-weight: 500; }
.topbar select { background: var(--field); padding-block: 8px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 22px; }

/* glass slab: lit top edge (::before) + pointer spotlight (::after, positioned by fx.js) */
.card { position: relative; isolation: isolate; background: var(--glass); border: 1px solid transparent; border-radius: var(--r-panel); padding: 22px;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--shadow);
  transition: background-color .4s, box-shadow .4s; }
.card::before, .fx-spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(170deg, var(--edge), rgba(185, 166, 255, .1) 35%, rgb(var(--tint) / .05) 70%, rgba(124, 92, 255, .32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card::after, .fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  transition: opacity .4s; background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .16), transparent 45%); }
.card:hover::after, .fx-spot:hover::after { opacity: 1; }
.fx-spot { position: relative; isolation: isolate; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .7s var(--ease); }
[data-tilt].fx-tilting { transition: transform .12s linear; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.stack > input, .stack > select, .stack > textarea { display: block; width: 100%; }
.hidden { display: none !important; }

/* ---------- controls ---------- */
button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 9px 16px; cursor: pointer;
  background: rgb(var(--tint) / .07); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; line-height: 1.4; position: relative; transition: background-color .2s, border-color .2s, box-shadow .25s, color .2s, transform .15s;
  box-shadow: inset 0 1px 0 rgb(var(--tint) / .06); }
button:hover, .btn:hover { background: rgb(var(--tint) / .13); border-color: rgb(var(--tint) / .2); }
button:active, .btn:active { transform: scale(.97); }
/* primary: lit violet with a sheen that sweeps across on hover */
button.primary, .btn.primary { color: #fff; background: linear-gradient(180deg, #9478ff, var(--accent) 60%, #6a48f0); border-color: rgba(255, 255, 255, .18); overflow: hidden;
  box-shadow: 0 14px 34px -12px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .15); }
button.primary::after, .btn.primary::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(120%); transition: transform .8s var(--ease); }
button.primary:hover::after, .btn.primary:hover::after { transform: translateX(-120%); }
button.primary:hover, .btn.primary:hover { background: linear-gradient(180deg, #a089ff, #7f60ff 60%, #6a48f0);
  box-shadow: 0 18px 44px -12px rgba(124, 92, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .4); }
button.light, .btn.light { background: rgba(124, 92, 255, .14); color: var(--lilac); border-color: rgba(124, 92, 255, .3); }
button.light:hover, .btn.light:hover { background: rgba(124, 92, 255, .24); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: rgb(var(--tint) / .06); color: var(--ink); }
button.danger { background: rgba(255, 93, 85, .13); color: var(--danger); border-color: rgba(255, 93, 85, .4); }
button.danger:hover { background: rgba(255, 93, 85, .24); }
button.big, .btn.big { padding: 14px 26px; font-size: 16px; border-radius: 16px; }
button.pill-btn, .btn.pill-btn { border-radius: 99px; }
button:disabled { opacity: .4; cursor: not-allowed; }
/* StarBorder: a ray of light running around the edge of the main call to action */
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.star { position: relative; isolation: isolate; }
.star::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--fx-a), transparent 0 70%, rgba(255, 255, 255, .95) 80%, #b9a6ff 85%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fx-star 4s linear infinite; }
@keyframes fx-star { to { --fx-a: 360deg; } }
input, select, textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--field); min-width: 0; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / .12); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: var(--bg-2); color: var(--ink); }
input:hover, select:hover, textarea:hover { border-color: rgb(var(--tint) / .18); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lilac); background: rgba(124, 92, 255, .07);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .2), inset 0 2px 6px rgb(0 0 0 / .1); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 17px; height: 17px; box-shadow: none; }
label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(124, 92, 255, .14); color: var(--lilac); border: 1px solid rgba(124, 92, 255, .26); white-space: nowrap; }
.pill:empty { display: none; }
.pill.ok { background: rgba(61, 220, 151, .12); color: var(--free); border-color: rgba(61, 220, 151, .32); }
.pill.bad { background: rgba(255, 93, 85, .12); color: var(--danger); border-color: rgba(255, 93, 85, .32); }
.pill.mute { background: rgb(var(--tint) / .05); color: var(--muted); border-color: var(--line); }
/* a tinted message strip inside a panel */
.note { border-radius: var(--r-ctl); padding: 10px 13px; margin-bottom: 10px; border: 1px solid; }
.note.bad { background: rgba(255, 93, 85, .1); border-color: rgba(255, 93, 85, .35); }
.note.bad b { color: var(--danger); }
.note.warn { background: rgba(255, 197, 61, .09); border-color: rgba(255, 197, 61, .38); }
.note.warn b { color: var(--warn); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 500; font-size: 12px; position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
tbody tr:hover td, tr:hover > td { background: rgba(124, 92, 255, .05); }
.scroll { overflow-x: auto; }

/* tooltips: any element with data-tip="..." */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; z-index: 30;
  padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; pointer-events: none;
  background: var(--glass-2); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .2s, translate .2s var(--ease); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; }

/* loading skeletons: grey glass that shimmers until the real thing arrives */
.sk { border-radius: 12px; min-height: 14px; background: linear-gradient(90deg, rgb(var(--tint) / .05) 25%, rgb(var(--tint) / .12) 50%, rgb(var(--tint) / .05) 75%);
  background-size: 300% 100%; animation: fx-sk 1.4s ease-in-out infinite; }
.sk.line { height: 14px; margin: 10px 0; } .sk.line.short { width: 55%; }
.sk.block { height: 140px; }
@keyframes fx-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* section switcher: chips in a glass rail; the chosen one is lit */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; padding: 5px; border-radius: 16px; width: fit-content; max-width: 100%;
  background: rgb(var(--tint) / .04); border: 1px solid var(--line); }
.tabs button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 11px; padding: 8px 15px; font-weight: 500; box-shadow: none; }
.tabs button:hover { background: rgb(var(--tint) / .06); color: var(--ink); }
.tabs button.on { color: #fff; font-weight: 600; background: linear-gradient(180deg, #8f74ff, var(--accent));
  border-color: rgba(255, 255, 255, .15); box-shadow: 0 8px 22px -10px rgba(124, 92, 255, .9); }

.stat { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.15;
  background: linear-gradient(180deg, var(--head-a) 40%, var(--head-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }

/* ---------- lounge map ---------- */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-inline-end: 6px; vertical-align: -2px; border: 1px solid transparent; }
.legend i.k-free { background: rgba(61, 220, 151, .18); border: 2px solid #3ddc97; }
.legend i.k-busy { background: #6c4dff; }
.legend i.k-warn { background: #ffc53d; }
.legend i.k-res { background: repeating-linear-gradient(135deg, rgba(124, 92, 255, .6) 0 3px, transparent 3px 6px); border-color: var(--lilac); }
.legend i.k-gray { background: #5b5670; }
.legend i.k-off { background: transparent; border: 1px dashed var(--muted); }

/* The floor plan: a dark board lit from inside (dark in both modes, like a screen), seats raised on it like keys.
   --u = one plan unit. */
.plan { --tint: 255 255 255; --ink: #fff; --lilac: #b9a6ff; --free: #3ddc97; --warn: #ffc53d; --danger: #ff5d55; color: #fff; color-scheme: dark;
  position: relative; width: 100%; max-width: 640px; margin: 0 auto; container-type: inline-size; overflow: hidden;
  border-radius: var(--r-panel); border: 1px solid rgba(185, 166, 255, .26);
  background-color: #0a0618;
  background-image: radial-gradient(120% 70% at 50% 0%, rgba(124, 92, 255, .24), transparent 70%),
    linear-gradient(rgba(185, 166, 255, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 166, 255, .075) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  box-shadow: inset 0 0 90px rgba(124, 92, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 90px -40px rgba(124, 92, 255, .7); }
.plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan .wall { fill: none; stroke: rgba(236, 230, 255, .9); stroke-width: 5; stroke-linejoin: miter; stroke-linecap: square;
  filter: drop-shadow(0 0 7px rgba(185, 166, 255, .6)); }
.plan .part { fill: none; stroke: rgba(230, 222, 255, .55); stroke-width: 1.5; }
.plan .dash { fill: none; stroke: #b9a6ff; stroke-width: 1.2; stroke-dasharray: 6 5; opacity: .7; }
.plan .sh { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.plan .sh.table { fill: rgba(124, 92, 255, .22); stroke: rgba(185, 166, 255, .6); }
.plan .sh.sofa { fill: rgba(255, 255, 255, .08); }
.plan .sh.counter { fill: rgba(255, 255, 255, .12); }
.plan .sh.tv { fill: #fff; stroke: none; opacity: .8; }
.plan .lbl { font: 600 12px var(--display); fill: #b9a6ff; text-anchor: middle; }
.plan .seat { position: absolute; transform: translate(-50%, -50%); width: calc(var(--u) * 44); height: calc(var(--u) * 40);
  padding: 0; border-radius: calc(var(--u) * 9); font-size: calc(var(--u) * 10); line-height: 1.15; border-width: calc(var(--u) * 2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 calc(var(--u) * 5) calc(var(--u) * 12) rgba(0, 0, 0, .6), inset 0 calc(var(--u) * 1.5) 0 rgba(255, 255, 255, .18);
  overflow: visible; transition: transform .2s var(--ease), box-shadow .2s; }
.plan .seat:hover { transform: translate(-50%, -58%); box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 18) rgba(0, 0, 0, .65), inset 0 calc(var(--u) * 1.5) 0 rgba(255, 255, 255, .25); }
.plan .seat b { font-family: var(--display); font-size: calc(var(--u) * 15); }
.plan .seat small { font-size: calc(var(--u) * 9); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan .seat .badge { top: calc(var(--u) * -7); left: calc(var(--u) * -7); font-size: calc(var(--u) * 10); padding: 0 calc(var(--u) * 5); }
.plan .seat .off { top: calc(var(--u) * -7); right: calc(var(--u) * -7); bottom: auto; left: auto; opacity: 1; background: #ff5d55;
  color: #fff; border-radius: 99px; width: calc(var(--u) * 14); height: calc(var(--u) * 14); font-size: calc(var(--u) * 10);
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
.plan .seat.editable { cursor: grab; touch-action: none; outline: 2px dashed #b9a6ff; outline-offset: 2px; }
.seat { border-radius: 12px; padding: 6px; font-size: 12px; line-height: 1.3; cursor: pointer; position: relative;
  border: 2px solid transparent; color: #fff; user-select: none; }
.seat b { display: block; font-size: 13px; }
.seat.free { background: linear-gradient(180deg, rgba(61, 220, 151, .2), rgba(61, 220, 151, .07)); border-color: #3ddc97;
  box-shadow: 0 0 20px -4px rgba(61, 220, 151, .6); }
.seat.free small { color: #3ddc97; font-weight: 600; }
.seat.busy { background: linear-gradient(180deg, #8467ff, #5236e0); border-color: rgba(255, 255, 255, .18); }
.seat.ending { background: linear-gradient(180deg, #ffd978, #f5b700); color: #1a1200; }
.seat.reserved { background: repeating-linear-gradient(135deg, rgba(185, 166, 255, .34) 0 4px, rgba(20, 14, 38, .9) 4px 8px); border-color: #b9a6ff; }
.seat.maintenance { background: #5b5670; }
.seat.inactive { background: transparent; color: rgba(255, 255, 255, .5); border: 1px dashed rgba(255, 255, 255, .28); box-shadow: none !important; }
.seat.table { background: rgba(124, 92, 255, .2); color: #b9a6ff; border-color: rgba(185, 166, 255, .5); }
.seat.sel, .plan .seat.sel { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(124, 92, 255, .45), 0 0 34px rgba(185, 166, 255, .85);
  animation: fx-pick 1.6s ease-in-out infinite; }
@keyframes fx-pick { 50% { outline-color: #b9a6ff; } }
.seat.drop { outline: 3px dashed #fff; outline-offset: 3px; }
.seat .badge { position: absolute; top: 4px; left: 4px; background: var(--accent); color: #fff; border-radius: 99px;
  font-size: 11px; padding: 0 6px; animation: pulse 1.2s infinite; }
.seat .off { position: absolute; bottom: 4px; left: 6px; font-size: 10px; opacity: .8; }
/* player asked for help: red ring + "?" badge until staff mark it handled */
.seat.help, .plan .seat.help { box-shadow: 0 0 0 3px #ff5d55; animation: sos 1s ease-in-out infinite; }
.seat .sos { position: absolute; top: -8px; right: -8px; background: #ff5d55; color: #fff; border-radius: 99px; width: 18px; height: 18px;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.plan .seat .sos { top: calc(var(--u) * -8); right: calc(var(--u) * -8); width: calc(var(--u) * 16); height: calc(var(--u) * 16); font-size: calc(var(--u) * 11); }
/* PC health */
.seat .pcalert { position: absolute; bottom: -8px; right: -8px; background: #1a1430; border: 2px solid #ffc53d; border-radius: 99px;
  width: 20px; height: 20px; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.seat .pcalert.crit { border-color: #ff5d55; background: #3a0f12; }
.plan .seat .pcalert { bottom: calc(var(--u) * -8); right: calc(var(--u) * -8); width: calc(var(--u) * 17); height: calc(var(--u) * 17);
  font-size: calc(var(--u) * 9); border-width: calc(var(--u) * 1.5); }
.disk { display: inline-block; width: 60px; height: 8px; border-radius: 99px; background: rgb(var(--tint) / .1); overflow: hidden; vertical-align: middle; }
.disk i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #b9a6ff); }
.disk.warn i { background: var(--warn); } .disk.crit i { background: var(--danger); }
.t-warn { color: var(--warn); font-weight: 700; } .t-crit { color: var(--danger); font-weight: 700; }
.alert-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.alert-row.crit b { color: var(--danger); }
@keyframes sos { 50% { box-shadow: 0 0 0 7px rgba(255, 93, 85, .35); } }
@keyframes pulse { 50% { transform: scale(1.2); } }

/* ---------- feedback ---------- */
.toast-box { position: fixed; bottom: 18px; left: 18px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--glass-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--ink); padding: 13px 18px;
  border-radius: 16px; max-width: 380px; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent);
  box-shadow: var(--shadow), 0 0 40px -20px rgba(124, 92, 255, .8); animation: toast-in .45s var(--ease); }
.toast.err { border-inline-start-color: var(--danger); }
@keyframes toast-in { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgb(0 0 0 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: fade .2s ease-out; perspective: 1200px; }
.modal { position: relative; background: var(--glass-2); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(124, 92, 255, .28); border-radius: 26px; padding: 26px; width: min(560px, 100%); max-height: 90vh; overflow: auto; color: var(--ink);
  box-shadow: 0 50px 120px -30px rgb(0 0 0 / .6), 0 0 80px -30px rgba(124, 92, 255, .6), inset 0 1px 0 rgb(var(--tint) / .12);
  animation: rise .5s var(--ease); transform-origin: 50% 100%; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(26px) rotateX(10deg) scale(.97); opacity: 0; } }

/* ---------- staff sign-in: the logo floats over its own reflection, the form is a slab of glass ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-page .brand { color: var(--ink); padding: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-width: 0; gap: 28px; perspective: 900px; }
.login-page .brand .logo { flex-direction: column; animation: fx-float 6s ease-in-out infinite; }
.login-page .brand .logo img { height: clamp(110px, 16vw, 230px); }
.login-page .brand .logo::after { content: ""; width: 70%; height: 22px; margin-top: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .7), transparent); filter: blur(6px); animation: fx-shadow 6s ease-in-out infinite; }
@keyframes fx-float { 50% { transform: translateY(-14px) rotateX(6deg); } }
@keyframes fx-shadow { 50% { transform: scale(.82); opacity: .6; } }
.login-page .brand p { color: var(--ink-2); margin: 0; font-size: 16px; max-width: 44ch; }
.login-page .form-side { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-page .card { width: min(420px, 100%); padding: 34px; border-radius: 28px; background: var(--glass-2); }
.login-page form input, .login-page form button { display: block; width: 100%; }
.login-page jx-theme { position: fixed; top: 16px; left: 16px; z-index: 5; }
@media (max-width: 760px) {
  .login-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-page .brand { padding: 36px 20px 0; align-items: center; text-align: center; gap: 10px; }
  .login-page .brand .logo img { height: 104px; }
  .login-page .brand .logo::after { margin-top: 14px; }
  .login-page .card { padding: 24px; }
}

/* ---------- day / night switch (components.js <jx-theme>) ---------- */
jx-theme button { width: 42px; height: 42px; padding: 0; border-radius: 50%; overflow: hidden; }
jx-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease), opacity .3s; position: absolute; }
jx-theme .sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="light"] jx-theme .sun { transform: none; opacity: 1; }
:root[data-theme="light"] jx-theme .moon { transform: rotate(90deg) scale(.4); opacity: 0; }
html.fx-theming::view-transition-old(root), html.fx-theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- components.js ---------- */
/* offers: a 16:9 stage, the picture whole on a blurred copy of itself, progress lines under it */
jx-promos { display: block; }
.pr-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: #0a0618; container-type: inline-size;
  box-shadow: var(--shadow), 0 0 0 1px rgb(var(--tint) / .08); touch-action: pan-y; }
.pr-layer, .pr-pieces { position: absolute; inset: 0; }
.pr-layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-layer .pr-blur { object-fit: cover; filter: blur(30px) saturate(1.4); transform: scale(1.2); opacity: .7; }
.pr-layer .pr-img { object-fit: contain; }
.pr-text { padding: 16px 4px 4px; }
.pr-text b { display: block; font-family: var(--display); font-size: 22px; }
.pr-text span { color: var(--ink-2); }
.pr-dots { display: flex; gap: 6px; margin-top: 12px; }
.pr-dots button { flex: 1 1 0; min-width: 0; height: 4px; padding: 0; border: 0; border-radius: 99px; background: rgb(var(--tint) / .14); overflow: hidden; box-shadow: none; }
.pr-dots i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #b9a6ff); transform: scaleX(0); transform-origin: 100% 50%; }
/* ring chart */
jx-ring { display: inline-block; width: 150px; }
.ring { position: relative; }
.ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgb(var(--tint) / .08); }
.ring-fg { stroke: var(--free); stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(61, 220, 151, .5)); }
.ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ring-mid b { font-family: var(--display); font-size: 40px; }
.ring-mid small { color: var(--muted); font-size: 12px; }
/* bar chart */
.bars { display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 18px); height: 240px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; gap: 8px; outline: none; }
.bar-col { flex: 1; position: relative; }
.bar-col i { position: absolute; bottom: 0; left: 0; right: 0; display: block; border-radius: 12px 12px 4px 4px; transition: filter .2s, transform .3s var(--ease);
  background: linear-gradient(180deg, #b9a6ff, var(--accent) 45%, var(--accent-2)); box-shadow: 0 16px 34px -14px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.bar-col em { position: absolute; top: -28px; left: 50%; translate: -50% 0; font-style: normal; font-size: 12px; font-weight: 700; color: var(--free); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.bar:hover .bar-col i, .bar:focus .bar-col i { filter: brightness(1.15); transform: translateY(-4px); }
.bar > span { text-align: center; font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
/* marquee: one endless line (right to left, pauses under the pointer) */
jx-marquee { display: block; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: fx-mq 38s linear infinite; }
jx-marquee:hover .mq-track { animation-play-state: paused; }
.mq-set { display: flex; gap: 14px; padding-inline-end: 14px; }
@keyframes fx-mq { to { transform: translateX(50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding: 14px; }
  .card { padding: 17px; border-radius: 20px; }
  .topbar { top: 8px; margin-top: 8px; width: calc(100% - 16px); padding: 7px 8px 7px 12px; min-height: 56px; border-radius: 18px; }
  .logo img { height: 44px; }
  /* one swipeable row of chips instead of wrapped lines */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .stat { font-size: 28px; }
  #fx-glow { display: none; }
}

/* public site footer: terms / privacy / refund (the payment gateway asks for these links) */
.sitefoot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 40px 16px 48px;
  font-size: 14px; color: var(--muted); }
.sitefoot a { color: var(--ink-2); text-decoration: none; }
.sitefoot a:hover { color: var(--ink); }
.sitefoot img { flex: 0 0 100%; width: 100%; height: 30px; object-fit: contain; opacity: .85; margin-bottom: 6px; }

/* public pages: the app dock at the bottom of a phone (الرئيسية / احجز / المتجر / حسابي) */
.appdock { display: none; }
@media (max-width: 900px) {
  .appdock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 30; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px;
    background: var(--glass-2); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(124, 92, 255, .22); box-shadow: var(--shadow), inset 0 1px 0 rgb(var(--tint) / .1); }
  .appdock a, .appdock button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 16px;
    color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; background: none; border: 0; box-shadow: none; }
  .appdock svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .appdock .on { color: #fff; background: linear-gradient(180deg, #8f74ff, var(--accent)); box-shadow: 0 8px 20px -8px rgba(124, 92, 255, .9); }
  body.has-dock { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
