:root {
  --bg: #18111f;
  --bg-elevated: rgba(31, 21, 43, 0.9);
  --bg-card: rgba(24, 17, 31, 0.84);
  --bg-card-strong: #21172d;
  --bg-chip: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.74);
  --text-muted: rgba(255, 255, 255, 0.48);
  --border: rgba(255, 255, 255, 0.09);
  --accent: #c44cf7;
  --accent-soft: rgba(196, 76, 247, 0.18);
  --accent-strong: #de90ff;
  --success: #83e6b5;
  --warning: #ffce74;
  --danger: #ff7e9f;
  --shadow: 0 24px 60px rgba(6, 4, 10, 0.45);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --page-width: 620px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(85, 145, 255, 0.14), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(196, 76, 247, 0.18), transparent 28%),
    radial-gradient(circle at 72% 76%, rgba(55, 75, 190, 0.12), transparent 26%),
    #18111f;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.22;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cpath d='M0 468C80 468 80 272 160 272S240 660 320 660s80-298 160-298 80 240 160 240 80-322 160-322 80 356 160 356 80-210 160-210 80 132 160 132' fill='none' stroke='%23c44cf7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center/cover no-repeat;
  filter: blur(0.2px);
}

body::after {
  background:
    radial-gradient(circle at 14% 28%, rgba(196, 76, 247, 0.78) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 74% 18%, rgba(196, 76, 247, 0.6) 0 1px, transparent 1.4px),
    radial-gradient(circle at 84% 64%, rgba(196, 76, 247, 0.55) 0 1.1px, transparent 1.5px),
    radial-gradient(circle at 30% 76%, rgba(196, 76, 247, 0.45) 0 1px, transparent 1.3px);
  opacity: 0.22;
}

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

#pages {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  padding: 0 0 calc(118px + var(--safe-bottom));
  transition: opacity 0.2s ease;
  scrollbar-width: none;
}

.page::-webkit-scrollbar,
.hot-deals-row::-webkit-scrollbar,
.history-chip-row::-webkit-scrollbar,
.booking-shell::-webkit-scrollbar,
.assistant-feed::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

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

.hero,
.stack-card,
.assistant-panel,
.dialog-card,
.booking-panel,
.service-card,
.hot-deal-card,
.contact-card,
.contact-action,
.history-card,
.booking-summary,
.calendar,
.time-grid-wrap,
.profile-form,
.profile-summary,
.assistant-service-card,
.empty-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(196, 76, 247, 0.1), rgba(196, 76, 247, 0)),
    rgba(24, 17, 31, 0.88);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -12% 12px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(196, 76, 247, 0.24), transparent 68%);
  filter: blur(6px);
}

.hero-badge,
.section-title,
.page-title,
.booking-title,
.service-card-name,
.history-card-title,
.profile-name,
.contact-title,
.assistant-service-title,
.dialog-title {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(34px, 8.6vw, 56px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-copy {
  display: grid;
  gap: 12px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  flex: 1;
}

.hero-visual {
  position: relative;
}

.hero-logo-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  min-height: 200px;
  background:
    linear-gradient(160deg, rgba(196, 76, 247, 0.22), rgba(85, 145, 255, 0.14)),
    rgba(24, 17, 31, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo-frame::before {
  content: '';
  position: absolute;
  inset: auto -12% -10% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(196, 76, 247, 0.28), transparent 70%);
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.content-section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 2px 10px;
}

.section-title,
.page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.section-note,
.page-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-header {
  padding: 6px 2px 12px;
}

.hot-deals-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hot-deal-card {
  min-width: 250px;
  border-radius: var(--radius-md);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(196, 76, 247, 0.18), rgba(196, 76, 247, 0.06)),
    rgba(33, 23, 45, 0.9);
}

.hot-deal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hot-deal-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hot-deal-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(196, 76, 247, 0.18);
  color: #f7e3ff;
  font-weight: 700;
  font-size: 13px;
}

.hot-deal-title {
  margin: 14px 0 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  line-height: 0.96;
  text-transform: uppercase;
}

.hot-deal-meta,
.hot-deal-price,
.service-card-price,
.service-card-meta,
.history-card-meta,
.history-card-copy,
.profile-note,
.contact-note,
.assistant-bubble,
.booking-copy,
.summary-value,
.summary-label,
.field-help,
.helper-note,
.time-helper {
  color: var(--text-soft);
}

.hot-deal-meta {
  margin-top: 12px;
  font-size: 13px;
}

.hot-deal-price {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hot-deal-card .btn-primary {
  margin-top: 14px;
}

#services-grid {
  display: grid;
  gap: 18px;
}

.catalog-section {
  display: grid;
  gap: 12px;
}

.catalog-section-title {
  margin: 0 2px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

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

.service-card {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.service-card.lead {
  grid-column: 1 / -1;
}

.service-card-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-card.lead .service-card-visual {
  aspect-ratio: 1.12 / 1;
}

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

.service-card-copy {
  padding: 12px 12px 13px;
  display: grid;
  gap: 6px;
}

.service-card-name {
  margin: 0;
  font-size: 18px;
  line-height: 0.94;
}

.service-card.lead .service-card-name {
  font-size: 24px;
}

.service-card-price {
  font-size: 14px;
  font-weight: 700;
}

.service-card-meta {
  font-size: 11px;
  line-height: 1.45;
}

.assistant-panel {
  border-radius: var(--radius-lg);
  min-height: calc(100dvh - 214px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.assistant-entry {
  display: flex;
}

.assistant-entry.user {
  justify-content: flex-end;
}

.assistant-entry.model {
  justify-content: flex-start;
}

.assistant-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.assistant-entry.model .assistant-bubble {
  background: rgba(255, 255, 255, 0.04);
}

.assistant-entry.user .assistant-bubble {
  background: rgba(196, 76, 247, 0.16);
  color: #f7e9ff;
}

.assistant-service-card {
  width: min(100%, 290px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.assistant-service-card img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  display: block;
}

.assistant-service-copy {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.assistant-service-title {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.assistant-composer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(21, 14, 28, 0.96);
}

.assistant-composer input,
.field-input,
.field-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
}

.assistant-composer input,
.field-input {
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
}

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

.assistant-composer input:focus,
.field-input:focus,
.field-textarea:focus {
  border-color: rgba(196, 76, 247, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 76, 247, 0.12);
}

.assistant-send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

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

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

.profile-summary,
.profile-form,
.contact-card,
.history-card,
.empty-card {
  border-radius: var(--radius-md);
  padding: 16px;
}

.profile-name {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.profile-handle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.profile-project {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.profile-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.field-block {
  display: grid;
  gap: 6px;
}

.field-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.field-help {
  font-size: 12px;
  line-height: 1.45;
}

.field-textarea {
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.5;
}

.request-form {
  margin-top: 16px;
}

.request-textarea {
  min-height: 220px;
}

.profile-actions,
.dialog-actions,
.booking-actions,
.booking-footer-actions,
.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.history-controls {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.history-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-chip);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  background: var(--accent-soft);
  border-color: rgba(196, 76, 247, 0.34);
  color: #f8eaff;
}

.history-section-label {
  margin: 6px 2px 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  width: 100%;
  cursor: pointer;
}

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

.history-card-title {
  margin: 0;
  font-size: 22px;
  line-height: 0.96;
}

.history-card-status {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.history-card-status.pending {
  background: rgba(255, 206, 116, 0.14);
  color: var(--warning);
}

.history-card-status.confirmed {
  background: rgba(131, 230, 181, 0.14);
  color: var(--success);
}

.history-card-status.in_progress {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.history-card-status.completed {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.history-card-status.cancelled {
  background: rgba(255, 126, 159, 0.14);
  color: var(--danger);
}

.history-card-meta {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.history-card-copy {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.history-card-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.detail-row strong {
  color: var(--text);
  text-align: right;
}

.contact-card {
  display: grid;
  gap: 14px;
}

.contact-title {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.contact-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.contact-info {
  display: grid;
  gap: 8px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-info-row span:first-child {
  color: var(--text-muted);
}

.contact-info-row strong {
  max-width: 70%;
  text-align: right;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-action {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

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

.dock-shell {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(15, 10, 21, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(4, 2, 8, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dock-item {
  flex: 1;
  min-width: 0;
  min-height: 64px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.dock-item svg {
  width: 20px;
  height: 20px;
}

.dock-item.active {
  background: rgba(196, 76, 247, 0.12);
  color: #ffffff;
}

#booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(12, 8, 17, 0.96);
  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 {
  height: 100dvh;
  overflow-y: auto;
}

.booking-panel {
  width: min(100%, var(--page-width));
  min-height: calc(100dvh - 32px);
  margin: 16px auto;
  border-radius: 30px;
  padding: 18px 18px calc(22px + var(--safe-bottom));
}

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

.booking-back {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.booking-kicker {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.booking-title {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 0.92;
}

.booking-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.booking-summary {
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
}

.booking-summary.covered img {
  width: 100%;
  display: block;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.booking-summary-copy {
  padding: 14px;
  display: grid;
  gap: 10px;
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.summary-value {
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.summary-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.calendar,
.time-grid-wrap {
  margin-top: 16px;
  border-radius: 20px;
  padding: 14px;
}

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

.calendar-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.calendar-month {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.calendar-weekdays {
  margin-bottom: 8px;
}

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

.calendar-day {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 1px rgba(196, 76, 247, 0.55);
}

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

.calendar-day.disabled,
.calendar-day.empty {
  opacity: 0.22;
  cursor: default;
}

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

.time-slot {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.time-slot.start,
.time-slot.end {
  background: var(--accent);
}

.time-slot.in-range {
  background: rgba(196, 76, 247, 0.18);
}

.time-slot.taken,
.time-slot.past,
.time-slot.range-blocked,
.time-slot:disabled {
  opacity: 0.28;
  cursor: default;
}

.time-helper {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.time-helper strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.booking-actions,
.booking-footer-actions {
  margin-top: 16px;
}

.booking-actions .btn-primary,
.booking-actions .btn-secondary,
.booking-footer-actions .btn-primary,
.booking-footer-actions .btn-secondary {
  flex: 1;
}

.terms-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.terms-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.terms-row input {
  margin-top: 3px;
}

.booking-success {
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.booking-success-icon {
  font-size: 42px;
  color: var(--accent-strong);
}

.booking-success h2 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 34px;
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-success p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}

.loading,
.empty-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading {
  padding: 44px 0;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

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

.empty-card {
  min-height: 160px;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  flex-direction: column;
  gap: 14px;
}

#dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(5, 3, 8, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

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

.dialog-title {
  font-size: 24px;
  line-height: 1;
}

.dialog-text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.dialog-actions {
  margin-top: 16px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + var(--safe-bottom));
  transform: translate(-50%, 16px);
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 7, 15, 0.96);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(4, 2, 8, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 240;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.btn-danger,
.chip,
.service-card,
.dock-item,
.assistant-send,
.booking-back,
.calendar-head button,
.contact-action,
.time-slot,
.calendar-day {
  -webkit-tap-highlight-color: transparent;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-danger {
  border: 1px solid rgba(255, 126, 159, 0.18);
  background: rgba(255, 126, 159, 0.08);
  color: var(--danger);
}

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

@media (max-width: 420px) {
  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    padding: 18px;
  }

  .hero-title {
    font-size: 34px;
  }

  .catalog-grid {
    gap: 10px;
  }

  .service-card-name {
    font-size: 16px;
  }
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    align-items: center;
  }

  .hero-actions {
    max-width: 360px;
  }
}
