/* JAXO web, the same night as the PC screens: black room, flowing violet light (fx.js aurora), slabs of glass
   lit from their top edge with a light that follows the pointer inside them. The lounge floor plan is the one
   loud thing on any page: a lit board that floats in 3D. Everything else stays calm and readable. */
@import url("/static/fonts/fonts.css");

:root {
  color-scheme: dark;
  --bg: #000;
  --glass: rgba(18, 12, 36, .58);          /* panels */
  --glass-2: rgba(28, 20, 56, .78);        /* raised: modals, sheets, menus */
  --field: rgba(255, 255, 255, .055);      /* inputs */
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, .76);
  --muted: rgba(255, 255, 255, .55);
  --line: rgba(255, 255, 255, .1);
  --edge: rgba(255, 255, 255, .22);        /* the lit top edge of glass */
  --lilac: #b9a6ff;                        /* accent text, focus, links */
  --accent: #7c5cff;                       /* the one filled button colour */
  --free: #3ddc97; --busy: #6c4dff; --warn: #ffc53d; --gray: #5b5670; --danger: #ff5d55;
  --r-panel: 22px; --r-ctl: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Shekel", "Reem Kufi", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --text: "Shekel", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  /* names the pages use inline: same roles, dark values */
  --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, .2); --purple-ink: var(--lilac); --soft: rgba(124, 92, 255, .1); --card: var(--glass);
  font-family: var(--text);
}
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: rgba(185, 166, 255, .3) transparent; }
body { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: clip;
  background:
    radial-gradient(1100px 700px at 85% -15%, rgba(124, 92, 255, .22), transparent 70%),
    radial-gradient(800px 600px at -5% 110%, rgba(185, 166, 255, .1), transparent 70%),
    #000;
  background-attachment: fixed; }
/* film grain over everything, like the PC screen */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .07; 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; }
#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, .55); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(185, 166, 255, .22); 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.25; font-weight: 600; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -.01em; }
/* headline ink: white falling into lilac (per word once split, so the reveal keeps the colour) */
h1:not([data-split]), h1 .fx-w > span { background: linear-gradient(180deg, #fff 30%, #cbbcff 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: var(--display); font-size: 21px; font-weight: 700; } h3 { font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; }
.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: .08em 0 .14em; margin: -.08em 0 -.14em; }
.fx-w > span { display: inline-block; }

/* ---------- 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: #fff;
  background: rgba(12, 8, 26, .62); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
/* 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: 40px; width: auto; filter: drop-shadow(0 0 16px rgba(124, 92, 255, .45)); transition: filter .3s; }
.logo:hover img { filter: drop-shadow(0 0 22px rgba(185, 166, 255, .8)); }
.topbar .spacer { flex: 1; }
.topbar .pill { background: rgba(255, 255, 255, .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(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .03); }
.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, .08) 35%, rgba(255, 255, 255, .04) 70%, rgba(124, 92, 255, .3));
  -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(420px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 166, 255, .13), 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 .6s 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: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; 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 rgba(255, 255, 255, .06); }
button:hover, .btn:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); }
button:active, .btn:active { transform: scale(.97); }
/* primary: lit violet with a sheen that sweeps across on hover */
button.primary, .btn.primary { 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, .95), 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 { background: rgba(124, 92, 255, .16); color: #d9cfff; border-color: rgba(185, 166, 255, .3); }
button.light:hover { background: rgba(124, 92, 255, .28); color: #fff; }
button.ghost, .btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }
button.danger { background: rgba(255, 93, 85, .15); color: #ff9a94; border-color: rgba(255, 93, 85, .4); }
button.danger:hover { background: rgba(255, 93, 85, .26); color: #fff; }
button.big { padding: 15px 24px; font-size: 16px; border-radius: 16px; }
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%, var(--lilac) 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 rgba(0, 0, 0, .25); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: #15102a; color: #fff; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .18); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lilac); background: rgba(124, 92, 255, .08);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .22), inset 0 2px 6px rgba(0, 0, 0, .2); }
input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; box-shadow: none; }
input[type=datetime-local], input[type=date] { color-scheme: dark; }
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, .16); color: #d2c6ff; border: 1px solid rgba(185, 166, 255, .24); white-space: nowrap; }
.pill:empty { display: none; }
.pill.ok { background: rgba(61, 220, 151, .13); color: var(--free); border-color: rgba(61, 220, 151, .32); }
.pill.bad { background: rgba(255, 93, 85, .13); color: #ff9a94; border-color: rgba(255, 93, 85, .32); }
.pill.mute { background: rgba(255, 255, 255, .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: #ff9a94; }
.note.warn { background: rgba(255, 197, 61, .08); border-color: rgba(255, 197, 61, .35); }
.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: rgba(14, 9, 30, .92); z-index: 1; }
tbody tr:hover td, tr:hover > td { background: rgba(185, 166, 255, .04); }
.scroll { overflow-x: auto; }

/* 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: rgba(255, 255, 255, .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: rgba(255, 255, 255, .06); color: #fff; }
.tabs button.on { color: #fff; font-weight: 600; background: linear-gradient(180deg, rgba(148, 120, 255, .55), rgba(124, 92, 255, .35));
  border-color: rgba(185, 166, 255, .35); 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.1;
  background: linear-gradient(180deg, #fff 40%, #c9baff); -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 var(--free); box-shadow: 0 0 8px rgba(61, 220, 151, .6); }
.legend i.k-busy { background: var(--busy); }
.legend i.k-warn { background: var(--warn); }
.legend i.k-res { background: repeating-linear-gradient(135deg, rgba(185, 166, 255, .5) 0 3px, transparent 3px 6px); border-color: var(--lilac); }
.legend i.k-gray { background: var(--gray); }
.legend i.k-off { background: transparent; border: 1px dashed var(--muted); }

/* The floor plan: a dark board lit from inside, seats raised on it like keys. --u = one plan unit. */
.plan { 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: rgba(8, 5, 20, .88);
  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: var(--lilac); 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: var(--lilac); text-anchor: middle; letter-spacing: .5px; }
.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: var(--danger);
  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 var(--lilac); 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)); color: #fff; border-color: var(--free);
  box-shadow: 0 0 20px -4px rgba(61, 220, 151, .6); }
.seat.free small { color: var(--free); font-weight: 600; }
.seat.busy { background: linear-gradient(180deg, #8467ff, #5236e0); color: #fff; 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);
  color: #fff; border-color: var(--lilac); }
.seat.maintenance { background: var(--gray); color: #fff; }
.seat.inactive { background: transparent; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .28); box-shadow: none !important; }
.seat.table { background: rgba(124, 92, 255, .2); color: var(--lilac); 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: var(--lilac); } }
.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 var(--danger); animation: sos 1s ease-in-out infinite; }
.seat .sos { position: absolute; top: -8px; right: -8px; background: var(--danger); 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 var(--warn); border-radius: 99px;
  width: 20px; height: 20px; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.seat .pcalert.crit { border-color: var(--danger); 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: rgba(255, 255, 255, .1); overflow: hidden; vertical-align: middle; }
.disk i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--lilac)); }
.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: #fff; padding: 13px 18px;
  border-radius: 16px; max-width: 380px; border: 1px solid rgba(185, 166, 255, .25); border-inline-start: 4px solid var(--lilac);
  box-shadow: 0 22px 50px -16px #000, 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: rgba(0, 0, 0, .62); 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(185, 166, 255, .28); border-radius: 24px; padding: 26px; width: min(560px, 100%); max-height: 90vh; overflow: auto;
  box-shadow: 0 50px 120px -30px #000, 0 0 80px -30px rgba(124, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
  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: #fff; 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); filter: drop-shadow(0 0 40px rgba(124, 92, 255, .7)); }
.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%; }
@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; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 600px) {
  .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: 32px; }
  /* 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; }
}

/* 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: #fff; }
.sitefoot img { flex: 0 0 100%; width: 100%; height: 30px; object-fit: contain; opacity: .8; 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: rgba(12, 8, 26, .78); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(185, 166, 255, .2); box-shadow: 0 20px 50px -14px #000, inset 0 1px 0 rgba(255, 255, 255, .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, rgba(148, 120, 255, .45), rgba(124, 92, 255, .25)); }
  body.has-dock { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
