:root {
  --bg: #05070d;
  --bg-card: rgba(9, 12, 22, 0.82);
  --bg-elevated: rgba(14, 18, 31, 0.94);
  --panel: rgba(8, 10, 18, 0.86);
  --panel-solid: #0a0d17;
  --text: #eef4ff;
  --text-sec: rgba(203, 218, 255, 0.74);
  --text-muted: rgba(115, 132, 173, 0.52);
  --border: rgba(70, 97, 180, 0.2);
  --accent: #3f63ff;
  --accent-cyan: #13e8ff;
  --accent-violet: #b93fff;
  --accent-soft: rgba(19, 232, 255, 0.14);
  --accent-strong: rgba(63, 99, 255, 0.26);
  --success: #72deff;
  --danger: #ff6d9f;
  --warning: #839dff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
html { background: var(--bg); }
body {
  font-family: 'Geologica', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#wave-bg,
#noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#wave-bg {
  z-index: 0;
  background:
    radial-gradient(circle at 2% 64%, rgba(197, 81, 255, 0.24) 0%, rgba(197, 81, 255, 0.16) 12%, rgba(197, 81, 255, 0) 32%),
    radial-gradient(circle at 86% 8%, rgba(56, 112, 255, 0.28) 0%, rgba(56, 112, 255, 0.18) 16%, rgba(56, 112, 255, 0) 38%),
    radial-gradient(circle at 78% 74%, rgba(34, 82, 224, 0.12) 0%, rgba(34, 82, 224, 0) 26%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.02) 0%, rgba(5, 7, 13, 0) 100%);
}

#wave-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0.96;
}

#noise-overlay {
  z-index: 1;
  opacity: 0.03;
  background-repeat: repeat;
  background-size: 180px;
  mix-blend-mode: soft-light;
}

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

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

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

.page.active { opacity: 1; pointer-events: auto; }
.page::-webkit-scrollbar { width: 0; }

.hero { padding: 18px 16px 10px; }

.hero-card {
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 12% 10%, rgba(185, 63, 255, 0.12), rgba(185, 63, 255, 0) 28%),
    radial-gradient(circle at 88% 88%, rgba(19, 232, 255, 0.1), rgba(19, 232, 255, 0) 26%),
    linear-gradient(180deg, rgba(11, 14, 26, 0.92), rgba(7, 9, 15, 0.78));
  border: 1px solid rgba(70, 97, 180, 0.26);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
  padding: 24px 18px 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-logo {
  width: min(210px, 68vw);
  height: auto;
  display: block;
}

.hero-subtitle {
  margin-top: 12px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.58;
  color: var(--text-sec);
}

.hero-btn {
  margin-top: 18px;
  min-width: 160px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(109, 141, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  color: #f6fbff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 18px 38px rgba(40, 82, 255, 0.26),
    0 0 0 1px rgba(19, 232, 255, 0.08) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.hero-btn:active {
  transform: translateY(1px);
  opacity: 0.94;
  box-shadow: 0 14px 28px rgba(40, 82, 255, 0.22);
}

.hero-btn svg { width: 16px; height: 16px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 12px;
}

.page-title,
.section-label,
.step-title,
.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.page-title { padding: 22px 20px 14px; }
.section-note { font-size: 12px; color: var(--text-muted); }

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

.service-card {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.service-card-visual {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(13, 12, 18, 0.92);
  border: 1px solid rgba(70, 97, 180, 0.2);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:active .service-card-visual {
  transform: scale(0.985);
  border-color: rgba(19, 232, 255, 0.28);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.service-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  background: #111;
}

.service-card-meta { padding: 10px 4px 0; }

.service-card-price {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff5fa;
}

.service-card-name {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-sec);
}

.service-card-kind {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-muted);
}

.certificate-visual {
  aspect-ratio: 1 / 1.18;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 18% 18%, rgba(185, 63, 255, 0.22) 0, rgba(185, 63, 255, 0) 36%),
    radial-gradient(circle at 82% 82%, rgba(19, 232, 255, 0.12) 0, rgba(19, 232, 255, 0) 28%),
    linear-gradient(180deg, rgba(7, 8, 14, 0.94), rgba(10, 13, 24, 0.94));
}

.certificate-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(206, 222, 255, 0.72);
}

.certificate-copy {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.02;
  color: #fff5fa;
  max-width: 86%;
}

.certificate-badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(241, 249, 255, 0.94);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.booking-step {
  padding: 0 20px;
  animation: fade-in 0.22s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title { margin: 22px 0 14px; }

.step-subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-sec);
  margin: -6px 0 18px;
}

.step-back {
  padding: 18px 0 0;
  border: none;
  background: none;
  color: var(--text-sec);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.pick-card,
.calendar,
.time-info,
.summary-card,
.profile-card,
.contacts-card,
.booking-card {
  background: var(--bg-card);
  border: 1px solid rgba(70, 97, 180, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pick-card {
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  display: flex;
  gap: 12px;
  align-items: center;
}

.pick-card:active,
.pick-card.selected {
  background: rgba(14, 18, 31, 0.96);
  border-color: rgba(19, 232, 255, 0.24);
  transform: translateY(1px);
}

.pick-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}

.pick-card-name { font-weight: 600; font-size: 14px; line-height: 1.32; }

.pick-card-desc {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-sec);
}

.pick-card-price {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(170, 241, 255, 0.94);
}

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

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

.cal-month {
  font-size: 15px;
  font-weight: 600;
  text-transform: lowercase;
}

.cal-nav {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

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

.cal-day {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.cal-day:hover:not(.disabled):not(.empty) { background: rgba(63, 99, 255, 0.08); }
.cal-day.today { border: 1px solid rgba(19, 232, 255, 0.36); }
.cal-day.selected { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%); color: #f5fbff; font-weight: 700; }
.cal-day.disabled { color: var(--text-muted); opacity: 0.24; cursor: default; }
.cal-day.empty { cursor: default; }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.slot {
  padding: 12px 0;
  border-radius: 14px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(12, 16, 28, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}

.slot.start,
.slot.end {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  color: #f5fbff;
  border-color: rgba(19, 232, 255, 0.42);
}

.slot.in-range {
  background: rgba(63, 99, 255, 0.14);
  border-color: rgba(63, 99, 255, 0.26);
}

.slot.taken {
  opacity: 0.18;
  cursor: default;
  text-decoration: line-through;
}

.slot.past { opacity: 0.1; cursor: default; }

.time-info {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.time-info-price { color: rgba(170, 241, 255, 0.96); }

.tiers-row,
.cert-amounts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tier-badge,
.cert-chip {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.cert-chip { cursor: pointer; }
.cert-chip:active { background: rgba(255, 255, 255, 0.08); }

.tier-hours { color: var(--text-muted); }
.tier-price { color: rgba(170, 241, 255, 0.96); }

.summary-card {
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
}

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

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

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(70, 97, 180, 0.18);
  font-size: 18px;
  font-weight: 700;
}

.form-label { margin-bottom: 6px; padding-left: 2px; }

.form-input {
  width: 100%;
  margin-bottom: 10px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(11, 15, 26, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: rgba(19, 232, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(19, 232, 255, 0.08);
}

.btn-primary,
.btn-secondary {
  width: 100%;
  border-radius: 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.btn-primary {
  padding: 15px;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  color: #f5fbff;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(43, 84, 255, 0.24);
}

.btn-primary:active { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.3; cursor: default; box-shadow: none; }

.btn-secondary {
  padding: 12px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.btn-ghost,
.btn-danger {
  border: none;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost { color: var(--text-sec); }
.btn-danger { color: var(--danger); padding: 6px 0; }

.booking-card {
  border-radius: var(--r-lg);
  padding: 15px;
  margin: 0 20px 10px;
}

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

.booking-id { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.booking-status {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.booking-status.pending { background: rgba(185, 63, 255, 0.14); color: #cf8fff; }
.booking-status.confirmed { background: rgba(19, 232, 255, 0.14); color: var(--success); }
.booking-status.in_progress { background: rgba(63, 99, 255, 0.14); color: #89a6ff; }
.booking-status.completed { background: rgba(70, 97, 180, 0.14); color: var(--text-sec); }
.booking-status.cancelled { background: rgba(255, 122, 155, 0.12); color: var(--danger); }

.booking-service { font-size: 15px; font-weight: 600; line-height: 1.35; }
.booking-meta { margin-top: 4px; font-size: 12px; color: var(--text-sec); }
.booking-meta span { margin-right: 10px; }
.booking-comment { margin-top: 6px; font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.booking-actions { margin-top: 10px; display: flex; gap: 12px; }

.profile-card {
  border-radius: var(--r-lg);
  padding: 20px;
  margin: 0 20px 10px;
}

.profile-name { font-size: 22px; font-weight: 600; line-height: 1.2; }
.profile-username { margin-top: 4px; font-size: 12px; color: var(--text-sec); }

.profile-stats {
  display: flex;
  gap: 28px;
  margin-top: 18px;
}

.profile-stat-value { font-size: 28px; font-weight: 700; line-height: 1; }
.profile-stat-label { margin-top: 4px; font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; }

.contacts-card {
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin: 0 20px 10px;
}

.contacts-card-copy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sec);
  margin-bottom: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-sec);
}

.contact-row a {
  color: #f5fbff;
  font-weight: 600;
  text-decoration: none;
}

.contact-icon {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.social-link {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sec);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(19, 232, 255, 0.24);
}

#dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(var(--dock) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(7, 10, 18, 0.9);
  border-top: 1px solid rgba(70, 97, 180, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.dock-item {
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
}

.dock-item.active { color: var(--accent); }

#chat-fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--dock) + var(--safe-bottom) + 14px);
  z-index: 99;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(70, 97, 180, 0.2);
  border-radius: 50%;
  background: rgba(10, 14, 24, 0.94);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(63, 99, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#chat-fab:active { background: rgba(14, 18, 31, 0.98); }

#chat-backdrop,
#service-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#chat-backdrop.active,
#service-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

#chat-panel,
#service-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.24s ease;
  background: rgba(9, 12, 22, 0.98);
  border-top: 1px solid rgba(70, 97, 180, 0.18);
  box-shadow: 0 -24px 56px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

#chat-panel.active,
#service-sheet.active { transform: translateY(0); }

#chat-panel {
  height: 72vh;
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
}

#service-sheet {
  max-height: 72vh;
  border-radius: 26px 26px 0 0;
  padding: 22px 20px calc(22px + var(--safe-bottom));
  overflow-y: auto;
}

.chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(70, 97, 180, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.chat-close {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
}

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

.chat-bubble.model {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.chat-bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: rgba(63, 99, 255, 0.18);
}

.chat-typing {
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  border-top: 1px solid rgba(70, 97, 180, 0.18);
}

.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.chat-send {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  color: #f5fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sheet-desc {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-sec);
}

.sheet-price {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(170, 241, 255, 0.96);
}

#confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.confirm-card {
  width: 90%;
  max-width: 320px;
  padding: 28px 22px;
  text-align: center;
  border-radius: 24px;
  background: rgba(9, 12, 22, 0.98);
  border: 1px solid rgba(70, 97, 180, 0.18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.confirm-icon { color: var(--success); margin-bottom: 12px; }
.confirm-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.confirm-card p { font-size: 12px; line-height: 1.6; color: var(--text-sec); margin-bottom: 18px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + var(--safe-bottom) + 18px);
  z-index: 400;
  transform: translateX(-50%) translateY(16px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(70, 97, 180, 0.18);
  background: rgba(10, 14, 24, 0.96);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.loading {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(70, 97, 180, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 42px 22px;
  color: var(--text-sec);
}

.empty-state p {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
}

@media (max-width: 380px) {
  .hero-card { padding: 22px 16px 16px; }
  .hero-logo { width: min(186px, 66vw); }
  .services-grid { gap: 14px 10px; }
  .service-card-price { font-size: 13px; }
  .service-card-name { font-size: 12px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}
