:root {
  --ink: #17212b;
  --muted: #647382;
  --line: #dde6ec;
  --soft: #f4f7f7;
  --brand: #0e8f7e;
  --brand-dark: #07695e;
  --accent: #ef8844;
  --panel: #ffffff;
  --shadow: 0 24px 60px rgba(23, 33, 43, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #e8eef2;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(430px, 100vw);
  height: min(920px, 100vh);
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.app-screen {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 24px 18px 96px;
}

.app-screen.active {
  display: block;
}

.app-header,
.simple-header,
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.simple-header,
.profile-header {
  display: block;
  margin-bottom: 22px;
}

.micro-label {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

p {
  color: var(--muted);
}

.icon-button,
.location-row button,
.section-title-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  height: 42px;
  font-weight: 900;
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.location-row span {
  font-weight: 800;
}

.location-row button,
.section-title-row button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--brand-dark);
  font-weight: 800;
}

.app-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 18px;
}

.app-search input,
.app-search button,
.primary-button {
  min-height: 46px;
  border-radius: 8px;
}

.app-search input {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 12px;
}

.app-search button,
.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 800;
}

.hero-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-card div {
  padding: 16px;
}

.hero-card p:not(.micro-label) {
  margin: 8px 0 14px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.pill.active {
  border-color: rgba(14, 143, 126, 0.45);
  background: #e9f8f5;
  color: var(--brand-dark);
}

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

.service-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.service-item[hidden] {
  display: none;
}

.service-item img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
}

.service-item p {
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-meta strong {
  white-space: nowrap;
}

.service-meta button {
  min-height: 34px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 10px;
  font-weight: 800;
}

.full-list {
  padding-top: 2px;
}

.booking-list,
.profile-list {
  display: grid;
  gap: 12px;
}

.booking-card,
.profile-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  text-align: left;
}

.booking-card span {
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.booking-card strong {
  display: block;
  margin-top: 7px;
}

.booking-card p {
  margin: 5px 0 0;
}

.booking-card.muted {
  opacity: 0.72;
}

.avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
}

.profile-list button {
  min-height: 54px;
  color: var(--ink);
  font-weight: 800;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  min-height: 70px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.bottom-nav button.active {
  color: var(--brand-dark);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: end;
  justify-content: center;
}

.sheet.open {
  display: flex;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 43, 0.52);
}

.sheet-panel {
  position: relative;
  width: min(430px, 100vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  padding: 24px 18px;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

#mobile-booking-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

#mobile-booking-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

#mobile-booking-form input,
#mobile-booking-form select,
#mobile-booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

#mobile-booking-form input,
#mobile-booking-form select {
  min-height: 46px;
}

#mobile-booking-form textarea {
  resize: vertical;
}

.success-message {
  margin: 0;
  border-radius: 8px;
  background: #e9f8f5;
  color: var(--brand-dark);
  padding: 12px;
  font-weight: 800;
}

@media (min-width: 700px) {
  .phone-shell {
    border: 12px solid #17212b;
    border-radius: 34px;
  }
}

@media (max-width: 430px) {
  body {
    display: block;
    background: var(--soft);
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    box-shadow: none;
  }
}
