@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/material-symbols-rounded.woff2") format("woff2");
}

:root {
  --bg: #e9f2ee;
  --surface: #f7fcfa;
  --surface-alt: #e6f0ea;
  --surface-muted: #edf5f1;
  --ink: #16302a;
  --muted: #4d6a62;
  --line: #c9dbd2;
  --accent: #1b9f78;
  --accent-strong: #15785c;
  --accent-soft: #d6ede4;
  --warning: #bc5636;
  --warning-soft: #fff3ee;
  --warning-line: rgba(188, 86, 54, 0.2);
  --startover-bg: #2A1A1A;
  --startover-text: #ffffff;
  --startover-icon: #ffffff;
  --shadow: 0 20px 45px rgba(12, 34, 27, 0.12);
  --ink-faded: rgba(22, 48, 42, 0.45);
  --ink-faded-strong: rgba(22, 48, 42, 0.25);
  --scrollbar-thumb: rgba(22, 48, 42, 0.25);
  --panel-height: min(820px, 92vh);
  --logo-width: 58px;
  --logo-width-mobile: 58px;
  --logo-scale: 1.32;
  --logo-scale-mobile: 1;
  --logo-offset-y: 0px;
  --logo-offset-y-mobile: 0px;
  --logo-pad-top: 0px;
  --logo-pad-top-mobile: 0px;
  --logo-pad-bottom: 0px;
  --logo-pad-bottom-mobile: 0px;
  --logo-link-box-width: 58px;
  --logo-link-box-height: 58px;
  --logo-link-offset-x: 0px;
  --logo-link-offset-y: 0px;
  --panel-body-min-height: clamp(320px, 48vh, 580px);
  --booking-panel-body-min-height: clamp(380px, 58vh, 680px);
  --panel-head-min-height: 72px;
  --slot-grid-cols: 4;
  --slot-grid-min-rows: 2;
  --slot-grid-gap: 10px;
  --slot-btn-min-height: 44px;
  --slot-status-height: 56px;
  --hero-min-height: 130px;
  --hero-top-gap: 10px;
  --landing-hero-max: 920px;
  --landing-hero-gap: 18px;
  --landing-card-radius: 20px;
  --landing-card-pad: 22px;
  --landing-card-gap: 20px;
  --landing-card-min-height-safe: 164px;
  --landing-icon-size: 62px;
  --landing-icon-glyph-size: 34px;
  --landing-help-gap: 14px;
  --services-cols: 3;
  --services-cols-tablet: 2;
  --services-cols-mobile: 2;
  --products-cols: 3;
  --products-cols-tablet: 2;
  --products-cols-mobile: 2;
  --service-card-padding: 14px;
  --service-card-gap: 12px;
  --service-title-size: 1rem;
  --service-title-mobile-size: 0.9rem;
  --service-desc-size: 0.9rem;
  --service-meta-size: 0.85rem;
  --service-desc-lines: 3;
  --service-card-min-height: 170px;
  --service-image-height: 118px;
  --service-image-fit: contain;
  --product-card-padding: 14px;
  --product-card-gap: 12px;
  --product-card-min-height: 170px;
  --service-card-mobile-extra: 0px;
  --service-modal-width: 680px;
  --service-modal-height: 520px;
  --service-title-lines: 2;
  --mobile-panel-full: 1;
  --mobile-toolbar-scale: 1;
  --mobile-container-padding: 8px;
  --hero-bg-image: none;
  --hero-overlay-opacity: 0.44;
  --customizer-width: 460px;
  --font-base: 1rem;
  --font-brand: 1.05rem;
  --font-hero-title: 2.6rem;
  --font-hero-subtitle: 1rem;
  --font-panel-title: 1.6rem;
  --font-panel-subtitle: 0.95rem;
  --font-step-title: 0.78rem;
  --font-step-index: 0.75rem;
  --font-button: 0.95rem;
  --font-summary-title: 1rem;
  --font-summary-text: 0.9rem;
  --font-label: 0.85rem;
  --font-input: 0.95rem;
  --service-price-size: 0.92rem;
  --font-mobile-scale: 0.92;
  --font-rtl-scale: 0.96;
  --accentSoft: var(--accent-soft);
  /* Foundation tokens */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-alt: var(--surface-alt);
  --color-border: var(--line);
  --color-text: var(--ink);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-danger: var(--warning);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-xs: 0 2px 8px rgba(20, 24, 24, 0.05);
  --shadow-sm: 0 8px 22px rgba(20, 24, 24, 0.08);
  --shadow-md: 0 14px 30px rgba(20, 24, 24, 0.12);
  --shadow-lg: var(--shadow);
  --shadow-soft: var(--shadow-sm);
  --motion-fast: 140ms;
  --motion-normal: 220ms;
  --motion-slow: 320ms;
  --easing-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --toolbar-gap: var(--space-3);
  --toolbar-pad-y: var(--space-2);
  --toolbar-pad-x: var(--space-3);
  --toolbar-divider-pad: var(--space-2);
  --chip-pad-y: 6px;
  --chip-pad-x: var(--space-3);
  --chip-icon-size: 1.15rem;
  --startover-shadow: 0 12px 24px color-mix(in srgb, var(--startover-bg) 44%, transparent);
  --startover-shadow-hover: 0 16px 30px color-mix(in srgb, var(--startover-bg) 52%, transparent);
  --focus-ring-color: color-mix(in srgb, var(--accent) 46%, transparent);
  --focus-ring: 0 0 0 3px var(--focus-ring-color);
  --control-height-sm: 40px;
  --control-height-md: 44px;
  --control-height-lg: 50px;
  --type-h1: var(--font-hero-title);
  --type-h2: var(--font-panel-title);
  --type-h3: clamp(1.08rem, 1.2vw, 1.2rem);
  --type-h4: clamp(1rem, 1.05vw, 1.08rem);
  --type-body: var(--font-base);
  --type-small: 0.9rem;
  --type-caption: 0.8rem;
  --line-height-body: 1.5;
  --line-height-heading: 1.2;
  --card-bg: var(--surface);
  --card-border: var(--line);
  --card-radius: var(--radius-md);
  --card-shadow: var(--shadow-soft);
  --status-pending-bg: #fff6db;
  --status-pending-fg: #935e00;
  --status-confirmed-bg: #dff8ee;
  --status-confirmed-fg: #0f6a4f;
  --status-paid-bg: #dff8ee;
  --status-paid-fg: #0f6a4f;
  --status-failed-bg: #ffe9e6;
  --status-failed-fg: #a53b28;
  --status-cancelled-bg: #f2f4f6;
  --status-cancelled-fg: #475569;
  --status-info-bg: #e7f0ff;
  --status-info-fg: #1f4c8f;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-alt: #242424;
  --surface-muted: #262626;
  --ink: #e7e7e7;
  --muted: #a7a7a7;
  --line: #303030;
  --warning: #ff8a7a;
  --warning-soft: #2a1a1a;
  --warning-line: rgba(255, 138, 122, 0.35);
  --startover-bg: #2A1A1A;
  --startover-text: #ffffff;
  --startover-icon: #ffffff;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  --ink-faded: rgba(231, 231, 231, 0.45);
  --ink-faded-strong: rgba(231, 231, 231, 0.25);
  --scrollbar-thumb: rgba(231, 231, 231, 0.25);
  --focus-ring-color: color-mix(in srgb, var(--accent) 55%, transparent);
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.45);
  --shadow-soft: var(--shadow-sm);
  --status-pending-bg: #352a12;
  --status-pending-fg: #f9cc72;
  --status-confirmed-bg: #123428;
  --status-confirmed-fg: #81d8b8;
  --status-paid-bg: #123428;
  --status-paid-fg: #81d8b8;
  --status-failed-bg: #3d1f22;
  --status-failed-fg: #ff9f95;
  --status-cancelled-bg: #2b2f38;
  --status-cancelled-fg: #b8c0ce;
  --status-info-bg: #1e2d48;
  --status-info-fg: #9ac0ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Kufi Arabic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--font-base);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Foundation: global typography, interactive states, cards, and state UI */
h1,
.type-h1 {
  font-size: var(--type-h1);
  line-height: var(--line-height-heading);
}

h2,
.type-h2 {
  font-size: var(--type-h2);
  line-height: var(--line-height-heading);
}

h3,
.type-h3 {
  font-size: var(--type-h3);
  line-height: var(--line-height-heading);
}

h4,
.type-h4 {
  font-size: var(--type-h4);
  line-height: var(--line-height-heading);
}

[dir="rtl"] h1,
[dir="rtl"] .type-h1 {
  font-size: calc(var(--type-h1) * var(--font-rtl-scale));
}

[dir="rtl"] h2,
[dir="rtl"] .type-h2 {
  font-size: calc(var(--type-h2) * var(--font-rtl-scale));
}

[dir="rtl"] h3,
[dir="rtl"] .type-h3 {
  font-size: calc(var(--type-h3) * var(--font-rtl-scale));
}

[dir="rtl"] h4,
[dir="rtl"] .type-h4 {
  font-size: calc(var(--type-h4) * var(--font-rtl-scale));
}

body,
p,
li,
input,
select,
textarea,
button {
  line-height: var(--line-height-body);
}

small,
.caption,
.type-caption {
  font-size: var(--type-caption);
}

.muted {
  color: var(--color-muted);
}

:where(
    a,
    button,
    input,
    select,
    textarea,
    [role="button"],
    [tabindex]:not([tabindex="-1"]),
    .btn,
    .lang-btn,
    .theme-btn,
    .auth-btn,
    .pill,
    .step-pill
  ) {
  transition:
    background-color var(--motion-fast) var(--easing-standard),
    border-color var(--motion-fast) var(--easing-standard),
    color var(--motion-fast) var(--easing-standard),
    box-shadow var(--motion-fast) var(--easing-standard),
    transform var(--motion-fast) var(--easing-standard),
    opacity var(--motion-fast) var(--easing-standard);
}

:where(.btn, .lang-btn, .theme-btn, .auth-btn, .pill, .step-pill, .calendar-nav, .qty-btn):hover:not(:disabled):not(
    [aria-disabled="true"]
  ) {
  transform: translateY(-1px);
}

:where(.btn, .lang-btn, .theme-btn, .auth-btn, .pill, .step-pill, .calendar-nav, .qty-btn):active:not(:disabled):not(
    [aria-disabled="true"]
  ) {
  transform: translateY(0);
  filter: brightness(0.98);
}

:where(
    a,
    button,
    input,
    select,
    textarea,
    [role="button"],
    [tabindex]:not([tabindex="-1"]),
    .btn,
    .lang-btn,
    .theme-btn,
    .auth-btn,
    .pill,
    .step-pill
  ):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.service-card:focus-within,
.product-card:focus-within,
.landing-card:focus-visible,
.step-pill:focus-visible {
  box-shadow: var(--focus-ring), var(--card-shadow);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.disabled,
[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed !important;
}

.btn,
.lang-btn,
.auth-btn,
.pill,
.step-pill,
.panel-back,
.calendar-nav {
  min-height: var(--control-height-md);
}

.theme-btn {
  min-height: var(--control-height-sm);
  min-width: var(--control-height-sm);
}

.field input,
.field select {
  min-height: var(--control-height-md);
}

.field textarea {
  min-height: calc(var(--control-height-lg) * 2.4);
}

.panel,
.summary-card,
.service-card,
.product-card,
.product-category,
.service-question-card,
.service-contact-card,
.landing-card,
.location-picker,
.location-modal-dialog,
.service-modal-dialog,
.payment-return-card,
.account-address,
.account-order {
  border-color: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.panel,
.summary-card {
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-lg);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.status-badge.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-fg);
}

.status-badge.confirmed,
.status-badge.paid,
.status-badge.success {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed-fg);
}

.status-badge.failed,
.status-badge.danger,
.status-badge.cancelled {
  background: var(--status-failed-bg);
  color: var(--status-failed-fg);
}

.status-badge.info {
  background: var(--status-info-bg);
  color: var(--status-info-fg);
}

.status-badge.muted {
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled-fg);
}

.form-message,
.ui-error-state {
  border-radius: var(--radius-sm);
  border: 1px solid var(--warning-line);
  background: var(--warning-soft);
  color: var(--warning);
  padding: 10px 12px;
}

.form-message:empty {
  display: none;
}

.form-message.success {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
  color: var(--accent-strong);
}

.form-message.info {
  border-color: color-mix(in srgb, var(--status-info-fg) 38%, var(--line));
  background: color-mix(in srgb, var(--status-info-bg) 84%, var(--surface));
  color: var(--status-info-fg);
}

.slot-empty,
.ui-empty-state {
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
  padding: 10px 12px;
  color: var(--muted);
}

@keyframes ui-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.ui-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-alt) 70%, var(--line));
}

.ui-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    color-mix(in srgb, var(--surface) 84%, transparent) 50%,
    transparent 80%
  );
  background-size: 220% 100%;
  animation: ui-shimmer 1.35s linear infinite;
}

.is-loading,
[aria-busy="true"] {
  cursor: progress;
}

.btn.is-loading,
.btn[aria-busy="true"] {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::after,
.btn[aria-busy="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  position: absolute;
  inset: 0;
  margin: auto;
}

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

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: 0;
  filter: blur(0);
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle, #b5ead7 0%, rgba(181, 234, 215, 0) 70%);
  top: -120px;
  left: -60px;
}

body::after {
  background: radial-gradient(circle, #ffe1b5 0%, rgba(255, 225, 181, 0) 70%);
  bottom: -140px;
  right: -80px;
}

:root[data-theme="dark"] body::before {
  background: radial-gradient(circle, rgba(108, 224, 179, 0.35) 0%, rgba(108, 224, 179, 0) 70%);
}

:root[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(90, 130, 255, 0.3) 0%, rgba(90, 130, 255, 0) 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="dark"] .bg-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  opacity: 0.12;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  min-width: 0;
}

.site-header .brand {
  min-width: 0;
}

.site-header .lang-switch {
  min-width: 0;
  margin-inline-start: auto;
  flex: 0 1 auto;
  max-width: min(100%, calc(100vw - 92px));
}

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

.brand-link {
  text-decoration: none;
  color: inherit;
  margin-top: min(var(--logo-pad-top), 0px);
  margin-bottom: min(var(--logo-pad-bottom), 0px);
  padding-top: max(var(--logo-pad-top), 0px);
  padding-bottom: max(var(--logo-pad-bottom), 0px);
}

@media (min-width: 721px) {
  .brand-link {
    width: var(--logo-link-box-width, var(--logo-width));
    min-width: var(--logo-link-box-width, var(--logo-width));
    height: var(--logo-link-box-height, var(--logo-width));
    min-height: var(--logo-link-box-height, var(--logo-width));
    justify-content: center;
    transform: translate(
      var(--logo-link-offset-x, 0px),
      var(--logo-link-offset-y, 0px)
    );
  }
}

.logo {
  width: var(--logo-width);
  height: auto;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo svg {
  width: 100%;
  height: 100%;
}

.logo-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transform: translateY(var(--logo-offset-y)) scale(var(--logo-scale));
  transform-origin: center center;
  will-change: transform;
}

.logo.logo-glow .logo-image {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.2));
}

.brand-text {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 700;
  font-size: var(--font-brand);
  letter-spacing: 0.4px;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.85rem;
  display: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--toolbar-gap);
  background: var(--surface);
  padding: var(--toolbar-pad-y) var(--toolbar-pad-x);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.lang-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-buttons {
  display: flex;
  gap: 6px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: var(--toolbar-divider-pad);
  border-left: 1px solid var(--line);
}

.auth-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: var(--toolbar-divider-pad);
  border-left: 1px solid var(--line);
}

.auth-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: var(--chip-pad-y) var(--chip-pad-x);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--type-small);
  white-space: nowrap;
}

.auth-btn:hover {
  background: var(--surface-alt);
  color: var(--color-text);
}

.auth-btn .icon {
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--chip-icon-size);
  height: var(--chip-icon-size);
  overflow: hidden;
}

.auth-btn .icon::before {
  content: attr(data-icon);
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.1rem;
  line-height: 1.1rem;
  display: inline-block;
  width: var(--chip-icon-size);
  height: var(--chip-icon-size);
  text-align: center;
}

.startover-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: var(--toolbar-divider-pad);
  border-left: 1px solid var(--line);
}

.theme-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: var(--chip-pad-y);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.startover-btn {
  border: none;
  background: var(--startover-bg);
  color: var(--startover-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  padding: var(--chip-pad-y) var(--chip-pad-x);
  box-shadow: var(--startover-shadow);
  transition:
    box-shadow var(--motion-fast) var(--easing-standard),
    transform var(--motion-fast) var(--easing-standard),
    background-color var(--motion-fast) var(--easing-standard);
}

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

.startover-btn:hover {
  box-shadow: var(--startover-shadow-hover);
}

.startover-btn:active {
  transform: translateY(1px);
  box-shadow: var(--startover-shadow);
}

.startover-icon {
  font-size: 0;
  line-height: 0;
  display: inline-block;
  color: var(--startover-icon);
  background: transparent;
  padding: 0;
}

.startover-icon::before {
  content: "restart_alt";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
  color: var(--startover-icon);
}

.startover-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: transparent;
  padding: 0;
}

.theme-icon {
  /* Render via ::before so the icon always reflects the current theme,
     even if JS misses updating the inline text node. */
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  overflow: hidden;
}

.theme-icon::before {
  content: "dark_mode";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.1rem;
  line-height: 1.1rem;
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  text-align: center;
}

[data-theme="dark"] .theme-icon::before,
.theme-btn.active .theme-icon::before {
  content: "light_mode";
}

[dir="rtl"] .lang-switch {
  direction: rtl;
}

[dir="rtl"] .theme-toggle {
  border-left: none;
  padding-left: 0;
  border-right: 1px solid var(--line);
  padding-right: var(--toolbar-divider-pad);
}

[dir="rtl"] .auth-toggle {
  border-left: none;
  padding-left: 0;
  border-right: 1px solid var(--line);
  padding-right: var(--toolbar-divider-pad);
}

[dir="rtl"] .startover-toggle {
  border-left: none;
  padding-left: 0;
  border-right: 1px solid var(--line);
  padding-right: var(--toolbar-divider-pad);
}

.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: var(--chip-pad-y) var(--chip-pad-x);
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-muted);
  font-size: var(--type-small);
}

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

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: var(--hero-top-gap);
  margin-bottom: 30px;
  min-height: var(--hero-min-height);
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: var(--font-hero-title);
  margin: 0 0 8px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 460px;
  font-size: var(--font-hero-subtitle);
}

.landing-page .hero {
  align-items: center;
  margin-top: var(--hero-top-gap);
  margin-bottom: 30px;
  min-height: var(--hero-min-height);
}

.landing-page .hero > div {
  max-width: 100%;
}

.landing-page .hero h1 {
  font-size: clamp(2.05rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.landing-page .hero p {
  max-width: min(72ch, 100%);
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  line-height: 1.62;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.booking-layout > * {
  animation: none;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}

.panel-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  order: 1;
  overflow: hidden;
}

.panel-lang {
  display: flex;
  margin-inline-start: auto;
  align-items: center;
  flex: 0 0 auto;
  order: 2;
}

.panel-title-row .panel-back {
  order: 0;
}

.site-header .lang-switch {
  display: none;
}

.panel-back {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  width: var(--control-height-sm);
  height: var(--control-height-sm);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.panel-back[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.panel-back-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px;
  min-height: var(--panel-height);
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.panel-head {
  margin-bottom: 20px;
  min-height: var(--panel-head-min-height);
  display: flex;
  align-items: center;
}

#booking-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.panel-body {
  flex: 1 1 auto;
  min-height: var(--panel-body-min-height);
  overflow: visible;
}

.booking-panel .panel-body {
  min-height: var(--booking-panel-body-min-height);
}

.step-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-panel[hidden] {
  display: none !important;
}

.custom-step-content {
  color: var(--ink);
  font-size: var(--font-panel-subtitle);
  line-height: 1.65;
}

.custom-step-content p {
  margin: 0 0 12px;
}

.custom-step-content ul,
.custom-step-content ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.custom-step-content li + li {
  margin-top: 6px;
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: var(--font-panel-title);
  line-height: 1.15;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-panel-subtitle);
}

.subsection {
  margin-bottom: 22px;
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.subsection-head h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.subsection-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(var(--services-cols), minmax(0, 1fr));
  gap: var(--service-card-gap);
  position: relative;
}

.services-grid.blocked-business {
  pointer-events: none;
}

.services-grid.blocked-business::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(1px);
  z-index: 2;
}

.services-grid.blocked-business::after {
  content: attr(data-lock-message);
  position: absolute;
  inset: auto 10px 10px 10px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--line) 70%, var(--accent));
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 3;
  text-align: center;
}

.service-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: var(--service-card-padding);
  padding-top: calc(var(--service-card-padding) - 6px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: var(--service-card-min-height);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  background: var(--surface-alt);
  position: relative;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  isolation: isolate;
}

.service-media {
  width: min(100%, max(96px, var(--service-image-height)));
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: transparent;
  border: 0;
}

.service-media-img {
  width: 100%;
  height: 100%;
  object-fit: var(--service-image-fit);
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 24, 24, 0.12);
}

.service-card.selected {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  background: var(--surface);
  box-shadow:
    0 16px 34px rgba(16, 41, 34, 0.14),
    inset 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.service-card.selected::after {
  content: "check";
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  font-family: "Material Symbols Rounded";
  font-size: 0.95rem;
  line-height: 1;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 90%, var(--accent-strong));
  box-shadow: 0 6px 12px color-mix(in srgb, var(--accent) 26%, transparent);
  z-index: 1;
}

.service-card.disabled {
  opacity: 0.6;
  filter: saturate(0.82);
}

.service-questions {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  padding: 2px 0;
}

.service-questions-title {
  font-weight: 800;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.service-question-card {
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent));
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(18, 26, 23, 0.05);
  border-inline-start: 4px solid color-mix(in srgb, var(--accent) 40%, var(--line));
}

.service-question-card.inspection-required {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
  border-inline-start-color: color-mix(in srgb, var(--warning) 70%, var(--line));
  background: color-mix(in srgb, var(--warning-soft) 26%, var(--surface));
}

.service-question-card-title {
  font-weight: 800;
  color: var(--ink);
}

.service-question-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-question-field {
  margin: 0;
}

.service-question-field.is-missing select {
  border-color: color-mix(in srgb, var(--warning) 72%, var(--line)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 42%, transparent);
}

.service-question-field .required-mark {
  color: var(--warning);
  font-weight: 700;
}

.inspection-warning {
  border: 1px solid color-mix(in srgb, var(--accent-strong) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 74%, var(--surface));
  color: var(--accent-strong);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.83rem;
  font-weight: 700;
}

.service-contact-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.service-contact-card.emphasis {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
    0 12px 28px rgba(24, 54, 46, 0.12);
}

.service-contact-title {
  font-weight: 700;
  color: var(--ink);
}

.service-contact-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.service-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.service-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 26%, transparent);
  background: color-mix(in srgb, var(--accent-strong) 8%, var(--surface));
  border-radius: 999px;
  padding: 8px 12px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.service-contact-link::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.service-contact-link--call::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.654 1.328a.678.678 0 0 1 .737-.161l2.305.922a.678.678 0 0 1 .393.824l-.517 2.068a.678.678 0 0 1-.58.503l-1.03.115a11.72 11.72 0 0 0 5.44 5.44l.115-1.03a.678.678 0 0 1 .503-.58l2.068-.517a.678.678 0 0 1 .824.393l.922 2.305a.678.678 0 0 1-.16.737l-1.2 1.2a1.745 1.745 0 0 1-1.833.443c-2.19-.73-4.271-2.305-6.244-4.278S2.53 5.548 1.8 3.358a1.745 1.745 0 0 1 .443-1.833z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.654 1.328a.678.678 0 0 1 .737-.161l2.305.922a.678.678 0 0 1 .393.824l-.517 2.068a.678.678 0 0 1-.58.503l-1.03.115a11.72 11.72 0 0 0 5.44 5.44l.115-1.03a.678.678 0 0 1 .503-.58l2.068-.517a.678.678 0 0 1 .824.393l.922 2.305a.678.678 0 0 1-.16.737l-1.2 1.2a1.745 1.745 0 0 1-1.833.443c-2.19-.73-4.271-2.305-6.244-4.278S2.53 5.548 1.8 3.358a1.745 1.745 0 0 1 .443-1.833z'/%3E%3C/svg%3E");
}

.service-contact-link--whatsapp::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.601 2.326A7.854 7.854 0 0 0 8.003 0a7.935 7.935 0 0 0-6.846 11.96L0 16l4.126-1.084a7.94 7.94 0 0 0 3.878 1h.003A7.935 7.935 0 0 0 13.601 2.326M8.005 14.6a6.6 6.6 0 0 1-3.36-.92l-.24-.143-2.447.644.653-2.386-.156-.244a6.6 6.6 0 0 1 1.018-8.36A6.62 6.62 0 0 1 8.003 1.4h.003A6.6 6.6 0 0 1 12.68 12.68 6.6 6.6 0 0 1 8.005 14.6m3.613-4.947c-.197-.099-1.17-.579-1.351-.645-.182-.066-.314-.099-.446.099-.132.198-.512.645-.628.777-.116.132-.231.149-.428.05-.197-.1-.833-.307-1.586-.98-.587-.522-.982-1.168-1.097-1.364-.116-.198-.013-.304.086-.404.09-.089.198-.231.297-.347.099-.116.132-.198.198-.33.066-.132.033-.248-.017-.347-.05-.099-.446-1.076-.611-1.473-.161-.386-.324-.334-.446-.341l-.38-.006a.73.73 0 0 0-.529.248c-.182.198-.694.678-.694 1.653 0 .976.71 1.918.809 2.05.099.132 1.397 2.134 3.387 2.992.474.205.844.328 1.132.42.476.152.91.131 1.252.08.382-.057 1.17-.479 1.335-.941.165-.463.165-.859.116-.942-.05-.082-.182-.132-.38-.231'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M13.601 2.326A7.854 7.854 0 0 0 8.003 0a7.935 7.935 0 0 0-6.846 11.96L0 16l4.126-1.084a7.94 7.94 0 0 0 3.878 1h.003A7.935 7.935 0 0 0 13.601 2.326M8.005 14.6a6.6 6.6 0 0 1-3.36-.92l-.24-.143-2.447.644.653-2.386-.156-.244a6.6 6.6 0 0 1 1.018-8.36A6.62 6.62 0 0 1 8.003 1.4h.003A6.6 6.6 0 0 1 12.68 12.68 6.6 6.6 0 0 1 8.005 14.6m3.613-4.947c-.197-.099-1.17-.579-1.351-.645-.182-.066-.314-.099-.446.099-.132.198-.512.645-.628.777-.116.132-.231.149-.428.05-.197-.1-.833-.307-1.586-.98-.587-.522-.982-1.168-1.097-1.364-.116-.198-.013-.304.086-.404.09-.089.198-.231.297-.347.099-.116.132-.198.198-.33.066-.132.033-.248-.017-.347-.05-.099-.446-1.076-.611-1.473-.161-.386-.324-.334-.446-.341l-.38-.006a.73.73 0 0 0-.529.248c-.182.198-.694.678-.694 1.653 0 .976.71 1.918.809 2.05.099.132 1.397 2.134 3.387 2.992.474.205.844.328 1.132.42.476.152.91.131 1.252.08.382-.057 1.17-.479 1.335-.941.165-.463.165-.859.116-.942-.05-.082-.182-.132-.38-.231'/%3E%3C/svg%3E");
}

.service-contact-link--terms::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.5 1A1.5 1.5 0 0 0 2 2.5v11A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5v-8.879a1.5 1.5 0 0 0-.44-1.06l-2.121-2.12A1.5 1.5 0 0 0 10.379 1H3.5Zm.5 3.25A.75.75 0 0 1 4.75 3.5h3.5a.75.75 0 0 1 0 1.5h-3.5A.75.75 0 0 1 4 4.25Zm0 3A.75.75 0 0 1 4.75 6.5h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 7.25Zm0 3A.75.75 0 0 1 4.75 9.5h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.5 1A1.5 1.5 0 0 0 2 2.5v11A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5v-8.879a1.5 1.5 0 0 0-.44-1.06l-2.121-2.12A1.5 1.5 0 0 0 10.379 1H3.5Zm.5 3.25A.75.75 0 0 1 4.75 3.5h3.5a.75.75 0 0 1 0 1.5h-3.5A.75.75 0 0 1 4 4.25Zm0 3A.75.75 0 0 1 4.75 6.5h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 7.25Zm0 3A.75.75 0 0 1 4.75 9.5h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z'/%3E%3C/svg%3E");
}

.service-contact-link--terms {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent-strong) 26%, transparent);
  background: color-mix(in srgb, var(--accent-strong) 8%, var(--surface));
}

.service-contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 116, 255, 0.14);
  background: color-mix(in srgb, var(--accent-strong) 12%, var(--surface));
}

.service-contact-link--whatsapp {
  color: color-mix(in srgb, #25D366 70%, var(--ink));
  border-color: color-mix(in srgb, #25D366 46%, transparent);
  background: color-mix(in srgb, #25D366 10%, var(--surface));
}

.service-contact-link--whatsapp:hover {
  background: color-mix(in srgb, #25D366 16%, var(--surface));
  box-shadow: 0 8px 20px color-mix(in srgb, #25D366 26%, transparent);
}

.service-contact-link.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.service-contact-phone {
  direction: ltr;
  unicode-bidi: plaintext;
}

.products-categories {
  display: grid;
  gap: 16px;
  overflow-anchor: none;
}

.product-category {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-category + .product-category {
  margin-top: 2px;
}

.product-category-toggle {
  width: 100%;
  border: none;
  background: color-mix(in srgb, var(--surface-alt) 44%, var(--surface));
  color: var(--ink);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: start;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.product-category-toggle:hover {
  background: color-mix(in srgb, var(--surface-alt) 62%, var(--surface));
}

.product-category-toggle[aria-expanded="true"] {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 58%, var(--surface));
}

.product-category-title {
  flex: 1;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.product-category-meta {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.product-category-caret {
  font-size: 1.08rem;
  color: var(--muted);
  width: 1.35em;
  text-align: center;
  line-height: 1;
}

.product-items {
  display: grid;
  gap: var(--product-card-gap);
  padding: 14px 16px 16px;
  grid-template-columns: repeat(var(--products-cols), minmax(0, 1fr));
  overflow-anchor: none;
}

.product-items[hidden] {
  display: none !important;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: var(--product-card-padding);
  min-height: max(var(--product-card-min-height), 332px);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  cursor: default;
  justify-content: flex-start;
  background: color-mix(in srgb, var(--surface-alt) 35%, var(--surface));
}

.product-card .service-title {
  width: 100%;
  margin: 0;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .product-card .service-title {
    min-height: calc(1.25em * 2);
  }
  .product-image {
    min-height: 172px;
  }
}

.product-card .service-price {
  margin-top: auto;
  margin-bottom: 2px;
  align-self: flex-end;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.product-meta-block {
  width: 100%;
  margin-top: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 42%, var(--surface));
  display: grid;
  gap: 8px;
  text-align: start;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--warning) 88%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--line));
  background: color-mix(in srgb, var(--warning-soft) 82%, var(--surface));
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 24, 24, 0.12);
}

.product-card.selected {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  background: var(--surface);
  box-shadow:
    0 12px 24px rgba(20, 54, 45, 0.14),
    inset 0 0 0 2px rgba(26, 154, 116, 0.2);
}

.product-card.out-of-stock {
  opacity: 1;
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
  background: color-mix(in srgb, var(--warning-soft) 36%, var(--surface));
}

.product-card.out-of-stock .product-image img {
  filter: saturate(0.7) contrast(0.95);
}

.product-card.out-of-stock .qty-btn,
.product-card.out-of-stock .qty-input {
  display: none;
}

.product-qty-stock-alert {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--warning) 38%, var(--line));
  background: color-mix(in srgb, var(--warning-soft) 64%, var(--surface));
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  margin-top: auto;
}

.product-qty-stock-alert .stock-label {
  color: var(--warning);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.stock-alert-btn {
  width: auto;
  align-self: center;
  min-height: 36px;
  padding-inline: 16px;
}

.product-qty-stock-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: auto;
  min-height: 0;
}

.product-qty-stock-inline .stock-alert-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: color-mix(in srgb, var(--accent) 86%, var(--ink));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-qty-stock-inline .stock-alert-btn:hover,
.product-qty-stock-inline .stock-alert-btn:focus-visible {
  color: color-mix(in srgb, var(--accent) 92%, var(--ink));
  background: transparent;
  box-shadow: none;
}

.product-image {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  padding: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
}

.product-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 56%, rgba(255, 255, 255, 0.3));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 82%, rgba(255, 255, 255, 0.14)),
    color-mix(in srgb, var(--surface-alt) 72%, rgba(16, 25, 35, 0.2))
  );
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow:
    0 10px 20px rgba(9, 14, 21, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px) saturate(116%);
  -webkit-backdrop-filter: blur(6px) saturate(116%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-image-nav.prev {
  left: -8px;
}

.product-image-nav.next {
  right: -8px;
}

[dir="rtl"] .product-image-nav.prev {
  left: -8px;
  right: auto;
}

[dir="rtl"] .product-image-nav.next {
  right: -8px;
  left: auto;
}

.product-image-nav:hover {
  transform: translateY(-50%) scale(1.05);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow:
    0 14px 26px rgba(9, 14, 21, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.product-image-nav[hidden] {
  display: none !important;
}
.product-qty {
  display: grid;
  grid-template-columns: auto auto minmax(46px, 58px) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--surface);
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  align-self: flex-end;
  margin-top: 2px;
}

.product-qty-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 34px;
}

.product-qty .qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-qty .qty-btn:hover {
  background: color-mix(in srgb, var(--surface-alt) 72%, var(--surface));
}

.product-qty .qty-btn:focus-visible,
.product-qty .qty-input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.product-qty .qty-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: var(--surface);
  border-radius: 9px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88rem;
  padding: 0;
}

.product-qty .qty-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.product-qty .qty-input::-webkit-outer-spin-button,
.product-qty .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-qty .qty-input {
  -moz-appearance: textfield;
}

.product-modal-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 0;
  background: transparent;
  margin-bottom: 14px;
}

.product-modal-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: contain;
}

.product-modal-desc {
  color: var(--ink);
  font-size: 0.95rem;
}

.landing-main {
  display: block;
}

.landing-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.landing-layout > * {
  animation: none;
}

.landing-panel {
  grid-column: 1 / -1;
}

.landing-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: var(--landing-help-gap);
}

.landing-panel-head {
  margin-bottom: 10px;
  min-height: var(--panel-head-min-height);
}

.landing-page .hero p,
.landing-preview-active .hero p {
  max-width: 100%;
  white-space: normal;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
}

html[data-customizer-scope="landing"] #landing-preview {
  display: grid;
}

html[data-customizer-scope="landing"] #booking-layout {
  display: none;
}

html[data-customizer-scope="services"] #landing-preview,
html[data-customizer-scope="products"] #landing-preview {
  display: none;
}

html[data-customizer-scope="services"] #booking-layout,
html[data-customizer-scope="products"] #booking-layout {
  display: grid;
}

.landing-choice-grid {
  display: grid;
  gap: var(--landing-card-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.landing-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 1.3vw, 18px);
  align-items: start;
  padding: var(--landing-card-pad);
  border-radius: var(--landing-card-radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: max(var(--landing-card-min, 0px), var(--landing-card-min-height-safe));
  box-shadow: var(--shadow-soft);
  will-change: transform;
  transition: transform var(--motion-normal) var(--easing-standard), border-color var(--motion-normal) var(--easing-standard),
    box-shadow var(--motion-normal) var(--easing-standard), background-color var(--motion-normal) var(--easing-standard);
}

.landing-card:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  box-shadow: 0 22px 40px color-mix(in srgb, var(--accent) 14%, rgba(20, 24, 24, 0.18));
}

.landing-card:active {
  transform: translateY(-1px) scale(1.006);
}

.landing-card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--focus-ring), 0 18px 34px color-mix(in srgb, var(--accent) 12%, rgba(20, 24, 24, 0.16));
}

.landing-card:hover .landing-icon,
.landing-card:focus-visible .landing-icon {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 14%, transparent);
}

.landing-icon {
  width: var(--landing-icon-size);
  height: var(--landing-icon-size);
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}

.landing-icon svg,
.landing-icon-svg {
  width: var(--landing-icon-glyph-size);
  height: var(--landing-icon-glyph-size);
  display: block;
  stroke: currentColor;
  fill: none;
  shape-rendering: geometricPrecision;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-icon-svg [data-fill="true"] {
  fill: currentColor;
  stroke: none;
  opacity: 0.16;
}

.landing-card-content h3 {
  margin: 0 0 8px;
  font-size: clamp(1.08rem, 1.2vw, 1.2rem);
  line-height: 1.25;
  color: var(--ink);
}

.landing-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--landing-desc-gap, 6px);
  min-width: 0;
  height: 100%;
}

.landing-card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: min(var(--landing-desc-max, 30ch), 100%);
  overflow-wrap: break-word;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.landing-steps.hide-mobile {
  display: grid;
}

@media (max-width: 768px) {
  .landing-steps.hide-mobile {
    display: none;
  }
}

.landing-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.landing-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--line);
}

.landing-step-title {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  font-size: 1.05rem;
}

.landing-step-desc {
  grid-column: 2 / 3;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}


.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-title {
  font-weight: 700;
  font-size: var(--service-title-size);
  line-height: 1.2;
  min-height: calc(1.2em * var(--service-title-lines));
  display: -webkit-box;
  -webkit-line-clamp: var(--service-title-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 12px;
  width: 100%;
}

.service-title-line {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.service-price {
  font-weight: 600;
  color: var(--accent-strong);
  font-size: var(--service-price-size);
}

.service-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--service-meta-size);
  margin-top: auto;
  width: 100%;
  white-space: nowrap;
}

.service-duration .time-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.service-duration .time-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-duration .price-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.service-duration .price-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-duration .service-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.service-duration .service-meta-value {
  white-space: nowrap;
}

.service-duration .service-meta-sep {
  opacity: 0.68;
  font-size: 0.85em;
  line-height: 1;
  transform: translateY(-0.5px);
}

[dir="rtl"] .service-duration {
  direction: rtl;
}

/* Mobile service meta: stack price above time in the same container */
body.preview-mobile[data-booking-mode="services"] .service-duration.service-meta {
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
}

body.preview-mobile[data-booking-mode="services"] .service-duration.service-meta .service-meta-price {
  order: 1;
}

body.preview-mobile[data-booking-mode="services"] .service-duration.service-meta .service-meta-time {
  order: 2;
}

body.preview-mobile[data-booking-mode="services"] .service-duration.service-meta .service-meta-sep {
  display: none;
}

body.preview-mobile[data-booking-mode="services"] .service-duration.service-meta .service-meta-item {
  justify-content: center;
  max-width: 100%;
}

body.preview-mobile[data-booking-mode="services"] .service-duration.service-meta .service-meta-value {
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.12;
}

@media (max-width: 720px) {
  body[data-booking-mode="services"] .service-duration.service-meta {
    flex-direction: column;
    gap: 3px;
    min-height: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  body[data-booking-mode="services"] .service-duration.service-meta .service-meta-price {
    order: 1;
  }

  body[data-booking-mode="services"] .service-duration.service-meta .service-meta-time {
    order: 2;
  }

  body[data-booking-mode="services"] .service-duration.service-meta .service-meta-sep {
    display: none;
  }

  body[data-booking-mode="services"] .service-duration.service-meta .service-meta-item {
    justify-content: center;
    max-width: 100%;
  }

  body[data-booking-mode="services"] .service-duration.service-meta .service-meta-value {
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.12;
  }
}

.service-info-btn {
  position: static;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: none;
  z-index: 2;
  touch-action: manipulation;
  pointer-events: auto;
}

.service-info-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: -2px;
  align-self: stretch;
  pointer-events: none;
  margin-top: -2px;
  position: relative;
  z-index: 2;
}

.service-info-btn:hover {
  box-shadow: 0 6px 14px rgba(26, 154, 116, 0.2);
}

.service-info-btn .info-icon {
  font-size: 0;
  line-height: 0;
  display: inline-block;
}

.service-info-btn .info-icon::before {
  content: "info";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-block;
}

.panel-lang {
  display: flex;
  margin-inline-start: auto;
  align-items: center;
}


.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.saved-address-field {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--font-label);
  min-width: 0;
  width: 100%;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-label-row > span {
  min-width: 0;
}

.address-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.address-input-row input {
  flex: 1;
  min-width: 0;
}

.pin-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--accent-strong);
}

.pin-btn .icon {
  font-size: 1.25rem;
}

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

.phone-input {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
  pointer-events: none;
}

.phone-input input {
  flex: 1;
  min-width: 0;
}

.phone-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.phone-input-row .phone-input {
  flex: 1 1 220px;
}

.phone-verify-btn {
  padding: 12px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

.phone-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.phone-verified .icon {
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.1rem;
  line-height: 1;
}

.field-error {
  min-height: 18px;
  font-size: 0.78rem;
  color: var(--warning);
  visibility: hidden;
}

.field-error.active {
  visibility: visible;
}

.field-error.success {
  color: var(--accent-strong);
}

/* Details step: hide inline error text and rely on red border highlighting. */
#name-error,
#phone-error,
#email-error,
#address-error,
#location-error {
  display: none !important;
}

#area-error,
#subarea-error {
  display: none !important;
}

:root[data-theme="dark"] .field > span:not(.field-error) {
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--surface-alt);
  width: 100%;
  font-size: var(--font-input);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field select option {
  color: var(--ink);
  background: var(--surface);
}

.field textarea {
  resize: none;
  min-height: 160px;
  overflow: hidden;
}

.terms-consent {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-alt) 28%, var(--surface));
}

.terms-consent.is-invalid {
  border-color: color-mix(in srgb, var(--warning) 70%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 40%, transparent);
}

.terms-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
}

.terms-consent-check input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.terms-consent-check > span {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.terms-link-btn {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.terms-link-btn:hover {
  color: var(--accent);
}

#terms-error.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  visibility: hidden;
}

#terms-error.field-error.active {
  visibility: visible;
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: color-mix(in srgb, var(--warning) 72%, var(--line)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 42%, transparent);
}

.address-input-row .location-open.is-invalid {
  border-color: color-mix(in srgb, var(--warning) 72%, var(--line)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 42%, transparent);
}

.address-input-row.is-location-invalid {
  border-radius: 12px;
}

.calendar-field {
  grid-column: 1 / -1;
}

.calendar {
  margin-top: 10px;
  background: var(--surface-alt);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
}

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

.calendar-title {
  font-weight: 700;
  color: var(--ink);
}

.calendar-nav {
  width: var(--control-height-md);
  height: var(--control-height-md);
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.calendar-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-days {
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.calendar-day {
  border: none;
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  color: var(--ink);
}

.calendar-day:hover {
  background: var(--accent-soft);
}

.calendar-day.today {
  border: 1px solid var(--accent);
}

.calendar-day.unavailable {
  background: color-mix(in srgb, var(--surface-muted) 82%, var(--surface));
  color: var(--ink-faded-strong);
  border: 1px dashed color-mix(in srgb, var(--line) 70%, var(--muted));
}

.calendar-day.outside {
  color: var(--ink-faded);
  background: var(--surface-muted);
}

.calendar-day.outside:not(.disabled):not(.unavailable) {
  opacity: 0.92;
}

.calendar-day.outside:not(.disabled):not(.unavailable):hover {
  background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface-muted));
  color: var(--ink);
}

.calendar-day.selected {
  background: var(--accent);
  color: #fff;
}

.calendar-day.disabled {
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--surface-muted) 86%, transparent),
      color-mix(in srgb, var(--surface-muted) 86%, transparent) 6px,
      color-mix(in srgb, var(--surface-muted) 70%, transparent) 6px,
      color-mix(in srgb, var(--surface-muted) 70%, transparent) 12px
    );
  color: color-mix(in srgb, var(--ink-faded-strong) 88%, var(--muted));
  border: 1px dashed color-mix(in srgb, var(--line) 76%, var(--muted));
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.84;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.slot-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.slot-label {
  font-weight: 600;
  color: var(--ink);
}

.slot-status {
  height: var(--slot-status-height);
  display: grid;
  align-items: start;
  overflow: hidden;
}

.slot-status > * {
  grid-area: 1 / 1;
  max-height: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(var(--slot-grid-cols), minmax(0, 1fr));
  gap: var(--slot-grid-gap);
  width: 100%;
  max-width: 100%;
  grid-auto-rows: minmax(var(--slot-btn-min-height), auto);
  min-height: calc(
    (var(--slot-grid-min-rows) * var(--slot-btn-min-height)) +
      ((var(--slot-grid-min-rows) - 1) * var(--slot-grid-gap))
  );
}

.time-slots[aria-busy="true"]::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  min-height: calc(var(--slot-grid-min-rows) * var(--slot-btn-min-height));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-alt) 80%, var(--line));
  background-image: linear-gradient(
    100deg,
    transparent 20%,
    color-mix(in srgb, var(--surface) 84%, transparent) 50%,
    transparent 80%
  );
  background-size: 220% 100%;
  animation: ui-shimmer 1.35s linear infinite;
}

.time-slots[aria-busy="true"] > * {
  opacity: 0;
  pointer-events: none;
}

.time-slots .selected-date {
  grid-column: 1 / -1;
}

.time-slots .slot-empty,
.time-slots .slot-note {
  grid-column: 1 / -1;
}

.slot-empty {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
  color: var(--muted);
  border: 1px dashed var(--line);
  font-weight: 600;
}

.slot-empty.is-error {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid var(--warning-line);
}

.slot-note {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--surface-alt);
  color: var(--ink-faded);
  font-weight: 600;
  font-size: 0.92rem;
}

.slot-note.reserved {
  border-style: solid;
  background: var(--accent-soft);
  color: var(--ink);
}

.slot-btn {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--slot-btn-min-height);
  height: 100%;
  width: 100%;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

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

@supports (content-visibility: auto) {
  .service-card {
    content-visibility: auto;
    contain-intrinsic-size: 290px;
  }

  .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 360px;
  }

  .product-category {
    content-visibility: auto;
    contain-intrinsic-size: 460px;
  }
}

.slot-btn.reserved {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
  background: var(--surface-alt);
  color: var(--ink-faded);
  border-color: var(--line);
}

.slot-btn.unavailable {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
  background: color-mix(in srgb, var(--surface-muted) 75%, var(--surface-alt));
  color: var(--ink-faded);
  border-color: var(--line);
}

.slot-btn.unavailable .slot-time {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ink-faded);
}

.slot-btn .slot-lock {
  font-size: 0;
  line-height: 0;
  display: inline-block;
  pointer-events: none;
}

.slot-btn .slot-lock::before {
  content: "lock";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 0.85rem;
  color: var(--ink-faded);
  opacity: 0.8;
  line-height: 1;
  display: inline-block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 21, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(12, 18, 26, 0.25);
  color: var(--ink);
}

.modal-panel h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.modal-panel p {
  margin: 0 0 18px;
  color: var(--ink-faded);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.payment-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.payment-card {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(26, 154, 116, 0.2);
}

.payment-card.light {
  background: var(--surface-alt);
  border-color: var(--line);
}

.payment-card h3,
.payment-card h4 {
  margin-top: 0;
}

.payment-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.customer-type-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-type-switch--big {
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.customer-type-switch--big .pill {
  flex: 1 1 0;
  min-width: 160px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: color-mix(in srgb, var(--line) 70%, var(--muted));
  background: color-mix(in srgb, var(--surface-alt) 85%, transparent);
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.customer-type-switch--big .pill span {
  display: inline-block;
  transform: translateY(1px);
}

.customer-type-switch--big .pill::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--line) 70%, var(--muted));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: transparent;
}

.customer-type-switch--big .pill.active::before,
.customer-type-switch--big .pill[aria-pressed="true"]::before {
  content: "✓";
  background: var(--accent);
  border-color: var(--accent);
}

.customer-type-switch .pill.active,
.customer-type-switch .pill[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface));
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
  color: color-mix(in srgb, var(--accent-strong) 85%, var(--ink));
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(26, 154, 116, 0.16);
}

.customer-type-switch .pill:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#service-intake {
  padding-top: 6px;
  display: grid;
  gap: 10px;
}

#service-intake .field-grid {
  margin-top: 10px;
  gap: 12px;
}

#service-intake .slot-note {
  margin-top: 10px;
}

#intake-area-grid.has-subarea {
  align-items: start;
}

#subarea-field.reveal-in {
  animation: field-reveal 0.2s ease;
}

.step-inline-error {
  margin-top: 4px;
}

@keyframes field-reveal {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message {
  margin-top: 16px;
  min-height: 0;
  font-size: var(--type-small);
}

#form-message {
  min-height: 52px;
  max-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#form-message:empty {
  display: flex;
  border-color: transparent;
  background: transparent;
  color: transparent;
  padding: 10px 0;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.panel-actions .startover-btn {
  margin-inline-end: auto;
}

.panel-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  flex-shrink: 0;
}

.panel-steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}

.panel-steps .step-title {
  font-size: var(--font-step-title);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 86%, transparent);
  font-size: var(--font-step-title);
  font-weight: 700;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.step-pill.upcoming {
  opacity: 0.9;
}

.step-pill.active {
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface));
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow: 0 10px 24px rgba(23, 100, 77, 0.16);
  transform: translateY(-1px);
}

.step-pill.done {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  color: color-mix(in srgb, var(--accent-strong) 70%, var(--ink));
}

.step-pill:hover {
  transform: translateY(-1px);
}

.step-pill.done .step-index {
  background: var(--accent);
  color: #fff;
}

.step-pill .step-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  display: grid;
  place-items: center;
  font-size: var(--font-step-index);
  font-weight: 700;
}

.step-pill .step-title {
  font-weight: 600;
}

.btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-button);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 24px rgba(26, 154, 116, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn .next-icon {
  font-size: 1.2rem;
  font-weight: 300;
  font-family: "Noto Sans Symbols 2", "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols",
    "Symbola", sans-serif;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(1px);
}

[dir="rtl"] .btn .next-icon {
  transform: translateY(1px) scaleX(-1);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.btn.ghost.danger {
  border-color: var(--warning-line);
  color: var(--warning);
}

.btn.ghost.danger:hover {
  background: var(--warning-soft);
}

.btn.danger {
  background: var(--warning);
  color: #fff;
  box-shadow: 0 16px 24px rgba(194, 77, 44, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn.danger:hover {
  filter: brightness(0.98);
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.summary-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
  min-height: var(--panel-height);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.summary-card h3 {
  margin-top: 0;
  font-size: var(--font-summary-title);
}

.summary-section {
  margin-bottom: 16px;
}

.summary-label {
  font-size: var(--font-summary-text);
  color: var(--muted);
  margin-bottom: 6px;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--font-summary-text);
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-alt) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.summary-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.summary-item-title {
  font-weight: 600;
}

.summary-item-sub {
  color: var(--muted);
  font-size: 0.82em;
  line-height: 1.25;
  word-break: break-word;
  display: grid;
  gap: 2px;
}

.summary-item-sub-line {
  display: block;
}

.summary-price {
  white-space: nowrap;
}

.summary-text {
  color: var(--muted);
  font-size: var(--font-summary-text);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 12px;
}

.summary-footer {
  margin-top: 14px;
}

.summary-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-booking-mode="products"] .summary-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 96%, var(--surface-alt)) 0%,
    color-mix(in srgb, var(--surface-alt) 26%, var(--surface)) 100%
  );
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
}

body[data-booking-mode="products"] .summary-card h3 {
  margin-bottom: 11px;
}

body[data-booking-mode="products"] .summary-label {
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-weight: 700;
  font-size: 0.76rem;
}

body[data-booking-mode="products"] .summary-list li {
  padding: 10px 11px;
  border-radius: 12px;
  border-inline-start: 3px solid color-mix(in srgb, var(--accent) 44%, var(--line));
  background: color-mix(in srgb, var(--surface) 74%, var(--surface-alt));
}

body[data-booking-mode="products"] .summary-item-title {
  font-size: 0.89rem;
  font-weight: 700;
}

body[data-booking-mode="products"] .summary-item-sub {
  font-size: 0.79rem;
}

body[data-booking-mode="products"] .summary-price {
  font-size: 0.86rem;
  font-weight: 800;
}

body[data-booking-mode="products"] .summary-total {
  border-top: 1px dashed color-mix(in srgb, var(--line) 78%, transparent);
}

body[data-booking-mode="products"] .payment-modal-summary-head {
  font-weight: 800;
}

.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 22, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.service-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-dialog {
  width: min(var(--service-modal-width), 92vw);
  height: min(var(--service-modal-height), 78vh);
  background: color-mix(in srgb, var(--surface) 96%, #12191b);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px) saturate(108%);
}

.service-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--line);
}

.service-modal-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.service-modal-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.service-modal-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-modal-close {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.service-modal-body {
  padding: 16px 20px 22px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--ink);
  flex: 1;
}

.service-modal-media {
  width: 100%;
  min-height: 170px;
  max-height: 260px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 75%, transparent);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.service-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.service-modal-overview {
  color: var(--ink);
}

:root[data-theme="light"] .service-modal {
  background: rgba(18, 22, 22, 0.34);
}

:root[data-theme="light"] .service-modal-dialog {
  background: color-mix(in srgb, var(--surface) 98%, #ffffff);
}

.service-modal-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.service-questions,
.service-question-card {
  scroll-margin-top: 84px;
}

.location-picker {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.location-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.location-status {
  font-size: 0.92rem;
  color: var(--muted);
}

.location-open {
  flex: 0 0 auto;
}

.location-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 22, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.location-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.location-modal-dialog {
  width: min(920px, 94vw);
  height: min(720px, 86vh);
  height: min(720px, 86dvh);
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .location-modal-dialog {
    width: min(1120px, 94vw);
    height: min(800px, 88vh);
    height: min(800px, 88dvh);
  }
}

@media (min-width: 1440px) {
  .location-modal-dialog {
    width: min(1240px, 92vw);
    height: min(860px, 90vh);
    height: min(860px, 90dvh);
  }
}

.location-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.location-modal-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.location-modal-subtitle {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}

.location-modal-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.location-search-field {
  margin: 0;
  flex: 1;
  width: auto;
  max-width: 520px;
  min-width: 220px;
  position: relative;
}

.location-search-field input {
  min-height: 48px;
  padding: 10px 12px;
}

.place-autocomplete-wrap {
  width: 100%;
}

.place-autocomplete {
  width: 100%;
  min-height: 48px;
}

.place-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.place-suggest-item {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

[dir="rtl"] .place-suggest-item {
  text-align: right;
}

.place-suggest-item:hover,
.place-suggest-item.active {
  background: var(--surface-alt);
}

.location-use-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.location-use-btn .icon {
  font-size: 1.9rem;
}

.location-map {
  flex: 1;
  margin: 0 20px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 320px;
  background: var(--surface-alt);
}

.location-map.map-dark-filter {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85) contrast(1.1);
}

.location-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px calc(18px + env(safe-area-inset-bottom, 0px));
}

.location-modal-footer .field-error {
  flex: 1;
}

@media (max-width: 520px) {
  .location-modal-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .location-modal-controls {
    padding: 12px 14px 10px;
    gap: 10px;
  }

  .location-search-field {
    min-width: 0;
    max-width: none;
  }

  .location-map {
    margin: 0 14px 12px;
    min-height: 280px;
  }

  .location-modal-footer {
    padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

.confirm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 46;
}

.confirm-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 22, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.confirm-modal.active {
  pointer-events: auto;
}

.confirm-modal.active::before {
  opacity: 1;
}

.confirm-modal-dialog {
  width: min(540px, 92vw);
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.confirm-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.confirm-modal-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.confirm-modal-subtitle {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.confirm-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--muted);
  font-size: 0.95rem;
}

.otp-body .field {
  margin-top: 12px;
}

.otp-body input {
  width: 100%;
}

#otp-error.field-error {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
}

:root[data-theme="dark"] #otp-error.field-error {
  font-weight: 700;
  opacity: 1;
}

.otp-error-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--warning-soft);
  border: 1px solid var(--warning-line);
  color: var(--warning);
  max-width: 100%;
}

:root[data-theme="dark"] .otp-error-pill {
  color: #ffffff;
  background: rgba(255, 138, 122, 0.16);
  border-color: rgba(255, 138, 122, 0.42);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.confirm-modal-actions {
  padding: 16px 20px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.terms-modal-dialog {
  width: min(940px, 96vw);
  height: min(78dvh, 760px);
  min-height: 560px;
  max-height: none;
  background: #ffffff !important;
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#terms-modal .confirm-modal-head,
#terms-modal .confirm-modal-body,
#terms-modal .confirm-modal-actions {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#terms-modal .confirm-modal-body {
  flex: 1 1 auto;
}

.terms-modal-lang {
  display: inline-flex;
  margin-top: 12px;
  margin-left: 20px;
  margin-right: auto;
  width: max-content;
  max-width: calc(100% - 40px);
  align-self: flex-start;
}

#terms-modal[data-terms-lang="ar"] .terms-modal-lang {
  margin-left: auto;
  margin-right: 20px;
}

:root[data-theme="dark"] #terms-modal .confirm-modal-dialog,
:root[data-theme="dark"] #terms-modal .confirm-modal-head,
:root[data-theme="dark"] #terms-modal .confirm-modal-body,
:root[data-theme="dark"] #terms-modal .confirm-modal-actions {
  background:
    linear-gradient(
      158deg,
      color-mix(in srgb, var(--surface) 86%, var(--surface-alt) 14%) 0%,
      color-mix(in srgb, var(--surface-alt) 84%, var(--accent-soft) 16%) 100%
    ) !important;
  background-color: var(--surface) !important;
  border-color: var(--line) !important;
}

.terms-modal-body {
  white-space: pre-wrap;
  line-height: 1.65;
  color: var(--ink);
  max-height: none;
}

.terms-modal-body[dir="rtl"] {
  text-align: right;
}

#terms-modal[data-terms-lang="ar"] .confirm-modal-head {
  flex-direction: row-reverse;
}

#terms-modal[data-terms-lang="ar"] .confirm-modal-head > div {
  text-align: right;
}

#terms-modal[data-terms-lang="en"] .confirm-modal-head > div {
  text-align: left;
}

#terms-modal[data-terms-lang="ar"] .confirm-modal-actions {
  justify-content: flex-start;
}

#terms-modal[data-terms-lang="en"] .confirm-modal-actions {
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .terms-modal-dialog {
    width: min(96vw, 96vw);
    height: min(88dvh, 760px);
    min-height: 500px;
  }

  .terms-modal-lang {
    margin-top: 10px;
    margin-left: 14px;
    margin-right: auto;
    max-width: calc(100% - 28px);
  }

#terms-modal[data-terms-lang="ar"] .terms-modal-lang {
    margin-left: auto;
    margin-right: 14px;
  }

  .terms-modal-body {
    padding: 14px;
    max-height: none;
  }
}

#stock-alert-modal .confirm-modal-dialog {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow:
    0 16px 32px rgba(18, 45, 37, 0.2),
    0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
}

#stock-alert-modal .confirm-modal-head {
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
}

#stock-alert-modal .confirm-modal-subtitle {
  line-height: 1.5;
}

#stock-alert-modal #stock-alert-email {
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 26%, var(--surface));
  padding-inline: 11px;
}

#stock-alert-modal #stock-alert-email:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.payment-modal-dialog {
  width: min(560px, 94vw);
}

#payment-modal-copy {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 65%, transparent);
  color: var(--ink);
  line-height: 1.45;
}

.payment-modal-summary-head {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.payment-modal-summary {
  margin-top: 0;
}

.payment-modal-total-row {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--ink);
}

.payment-modal-error {
  margin-top: 10px;
  min-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  text-overflow: clip;
  transition: opacity 160ms ease;
  opacity: 0;
  visibility: visible;
}

.payment-modal-error.active {
  opacity: 1;
}

@media (max-width: 560px) {
  .payment-modal-error {
    min-height: 64px;
    height: 64px;
    align-items: flex-start;
    padding-top: 2px;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .confirm-modal-actions {
    flex-direction: column;
  }
  .confirm-modal-actions .btn {
    width: 100%;
  }
}

.service-modal-body li {
  margin-bottom: 6px;
}

.help-inline {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--font-summary-text);
  color: var(--muted);
}

.help-inline-title {
  font-weight: 700;
  color: var(--ink);
}

.help-inline-text {
  color: var(--muted);
}

.help-inline.help-inline-terms-strip {
  margin-top: 8px;
}

.help-inline-terms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.help-inline-terms-link {
  text-decoration: none;
}

.help-inline-phone {
  font-weight: 700;
  color: var(--accent-strong);
}

.help-inline a.help-inline-phone {
  text-decoration: none;
}

.landing-page .help-inline.landing-help-inline {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-alt));
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

[dir="rtl"] .help-inline-phone {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .help-inline-terms-row {
  justify-content: flex-start;
}

[dir="rtl"] .rich-preview[data-rtl-ltr="true"] {
  direction: ltr;
  text-align: left;
}

.summary-scroll::-webkit-scrollbar {
  width: 8px;
}

.summary-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.summary-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.summary-scroll {
  scrollbar-color: var(--scrollbar-thumb) transparent;
  scrollbar-width: thin;
}

.service-modal-body::-webkit-scrollbar {
  width: 8px;
}

.service-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.service-modal-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.service-modal-body {
  scrollbar-color: var(--scrollbar-thumb) transparent;
  scrollbar-width: thin;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.rich-toolbar button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.rich-toolbar input[type="color"] {
  border: none;
  width: 34px;
  height: 34px;
  background: transparent;
  cursor: pointer;
}

.rich-wrapper {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 8px 10px;
}

.rich-editor {
  min-height: 40px;
  outline: none;
  font: inherit;
}

.customize-toggle {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.customizer-panel {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--customizer-width);
  max-width: 92vw;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.customizer-panel.active {
  transform: translateX(0);
}

@media (min-width: 980px) {
  body.customizer-open {
    padding-left: var(--customizer-width);
  }

  body.customizer-open .container {
    margin-left: 0;
    margin-right: auto;
  }

  body.customizer-open .customize-toggle {
    left: calc(var(--customizer-width) + 24px);
  }
}

.customizer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.customizer-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.customizer-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.customizer-editor-controls {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.customizer-editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 340px;
  width: min(520px, 90vw);
  cursor: pointer;
}

.customizer-editor-field select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink);
  padding: 12px 12px;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  cursor: pointer;
  font: inherit;
}

.customizer-editor-controls .btn {
  width: auto;
  font-size: 0.9rem;
  padding: 10px 14px;
}

/* Editor-only customizer (/customizer): use html dataset to avoid layout flash before JS. */
:root[data-customizer-editor="true"] .customize-toggle {
  display: none;
}

:root[data-customizer-editor="true"] {
  --customizer-editor-cols: 4;
  --customizer-editor-safe-right: 0px;
}

:root[data-customizer-editor="true"] main.container {
  display: none;
}

:root[data-customizer-editor="true"] body {
  padding-left: 0 !important;
}

/* In editor mode we want full-width layout regardless of the runtime "customizer-open" toggle. */
:root[data-customizer-editor="true"] .customizer-panel {
  position: relative;
  inset: auto;
  /* Builder canvas: use the full viewport width (so we can actually use the space). */
  width: 100vw !important;
  max-width: 100vw !important;
  height: auto;
  min-height: calc(100vh - 84px);
  transform: none;
  transition: none;
  border-right: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  z-index: 30;
  /* Sticky elements should reference the page scroll, not this panel. */
  overflow: visible !important;
}

:root[data-customizer-editor="true"] .customizer-head {
  /* Let the title/subtitle scroll away in /customizer to free vertical space. */
  position: static;
  background: transparent;
  backdrop-filter: none;
  padding-bottom: 8px;
}

:root[data-customizer-editor="true"] .customizer-headbar {
  position: sticky;
  top: 0;
  z-index: 36;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 32px;
}

:root[data-customizer-editor="true"] .customizer-editor-controls {
  margin-top: 0;
  align-items: flex-end;
}

:root[data-customizer-editor="true"] .customizer-editor-field {
  /* Compact so the sticky bar doesn't steal height. */
  min-width: 260px;
  width: min(420px, 70vw);
}

:root[data-customizer-editor="true"] .customizer-editor-field.small {
  min-width: 140px;
  width: 160px;
}

:root[data-customizer-editor="true"] .customizer-editor-field select {
  min-height: 40px;
  padding: 10px 12px;
}

:root[data-customizer-editor="true"] .customizer-panel.active {
  transform: none;
}

:root[data-customizer-editor="true"] .customizer-body {
  padding-left: 32px;
  padding-right: 32px;
  /* Use nearly full viewport width so the 3-4 column grids don't collapse to the left. */
  max-width: none;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

:root[data-customizer-editor="true"] .customizer-body {
  overflow-y: visible;
  overflow-x: visible;
}

:root[data-customizer-editor="true"] .customizer-body > * {
  min-width: 0;
}

:root[data-customizer-editor="true"] .customizer-main {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  /* Reserve space for the floating Quill editor without pushing the action bar inward. */
  padding-right: var(--customizer-editor-safe-right);
}

:root[data-customizer-editor="true"] .customizer-section {
  width: 100%;
}

/* Global separators for editor-mode customizer sections/fields. */
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-note,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-subsection,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-actions,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-row,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-list,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-note,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-subsection,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-actions,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-row,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
}

:root[data-customizer-editor="true"] .customizer-field {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 12px;
  color: var(--ink);
  font-weight: 500;
}

:root[data-customizer-editor="true"] .customizer-field-title {
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.01em;
}

:root[data-customizer-editor="true"] .customizer-field .favicon-set-title {
  color: var(--accent-strong);
  font-weight: 800;
}

:root[data-customizer-editor="true"] .customizer-field input,
:root[data-customizer-editor="true"] .customizer-field textarea,
:root[data-customizer-editor="true"] .customizer-field select {
  font-weight: 500;
}

:root[data-customizer-editor="true"] .customizer-section summary {
  /* Category/section headers stay normal (white/ink). */
  color: var(--ink);
}

:root[data-customizer-editor="true"] .customizer-section {
  box-shadow: 0 10px 22px rgba(16, 20, 20, 0.08);
}

:root[data-customizer-editor="true"] .customizer-close {
  display: none;
}

:root[data-customizer-editor="true"] .customizer-device {
  display: none;
}

:root[data-customizer-editor="true"] .customizer-toolbar {
  /* Keep toolbar inside the builder layout; no fixed-position drifting. */
  position: sticky;
  top: 18px;
  z-index: 40;
  max-height: calc(100vh - 36px);
  overflow: auto;
  right: auto;
}

/* Floating "back to top" buttons for /customizer (in addition to the sidebar button). */
:root[data-customizer-editor="true"] .customizer-fab {
  position: fixed;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(16, 20, 20, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}

:root[data-customizer-editor="true"] .customizer-fab.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

:root[data-customizer-editor="true"] .customizer-fab.right {
  right: 22px;
}

:root[data-customizer-editor="true"] .customizer-fab.left {
  left: 22px;
}

:root[data-customizer-editor="true"] .customizer-fab .icon {
  font-family: "Material Symbols Rounded";
}

:root[data-customizer-editor="true"] .customizer-body {
  /* Builder layout: content + action bar column. */
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 16px;
  padding-right: 32px;
  align-items: start;
}

:root[data-customizer-editor="true"] .customizer-grid {
  display: grid;
  grid-template-columns: repeat(var(--customizer-editor-cols), minmax(0, 1fr));
}

:root[data-customizer-editor="true"] .customizer-grid.customizer-cards-grid {
  /* Cards (Services/Products/etc.) need larger minimum widths than plain fields. */
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: stretch;
}

:root[data-customizer-editor="true"] #customizer-services.customizer-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)) !important;
}

:root[data-customizer-editor="true"] #customizer-areas.customizer-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)) !important;
}

:root[data-customizer-editor="true"] .customizer-grid.customizer-cards-grid .customizer-card,
:root[data-customizer-editor="true"] .customizer-grid.customizer-cards-grid .customizer-product-card,
:root[data-customizer-editor="true"] .customizer-grid.customizer-cards-grid .customizer-question-card,
:root[data-customizer-editor="true"] .customizer-grid.customizer-cards-grid .customizer-option-card {
  height: 100%;
}

/* Multi-column layouts inside cards too (services/products/questions) in editor mode. */
:root[data-customizer-editor="true"] .customizer-card,
:root[data-customizer-editor="true"] .customizer-product-card,
:root[data-customizer-editor="true"] .customizer-question-card,
:root[data-customizer-editor="true"] .customizer-option-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 12px;
  align-items: start;
}

:root[data-customizer-editor="true"] #customizer-services .customizer-card,
:root[data-customizer-editor="true"] #customizer-areas .customizer-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:root[data-customizer-editor="true"] #customizer-services .customizer-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

:root[data-customizer-editor="true"] #customizer-services .customizer-card-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-strong);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 4px;
}

:root[data-customizer-editor="true"] .customizer-card-title {
  color: var(--accent-strong);
}

:root[data-customizer-editor="true"] .customizer-card > :not(.customizer-field),
:root[data-customizer-editor="true"] .customizer-product-card > :not(.customizer-field),
:root[data-customizer-editor="true"] .customizer-question-card > :not(.customizer-field),
:root[data-customizer-editor="true"] .customizer-option-card > :not(.customizer-field) {
  grid-column: 1 / -1;
}

:root[data-customizer-editor="true"] .customizer-question-options,
:root[data-customizer-editor="true"] .customizer-area-subareas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 10px;
}

:root[data-customizer-editor="true"] .customizer-question-options > .customizer-note,
:root[data-customizer-editor="true"] .customizer-question-options > .customizer-add,
:root[data-customizer-editor="true"] .customizer-area-subareas > .customizer-subsection,
:root[data-customizer-editor="true"] .customizer-area-subareas > .customizer-add {
  grid-column: 1 / -1;
}

@media (max-width: 1650px) {
  :root[data-customizer-editor="true"] .customizer-card,
  :root[data-customizer-editor="true"] .customizer-product-card,
  :root[data-customizer-editor="true"] .customizer-question-card,
  :root[data-customizer-editor="true"] .customizer-option-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  :root[data-customizer-editor="true"] #customizer-services .customizer-card,
  :root[data-customizer-editor="true"] #customizer-areas .customizer-card {
    grid-template-columns: 1fr;
  }

  :root[data-customizer-editor="true"] .customizer-card,
  :root[data-customizer-editor="true"] .customizer-product-card,
  :root[data-customizer-editor="true"] .customizer-question-card,
  :root[data-customizer-editor="true"] .customizer-option-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  :root[data-customizer-editor="true"] .customizer-card,
  :root[data-customizer-editor="true"] .customizer-product-card,
  :root[data-customizer-editor="true"] .customizer-question-card,
  :root[data-customizer-editor="true"] .customizer-option-card {
    grid-template-columns: 1fr;
  }
}

:root[data-customizer-editor="true"] .customizer-grid .customizer-field {
  margin-top: 0;
}

:root[data-customizer-editor="true"] .customizer-grid .customizer-field input,
:root[data-customizer-editor="true"] .customizer-grid .customizer-field textarea,
:root[data-customizer-editor="true"] .customizer-grid .customizer-field select {
  padding: 9px 10px;
}

/* Responsive columns: auto-fit already adapts; keep a single-column fallback only. */
@media (max-width: 740px) {
  :root[data-customizer-editor="true"] .customizer-grid {
    grid-template-columns: 1fr;
  }
}

/* Make customizer sections multi-column in editor mode (applies across all pages). */
:root[data-customizer-editor="true"] details.customizer-section[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 12px;
  width: 100%;
  align-content: start;
}

:root[data-customizer-editor="true"] details.customizer-section[open] > summary,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-note,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-subsection,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-actions,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-row,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-list,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-add,
:root[data-customizer-editor="true"] details.customizer-section[open] > input[type="file"] {
  grid-column: 1 / -1;
}

:root[data-customizer-editor="true"] details.customizer-section[open] > summary {
  margin-bottom: 0;
}

:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content {
  display: grid;
  grid-template-columns: repeat(var(--customizer-editor-cols), minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 12px;
  width: 100%;
  min-width: 0;
}

:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-note,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-subsection,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-actions,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-row,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-list,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-add,
:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > input[type="file"] {
  grid-column: 1 / -1;
}

:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-list {
  width: 100%;
  min-width: 0;
}

:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-field {
  margin-top: 0;
  min-width: 0;
  width: 100%;
}

:root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content > .customizer-field {
  margin-top: 0;
  min-width: 0;
  width: 100%;
}

@media (max-width: 740px) {
  :root[data-customizer-editor="true"] details.customizer-section[open],
  :root[data-customizer-editor="true"] details.customizer-section[open] > .customizer-section-content {
    grid-template-columns: 1fr;
  }
}

body.customizer-editor .customize-toggle {
  display: none;
}

body.customizer-editor main.container {
  display: none;
}

body.customizer-editor {
  padding-left: 0 !important;
}

body.customizer-editor .customizer-panel {
  position: relative;
  inset: auto;
  width: 100vw !important;
  max-width: 100vw !important;
  height: auto;
  min-height: calc(100vh - 84px);
  transform: none;
  transition: none;
  border-right: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  z-index: 30;
  overflow: visible !important;
}

body.customizer-editor .customizer-body {
  padding-left: 32px;
  padding-right: 32px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  grid-template-columns: minmax(0, 1fr) 64px;
}

body.customizer-editor .customizer-main {
  box-sizing: border-box;
  padding-right: var(--customizer-editor-safe-right);
}

body.customizer-editor .customizer-body > * {
  min-width: 0;
}

body.customizer-editor .customizer-field {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 12px;
  color: var(--ink);
  font-weight: 500;
}

body.customizer-editor .customizer-field-title,
body.customizer-editor .customizer-field .favicon-set-title {
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.customizer-editor .customizer-field input,
body.customizer-editor .customizer-field textarea,
body.customizer-editor .customizer-field select {
  font-weight: 500;
}

body.customizer-editor .customizer-panel.active {
  transform: none;
}

body.customizer-editor .customizer-close {
  display: none;
}

/* Ensure toolbar stays fixed even if the html dataset isn't set for some reason. */
body.customizer-editor .customizer-toolbar {
  position: sticky;
  top: 18px;
  z-index: 40;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.customizer-close {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.customizer-body {
  direction: ltr;
  padding: 0 20px 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.customizer-body::-webkit-scrollbar {
  width: 10px;
}

.customizer-body::-webkit-scrollbar-track {
  background: transparent;
}

.customizer-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.customizer-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-top: 18px;
  grid-column: 1;
}

.customizer-toolbar {
  position: sticky;
  top: 0;
  align-self: start;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(16, 20, 20, 0.08);
  grid-column: 2;
}

/* Floating back-to-top FABs are only for /customizer editor mode. */
.customizer-fab {
  display: none;
}

.toolbar-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.toolbar-btn .icon {
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.2rem;
  line-height: 1;
}

.toolbar-btn.active,
.toolbar-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.customizer-screen-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 80;
}

.customizer-screen-flash.show.success {
  animation: customizerFlashSuccess 0.7s ease-out;
}

.customizer-screen-flash.show.danger {
  animation: customizerFlashDanger 0.7s ease-out;
}

@keyframes customizerFlashSuccess {
  0% {
    opacity: 0;
    background: rgba(24, 158, 120, 0);
  }
  25% {
    opacity: 1;
    background: rgba(24, 158, 120, 0.18);
  }
  100% {
    opacity: 0;
    background: rgba(24, 158, 120, 0);
  }
}

@keyframes customizerFlashDanger {
  0% {
    opacity: 0;
    background: rgba(198, 67, 52, 0);
  }
  25% {
    opacity: 1;
    background: rgba(198, 67, 52, 0.18);
  }
  100% {
    opacity: 0;
    background: rgba(198, 67, 52, 0);
  }
}

.toolbar-lang {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.customizer-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.customizer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.customizer-toggle-row .toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.customizer-toggle-row .toggle-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.customizer-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.customizer-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.customizer-toggle .toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.2s ease;
}

.customizer-toggle .toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.customizer-toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.customizer-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
}

.customizer-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 14px;
  background: var(--surface-alt);
}

.customizer-section summary {
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  list-style: none;
}

.customizer-section summary::-webkit-details-marker {
  display: none;
}

.customizer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  margin-top: 10px;
}

.customizer-field input,
.customizer-field textarea,
.customizer-field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.customizer-field input::placeholder,
.customizer-field textarea::placeholder {
  color: var(--muted);
}

.customizer-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.customizer-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.customizer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.customizer-card-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}

.customizer-product-list {
  display: grid;
  gap: 10px;
}

.customizer-product-card {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: var(--surface-alt);
}

.customizer-product-gallery {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.customizer-product-gallery-item {
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-alt));
  border-style: dashed;
}

.customizer-product-gallery-item.is-cover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.customizer-product-gallery-preview {
  height: 92px;
}

.customizer-product-gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customizer-product-gallery-actions {
  margin-top: 2px;
  gap: 8px;
}

.customizer-product-gallery-actions .btn,
.customizer-product-gallery-actions .remove-btn,
.customizer-product-gallery-actions .customizer-add {
  min-height: 34px;
}

.customizer-service-questions {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.customizer-question-card {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: var(--surface-alt);
}

.customizer-question-options {
  display: grid;
  gap: 8px;
}

.customizer-option-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: var(--surface);
}

.customizer-area-subareas {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}

.customizer-preview-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.customizer-upload-row .customizer-add {
  margin-top: 0;
}

.customizer-preview {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.customizer-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customizer-service-preview img {
  object-fit: contain;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.customizer-category-preview img {
  object-fit: contain;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.customizer-card .remove-btn {
  align-self: flex-end;
  border: none;
  background: var(--surface-alt);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.customizer-add {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.customizer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.customizer-order-actions {
  margin-top: 2px;
  gap: 8px;
}

.customizer-order-btn {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
}

.customizer-actions .btn.ghost.active {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.customizer-lang {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customizer-device {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  padding: 18px 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.customizer-device-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.customizer-device-buttons {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 8px;
}

.customizer-device-buttons .btn {
  padding: 8px 14px;
}

.customizer-device-buttons .btn.active {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.customizer-device-buttons .preview-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customizer-device-buttons .preview-btn .icon {
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 520px) {
  .customizer-body {
    grid-template-columns: 1fr;
  }
  .customizer-device-buttons {
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 6px;
  }
  .customizer-device-buttons .preview-btn {
    width: 40px;
    height: 40px;
  }
  .customizer-toolbar {
    position: sticky;
    top: 0;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    order: -1;
  }
}

body.preview-desktop .container {
  max-width: 1320px;
}

body.preview-tablet .container {
  max-width: 900px;
  margin: 0 auto;
}

body.preview-tablet .booking-layout {
  grid-template-columns: 1fr;
}

body.preview-tablet .summary {
  position: static;
}

body.preview-tablet .services-grid {
  grid-template-columns: repeat(var(--services-cols-tablet), minmax(0, 1fr));
}

body.preview-tablet .product-items {
  grid-template-columns: repeat(var(--products-cols-tablet), minmax(0, 1fr));
}

body.preview-mobile {
  --panel-head-min-height: 56px;
  --hero-min-height: 0px;
}

body.preview-mobile .container {
  padding: var(--mobile-container-padding);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

body.preview-mobile .site-header {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-bottom: 6px;
}

body.preview-mobile .site-header .lang-switch {
  display: flex;
  margin-left: auto;
}

body.preview-mobile .booking-layout {
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr;
  overflow-x: hidden;
}

body.preview-mobile .summary {
  position: static;
}

body.preview-mobile .panel {
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}

body.preview-mobile .summary-card {
  width: 100%;
}

body.customizer-open.preview-mobile .container,
body.customizer-open.preview-mobile .booking-layout,
body.customizer-open.preview-mobile .panel,
body.customizer-open.preview-mobile .summary-card {
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

:root[data-mobile-panel-full="false"] body.preview-mobile .container {
  padding: 16px;
}

:root[data-mobile-panel-full="false"] body.preview-mobile .panel {
  max-width: 640px;
  margin: 0 auto;
}

:root[data-mobile-panel-full="false"] body.preview-mobile .summary-card {
  max-width: 640px;
  margin: 0 auto;
}

body.preview-mobile .hero {
  flex-direction: column;
  align-items: flex-start;
  margin-top: calc(var(--hero-top-gap) + 16px);
  margin-bottom: 8px;
}

body.preview-mobile .hero h1 {
  font-size: calc(var(--font-hero-title) * var(--font-mobile-scale));
  line-height: 1.15;
  white-space: normal;
  padding-inline-start: 2px;
}

body.preview-mobile .hero p {
  display: none;
}

body.preview-mobile .panel-title-row {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

body.preview-mobile .panel-head h2 {
  font-size: clamp(0.85rem, 3.2vw, calc(var(--font-panel-title) * var(--font-mobile-scale)));
  line-height: 1.15;
  white-space: normal;
}

body.preview-mobile .services-grid {
  grid-template-columns: repeat(var(--services-cols-mobile), minmax(0, 1fr));
  gap: 10px;
}

body.preview-mobile .product-items {
  grid-template-columns: repeat(var(--products-cols-mobile), minmax(0, 1fr));
  gap: 10px;
}

body.preview-mobile .service-card {
  min-height: calc(136px + var(--service-card-mobile-extra));
  padding: 10px;
  gap: 6px;
}

body.preview-mobile .product-image {
  min-height: 150px;
}

body.preview-mobile .product-qty {
  padding: 6px 8px;
  gap: 6px;
  max-width: 100%;
  width: 100%;
  grid-template-columns: auto auto minmax(40px, 52px) auto;
}

body.preview-mobile .product-qty-label {
  display: inline-flex;
}

body.preview-mobile .product-qty .qty-btn {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

body.preview-mobile .product-qty .qty-input {
  min-height: 40px;
  font-size: 0.88rem;
}

body.preview-mobile .service-title {
  padding: 0 8px;
  font-size: var(--service-title-mobile-size);
  line-height: 1.15;
  overflow: visible;
  display: block;
}

body.preview-mobile .service-info-btn {
  width: 20px;
  height: 20px;
}

body.preview-mobile .service-price {
  font-size: calc(var(--service-price-size) * var(--font-mobile-scale));
}

body.preview-mobile .service-duration {
  font-size: calc(var(--service-meta-size) * var(--font-mobile-scale));
}

body.preview-mobile .panel {
  min-height: auto;
  height: auto;
  padding: 18px;
  max-height: none;
  margin: 0;
}

body.preview-mobile .panel-body {
  min-height: auto;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.preview-mobile .details-grid {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
}

body.preview-mobile .panel-actions {
  flex-direction: column;
}

body.preview-mobile .panel-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.preview-mobile .btn {
  width: 100%;
  font-size: calc(var(--font-button) * var(--font-mobile-scale));
}

body.preview-mobile .customizer-device-buttons {
  flex-wrap: nowrap;
  flex-direction: row;
}

body.preview-mobile .customizer-device-buttons .btn {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 auto !important;
  min-width: 44px;
  font-size: 1rem;
}

body.preview-mobile .customizer-device-buttons .preview-btn .icon {
  font-size: 1.2rem;
}

body.preview-mobile .help-inline {
  font-size: calc(var(--font-summary-text) * var(--font-mobile-scale));
}

.customizer-status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.rich-preview {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
}

.rich-preview p,
.rich-preview h1,
.rich-preview h2,
.rich-preview h3,
.rich-preview h4,
.rich-preview h5,
.rich-preview h6 {
  margin: 0 0 6px;
  font-size: inherit;
}

.rich-preview p:last-child,
.rich-preview h1:last-child,
.rich-preview h2:last-child,
.rich-preview h3:last-child,
.rich-preview h4:last-child,
.rich-preview h5:last-child,
.rich-preview h6:last-child {
  margin-bottom: 0;
}

.rich-preview ul,
.rich-preview ol {
  margin: 0;
  padding-left: 18px;
}

.rich-preview-placeholder {
  color: var(--muted);
  font-size: 0.82rem;
}

.floating-editor {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(560px, 92vw);
  height: min(520px, 80vh);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 40;
  direction: ltr;
}

.floating-editor[hidden] {
  display: none;
}

.floating-editor.single-line .ql-block-tools {
  display: none;
}

.floating-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: move;
}

.floating-editor-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}

.floating-editor-field {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.floating-editor-actions {
  display: inline-flex;
  gap: 8px;
}

.floating-editor .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  direction: ltr;
}

.floating-editor .ql-container.ql-snow {
  border: none;
  flex: 1;
  min-height: 0;
}

.floating-editor .ql-editor {
  font-family: "Plus Jakarta Sans", "Noto Kufi Arabic", sans-serif;
  font-size: 0.95rem;
  direction: ltr;
  text-align: left;
  color: var(--ink);
}

.floating-editor .ql-container.ql-snow {
  color: var(--ink);
  background: var(--surface);
}

.floating-editor .ql-toolbar.ql-snow {
  color: var(--ink);
}

.floating-editor .ql-toolbar.ql-snow .ql-picker-label,
.floating-editor .ql-toolbar.ql-snow .ql-picker-item {
  color: var(--ink);
}

.floating-editor .ql-toolbar.ql-snow .ql-stroke {
  stroke: var(--ink);
}

.floating-editor .ql-toolbar.ql-snow .ql-fill {
  fill: var(--ink);
}

.floating-editor .ql-toolbar.ql-snow .ql-picker-options {
  background: var(--surface);
  border-color: var(--line);
}

.floating-editor .ql-editor h1,
.floating-editor .ql-editor h2,
.floating-editor .ql-editor h3,
.floating-editor .ql-editor h4,
.floating-editor .ql-editor h5,
.floating-editor .ql-editor h6 {
  margin: 0 0 8px;
}

[dir="rtl"] .floating-editor:not(.force-ltr) .ql-editor {
  direction: rtl;
  text-align: right;
}

.service-modal-body h1,
.service-modal-body h2,
.service-modal-body h3,
.service-modal-body h4,
.service-modal-body h5,
.service-modal-body h6 {
  margin: 0 0 8px;
}

.ql-font-jakarta {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.ql-font-poppins {
  font-family: "Poppins", sans-serif;
}

.ql-font-montserrat {
  font-family: "Montserrat", sans-serif;
}

.ql-font-sourcesans {
  font-family: "Source Sans 3", sans-serif;
}

.ql-font-playfair {
  font-family: "Playfair Display", serif;
}

.ql-font-fraunces {
  font-family: "Fraunces", serif;
}

.ql-font-kufi {
  font-family: "Noto Kufi Arabic", sans-serif;
}

.ql-font-cairo {
  font-family: "Cairo", sans-serif;
}

.ql-font-tajawal {
  font-family: "Tajawal", sans-serif;
}

.ql-font-amiri {
  font-family: "Amiri", serif;
}

.ql-font-manrope {
  font-family: "Manrope", sans-serif;
}

.ql-font-dmsans {
  font-family: "DM Sans", sans-serif;
}

.ql-font-outfit {
  font-family: "Outfit", sans-serif;
}

.ql-font-raleway {
  font-family: "Raleway", sans-serif;
}

.ql-font-rubik {
  font-family: "Rubik", sans-serif;
}

.ql-font-lato {
  font-family: "Lato", sans-serif;
}

.ql-font-plexarabic {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.ql-font-naskh {
  font-family: "Noto Naskh Arabic", serif;
}

.ql-font-serif {
  font-family: "Times New Roman", serif;
}

.ql-font-sans {
  font-family: Arial, sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="jakarta"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="jakarta"]::before {
  content: "Jakarta";
  font-family: "Plus Jakarta Sans", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="poppins"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="poppins"]::before {
  content: "Poppins";
  font-family: "Poppins", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="montserrat"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="montserrat"]::before {
  content: "Montserrat";
  font-family: "Montserrat", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="sourcesans"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="sourcesans"]::before {
  content: "Source Sans";
  font-family: "Source Sans 3", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="playfair"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="playfair"]::before {
  content: "Playfair";
  font-family: "Playfair Display", serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="fraunces"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="fraunces"]::before {
  content: "Fraunces";
  font-family: "Fraunces", serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="kufi"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="kufi"]::before {
  content: "Kufi";
  font-family: "Noto Kufi Arabic", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="cairo"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="cairo"]::before {
  content: "Cairo";
  font-family: "Cairo", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="tajawal"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="tajawal"]::before {
  content: "Tajawal";
  font-family: "Tajawal", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="amiri"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="amiri"]::before {
  content: "Amiri";
  font-family: "Amiri", serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="manrope"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="manrope"]::before {
  content: "Manrope";
  font-family: "Manrope", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="dmsans"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="dmsans"]::before {
  content: "DM Sans";
  font-family: "DM Sans", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="outfit"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="outfit"]::before {
  content: "Outfit";
  font-family: "Outfit", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="raleway"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="raleway"]::before {
  content: "Raleway";
  font-family: "Raleway", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="rubik"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="rubik"]::before {
  content: "Rubik";
  font-family: "Rubik", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="lato"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="lato"]::before {
  content: "Lato";
  font-family: "Lato", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="plexarabic"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="plexarabic"]::before {
  content: "Plex Arabic";
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="naskh"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="naskh"]::before {
  content: "Naskh";
  font-family: "Noto Naskh Arabic", serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before {
  content: "Serif";
  font-family: "Times New Roman", serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="sans"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="sans"]::before {
  content: "Sans";
  font-family: Arial, sans-serif;
}

.ql-size-12px {
  font-size: 12px;
}

.ql-size-14px {
  font-size: 14px;
}

.ql-size-16px {
  font-size: 16px;
}

.ql-size-18px {
  font-size: 18px;
}

.ql-size-20px {
  font-size: 20px;
}

.ql-size-24px {
  font-size: 24px;
}

.ql-size-28px {
  font-size: 28px;
}

.ql-size-32px {
  font-size: 32px;
}

@media (max-width: 720px) {
  .floating-editor {
    left: 10px;
    right: 10px;
    width: auto;
    height: min(520px, 75vh);
  }
}

.favicon-preview {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--surface-alt);
}

.favicon-preview img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: contain;
}

.favicon-preview-empty {
  font-size: 0.82rem;
  color: var(--muted);
}

.favicon-set-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.favicon-set-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.logo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0 2px;
}

.logo-row input {
  min-width: 0;
}

.logo-preview {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--surface-alt);
}

.logo-preview img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: contain;
}

.logo-preview-empty {
  font-size: 0.82rem;
  color: var(--muted);
}

.favicon-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.favicon-row:first-of-type {
  border-top: none;
}

.favicon-row .favicon-preview {
  grid-column: 1 / -1;
}

.favicon-size {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-strong);
  box-shadow: 0 8px 16px rgba(20, 24, 24, 0.08);
  padding: 0;
}

.icon-btn .icon {
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 300;
  font-size: 1.1rem;
  line-height: 1;
}


[dir="rtl"] body {
  font-family: "Noto Kufi Arabic", "Plus Jakarta Sans", sans-serif;
}

[dir="rtl"] .booking-layout {
  direction: ltr;
}

[dir="rtl"] .panel,
[dir="rtl"] .summary,
[dir="rtl"] .help-inline {
  direction: rtl;
}

[dir="rtl"] .field-grid,
[dir="rtl"] .details-grid {
  direction: rtl;
}

[dir="rtl"] .field input,
[dir="rtl"] .field select,
[dir="rtl"] .field textarea {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions {
  direction: rtl;
  flex-direction: row;
  justify-content: space-between;
}

[dir="rtl"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn,
[dir="rtl"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions #next-btn {
  direction: rtl;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

[dir="rtl"] .panel-title-row {
  flex-direction: row;
}

[dir="rtl"] .panel-back-icon {
  transform: scaleX(-1);
}

[dir="rtl"] .panel-head h2 {
  font-size: calc(var(--font-panel-title) * var(--font-rtl-scale));
}

[dir="rtl"] .hero h1 {
  font-size: calc(var(--font-hero-title) * var(--font-rtl-scale));
}


[dir="rtl"] .summary-total,
[dir="rtl"] .summary-list li {
  direction: rtl;
}

@media (max-width: 1080px) {
  :root {
    --panel-height: auto;
    --panel-body-min-height: clamp(280px, 42vh, 460px);
    --booking-panel-body-min-height: clamp(320px, 46vh, 520px);
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .landing-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .panel,
  .summary-card {
    min-height: auto;
    height: auto;
  }

  .services-grid {
    grid-template-columns: repeat(var(--services-cols-tablet), minmax(0, 1fr));
  }

  .product-items {
    grid-template-columns: repeat(var(--products-cols-tablet), minmax(0, 1fr));
  }
}

@media (max-height: 860px) and (min-width: 721px) {
  :root {
    --panel-height: auto;
    --panel-body-min-height: clamp(240px, 38vh, 420px);
    --booking-panel-body-min-height: clamp(280px, 42vh, 480px);
  }

  .summary {
    position: static;
  }

  .panel,
  .summary-card {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(var(--services-cols-tablet), minmax(0, 1fr));
  }

  .landing-choice-grid {
    grid-template-columns: 1fr;
  }

  .landing-page .hero {
    margin-bottom: 14px;
  }

  .landing-page .help-inline.landing-help-inline {
    margin-top: 10px;
  }

  .product-image {
    min-height: 156px;
  }
}

@media (max-width: 720px) {
  :root {
    --panel-head-min-height: 56px;
    --hero-min-height: 0px;
    --slot-grid-gap: 8px;
    --slot-btn-min-height: 40px;
    --slot-status-height: 50px;
    --mobile-toolbar-scale: 0.95;
  }
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 8px;
    min-width: 0;
  }

  .brand-link {
    margin-top: min(var(--logo-pad-top-mobile, var(--logo-pad-top)), 0px);
    margin-bottom: min(var(--logo-pad-bottom-mobile, var(--logo-pad-bottom)), 0px);
    padding-top: max(var(--logo-pad-top-mobile, var(--logo-pad-top)), 0px);
    padding-bottom: max(var(--logo-pad-bottom-mobile, var(--logo-pad-bottom)), 0px);
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    transform: none;
  }

  .logo {
    width: var(--logo-width-mobile, var(--logo-width));
    height: var(--logo-width-mobile, var(--logo-width));
  }

  .logo-image {
    transform: translateY(var(--logo-offset-y-mobile, var(--logo-offset-y)))
      scale(var(--logo-scale-mobile, var(--logo-scale)));
  }

  .site-header .lang-switch {
    display: flex;
    margin-inline-start: auto;
    gap: calc(6px * var(--mobile-toolbar-scale));
    padding: calc(5px * var(--mobile-toolbar-scale)) calc(8px * var(--mobile-toolbar-scale));
    max-width: calc(100vw - 84px);
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
  }

  .site-header .lang-buttons {
    gap: calc(3px * var(--mobile-toolbar-scale));
    flex: 0 0 auto;
  }

  .site-header .lang-btn {
    min-height: max(40px, calc(var(--control-height-sm) * var(--mobile-toolbar-scale)));
    padding: calc(5px * var(--mobile-toolbar-scale)) calc(8px * var(--mobile-toolbar-scale));
    font-size: calc(0.72rem * var(--mobile-toolbar-scale));
  }

  .site-header .theme-toggle,
  .site-header .auth-toggle {
    flex: 0 0 auto;
    padding-left: calc(6px * var(--mobile-toolbar-scale));
  }

  [dir="rtl"] .site-header .theme-toggle,
  [dir="rtl"] .site-header .auth-toggle {
    padding-left: 0;
    padding-right: calc(6px * var(--mobile-toolbar-scale));
  }

  .site-header .auth-btn {
    padding: calc(6px * var(--mobile-toolbar-scale));
    min-width: max(40px, calc(30px * var(--mobile-toolbar-scale)));
    min-height: max(40px, calc(30px * var(--mobile-toolbar-scale)));
  }

  .site-header .auth-btn .icon {
    width: calc(1.15rem * var(--mobile-toolbar-scale));
    height: calc(1.15rem * var(--mobile-toolbar-scale));
  }

  .site-header .auth-btn .icon::before {
    font-size: calc(1.15rem * var(--mobile-toolbar-scale));
    line-height: calc(1.15rem * var(--mobile-toolbar-scale));
    width: calc(1.15rem * var(--mobile-toolbar-scale));
    height: calc(1.15rem * var(--mobile-toolbar-scale));
  }

  .landing-page .hero {
    margin-bottom: 12px;
  }

  .landing-page .hero h1 {
    font-size: clamp(1.56rem, 6vw, 2.02rem);
    line-height: 1.14;
    margin-bottom: 8px;
  }

  .landing-page .hero p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .landing-page .landing-card {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    min-height: 0;
    padding: 16px 14px;
    gap: 10px;
  }

  .landing-page .landing-icon {
    width: 54px;
    height: 54px;
  }

  .landing-page .landing-icon svg,
  .landing-page .landing-icon-svg {
    width: 30px;
    height: 30px;
  }

  .landing-page .landing-card-content {
    justify-content: flex-start;
  }

  .landing-page .landing-card-content p {
    max-width: 100%;
  }

  .landing-page .help-inline.landing-help-inline {
    margin-top: 8px;
    padding: 9px 12px;
    gap: 8px;
  }

  .landing-toolbar {
    gap: calc(5px * var(--mobile-toolbar-scale));
    padding: calc(5px * var(--mobile-toolbar-scale)) calc(8px * var(--mobile-toolbar-scale));
    max-width: 100%;
    overflow: hidden;
  }

  .landing-toolbar .auth-text {
    display: none;
  }

  .landing-toolbar .auth-btn {
    padding: calc(5px * var(--mobile-toolbar-scale));
  }

  .panel-title-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  [dir="rtl"] .panel-title-row {
    flex-direction: row;
  }

  .panel-lang {
    display: none;
  }

  .panel-head h2 {
    font-size: clamp(0.85rem, 3.2vw, calc(var(--font-panel-title) * var(--font-mobile-scale)));
  }

  .product-items {
    grid-template-columns: repeat(var(--products-cols-mobile), minmax(0, 1fr));
    gap: 10px;
  }

  .product-image {
    min-height: 156px;
  }

  .product-qty {
    padding: 6px 8px;
    gap: 6px;
    max-width: 100%;
    width: 100%;
    grid-template-columns: auto auto minmax(42px, 54px) auto;
  }

  .product-qty-label {
    display: inline-flex;
    font-size: 0.72rem;
  }

  .product-qty .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .product-qty .qty-input {
    min-height: 40px;
    font-size: 0.88rem;
  }

  .panel-lang .lang-buttons {
    gap: 6px;
  }

  .panel-lang .lang-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  [dir="rtl"] .booking-layout {
    direction: rtl;
  }

  .container {
    padding: var(--mobile-container-padding);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .booking-layout {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  .panel {
    width: 100%;
    max-width: none;
    overflow-x: hidden;
  }

  .summary-card {
    padding-bottom: 28px;
  }

  :root[data-mobile-panel-full="false"] .container {
    padding: 16px;
  }

  :root[data-mobile-panel-full="false"] .panel {
    max-width: 640px;
    margin: 0 auto;
  }

  :root[data-mobile-panel-full="false"] .summary-card {
    max-width: 640px;
    margin: 0 auto;
  }

  :root[data-mobile-panel-full="false"] .panel,
  :root[data-mobile-panel-full="false"] .booking-layout {
    overflow-x: hidden;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    margin-top: calc(var(--hero-top-gap) + 16px);
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: calc(var(--font-hero-title) * var(--font-mobile-scale));
    line-height: 1.15;
    white-space: normal;
    padding-inline-start: 2px;
  }

  .panel-head h2 {
    font-size: calc(var(--font-panel-title) * var(--font-mobile-scale));
    line-height: 1.15;
    white-space: normal;
  }

  [dir="rtl"] .hero h1 {
    font-size: calc(var(--font-hero-title) * var(--font-mobile-scale) * var(--font-rtl-scale));
  }

  [dir="rtl"] .panel-head h2 {
    font-size: calc(var(--font-panel-title) * var(--font-mobile-scale) * var(--font-rtl-scale));
  }

  .hero p {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-card {
    min-height: calc(136px + var(--service-card-mobile-extra));
    padding: 10px;
    gap: 6px;
  }

  .service-title {
    padding: 0 8px;
    font-size: var(--service-title-mobile-size);
    line-height: 1.15;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
  }

  .service-info-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(26, 154, 116, 0.2);
  }

  .service-info-row {
    margin-bottom: 4px;
    margin-top: 0;
  }

  .service-price {
    font-size: calc(var(--service-price-size) * var(--font-mobile-scale));
  }

  .service-duration {
    font-size: calc(var(--service-meta-size) * var(--font-mobile-scale));
  }

  .panel {
    min-height: auto;
    height: auto;
    padding: 18px;
    max-height: none;
    margin: 0;
  }

  .panel-head {
    margin-bottom: 14px;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .panel-body {
    min-height: auto;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .booking-panel .panel-body {
    min-height: auto;
    flex: 0 0 auto;
  }

  .details-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .panel-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
  }

  .panel-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-steps .step-title,
  .step-pill {
    font-size: calc(var(--font-step-title) * var(--font-mobile-scale));
  }

  .step-pill .step-index {
    font-size: calc(var(--font-step-index) * var(--font-mobile-scale));
  }

  .btn {
    width: 100%;
    font-size: calc(var(--font-button) * var(--font-mobile-scale));
  }

  .slot-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .panel-actions .btn {
    width: auto;
  }

  .panel-actions #next-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .panel-actions .startover-btn {
    flex: 0 0 auto;
    width: auto;
    margin-inline-end: 0;
    padding: 12px 14px;
    gap: 8px;
  }

  .panel-actions .startover-text {
    display: inline-flex;
  }

  [data-startover-mobile-icon-only="true"] .panel-actions .startover-btn {
    padding: 12px;
    min-width: 44px;
    justify-content: center;
    gap: 0;
  }

  [data-startover-mobile-icon-only="true"] .panel-actions .startover-text {
    display: none;
  }

  .customize-toggle {
    left: 16px;
    bottom: 16px;
  }

  .customizer-panel {
    width: 100%;
    max-width: 100%;
  }

  .summary-card {
    min-height: auto;
    height: auto;
  }

  .help-inline {
    font-size: calc(var(--font-summary-text) * var(--font-mobile-scale));
    margin-bottom: 16px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: calc(var(--font-hero-title) * var(--font-mobile-scale));
  }
}

@media (max-width: 520px) {
  :root {
    --panel-head-min-height: 50px;
    --hero-min-height: 0px;
    --slot-grid-min-rows: 2;
  }
  .container {
    padding: var(--mobile-container-padding);
  }

  .panel-title-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  [dir="rtl"] .panel-title-row {
    flex-direction: row;
  }

  .panel-head h2 {
    font-size: calc(var(--font-panel-title) * var(--font-mobile-scale));
    margin-bottom: 4px;
  }

  .panel-head p {
    font-size: calc(var(--font-panel-subtitle) * var(--font-mobile-scale));
  }

  .panel-back {
    width: 40px;
    height: 40px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(var(--services-cols-mobile), minmax(0, 1fr));
  }

  body[data-booking-mode="services"] .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar {
    padding: 10px;
    width: 100%;
    max-width: 100%;
  }

  .calendar-day {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .slot-btn {
    text-align: center;
  }

  .panel-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .step-pill {
    padding: 8px;
  }

  .service-modal-dialog {
    width: 92vw;
    height: min(var(--service-modal-height), 75vh);
  }

  .service-title {
    white-space: normal;
  }
}

/* Focused mobile visual pass for /services */
@media (max-width: 720px) {
  body[data-booking-mode="services"] .panel-head {
    margin-bottom: 16px;
  }

  body[data-booking-mode="services"] .panel-title-row {
    align-items: flex-start;
  }

  body[data-booking-mode="services"] .panel-head h2 {
    line-height: 1.2;
  }

  body[data-booking-mode="services"] #service-intake {
    gap: 14px;
    padding-top: 10px;
  }

  body[data-booking-mode="services"] #service-intake .field-grid {
    margin-top: 4px;
    gap: 12px;
  }

  body[data-booking-mode="services"] #intake-area-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-booking-mode="services"] #intake-area-grid .field,
  body[data-booking-mode="services"] #subarea-field,
  body[data-booking-mode="services"] #intake-area-grid .field select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-booking-mode="services"] #intake-area-grid .field select {
    transform: none !important;
    box-shadow: none;
    border-width: 1px;
    border-color: var(--line);
  }

  body[data-booking-mode="services"] #intake-area-grid .field select:focus,
  body[data-booking-mode="services"] #intake-area-grid .field select:focus-visible {
    outline: none;
    transform: none !important;
    border-color: color-mix(in srgb, var(--accent) 66%, var(--line));
    /* Inset ring avoids the control visually "growing" outside the layout on mobile. */
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent);
  }


  body[data-booking-mode="services"] .customer-type-switch--big {
    margin-top: 10px;
    margin-bottom: 16px;
    gap: 10px;
  }

  body[data-booking-mode="services"] .customer-type-switch--big .pill {
    min-height: 54px;
    padding: 14px 12px;
    border-width: 1.5px;
    font-size: 0.95rem;
  }

  body[data-booking-mode="services"] .customer-type-switch--big .pill:not(.active):not([aria-pressed="true"]) {
    background: color-mix(in srgb, var(--surface-muted) 45%, var(--surface-alt));
    color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  }

  body[data-booking-mode="services"] .customer-type-switch--big .pill.active,
  body[data-booking-mode="services"] .customer-type-switch--big .pill[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
    box-shadow: 0 14px 24px color-mix(in srgb, var(--accent) 22%, transparent);
  }

  body[data-booking-mode="services"] .panel-steps {
    margin-top: 14px;
    gap: 10px;
  }

  body[data-booking-mode="services"] .step-pill {
    min-height: 54px;
    border-radius: 14px;
    padding: 10px 10px;
    justify-content: flex-start;
    text-align: start;
  }

  body[data-booking-mode="services"] .step-pill .step-index {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
  }

  body[data-booking-mode="services"] .step-pill[data-state="current"] {
    border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 24%, transparent);
  }

  body[data-booking-mode="services"] .step-pill[data-state="completed"] {
    border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
    background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface));
  }

  body[data-booking-mode="services"] .step-pill[data-state="upcoming"] {
    background: color-mix(in srgb, var(--surface-alt) 88%, transparent);
    color: color-mix(in srgb, var(--muted) 92%, var(--ink));
  }

  body[data-booking-mode="services"] .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  body[data-booking-mode="services"] .services-grid.blocked-business::before {
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(1.4px);
  }

  body[data-booking-mode="services"] .services-grid.blocked-business::after {
    inset: auto 8px 8px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    padding: 8px 9px;
  }

  body[data-booking-mode="services"] .service-card {
    min-height: 182px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    gap: 8px;
    align-items: stretch;
  }

  body[data-booking-mode="services"] .service-card.selected {
    box-shadow:
      0 12px 22px color-mix(in srgb, var(--accent) 18%, transparent),
      inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
  }

  body[data-booking-mode="services"] .service-card .service-info-row {
    justify-content: flex-end;
    margin-bottom: 2px;
  }

  body[data-booking-mode="services"] .service-card .service-title {
    padding: 0 4px;
  }

  body[data-booking-mode="services"] .service-card .service-duration {
    margin-top: auto;
    justify-content: center;
    min-height: 22px;
  }

  body[data-booking-mode="services"] .service-card .service-media {
    width: min(100%, max(90px, calc(var(--service-image-height) - 18px)));
  }

  body[data-booking-mode="services"] .service-contact-card {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    gap: 6px;
  }

  body[data-booking-mode="services"] .service-contact-link {
    flex: 1 1 220px;
    width: auto;
    justify-content: center;
  }

  body[data-booking-mode="services"] .service-questions {
    margin-top: 14px;
    gap: 12px;
  }

  body[data-booking-mode="services"] .service-questions-title {
    font-size: 0.95rem;
  }

  body[data-booking-mode="services"] .service-question-card {
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
  }

  body[data-booking-mode="services"] .service-question-card-title {
    font-size: 0.92rem;
  }

  body[data-booking-mode="services"] .service-question-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-booking-mode="services"] .service-question-field > span {
    font-size: 0.88rem;
  }

  body[data-booking-mode="services"] .service-question-field select {
    min-height: 44px;
  }

  body[data-booking-mode="services"] .inspection-warning {
    border-width: 1px;
    border-radius: 11px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  body[data-booking-mode="services"] .calendar {
    padding: 11px 10px;
    border-radius: 14px;
  }

  body[data-booking-mode="services"] .calendar-weekdays span {
    font-size: 0.7rem;
    font-weight: 700;
  }

  body[data-booking-mode="services"] .calendar-day {
    min-height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  body[data-booking-mode="services"] .calendar-day.disabled::after {
    content: "";
    position: absolute;
    inset-inline: 18%;
    top: 50%;
    height: 2px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--muted) 75%, var(--ink-faded));
    transform: rotate(-17deg);
    opacity: 0.72;
    pointer-events: none;
  }

  body[data-booking-mode="services"] .slot-status {
    min-height: 54px;
  }

  body[data-booking-mode="services"] .time-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    grid-auto-rows: minmax(44px, auto);
  }

  body[data-booking-mode="services"] .slot-btn {
    min-height: 44px;
    border-radius: 12px;
    padding: 8px 6px;
    font-size: 0.84rem;
  }

  body[data-booking-mode="services"] .slot-btn .slot-time {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.15;
  }

  body[data-booking-mode="services"] .field-error.active,
  body[data-booking-mode="services"] .step-inline-error.active {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--warning) 46%, var(--line));
    background: color-mix(in srgb, var(--warning-soft) 36%, var(--surface));
    font-size: 0.8rem;
    line-height: 1.35;
  }

  body[data-booking-mode="services"] .summary-card {
    padding: 16px 14px 20px;
    border-radius: 16px;
  }

  body[data-booking-mode="services"] .summary-card h3 {
    margin-bottom: 10px;
    font-size: 1.02rem;
  }

  body[data-booking-mode="services"] .summary-section {
    margin-bottom: 13px;
  }

  body[data-booking-mode="services"] .summary-label {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.74rem;
    margin-bottom: 7px;
  }

  body[data-booking-mode="services"] .summary-list li {
    padding: 9px 10px;
    border-radius: 11px;
    gap: 8px;
  }

  body[data-booking-mode="services"] .summary-item-title {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  body[data-booking-mode="services"] .summary-item-sub {
    gap: 3px;
    font-size: 0.78rem;
  }

  body[data-booking-mode="services"] .summary-price {
    font-size: 0.84rem;
    font-weight: 700;
  }

  body[data-booking-mode="services"] .summary-total {
    margin-top: 10px;
    padding-top: 11px;
  }

  body[data-booking-mode="services"] .payment-modal-dialog {
    width: min(96vw, 560px);
  }

  body[data-booking-mode="services"] #payment-modal-copy {
    margin-top: 7px;
    border-radius: 11px;
    padding: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  body[data-booking-mode="services"] .payment-modal-summary {
    max-height: 38vh;
    overflow: auto;
  }

  body[data-booking-mode="services"] .payment-modal-total-row {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 0.92rem;
  }
}

@media (max-width: 720px) {
  body[data-booking-mode="products"] .summary-card {
    padding: 15px 13px 19px;
    border-radius: 16px;
  }

  body[data-booking-mode="products"] .summary-label {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  body[data-booking-mode="products"] .summary-list li {
    padding: 9px 10px;
    gap: 8px;
  }

  body[data-booking-mode="products"] .summary-item-title {
    font-size: 0.86rem;
  }

  body[data-booking-mode="products"] .summary-item-sub {
    font-size: 0.77rem;
  }
}

@media (max-width: 520px) {
  body[data-booking-mode="services"] .customer-type-switch--big .pill {
    min-width: 0;
    padding: 13px 10px;
    font-size: 0.9rem;
  }

  body[data-booking-mode="services"] .panel-steps {
    gap: 8px;
  }

  body[data-booking-mode="services"] .step-pill {
    min-height: 50px;
    padding: 8px 9px;
  }

  body[data-booking-mode="services"] .step-pill .step-title {
    font-size: 0.77rem;
    line-height: 1.15;
  }

  body[data-booking-mode="services"] .services-grid {
    gap: 9px;
  }

  body[data-booking-mode="services"] .service-card {
    min-height: 172px;
    padding: 9px 8px 10px;
  }

  body[data-booking-mode="services"] .service-card .service-media {
    width: min(100%, max(82px, calc(var(--service-image-height) - 30px)));
  }

  body[data-booking-mode="services"] .calendar-day {
    min-height: 34px;
    font-size: 0.86rem;
  }

  body[data-booking-mode="services"] .slot-btn {
    min-height: 42px;
    font-size: 0.8rem;
  }

  body[data-booking-mode="services"] .summary-card {
    padding: 14px 12px 18px;
  }

  body[data-booking-mode="services"] .summary-label {
    font-size: 0.71rem;
  }

  body[data-booking-mode="products"] .summary-card {
    padding: 13px 11px 17px;
  }

  body[data-booking-mode="products"] .summary-label {
    font-size: 0.69rem;
  }
}

@media (max-width: 390px) {
  body[data-booking-mode="services"] .time-slots {
    grid-template-columns: 1fr;
  }

  body[data-booking-mode="services"] .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phase 1 visual preset: screenshot-inspired neon glass UI for public booking pages */
:root[data-ui-preset="neo-glass"] body.landing-page,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"],
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"],
:root[data-ui-preset="neo-glass"] body.payment-return-page,
:root[data-ui-preset="neo-glass"] body.account-page {
  --surface: rgba(15, 28, 33, 0.76);
  --surface-alt: rgba(20, 34, 40, 0.84);
  --surface-muted: rgba(28, 43, 49, 0.8);
  --line: rgba(131, 168, 157, 0.26);
  --ink: #eaf5f2;
  --muted: #9bb2ab;
  --accent: #51dfb9;
  --accent-strong: #2aa685;
  --accent-soft: rgba(81, 223, 185, 0.16);
  --shadow: 0 24px 58px rgba(3, 10, 13, 0.46);
}

:root[data-ui-preset="neo-glass"] body.landing-page,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"],
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"],
:root[data-ui-preset="neo-glass"] body.payment-return-page,
:root[data-ui-preset="neo-glass"] body.account-page {
  background:
    radial-gradient(circle at 15% 2%, rgba(76, 214, 175, 0.2), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(237, 186, 108, 0.24), transparent 44%),
    linear-gradient(180deg, #0b1318 0%, #101d24 54%, #121d20 100%);
}

:root[data-ui-preset="neo-glass"] body.landing-page::before,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"]::before,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"]::before,
:root[data-ui-preset="neo-glass"] body.payment-return-page::before,
:root[data-ui-preset="neo-glass"] body.account-page::before {
  background: radial-gradient(circle, rgba(92, 224, 189, 0.34) 0%, rgba(92, 224, 189, 0) 72%);
  opacity: 0.4;
}

:root[data-ui-preset="neo-glass"] body.landing-page::after,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"]::after,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"]::after,
:root[data-ui-preset="neo-glass"] body.payment-return-page::after,
:root[data-ui-preset="neo-glass"] body.account-page::after {
  background: radial-gradient(circle, rgba(245, 187, 108, 0.24) 0%, rgba(245, 187, 108, 0) 72%);
  opacity: 0.36;
}

:root[data-ui-preset="neo-glass"] body.landing-page .bg-grid,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .bg-grid,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .bg-grid,
:root[data-ui-preset="neo-glass"] body.payment-return-page .bg-grid,
:root[data-ui-preset="neo-glass"] body.account-page .bg-grid {
  background-image:
    linear-gradient(
      rgba(7, 14, 18, calc(var(--hero-overlay-opacity) * 0.84)),
      rgba(7, 14, 18, calc(var(--hero-overlay-opacity) * 0.84))
    ),
    var(--hero-bg-image),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: cover, cover, 120px 120px, 120px 120px;
  background-position: center center, center center, 0 0, 0 0;
  opacity: 1;
}

:root[data-ui-preset="neo-glass"] body.landing-page .hero h1,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .hero h1,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .hero h1,
:root[data-ui-preset="neo-glass"] body.account-page .hero h1 {
  background: linear-gradient(92deg, #68eac1 0%, #efd89f 52%, #68dcbc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(90, 218, 186, 0.18);
}

:root[data-ui-preset="neo-glass"] body.landing-page .hero p,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .hero p,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .hero p,
:root[data-ui-preset="neo-glass"] body.account-page .hero p {
  color: #c4d5d1;
}

:root[data-ui-preset="neo-glass"] body.landing-page .panel,
:root[data-ui-preset="neo-glass"] body.landing-page .landing-card,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-card,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .summary-card,
:root[data-ui-preset="neo-glass"] body.payment-return-page .payment-return-card,
:root[data-ui-preset="neo-glass"] body.account-page .panel {
  background:
    linear-gradient(162deg, rgba(30, 43, 49, 0.68) 0%, rgba(16, 25, 30, 0.74) 65%, rgba(36, 34, 29, 0.52) 100%);
  border-color: rgba(123, 165, 153, 0.24);
  box-shadow:
    0 24px 48px rgba(4, 11, 14, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card {
  background:
    linear-gradient(165deg, rgba(35, 50, 57, 0.74) 0%, rgba(18, 29, 35, 0.78) 100%);
  border-color: rgba(122, 166, 153, 0.26);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 30px rgba(5, 11, 14, 0.34),
    0 0 0 1px rgba(121, 188, 167, 0.2);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card.selected {
  border-color: rgba(71, 223, 186, 0.84);
  box-shadow:
    0 18px 34px rgba(3, 10, 14, 0.36),
    0 0 0 2px rgba(71, 223, 186, 0.2),
    0 0 22px rgba(247, 193, 113, 0.15);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-media {
  background:
    radial-gradient(circle at 20% 18%, rgba(87, 232, 188, 0.14) 0%, rgba(87, 232, 188, 0) 52%),
    rgba(15, 25, 31, 0.88);
  border-color: rgba(109, 170, 151, 0.32);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-title {
  color: #eef8f5;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-duration {
  color: #c7dad6;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-info-btn {
  color: #9becd0;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-info-btn:hover {
  box-shadow: 0 8px 16px rgba(31, 216, 158, 0.26);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-footer,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-footer {
  background: linear-gradient(180deg, rgba(20, 32, 38, 0.84), rgba(14, 25, 29, 0.84));
  border-color: rgba(122, 166, 153, 0.24);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions #next-btn {
  background: linear-gradient(102deg, #4ce2ba 0%, #39c8a3 56%, #ddb572 100%);
  color: #07271f;
  box-shadow: 0 12px 24px rgba(53, 177, 147, 0.28);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .step-pill[data-state="current"],
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .step-pill[data-state="current"] {
  border-color: rgba(68, 239, 186, 0.6);
  box-shadow: 0 0 0 2px rgba(68, 239, 186, 0.22);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .slot-btn.active,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .slot-btn.active {
  box-shadow: 0 10px 18px rgba(61, 236, 181, 0.3);
}

:root[data-ui-preset="neo-glass"] body.landing-page .landing-card {
  border-color: rgba(122, 170, 157, 0.26);
}

:root[data-ui-preset="neo-glass"] body.landing-page .landing-card:hover {
  box-shadow:
    0 16px 30px rgba(0, 8, 12, 0.45),
    0 0 0 1px rgba(112, 196, 168, 0.24);
}

/* Neo preset - light variation */
:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"],
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"],
:root[data-ui-preset="neo-glass"][data-theme="light"] body.payment-return-page,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page {
  --surface: rgba(250, 253, 251, 0.92);
  --surface-alt: rgba(244, 249, 246, 0.94);
  --surface-muted: rgba(238, 244, 240, 0.96);
  --line: rgba(126, 151, 140, 0.34);
  --ink: #1f342f;
  --muted: #5f726d;
  --accent: #2d9f82;
  --accent-strong: #1a7a62;
  --accent-soft: rgba(45, 159, 130, 0.16);
  --warning: #b85f3d;
  --warning-soft: #f7ece6;
  --warning-line: rgba(184, 95, 61, 0.2);
  --shadow: 0 18px 38px rgba(27, 56, 49, 0.12);
  --scrollbar-thumb: rgba(31, 52, 47, 0.2);
  --hero-overlay-opacity: 0.24;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"],
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"],
:root[data-ui-preset="neo-glass"][data-theme="light"] body.payment-return-page,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page {
  background:
    radial-gradient(circle at 10% 2%, rgba(84, 196, 163, 0.18), transparent 44%),
    radial-gradient(circle at 87% 88%, rgba(232, 182, 104, 0.22), transparent 42%),
    linear-gradient(180deg, #eef5f1 0%, #e9f0ec 52%, #e4ece8 100%);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page::before,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"]::before,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"]::before,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.payment-return-page::before,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page::before {
  background: radial-gradient(circle, rgba(76, 188, 158, 0.2) 0%, rgba(76, 188, 158, 0) 72%);
  opacity: 0.44;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page::after,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"]::after,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"]::after,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.payment-return-page::after,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page::after {
  background: radial-gradient(circle, rgba(233, 176, 96, 0.18) 0%, rgba(233, 176, 96, 0) 72%);
  opacity: 0.4;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .bg-grid,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .bg-grid,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .bg-grid,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.payment-return-page .bg-grid,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .bg-grid {
  background-image:
    linear-gradient(
      rgba(247, 252, 249, calc(var(--hero-overlay-opacity) * 0.55)),
      rgba(247, 252, 249, calc(var(--hero-overlay-opacity) * 0.55))
    ),
    var(--hero-bg-image),
    linear-gradient(rgba(22, 54, 47, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 54, 47, 0.05) 1px, transparent 1px);
  background-size: cover, cover, 120px 120px, 120px 120px;
  background-position: center center, center center, 0 0, 0 0;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .hero h1,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .hero h1,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .hero h1,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .hero h1 {
  background: linear-gradient(96deg, #177f67 0%, #b78647 52%, #177f67 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .hero p,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .hero p,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .hero p,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .hero p {
  color: #456c62;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .panel,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .panel,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .panel,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .summary-card,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .summary-card,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.payment-return-page .payment-return-card,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .panel {
  background:
    linear-gradient(158deg, rgba(248, 251, 249, 0.78) 0%, rgba(238, 244, 240, 0.74) 64%, rgba(243, 236, 227, 0.7) 100%);
  border-color: rgba(132, 156, 145, 0.3);
  box-shadow:
    0 20px 34px rgba(33, 60, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-card {
  background: linear-gradient(162deg, rgba(251, 254, 252, 0.94) 0%, rgba(242, 249, 245, 0.9) 100%);
  border-color: rgba(128, 152, 141, 0.34);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-card:hover {
  box-shadow:
    0 14px 24px rgba(29, 58, 51, 0.1),
    0 0 0 1px rgba(93, 165, 143, 0.2);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-card.selected {
  border-color: rgba(44, 154, 124, 0.82);
  box-shadow:
    0 14px 24px rgba(29, 58, 51, 0.14),
    0 0 0 2px rgba(44, 154, 124, 0.18),
    0 0 18px rgba(219, 172, 98, 0.18);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-media {
  background: transparent;
  border: 0;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-info-btn {
  color: #2e7f69;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-duration {
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 86%, transparent);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .panel-footer,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .panel-footer {
  background: linear-gradient(180deg, rgba(240, 246, 242, 0.8), rgba(235, 241, 237, 0.82));
  border-color: rgba(132, 156, 145, 0.28);
}

@media (max-width: 900px) {
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-card,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .summary-card,
  :root[data-ui-preset="neo-glass"] body.landing-page .panel {
    backdrop-filter: blur(10px);
  }
}

/* Focused mobile visual pass for Landing (/) */
@media (max-width: 720px) {
  body[data-booking-mode="services"] .site-header,
  body[data-booking-mode="products"] .site-header {
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
  }

  body[data-booking-mode="services"] .site-header .brand,
  body[data-booking-mode="products"] .site-header .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  body[data-booking-mode="services"] .site-header .lang-switch,
  body[data-booking-mode="products"] .site-header .lang-switch {
    margin-inline-start: 6px;
    max-width: min(64vw, calc(100vw - 128px));
    min-width: 0;
    gap: calc(5px * var(--mobile-toolbar-scale));
    padding: calc(5px * var(--mobile-toolbar-scale)) calc(7px * var(--mobile-toolbar-scale));
  }

  body[data-booking-mode="services"] .site-header .lang-buttons,
  body[data-booking-mode="products"] .site-header .lang-buttons {
    gap: calc(2px * var(--mobile-toolbar-scale));
  }

  body[data-booking-mode="services"] .site-header .lang-btn,
  body[data-booking-mode="products"] .site-header .lang-btn {
    min-height: max(40px, calc(var(--control-height-sm) * var(--mobile-toolbar-scale)));
    padding: calc(5px * var(--mobile-toolbar-scale)) calc(7px * var(--mobile-toolbar-scale));
  }

  body[data-booking-mode="services"] .site-header .auth-text,
  body[data-booking-mode="products"] .site-header .auth-text {
    display: none;
  }

  body.landing-page .site-header {
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
  }

  body.landing-page .site-header .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.landing-page .site-header .brand-name {
    font-size: clamp(0.96rem, 3.7vw, 1.08rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(34vw, 180px);
  }

  body.landing-page .site-header .lang-switch {
    margin-inline-start: 6px;
    max-width: min(64vw, calc(100vw - 128px));
    min-width: 0;
    gap: calc(5px * var(--mobile-toolbar-scale));
    padding: calc(5px * var(--mobile-toolbar-scale)) calc(7px * var(--mobile-toolbar-scale));
  }

  body.landing-page .site-header .lang-buttons {
    gap: calc(2px * var(--mobile-toolbar-scale));
  }

  body.landing-page .site-header .lang-btn {
    min-height: max(40px, calc(var(--control-height-sm) * var(--mobile-toolbar-scale)));
    padding: calc(5px * var(--mobile-toolbar-scale)) calc(7px * var(--mobile-toolbar-scale));
  }

  body.landing-page .site-header .auth-text {
    display: none;
  }

  body.landing-page .landing-main {
    padding-top: 2px;
  }

  body.landing-page .hero {
    margin-top: calc(var(--hero-top-gap) + 16px);
    margin-bottom: 14px;
    gap: 10px;
    min-height: 0;
  }

  body.landing-page .hero h1 {
    font-size: clamp(1.72rem, 7.1vw, 2.16rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    padding-top: 2px;
  }

  body.landing-page .hero p {
    display: block;
    font-size: 0.93rem;
    line-height: 1.58;
    color: color-mix(in srgb, var(--muted) 85%, var(--ink));
    max-width: 100%;
  }

  body.landing-page .landing-layout {
    gap: 12px;
  }

  body.landing-page .landing-panel {
    padding: 16px 14px;
    border-radius: 16px;
  }

  body.landing-page .landing-panel .panel-body {
    gap: 12px;
  }

  body.landing-page .landing-choice-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  body.landing-page .landing-card {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    text-align: start;
    min-height: 146px;
    padding: 14px 14px;
    gap: 12px;
    border-radius: 16px;
  }

  body.landing-page .landing-card:active {
    transform: translateY(-1px) scale(0.992);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 14%, rgba(20, 24, 24, 0.18));
  }

  body.landing-page .landing-card:focus-visible {
    box-shadow: var(--focus-ring), 0 16px 30px color-mix(in srgb, var(--accent) 16%, rgba(20, 24, 24, 0.18));
  }

  body.landing-page .landing-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    align-self: center;
  }

  body.landing-page .landing-icon svg,
  body.landing-page .landing-icon-svg {
    width: 31px;
    height: 31px;
  }

  body.landing-page .landing-card-content {
    gap: 6px;
    justify-content: center;
  }

  body.landing-page .landing-card-content h3 {
    font-size: 1.03rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  body.landing-page .landing-card-content p {
    font-size: 0.89rem;
    line-height: 1.5;
    max-width: 100%;
  }

  body.landing-page .help-inline.landing-help-inline {
    margin-top: 10px;
    padding: 10px 12px;
    gap: 6px 10px;
    border-radius: 14px;
  }

  body.landing-page .help-inline.landing-help-inline .help-inline-title {
    width: 100%;
    margin-bottom: 2px;
    font-size: 0.9rem;
  }

  body.landing-page .help-inline.landing-help-inline .help-inline-text {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  body.landing-page .help-inline.landing-help-inline .help-inline-phone {
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  body.landing-page main.container {
    padding-top: 14px;
  }

  body.landing-page .site-header .lang-switch {
    max-width: min(66vw, calc(100vw - 118px));
  }

  body.landing-page .hero {
    margin-bottom: 12px;
  }

  body.landing-page .hero h1 {
    font-size: clamp(1.58rem, 7.4vw, 1.96rem);
  }

  body.landing-page .hero p {
    font-size: 0.89rem;
  }

  body.landing-page .landing-panel {
    padding: 14px 12px;
  }

  body.landing-page .landing-card {
    grid-template-columns: 54px minmax(0, 1fr);
    text-align: start;
    min-height: 0;
    padding: 14px 12px;
    gap: 10px;
  }

  body.landing-page .landing-card-content {
    align-items: flex-start;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  body[data-booking-mode="services"] .services-grid,
  body[data-booking-mode="services"] .service-card,
  body[data-booking-mode="products"] .products-categories,
  body[data-booking-mode="products"] .product-card,
  body.landing-page .landing-card {
    touch-action: pan-y;
  }

  body[data-booking-mode="services"] .service-card:hover,
  body[data-booking-mode="products"] .product-card:hover,
  body[data-booking-mode="services"] .step-pill:hover,
  body[data-booking-mode="services"] .step-pill.active,
  body[data-booking-mode="services"] .customer-type-switch .pill.active,
  body[data-booking-mode="services"] .customer-type-switch--big .pill.active,
  body[data-booking-mode="services"] .slot-btn.active {
    transform: none;
  }

  body[data-booking-mode="services"] .service-card.selected,
  body[data-booking-mode="products"] .product-card.selected,
  body[data-booking-mode="services"] .step-pill.active,
  body[data-booking-mode="services"] .customer-type-switch .pill.active,
  body[data-booking-mode="services"] .customer-type-switch--big .pill.active,
  body[data-booking-mode="services"] .slot-btn.active {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 34%, transparent);
  }
}

[dir="rtl"] input[data-rtl-ltr="true"],
[dir="rtl"] textarea[data-rtl-ltr="true"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

[dir="rtl"] .phone-input input {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .phone-input {
  direction: ltr;
}

/* Account page */
.account-layout {
  grid-template-columns: 1fr;
}

.account-back {
  text-decoration: none;
}

.account-header-logout-toggle {
  display: none;
}

@media (max-width: 860px) {
  .account-header-logout-toggle {
    display: inline-flex;
  }
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.account-auth-fields {
  position: relative;
}

.account-auth .panel-actions {
  margin-top: 58px !important;
}

#account-error.account-floating-message {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  margin: 0;
  z-index: 8;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.003em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#account-error.account-floating-message.active {
  opacity: 1;
  transform: none;
}

#account-profile-error,
#account-phone-change-error {
  position: fixed;
  inset-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 65;
  max-width: 620px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  visibility: visible !important;
  transition: opacity 180ms ease, transform 180ms ease;
}

#account-profile-error.active,
#account-phone-change-error.active {
  opacity: 1;
  transform: translateY(0);
}

:root[data-ui-preset="neo-glass"] body.account-page :is(
  #account-send-otp,
  #account-verify-otp,
  #account-profile-save,
  #account-add-address,
  #account-phone-change-request,
  #account-phone-change-resend,
  #account-phone-change-verify
) {
  color: #000 !important;
}

.account-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--accent) 28%);
  background: color-mix(in srgb, var(--surface-alt) 82%, var(--accent-soft) 18%);
}

.account-phone-change-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.account-phone-change-actions .btn {
  min-width: 150px;
}

.account-phone-pill {
  color: var(--ink);
}

.account-customer-pill {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface) 36%);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}

.account-profile {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.account-profile .field-grid {
  margin-top: 12px;
}

.account-profile .field-error {
  margin-top: 10px;
  min-height: 0;
}

.account-profile .field-error.active {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--warning) 38%, var(--line));
  background: color-mix(in srgb, var(--warning-soft) 70%, var(--surface));
  color: var(--warning);
}

.account-profile .field-error.active.success {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
  color: var(--accent-strong);
}

.account-profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 10px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-alt) 20%, transparent) 0%,
    color-mix(in srgb, var(--surface-alt) 96%, var(--surface)) 45%
  );
}

.account-profile-save-btn {
  min-width: 140px;
  min-height: 42px;
}

.account-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .account-sections {
    grid-template-columns: 1fr;
  }

  .account-sections .account-section {
    padding: 12px;
  }

  .account-list {
    gap: 8px;
  }

  .account-item {
    min-height: 98px;
    padding: 11px;
  }

  .account-item-title {
    font-size: 0.95rem;
  }

  .account-subline {
    font-size: 0.8rem;
  }
}

.account-sections .account-section {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}

.account-section h3 {
  margin: 0;
  font-size: 1rem;
}

.account-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  min-height: 44px;
}

.account-section-head h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-section-head-action {
  min-width: 120px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-section-head-spacer {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 520px) {
  .account-section-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .account-section-head h3 {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .account-section-head-action {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .account-section-head-spacer {
    display: none;
  }
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-list.account-orders-reserved {
  min-height: var(--orders-reserve-height, 0);
}

.account-show-more {
  align-self: stretch;
  justify-content: center;
}

.account-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.account-orders-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.account-orders-page-btn {
  min-height: 36px;
  min-width: 42px;
  padding: 6px 10px;
  justify-content: center;
}

.account-orders-page-btn.is-active,
.account-orders-page-btn[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 74%, var(--surface));
  color: var(--accent-strong);
  font-weight: 700;
}

.account-orders-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-item {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-height: 110px;
}

.account-address .account-item-main,
.account-order .account-item-main {
  display: grid;
  gap: 4px;
}

.account-address .account-subline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.account-order .account-subline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.35;
}

.account-order {
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.account-order-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.account-order .account-item-right {
  gap: 4px;
}

.account-order:hover {
  border-color: var(--accent);
}

.account-order:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-list.account-orders-jump-target {
  border-radius: 12px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: box-shadow 0.28s ease;
}

/* /account order highlight (post-payment deep-link) */
.account-order.account-order-highlight {
  position: relative;
  outline: 2px solid rgba(34, 197, 94, 0);
  outline-offset: 2px;
  border-radius: 12px;
  animation: orderHighlightPulse 5s ease-out 0s 1;
}

@keyframes orderHighlightPulse {
  0% {
    outline-color: rgba(34, 197, 94, 0);
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
  }
  12% {
    outline-color: rgba(34, 197, 94, 0.95);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
  }
  60% {
    outline-color: rgba(34, 197, 94, 0.65);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.08);
  }
  100% {
    outline-color: rgba(34, 197, 94, 0);
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
  }
}

.account-item-main {
  min-width: 0;
}

.account-subline {
  min-height: 1.1em;
}

.account-subline .status-badge {
  margin-inline-start: 6px;
  vertical-align: middle;
}

.account-item-title {
  font-weight: 600;
  color: var(--ink);
}

.account-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 100%;
}

.account-item-total {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.account-chevron {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.order-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-label {
  font-weight: 600;
  color: var(--muted);
}

.order-detail-value {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.order-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-item-name {
  min-width: 0;
}

.order-item-answers {
  line-height: 1.45;
}

.order-item-price {
  font-weight: 600;
  white-space: nowrap;
}

#order-modal .confirm-modal-dialog {
  width: min(760px, 96vw);
  max-height: calc(100dvh - 16px);
}

#order-modal .confirm-modal-body {
  max-height: calc(100dvh - 170px);
  overflow: auto;
  padding: 14px 16px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px) {
  .account-profile {
    padding: 12px;
  }

  .account-profile-actions {
    margin-top: 10px;
    padding-top: 8px;
  }

  .account-profile-save-btn {
    width: 100%;
    min-width: 0;
  }

  .account-item {
    min-height: 0;
    padding: 10px;
    gap: 10px;
  }

  .account-item-title {
    font-size: 0.92rem;
    line-height: 1.28;
  }

  .account-subline {
    font-size: 0.78rem;
  }

  .account-item-right {
    gap: 6px;
  }

  .order-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 9px 0;
  }

  #order-modal .confirm-modal-dialog {
    width: min(98vw, 640px);
    max-height: calc(100dvh - 8px);
  }

  #order-modal .confirm-modal-head {
    padding: 12px 14px 10px;
  }

  #order-modal .confirm-modal-body {
    padding: 10px 12px;
    max-height: calc(100dvh - 140px);
  }
}

/* Focused mobile visual pass for /account */
@media (max-width: 720px) {
  .account-auth .panel-actions {
    margin-top: 54px !important;
  }

  body.account-page .hero {
    margin-top: calc(var(--hero-top-gap) + 10px);
    margin-bottom: 10px;
  }

  body.account-page .hero h1 {
    font-size: clamp(1.34rem, 6.1vw, 1.74rem);
    line-height: 1.12;
  }

  body.account-page .account-panel {
    padding: 14px 12px;
    border-radius: 16px;
  }

  body.account-page .panel-title-row {
    gap: 10px;
    align-items: flex-start;
  }

  body.account-page .panel-title-group {
    min-width: 0;
  }

  body.account-page #account-subtitle {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 2px;
  }

  body.account-page .account-summary {
    margin-bottom: 12px;
  }

  body.account-page .account-summary-pill {
    width: 100%;
    justify-content: center;
    min-height: 38px;
  }

  body.account-page .account-profile {
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
  }

  body.account-page .account-profile .field-grid {
    margin-top: 10px;
    gap: 10px;
  }

  body.account-page .account-profile-actions {
    margin-top: 10px;
    padding-top: 8px;
    padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px));
  }

  body.account-page .account-profile-save-btn {
    min-height: 44px;
    border-radius: 12px;
  }

  body.account-page .account-phone-change-grid {
    gap: 10px;
  }

  body.account-page .phone-input-row {
    gap: 8px;
    align-items: stretch;
  }

  body.account-page .phone-input-row .phone-input {
    flex: 1 1 100%;
  }

  body.account-page .phone-verify-btn {
    min-height: 42px;
    padding: 10px 14px;
    align-self: stretch;
  }

  body.account-page .account-phone-change-actions .btn {
    width: 100%;
  }

  body.account-page .account-sections {
    gap: 12px;
  }

  body.account-page .account-sections .account-section {
    border-radius: 12px;
    padding: 12px;
  }

  body.account-page .account-section-head {
    margin-bottom: 8px;
    min-height: 0;
    gap: 8px;
  }

  body.account-page .account-list {
    gap: 8px;
  }

  body.account-page .account-item {
    min-height: 0;
    border-radius: 11px;
    padding: 10px 11px;
    gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  body.account-page .account-item-main {
    gap: 3px;
  }

  body.account-page .account-item-title {
    font-size: 0.93rem;
    line-height: 1.28;
  }

  body.account-page .account-subline {
    font-size: 0.79rem;
    line-height: 1.35;
  }

  body.account-page .account-address .account-subline {
    -webkit-line-clamp: 2;
  }

  body.account-page .account-item-right {
    gap: 6px;
    min-width: 72px;
    align-items: flex-end;
  }

  body.account-page .account-link {
    font-size: 0.78rem;
  }

  body.account-page .account-actions {
    gap: 6px;
  }

  body.account-page .icon-btn.icon-btn-sm {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  body.account-page .account-item-total {
    font-size: 0.9rem;
  }

  body.account-page .account-chevron {
    width: 26px;
    height: 26px;
    font-size: 1.05rem;
  }

  body.account-page .account-show-more {
    min-height: 40px;
  }

  body.account-page .account-orders-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
  }

  body.account-page .account-orders-page-btn {
    min-height: 34px;
    min-width: 38px;
    padding: 5px 9px;
    font-size: 0.82rem;
  }

  body.account-page #order-modal .confirm-modal-dialog {
    width: calc(100vw - 10px);
    max-height: calc(100dvh - 8px);
    border-radius: 14px;
  }

  body.account-page #order-modal .confirm-modal-head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface);
    padding: 12px 14px 10px;
  }

  body.account-page #order-modal .confirm-modal-body {
    padding: 10px 12px;
    max-height: calc(100dvh - 184px);
  }

  body.account-page #order-modal .confirm-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body.account-page .order-details {
    gap: 8px;
  }

  body.account-page .order-detail-row {
    padding: 8px 0;
  }
}

@media (max-width: 520px) {
  body.account-page .account-panel {
    padding: 12px 10px;
    border-radius: 14px;
  }

  body.account-page .account-section h3 {
    font-size: 0.94rem;
  }

  body.account-page .account-item {
    padding: 9px 10px;
    gap: 8px;
  }

  body.account-page .account-item-title {
    font-size: 0.9rem;
  }

  body.account-page .account-subline {
    font-size: 0.77rem;
  }

  body.account-page .account-item-right {
    min-width: 68px;
  }

  body.account-page .account-actions {
    gap: 5px;
  }
}

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

.icon-btn.icon-btn-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

.icon-btn.icon-btn-sm .icon {
  font-size: 1.05rem;
}

.icon-btn.icon-btn-danger {
  color: var(--warning);
}

.account-item-total {
  font-weight: 600;
  white-space: nowrap;
}

.account-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.account-link:hover {
  text-decoration: underline;
}

.small {
  font-size: 0.85rem;
}
.product-desc {
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-unit {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.product-unit-label {
  font-weight: 800;
  color: color-mix(in srgb, var(--muted) 70%, var(--ink));
}

.product-unit-value {
  font-weight: 700;
}

.product-bottom-meta {
  width: 100%;
  display: grid;
  gap: 5px;
}

.product-bottom-sep {
  height: 1px;
  width: 100%;
  background: color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 999px;
  margin: 1px 0 4px;
}

.product-bottom-line {
  font-size: 0.77rem;
  line-height: 1.35;
  color: var(--muted);
}

.product-bottom-label {
  font-weight: 800;
  color: color-mix(in srgb, var(--muted) 70%, var(--ink));
}

.product-bottom-value {
  font-weight: 700;
}

.product-zoom-img {
  display: block;
  max-width: 94vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-zoom-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 62%, rgba(255, 255, 255, 0.4));
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.88) 0%,
    rgba(15, 23, 42, 0.78) 100%
  );
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(7px) saturate(116%);
  -webkit-backdrop-filter: blur(7px) saturate(116%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-zoom-nav.prev {
  left: -56px;
}

.product-zoom-nav.next {
  right: -56px;
}

[dir="rtl"] .product-zoom-nav.prev {
  left: -56px;
  right: auto;
}

[dir="rtl"] .product-zoom-nav.next {
  right: -56px;
  left: auto;
}

.product-zoom-nav:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.product-zoom-nav[hidden] {
  display: none !important;
}

.product-zoom-counter {
  margin-top: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: color-mix(in srgb, #ffffff 84%, var(--ink));
}

.service-modal.product-image-zoom .service-modal-dialog {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 86vh;
  padding: 0;
}

.service-modal.product-image-zoom .service-modal-head {
  position: absolute;
  top: -52px;
  right: -4px;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 10;
}

.service-modal.product-image-zoom .service-modal-title {
  display: none;
}

.service-modal.product-image-zoom .service-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.88) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid color-mix(in srgb, var(--line) 56%, rgba(255, 255, 255, 0.28));
  color: #fff;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.service-modal.product-image-zoom .service-modal-body {
  padding: 0;
  overflow: visible;
  background: transparent;
}

/* Payment return (Thawani) */
.payment-return-shell {
  padding-bottom: 56px;
}

.payment-return-card {
  padding: 24px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.payment-return-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 2px;
}

.payment-return-badge {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #64748b 20%, var(--surface));
  border: 1px solid color-mix(in srgb, #64748b 38%, var(--line));
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.14);
}

.payment-return-badge.is-pending {
  background: color-mix(in srgb, #f59e0b 22%, var(--surface));
  border-color: color-mix(in srgb, #f59e0b 45%, var(--line));
}

.payment-return-badge.is-warning {
  background: color-mix(in srgb, var(--warning) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
}

.payment-return-badge.is-success {
  background: color-mix(in srgb, var(--accent) 90%, #0f766e);
  border-color: color-mix(in srgb, var(--accent) 60%, #ffffff);
}

.payment-return-badge.is-success .payment-return-icon,
.payment-return-badge.is-warning .payment-return-icon,
.payment-return-badge.is-pending .payment-return-icon {
  color: #ffffff;
}

.payment-return-icon {
  font-family: "Material Symbols Rounded";
  font-variation-settings: "wght" 350;
  font-size: 2rem;
  line-height: 1;
}

.payment-return-title {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0;
}

.payment-return-title-en,
.payment-return-title-ar {
  display: block;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 50%, var(--surface));
  padding: 10px 12px;
}

.payment-return-title-en {
  text-align: left;
}

.payment-return-title-ar {
  text-align: right;
  font-family: var(--font-ar, inherit);
}

.payment-return-subtitle {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-return-subtitle > span {
  display: block;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 36%, var(--surface));
  padding: 8px 10px;
  line-height: 1.45;
}

.payment-return-summary {
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 16px;
  padding: 14px 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-alt) 55%, var(--surface)) 0%,
    color-mix(in srgb, var(--surface) 88%, var(--surface-alt)) 100%
  );
}

.payment-return-bilingual-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-return-order-head {
  margin-bottom: 8px;
}

.payment-return-orderline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 52px;
  padding-inline-start: 90px;
}

.payment-return-orderlabel {
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.payment-return-order-head .payment-return-orderlabel:first-child {
  text-align: left;
}

.payment-return-order-head .payment-return-orderlabel:last-child {
  text-align: right;
}

.payment-return-orderno {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0.045em;
  font-size: clamp(1rem, 2.4vw, 1.32rem);
  color: var(--ink);
  text-align: center;
  margin-top: 2px;
  user-select: all;
  word-break: break-all;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--surface) 86%, var(--accent-soft));
  border-radius: 12px;
  padding: 10px 12px;
  min-width: min(100%, 420px);
}

.payment-return-copy {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 44%, var(--surface));
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.payment-return-copy-feedback {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface));
  color: color-mix(in srgb, var(--accent-strong) 85%, var(--ink));
  font-size: 0.78rem;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}

.payment-return-copy-feedback.is-error {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
  background: color-mix(in srgb, var(--warning-soft) 74%, var(--surface));
  color: color-mix(in srgb, var(--warning) 88%, var(--ink));
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}

.payment-return-note {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-return-note > span,
.payment-return-help > span {
  display: block;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-alt));
  padding: 9px 10px;
}

.payment-return-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-return-btn {
  min-height: 54px;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  justify-content: center;
}

.payment-return-actions .btn.ghost.payment-return-btn {
  border-color: color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 52%, var(--surface));
  color: var(--ink);
}

.payment-return-btn-bilingual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-return-btn-en {
  text-align: left;
}

.payment-return-btn-ar {
  text-align: right;
  font-family: var(--font-ar, inherit);
}

.payment-return-help {
  margin-top: 14px;
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px) {
  .payment-return-card {
    padding: 18px 14px;
  }

  .payment-return-status {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-return-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .payment-return-title,
  .payment-return-subtitle,
  .payment-return-note,
  .payment-return-help {
    grid-template-columns: 1fr;
  }

  .payment-return-orderline {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding-inline-start: 0;
    padding-top: 28px;
  }

  .payment-return-orderno,
  .payment-return-copy {
    width: 100%;
  }

  .payment-return-copy-feedback {
    top: 0;
    transform: none;
    width: auto;
    max-width: calc(100% - 2px);
    justify-content: flex-start;
  }

  .payment-return-actions {
    grid-template-columns: 1fr;
  }

  .payment-return-btn-bilingual {
    justify-content: space-between;
  }

  .payment-return-btn-en,
  .payment-return-btn-ar {
    text-align: center;
  }
}

/* Focused mobile visual pass for Products (/products) */
@media (max-width: 900px) {
  body[data-booking-mode="products"] .products-categories {
    gap: 12px;
  }

  body[data-booking-mode="products"] .product-category {
    border-radius: 16px;
  }

  body[data-booking-mode="products"] .product-category-toggle {
    min-height: 90px;
    padding: 14px 15px;
    gap: 10px;
  }

  body[data-booking-mode="products"] .product-category-thumb {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  body[data-booking-mode="products"] .product-category-title {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  body[data-booking-mode="products"] .product-category-caret {
    font-size: 1rem;
  }

  body[data-booking-mode="products"] .product-items {
    padding: 12px 12px 14px;
    gap: 10px;
  }

  body[data-booking-mode="products"] .product-card {
    min-height: 304px;
    padding: 12px;
    gap: 9px;
    border-radius: 14px;
  }

  body[data-booking-mode="products"] .product-card .service-title {
    min-height: calc(1.24em * 2);
    font-size: 0.95rem;
    line-height: 1.24;
  }

  body[data-booking-mode="products"] .product-image {
    min-height: 166px;
    padding: 8px;
    border-radius: 10px;
  }

  body[data-booking-mode="products"] .product-meta-block {
    padding: 8px 9px;
    gap: 7px;
  }

  body[data-booking-mode="products"] .product-desc {
    font-size: 0.8rem;
    line-height: 1.38;
  }

  body[data-booking-mode="products"] .product-unit,
  body[data-booking-mode="products"] .product-bottom-line {
    font-size: 0.76rem;
    line-height: 1.34;
  }

  body[data-booking-mode="products"] .product-stock-badge {
    font-size: 0.71rem;
    padding: 4px 9px;
  }

  body[data-booking-mode="products"] .product-card .service-price {
    font-size: 0.88rem;
  }

  body[data-booking-mode="products"] .product-qty {
    padding: 6px 8px;
    min-height: 44px;
  }

  body[data-booking-mode="products"] .product-qty .qty-btn {
    min-width: 40px;
    min-height: 40px;
    touch-action: manipulation;
  }

  body[data-booking-mode="products"] .product-qty .qty-input {
    min-height: 40px;
    font-size: 0.83rem;
  }

  body[data-booking-mode="products"] .stock-alert-btn {
    min-height: 36px;
    padding-inline: 14px;
    touch-action: manipulation;
  }

  body[data-booking-mode="products"] .product-qty-stock-inline .stock-alert-btn {
    min-height: 0;
    padding: 0;
  }

  body[data-booking-mode="products"] .summary-card {
    margin-top: 2px;
  }
}

@media (max-width: 720px) {
  body[data-booking-mode="products"] .panel-head {
    padding-bottom: 10px;
  }

  body[data-booking-mode="products"] .panel-head h2 {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  body[data-booking-mode="products"] .product-items {
    padding: 10px;
    gap: 10px;
    grid-template-columns: repeat(var(--products-cols-mobile), minmax(0, 1fr));
  }

  body[data-booking-mode="products"] .product-card {
    min-height: 292px;
    padding: 10px;
    gap: 8px;
  }

  body[data-booking-mode="products"] .product-image {
    min-height: 158px;
  }

  body[data-booking-mode="products"] .product-qty {
    grid-template-columns: auto auto minmax(40px, 52px) auto;
    gap: 5px;
  }

  body[data-booking-mode="products"] .product-qty-label {
    font-size: 0.7rem;
  }

  body[data-booking-mode="products"] .product-qty .qty-btn {
    min-width: 40px;
    min-height: 40px;
  }

  body[data-booking-mode="products"] .product-qty .qty-input {
    min-height: 40px;
  }

  body[data-booking-mode="products"] .product-qty-stock-alert {
    padding: 9px;
    gap: 8px;
  }

  body[data-booking-mode="products"] .product-qty-stock-alert .stock-label {
    font-size: 0.77rem;
    line-height: 1.3;
  }

  body[data-booking-mode="products"] #stock-alert-modal .confirm-modal-dialog {
    width: min(95vw, 520px);
  }
}

@media (max-width: 520px) {
  body[data-booking-mode="products"] .product-items {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-booking-mode="products"] .product-card {
    min-height: 0;
    padding: 10px;
    gap: 8px;
  }

  body[data-booking-mode="products"] .product-card .service-title {
    min-height: 0;
    -webkit-line-clamp: 3;
  }

  body[data-booking-mode="products"] .product-image {
    min-height: 168px;
  }

  body[data-booking-mode="products"] .product-qty {
    grid-template-columns: auto auto minmax(44px, 56px) auto;
    width: 100%;
  }

  body[data-booking-mode="products"] .product-qty .qty-btn {
    min-width: 40px;
    min-height: 40px;
  }

  body[data-booking-mode="products"] .product-qty .qty-input {
    min-height: 40px;
  }

  body[data-booking-mode="products"] .summary-card {
    padding: 13px 11px 18px;
  }
}

@media (max-width: 390px) {
  body[data-booking-mode="products"] .product-category-toggle {
    padding: 11px 12px;
  }

  body[data-booking-mode="products"] .product-card {
    padding: 9px;
  }

  body[data-booking-mode="products"] .product-image {
    min-height: 156px;
  }
}

/* Focused mobile visual pass for Payment Return (/pay/return) */
@media (max-width: 900px) {
  body.payment-return-page .site-header {
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
  }

  body.payment-return-page .payment-return-shell {
    padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  }

  body.payment-return-page .payment-return-card {
    max-width: 720px;
    padding: 20px 16px;
    border-radius: 18px;
  }

  body.payment-return-page .payment-return-status {
    gap: 12px;
  }

  body.payment-return-page .payment-return-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  body.payment-return-page .payment-return-icon {
    font-size: 1.9rem;
  }

  body.payment-return-page .payment-return-title {
    font-size: clamp(1.24rem, 3.8vw, 1.44rem);
  }

  body.payment-return-page .payment-return-subtitle > span {
    font-size: 0.9rem;
  }

  body.payment-return-page .payment-return-summary {
    padding: 13px 12px;
  }

  body.payment-return-page .payment-return-orderlabel {
    font-size: 0.74rem;
  }

  body.payment-return-page .payment-return-orderno {
    padding: 11px 12px;
    font-size: clamp(0.95rem, 3.1vw, 1.18rem);
    letter-spacing: 0.032em;
  }

  body.payment-return-page .payment-return-copy {
    min-height: 42px;
    padding: 8px 12px;
  }

  body.payment-return-page .payment-return-actions .payment-return-btn {
    min-height: 52px;
    padding: 10px 12px;
    font-size: 0.94rem;
  }

  body.payment-return-page .payment-return-btn-bilingual {
    gap: 8px;
  }
}

@media (max-width: 720px) {
  body.payment-return-page .site-header {
    flex-wrap: nowrap;
    min-width: 0;
  }

  body.payment-return-page .site-header .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.payment-return-page .site-header .brand-name {
    max-width: min(42vw, 220px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.92rem, 3.3vw, 1rem);
  }

  body.payment-return-page .site-header .lang-switch {
    margin-inline-start: auto;
    max-width: min(56vw, calc(100vw - 138px));
    min-width: 0;
    gap: 6px;
    padding: 5px 8px;
  }

  body.payment-return-page .site-header .auth-text {
    display: none;
  }

  body.payment-return-page .payment-return-shell {
    padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  }

  body.payment-return-page .payment-return-card {
    padding: 15px 12px;
    border-radius: 16px;
  }

  body.payment-return-page .payment-return-status {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: start;
    gap: 10px;
  }

  body.payment-return-page .payment-return-badge {
    width: 54px;
    height: 54px;
    margin-inline: auto;
  }

  body.payment-return-page .payment-return-icon {
    font-size: 1.75rem;
  }

  body.payment-return-page .payment-return-title,
  body.payment-return-page .payment-return-subtitle,
  body.payment-return-page .payment-return-note,
  body.payment-return-page .payment-return-help {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.payment-return-page .payment-return-title-en,
  body.payment-return-page .payment-return-title-ar,
  body.payment-return-page .payment-return-subtitle > span,
  body.payment-return-page .payment-return-note > span,
  body.payment-return-page .payment-return-help > span {
    padding: 8px 10px;
  }

  body.payment-return-page .payment-return-title-en {
    text-align: left;
  }

  body.payment-return-page .payment-return-title-ar {
    text-align: right;
  }

  body.payment-return-page .payment-return-orderline {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding-inline-start: 0;
    padding-top: 28px;
  }

  body.payment-return-page .payment-return-orderno {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    -webkit-overflow-scrolling: touch;
  }

  body.payment-return-page .payment-return-copy {
    width: 100%;
    justify-content: center;
  }

  body.payment-return-page .payment-return-copy-feedback {
    top: 0;
    transform: none;
    width: auto;
    max-width: calc(100% - 2px);
    justify-content: flex-start;
  }

  body.payment-return-page .payment-return-actions {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 14px;
  }

  body.payment-return-page .payment-return-btn-bilingual {
    justify-content: space-between;
    align-items: center;
  }

  body.payment-return-page .payment-return-btn-en,
  body.payment-return-page .payment-return-btn-ar {
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  body.payment-return-page .payment-return-card {
    padding: 13px 10px;
    border-radius: 14px;
  }

  body.payment-return-page .payment-return-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  body.payment-return-page .payment-return-icon {
    font-size: 1.62rem;
  }

  body.payment-return-page .payment-return-title {
    font-size: clamp(1.12rem, 4.2vw, 1.24rem);
  }

  body.payment-return-page .payment-return-orderno {
    font-size: 0.94rem;
    letter-spacing: 0.022em;
    padding: 10px 10px;
  }

  body.payment-return-page .payment-return-actions .payment-return-btn {
    min-height: 50px;
    font-size: 0.9rem;
  }
}

@media (max-width: 390px) {
  body.payment-return-page .site-header .brand-name {
    max-width: min(38vw, 170px);
  }

  body.payment-return-page .site-header .lang-switch {
    max-width: min(54vw, calc(100vw - 120px));
    padding: 4px 6px;
  }

  body.payment-return-page .payment-return-card {
    padding: 12px 9px;
  }

  body.payment-return-page .payment-return-copy,
  body.payment-return-page .payment-return-actions .payment-return-btn {
    min-height: 46px;
  }
}

/* Phase 2 visual pass: services flow composition (screenshot-aligned) */
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .main-layout {
  align-items: flex-start;
  gap: clamp(14px, 2.2vw, 26px);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .hero {
  margin-bottom: 16px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel {
  padding: clamp(14px, 1.5vw, 20px);
  border-radius: clamp(18px, 2.5vw, 24px);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-head {
  margin-bottom: 14px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-title-row {
  align-items: center;
  gap: 12px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-lang {
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .services-grid {
  grid-template-columns: repeat(var(--services-cols), minmax(0, 1fr));
  gap: 14px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .services-grid.blocked-business::before {
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15, 24, 29, 0.87), rgba(10, 18, 23, 0.9));
  backdrop-filter: blur(2px);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .services-grid.blocked-business::after {
  inset: auto 12px 12px;
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--surface-alt) 90%, var(--accent-soft));
  box-shadow: 0 10px 18px rgba(1, 8, 12, 0.35);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card {
  min-height: clamp(214px, 25vw, 268px);
  border-radius: 16px;
  gap: 9px;
  padding: 12px 12px 13px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card .service-info-row {
  justify-content: flex-end;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card.selected::after {
  inset-inline-start: 10px;
  inset-inline-end: auto;
  width: 24px;
  height: 24px;
  font-size: 1rem;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-media {
  width: min(100%, max(120px, calc(var(--service-image-height) + 18px)));
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 11px;
  background: transparent;
  border: 0;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-title {
  min-height: calc(var(--service-title-size) * 2.3);
  align-content: center;
  letter-spacing: 0.01em;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-duration {
  margin-top: auto;
  min-height: 30px;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 65%, transparent);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card.selected .service-duration {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface-alt));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-questions {
  margin-top: 16px;
  gap: 14px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-question-card {
  border-radius: 15px;
  background:
    linear-gradient(170deg, rgba(29, 43, 50, 0.84) 0%, rgba(14, 24, 30, 0.88) 100%);
  border-color: color-mix(in srgb, var(--line) 66%, var(--accent-soft));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-question-card.inspection-required {
  border-color: color-mix(in srgb, var(--warning) 48%, var(--line));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--warning) 24%, transparent),
    0 10px 20px rgba(1, 8, 12, 0.26);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .inspection-warning {
  border-color: color-mix(in srgb, var(--warning) 42%, var(--line));
  background: color-mix(in srgb, var(--warning-soft) 24%, var(--surface));
  color: color-mix(in srgb, var(--warning) 72%, var(--ink));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-contact-card {
  margin-top: 16px;
  border-radius: 14px;
  background:
    linear-gradient(170deg, rgba(25, 39, 45, 0.84) 0%, rgba(12, 22, 27, 0.9) 100%);
  border-color: color-mix(in srgb, var(--line) 66%, var(--accent-soft));
  box-shadow: 0 12px 24px rgba(1, 8, 12, 0.34);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] #business-contact-card:not([hidden]),
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] #service-contact-card:not([hidden]),
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] #subarea-field:not([hidden]) {
  animation: services-section-reveal 0.2s ease-out;
}

@keyframes services-section-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .calendar {
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
  background:
    linear-gradient(180deg, rgba(21, 33, 39, 0.84), rgba(11, 20, 25, 0.9));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .time-slots {
  gap: 10px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .slot-btn {
  min-height: 42px;
  border-radius: 12px;
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .slot-btn.disabled,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .slot-btn[disabled] {
  opacity: 0.42;
  filter: saturate(0.68);
  text-decoration: line-through;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .slot-btn.active {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  box-shadow:
    0 10px 20px color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-footer {
  margin-top: 14px;
  padding: 14px 14px 10px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background:
    linear-gradient(180deg, rgba(21, 34, 40, 0.8), rgba(11, 19, 24, 0.88));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions {
  gap: 14px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn {
  min-height: 52px;
  min-width: min(320px, 52%);
  border-radius: 14px;
  font-size: 1rem;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn {
  min-height: 48px;
  border-radius: 12px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-steps {
  margin-top: 10px;
  gap: 10px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .step-pill {
  min-height: 46px;
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background:
    linear-gradient(180deg, rgba(23, 38, 45, 0.86), rgba(12, 22, 27, 0.88));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .step-pill .step-index {
  width: 22px;
  height: 22px;
  font-size: 0.74rem;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .step-pill[data-state="current"] {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent),
    0 10px 20px color-mix(in srgb, var(--accent) 15%, transparent);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .step-pill[data-state="completed"] {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  color: color-mix(in srgb, var(--accent-strong) 68%, var(--ink));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-card {
  padding: clamp(16px, 1.6vw, 20px);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-card h3 {
  margin-bottom: 14px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-section {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-section:first-child {
  border-top: 0;
  padding-top: 0;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--muted) 78%, var(--ink));
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-section:nth-of-type(1) .summary-label::before,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-section:nth-of-type(2) .summary-label::before,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-section:nth-of-type(3) .summary-label::before,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-section:nth-of-type(4) .summary-label::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface-alt));
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-list li {
  padding: 7px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-total {
  margin-top: auto;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-top: 13px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-footer .pill {
  border-radius: 10px;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt) 76%, transparent);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .payment-modal-dialog {
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background:
    linear-gradient(170deg, rgba(21, 33, 39, 0.96) 0%, rgba(10, 18, 22, 0.98) 100%);
  box-shadow: 0 20px 48px rgba(1, 8, 12, 0.58);
}

@media (max-width: 980px) {
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .services-grid {
    grid-template-columns: repeat(var(--services-cols-tablet), minmax(0, 1fr));
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn {
    min-width: 200px;
    flex: 1 1 54%;
  }
}

@media (max-width: 720px) {
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .services-grid {
    grid-template-columns: repeat(var(--services-cols-mobile), minmax(0, 1fr));
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .main-layout {
    gap: 12px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel {
    padding: 13px 11px 12px;
    border-radius: 16px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-head {
    margin-bottom: 12px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-title-row {
    gap: 8px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-footer {
    padding: 11px 10px 9px;
    border-radius: 14px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn {
    min-height: 46px;
    font-size: 0.88rem;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn {
    min-height: 48px;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.92rem;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-steps {
    margin-top: 8px;
    gap: 8px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .step-pill {
    min-height: 44px;
    padding: 8px 9px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .step-pill .step-title {
    font-size: 0.74rem;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .services-grid {
    gap: 10px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card {
    min-height: 188px;
    padding: 9px 8px 10px;
    border-radius: 13px;
    gap: 6px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card .service-info-row {
    margin-bottom: 0;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-media {
    width: min(100%, max(86px, calc(var(--service-image-height) - 24px)));
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 10px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-title {
    min-height: calc(var(--service-title-mobile-size, 0.9rem) * 2.2);
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-duration {
    min-height: 26px;
    font-size: 0.79rem;
    padding: 0 8px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-questions {
    margin-top: 12px;
    gap: 11px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-question-card {
    padding: 11px;
    border-radius: 13px;
    gap: 9px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-contact-card {
    margin-top: 10px;
    padding: 11px;
    border-radius: 12px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-contact-actions {
    gap: 7px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-contact-link {
    min-height: 39px;
    padding: 7px 10px;
    font-size: 0.83rem;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-card {
    border-radius: 14px;
    padding: 13px 11px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-section {
    padding: 9px 0;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .summary-list {
    gap: 7px;
  }
}

:root[data-ui-preset="neo-glass"] body.preview-tablet[data-booking-mode="services"] .services-grid {
  grid-template-columns: repeat(var(--services-cols-tablet), minmax(0, 1fr));
}

:root[data-ui-preset="neo-glass"] body.preview-mobile[data-booking-mode="services"] .services-grid {
  grid-template-columns: repeat(var(--services-cols-mobile), minmax(0, 1fr));
}

/* March 2026: Services/Product visual consistency + category media + logo sizing */
.logo {
  height: var(--logo-width);
  flex: 0 0 auto;
  overflow: visible;
}

.logo-image {
  height: 100%;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card.selected::after {
  left: 10px;
  right: auto;
  inset-inline-start: auto;
  inset-inline-end: auto;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions .startover-btn,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions #next-btn {
  width: clamp(132px, 24vw, 190px);
  min-height: 38px;
  margin: 0;
  border-radius: 999px;
  padding: 7px 14px;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 clamp(132px, 24vw, 190px);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions .startover-btn {
  margin-inline-end: auto;
  min-width: 0;
  max-width: none;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions #next-btn {
  margin-inline-start: auto;
  min-width: 0;
  max-width: none;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-footer,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-footer {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 8px;
  padding: 6px 0 0;
}

@media (max-width: 720px) {
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions {
    gap: 8px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions .startover-btn,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions #next-btn {
    min-height: 44px;
    padding: 8px 10px;
    width: calc((100% - 8px) / 2);
    flex: 0 0 calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
    min-width: 0;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    gap: 6px;
    overflow: hidden;
  }

  /* Mobile stability: avoid backdrop-filter repaint glitches on some engines. */
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions .startover-btn {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: translateZ(0);
    transition:
      box-shadow var(--motion-fast) var(--easing-standard),
      background-color var(--motion-fast) var(--easing-standard);
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions .startover-btn {
    min-width: 0;
    max-width: calc((100% - 8px) / 2);
    justify-content: center;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions #next-btn {
    min-width: 0;
    max-width: calc((100% - 8px) / 2);
    justify-content: center;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn .next-label,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions #next-btn .next-label {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.76rem, 3vw, 0.9rem);
    letter-spacing: 0;
    white-space: nowrap;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn .startover-text,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions .startover-btn .startover-text {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.76rem, 3vw, 0.9rem);
    letter-spacing: 0;
    white-space: nowrap;
    line-height: 1;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions #next-btn .next-icon,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions #next-btn .next-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1rem;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .panel-actions .startover-btn .startover-icon::before,
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .panel-actions .startover-btn .startover-icon::before {
    font-size: 1rem;
    line-height: 1;
  }
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .panel-actions #next-btn {
  color: #0d4236;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  background: linear-gradient(
    122deg,
    color-mix(in srgb, #ffffff 44%, var(--accent-soft)) 0%,
    color-mix(in srgb, var(--accent-soft) 68%, #ffffff) 52%,
    color-mix(in srgb, #e8d8bb 52%, var(--accent-soft)) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 12px 22px rgba(38, 126, 103, 0.2);
  backdrop-filter: blur(10px);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .panel-lang {
  background: color-mix(in srgb, var(--surface) 94%, #ffffff);
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .services-grid.blocked-business::before {
  background: linear-gradient(180deg, rgba(239, 245, 241, 0.84), rgba(233, 240, 236, 0.88));
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .services-grid.blocked-business::after {
  background: color-mix(in srgb, var(--surface) 86%, var(--accent-soft));
  box-shadow: 0 10px 18px rgba(34, 68, 59, 0.14);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-question-card,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-contact-card,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .calendar,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .panel-footer,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .step-pill,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .payment-modal-dialog {
  background: linear-gradient(
    162deg,
    color-mix(in srgb, var(--surface) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--surface-alt) 90%, #ffffff) 100%
  );
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  color: var(--ink);
  box-shadow: 0 14px 26px rgba(29, 58, 51, 0.11);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-duration,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-contact-text,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .inspection-warning,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .slot-note {
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-question-card.inspection-required {
  border-color: color-mix(in srgb, var(--warning) 46%, var(--line));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--warning) 18%, transparent),
    0 10px 18px rgba(184, 95, 61, 0.09);
}

body[data-booking-mode="products"] .product-category {
  border-width: 1px;
  border-radius: 20px;
}

body[data-booking-mode="products"] .product-category-toggle {
  min-height: 108px;
  padding: 18px 22px;
  gap: 18px;
}

.product-category-heading {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.product-category-thumb {
  width: 96px;
  height: 96px;
  border-radius: 0;
  overflow: visible;
  flex: 0 0 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  margin-inline-start: auto;
}

.product-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

body[data-booking-mode="products"] .product-category-title {
  font-size: 1.02rem;
}

body[data-booking-mode="products"] .product-category-meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

body[data-booking-mode="products"] .product-category-caret {
  width: 1.45em;
  font-size: 1.14rem;
}

@media (max-width: 720px) {
  body[data-booking-mode="products"] .product-category-toggle {
    min-height: 86px;
    padding: 14px 15px;
    gap: 10px;
  }

  .product-category-thumb {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 0;
  }
}

/* March 2026: focused light/dark pass for /services + landing */
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .hero,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .hero {
  margin-top: var(--hero-top-gap);
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

:root[data-ui-preset="neo-glass"] body.landing-page .hero {
  align-items: center;
  margin-top: var(--hero-top-gap);
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card {
  padding-top: 14px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card .service-info-row {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  width: auto;
  margin: 0;
  z-index: 4;
}

[dir="rtl"] body[data-booking-mode="services"] .service-card .service-info-row {
  left: 8px;
  right: auto;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-card.selected::after {
  top: 8px;
  left: 8px;
  right: auto;
}

[dir="rtl"] body[data-booking-mode="services"] .service-card.selected::after {
  right: 8px;
  left: auto;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-title {
  color: #ebf7f3;
  text-shadow: 0 1px 0 rgba(7, 16, 13, 0.24);
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .service-duration {
  color: #c8dcd6;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-title {
  color: #1f4339;
  text-shadow: none;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-duration {
  color: #4a6f66;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .service-info-btn {
  color: #2d7f69;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .hero p {
  color: #3f6259;
  font-weight: 500;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page {
  background:
    radial-gradient(circle at 11% 6%, rgba(102, 201, 170, 0.18), transparent 42%),
    radial-gradient(circle at 86% 84%, rgba(226, 182, 116, 0.17), transparent 40%),
    linear-gradient(180deg, #f4f8f6 0%, #eef4f1 52%, #e8efeb 100%);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .bg-grid {
  background-image:
    linear-gradient(rgba(247, 252, 249, 0.78), rgba(247, 252, 249, 0.82)),
    var(--hero-bg-image),
    linear-gradient(rgba(22, 54, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 54, 47, 0.04) 1px, transparent 1px);
  background-size: cover, cover, 120px 120px, 120px 120px;
  background-position: center center, center center, 0 0, 0 0;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-panel,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card {
  background: linear-gradient(
    158deg,
    color-mix(in srgb, var(--surface) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--surface-alt) 90%, #ffffff) 100%
  );
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow:
    0 18px 30px rgba(29, 58, 51, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card-content h3 {
  color: #1f4339;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card-content p {
  color: #4a6f66;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .panel-actions #next-btn,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .panel-actions #next-btn {
  color: #0d4135;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  background: linear-gradient(
    124deg,
    color-mix(in srgb, var(--accent-soft) 58%, #ffffff) 0%,
    color-mix(in srgb, var(--accent-soft) 82%, #f6fbf8) 52%,
    color-mix(in srgb, #eddcbf 58%, var(--accent-soft)) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 12px 22px rgba(35, 120, 97, 0.22);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .panel-actions #next-btn:hover,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .panel-actions #next-btn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

html[data-theme="light"] body[data-booking-mode="services"] .service-title {
  color: var(--ink);
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .step-pill {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 86%, transparent);
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  box-shadow: none;
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .step-pill .step-index {
  width: 24px;
  height: 24px;
  font-size: var(--font-step-index);
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .step-pill[data-state="upcoming"] {
  opacity: 0.9;
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .step-pill[data-state="completed"] {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  color: color-mix(in srgb, var(--accent-strong) 70%, var(--ink));
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .step-pill[data-state="current"] {
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface));
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow: 0 10px 24px rgba(23, 100, 77, 0.16);
}

/* March 2026: final hero consistency + landing light background parity */
:root[data-ui-preset="neo-glass"] body.landing-page .hero h1,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="services"] .hero h1,
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .hero h1,
:root[data-ui-preset="neo-glass"] body.account-page .hero h1 {
  display: inline-block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-image: linear-gradient(102deg, #7af0d1 0%, #f2cc88 49%, #6de2c0 100%) !important;
  background-color: transparent !important;
  background-origin: border-box !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .hero h1,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .hero h1,
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="products"] .hero h1,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .hero h1 {
  background-image: linear-gradient(102deg, #136f5a 0%, #b27836 49%, #136f5a 100%) !important;
}

/* March 2026: light-mode cleanup for steps/actions + landing parity */
:root[data-ui-preset="neo-glass"][data-theme="light"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-steps {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .step-pill {
  background: transparent !important;
  border-color: color-mix(in srgb, var(--line) 78%, transparent) !important;
  box-shadow: none !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .step-pill[data-state="current"] {
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line)) !important;
  box-shadow: 0 10px 20px rgba(33, 104, 85, 0.14) !important;
}

/* Light mode: keep selected time slot readable (avoid white-on-white). */
:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .slot-btn.active {
  background: linear-gradient(
    152deg,
    color-mix(in srgb, var(--accent-soft) 76%, #ffffff) 0%,
    color-mix(in srgb, var(--surface) 86%, var(--accent-soft)) 100%
  ) !important;
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line)) !important;
  color: color-mix(in srgb, var(--ink) 84%, var(--accent-strong)) !important;
  box-shadow:
    0 10px 18px rgba(33, 104, 85, 0.14),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body[data-booking-mode="services"] .slot-btn.active .slot-time {
  color: inherit !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-panel,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card {
  background:
    linear-gradient(158deg, rgba(248, 251, 249, 0.78) 0%, rgba(238, 244, 240, 0.74) 64%, rgba(243, 236, 227, 0.7) 100%) !important;
  border-color: rgba(132, 156, 145, 0.3) !important;
  box-shadow:
    0 20px 34px rgba(33, 60, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

/* March 2026: canonical landing light mode (match services/products light system) */
:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page {
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 10% 2%, rgba(84, 196, 163, 0.18), transparent 44%),
    radial-gradient(circle at 87% 88%, rgba(232, 182, 104, 0.22), transparent 42%),
    linear-gradient(180deg, #eef5f1 0%, #e9f0ec 52%, #e4ece8 100%) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .bg-grid {
  background-image:
    linear-gradient(
      rgba(247, 252, 249, calc(var(--hero-overlay-opacity) * 0.55)),
      rgba(247, 252, 249, calc(var(--hero-overlay-opacity) * 0.55))
    ),
    var(--hero-bg-image),
    linear-gradient(rgba(22, 54, 47, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 54, 47, 0.05) 1px, transparent 1px) !important;
  background-size: cover, cover, 120px 120px, 120px 120px !important;
  background-position: center center, center center, 0 0, 0 0 !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .hero p {
  color: #355b52 !important;
  text-shadow: none !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-panel,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card {
  background:
    linear-gradient(158deg, rgba(248, 251, 249, 0.78) 0%, rgba(238, 244, 240, 0.74) 64%, rgba(243, 236, 227, 0.7) 100%) !important;
  border: 1px solid rgba(132, 156, 145, 0.3) !important;
  box-shadow:
    0 20px 34px rgba(33, 60, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card-content p {
  color: #4a6f66 !important;
}

/* March 2026: FINAL landing light parity (authoritative) */
:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .hero h1 {
  background-image: linear-gradient(102deg, #145f4e 0%, #9b6a2e 49%, #145f4e 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: #145f4e !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .hero p {
  color: #2f5a50 !important;
  text-shadow: none !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-panel {
  background:
    linear-gradient(
      162deg,
      color-mix(in srgb, var(--surface) 94%, #ffffff) 0%,
      color-mix(in srgb, var(--surface-alt) 90%, #ffffff) 100%
    ) !important;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
  box-shadow:
    0 14px 26px rgba(29, 58, 51, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(108%) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-panel .panel-body {
  background: transparent !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card {
  background:
    linear-gradient(
      162deg,
      color-mix(in srgb, var(--surface) 94%, #ffffff) 0%,
      color-mix(in srgb, var(--surface-alt) 90%, #ffffff) 100%
    ) !important;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
  box-shadow:
    0 14px 26px rgba(29, 58, 51, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(108%) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card-content h3 {
  color: #1f4339 !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-card-content p {
  color: #3f6359 !important;
}

/* March 2026: enforce one shared light background stack across landing/services/products */
:root[data-ui-preset="neo-glass"][data-theme="light"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) {
  background:
    radial-gradient(circle at 10% 2%, rgba(84, 196, 163, 0.18), transparent 44%),
    radial-gradient(circle at 87% 88%, rgba(232, 182, 104, 0.22), transparent 42%),
    linear-gradient(180deg, #eef5f1 0%, #e9f0ec 52%, #e4ece8 100%) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) .bg-grid {
  background-image:
    linear-gradient(
      rgba(247, 252, 249, calc(var(--hero-overlay-opacity) * 0.55)),
      rgba(247, 252, 249, calc(var(--hero-overlay-opacity) * 0.55))
    ),
    var(--hero-bg-image),
    linear-gradient(rgba(22, 54, 47, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 54, 47, 0.05) 1px, transparent 1px) !important;
  background-size: cover, cover, 120px 120px, 120px 120px !important;
  background-position: center center, center center, 0 0, 0 0 !important;
}

/* March 2026: shared hero subtitle contrast for landing/services/products (light mode) */
:root[data-ui-preset="neo-glass"][data-theme="light"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) .hero p {
  color: #456c62 !important;
}

/* March 2026: authoritative dark-mode parity for landing/services/products */
:root[data-ui-preset="neo-glass"][data-theme="dark"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) {
  background:
    radial-gradient(circle at 15% 2%, rgba(76, 214, 175, 0.2), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(237, 186, 108, 0.24), transparent 44%),
    linear-gradient(180deg, #0b1318 0%, #101d24 54%, #121d20 100%) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="dark"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) .bg-grid {
  background-image:
    linear-gradient(
      rgba(7, 14, 18, calc(var(--hero-overlay-opacity) * 0.84)),
      rgba(7, 14, 18, calc(var(--hero-overlay-opacity) * 0.84))
    ),
    var(--hero-bg-image),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) !important;
  background-size: cover, cover, 120px 120px, 120px 120px !important;
  background-position: center center, center center, 0 0, 0 0 !important;
}

:root[data-ui-preset="neo-glass"][data-theme="dark"] body.landing-page .hero p {
  color: #c4d5d1 !important;
}

:root[data-ui-preset="neo-glass"][data-theme="dark"] body.landing-page .landing-panel,
:root[data-ui-preset="neo-glass"][data-theme="dark"] body.landing-page .landing-card {
  background:
    linear-gradient(162deg, rgba(30, 43, 49, 0.68) 0%, rgba(16, 25, 30, 0.74) 65%, rgba(36, 34, 29, 0.52) 100%) !important;
  border-color: rgba(123, 165, 153, 0.24) !important;
  box-shadow:
    0 24px 48px rgba(4, 11, 14, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="dark"] body.landing-page .landing-card-content h3 {
  color: #eef8f5 !important;
}

:root[data-ui-preset="neo-glass"][data-theme="dark"] body.landing-page .landing-card-content p {
  color: #c7dad6 !important;
}

/* March 2026: landing parity with services/products + shared contact actions */
:root[data-ui-preset="neo-glass"] body.landing-page .hero h1 {
  font-size: var(--font-hero-title) !important;
  line-height: 1.12 !important;
  margin-bottom: 8px !important;
}

:root[data-ui-preset="neo-glass"] body.landing-page .hero p {
  font-size: var(--font-hero-subtitle) !important;
  line-height: 1.6 !important;
  max-width: 460px !important;
}

:root[data-ui-preset="neo-glass"] body.landing-page .landing-panel {
  background:
    linear-gradient(162deg, rgba(30, 43, 49, 0.68) 0%, rgba(16, 25, 30, 0.74) 65%, rgba(36, 34, 29, 0.52) 100%) !important;
  border-color: rgba(123, 165, 153, 0.24) !important;
  box-shadow:
    0 24px 48px rgba(4, 11, 14, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.landing-page .landing-panel {
  background:
    linear-gradient(158deg, rgba(248, 251, 249, 0.78) 0%, rgba(238, 244, 240, 0.74) 64%, rgba(243, 236, 227, 0.7) 100%) !important;
  border-color: rgba(132, 156, 145, 0.3) !important;
  box-shadow:
    0 20px 34px rgba(33, 60, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

:root[data-ui-preset="neo-glass"] body.landing-page .landing-panel .panel-body {
  background: transparent !important;
}

:root[data-ui-preset="neo-glass"] body.landing-page .help-inline.landing-help-inline {
  margin-top: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px !important;
}

:root[data-ui-preset="neo-glass"] body.landing-page .help-inline.landing-help-inline .service-contact-link {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  :root[data-ui-preset="neo-glass"] body.landing-page .hero h1 {
    font-size: calc(var(--font-hero-title) * var(--font-mobile-scale)) !important;
  }

  :root[data-ui-preset="neo-glass"] body.landing-page .hero p {
    font-size: calc(var(--font-hero-subtitle) * var(--font-mobile-scale)) !important;
    max-width: 100% !important;
  }
}

/* March 2026: final hero alignment + mobile cap-height clipping fix */
:root[data-ui-preset="neo-glass"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) .hero {
  align-items: center !important;
  margin-top: var(--hero-top-gap) !important;
  margin-bottom: clamp(18px, 2.2vw, 26px) !important;
  gap: 28px !important;
  min-height: var(--hero-min-height) !important;
}

:root[data-ui-preset="neo-glass"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) .hero h1 {
  font-size: var(--font-hero-title) !important;
  margin: 0 0 8px !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
}

:root[data-ui-preset="neo-glass"] body:is(.landing-page, [data-booking-mode="services"], [data-booking-mode="products"], .account-page) .hero p {
  margin: 0 !important;
  font-size: var(--font-hero-subtitle) !important;
  line-height: 1.6 !important;
  max-width: 460px !important;
}

@media (max-width: 720px) {
  :root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .hero h1 {
    line-height: 1.22 !important;
    padding-top: 0.08em !important;
    padding-bottom: 0.03em !important;
    overflow: visible !important;
  }
}

@media (min-width: 1024px) {
  :root[data-ui-preset="neo-glass"] body.landing-page .hero p {
    max-width: none !important;
    white-space: nowrap !important;
  }
}

/* March 2026: force single-row subtitle for services/products */
:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .hero p {
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* March 2026: distinct Start Over palette, shared with Next button language */
:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn,
:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions #next-btn {
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-ui-preset="neo-glass"][data-theme="dark"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions #next-btn {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)) !important;
  background: linear-gradient(102deg, #4ce2ba 0%, #39c8a3 56%, #ddb572 100%) !important;
  color: #07271f !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 24px rgba(53, 177, 147, 0.28) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions #next-btn {
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)) !important;
  color: #0d4135 !important;
  background: linear-gradient(
    124deg,
    color-mix(in srgb, var(--accent-soft) 58%, #ffffff) 0%,
    color-mix(in srgb, var(--accent-soft) 82%, #f6fbf8) 52%,
    color-mix(in srgb, #eddcbf 58%, var(--accent-soft)) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 12px 22px rgba(35, 120, 97, 0.22) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="dark"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn {
  border: 1px solid color-mix(in srgb, #7ca2b0 40%, var(--line)) !important;
  background: linear-gradient(
    122deg,
    color-mix(in srgb, #d3ece3 74%, #8dcab7) 0%,
    color-mix(in srgb, #c5e3d8 70%, #79bca8) 56%,
    color-mix(in srgb, #e9d8b7 72%, #9fc3b6) 100%
  ) !important;
  color: #07271f !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 22px rgba(36, 76, 66, 0.24) !important;
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn {
  border: 1px solid color-mix(in srgb, #8ea9a0 46%, var(--line)) !important;
  color: #0d4135 !important;
  background: linear-gradient(
    124deg,
    color-mix(in srgb, #e4f2ec 84%, #ffffff) 0%,
    color-mix(in srgb, #d6ebe2 86%, #f8fcfa) 52%,
    color-mix(in srgb, #eee2c9 82%, #e8f3ee) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 11px 20px rgba(44, 83, 72, 0.16) !important;
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn .startover-text,
:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn .startover-icon,
:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn .startover-icon::before {
  color: inherit !important;
}

/* Cross-browser safety: if Start over is visible, force it to remain rendered. */
:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) #start-over-btn:not(.is-hidden) {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

:root[data-ui-preset="neo-glass"] body:is([data-booking-mode="services"], [data-booking-mode="products"]) .panel-actions .startover-btn:active {
  filter: brightness(0.98);
  transform: translateY(0);
}

/* March 2026: /account cards use the same glass panel treatment */
:root[data-ui-preset="neo-glass"] body.account-page .account-panel,
:root[data-ui-preset="neo-glass"] body.account-page .account-profile,
:root[data-ui-preset="neo-glass"] body.account-page .account-sections .account-section,
:root[data-ui-preset="neo-glass"] body.account-page .account-item,
:root[data-ui-preset="neo-glass"] body.account-page #order-modal .confirm-modal-dialog,
:root[data-ui-preset="neo-glass"] body.account-page #order-modal .confirm-modal-head,
:root[data-ui-preset="neo-glass"] body.account-page #order-modal .confirm-modal-body,
:root[data-ui-preset="neo-glass"] body.account-page #order-modal .confirm-modal-actions {
  background:
    linear-gradient(162deg, rgba(30, 43, 49, 0.68) 0%, rgba(16, 25, 30, 0.74) 65%, rgba(36, 34, 29, 0.52) 100%) !important;
  border-color: rgba(123, 165, 153, 0.24) !important;
  box-shadow:
    0 24px 48px rgba(4, 11, 14, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .account-panel,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .account-profile,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .account-sections .account-section,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page .account-item,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page #order-modal .confirm-modal-dialog,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page #order-modal .confirm-modal-head,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page #order-modal .confirm-modal-body,
:root[data-ui-preset="neo-glass"][data-theme="light"] body.account-page #order-modal .confirm-modal-actions {
  background:
    linear-gradient(158deg, rgba(248, 251, 249, 0.78) 0%, rgba(238, 244, 240, 0.74) 64%, rgba(243, 236, 227, 0.7) 100%) !important;
  border-color: rgba(132, 156, 145, 0.3) !important;
  box-shadow:
    0 20px 34px rgba(33, 60, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* March 2026: Product gallery polish + 1:1 image presentation */
:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .product-image {
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  overflow: visible;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .product-image img {
  border-radius: 12px;
}

:root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .product-card {
  gap: 9px;
}

.service-modal.product-image-zoom .service-modal-dialog {
  overflow: visible;
}

@media (max-width: 900px) {
  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .product-image-nav.prev {
    left: -6px;
  }

  :root[data-ui-preset="neo-glass"] body[data-booking-mode="products"] .product-image-nav.next {
    right: -6px;
  }

  :root[data-ui-preset="neo-glass"] .product-zoom-nav.prev {
    left: -44px;
  }

  :root[data-ui-preset="neo-glass"] .product-zoom-nav.next {
    right: -44px;
  }

  :root[data-ui-preset="neo-glass"] .service-modal.product-image-zoom .service-modal-head {
    top: -46px;
    right: -2px;
  }
}
