/* Бьюти мастер — общие стили. Палитра: пудра / крем / шампань / графит */
:root {
  --bg: #fdf7f4;
  --bg2: #fbeee9;
  --card: #ffffff;
  --rose: #e8a0a8;
  --rose-dark: #d4838d;
  --rose-light: #f7dfe2;
  --gold: #c9a26b;
  --text: #3a2e2e;
  --muted: #9a8a8a;
  --line: #f1e3e0;
  --ok: #7fbf9a;
  --warn: #e9b96e;
  --danger: #e07b7b;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(212, 131, 141, 0.12);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[v-cloak] { display: none; }
h1, h2, h3 { margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 8px; }
a { color: var(--rose-dark); text-decoration: none; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-s { margin-top: 8px; }

/* Контейнер */
.page { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(90px + var(--safe-b)); }
.page.no-nav { padding-bottom: 32px; }

/* Карточки */
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.card.soft { background: var(--bg2); box-shadow: none; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 14px 20px; border-radius: 14px; transition: transform .08s, opacity .15s;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff;
  box-shadow: 0 6px 16px rgba(212,131,141,.3);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--rose-light); color: var(--rose-dark); box-shadow: none; }
.btn.light { background: #fff; color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.danger { background: #fff; color: var(--danger); box-shadow: none; border: 1px solid #f5d0d0; }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn.icon { padding: 10px; width: 42px; height: 42px; border-radius: 50%; }
.fab {
  position: fixed; right: 20px; bottom: calc(84px + var(--safe-b)); width: 58px; height: 58px; border-radius: 50%;
  font-size: 28px; padding: 0; z-index: 20;
}

/* Поля */
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--rose); }
textarea { min-height: 80px; resize: vertical; }
input[type="time"] { padding: 10px 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* Переключатель */
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: #e6dcdc; border-radius: 28px; transition: .2s; cursor: pointer;
}
.switch i::before {
  content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff;
  border-radius: 50%; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.switch input:checked + i { background: var(--rose); }
.switch input:checked + i::before { transform: translateX(20px); }

/* Чипы */
.chip {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 14px;
  background: #fff; border: 1.5px solid var(--line); cursor: pointer; user-select: none; font-weight: 500;
}
.chip.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.chip.off { opacity: .35; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Бейджи статусов */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.new { background: #fff1d6; color: #b07a1e; }
.badge.confirmed { background: var(--rose-light); color: var(--rose-dark); }
.badge.done { background: #e2f3e9; color: #3c8a5f; }
.badge.cancelled { background: #eee; color: #888; }
.badge.noshow { background: #fde0e0; color: #b04747; }

/* Аватар */
.avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--rose-light);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--rose-dark);
  flex-shrink: 0; border: 3px solid #fff; box-shadow: var(--shadow);
}
.avatar.lg { width: 96px; height: 96px; font-size: 40px; }

/* Нижняя навигация */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 8px 0 calc(8px + var(--safe-b));
  z-index: 10;
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted);
  padding: 4px 10px; border-radius: 12px; min-width: 60px;
}
.nav a .ic { font-size: 22px; line-height: 1; }
.nav a.active { color: var(--rose-dark); }
.nav a.active .ic { transform: translateY(-1px); }

/* Шапка */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar h1 { flex: 1; font-size: 22px; }
.back { font-size: 22px; padding: 4px 8px; color: var(--muted); cursor: pointer; }

/* Записи в календаре */
.appt {
  display: flex; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 14px; margin-bottom: 8px;
  border-left: 4px solid var(--rose); box-shadow: 0 2px 10px rgba(0,0,0,.04); cursor: pointer;
}
.appt.new { border-left-color: var(--warn); }
.appt.done { border-left-color: var(--ok); opacity: .8; }
.appt.cancelled { border-left-color: #ccc; opacity: .5; }
.appt.noshow { border-left-color: var(--danger); opacity: .7; }
.appt .time { font-weight: 700; font-size: 15px; min-width: 52px; }
.appt .time small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* Полоса дней */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 52px; text-align: center; padding: 8px 0; border-radius: 14px; background: #fff; cursor: pointer;
  border: 1.5px solid var(--line);
}
.day small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.day b { font-size: 18px; font-weight: 600; }
.day.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.day.active small { color: #fff; opacity: .85; }
.day.today:not(.active) { border-color: var(--rose); }
.day .dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin: 3px auto 0; }
.day.off { opacity: .4; }

/* Календарь на месяц */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .h { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal .d {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 15px; cursor: pointer; background: #fff; border: 1.5px solid transparent;
}
.cal .d.has { border-color: var(--rose-light); font-weight: 600; }
.cal .d.none { color: #ccc; cursor: default; background: transparent; }
.cal .d.active { background: var(--rose); color: #fff; }
.cal .d small { font-size: 9px; color: var(--gold); }
.cal .d.active small { color: #fff; }

/* Слоты */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  text-align: center; padding: 11px 0; border-radius: 12px; background: #fff; border: 1.5px solid var(--line);
  font-weight: 600; cursor: pointer;
}
.slot.active { background: var(--rose); color: #fff; border-color: var(--rose); }

/* Модалка снизу */
.sheet-bg { position: fixed; inset: 0; background: rgba(58,46,46,.35); z-index: 50; display: flex; align-items: flex-end; }
.sheet {
  background: var(--bg); width: 100%; max-width: 560px; margin: 0 auto; border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(24px + var(--safe-b)); max-height: 92vh; overflow-y: auto;
  animation: up .22s ease-out;
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: -6px auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Тосты */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14px; z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 90%; text-align: center;
}
.toast.err { background: var(--danger); }

/* Список */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item .ava {
  width: 42px; height: 42px; border-radius: 50%; background: var(--rose-light); color: var(--rose-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0;
}

/* Статы */
.stat { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }

/* Пустое состояние */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .ic { font-size: 44px; margin-bottom: 8px; }

/* Логотип */
.logo { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: var(--rose-dark); }
.hero { text-align: center; padding: 40px 0 24px; }

/* Шаги (публичная запись) */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--rose); }

.service-item {
  display: flex; justify-content: space-between; align-items: center; padding: 14px; background: #fff;
  border-radius: 14px; margin-bottom: 8px; cursor: pointer; border: 1.5px solid transparent;
}
.service-item:active, .service-item.active { border-color: var(--rose); }
.service-item .price { font-weight: 700; white-space: nowrap; }
.cat-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 8px; }

.link-box {
  background: var(--bg2); border-radius: 12px; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 14px;
  word-break: break-all; color: var(--rose-dark);
}
.tabs { display: flex; background: var(--bg2); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tabs div { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs div.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
