:root {
  --bg: #F8F3EE;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #FFFFFF;
  --text: #1A1614;
  --text-muted: #8B7E73;
  --accent: #D4A373;
  --accent-strong: #B5825A;
  --accent-soft: #F4E5D3;
  --terracotta: #E07A5F;
  --terracotta-soft: #F8D7CC;
  --green: #7FB39A;
  --pink: #F4A6A0;
  --border: rgba(26, 22, 20, 0.06);
  --shadow-sm: 0 4px 12px rgba(26, 22, 20, 0.04);
  --shadow-md: 0 10px 28px rgba(26, 22, 20, 0.08);
  --shadow-lg: 0 20px 48px rgba(26, 22, 20, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.bg-blob--1 {
  width: 360px;
  height: 360px;
  background: var(--terracotta-soft);
  top: -120px;
  right: -120px;
}
.bg-blob--2 {
  width: 320px;
  height: 320px;
  background: var(--accent-soft);
  bottom: -100px;
  left: -100px;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--terracotta) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.header__title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.header__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.header__step {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.screen {
  display: none;
  animation: fadeUp 0.4s var(--easing);
}
.screen--active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  margin-bottom: 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.back:hover { color: var(--text); }

.screen__title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.screen__hint {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.masters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.master-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}
.master-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.master-card:active { transform: translateY(0) scale(0.98); }

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.master-card__info { flex: 1; min-width: 0; }
.master-card__name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}
.master-card__role {
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 500;
  margin-bottom: 4px;
}
.master-card__bio {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.master-card__arrow {
  color: var(--text-muted);
  font-size: 20px;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.2s var(--easing), border-color 0.2s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.service-card:active { transform: scale(0.98); }
.service-card__emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.service-card__info { flex: 1; }
.service-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.service-card__duration {
  font-size: 12px;
  color: var(--text-muted);
}
.service-card__price {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-strong);
}

.days-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin: 0 -20px 8px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none;
}
.days-strip::-webkit-scrollbar { display: none; }
.day-pill {
  flex-shrink: 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: center;
  cursor: pointer;
  min-width: 64px;
  transition: all 0.2s var(--easing);
}
.day-pill__weekday {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 2px;
}
.day-pill__date {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
}
.day-pill__month {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.day-pill--active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--terracotta) 100%);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-md);
}
.day-pill--active .day-pill__weekday,
.day-pill--active .day-pill__month { color: rgba(255,255,255,0.85); }

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.slot {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--easing);
}
.slot:hover { border-color: var(--accent); }
.slot--taken {
  color: var(--text-muted);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.45;
  background: transparent;
}
.slot--active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.confirm-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 8px 0 24px;
  box-shadow: var(--shadow-sm);
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row__label {
  font-size: 13px;
  color: var(--text-muted);
}
.confirm-row__value {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}
.confirm-row__value--price {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-strong);
}

.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--easing);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--terracotta) 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(224, 122, 95, 0.32);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(224, 122, 95, 0.4); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  margin-top: 16px;
}
.btn--ghost:hover { color: var(--text); }

.done {
  text-align: center;
  padding-top: 20px;
}
.done__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--terracotta-soft));
  display: grid;
  place-items: center;
  font-size: 36px;
  margin: 0 auto 20px;
  animation: pop 0.6s var(--easing);
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.done__title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px;
}
.done__note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 0;
  line-height: 1.5;
}

.pay {
  margin-top: 8px;
}
.pay__amount {
  text-align: center;
  margin-bottom: 24px;
}
.pay__amount-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pay__amount-value {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pay__card {
  background: linear-gradient(135deg, #2A2520 0%, #1A1614 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pay__card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,163,115,0.4), transparent 70%);
}
.pay__card-chip {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #D4A373, #B5825A);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.pay__card-number {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.pay__card-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
}
.pay__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.pay__method {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.pay__method--active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pay__hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
}
