/* =============================================================
   TRIPPONAL — dark neon nightlife. Arabic-first RTL (Hebrew too).
   Fonts: Cairo (AR display+body) / Heebo (HE) — swapped per lang.
   ============================================================= */

:root {
  --bg: #0b0b10;
  --bg-soft: #12121a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* TRIPPONAL neon: magenta ring + cyan pins from the brand logo */
  --accent: #ff43a9;
  --accent-strong: #ff7cc4;
  --accent-deep: #c4147d;
  --accent-grad: linear-gradient(135deg, #ff7cc4 0%, #ff2f9e 55%, #d5177f 100%);
  --on-accent: #2b0417;
  --cyan: #45e0ff;

  --violet: #7c3aed;
  --magenta: #c026d3;

  --text: #f2efe9;
  --text-muted: #b1adc2;
  --text-faint: #817d93;

  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.3);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;

  --font-ar: "Cairo", "Heebo", system-ui, sans-serif;
  --font-he: "Heebo", "Cairo", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
html[lang="he"] body { font-family: var(--font-he); }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
/* stop iOS double-tap zoom on controls (pinch zoom stays available) */
a, button, input, select, textarea, label { touch-action: manipulation; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-3); font-weight: 800; }

/* numbers, phones, times always LTR inside RTL text */
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 16px; border-radius: 8px; z-index: 300; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 8px; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: var(--space-5); }

/* ---------- ambient background glow ----------
   Plain radial gradients only: filter/backdrop blur on large layers
   crashes iOS Safari ("a problem repeatedly occurred") while scrolling. */
.glow-wrap { position: relative; overflow: clip; }
.glow-wrap::before, .glow-wrap::after {
  content: ""; position: absolute; border-radius: 50%;
  opacity: 0.3; pointer-events: none; z-index: 0;
}
.glow-wrap::before {
  width: 560px; height: 560px; top: -180px; inset-inline-end: -120px;
  background: radial-gradient(circle, var(--violet) 0%, rgba(124, 58, 237, 0.4) 35%, transparent 68%);
}
.glow-wrap::after {
  width: 480px; height: 480px; top: 240px; inset-inline-start: -160px;
  background: radial-gradient(circle, var(--accent-deep) 0%, rgba(196, 20, 125, 0.35) 35%, transparent 68%);
  opacity: 0.24;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-5);
  padding-block: var(--space-3); min-height: 64px;
}
.logo { display: flex; align-items: center; gap: var(--space-3); color: var(--text); }
.logo:hover { color: var(--text); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-name { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.5px; }
.logo-tag { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: -4px; }

.main-nav { display: flex; gap: var(--space-5); margin-inline-start: auto; }
.main-nav a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.main-nav a:hover { color: var(--accent); }

.lang-btn {
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 0.88rem;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover { background: var(--surface-strong); border-color: var(--accent); }

@media (max-width: 720px) {
  .main-nav { display: none; }
  .logo-name { font-size: 1.15rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: var(--space-8) var(--space-7); text-align: center; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--accent-strong); font-weight: 700; font-size: 0.88rem;
  padding: 6px 18px; border-radius: 999px; margin-bottom: var(--space-5);
}
.hero-kicker svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 900;
  background: linear-gradient(120deg, #fff 20%, var(--accent-strong) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--space-4);
}
.hero p { color: var(--text-muted); font-size: 1.08rem; max-width: 580px; margin: 0 auto var(--space-6); }
.hero-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: none; border-radius: 14px; font-weight: 800; font-size: 1rem;
  padding: 13px 30px; min-height: 48px; transition: transform 0.18s var(--ease), box-shadow 0.18s, filter 0.18s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }

.btn-gold { background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 6px 24px rgba(255, 47, 158, 0.3); }
.btn-gold:hover { filter: brightness(1.07); box-shadow: 0 8px 30px rgba(255, 47, 158, 0.45); }

.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--accent); }

.btn-danger { background: var(--danger-bg); border: 1px solid rgba(248, 113, 113, 0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }

.btn-success { background: var(--success-bg); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--success); }
.btn-success:hover { background: rgba(52, 211, 153, 0.22); }

.btn-sm { padding: 8px 18px; min-height: 40px; font-size: 0.9rem; border-radius: 11px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- sections ---------- */
.section { padding-block: var(--space-8); position: relative; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto var(--space-7); }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-head h2 .accent { color: var(--accent); }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- event cards ---------- */
.events-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6); position: relative; z-index: 1;
}
.event-card {
  background: rgba(24, 24, 34, 0.82); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.event-card:hover { transform: translateY(-6px); border-color: rgba(255, 67, 169, 0.5); box-shadow: var(--shadow); }
.event-card.is-closed { filter: grayscale(0.7); }
.event-card.is-closed:hover { transform: none; }

.event-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 16, 0.92) 0%, transparent 55%);
}
.event-date-chip {
  position: absolute; top: var(--space-3); inset-inline-start: var(--space-3); z-index: 2;
  max-width: calc(100% - 2 * var(--space-3));
  background: rgba(11, 11, 16, 0.88);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 6px 14px; font-size: 0.82rem; font-weight: 700; color: var(--accent-strong);
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; line-height: 1.35;
}
.event-date-chip svg { width: 14px; height: 14px; }
.event-price-chip {
  position: absolute; bottom: var(--space-3); inset-inline-end: var(--space-3); z-index: 2;
  background: var(--accent-grad); color: var(--on-accent);
  border-radius: var(--radius-sm); padding: 6px 14px; font-size: 0.85rem; font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.event-price-chip.free { background: var(--success); color: #05281c; }
.event-state-badge {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
}
.event-state-badge span {
  background: rgba(11, 11, 16, 0.85); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 10px 26px; font-weight: 800; font-size: 1.05rem;
}

.event-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.event-title { font-size: 1.3rem; margin: 0; }
.event-singer { display: flex; align-items: center; gap: var(--space-2); color: var(--cyan); font-weight: 700; font-size: 0.95rem; }
.event-singer svg { width: 16px; height: 16px; flex: none; }

.event-includes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.event-includes li { display: flex; align-items: baseline; gap: var(--space-2); color: var(--text-muted); font-size: 0.9rem; }
.event-includes li svg { width: 14px; height: 14px; flex: none; color: var(--accent); transform: translateY(2px); }
.event-includes-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin: 0; }

.seats-wrap { margin-top: auto; display: grid; gap: var(--space-2); }
.seats-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; font-weight: 700; }
.seats-label { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.seats-label svg { width: 15px; height: 15px; }
.seats-low-flag { color: var(--warning); }
.seats-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.seats-fill {
  height: 100%; border-radius: 999px; background: var(--accent-grad);
  transition: width 0.6s var(--ease);
}
.seats-fill.low { background: linear-gradient(135deg, #fbbf24, #f87171); }

/* ---------- feature / step cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-5); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5); text-align: center;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.feature-card:hover { border-color: rgba(255, 67, 169, 0.45); transform: translateY(-4px); }
.feature-icon {
  width: 60px; height: 60px; margin: 0 auto var(--space-4); border-radius: 18px;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent);
  font-weight: 800; margin-bottom: var(--space-3);
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); display: flex; align-items: center; gap: var(--space-4);
}
.contact-card .feature-icon { width: 46px; height: 46px; margin: 0; border-radius: 12px; flex: none; }
.contact-card .feature-icon svg { width: 22px; height: 22px; }
.contact-card h4 { margin: 0; font-size: 0.82rem; color: var(--text-faint); font-weight: 700; }
.contact-card p { margin: 0; font-weight: 700; font-size: 0.97rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-6); background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); margin-inline-start: auto; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-faint); font-size: 0.85rem; width: 100%; margin-top: var(--space-3); }
.owner-link { opacity: 0.65; }

/* ---------- modal system ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s var(--ease);
}
.modal {
  background: #15151f; border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  width: min(520px, 100%); max-height: min(88dvh, 760px);
  display: flex; flex-direction: column;
  animation: popIn 0.22s var(--ease);
}
.modal-head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.modal-head h3 { margin: 0; font-size: 1.2rem; flex: 1; }
.modal-close {
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex: none;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--surface-strong); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: var(--space-2) var(--space-5) var(--space-5); overflow-y: auto; }
.modal-foot {
  display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
}
.modal-foot .btn { flex: 1; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.94) translateY(10px); } }

/* step dots */
.step-dots { display: flex; gap: 8px; justify-content: center; padding-block: var(--space-2) var(--space-4); }
.step-dots span { width: 26px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s; }
.step-dots span.on { background: var(--accent); }

/* type options */
.type-options { display: grid; gap: var(--space-3); }
.type-option {
  display: flex; align-items: center; gap: var(--space-4); text-align: start;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5); transition: border-color 0.2s, background 0.2s;
}
.type-option:hover { border-color: var(--accent); background: var(--surface-strong); }
.type-option.selected { border-color: var(--accent); background: rgba(255, 67, 169, 0.09); }
.type-option .feature-icon { width: 46px; height: 46px; margin: 0; border-radius: 12px; flex: none; }
.type-option .feature-icon svg { width: 22px; height: 22px; }
.type-option-name { font-weight: 800; font-size: 1.02rem; }
.type-option-note { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.type-option-note.instant { color: var(--success); }
.type-option-note.approval { color: var(--warning); }
.type-option-note svg { width: 13px; height: 13px; }

/* stepper */
.stepper {
  display: flex; align-items: center; justify-content: center; gap: var(--space-5); padding-block: var(--space-4);
  user-select: none; -webkit-user-select: none;
}
.stepper button {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.stepper button:hover { background: var(--surface-strong); border-color: var(--accent); }
.stepper-value { font-size: 2.6rem; font-weight: 900; min-width: 80px; text-align: center; color: var(--accent-strong); }
.stepper-hint { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: var(--space-4); }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .req { color: var(--danger); }
.input, textarea.input, select.input {
  background: rgba(255, 255, 255, 0.05); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; min-height: 48px;
  width: 100%; transition: border-color 0.2s; color: var(--text);
}
.input:focus { outline: none; border-color: var(--accent); }
.input.invalid { border-color: var(--danger); }
input[type="tel"].input, input[type="number"].input, input[type="date"].input, input[type="time"].input {
  direction: ltr; text-align: end;
}
.field-error { color: var(--danger); font-size: 0.82rem; display: none; }
.field-error.show { display: block; }
.field-hint { color: var(--text-faint); font-size: 0.8rem; }
textarea.input { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.checkbox-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.checkbox-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.checkbox-row label { font-weight: 700; font-size: 0.92rem; }

/* summary box */
.summary-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-2); margin-bottom: var(--space-4);
}
.summary-row { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 0.93rem; }
.summary-row .k { color: var(--text-muted); }
.summary-row .v { font-weight: 700; }
.summary-row.total { border-top: 1px solid var(--border); padding-top: var(--space-2); font-size: 1.05rem; }
.summary-row.total .v { color: var(--accent-strong); }

/* result screens */
.result-screen { text-align: center; padding: var(--space-4) 0 var(--space-2); }
.result-icon {
  width: 84px; height: 84px; margin: 0 auto var(--space-4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: popIn 0.35s var(--ease);
}
.result-icon svg { width: 40px; height: 40px; }
.result-icon.ok { background: var(--success-bg); color: var(--success); border: 2px solid rgba(52, 211, 153, 0.4); }
.result-icon.wait { background: var(--warning-bg); color: var(--warning); border: 2px solid rgba(251, 191, 36, 0.4); }
.result-screen h3 { font-size: 1.4rem; }
.result-screen p { color: var(--text-muted); max-width: 380px; margin: 0 auto var(--space-3); }
.ref-box {
  display: inline-flex; align-items: center; gap: var(--space-3);
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 22px; margin-top: var(--space-3); font-weight: 800;
}
.ref-box .ref { color: var(--accent-strong); font-size: 1.15rem; letter-spacing: 1px; }
.note-box {
  background: var(--warning-bg); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--warning);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  font-size: 0.88rem; margin-top: var(--space-4); text-align: start;
  display: flex; gap: var(--space-2); align-items: baseline;
}
.note-box svg { width: 15px; height: 15px; flex: none; transform: translateY(2px); }
.note-box.info { background: var(--success-bg); border-color: rgba(52, 211, 153, 0.3); color: var(--success); }

/* status chips */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 3px 12px; font-size: 0.78rem; font-weight: 800;
}
.chip svg { width: 12px; height: 12px; }
.chip-approved { background: var(--success-bg); color: var(--success); }
.chip-pending, .chip-awaiting_payment { background: var(--warning-bg); color: var(--warning); }
.chip-rejected, .chip-urgent { background: var(--danger-bg); color: var(--danger); }
.chip-expired { background: var(--surface-strong); color: var(--text-faint); }
.chip-gold { background: rgba(255, 67, 169, 0.16); color: var(--accent-strong); }
.chip-muted { background: var(--surface-strong); color: var(--text-muted); }

/* lookup results */
.lookup-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.lookup-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4); display: grid; gap: 4px;
}
.lookup-item .t { font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.lookup-item .d { color: var(--text-muted); font-size: 0.86rem; }

/* ================= OWNER MODE ================= */
.gate-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: var(--space-5); }
.gate-card {
  width: min(400px, 100%); background: rgba(24, 24, 34, 0.85); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); text-align: center;
}
.gate-card .logo { justify-content: center; margin-bottom: var(--space-5); }
.gate-card h1 { font-size: 1.4rem; }
.gate-card p { color: var(--text-muted); margin-top: 0; }

.owner-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 16, 0.92); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.owner-topbar-inner { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-3); }
.owner-topbar-inner .logo { margin-inline-end: auto; }

.owner-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); margin-block: var(--space-6); }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
}
.stat-card .n { font-size: 1.8rem; font-weight: 900; color: var(--accent-strong); line-height: 1.2; }
.stat-card .l { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; }

.owner-tabs { display: flex; gap: var(--space-2); border-bottom: 1px solid var(--border); margin-bottom: var(--space-6); overflow-x: auto; }
.owner-tab {
  background: none; border: none; padding: var(--space-3) var(--space-4);
  font-weight: 700; color: var(--text-muted); border-bottom: 3px solid transparent;
  display: flex; align-items: center; gap: var(--space-2); white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.owner-tab:hover { color: var(--text); }
.owner-tab.active { color: var(--accent-strong); border-bottom-color: var(--accent); }
.tab-badge {
  background: var(--danger); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; padding-inline: 6px; font-size: 0.75rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.tab-badge:empty, .tab-badge[data-zero] { display: none; }

.filter-pills { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); flex-wrap: wrap; }
.filter-pill {
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px;
  padding: 6px 18px; font-weight: 700; font-size: 0.88rem; color: var(--text-muted);
  transition: all 0.2s;
}
.filter-pill.active { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }

/* request rows */
.req-list { display: grid; gap: var(--space-4); }
.req-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); display: grid; gap: var(--space-3);
}
.req-card.overbook { border-color: rgba(251, 191, 36, 0.45); }
.req-top { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.req-top .name { font-weight: 800; font-size: 1.05rem; }
.req-top .when { color: var(--text-faint); font-size: 0.8rem; margin-inline-start: auto; }
.req-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); color: var(--text-muted); font-size: 0.9rem; align-items: center; }
.req-meta svg { width: 14px; height: 14px; transform: translateY(2px); }
.req-names {
  background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); font-size: 0.88rem; color: var(--text-muted);
}
.req-names b { color: var(--text); }
.req-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.overbook-flag {
  display: flex; align-items: baseline; gap: var(--space-2); color: var(--warning);
  font-size: 0.85rem; font-weight: 700;
}
.overbook-flag svg { width: 14px; height: 14px; flex: none; transform: translateY(2px); }

/* owner event cards */
.owner-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.owner-event-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.owner-event-card .event-media { aspect-ratio: 16 / 8; }
.owner-event-body { padding: var(--space-4) var(--space-5) var(--space-5); display: grid; gap: var(--space-3); }
.owner-event-body h3 { margin: 0; font-size: 1.1rem; }
.owner-event-meta { color: var(--text-muted); font-size: 0.87rem; display: grid; gap: 3px; }
.owner-event-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }

/* guest list */
.guest-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.guest-table th, .guest-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--border); }
.guest-table th { color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.guest-table td .sub { color: var(--text-muted); font-size: 0.82rem; }
.guest-toolbar { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-5); flex-wrap: wrap; }
.guest-toolbar select { max-width: 320px; }
.guest-toolbar .spacer { flex: 1; }

.empty-state {
  text-align: center; color: var(--text-faint); padding: var(--space-8) var(--space-5);
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
}
.empty-state svg { width: 44px; height: 44px; margin-bottom: var(--space-3); opacity: 0.5; }

/* image preview in event form */
.img-preview {
  aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px dashed var(--border-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--text-faint);
  margin-bottom: var(--space-2);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- legal pages ---------- */
.legal-wrap { max-width: 760px; margin-inline: auto; padding-block: var(--space-7); }
.legal-wrap h1 { font-size: 1.8rem; margin-bottom: var(--space-5); }
.legal-wrap h2 { font-size: 1.15rem; margin-top: var(--space-6); color: var(--accent-strong); }
.legal-wrap p, .legal-wrap li { color: var(--text-muted); font-size: 0.95rem; }
.legal-updated { color: var(--text-faint); font-size: 0.83rem; }
html[lang="ar"] .only-he { display: none; }
html[lang="he"] .only-ar { display: none; }

/* ---------- payment ---------- */
.card-form .input { direction: ltr; text-align: left; }
.card-form .input:disabled { opacity: 0.55; cursor: not-allowed; }
.card-form { margin-bottom: var(--space-4); }
.gateway-frame {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.gateway-frame iframe { display: block; width: 100%; height: 420px; border: none; }
.pay-secure {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-faint); font-size: 0.83rem; font-weight: 600;
  margin-top: var(--space-4);
}
.pay-secure svg { width: 15px; height: 15px; color: var(--success); }
.pay-card { text-align: start; width: min(460px, 100%); }
.pay-card .logo { justify-content: center; margin-bottom: var(--space-4); }
.pay-card .result-screen h3 { font-size: 1.25rem; }
.pay-lang { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 5; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%);
  background: #1d1d29; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 24px; font-weight: 700; z-index: 300; box-shadow: var(--shadow);
  animation: popIn 0.25s var(--ease);
}
html[dir="ltr"] .toast { transform: translateX(-50%); }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- print (guest list) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .owner-topbar, .owner-tabs, .owner-stats, .guest-toolbar, .wa-float, .filter-pills { display: none !important; }
  .guest-table th, .guest-table td { border-color: #ccc; color: #000; }
  .print-title { display: block !important; color: #000; }
}
.print-title { display: none; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
