:root {
  --ink: #2b2633;
  --muted: #6f6678;
  --line: rgba(76, 59, 90, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --rose: #de7fa8;
  --rose-dark: #bd5d87;
  --aqua: #74d3da;
  --lilac: #9d8dde;
  --success: #6bc08d;
  --danger: #d85d73;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 246, 251, 0.28), rgba(244, 253, 255, 0.5)),
    url("/background.png") center / cover fixed;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 86px;
  backdrop-filter: saturate(1.05);
}

.hero {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 18px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.1));
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(38px, 9vw, 74px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.section-title.compact {
  align-items: center;
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.bottom-nav button,
.slot-button,
.danger-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.primary-button {
  padding: 0 20px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--lilac));
  box-shadow: 0 12px 30px rgba(189, 93, 135, 0.24);
  font-weight: 800;
}

.ghost-button {
  padding: 0 14px;
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  font-weight: 700;
}

.danger-button {
  padding: 0 12px;
  color: white;
  background: var(--danger);
  font-weight: 800;
}

.wide {
  width: 100%;
}

.service-grid,
.reviews,
.stats {
  display: grid;
  gap: 12px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card,
.review-card,
.booking-form,
.booking-card,
.day-column,
.stats > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(70, 55, 86, 0.08);
  backdrop-filter: blur(18px);
}

.service-card {
  min-height: 164px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(116, 211, 218, 0.2);
  color: #176f78;
  font-size: 13px;
  font-weight: 800;
}

.reviews {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.review-card {
  padding: 16px;
}

.review-card p {
  color: var(--muted);
  line-height: 1.48;
}

.review-card strong {
  color: var(--rose-dark);
}

.booking-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

label {
  display: grid;
  gap: 7px;
}

label span,
.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: 0;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.slot-button {
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  font-weight: 800;
}

.slot-button.active {
  color: white;
  background: var(--rose);
}

.slot-button:disabled {
  cursor: not-allowed;
  color: rgba(43, 38, 51, 0.34);
  background: rgba(255, 255, 255, 0.34);
}

.list {
  display: grid;
  gap: 10px;
}

.booking-card {
  padding: 14px;
}

.booking-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.booking-card h3 {
  margin: 0;
  font-size: 18px;
}

.booking-card p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.4;
}

.status {
  align-self: start;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(107, 192, 141, 0.2);
  color: #207144;
  font-size: 12px;
  font-weight: 900;
}

.status.cancelled {
  background: rgba(216, 93, 115, 0.16);
  color: #9d2c43;
}

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

.stats > div {
  min-height: 92px;
  padding: 14px;
}

.stats strong {
  display: block;
  font-size: 30px;
}

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

.schedule-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(70, 55, 86, 0.08);
  backdrop-filter: blur(18px);
}

.schedule-form .section-title {
  margin: 0;
}

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

.duration-fields {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.workdays-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.workdays-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.weekday-toggle {
  position: relative;
  display: block;
  min-width: 0;
}

.weekday-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weekday-toggle span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.weekday-toggle input:checked + span {
  border-color: transparent;
  background: var(--rose);
  color: white;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(142px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-column {
  min-height: 320px;
  padding: 12px;
}

.day-column h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.mini-slot {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(116, 211, 218, 0.18);
  color: #176f78;
  font-size: 12px;
  font-weight: 800;
}

.mini-slot.busy {
  background: rgba(222, 127, 168, 0.2);
  color: var(--rose-dark);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10;
  width: min(560px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 46px rgba(61, 45, 76, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.bottom-nav button {
  min-width: 0;
  padding: 0 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav button.active {
  color: var(--ink);
  background: rgba(222, 127, 168, 0.18);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 20;
  width: min(440px, calc(100% - 28px));
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(43, 38, 51, 0.94);
  color: white;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

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

@media (min-width: 760px) {
  .booking-form {
    grid-template-columns: 1fr 1fr;
  }

  .booking-form > div,
  .booking-form label:has(textarea),
  .booking-form .wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 420px;
  }

  main {
    padding: 14px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .schedule-time-fields {
    grid-template-columns: 1fr;
  }
}
