/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.29_@babel+core@7.29.13_@opentelemetry+api@1.9.1_@types+node@22.20.5_react-dom@19.3._6i4acsxtfzv55d6jn7oig2vcfu/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.29_@babel+core@7.29.13_@opentelemetry+api@1.9.1_@types+node@22.20.5_react-dom@19.3._6i4acsxtfzv55d6jn7oig2vcfu/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/styles/design-tokens.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/**
 * BookMakan v3 design tokens (shared light theme with public site)
 * Canvas #FAFAF7 · Teal #0F766E · Plus Jakarta Sans / Cairo
 */
:root,
html[data-theme='light'],
html.light {
  --bg: #fafaf7;
  --fg: #0f172a;
  --accent: #0f766e;
  --accent-soft: #e6f4f1;
  --card: #ffffff;
  --muted: #64748b;
  --border: #e7e5e0;
  --danger: #dc2626;
  --success: #10b981;
  --sidebar: #ffffff;
  --input-bg: #ffffff;

  --color-background: var(--bg);
  --color-surface: var(--card);
  --color-surface-elevated: var(--card);
  --color-surface-sidebar: var(--sidebar);
  --color-text-primary: var(--fg);
  --color-text-secondary: var(--muted);
  --color-text-on-accent: #ffffff;
  --color-accent: var(--accent);
  --color-accent-hover: #115e59;
  --color-accent-subtle: var(--accent-soft);
  --color-border: var(--border);
  --color-border-strong: #d6d3cd;
  --color-danger: var(--danger);
  --color-success: var(--success);
  --color-input-background: var(--input-bg);
  --color-warning: #d97706;
  --color-warning-subtle: #fffbeb;
  --color-success-subtle: #ecfdf5;
  --color-danger-subtle: #fef2f2;

  --font-family-latin: var(--font-plus-jakarta), ui-sans-serif, system-ui, sans-serif;
  --font-family-arabic: var(--font-cairo), var(--font-cairo-latin), var(--font-plus-jakarta), ui-sans-serif, sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-full: 9999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 5%);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 6%);

  --color-nav-active-bg: var(--accent-soft);
  --color-nav-active-text: var(--accent);
  --color-nav-hover-bg: color-mix(in srgb, var(--accent-soft) 55%, white);
  --color-success-text: var(--success);
  --color-warning-text: var(--color-warning);
  --color-danger-text: var(--danger);
  --color-sidebar-text: var(--fg);
  --color-sidebar-text-secondary: var(--muted);
}

html[data-theme='dark'],
html.dark {
  --bg: #0b1220;
  --fg: #e2e8f0;
  --accent: #2dd4bf;
  --accent-soft: #134e4a;
  --card: #111827;
  --muted: #94a3b8;
  --border: #1f2937;
  --danger: #f87171;
  --success: #34d399;
  --sidebar: #0f172a;
  --input-bg: #0f172a;

  --color-background: var(--bg);
  --color-surface: var(--card);
  --color-surface-elevated: #1f2937;
  --color-surface-sidebar: var(--sidebar);
  --color-text-primary: var(--fg);
  --color-text-secondary: var(--muted);
  --color-text-on-accent: #042f2e;
  --color-accent: var(--accent);
  --color-accent-hover: #5eead4;
  --color-accent-subtle: var(--accent-soft);
  --color-border: var(--border);
  --color-border-strong: #374151;
  --color-danger: var(--danger);
  --color-success: var(--success);
  --color-input-background: var(--input-bg);
  --color-warning: #fbbf24;
  --color-warning-subtle: #422006;
  --color-success-subtle: #064e3b;
  --color-danger-subtle: #450a0a;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 35%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 45%);

  --color-nav-active-bg: var(--accent-soft);
  --color-nav-active-text: var(--accent);
  --color-nav-hover-bg: color-mix(in srgb, var(--accent-soft) 70%, black);
  --color-success-text: var(--success);
  --color-warning-text: var(--color-warning);
  --color-danger-text: var(--danger);
  --color-sidebar-text: var(--fg);
  --color-sidebar-text-secondary: var(--muted);
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.29_@babel+core@7.29.13_@opentelemetry+api@1.9.1_@types+node@22.20.5_react-dom@19.3._6i4acsxtfzv55d6jn7oig2vcfu/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.29_@babel+core@7.29.13_@opentelemetry+api@1.9.1_@types+node@22.20.5_react-dom@19.3._6i4acsxtfzv55d6jn7oig2vcfu/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  max-width: 100%;
}
body {
  overflow-x: clip;
  max-width: 100%;
}
img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
}
/* next/image fill wrappers keep their own height */
.bm-venue-photo img,
.bm-venue-photo .bm-venue-photo__img {
  max-width: none;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family-latin);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

html[dir='rtl'] body {
  font-family: var(--font-family-arabic);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Public website v3 (BookMakan marketing site) —— */
.bm-site {
  --bm-canvas: #fafaf7;
  --bm-surface: #ffffff;
  --bm-border: #e7e5e0;
  --bm-ink: #0f172a;
  --bm-muted: #64748b;
  --bm-teal: #0f766e;
  --bm-teal-hover: #115e59;
  --bm-tint: #e6f4f1;
  --bm-star: #f5b301;
  --bm-wa: #25d366;
  --bm-radius-btn: 10px;
  --bm-radius-card: 20px;
  --bm-radius-search: 16px;
  --bm-shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
  --bm-shadow-search: 0 16px 40px rgba(15, 23, 42, 0.12);
  --bm-container: 1200px;
  background: var(--bm-canvas);
  color: var(--bm-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bm-site .btn {
  background: var(--bm-teal);
  color: #fff;
  border: none;
  border-radius: var(--bm-radius-btn);
  height: 44px;
  padding: 0 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.bm-site .btn:hover {
  background: var(--bm-teal-hover);
  text-decoration: none;
}
.bm-site .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.bm-site .btn-ghost {
  background: #fff;
  color: var(--bm-ink);
  border: 1px solid var(--bm-border);
}
.bm-site .btn-ghost:hover {
  background: var(--bm-canvas);
}
.bm-site .btn-block {
  width: 100%;
}
.bm-btn-sm {
  height: 36px;
  padding: 0 0.9rem;
  font-size: 0.875rem;
}
.bm-btn-on-teal {
  background: #fff !important;
  color: var(--bm-teal) !important;
}
.bm-btn-on-teal:hover {
  background: var(--bm-tint) !important;
}
.bm-container {
  width: min(100% - 2rem, var(--bm-container));
  margin-inline: auto;
}
.bm-main {
  flex: 1 1;
}
.bm-page {
  padding-block: 2.5rem 4rem;
}
.bm-muted {
  color: var(--bm-muted);
}
.bm-lead {
  color: var(--bm-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}
.bm-link {
  color: var(--bm-teal);
  font-weight: 600;
}
.bm-link:hover {
  text-decoration: underline;
}
.ltr {
  direction: ltr;
  unicode-bidi: -webkit-isolate;
  unicode-bidi: isolate;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.bm-card {
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--bm-shadow-card);
}
.bm-card--accent {
  border-color: var(--bm-teal);
}
.bm-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.bm-pill--mint {
  background: var(--bm-tint);
  color: var(--bm-teal);
}
.bm-pill--on-photo {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  /* WCAG AA: teal on tint (≥4.5:1) — not white-on-white in dark mode */
  background: var(--bm-teal);
  color: #fff;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}
.bm-stars {
  color: var(--bm-star);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.bm-stars__empty {
  opacity: 0.25;
}
.bm-stars__meta {
  -webkit-margin-start: 0.35rem;
          margin-inline-start: 0.35rem;
  color: var(--bm-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
}
.bm-stars--muted {
  color: var(--bm-muted);
}
.bm-detail__rating {
  margin: 0.35rem 0 0.5rem;
}

/* Header */
.bm-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bm-canvas) 92%, white);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bm-border);
}
.bm-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  min-width: 0;
  max-width: 100%;
}
.bm-header__brand,
.bm-header .brand-logo-link,
.bm-header__mobile-tools,
.bm-header__right {
  min-width: 0;
  flex-shrink: 1;
}
.bm-header__nav {
  display: flex;
  gap: 1.25rem;
  margin-inline: auto;
}
.bm-header__link {
  color: var(--bm-ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.bm-header__link:hover {
  color: var(--bm-teal);
  text-decoration: none;
}
.bm-header__link.is-active {
  color: var(--bm-teal);
  border-bottom-color: var(--bm-teal);
}
.bm-header__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.bm-header__btn {
  text-decoration: none;
}
.bm-header__mobile-tools {
  display: none;
  align-items: center;
  gap: 0.5rem;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
}
.bm-header__menu-btn {
  border: 1px solid var(--bm-border);
  background: var(--bm-surface);
  color: var(--bm-ink);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.bm-header__drawer {
  display: none;
  border-top: 1px solid var(--bm-border);
  padding: 1rem;
  background: var(--bm-surface);
}
.bm-header__drawer-link {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--bm-ink);
  font-weight: 500;
  text-decoration: none;
}
.bm-header__drawer-link.is-active {
  color: var(--bm-teal);
}
.bm-header__drawer-auth {
  display: grid;
  grid-gap: 0.5rem;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.bm-lang__select,
.bm-site .site-select,
.auth-layout .site-select {
  height: 40px;
  border: 1px solid var(--bm-border);
  border-radius: 10px;
  background: var(--bm-surface);
  padding: 0 0.65rem;
  color: var(--bm-ink);
  font: inherit;
  color-scheme: inherit;
}
@media (max-width: 900px) {
  .bm-header__nav,
  .bm-header__right {
    display: none;
  }
  .bm-header__mobile-tools {
    display: flex;
  }
  .bm-header__drawer {
    display: block;
  }
}

/* Footer */
.bm-footer {
  margin-top: auto;
  background: var(--bm-canvas);
  border-top: 1px solid var(--bm-border);
  padding: 3rem 0 1.5rem;
  position: relative;
}
.bm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  grid-gap: 1.5rem;
  gap: 1.5rem;
}
.bm-footer__brand p,
.bm-footer a,
.bm-footer__muted {
  color: var(--bm-muted);
  font-size: 0.9rem;
  display: block;
  margin: 0.35rem 0;
  text-decoration: none;
}
.bm-footer a:hover {
  color: var(--bm-teal);
}
.bm-footer__heading {
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.bm-footer__copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bm-border);
  color: var(--bm-muted);
  font-size: 0.85rem;
}
.bm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.bm-wa-fab {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  inset-inline-end: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  background: var(--bm-wa);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.bm-footer a.bm-wa-fab,
.bm-wa-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bm-wa-fab svg {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
@media (max-width: 767px) {
  /* Clearance so last card Book CTA scrolls above the FAB */
  .bm-page--spaces {
    padding-bottom: 88px;
  }
}
@media (max-width: 900px) {
  .bm-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .bm-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ assistant — same floating position as the former WhatsApp FAB. */
.bm-assistant-fab {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--bm-teal, #0f766e);
  color: #fff !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--bm-teal, #0f766e) 40%, transparent);
  z-index: 80;
}
.bm-assistant-fab:hover,
.bm-assistant-fab:focus-visible {
  background: var(--bm-teal-hover, #115e59);
  outline: 2px solid var(--bm-teal, #0f766e);
  outline-offset: 2px;
}
.bm-assistant-panel {
  position: fixed;
  z-index: 41;
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  color: var(--fg, #111);
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  z-index: 81;
  inset-inline-end: 16px;
  bottom: calc(56px + 20px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - 108px));
  border-radius: 16px;
}
.bm-assistant-panel:focus {
  outline: none;
}
.bm-assistant-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 0.85rem;
  background: var(--bm-teal, #0f766e);
  color: #fff;
  flex-shrink: 0;
}
.bm-assistant-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.bm-assistant-panel__brand .brand-logo__mark {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.bm-assistant-panel__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.bm-assistant-panel__subtitle {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
}
.bm-assistant-panel__tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.bm-assistant-panel__count {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.bm-assistant-panel__icon-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 999px;
  min-height: 28px;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.bm-assistant-panel__icon-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.bm-assistant-panel__thread {
  flex: 0 1 auto;
  max-height: 45%;
  min-height: 4.5rem;
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bm-assistant-msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px 12px 12px 4px;
  background: color-mix(in srgb, var(--fg, #111) 7%, var(--card, #fff));
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-line;
}
.bm-assistant-msg--user {
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  border-radius: 12px 12px 4px 12px;
  background: var(--bm-teal, #0f766e);
  color: #fff;
}
.bm-assistant-panel__limit {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  background: color-mix(in srgb, #f59e0b 16%, var(--card, #fff));
  color: var(--fg, #111);
}
.bm-assistant-panel__limit a {
  color: var(--bm-teal, #0f766e);
  font-weight: 600;
}
.bm-assistant-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-top: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}
.bm-assistant-panel__chips button,
.bm-assistant-panel__faqs button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
}
.bm-assistant-panel__chips button {
  height: 1.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #f8fafc);
  color: var(--muted, #667);
  font-size: 0.72rem;
}
.bm-assistant-panel__chips button.is-active {
  border-color: var(--bm-teal, #0f766e);
  background: color-mix(in srgb, var(--bm-teal, #0f766e) 12%, var(--card, #fff));
  color: var(--bm-teal, #0f766e);
  font-weight: 600;
}
.bm-assistant-panel__faqs {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem 0.6rem;
  border-top: 1px solid var(--border, #e5e7eb);
}
.bm-assistant-panel__faqs button {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #f8fafc);
  color: var(--fg, #111);
  font-size: 0.78rem;
  line-height: 1.4;
}
.bm-assistant-panel__faqs button:hover,
.bm-assistant-panel__faqs button:focus-visible {
  border-color: var(--bm-teal, #0f766e);
  background: color-mix(in srgb, var(--bm-teal, #0f766e) 8%, var(--card, #fff));
}
.bm-assistant-panel__composer {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}
.bm-assistant-panel__composer input {
  flex: 1 1;
  min-width: 0;
  height: 2.15rem;
  padding: 0 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #f8fafc);
  color: var(--fg, #111);
  font-family: inherit;
  font-size: 0.85rem;
}
.bm-assistant-panel__composer input:focus-visible {
  outline: 2px solid var(--bm-teal, #0f766e);
  outline-offset: 1px;
}
.bm-assistant-panel__composer button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0 0.8rem;
  background: var(--bm-teal, #0f766e);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
.bm-assistant-panel__composer button:disabled {
  background: var(--border, #e5e7eb);
  color: var(--muted, #667);
  cursor: not-allowed;
}
@media (max-width: 640px) {
  .bm-assistant-panel {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    bottom: 0;
  }
}

/* Home */
.bm-hero {
  padding-top: 1.5rem;
  overflow: visible;
  max-width: 100%;
}
.bm-hero__frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  max-width: 100%;
  width: 100%;
}
.bm-hero__img,
.bm-hero__frame > .bm-venue-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}
.bm-hero__frame > .bm-venue-photo {
  position: relative;
  inset: auto;
  aspect-ratio: auto;
}
.bm-hero__frame > .bm-venue-photo .bm-venue-photo__img {
  border-radius: 24px;
}
.bm-hero__overlay {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 34rem;
  padding: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  z-index: 1;
}
html[dir='rtl'] .bm-hero__overlay {
  inset: 0 0 auto auto;
}
.bm-hero__overlay h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
}
.bm-hero__overlay p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  opacity: 0.95;
}
.bm-hero__proof {
  font-weight: 600 !important;
}
.bm-hero .bm-container {
  overflow: visible;
}
.bm-search {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: min(calc(100% - 2rem), 920px);
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: end;
  background: var(--bm-surface);
  border-radius: var(--bm-radius-search);
  box-shadow: var(--bm-shadow-search);
  padding: 0.9rem;
  z-index: 2;
}
.bm-search__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bm-muted);
}
.bm-search__field select,
.bm-search__field input,
.bm-form input,
.bm-form select,
.bm-form textarea,
.bm-filters input,
.bm-filters select,
.bm-filters button.bm-chip,
.auth-form input,
.auth-form select,
.auth-form textarea {
  height: 44px;
  border: 1px solid var(--bm-border);
  border-radius: 10px;
  padding: 0 0.75rem;
  font: inherit;
  color: var(--bm-ink);
  background: var(--bm-surface);
  width: 100%;
  max-width: 100%;
  color-scheme: inherit;
}
.bm-search__field select option,
.bm-filters select option,
.bm-lang__select option,
.site-select option {
  background: var(--bm-surface);
  color: var(--bm-ink);
}
.bm-form textarea {
  height: auto;
  padding: 0.75rem;
  resize: vertical;
}
.bm-search__btn {
  height: 48px !important;
  min-width: 120px;
}
.bm-section {
  padding: 5.5rem 0 3rem;
}
.bm-section--soft {
  background: color-mix(in srgb, var(--bm-tint) 35%, var(--bm-canvas));
}
.bm-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bm-section__head h2,
.bm-section__title-center,
.bm-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
}
.bm-section__title-center {
  text-align: center;
}
.bm-space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
  gap: 1.5rem;
}
.bm-spaces-map {
  height: min(70vh, 560px);
  width: 100%;
  border-radius: var(--bm-radius-card);
  overflow: hidden;
  border: 1px solid var(--bm-border);
  z-index: 0;
}
.bm-space-card__media-wrap {
  position: relative;
}
.bm-venue-photo {
  position: relative;
  overflow: hidden;
  background: #e6f4f1;
  width: 100%;
  height: 100%;
}
.bm-venue-photo--card {
  aspect-ratio: 16 / 10;
}
.bm-venue-photo--detail {
  aspect-ratio: 16 / 9;
  border-radius: inherit;
}
.bm-venue-photo--hero {
  position: absolute;
  inset: 0;
}
.bm-venue-photo__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.bm-venue-photo--fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 8rem;
}
.bm-venue-photo__mark {
  opacity: 0.4;
  width: 48px;
  height: 48px;
}
.bm-venue-photo__caption {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #64748b;
}
.bm-wish-heart {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #0f766e;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.bm-wish-heart.is-saved {
  color: #e11d48;
}
.bm-space-card {
  background: #fff;
  border-radius: var(--bm-radius-card);
  box-shadow: var(--bm-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bm-space-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
  background: var(--bm-tint);
}
.bm-space-card__media img,
.bm-space-card__media .bm-venue-photo,
.bm-space-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-space-card__media .bm-venue-photo {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.bm-space-card__placeholder {
  background: linear-gradient(135deg, #99f6e4, #0f766e);
}
.bm-space-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1;
}
.bm-space-card__title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.bm-space-card__title a {
  color: inherit;
  text-decoration: none;
}
.bm-space-card__city {
  margin: 0;
  color: var(--bm-muted);
  font-size: 0.9rem;
}
.bm-space-card__foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.bm-space-card__price {
  margin: 0;
  font-size: 0.9rem;
  color: var(--bm-muted);
}
.bm-space-card__price strong {
  color: var(--bm-ink);
  font-size: 1rem;
}
.bm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.5rem;
  gap: 1.5rem;
}
.bm-step {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--bm-border);
}
.bm-step__icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.bm-step h3 {
  margin: 0.35rem 0;
}
.bm-step p {
  margin: 0;
  color: var(--bm-muted);
}
.bm-owners-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bm-teal);
  color: #fff;
  border-radius: 20px;
  padding: 2rem 2.25rem;
  margin: 1rem 0 2rem;
}
.bm-owners-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}
.bm-owners-cta p {
  margin: 0;
  opacity: 0.92;
}
.bm-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.25rem;
  gap: 1.25rem;
}
.bm-testimonial {
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--bm-shadow-card);
}
.bm-testimonial h3 {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}
.bm-testimonial p {
  color: var(--bm-muted);
  margin: 0 0 0.75rem;
}

/* Spaces explorer */
.bm-spaces__head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
}
.bm-filters {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: end;
  margin: 1.25rem 0 1.75rem;
}
@media (min-width: 640px) {
  .bm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .bm-filters { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
.bm-filters input,
.bm-filters select,
.bm-filters .btn {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  box-sizing: border-box;
  margin: 0;
}
.bm-filters__search {
  min-width: 0;
  width: 100%;
}
.bm-sport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bm-sport-pills button {
  border: 1px solid var(--bm-border);
  background: var(--bm-surface);
  color: var(--bm-ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font: inherit;
}
.bm-sport-pills button.is-active {
  background: var(--bm-teal);
  border-color: var(--bm-teal);
  color: #fff;
}
.bm-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
}
.bm-pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--bm-border);
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.bm-pagination button.is-active {
  background: var(--bm-tint);
  border-color: var(--bm-teal);
  color: var(--bm-teal);
  font-weight: 700;
}
.bm-empty {
  padding: 2rem 0;
}

/* Detail */
.bm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--bm-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.bm-breadcrumb a {
  color: var(--bm-muted);
}
.bm-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  grid-gap: 2rem;
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.bm-detail,
.bm-detail__main,
.bm-detail__layout > * {
  min-width: 0;
  max-width: 100%;
}
.bm-detail {
  overflow-x: clip;
}
.bm-detail__main,
.bm-book-panel {
  overflow-x: clip;
}
.bm-gallery,
.bm-gallery__main,
.bm-map-placeholder {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.bm-map-placeholder {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.bm-detail__head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
}
.bm-gallery__main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bm-tint);
}
.bm-gallery__main img,
.bm-gallery__main .bm-venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-gallery__main .bm-venue-photo {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.bm-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 0.65rem;
  gap: 0.65rem;
  margin-top: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.bm-gallery__thumbs img,
.bm-gallery__thumbs .bm-venue-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.bm-gallery__thumbs .bm-venue-photo {
  position: relative;
}
.bm-detail__block {
  margin-top: 1.75rem;
}
.bm-detail__block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.bm-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bm-hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--bm-border);
}
.bm-map-placeholder {
  margin-top: 0.75rem;
  border-radius: 14px;
  border: 1px dashed var(--bm-border);
  background: var(--bm-tint);
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--bm-teal);
  font-weight: 600;
}
.bm-book-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 92px;
  background: var(--bm-surface);
  border: 1px solid var(--bm-border);
  border-radius: 18px;
  box-shadow: var(--bm-shadow-card);
  padding: 1.25rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.bm-book-panel__price {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}
.bm-date-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0.35rem;
  margin-bottom: 0.85rem;
  -webkit-overflow-scrolling: touch;
}
.bm-date-strip button {
  flex: 0 0 auto;
  min-width: 52px;
  border: 1px solid var(--bm-border);
  background: var(--bm-surface);
  color: var(--bm-ink);
  border-radius: 12px;
  padding: 0.45rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font: inherit;
}
.bm-date-strip button.is-active,
.bm-slot-grid button.is-active {
  background: var(--bm-teal);
  border-color: var(--bm-teal);
  color: #fff;
}
.bm-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 0.45rem;
  gap: 0.45rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
}
.bm-slot-grid button {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--bm-border);
  background: var(--bm-surface);
  color: var(--bm-ink);
  cursor: pointer;
  font: inherit;
  min-width: 0;
}
.bm-slot-grid button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bm-book-panel__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.bm-book-panel__note {
  margin: 0.75rem 0 0;
  color: var(--bm-teal);
  font-size: 0.9rem;
  text-align: center;
}

/* About */
.bm-about__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: center;
  padding-top: 2.5rem;
}
.bm-about__hero h1 {
  color: var(--bm-teal);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.bm-about__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.bm-about__stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--bm-teal);
}
.bm-about__stats span {
  color: var(--bm-muted);
  font-size: 0.85rem;
}
.bm-about__photo img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.bm-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
}
.bm-value {
  background: #fff;
  border: 1px solid var(--bm-border);
  border-radius: 16px;
  padding: 1.25rem;
}
.bm-value__icon {
  font-size: 1.5rem;
}
.bm-pattern {
  height: 48px;
  margin: 1rem 0;
  background:
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--bm-teal) 18%, transparent) 0 12px,
      transparent 12px 24px
    );
  opacity: 0.65;
}
.bm-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  text-align: center;
}
.bm-team__avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: var(--bm-tint);
  color: var(--bm-teal);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
}
.bm-team__member span {
  display: block;
  color: var(--bm-muted);
  font-size: 0.9rem;
}

/* Contact */
.bm-contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: start;
}
.bm-contact h1 {
  color: var(--bm-teal);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.5rem;
}
.bm-form {
  display: grid;
  grid-gap: 0.85rem;
  gap: 0.85rem;
  margin-top: 1rem;
}
.bm-form label {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.bm-contact__aside {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}
.bm-wa-card {
  background: var(--bm-tint);
  border-color: transparent;
  color: var(--bm-teal);
  text-decoration: none;
  display: grid;
  grid-gap: 0.25rem;
  gap: 0.25rem;
}
.bm-info-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.bm-info-card p {
  margin: 0.15rem 0 0;
  color: var(--bm-muted);
}
.bm-faq {
  margin-top: 3rem;
}
.bm-faq__item {
  border-bottom: 1px solid var(--bm-border);
}
.bm-faq__item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1rem 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  color: var(--bm-ink);
}
.bm-faq__item p {
  margin: 0 0 1rem;
  color: var(--bm-muted);
}

/* Owners */
.bm-owners-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-gap: 0;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 1.5rem;
  background: var(--bm-teal);
  color: #fff;
  min-height: 360px;
}
.bm-owners-hero__copy {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.bm-owners-hero__copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
}
.bm-owners-hero__copy p {
  margin: 0;
  opacity: 0.92;
}
.bm-owners-hero__visual {
  position: relative;
  min-height: 280px;
}
.bm-owners-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-owners-hero__stat {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--bm-ink);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--bm-shadow-card);
  min-width: 180px;
}
html[dir='rtl'] .bm-owners-hero__stat {
  left: auto;
  right: 50%;
  transform: translate(50%, -50%);
}
.bm-owners-hero__stat p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}
.bm-owners-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
}
.bm-owner-benefit h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1rem;
}
.bm-owner-benefit p {
  margin: 0;
  color: var(--bm-muted);
  font-size: 0.9rem;
}
.bm-owner-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.25rem;
  gap: 1.25rem;
}
.bm-owner-steps__n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bm-teal);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.bm-owners-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-gap: 1.5rem;
  gap: 1.5rem;
  align-items: start;
}
.bm-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}
.bm-pricing__price {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0.35rem 0;
}
.bm-pricing__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--bm-muted, var(--bm-ink-muted, #52606d));
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .bm-space-grid,
  .bm-owners-benefits,
  .bm-team {
    grid-template-columns: repeat(2, 1fr);
  }
  .bm-detail__layout,
  .bm-about__hero,
  .bm-contact__grid,
  .bm-owners-bottom,
  .bm-owners-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .bm-book-panel {
    position: static;
    width: 100%;
  }
}
@media (max-width: 720px) {
  .bm-hero__img {
    height: 320px;
  }
  .bm-hero__overlay {
    padding: 1.5rem;
  }
  .bm-hero__overlay h1 {
    font-size: 1.85rem;
  }
  .bm-search {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: -1.5rem;
    grid-template-columns: 1fr;
  }
  .bm-hero__frame {
    min-height: 320px;
  }
  .bm-space-grid,
  .bm-steps,
  .bm-testimonials,
  .bm-values,
  .bm-owner-steps,
  .bm-pricing,
  .bm-about__stats,
  .bm-team,
  .bm-owners-benefits {
    grid-template-columns: 1fr;
  }
  .bm-owners-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .bm-section {
    padding: 3.5rem 0 2rem;
  }
}


/* Brand logo (shared) */
.brand-logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
}
.brand-logo-link:hover {
  text-decoration: none;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--bm-ink, var(--fg));
}
.brand-logo__mark {
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-logo__text {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-logo--light,
.brand-logo--light .brand-logo__text {
  color: #fff;
}

/* —— Logged-in app shell (legacy AppLayout) —— */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
.app-shell--collapsed {
  grid-template-columns: 64px 1fr;
}

.app-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 56px;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.app-sidebar-collapse {
  display: inline-flex;
}
.app-sidebar-close {
  display: none;
}

.app-nav {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-bottom: 0.35rem;
}

.app-nav-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.5rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-nav-section-label::before,
.app-nav-section-label::after {
  content: '';
  flex: 1 1;
  height: 1px;
  background: var(--border);
}
.app-nav-section-rule {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0.25rem;
}

.app-nav-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.55rem 0.625rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.8125rem;
  margin-bottom: 2px;
}
.app-nav-link:hover {
  background: color-mix(in srgb, var(--border) 55%, transparent);
  color: var(--fg);
  text-decoration: none;
}
.app-nav-link.active {
  background: var(--accent-soft);
  color: #0f766e;
  font-weight: 500;
}
html[data-theme='dark'] .app-nav-link.active,
html.dark .app-nav-link.active {
  color: var(--accent);
}
.app-nav-icon {
  width: 1.125rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.9;
}

.app-sidebar.is-collapsed .brand-logo__text,
.app-sidebar.is-collapsed .app-sidebar-user-meta {
  display: none;
}
.app-sidebar.is-collapsed .app-nav-link {
  justify-content: center;
  padding: 0.625rem 0;
}
.app-sidebar.is-collapsed .app-sidebar-brand {
  justify-content: center;
}
.app-sidebar.is-collapsed .app-sidebar-collapse {
  display: none;
}

.app-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.app-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1;
  text-decoration: none;
  color: inherit;
}
.app-sidebar-user:hover { text-decoration: none; }
.app-sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-sidebar-user-role {
  font-size: 0.6875rem;
  color: var(--muted);
}

.app-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.app-avatar--btn {
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.app-avatar--btn.is-open {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.app-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}

.app-topbar-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.app-topbar-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.app-lang-select {
  height: 30px;
  font-size: 0.75rem;
}
.app-menu-btn { display: none; }

.app-profile {
  position: relative;
}
.app-profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
}
.app-profile-menu {
  position: absolute;
  top: 38px;
  inset-inline-end: 0;
  width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 99;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.app-profile-menu__head {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border);
}
.app-profile-menu__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
}
.app-profile-menu__email {
  font-size: 0.6875rem;
  color: var(--muted);
  margin: 0.125rem 0 0.375rem;
}
.app-profile-menu__item {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--muted);
  background: transparent;
  border: none;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.app-profile-menu__item:hover {
  background: color-mix(in srgb, var(--border) 55%, transparent);
  text-decoration: none;
  color: var(--fg);
}
.app-profile-menu__item.is-danger {
  color: var(--danger);
  border-top: 1px solid var(--border);
}
.app-profile-menu__item.is-danger:hover {
  background: var(--color-danger-subtle);
}

.app-content {
  flex: 1 1;
  overflow: auto;
  padding: 1.25rem;
  width: 100%;
  max-width: none;
}

.app-sidebar-backdrop { display: none; }

.app-loading {
  min-height: 50vh;
  display: grid;
  place-items: center;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-title {
  margin: 0 0 0.25rem;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--fg);
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.page-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 0.85rem;
  gap: 0.85rem;
}

.stat-card {
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.125rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.2;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.stat-sub {
  color: var(--muted);
  font-size: 0.75rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table th,
.data-table td {
  text-align: start;
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--bg) 80%, var(--card));
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.data-table-wrap .data-table {
  margin: 0;
}

.data-table-wrap .data-table th:first-child,
.data-table-wrap .data-table td:first-child {
  -webkit-padding-start: 1rem;
          padding-inline-start: 1rem;
}

.booking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--input-bg);
  color: var(--fg);
  font: inherit;
}

.inline-field {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-weight: 400;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  color: var(--fg);
}

.slot-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.slot-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reservation-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--border);
}

.rate-box {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.alert {
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.alert-error {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}

.alert-success {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
}


/* —— Logged-in app v3 polish (player / owner / admin) —— */
.app-shell {
  background: var(--bg);
}
.app-shell .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 40px;
  padding: 0 1rem;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.app-shell .btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}
.app-shell .btn-ghost {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
}
.app-shell .btn-ghost:hover {
  background: var(--bg);
}
.app-shell .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 1.15rem 1.25rem;
}
.app-shell .stat-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.app-shell .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.app-shell .stat-label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.app-shell .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 0.85rem;
  gap: 0.85rem;
}
.app-shell .card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.app-shell .card-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.app-shell .page-title,
.app-shell .page-header h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-sidebar {
  -webkit-border-end: 1px solid var(--border);
          border-inline-end: 1px solid var(--border);
  background: var(--sidebar);
}
.app-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.app-shell .booking-list li {
  border-bottom-color: var(--border);
}
.app-shell input,
.app-shell select,
.app-shell textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  font-family: inherit;
}
.app-shell .slot-btn.active,
.app-shell .date-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.app-shell .slot-btn,
.app-shell .date-chip {
  border-radius: 10px;
  border: 1px solid var(--border);
}
.app-topbar {
  background: color-mix(in srgb, var(--bg) 90%, white);
  border-bottom: 1px solid var(--border);
}
.app-lang-select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 0.5rem;
  font: inherit;
}

/* —— Auth (v3 public tokens) —— */
.auth-layout {
  --bg: #fafaf7;
  --fg: #0f172a;
  --accent: #0f766e;
  --accent-soft: #e6f4f1;
  --card: #ffffff;
  --muted: #64748b;
  --border: #e7e5e0;
  --color-accent-hover: #115e59;
  --color-text-on-accent: #ffffff;
  min-height: 100vh;
  background: #fafaf7;
  color: #0f172a;
  position: relative;
}

.auth-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  z-index: 2;
}
.auth-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-layout__body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 1.5rem;
}

.auth-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid #e7e5e0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.auth-layout .btn {
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 44px;
  font-weight: 600;
}
.auth-layout .btn:hover {
  background: #115e59;
}
/* Only the auth form/body — do not override the shared SiteHeader tokens. */
.auth-layout__body a,
.auth-layout .auth-card a,
.auth-layout .auth-footer a,
.auth-layout .auth-footer button {
  color: var(--bm-teal, #0f766e);
}
.auth-layout .ld-header__link { color: var(--bm-muted); }
.auth-layout .ld-header__link:hover,
.auth-layout .ld-header__link.is-active { color: var(--bm-teal); }
.auth-layout .ld-login { color: var(--bm-ink); }
.auth-layout .ld-login:hover { color: var(--bm-teal); }
.auth-layout .ld-icon-btn,
.auth-layout .ld-header .ld-icon-btn { color: var(--bm-muted); background: transparent; border: 0; }
.auth-layout .ld-lang { color: var(--bm-ink); }
.auth-layout input:focus {
  outline: 2px solid #e6f4f1;
  border-color: #0f766e;
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.375rem;
  color: var(--fg);
}
.auth-subtitle {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin: 0 0 1.5rem;
}
.auth-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.auth-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.auth-field-error {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--danger, #b42318);
}
.auth-label.is-invalid input {
  border-color: var(--danger, #b42318);
}
.auth-otp-tabs {
  margin: 0 0 1rem;
}

.auth-label input,
.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  background: var(--input-bg);
  color: var(--fg);
  outline: none;
}
.auth-form textarea {
  height: auto;
  min-height: 88px;
  padding: 0.625rem 0.75rem;
}
.auth-label input:focus,
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-forgot {
  text-align: end;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}
.auth-forgot a {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}
.auth-forgot a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 1.125rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}
.auth-footer--tight {
  margin-top: 0.5rem;
}
.auth-footer a,
.auth-footer button {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.auth-footer a:hover,
.auth-footer button:hover { text-decoration: underline; }

.btn-google {
  height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 400;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-google:hover {
  text-decoration: none;
  background: var(--bg);
}
.btn-google__mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ea4335;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--input-bg);
}
.segmented button {
  border: none;
  background: transparent;
  padding: 0.45rem;
  border-radius: 0.35rem;
  cursor: pointer;
  color: var(--fg);
}
.segmented button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Status pills */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-confirmed,
.badge-active,
.badge-completed {
  background: var(--color-success-subtle);
  color: var(--color-success-text, var(--success));
}

.badge-pending,
.badge-hold {
  background: var(--color-warning-subtle);
  color: var(--color-warning-text, var(--color-warning));
}

.badge-cancelled,
.badge-canceled,
.badge-banned,
.badge-rejected {
  background: var(--color-danger-subtle);
  color: var(--color-danger-text, var(--danger));
}

/* Empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.empty-state-art {
  max-width: 200px;
  height: auto;
}

.empty-state-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.empty-state-desc {
  margin: 0;
  color: var(--muted);
  max-width: 22rem;
  font-size: 0.9rem;
}

.empty-state-action {
  margin-top: 0.35rem;
}

/* Date strip + slot chips */
.date-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.date-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 4.25rem;
  min-height: 4.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font: inherit;
}

.date-chip .dow {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.date-chip .dom {
  font-size: 1.1rem;
  font-weight: 700;
}

.date-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-text-on-accent);
}

.date-chip.active .dow {
  color: var(--color-text-on-accent);
  opacity: 0.9;
}

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.slot-legend i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  display: inline-block;
}

.slot-legend .lg-available i {
  background: var(--input-bg);
}

.slot-legend .lg-selected i {
  background: var(--accent);
  border-color: var(--accent);
}

.slot-legend .lg-booked i {
  background: var(--border);
  opacity: 0.7;
}

.slot-btn {
  min-height: 44px;
  border-radius: var(--radius-md);
}

.slot-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-text-on-accent);
}

.slot-btn.active .meta {
  color: var(--color-text-on-accent);
  opacity: 0.9;
}

.slot-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.btn {
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--color-text-on-accent);
  border: 1px solid transparent;
}

.btn:hover {
  background: var(--color-accent-hover);
  filter: none;
}

.card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Mobile drawer */
@media (max-width: 860px) {
  .app-shell,
  .app-shell--collapsed {
    grid-template-columns: 1fr;
  }

  .app-menu-btn {
    display: inline-flex !important;
  }

  .app-sidebar-collapse {
    display: none !important;
  }

  .app-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgb(15 23 42 / 40%);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .app-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .app-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(220px, 86vw);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-md);
    border-right: 1px solid var(--border);
    background: var(--sidebar);
  }

  html[dir='rtl'] .app-sidebar {
    transform: translateX(105%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-sidebar.is-collapsed {
    width: min(220px, 86vw);
  }
  .app-sidebar.is-collapsed .brand-logo__text {
    display: inline;
  }
  .app-sidebar.is-collapsed .app-sidebar-user-meta {
    display: flex;
  }
  .app-sidebar.is-collapsed .app-nav-link {
    justify-content: flex-start;
    padding: 0.55rem 0.625rem;
  }

  .app-sidebar-close {
    display: inline-flex !important;
  }

  .app-nav {
    flex-direction: column;
  }

  .app-content {
    padding: 1rem;
  }
}


.site-page-pad {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}


/* Modals (legacy ConfirmModal / Modal) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 40%);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}
.modal__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.modal__body {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}


.app-notif-bell {
  position: relative;
}
.app-notif-dot {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card);
  line-height: 1;
}

.messages-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  min-height: 420px;
}
@media (max-width: 768px) {
  .messages-layout { grid-template-columns: 1fr; }
}
.messages-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: auto;
  max-height: 70vh;
}
.messages-list button,
.messages-list a {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.75rem 0.875rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.messages-list button.is-active,
.messages-list a.is-active {
  background: var(--accent-soft);
}
.messages-thread {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 70vh;
}
.messages-thread__body {
  flex: 1 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.msg-bubble {
  max-width: 75%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.msg-bubble.is-mine {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: transparent;
}
.messages-thread__composer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}
.messages-thread__composer input {
  flex: 1 1;
}
.notif-item {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.notif-item.is-unread {
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.notif-item__type {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}


/* ——— Social polish (presence, members, hold) ——— */
.presence-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--muted);
  flex-shrink: 0;
  vertical-align: middle;
}
.presence-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 25%, transparent);
}
.member-row,
.player-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: start;
}
.member-row__name,
.player-search-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.member-row__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.social-page .social-card {
  border: 1px solid var(--border);
  border-radius: 12px;
}
.social-page .social-card-block {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.social-page .social-card-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.social-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
}
.hold-banner {
  padding: 1rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}
.space-scope {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0;
}
html[dir='rtl'] .member-row__name,
html[dir='rtl'] .player-search-row {
  flex-direction: row;
}
html[dir='rtl'] .messages-layout {
  direction: rtl;
}
html[dir='rtl'] .msg-bubble.is-mine {
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  -webkit-margin-end: 0;
          margin-inline-end: 0;
}

.bm-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bm-reviews__item {
  padding: 1rem;
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  background: #fff;
}
.bm-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.bm-reviews__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.bm-reviews__photos .bm-venue-photo {
  aspect-ratio: 1;
  border-radius: 10px;
}

/* Theme toggle (v3 header / auth) */
.bm-site .icon-btn,
.auth-layout .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--bm-border, var(--border));
  background: var(--bm-surface, var(--card));
  color: var(--bm-ink, var(--fg));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}
.bm-site .icon-btn:hover,
.auth-layout .icon-btn:hover {
  background: var(--bm-tint, var(--accent-soft));
  color: var(--bm-teal, var(--accent));
  border-color: color-mix(in srgb, var(--bm-teal, var(--accent)) 35%, var(--bm-border, var(--border)));
}

/* Public site dark tokens (v3 teal accent, accessible contrast) */
html[data-theme='dark'] .bm-site,
html.dark .bm-site {
  --bm-canvas: #0b1220;
  --bm-surface: #111827;
  --bm-border: #1f2937;
  --bm-ink: #e2e8f0;
  --bm-muted: #94a3b8;
  --bm-teal: #2dd4bf;
  --bm-teal-hover: #5eead4;
  --bm-tint: #134e4a;
  --bm-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --bm-shadow-search: 0 16px 40px rgba(0, 0, 0, 0.45);
}
html[data-theme='dark'] .bm-site .btn-ghost,
html.dark .bm-site .btn-ghost {
  background: var(--bm-surface);
  color: var(--bm-ink);
  border-color: var(--bm-border);
}
html[data-theme='dark'] .auth-layout,
html.dark .auth-layout {
  --bm-canvas: #0b1220;
  --bm-surface: #111827;
  --bm-border: #1f2937;
  --bm-ink: #e2e8f0;
  --bm-muted: #94a3b8;
  --bm-teal: #2dd4bf;
  --bm-teal-hover: #5eead4;
  --bm-tint: #134e4a;
  background: var(--bm-canvas);
  color: var(--bm-ink);
}

/* —— Dark mode: native controls (BUG-UI-009) —— */
html[data-theme='dark'],
html.dark {
  color-scheme: dark;
}
html[data-theme='dark'] .bm-site,
html.dark .bm-site,
html[data-theme='dark'] .auth-layout,
html.dark .auth-layout {
  color-scheme: dark;
}
html[data-theme='dark'] .bm-lang__select,
html.dark .bm-lang__select,
html[data-theme='dark'] .bm-header__menu-btn,
html.dark .bm-header__menu-btn,
html[data-theme='dark'] .site-select,
html.dark .site-select,
html[data-theme='dark'] .bm-search__field select,
html.dark .bm-search__field select,
html[data-theme='dark'] .bm-search__field input,
html.dark .bm-search__field input,
html[data-theme='dark'] .bm-filters input,
html.dark .bm-filters input,
html[data-theme='dark'] .bm-filters select,
html.dark .bm-filters select,
html[data-theme='dark'] .bm-form input,
html.dark .bm-form input,
html[data-theme='dark'] .bm-form select,
html.dark .bm-form select,
html[data-theme='dark'] .bm-form textarea,
html.dark .bm-form textarea,
html[data-theme='dark'] .auth-form input,
html.dark .auth-form input,
html[data-theme='dark'] .auth-form select,
html.dark .auth-form select,
html[data-theme='dark'] .auth-card input,
html.dark .auth-card input {
  background: var(--bm-surface, #111827);
  color: var(--bm-ink, #e2e8f0);
  border-color: var(--bm-border, #1f2937);
  color-scheme: dark;
}
html[data-theme='dark'] .bm-lang__select option,
html.dark .bm-lang__select option,
html[data-theme='dark'] .bm-search__field select option,
html.dark .bm-search__field select option,
html[data-theme='dark'] .bm-filters select option,
html.dark .bm-filters select option,
html[data-theme='dark'] .site-select option,
html.dark .site-select option {
  background: #111827;
  color: #e2e8f0;
}
html[data-theme='dark'] .bm-search__field input::placeholder,
html.dark .bm-search__field input::placeholder,
html[data-theme='dark'] .bm-filters input::placeholder,
html.dark .bm-filters input::placeholder,
html[data-theme='dark'] .auth-form input::placeholder,
html.dark .auth-form input::placeholder {
  color: var(--bm-muted, #94a3b8);
  opacity: 1;
}
html[data-theme='dark'] .bm-search,
html.dark .bm-search {
  background: var(--bm-surface, #111827);
  border: 1px solid var(--bm-border, #1f2937);
}
html[data-theme='dark'] .bm-header__drawer,
html.dark .bm-header__drawer {
  background: var(--bm-surface, #111827);
}
html[data-theme='dark'] .bm-filters,
html.dark .bm-filters {
  color: var(--bm-ink, #e2e8f0);
}

/* Gallery / cards never exceed viewport */
.bm-gallery,
.bm-gallery__main,
.bm-detail__layout,
.bm-space-card,
.bm-page,
.bm-main,
.bm-site {
  max-width: 100%;
  min-width: 0;
}
.bm-gallery__main,
.bm-space-card__media {
  overflow: hidden;
}

/* User avatar */
.bm-avatar {
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
  background: var(--bm-tint, #e6f4f1);
}
.bm-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bm-teal, #0f766e);
  background: var(--bm-tint, #e6f4f1);
}
.bm-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.auth-social-stack {
  display: grid;
  grid-gap: 0.65rem;
  gap: 0.65rem;
}
.btn-facebook {
  background: #1877f2 !important;
  color: #fff !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-facebook:hover {
  background: #166fe5 !important;
}
.btn-facebook__mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #1877f2;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}
.app-shell-avatar {
  -webkit-margin-end: 0.35rem;
          margin-inline-end: 0.35rem;
}

/* Sport filter chips — dark mode (BUG-UI-009) */
html[data-theme='dark'] .bm-sport-pills button,
html.dark .bm-sport-pills button {
  background: var(--bm-surface, #111827);
  color: var(--bm-ink, #e2e8f0);
  border-color: var(--bm-border, #1f2937);
}
html[data-theme='dark'] .bm-sport-pills button.is-active,
html.dark .bm-sport-pills button.is-active {
  background: var(--bm-teal, #2dd4bf);
  border-color: var(--bm-teal, #2dd4bf);
  color: #0b1220;
}
html[data-theme='dark'] .bm-pill--on-photo,
html.dark .bm-pill--on-photo {
  background: var(--bm-teal, #2dd4bf);
  color: #0b1220;
}
html[data-theme='dark'] .bm-book-panel,
html.dark .bm-book-panel,
html[data-theme='dark'] .bm-date-strip button,
html.dark .bm-date-strip button,
html[data-theme='dark'] .bm-slot-grid button,
html.dark .bm-slot-grid button {
  background: var(--bm-surface, #111827);
  color: var(--bm-ink, #e2e8f0);
  border-color: var(--bm-border, #1f2937);
}

/* Public-site typography (redesign). Dashboard is not scoped here. */
.bm-site,
.auth-layout {
  --font-site: var(--font-montserrat), var(--font-family-latin);
  font-family: var(--font-site);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
html[lang='ar'] .bm-site,
html[lang='ar'] .auth-layout {
  --font-site: var(--font-family-arabic), var(--font-cairo-latin), var(--font-family-latin);
  line-height: 1.6;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Group share sheet: join code, QR, and link. */
.bm-group-share {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}
.bm-group-share__label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #667);
}
.bm-group-share__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.bm-group-share__row .btn { flex-shrink: 0; }
.bm-group-share__code {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fg, #111);
}
.bm-group-share__link {
  margin: 0;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--fg, #111);
}
.bm-group-share__row--link { align-items: flex-start; }
.bm-group-share__qr-block {
  display: grid;
  justify-items: center;
  grid-gap: 0.6rem;
  gap: 0.6rem;
}
.bm-group-share__qr img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--border, #e5e7eb);
}
.bm-group-share__qr-skel {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg, #111) 8%, transparent);
  animation: bm-share-pulse 1.2s ease-in-out infinite;
}
.bm-group-share__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--bm-teal, #0f766e);
  text-align: center;
}
@keyframes bm-share-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.bm-share-dialog {
  width: calc(100% - 1.5rem);
  max-width: 26rem;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--card, #fff);
  color: var(--fg, #111);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
}
.bm-share-dialog::-webkit-backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.bm-share-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.bm-share-dialog__form {
  display: grid;
  grid-gap: 0.85rem;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1.25rem;
}
.bm-share-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.bm-share-dialog__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.bm-share-dialog__close {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #667);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}
@media (max-width: 640px) {
  .bm-share-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    max-height: 92dvh;
  }
  .bm-share-dialog[open] {
    position: fixed;
    bottom: 0;
    top: auto;
  }
}

.bm-join-page {
  width: min(28rem, 100%);
  margin: 2rem auto;
  padding: 0 1rem 2rem;
}
.bm-join-page__card {
  padding: 1.25rem;
}

