:root {
  color-scheme: light;
  --ink: #281d25;
  --muted: #796d75;
  --paper: #fffafc;
  --surface: #ffffff;
  --plum: #59263f;
  --plum-dark: #321827;
  --rose: #b9798e;
  --line: #eadfe4;
  --gold: #c89b68;
  --shadow: 0 14px 40px rgba(63, 29, 46, .12);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: #e8e0e4; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; }
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 50px rgba(30, 14, 23, .12); padding-bottom: 84px; }
.hero { position: relative; height: 310px; overflow: hidden; border-radius: 0 0 34px 34px; color: white; background: var(--plum-dark); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 11, 21, .38), rgba(28, 11, 21, .08) 38%, rgba(28, 11, 21, .9)); }
.hero-top, .hero-copy { position: absolute; right: 22px; left: 22px; display: flex; align-items: center; justify-content: space-between; }
.hero-top { top: max(18px, env(safe-area-inset-top)); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(37,16,28,.45); font: 700 22px Georgia, serif; backdrop-filter: blur(8px); }
.status { padding: 9px 12px; border-radius: 999px; background: rgba(37,16,28,.48); backdrop-filter: blur(8px); font-size: .8rem; }
.status i { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #7cdaa2; box-shadow: 0 0 0 4px rgba(124,218,162,.14); }
.hero-copy { bottom: 26px; display: block; }
.hero-copy p { margin: 0 0 8px; color: #ead1dc; font-size: .9rem; }
.hero-copy h1 { margin: 0; font-size: clamp(1.75rem, 7vw, 2.35rem); line-height: 1.45; letter-spacing: -.03em; }

main { padding: 24px 20px; }
.view, .step { display: none; }
.view.active, .step.active { display: block; animation: reveal .24s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } }
.section-heading, .booking-head, .summary-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading { margin-bottom: 18px; }
h2 { margin: 5px 0 0; font-size: 1.24rem; }
.eyebrow { color: var(--rose); font-size: .75rem; font-weight: 700; }
.text-button { border: 0; color: var(--plum); background: transparent; font-size: .82rem; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.category { min-height: 86px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 5px 16px rgba(64,30,47,.05); }
.category span { display: block; margin-bottom: 8px; font-size: 1.35rem; }
.category b { font-size: .72rem; }

.primary-button, .secondary-button { width: 100%; min-height: 52px; border-radius: 16px; font-weight: 700; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; color: white; background: linear-gradient(135deg, var(--plum), #743454); box-shadow: 0 12px 24px rgba(89,38,63,.22); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { margin-top: 10px; border: 1px solid var(--line); color: var(--plum); background: transparent; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; color: var(--muted); font-size: .7rem; }
.trust-row b { color: var(--gold); }

.booking-head { justify-content: flex-start; margin-bottom: 14px; }
.icon-button { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; color: var(--plum); background: white; font-size: 1.2rem; }
.progress { height: 4px; margin: 0 0 22px; overflow: hidden; border-radius: 99px; background: #eee5e9; }
.progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--plum)); transition: width .25s ease; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chip { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: .8rem; }
.chip.active { border-color: var(--plum); color: white; background: var(--plum); }
.service-list { display: grid; gap: 10px; }
.service-card { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 16px; text-align: right; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; }
.service-card:hover, .service-card:focus-visible { border-color: var(--rose); box-shadow: var(--shadow); outline: none; }
.service-card strong { font-size: .94rem; }
.service-card .price { color: var(--plum); font-weight: 700; font-size: .88rem; }
.service-card small { color: var(--muted); font-size: .72rem; }
.helper { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.date-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.date-button { min-height: 82px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; }
.date-button b, .date-button span { display: block; }
.date-button b { margin-bottom: 6px; }
.date-button span { color: var(--muted); font-size: .76rem; }
.time-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time-button { min-height: 48px; border: 1px solid var(--line); border-radius: 14px; color: var(--plum); background: white; direction: ltr; font-weight: 700; }
.date-button:hover, .time-button:hover { border-color: var(--plum); background: #fff5f8; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: .84rem; font-weight: 700; }
.field input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: white; outline: none; }
.field input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(185,121,142,.12); }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: .72rem; }
.summary-card, .empty-card { border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.summary-card { padding: 18px; margin-bottom: 14px; }
.summary-title { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.summary-title i { padding: 6px 9px; border-radius: 99px; color: #32684b; background: #eaf7ef; font-size: .67rem; font-style: normal; }
dl { margin: 12px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; }
dt { color: var(--muted); font-size: .78rem; }
dd { margin: 0; font-size: .82rem; font-weight: 700; text-align: left; }
.inline-state { margin: 12px 0; padding: 12px 14px; border-radius: 14px; color: #6a4a18; background: #fff5dc; font-size: .8rem; line-height: 1.8; }
.inline-state.error { color: #842f3b; background: #ffedf0; }
.inline-state.success { color: #245c3c; background: #e8f7ee; }
.empty-card { padding: 34px 22px; text-align: center; }
.empty-card span { font-size: 2rem; color: var(--rose); }
.empty-card h3 { margin: 12px 0 8px; }
.empty-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.9; }
.bookings-list { display: grid; gap: 12px; }
.booking-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 24px rgba(52, 25, 42, .06); }
.booking-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booking-card strong { color: var(--ink); }
.booking-card span { padding: 4px 9px; border-radius: 999px; color: #287a55; background: #e9f7f0; font-size: .72rem; }
.booking-card p { margin: 12px 0 7px; color: var(--muted); }
.booking-card small { color: var(--plum); font-weight: 800; }
.booking-card .booking-actions { display: flex; gap: 8px; margin-top: 12px; }
.booking-actions button { flex: 1; margin: 0; padding: 10px; }
.danger-button { border: 1px solid #c94b62; color: #a52d45; background: #fff; border-radius: 12px; font: inherit; }

.bottom-nav { position: fixed; z-index: 10; right: 50%; bottom: 0; width: min(100%, 520px); min-height: 70px; transform: translateX(50%); display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 18px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,250,252,.94); backdrop-filter: blur(14px); }
.bottom-nav button { border: 0; color: var(--muted); background: transparent; font-size: .7rem; }
.bottom-nav span { display: block; margin-bottom: 4px; font-size: 1.25rem; }
.bottom-nav button.active { color: var(--plum); font-weight: 700; }
.toast { position: fixed; z-index: 20; right: 50%; bottom: 88px; width: min(calc(100% - 40px), 440px); transform: translate(50%, 20px); padding: 13px 16px; border-radius: 14px; color: white; background: var(--plum-dark); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; font-size: .8rem; }
.toast.show { opacity: 1; transform: translate(50%, 0); }

@media (min-width: 700px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 30px; overflow: hidden; }
  .bottom-nav { bottom: 24px; border-radius: 0 0 30px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
