:root {
  color-scheme: dark;
  --bg: #08090C;
  --surface: #111318;
  --surface-2: #171A22;
  --border: rgba(212, 168, 83, 0.28);
  --border-soft: rgba(255, 255, 255, 0.085);
  --gold: #D4A853;
  --gold-light: #E8C57B;
  --gold-soft: rgba(212, 168, 83, 0.13);
  --text: #F5F2EB;
  --text-muted: #9A9DA8;
  --emerald: #2ECC8F;
  --emerald-soft: rgba(46, 204, 143, 0.12);
  --target-size: 24px;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
}

body {
  margin: 0;
  min-block-size: 100dvh;
  background: radial-gradient(circle at top center, #1B150E 0%, #0B0D12 56%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-inline-size: 100%;
  block-size: auto;
}

:where(a, code) {
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  text-wrap: balance;
  margin: 0;
}

p, li {
  text-wrap: pretty;
}

:where(button, select, input, [role="button"], a.cta-btn, a.sticky-call-btn) {
  min-block-size: var(--target-size);
  min-inline-size: var(--target-size);
  font-family: inherit;
}

:where(a:any-link, button, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 10px;
  z-index: 100;
  background: var(--gold);
  color: #0B0D12;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

/* Header */
.hero-header {
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-left, 0px)) 18px max(16px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(28, 21, 13, 0.72), rgba(11, 13, 18, 0.35));
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.hero-top-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-crest {
  width: 210px;
  height: auto;
  display: block;
}

.hero-inner h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D4A359, #B98338);
  color: #0B0D12;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid var(--gold-light);
  box-shadow: 0 8px 22px rgba(212, 163, 89, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-light);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cta-secondary-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 163, 89, 0.22);
}

/* Main */
.showcase-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px max(16px, env(safe-area-inset-left, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  contain: layout style;
}

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

.section-head h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  color: var(--gold-light);
}

.section-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Date Strip */
.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;
}

.date-chip {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.date-chip:hover {
  border-color: var(--gold);
}

.date-chip.active {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.date-chip-top {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

.date-chip-day,
.date-chip-count,
.slot-btn,
.price-val {
  font-variant-numeric: tabular-nums;
}

.date-chip-day {
  font-size: 14px;
  font-weight: 800;
}

.date-chip-count {
  font-size: 11.5px;
  color: var(--emerald);
  font-weight: 600;
}

.date-chip-count.empty {
  color: var(--text-muted);
}

/* Filter Row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0D12;
}

/* Masters Grid (Container Query per modern-web-guidance) */
.masters-wrap {
  container: masters-wrap / inline-size;
}

.masters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@container masters-wrap (inline-size > 40rem) {
  .masters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.master-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  contain: layout style paint;
}

.master-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.master-ident {
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
}

.master-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: #101218;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}

.master-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.spec-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-soft);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.off-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-btn {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: var(--emerald-soft);
  color: #A7F3D0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.slot-btn:hover {
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.slot-btn.selected {
  background: var(--gold);
  border-color: var(--gold-light);
  color: #0B0D12;
}

/* Price List (Container Query) */
.services-wrap {
  container: services-wrap / inline-size;
}

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

@container services-wrap (inline-size > 40rem) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price-row {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.price-dur {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.price-val {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}

.loading-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
}

.showcase-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Sticky Selected Slot Bar (NO backdrop-filter blur -> 60fps mobile scroll) */
.sticky-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #111318;
  border-top: 1px solid var(--gold);
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.sticky-call-bar[hidden] {
  display: none;
}

.sticky-bar-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sticky-summary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.sticky-summary span {
  color: var(--gold-light);
}

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

.sticky-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #0B0D12;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
}

.sticky-clear-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Compact Single-Row PWA Install Bar (<12% viewport height) */
.pwa-install-bar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 55;
  max-width: 560px;
  margin: 0 auto;
  background: #151820;
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 7px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.pwa-install-bar[hidden] {
  display: none;
}

.pwa-install-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pwa-install-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.pwa-install-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.pwa-install-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pwa-install-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-install-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-light);
  background: var(--gold);
  color: #0B0D12;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-install-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* Native iOS Install Onboarding Modal */
.ios-install-dialog {
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  width: min(420px, calc(100vw - 24px));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}

.ios-install-dialog::backdrop {
  background: rgba(5, 6, 9, 0.78);
}

.ios-install-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.ios-install-head h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--gold-light);
}

.ios-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}

.ios-install-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
}

.ios-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #0B0D12;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
