:root {
  --bg: #050505;
  --bg-card: #0d0d0d;
  --bg-elevated: #121212;
  --bg-soft: #171717;
  --panel: rgba(10, 10, 10, 0.92);
  --text: #f4f4f1;
  --text-sec: #b0b0aa;
  --text-muted: #71716b;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #7caf63;
  --accent-strong: #93c978;
  --accent-soft: rgba(124, 175, 99, 0.16);
  --danger: #d46d57;
  --warning: #d3b15f;
  --success: #93c978;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock: 82px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(180deg, #080808 0%, #040404 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#bg-geometry {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.96;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.034;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.9) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.8) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.6) 0 1px, transparent 1px);
  background-size: 160px 160px;
}

#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) + 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

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

.hero,
.booking-step,
#history-content,
#profile-content {
  padding: 0 14px;
}

.hero { padding-top: 14px; }
.booking-step { padding-top: 14px; }

.brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  padding: 2px 0 0;
}

.hero-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  opacity: 0.95;
}

.hero-shell,
.studio-panel,
.pick-card,
.calendar,
.time-info,
.summary-card,
.profile-card,
.contacts-card,
.booking-card,
#service-sheet-content,
.chat-header,
#chat-messages,
.chat-input-row,
.confirm-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.94), rgba(10, 10, 10, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-shell {
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
}

.hero-title {
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

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

.hero-btn,
.btn-primary,
.btn-ghost,
.btn-danger,
.chat-send,
.cert-chip,
.slot,
.cal-day,
.cal-nav {
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease, background .15s ease;
}

.hero-btn,
.btn-primary {
  color: var(--text);
  background: #161616;
  border: 1px solid rgba(124, 175, 99, 0.34);
}

.hero-btn:hover,
.btn-primary:hover {
  background: #1a1a1a;
  border-color: rgba(124, 175, 99, 0.5);
}

.hero-btn-ghost,
.btn-ghost {
  color: var(--text-sec);
  background: #101010;
  border: 1px solid var(--border);
}

.hero-btn,
.btn-primary,
.btn-ghost,
.btn-danger {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.btn-danger {
  color: #ebb2a5;
  background: rgba(212, 109, 87, 0.08);
  border: 1px solid rgba(212, 109, 87, 0.18);
}

.hero-btn:active,
.btn-primary:active,
.btn-ghost:active,
.btn-danger:active,
.cert-chip:active { transform: translateY(1px); opacity: .95; }

.studio-panel { margin-top: 12px; padding: 14px; border-radius: var(--r-lg); }
.studio-panel { margin-bottom: 24px; }

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

.studio-panel .section-head { padding: 0 0 12px; }

.section-label,
.step-title,
.booking-kicker,
.chat-kicker {
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
}

.section-title,
.page-title {
  font-size: 21px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.service-card {
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b0b0b;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease;
}

.service-card:active { transform: scale(.992); opacity: .96; }

.service-card-media {
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.service-card-body {
  display: grid;
  gap: 10px;
  padding: 14px 14px 16px;
}

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

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-chip,
.service-area,
.booking-meta span,
.social-link,
.badge-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-chip {
  background: rgba(12, 12, 12, 0.78);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.service-area {
  background: rgba(124, 175, 99, 0.12);
  border: 1px solid rgba(124, 175, 99, 0.18);
  color: var(--accent-strong);
}

.service-card-name {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  line-height: 0.96;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.service-card-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.52;
  color: var(--text-sec);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.service-card-price,
.pick-card-price,
.time-info-price,
.summary-total,
.profile-stat-value,
.profile-username,
.popular-count {
  color: var(--accent-strong);
}

.service-card-price,
.pick-card-price {
  font-size: 14px;
  font-weight: 800;
}

.service-card-link {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 175, 99, 0.25);
  background: rgba(124, 175, 99, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.booking-step {
  animation: fadeIn .18s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: calc(var(--dock) + var(--safe-bottom) + 28px);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.booking-head {
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}

.booking-back {
  width: fit-content;
  border: none;
  background: none;
  color: var(--text-sec);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.92;
}

.booking-back-arrow {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.booking-head-copy {
  display: grid;
  gap: 6px;
}

.booking-head-title {
  font-size: 21px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.booking-head-meta {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-sec);
}

.step-subtitle {
  margin: 8px 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-sec);
}

.pick-card,
.calendar,
.time-info,
.summary-card,
.profile-card,
.contacts-card,
.booking-card {
  border-radius: 20px;
}

.pick-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.pick-card.selected { border-color: rgba(124, 175, 99, 0.28); }

.pick-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.pick-card-name {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.pick-card-desc {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sec);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick-card-price {
  margin-top: 8px;
}

.calendar { padding: 16px; }

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

.cal-month {
  font-size: 15px;
  font-weight: 800;
  text-transform: capitalize;
}

.cal-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #121212;
  color: var(--text);
  font-size: 20px;
}

.cal-weekdays,
.cal-days,
.slots-grid {
  display: grid;
}

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

.cal-weekdays {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-align: center;
}

.cal-day {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #141414;
  color: var(--text);
  font-size: 14px;
}

.cal-day.today { border-color: rgba(124, 175, 99, 0.2); }
.cal-day.selected {
  background: rgba(124, 175, 99, 0.16);
  border-color: rgba(124, 175, 99, 0.28);
  color: var(--accent-strong);
  font-weight: 800;
}
.cal-day.disabled { opacity: .3; }
.cal-day.empty { visibility: hidden; }

.slots-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.slot {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #141414;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.slot.start,
.slot.end,
.slot.in-range {
  border-color: rgba(124, 175, 99, 0.26);
  background: rgba(124, 175, 99, 0.12);
}

.slot.taken,
.slot.past {
  color: var(--text-muted);
  background: #101010;
}

.time-info,
.summary-card,
.profile-card,
.contacts-card,
.booking-card {
  padding: 16px;
  margin-top: 12px;
}

.summary-card {
  margin-top: 4px;
}

#time-next-btn,
#submit-booking-btn {
  margin-top: 12px;
  margin-bottom: 0;
}

.time-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.time-info-price {
  font-size: 15px;
  font-weight: 800;
}

.tiers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #121212;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-sec);
}

.tier-hours,
.tier-price { font-weight: 800; }
.tier-price { color: var(--accent-strong); }

.summary-row,
.summary-total,
.contact-row,
.booking-card-header,
.booking-meta,
.profile-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.summary-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-label { color: var(--text-sec); font-size: 13px; }
.summary-value { text-align: right; font-size: 14px; font-weight: 700; }
.summary-total { margin-top: 14px; font-size: 17px; font-weight: 800; }

.form-label {
  margin: 4px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #131313;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.form-input:focus { border-color: rgba(124, 175, 99, 0.28); }

.btn-primary:disabled {
  opacity: .45;
  cursor: default;
}

.loading,
.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-sec);
  padding: 24px 14px;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(147, 201, 120, 0.14);
  border-top-color: var(--accent-strong);
  border-right-color: rgba(147, 201, 120, 0.34);
  animation: spin .8s linear infinite;
  box-shadow: 0 0 0 1px rgba(147, 201, 120, 0.04);
}

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

.booking-card { margin: 0 14px 12px; }
.booking-card-header { margin-bottom: 10px; }

.booking-id,
.booking-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.booking-id { color: var(--text-muted); }
.booking-status.pending { color: var(--warning); }
.booking-status.confirmed { color: var(--accent-strong); }
.booking-status.in_progress { color: #a7d58d; }
.booking-status.completed { color: var(--text-sec); }
.booking-status.cancelled { color: #e5ac9e; }

.booking-service {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-meta {
  margin-top: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-sec);
}

.booking-meta span {
  background: #131313;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-sec);
  letter-spacing: .04em;
}

.booking-comment {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-sec);
}

.booking-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.booking-actions .btn-ghost,
.booking-actions .btn-danger { margin-top: 0; }

.profile-card { margin: 0 14px 12px; }
.profile-name { font-size: 24px; line-height: 1.04; font-weight: 800; }
.profile-username { margin-top: 8px; font-size: 14px; }

.profile-stats {
  margin-top: 18px;
  gap: 10px;
}

.profile-stats > div {
  flex: 1;
  min-height: 88px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #131313;
}

.profile-stat-value { font-size: 24px; font-weight: 800; }
.profile-stat-label {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contacts-card { margin: 0 14px; }
.contact-row {
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}

.contact-row:last-of-type { border-bottom: none; }
.contact-row a { color: inherit; text-decoration: none; }

.contact-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 175, 99, 0.12);
  color: var(--accent-strong);
}

.socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.social-link {
  min-height: 36px;
  border: 1px solid var(--border);
  background: #121212;
  color: var(--text);
  text-decoration: none;
}

#dock {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

.dock-item {
  min-height: 58px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.dock-item.active {
  color: var(--text);
  background: rgba(124, 175, 99, 0.14);
}

#chat-backdrop,
#service-sheet-backdrop,
#confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  background: rgba(0,0,0,0.58);
}

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

#chat-panel,
#service-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  transform: translateY(100%);
  transition: transform .22s ease;
}

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

#chat-panel { padding: 14px 14px calc(14px + var(--safe-bottom)); }
#service-sheet { padding: 0 14px calc(14px + var(--safe-bottom)); }

#service-sheet-content {
  border-radius: 24px 24px 18px 18px;
  padding: 18px 18px 16px;
  max-height: 84vh;
  overflow-y: auto;
}

#service-sheet-content::-webkit-scrollbar,
#chat-messages::-webkit-scrollbar { width: 0; }

.sheet-title {
  font-size: 26px;
  line-height: .96;
  font-weight: 800;
  text-transform: uppercase;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.sheet-desc {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-sec);
}

.sheet-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #131313;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.55;
}

.sheet-price {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-strong);
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-auto-rows: 126px;
  gap: 10px;
  margin: 16px 0 6px;
}

.gallery-shot {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.06);
}

.gallery-shot.wide {
  grid-row: span 2;
}

#service-sheet-content .btn-primary,
#service-sheet-content .btn-ghost {
  margin-top: 14px;
}

#service-sheet-content .btn-ghost {
  margin-top: 10px;
}

.cert-amounts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cert-chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #121212;
  font-size: 13px;
  font-weight: 800;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 16px 16px 12px;
}

.chat-header span { font-size: 18px; font-weight: 800; }

.chat-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 22px;
}

#chat-messages {
  max-height: 48vh;
  overflow-y: auto;
  padding: 12px 16px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.chat-bubble,
.chat-typing {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-bubble.model,
.chat-typing {
  background: #131313;
  color: var(--text);
}

.chat-bubble.user {
  margin-left: auto;
  color: var(--text);
  background: rgba(124, 175, 99, 0.14);
  border: 1px solid rgba(124, 175, 99, 0.2);
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 8px;
  padding: 10px 16px 16px;
  border-top: none;
  border-radius: 0 0 22px 22px;
}

#chat-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #131313;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.chat-send {
  border: 1px solid rgba(124, 175, 99, 0.24);
  border-radius: 16px;
  color: var(--accent-strong);
  background: #121212;
}

#confirm-overlay {
  display: grid;
  place-items: center;
  padding: 16px;
}

.confirm-card {
  width: 100%;
  max-width: 360px;
  padding: 24px 20px 20px;
  border-radius: 24px;
  text-align: center;
}

.confirm-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 175, 99, 0.12);
  color: var(--accent-strong);
}

#confirm-title {
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

#confirm-details {
  margin-top: 12px;
  color: var(--text-sec);
  font-size: 14px;
  line-height: 1.6;
}

.confirm-card .btn-primary {
  margin-top: 18px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + var(--safe-bottom) + 20px);
  z-index: 30;
  transform: translateX(-50%) translateY(14px);
  min-width: 160px;
  max-width: calc(100vw - 28px);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.94);
  color: var(--text);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: all .18s ease;
}

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

@media (min-width: 700px) {
  body { max-width: 430px; margin: 0 auto; }
  .bg-noise,
  #chat-backdrop,
  #service-sheet-backdrop,
  #confirm-overlay { max-width: 430px; margin: 0 auto; }
}
