:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: rgba(44, 74, 120, 0.04);
  --border: rgba(44, 74, 120, 0.12);
  --border-strong: rgba(44, 74, 120, 0.18);
  --text: #5f6875;
  --heading: #24354f;
  --muted: #9ea4ad;
  --accent: #2c4a78;
  --accent-soft: rgba(44, 74, 120, 0.1);
  --danger: #b14c57;
  --warning: #c9893c;
  --success: #4f7e68;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(44, 74, 120, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --dock-height: 78px;
  --shell-max: 560px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Commissioner', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(44, 74, 120, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(44, 74, 120, 0.05), transparent 28%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(44, 74, 120, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 74, 120, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.3;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 92%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(44, 74, 120, 0.18) 50%, transparent 100%) 0 22% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(44, 74, 120, 0.14) 50%, transparent 100%) 0 68% / 100% 1px no-repeat;
  opacity: 0.45;
  animation: pagePulse 13s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pagePulse {
  0%,
  100% {
    transform: translateY(-8px);
    opacity: 0.24;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.52;
  }
}

#app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
}

#pages {
  position: relative;
  height: 100%;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 28px);
}

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

.page::-webkit-scrollbar,
.assistant-messages::-webkit-scrollbar,
.booking-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-shell {
  width: min(var(--shell-max), 100%);
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) 16px 0;
}

.page-header {
  margin-bottom: 16px;
}

.page-title,
.section-title,
.step-title,
.hero-title,
.dialog-card h2 {
  font-family: 'Jura', sans-serif;
  color: var(--heading);
  letter-spacing: 0.06em;
}

.page-title {
  font-size: 27px;
  line-height: 1.02;
  text-transform: uppercase;
}

.page-copy {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.section {
  margin-top: 18px;
}

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

.section-title {
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.hero-panel,
.surface-card,
.assistant-shell,
.dialog-card,
.summary-card,
.calendar,
.contact-card,
.profile-card,
.history-card,
.plan-group-card,
.user-pass-card,
.card-list-item {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.92));
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(44, 74, 120, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 74, 120, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 82%);
  opacity: 0.48;
  pointer-events: none;
}

.hero-panel::after {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  top: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 74, 120, 0.18), transparent);
  animation: heroLine 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroLine {
  0%,
  100% {
    transform: translateY(-16px) scaleX(0.94);
    opacity: 0.18;
  }
  50% {
    transform: translateY(18px) scaleX(1.02);
    opacity: 0.46;
  }
}

.hero-brand,
.hero-copy,
.hero-actions,
.hero-meta {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: min(100%, 260px);
  height: auto;
}

.hero-copy {
  margin-top: 20px;
  text-align: center;
}

.hero-title {
  font-size: clamp(28px, 7vw, 36px);
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-text {
  max-width: 360px;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

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

.hero-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.meta-pill,
.pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.meta-pill {
  background: rgba(44, 74, 120, 0.06);
  color: var(--accent);
  border: 1px solid rgba(44, 74, 120, 0.12);
}

.meta-pill span {
  color: var(--muted);
  margin-left: 6px;
}

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

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

.service-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 28px rgba(44, 74, 120, 0.08);
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.service-card.unavailable {
  opacity: 0.6;
  cursor: default;
}

.service-thumb {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: rgba(44, 74, 120, 0.08);
}

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

.service-pass-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
}

.service-body {
  padding: 12px 12px 13px;
}

.service-name {
  font-family: 'Jura', sans-serif;
  font-size: 17px;
  line-height: 1.05;
  color: var(--heading);
  text-transform: uppercase;
}

.service-price-main {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.service-price-sub {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.service-lock {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.assistant-send,
.dock-item,
.service-card,
.mode-card,
.slot-button,
.time-button,
.pass-option,
.history-card,
.contact-action,
.assistant-card {
  border: none;
  font: inherit;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(44, 74, 120, 0.2);
}

.btn-secondary {
  background: rgba(44, 74, 120, 0.08);
  color: var(--accent);
  border: 1px solid rgba(44, 74, 120, 0.12);
}

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

.btn-danger {
  background: rgba(177, 76, 87, 0.12);
  color: var(--danger);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled,
.assistant-send:disabled {
  opacity: 0.38;
  cursor: default;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row > * {
  flex: 1;
}

.surface-card,
.contact-card,
.profile-card,
.assistant-shell,
.history-card,
.plan-group-card,
.user-pass-card,
.card-list-item {
  border-radius: var(--radius-lg);
}

.surface-card,
.contact-card,
.profile-card,
.plan-group-card,
.user-pass-card,
.card-list-item {
  padding: 16px;
}

.assistant-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 210px);
  overflow: hidden;
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-group.user {
  align-items: flex-end;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble.model {
  border-top-left-radius: 6px;
  background: rgba(44, 74, 120, 0.07);
  color: var(--text);
}

.chat-bubble.user {
  border-top-right-radius: 6px;
  background: var(--accent);
  color: #fff;
}

.assistant-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(44, 74, 120, 0.08);
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.assistant-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.assistant-card-body {
  padding: 12px;
}

.assistant-card-title {
  font-family: 'Jura', sans-serif;
  font-size: 16px;
  color: var(--heading);
  text-transform: uppercase;
}

.assistant-card-price {
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.assistant-composer {
  display: flex;
  gap: 8px;
  padding: 14px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.assistant-input,
.field-input,
.search-input {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  padding: 0 14px;
  color: var(--heading);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

textarea.field-input {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.assistant-input:focus,
.field-input:focus,
.search-input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(44, 74, 120, 0.08);
}

.assistant-send {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.assistant-send svg,
.dock-item svg {
  width: 18px;
  height: 18px;
}

.user-pass-list,
.history-list,
.contact-stack,
.section-stack {
  display: grid;
  gap: 12px;
}

.user-pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-pass-name {
  font-family: 'Jura', sans-serif;
  font-size: 18px;
  color: var(--heading);
  line-height: 1.05;
  text-transform: uppercase;
}

.user-pass-meta,
.plan-row-meta,
.history-meta,
.contact-row p,
.detail-note,
.inline-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.pass-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(44, 74, 120, 0.08);
  overflow: hidden;
  margin-top: 12px;
}

.pass-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(44, 74, 120, 0.5), var(--accent));
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill {
  background: rgba(44, 74, 120, 0.07);
  border: 1px solid rgba(44, 74, 120, 0.12);
  color: var(--accent);
}

.status-chip.pending {
  background: rgba(201, 137, 60, 0.12);
  color: var(--warning);
}

.status-chip.confirmed {
  background: rgba(79, 126, 104, 0.12);
  color: var(--success);
}

.status-chip.in_progress {
  background: rgba(44, 74, 120, 0.12);
  color: var(--accent);
}

.status-chip.completed {
  background: rgba(44, 74, 120, 0.08);
  color: var(--text);
}

.status-chip.cancelled,
.status-chip.expired {
  background: rgba(177, 76, 87, 0.12);
  color: var(--danger);
}

.status-chip.exhausted {
  background: rgba(44, 74, 120, 0.1);
  color: var(--accent);
}

.plan-groups {
  display: grid;
  gap: 12px;
}

.plan-group-card {
  display: grid;
  gap: 12px;
}

.plan-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-group-name {
  font-family: 'Jura', sans-serif;
  font-size: 18px;
  color: var(--heading);
  text-transform: uppercase;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(44, 74, 120, 0.08);
}

.plan-row:first-of-type {
  padding-top: 0;
  border-top: none;
}

.plan-row-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.plan-row-side {
  text-align: right;
}

.plan-row-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.history-card {
  padding: 15px 16px;
  cursor: pointer;
}

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

.history-name {
  font-family: 'Jura', sans-serif;
  font-size: 17px;
  color: var(--heading);
  text-transform: uppercase;
}

.history-main {
  display: grid;
  gap: 8px;
}

.history-detail {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(44, 74, 120, 0.08);
}

.detail-row,
.summary-row,
.contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-row strong,
.summary-row strong,
.contact-row strong {
  color: var(--heading);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.detail-row span,
.summary-row span,
.contact-row span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.history-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.profile-card + .profile-card,
.contact-card + .contact-card {
  margin-top: 12px;
}

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

.identity-name {
  font-family: 'Jura', sans-serif;
  font-size: 18px;
  color: var(--heading);
  text-transform: uppercase;
}

.identity-handle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.field-stack {
  display: grid;
  gap: 12px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-family: 'Jura', sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card h3,
.summary-card h3 {
  font-family: 'Jura', sans-serif;
  color: var(--heading);
  font-size: 18px;
  text-transform: uppercase;
}

.contact-row + .contact-row {
  margin-top: 12px;
}

.contact-row p {
  max-width: 220px;
  text-align: right;
}

.action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.contact-action {
  min-height: 46px;
  border-radius: 16px;
  background: rgba(44, 74, 120, 0.08);
  color: var(--accent);
  border: 1px solid rgba(44, 74, 120, 0.1);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.contact-action.full {
  grid-column: 1 / -1;
}

.empty-state,
.loading-state {
  padding: 24px 16px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
}

.empty-state p,
.loading-state p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.loading-state {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(44, 74, 120, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.65s linear infinite;
}

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

#dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0 12px calc(var(--safe-bottom) + 10px);
}

.dock-inner {
  width: min(var(--shell-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
  padding: 6px;
  border-radius: 28px;
  border: 1px solid rgba(44, 74, 120, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 46px rgba(44, 74, 120, 0.12);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 0 2px;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dock-item span {
  max-width: 100%;
  font-size: 8px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dock-item.active {
  background: rgba(44, 74, 120, 0.08);
  color: var(--accent);
}

.button-row-compact {
  justify-content: center;
}

.button-row-compact > * {
  flex: 0 0 auto;
  min-width: 0;
}

#booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

#booking-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.booking-shell {
  width: min(var(--shell-max), 100%);
  height: 100%;
  margin: 0 auto;
  overflow-y: auto;
  padding: calc(12px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
}

.booking-step-shell {
  min-height: calc(100dvh - var(--safe-top));
  display: flex;
  flex-direction: column;
}

.booking-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.booking-topbar-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(44, 74, 120, 0.08);
  color: var(--accent);
  cursor: pointer;
}

.booking-step {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
}

.step-title {
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 8px;
}

.step-subtitle {
  margin-top: -2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.summary-card {
  border-radius: var(--radius-lg);
  padding: 16px;
}

.summary-card-media {
  width: calc(100% + 32px);
  height: 194px;
  margin: -16px -16px 16px;
  object-fit: cover;
  display: block;
}

.summary-title {
  font-family: 'Jura', sans-serif;
  font-size: 24px;
  color: var(--heading);
  text-transform: uppercase;
  line-height: 0.96;
}

.summary-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.summary-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(44, 74, 120, 0.08);
}

.summary-total span {
  font-size: 13px;
  color: var(--muted);
}

.summary-total strong {
  font-size: 18px;
  color: var(--accent);
}

.mode-grid {
  display: grid;
  gap: 10px;
}

.mode-card,
.pass-option {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44, 74, 120, 0.06);
}

.mode-card.active,
.pass-option.active {
  border-color: rgba(44, 74, 120, 0.24);
  background: rgba(44, 74, 120, 0.08);
}

.mode-card-title,
.pass-option-title {
  font-family: 'Jura', sans-serif;
  font-size: 18px;
  color: var(--heading);
  text-transform: uppercase;
}

.mode-card-price,
.pass-option-price {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.mode-note {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.calendar {
  padding: 16px;
  border-radius: var(--radius-lg);
}

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

.cal-month {
  font-family: 'Jura', sans-serif;
  font-size: 18px;
  color: var(--heading);
  text-transform: uppercase;
}

.cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(44, 74, 120, 0.08);
  color: var(--accent);
  cursor: pointer;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.cal-week span {
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-day {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}

.cal-day.empty {
  pointer-events: none;
}

.cal-day.disabled {
  opacity: 0.28;
  cursor: default;
}

.cal-day.today {
  border: 1px solid rgba(44, 74, 120, 0.18);
}

.cal-day.active {
  background: var(--accent);
  color: #fff;
}

.slot-grid,
.time-grid {
  display: grid;
  gap: 8px;
}

.time-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot-button,
.time-button {
  min-height: 52px;
  padding: 0 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--heading);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(44, 74, 120, 0.06);
}

.slot-button.active,
.time-button.active,
.time-button.in-range {
  background: rgba(44, 74, 120, 0.1);
  border-color: rgba(44, 74, 120, 0.24);
  color: var(--accent);
}

.slot-button.selected,
.time-button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.slot-button:disabled,
.time-button:disabled {
  opacity: 0.34;
  cursor: default;
}

.time-summary {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(44, 74, 120, 0.05);
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.checkbox-row input {
  margin-top: 2px;
}

.checkbox-row p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}

.success-card {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: calc(100dvh - 150px - var(--safe-top));
}

.success-card .summary-card {
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  background: rgba(79, 126, 104, 0.12);
  color: var(--success);
}

#dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(18, 28, 44, 0.42);
  transition: opacity 0.18s ease;
}

#dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dialog-card {
  width: min(360px, 100%);
  border-radius: 24px;
  padding: 20px 18px;
}

.dialog-card h2 {
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.dialog-card p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.dialog-actions > * {
  flex: 1;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-height) + var(--safe-bottom) + 22px);
  transform: translateX(-50%) translateY(18px);
  min-width: 120px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 270;
}

#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 640px) {
  .page-shell,
  .booking-shell,
  .dock-inner {
    width: min(620px, 100%);
  }

  .hero-actions {
    justify-content: center;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .time-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
