@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Alexandria-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'PingAR LT';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/PingAR+LT-Light.otf') format('opentype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'PingAR LT';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/PingAR+LT-Medium.otf') format('opentype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'PingAR LT';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/PingAR+LT-Bold.otf') format('opentype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'PingAR LT';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/PingAR+LT-Heavy.otf') format('opentype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --brand-primary: #CC3333;
  --brand-accent: #66CC66;
  --brand-navy: #000033;
  --brand-white: #FFFFFF;
  --header-height: 60px;
  --footer-min: 96px;
  --viewport-h: 100vh;

  /* light defaults */
  --bg: #ffffff;
  --fg: #101426;
  --muted: #5f6a86;
  --card: #F3F5FA;
  --tile: #f7f8fc;
  --tile-border: #e5e9f3;
  --btn-bg: var(--brand-primary);
  --btn-fg: #ffffff;
  --link: #0a58ff;
  --marquee-duration: 50s;
  --drop: rgba(0, 0, 0, 0.12);

  /* brand gradient tuning for LIGHT theme */
  --bg-alt: #f3f5fa;
  /* subtle vertical blend end */
  --grad-accent: 18%;
  /* corner glow strengths */
  --grad-primary: 24%;
  --grad-navy: 30%;
  --corner3-color: var(--brand-navy);
  --grad-corner3: 35%;
}

@supports (height: 100svh) {
  :root {
    --viewport-h: 100svh;
  }
}

/* Prevent flash before theme initializes — disabled to avoid blank screen */
body.theme-init {}

.theme-dark {
  --bg: #0b0f1c;
  --fg: #e9ecff;
  --muted: #a3add0;
  --card: #11172b;
  --tile: #121a33;
  --tile-border: #1e2745;
  --btn-bg: var(--brand-accent);
  --btn-fg: #0b0f1c;
  --link: #8ab4ff;
  --drop: rgba(255, 255, 255, 0.12);

  /* brand gradient tuning for DARK theme */
  --bg-alt: #0a0e19;
  /* subtle vertical blend end */
  --grad-accent: 26%;
  --grad-primary: 32%;
  --grad-navy: 46%;
  --corner3-color: var(--brand-white);
  --grad-corner3: 26%;
}

* {
  box-sizing: border-box
}

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

a:hover {
  text-decoration: underline
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #1a6c40;
  color: #fff;
  padding: .5em 1em;
  border-radius: 6px;
  z-index: 3
}

.skip-link:focus {
  left: 8px
}

html[lang="ar"] .skip-link {
  left: auto;
  right: -999px;
}

html[lang="ar"] .skip-link:focus {
  right: 8px;
  left: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--tile-border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1200
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center
}

.brand-logo {
  display: block
}

.brand-logo img {
  height: 60px;
  /* desktop default */
  width: auto;
  /* keep aspect ratio from your 835×840 source */
}

@media (max-width: 640px) {
  .brand-logo img {
    height: 48px;
  }
}

.brand-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2
}

/* Brand title color: navy in light, white in dark */
body:not(.theme-dark) .brand-title { color: var(--brand-navy); }
.theme-dark .brand-title { color: var(--brand-white); }
@media (max-width: 420px) {
  .brand-title { font-size: 1.2rem; }
}

.brand-sub {
  font-size: .95rem;
  color: var(--muted)
}

.brand-sub-ar {
  margin-inline-start: .5ch;
  color: var(--muted)
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Full-page loader (enhanced styling overrides in main CSS) */
.page-loader{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--fg);z-index:9999}
.page-loader.hide{opacity:0;pointer-events:none;transition:opacity .25s ease}
.page-loader .pl-card{display:flex;gap:10px;align-items:center;padding:12px 16px;border-radius:12px;border:1px solid var(--tile-border);background:var(--card);box-shadow:0 12px 40px rgba(0,0,0,.22)}
.page-loader .pl-spin{width:18px;height:18px;border-radius:50%;border:3px solid color-mix(in srgb, var(--fg) 18%, transparent);border-top-color:var(--btn-bg);animation:sbSpin .8s linear infinite}
.page-loader .pl-text{font-weight:700}
@keyframes sbSpin{to{transform:rotate(360deg)}}

html[lang="ar"] body {
  font-family: 'PingAR LT', 'Alexandria', 'Helvetica Neue', Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

/* Page-wide brand gradient as the page background */
body {
  background:
    radial-gradient(1200px 500px at 20% -10%, color-mix(in oklab, var(--brand-primary) var(--grad-primary), transparent), transparent 60%),
    radial-gradient(1000px 420px at 110% 10%, color-mix(in oklab, var(--brand-accent) var(--grad-accent), transparent), transparent 60%),
    radial-gradient(900px 520px at 50% 110%, color-mix(in oklab, var(--corner3-color) var(--grad-corner3), transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt, var(--bg)) 100%);
  background-attachment: fixed;
  /* keep the gradient steady on scroll */
}

/* Let sections be transparent so the body gradient shows through */
.site-header,
.hero,
.dish-marquee,
.site-footer {
  background: transparent;
}

body {
  min-height: var(--viewport-h);
  display: flex;
  flex-direction: column;
  font-family: 'PingAR LT', 'Alexandria', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PingAR LT', 'Alexandria', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.page-content > .dish-marquee {
  flex: 0 0 auto;
}

.site-footer {
  flex: 0 0 auto
}

.rtl {
  direction: rtl;
  text-align: right
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.header-actions .toggles {
  order: 1;
}

.header-actions .btn {
  order: 2;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  background: var(--tile);
  color: var(--fg);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle-bar {
  width: 20px;
  height: 2px;
  background: currentColor;
  display: block;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

body.mobile-menu-open .menu-toggle {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg)
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--tile-border)
}

.btn-ghost {
  background: transparent;
  color: var(--fg)
}

.btn:hover {
  transform: translateY(-1px)
}

.hero {
  position: relative;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1 1 auto;
  width: 100%;
}

@media (max-width: 640px) {
  .hero {
    padding: 16px 12px 14px;
    gap: 12px;
    justify-content: flex-start;
  }
  .hero-ctas {
    margin: 6px auto 0;
    gap: 10px;
  }
  .about {
    margin-top: 4px;
  }
}

.about p {
  margin: 0;
}

.toggles {
  display: flex;
  gap: 10px;
  margin-right: 8px
}

html[lang="ar"] .toggles {
  flex-direction: row-reverse;
  margin-right: 0;
  margin-left: 8px;
}

.switch {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.switch-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tile);
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  padding: 4px;
  min-width: 128px;
  transition: background .2s ease, border-color .2s ease;
  direction: ltr;
}

.switch-option {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s ease, opacity .2s ease;
  opacity: .6;
}

.switch-option img {
  display: block;
  border-radius: 2px;
}

/* Mobile header adjustments */
@media (max-width: 640px) {
  :root {
    --header-height: 56px;
    --footer-min: 104px;
  }
  .switch-track {
    min-width: 0;
    width: 100%;
  }
  .switch-option { font-size: .8rem; }
  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 1200;
    min-height: var(--header-height);
  }
  .brand {
    flex: 1 1 auto;
    gap: 10px;
  }
  .brand-logo img {
    height: 44px;
  }
  .brand-link.brand-side {
    justify-content: flex-start;
  }
  .brand-text.side {
    align-items: flex-start;
    text-align: left;
  }
  html[lang="ar"] .brand-text.side {
    align-items: flex-end;
    text-align: right;
  }
  .brand-title { font-size: 1.25rem; }
  .brand-sub { font-size: .85rem; }
  .menu-toggle { display: inline-flex; }
  .header-actions {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 12px;
    left: auto;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    width: min(260px, 90vw);
    border: 1px solid var(--tile-border);
    border-radius: 14px;
    background: var(--bg);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
    z-index: 9999;
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow-y: auto;
  }
  html[lang="ar"] .header-actions {
    left: 12px;
    right: auto;
  }
  body.mobile-menu-open .header-actions {
    display: flex;
  }
  .header-actions .btn {
    order: 0;
    width: 100%;
    justify-content: center;
  }
  .header-actions .toggles {
    order: 1;
  }
  .toggles {
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }
  .toggles .switch-option {
    justify-content: center;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
}

.switch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--tile-border);
  display: inline-block;
}

.switch-dot.light {
  background: #ffffff;
}

.switch-dot.dark {
  background: #0b0f1c;
}

.switch-knob {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--btn-bg);
  transition: transform .2s ease;
}

#langToggle[data-state="en"] .switch-knob,
#themeToggle[data-theme="light"] .switch-knob {
  transform: translateX(0);
}

#langToggle[data-state="ar"] .switch-knob,
#themeToggle[data-theme="dark"] .switch-knob {
  transform: translateX(100%);
}

#langToggle[data-state="en"] .switch-option-en,
#langToggle[data-state="ar"] .switch-option-ar,
#themeToggle[data-theme="light"] .switch-option-light,
#themeToggle[data-theme="dark"] .switch-option-dark {
  color: var(--fg);
  opacity: 1;
  font-weight: 600;
}

.switch:focus-visible .switch-track {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--btn-bg) 65%, transparent);
}

.pref-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  z-index: 20
}

.pref-card {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  padding: 18px;
  width: min(92vw, 520px)
}

.pref-section {
  margin: 10px 0
}

.pref-label {
  font-weight: 600;
  margin-bottom: 8px
}

.pref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.pref-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--tile-border);
  background: var(--tile);
  cursor: pointer
}

.pref-btn span {
  color: var(--fg);
}

.pref-btn img {
  flex-shrink: 0
}

.pref-btn.active {
  outline: 2px solid var(--btn-bg)
}

.chip {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--tile-border)
}

.chip.dark {
  background: #0b0f1c
}

.chip.light {
  background: #ffffff
}

.brand-logo img {
  display: none
}

.theme-dark .logo-dark {
  display: block
}

.theme-dark .logo-light {
  display: none
}

body:not(.theme-dark) .logo-light {
  display: block
}

body:not(.theme-dark) .logo-dark {
  display: none
}

.hero-bg {
  display: none;
}

.theme-dark .hero-bg,
body:not(.theme-dark) .hero-bg {
  transition: background 220ms linear;
}

.hero-ctas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 12px auto 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-tile {
  background: var(--tile);
  color: var(--fg);
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1.05rem;
  justify-content: center;
  text-align: center;
  width: auto;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn-tile:hover,
.btn-tile:focus-visible {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  border-color: color-mix(in srgb, var(--btn-bg) 40%, var(--tile-border));
}

.brand-link:hover {
  text-decoration: none;
}

.btn-icon {
  width: 22px;
  height: 22px
}

.footer-nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  justify-content: center
}

.footer-nav .sep {
  opacity: .5
}

.copy {
  display: inline-block;
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none
}

.copy:hover {
  text-decoration: underline
}

.about {
  max-width: 900px;
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center
}

.social {
  max-width: 900px;
  margin: 10px auto 40px;
  text-align: center
}

.social-icons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center
}

.social-icons img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #fff;
  transition: transform .15s
}

.social-icons a:hover img {
  transform: scale(1.08)
}

.site-footer {
  border-top: 1px solid var(--tile-border);
  padding: 6px 12px 0;
  color: var(--muted);
  text-align: center;
  margin-top: 0;
}

.footer-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px
}

.footer-nav a {
  color: var(--muted)
}

.copy {
  font-size: .9rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

.floating-actions {
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  z-index: 3;
}

html[lang="ar"] .floating-actions {
  right: auto;
  left: 0;
  align-items: flex-start;
}

.floating-actions a {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tile);
  border: 1px solid var(--tile-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.floating-actions a img {
  width: 28px;
  height: 28px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  z-index: 10
}

.modal.open {
  display: flex
}

.modal-card {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  padding: 18px;
  width: min(92vw, 420px)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px
}

.modal-title {
  margin: 0;
  font-size: 1.1rem
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--fg);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0
}

.input {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  padding: 10px 12px
}

.client-modal-card {
  width: min(96vw, 560px);
  max-height: calc(var(--viewport-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 480px) {
  .client-modal-card {
    width: min(96vw, 100%);
    max-height: calc(var(--viewport-h) - 32px);
  }
}

.client-step {
  display: none;
  gap: 14px;
}

.client-step.active {
  display: flex;
  flex-direction: column;
}

.client-alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .95rem;
  background: color-mix(in srgb, var(--btn-bg) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--btn-bg) 24%, var(--tile-border));
  color: var(--fg);
  margin-bottom: 10px;
}

.client-alert.info {
  background: color-mix(in srgb, var(--link) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--link) 30%, var(--tile-border));
}

.client-alert.success {
  background: color-mix(in srgb, var(--brand-accent) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--tile-border));
}

.client-intro {
  margin: 0 0 4px;
  color: var(--muted);
}

.input-stack {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--tile);
  color: var(--muted);
  font-weight: 600;
  border-right: 1px solid var(--tile-border);
}

.input-stack .input {
  border: 0;
  border-radius: 0;
  flex: 1 1 auto;
  padding: 10px 12px;
  background: transparent;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 640px) {
  .grid,
  .grid.two,
  .grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
}

.choice-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: .9rem;
}

.wa-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: 140px 1fr;
}

.wa-fields[hidden] {
  display: none !important;
}

.wa-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-select .input {
  width: 100%;
}

.wa-select .input-stack {
  border-radius: 10px;
  border: 1px solid var(--tile-border);
}

.wa-select .input-stack .input {
  border-radius: 0;
  border: 0;
}

.client-portal-container {
  display: none;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.client-portal-container.active {
  display: flex;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .wa-fields {
    grid-template-columns: 1fr;
  }
}

.divider {
  height: 1px;
  background: var(--tile-border);
  margin: 16px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--muted);
}

.client-accordion {
  border: 1px solid var(--tile-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile) 90%, transparent);
  padding: 12px 16px;
  margin-top: 12px;
}

.client-accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
}

.client-accordion[open] {
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.otp-input {
  font-size: 1.4rem;
  letter-spacing: 0.4rem;
  text-align: center;
}

.btn.btn-small {
  align-self: flex-start;
  padding: 6px 10px;
  font-size: .85rem;
}

.required {
  color: #e05252;
  margin-left: 4px;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px
}

.notice {
  font-size: .9rem;
  color: var(--muted)
}

.dish-modal {
  z-index: 40;
  /* Match indexmenu detail backdrop feel */
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(2px);
}

.dish-modal .modal-card {
  /* Align size with indexmenu detail sheet */
  width: min(1100px, 92vw);
  /* Remove scroll/height constraints */
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tile-border);
  background: var(--bg); /* dark or light, like before */
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.dish-modal .modal-head {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 4px;
}

.dish-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr; /* match indexmenu detail-content split */
  gap: 18px;
  padding: 0 24px 24px;
  align-items: start;
}

@media (min-width: 768px) {
  .dish-modal-body { grid-template-columns: 1fr 1.2fr; }
}

@media (max-width: 767px) {
  .dish-modal-body { grid-template-columns: minmax(0, 1fr); padding: 0 16px 18px; }
}

.dish-modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.dish-modal-media img {
  width: 100%;
  max-width: min(480px, 48vw);
  height: auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
  background: transparent !important; /* preserve transparency of WebP */
}


.dish-modal-details { /* legacy, kept for safety */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* New info layout to mirror indexmenu */
.dish-modal-info {
  display:flex; flex-direction:column; gap:12px;
  background: var(--card);
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  padding: 14px 16px;
}

@media (max-width: 768px) {
  .dish-modal .modal-card {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
  .dish-modal .modal-head {
    position: sticky;
    top: 0;
    padding-top: 10px;
    background: var(--bg);
    border-bottom: 1px solid var(--tile-border);
    z-index: 2;
  }
  .dish-modal-body {
    padding: 8px 16px 18px;
    gap: 14px;
  }
  .dish-modal-media img {
    max-width: 100%;
  }
}

.dish-modal-details > .dish-modal-section--meta,
.dish-modal-details > .dish-modal-section--nutrition {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .dish-modal-media img { max-width: 100%; height: auto; object-fit: contain; }
}

.dish-modal-name {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  grid-column: 1 / -1;
}

/* Replicate indexmenu detail chips/macros/ingredients styles */
.chip-row { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; }
.chip-row .chip {
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 9px; border-radius:30px; font-size:12px;
  background: color-mix(in srgb, var(--btn-bg) 12%, var(--tile));
  border: 1px solid color-mix(in srgb, var(--btn-bg) 25%, var(--tile-border));
  color: var(--fg);
  width:auto; height:auto; /* override tiny circle chip */
}

.macro-grid { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:8px; margin-bottom:10px; }
@media (max-width: 1024px) { .macro-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px)  { .macro-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.macro-box {
  background: color-mix(in srgb, var(--btn-bg) 6%, var(--tile));
  border: 1px solid color-mix(in srgb, var(--btn-bg) 18%, var(--tile-border));
  border-radius: 12px; padding: 8px 10px;
}
.macro-box .k { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.macro-box .v { font-weight: 700; font-size: 16px; color: var(--fg); }

.ing-block h4 { margin: 0 0 6px 0; font-size: 14px; color: var(--fg); }
.ing-list { white-space: normal; line-height: 1.5; color: var(--fg); }

.dish-modal-card.rtl .chip-row,
.dish-modal-card.rtl .ing-list { text-align: right; }

.dish-modal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--tile) 92%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.dish-modal-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
}

.dish-modal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.dish-modal-row.allergens {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.dish-modal-label {
  font-weight: 600;
  color: var(--muted);
}

.dish-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dish-modal-chip {
  background: color-mix(in srgb, var(--btn-bg) 12%, var(--tile));
  border: 1px solid color-mix(in srgb, var(--btn-bg) 25%, var(--tile-border));
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .85rem;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.dish-modal-chip.muted {
  opacity: .6;
}

.dish-modal-macros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.dish-modal-macros div {
  background: color-mix(in srgb, var(--btn-bg) 6%, var(--tile));
  border: 1px solid color-mix(in srgb, var(--btn-bg) 18%, var(--tile-border));
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.macro-label {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
}

.macro-value {
  font-size: 1.05rem;
  color: var(--fg);
}

.dish-modal-card.rtl {
  direction: rtl;
  text-align: right;
}

.dish-modal-card.rtl .dish-modal-section,
.dish-modal-card.rtl .dish-modal-name,
.dish-modal-card.rtl .dish-modal-section-title,
.dish-modal-card.rtl .dish-modal-ingredients p {
  text-align: right;
}

.dish-modal-card.rtl .dish-modal-row {
  justify-content: space-between;
}

.dish-modal-card.rtl .dish-modal-row:not(.allergens) {
  flex-direction: row-reverse;
}

.dish-modal-card.rtl .dish-modal-chips {
  justify-content: flex-end;
}

.dish-modal-card.rtl .dish-modal-row.allergens {
  align-items: flex-end;
}

.dish-modal-card.rtl .dish-modal-macros div {
  text-align: right;
}

.dish-modal-ingredients h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.dish-modal-ingredients p {
  margin: 0;
  line-height: 1.45;
  color: var(--fg);
}

.dish-modal-ingredients p.muted {
  color: var(--muted);
}

/* Blur/Dim background when prefs modal is open */
body.modal-open header,
body.modal-open main,
body.modal-open footer,
body.modal-open .floating-actions,
body.modal-open #dishMarquee,
body.modal-open #igMarquee {
  filter: blur(6px) brightness(0.7);
  pointer-events: none;
  user-select: none;
}

.brand-link.brand-side {
  display: flex;
  align-items: center;
  gap: 14px
}


.brand-logo img {
  height: 60px;
  width: auto
}

.brand-text.side {
  display: flex;
  flex-direction: column;
  align-items: center
}

.brand-text.side .brand-title {
  margin: 0;
  line-height: 1.2
}

.brand-text.side .brand-sub {
  margin-top: 4px;
  text-align: center
}

@media (max-width:640px) {
  .brand-logo img {
    height: 48px
  }
}

/* Shared marquee styles (dishes + instagram) */
.dish-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--tile-border);
  padding: 0;
  background: transparent;
  /* let page gradient show through */
  transition: opacity .3s ease;
}

.dish-track {
  display: inline-flex;
  gap: 12px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee var(--marquee-duration) linear infinite;
  align-items: center;
}

.dish-marquee.reverse .dish-track {
  animation-direction: reverse;
}

.marquee-paused .dish-track {
  animation-play-state: paused;
}

.dish-marquee.is-loading {
  opacity: 1;
  position: relative;
}

.dish-marquee.is-loading::before {
  content: '';
  display: block;
  height: 110px;
  border-radius: 8px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--tile) 86%, transparent) 0%,
    color-mix(in srgb, var(--tile) 92%, transparent) 50%,
    color-mix(in srgb, var(--tile) 86%, transparent) 100%);
  background-size: 200% 100%;
  animation: sb-shimmer 1.2s linear infinite;
}

@media (max-width: 640px) {
  .dish-marquee.is-loading::before { height: 80px; }
}

.dish-marquee.reverse.is-loading::before { direction: ltr; }

@keyframes sb-shimmer {
  from { background-position-x: 0%; }
  to   { background-position-x: 200%; }
}

#dishMarquee,
#igMarquee {
  margin-top: 0;
  margin-bottom: 0;
}

.dish-marquee img,
.ig-thumb {
  height: 110px;
  width: auto;
  border-radius: 8px;
  display: block;
}

@media (max-width: 640px) {

  .dish-marquee img,
  .ig-thumb {
    height: 80px;
  }
}

@media (max-width: 640px) {
  .dish-marquee {
    min-height: 100px;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Subtle rainfall background across full page */
#rainfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero>*:not(.hero-bg) {
  position: relative;
  z-index: 2;
}

.drop {
  position: absolute;
  opacity: .22;
  width: 10px;
  height: 10px;
  background: var(--drop);
  animation: fall linear infinite;
}

main,
section,
.site-header,
.dish-marquee,
#igMarquee,
.site-footer,
.ig-float,
.wa-float {
  position: relative;
  z-index: 2;
}

@keyframes fall {
  from {
    transform: translateY(-15vh);
  }

  to {
    transform: translateY(115vh);
  }
}

/* Brand-aligned focus outline for accessibility, avoids faint white ring on dark */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.dish-marquee,
.dish-track,
#igMarquee {
  direction: ltr;
}
.otp-extra-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.client-dashboard {
  background: var(--card);
  border: 1px solid var(--tile-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-dashboard-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.client-greeting {
  font-size: 1.15rem;
  font-weight: 600;
}

.client-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.client-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.client-tabs .btn-tab {
  background: var(--tile);
  color: var(--fg);
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.client-tabs .btn-tab.active {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}

.client-tab-panels {
  border: 1px solid var(--tile-border);
  border-radius: 14px;
  background: var(--bg);
  padding: 12px;
}

.client-tab-panels .tab-content {
  display: none;
}

.client-tab-panels .tab-content.active {
  display: block;
}

@media (max-width: 640px) {
  .client-dashboard {
    padding: 14px;
  }
  .client-dashboard-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .client-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.client-home-link {
  color: var(--fg);
}
.public-hero,
#publicHero {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#publicHero > .hero {
  flex: 1 1 auto;
}
