/* ── Палітра Imperial Dog — тепла, натуральна, дружня ── */
:root {
  --bg: #F3EAE0;          /* Кремовий — фон */
  --surface: #ffffff;     /* Білий — картки */
  --primary: #8B5E3C;     /* Основний коричневий */
  --primary-dark: #4A2E20;/* Темно-коричневий */
  --primary-soft: #E6D6B8;/* Світло-бежевий */
  --accent: #D18D7A;      /* Теплий кораловий */
  --success: #A6B395;     /* Приглушений зелений */
  --mocca: #B89F85;       /* Мокко */
  --danger: #C0392B;
  --warning-bg: #F5E1C9;
  --warning-text: #7A3F1F;
  --text: #2E2419;
  --text-soft: #6F7267;   /* Сірий зелений */
  --border: #EDEDED;      /* Світло-сірий */
  --radius: 18px;
  --shadow: 0 2px 14px rgba(74, 46, 32, 0.08);
  --gold: #D4B86A;        /* акцент золото (як на лого) */
}

* { box-sizing: border-box; touch-action: manipulation; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 440px; margin: 0 auto; min-height: 100vh; background: var(--bg);
       padding-bottom: 110px; }

.loading { padding: 80px 20px; text-align: center; color: var(--text-soft); }

/* ── Header ── */
.header {
  padding: 18px 18px 8px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.header .back {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 18px; color: var(--text);
  box-shadow: var(--shadow);
}
.header h1 { font-size: 19px; margin: 0; flex: 1; font-weight: 600; }
.header .role-toggle {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--text-soft);
  cursor: pointer;
}

/* ── Картки ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin: 8px 14px 12px;
  box-shadow: var(--shadow);
}
.card-flat { background: transparent; box-shadow: none; padding: 0; }

/* ── Welcome / hero ── */
.hero {
  margin: 14px;
  padding: 22px 20px;
  background: linear-gradient(135deg, #8B5E3C 0%, #B89F85 100%);
  color: white;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.hero h2 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.hero p { margin: 0 0 16px; opacity: 0.92; font-size: 14px; line-height: 1.5; }
.hero .paw { position: absolute; right: -10px; bottom: -10px; font-size: 90px; opacity: 0.15; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: white; border: none;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; width: 100%;
  transition: transform .1s, background .15s;
}
.btn:active { transform: scale(0.98); }
.btn:hover { background: var(--primary-dark); }
.btn.white { background: white; color: var(--primary); }
.btn.ghost { background: var(--primary-soft); color: var(--primary); }
.btn.outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn.small { padding: 10px 16px; font-size: 13px; width: auto; }
.btn.icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ── Текстові поля ── */
label { display: block; font-size: 13px; color: var(--text-soft); margin: 0 0 6px; }
input, textarea, select {
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 14px;
  font-size: 15px; font-family: inherit; background: var(--surface);
  color: var(--text); outline: none;
  -webkit-appearance: none; appearance: none;
}
input[type="date"], input[type="time"], input[type="datetime-local"] {
  -webkit-appearance: none; appearance: none;
  max-width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 80px; }

/* Checkbox стиль */
input[type="checkbox"] {
  width: 22px; height: 22px; min-width: 22px; padding: 0;
  border-radius: 6px; border: 2px solid var(--border);
  background: var(--surface); cursor: pointer;
  position: relative; transition: background 0.15s, border-color 0.15s;
}
input[type="checkbox"]:checked {
  background: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5l3 3L13 5' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px 14px; background-repeat: no-repeat; background-position: center;
}

/* ── Анкета (form steps) ── */
.steps {
  display: flex; gap: 6px; padding: 14px;
}
.steps .dot {
  flex: 1; height: 4px; background: var(--border); border-radius: 2px;
}
.steps .dot.done { background: var(--primary); }
.steps .dot.active { background: var(--primary); opacity: 0.7; }

.form-step { padding: 12px 18px 18px; }
.form-step h2 { font-size: 22px; margin: 6px 0 4px; font-weight: 700; }
.form-step .sub { color: var(--text-soft); font-size: 14px; margin-bottom: 22px; }
.form-step .row { margin-bottom: 14px; }

.btn-row {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 440px; margin: 0 auto;
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 80%, transparent);
  display: flex; gap: 10px; align-items: center; z-index: 20;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
/* !important needed to beat global .btn { width: 100% } */
.btn-row .btn             { flex: 1 !important; width: auto !important; }
.btn-row .btn.back        { flex: 0 0 48px !important; width: 48px !important;
                            height: 48px; padding: 0; border-radius: 50%;
                            font-size: 20px; line-height: 1; }
.btn-row .btn.skip        { flex: 0 0 auto !important; width: auto !important;
                            padding: 14px 16px; background: transparent;
                            color: var(--text-soft); border: 1.5px solid var(--border);
                            font-size: 14px; font-weight: 500; }

/* Phone input — один рядок */
.phone-row {
  display: flex; gap: 0; align-items: stretch;
  border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
.phone-row select {
  flex: 0 0 auto; width: auto !important; min-width: 0;
  padding: 14px 8px 14px 14px;
  border: none; border-right: 1.5px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 600; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.phone-row input {
  flex: 1; width: auto !important; min-width: 0;
  border: none; border-radius: 0;
  padding: 14px 16px;
  background: var(--surface);
}

/* ── Дашборд грумера ── */
.stats { display: flex; gap: 10px; padding: 0 14px 6px; }
.stat {
  flex: 1; background: var(--surface); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow);
}
.stat .label { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.stat .value { font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 2px; }

.tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 14px 14px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-soft); cursor: pointer; white-space: nowrap;
}
.tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.search { padding: 0 14px 8px; }
.search input { padding: 12px 16px; }

/* ── Список клієнтів ── */
.pet-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border-radius: var(--radius);
  padding: 12px; margin: 8px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s;
}
.pet-card:active { transform: scale(0.985); }
.pet-photo {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 50%; background: var(--primary-soft);
  display: grid; place-items: center; overflow: hidden;
  font-size: 28px;
}
.pet-photo img { width: 100%; height: 100%; object-fit: cover; }

.pet-info { flex: 1; min-width: 0; }
.pet-name { font-weight: 600; font-size: 16px; }
.pet-meta { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.pet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px; font-weight: 500;
}
.chip.warning { background: var(--warning-bg); color: var(--warning-text); }
.chip.danger { background: #F4D7D3; color: #7A2A1F; }
.chip.accent { background: #F5E1C9; color: #7A3F1F; }
.chip.muted { background: #EDEDED; color: var(--text-soft); }

/* ── Деталь pet ── */
.detail-hero {
  margin: 6px 14px 14px;
  background: var(--surface); border-radius: 24px;
  padding: 22px; text-align: center;
  box-shadow: var(--shadow);
}
.detail-photo {
  width: 110px; height: 110px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--primary-soft);
  display: grid; place-items: center; overflow: hidden;
  font-size: 56px;
  border: 4px solid white; box-shadow: 0 4px 20px rgba(31,122,77,0.18);
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero h2 { margin: 0 0 4px; font-size: 22px; }
.detail-hero .sub { color: var(--text-soft); font-size: 14px; }

.info-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 36px; height: 36px; border-radius: 12px;
                background: var(--primary-soft); display: grid; place-items: center;
                font-size: 16px; flex-shrink: 0; }
.info-row .label-block { flex: 1; min-width: 0; }
.info-row .label-block .lbl { font-size: 12px; color: var(--text-soft); }
.info-row .label-block .val { font-size: 14px; margin-top: 2px; word-wrap: break-word; }
.info-row.warning .ic { background: var(--warning-bg); color: var(--warning-text); }
.info-row.warning .val { color: var(--warning-text); font-weight: 500; }

.section-title {
  padding: 4px 18px 6px;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Візити ── */
.visit-item {
  background: var(--surface); border-radius: 14px;
  padding: 12px 14px; margin: 6px 14px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 1px 6px rgba(15,50,35,0.04);
}
.visit-date {
  background: var(--primary-soft); color: var(--primary);
  border-radius: 12px; padding: 6px 10px; text-align: center;
  font-size: 11px; min-width: 56px; line-height: 1.2; font-weight: 600;
}
.visit-date .day { font-size: 18px; display: block; }
.visit-info { flex: 1; min-width: 0; }
.visit-service { font-weight: 600; font-size: 14px; }
.visit-meta { color: var(--text-soft); font-size: 12px; margin-top: 2px; }
.visit-price { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ── Sticky bottom bar ── */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 440px; margin: 0 auto;
  padding: 12px 14px 16px;
  background: linear-gradient(to top, var(--surface) 65%, rgba(255,255,255,0));
  display: flex; gap: 8px; z-index: 20;
  border-top: 1px solid var(--border);
}
.action-bar .btn { padding: 12px 14px; font-size: 13px; }

/* ── Banner / повідомлення ── */
.banner {
  margin: 6px 14px 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; gap: 12px;
}
.banner .ic { font-size: 22px; }
.banner .text { flex: 1; }
.banner .text strong { display: block; font-size: 13px; }
.banner .text .small { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

/* ── Telegram-bubble preview ── */
.tg-preview {
  margin: 14px;
  padding: 14px;
  background: #e4ecf3;
  border-radius: 18px;
  border: 1px dashed #b6c7d6;
}
.tg-preview .label { font-size: 11px; color: var(--text-soft); text-transform: uppercase;
                      margin-bottom: 8px; letter-spacing: 0.5px; }
.tg-bubble {
  background: white; padding: 12px 14px; border-radius: 14px;
  border-bottom-left-radius: 4px;
  white-space: pre-wrap; font-size: 14px; line-height: 1.45;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
}
.tg-bubble::before {
  content: "@" attr(data-bot);
  display: block; font-size: 11px; color: var(--primary); margin-bottom: 4px; font-weight: 600;
}

/* ── Тостер ── */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: white;
  padding: 12px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Empty state ── */
.empty {
  text-align: center; padding: 60px 30px; color: var(--text-soft);
}
.empty .ic { font-size: 48px; margin-bottom: 12px; }
.empty p { margin: 4px 0; }

/* ── Modal sheet ── */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 440px; margin: 0 auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
  z-index: 51;
  transform: translateY(100%); transition: transform .25s;
  max-height: 88vh; overflow-y: auto; overflow-x: hidden;
  /* не дозволяємо контенту вилазити за межі шиту */
  width: 100%; box-sizing: border-box;
}
.sheet.open { transform: translateY(0); }
.sheet h3 { margin: 6px 0 14px; font-size: 18px; }
.sheet-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 14px;
}

/* ── Картка лояльності ── */
.loyalty-card { text-align: center; }
.loyalty-title {
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.loyalty-paws {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 10px;
}
.paw-icon {
  font-size: 20px; opacity: 0.2;
  transition: opacity .2s;
}
.paw-icon.filled { opacity: 1; }
.paw-icon.milestone {
  position: relative;
}
.paw-icon.milestone::after {
  content: "";
  position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.loyalty-status {
  font-size: 13px; color: var(--text-soft);
}
.loyalty-milestone {
  font-size: 14px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 10px; padding: 8px 14px;
  display: inline-block;
}
.loyalty-chip { background: #F5E1C9 !important; color: #7A3F1F !important; }

/* ── Фото до/після у візитах ── */
.visit-photos {
  display: flex; gap: 8px; margin-top: 8px;
}
.visit-photo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.visit-photo-wrap img {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; cursor: pointer;
}
.photo-lbl {
  font-size: 10px; color: var(--text-soft); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px;
}

/* ── Розклад (вкладка) ── */
.date-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 10px;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  padding: 8px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; min-width: 44px;
}
.date-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.dc-day { font-size: 11px; opacity: 0.7; }
.dc-num { font-size: 16px; font-weight: 700; }

.groomer-block { margin: 8px 14px; }
.groomer-header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 10px 14px; border-radius: 14px 14px 0 0;
  background: var(--surface); border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}
.groomer-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.groomer-count {
  margin-left: auto; font-size: 12px; color: var(--text-soft); font-weight: 400;
}
.schedule-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); padding: 10px 14px;
  border-top: 1px solid var(--border); cursor: pointer;
}
.schedule-item:last-child { border-radius: 0 0 14px 14px; }
.schedule-time {
  font-size: 13px; font-weight: 700; color: var(--primary);
  min-width: 40px; padding-top: 1px;
}
.schedule-info { flex: 1; }
.schedule-pet { font-weight: 600; font-size: 14px; }
.schedule-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.schedule-phone { font-size: 12px; color: var(--primary); margin-top: 2px; }
.schedule-free {
  background: var(--surface); padding: 12px 14px;
  border-top: 1px solid var(--border); border-radius: 0 0 14px 14px;
  font-size: 13px; color: var(--text-soft);
}

/* ── Аналітика (вкладка) ── */
.analytic-bar-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.analytic-bar-label {
  font-size: 12px; color: var(--text-soft); min-width: 52px;
}
.analytic-bar-track {
  flex: 1; height: 10px; border-radius: 5px; background: var(--border);
  overflow: hidden;
}
.analytic-bar-fill {
  height: 100%; background: var(--primary); border-radius: 5px;
  transition: width .4s ease;
}
.analytic-bar-value {
  font-size: 12px; font-weight: 600; color: var(--primary); min-width: 52px; text-align: right;
}

/* ── v3: Перемикач мови + статуси + прайс + фото-capture ── */
.header-actions { display: flex; gap: 6px; align-items: center; }
.lang-toggle {
  background: var(--surface); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 18px; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.lang-toggle:hover { background: var(--primary-soft); }

/* Status chips */
.status-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.status-chip.confirmed { background: #DCE5CC; color: #3F4D2A; }
.status-chip.pending   { background: #EDEDED; color: #6F7267; }
.status-chip.rescheduled { background: #F5E1C9; color: #7A3F1F; }
.status-chip.cancelled { background: #F4D7D3; color: #7A2A1F; }
.status-chip.request   { background: #EFD9CF; color: #6E3A2A; }

/* Confirmation buttons row in next-visit banner */
.confirm-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px; margin-top: 10px;
}
.confirm-row button {
  font-size: 12px; padding: 8px 4px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-weight: 600;
}
.confirm-row button.primary { background: var(--primary); color: white; border-color: var(--primary); }
.confirm-row button.danger { color: #7A2A1F; }

/* Price list */
.price-list {
  background: var(--surface); border-radius: 14px;
  margin: 0 14px 14px; box-shadow: var(--shadow);
  overflow: hidden;
}
.price-list summary {
  padding: 14px 16px; cursor: pointer; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.price-list summary::-webkit-details-marker { display: none; }
.price-list summary::after { content: "▾"; color: var(--text-soft); font-size: 14px; }
.price-list[open] summary::after { content: "▴"; }
.price-table {
  padding: 0 16px 14px; font-size: 13px;
}
.price-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4px; padding: 8px 0; border-top: 1px solid var(--border);
  align-items: center;
}
.price-row.head {
  font-size: 11px; text-transform: uppercase; color: var(--text-soft);
  letter-spacing: 0.5px; font-weight: 600;
  border-top: none;
}
.price-row .svc { font-weight: 500; }
.price-row .pr { text-align: right; color: var(--primary); font-weight: 600; }

/* Photo capture button */
.photo-capture {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 2px dashed var(--border);
  border-radius: 12px; cursor: pointer;
  background: var(--surface); margin-bottom: 12px;
}
.photo-capture input[type=file] { display: none; }
.photo-capture .pc-preview {
  width: 60px; height: 60px; border-radius: 10px; overflow: hidden;
  background: var(--primary-soft); display: grid; place-items: center;
  font-size: 24px; flex-shrink: 0;
}
.photo-capture .pc-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-capture .pc-info { flex: 1; }
.photo-capture .pc-label { font-size: 13px; font-weight: 600; }
.photo-capture .pc-hint  { font-size: 11px; color: var(--text-soft); }

/* Booking sheet — service select with price */
.svc-option-price { float: right; color: var(--primary); font-weight: 600; }

/* New requests badge on groomer dashboard */
.new-requests-badge {
  background: #EFD9CF; color: #6E3A2A;
  padding: 8px 14px; border-radius: 14px;
  margin: 0 14px 10px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* Rating stars */
.rating-stars { font-size: 14px; letter-spacing: 1px; }
.rating-stars .filled { color: #f59e0b; }
.rating-stars .empty  { color: var(--border); }
.rate-prompt {
  background: var(--warning-bg); color: var(--warning-text);
  padding: 12px 14px; border-radius: 14px;
  margin: 0 14px 12px; display: flex; align-items: center; justify-content: space-between;
}
.rate-prompt .stars-input { display: flex; gap: 2px; }
.rate-prompt .star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 22px; padding: 0 2px; color: #d4d4d8;
}
.rate-prompt .star-btn.active { color: #f59e0b; }

/* ── Imperial Dog: брендинг ── */
.header { gap: 12px; padding: 14px 16px 8px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); padding: 3px;
  box-shadow: 0 3px 10px rgba(74, 46, 32, 0.12);
  flex-shrink: 0;
  object-fit: contain;
}
.brand-text { flex: 1; min-width: 0; }
.brand-name {
  font-size: 18px; font-weight: 700; color: var(--primary-dark);
  letter-spacing: 0.3px; line-height: 1.1;
}
.brand-tag {
  font-size: 10px; color: var(--mocca); letter-spacing: 1.8px;
  text-transform: uppercase; margin-top: 2px; font-weight: 500;
}

/* Salon info card on owner view */
.salon-info {
  background: var(--surface); border-radius: 14px;
  margin: 0 14px 12px; padding: 14px;
  box-shadow: var(--shadow);
}
.salon-info h3 {
  margin: 0 0 10px; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-soft); font-weight: 600;
}
.salon-info .row-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 0; font-size: 13px;
}
.salon-info .row-line .ic { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.salon-info .row-line a { color: var(--primary); text-decoration: none; font-weight: 500; }
.salon-info .hours { display: grid; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.salon-info .hours-row { display: flex; justify-content: space-between; font-size: 13px; }
.salon-info .hours-row .day { color: var(--text-soft); }
.salon-info .hours-row .time { font-weight: 600; color: var(--primary-dark); }
.salon-info .hours-row.closed .time { color: var(--text-soft); font-style: italic; }

/* Logo as accent on demo landing */
.landing-logo {
  width: 170px; height: 170px; border-radius: 50%;
  margin: 0 auto 18px; display: block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(255, 255, 255, 0.35);
  background: var(--surface);
  padding: 6px;
}

/* Hero adjusts for bigger logo */
.hero h2 { margin-top: 4px; }
.hero p { font-size: 13px; letter-spacing: 0.5px; opacity: 0.95; }

/* Groomer self chip in header */
.groomer-self-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px 4px 4px;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 12px;
}
.gs-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: white;
  font-size: 11px; font-weight: 700;
}
.gs-name { color: var(--text); font-weight: 600; }

/* Price-list — нова розкладка: контроли + breed-картки */
.price-list-table {
  margin: -4px -16px -10px; padding: 0;
  display: flex; flex-direction: column;
}

/* Controls — search + tabs (above scrollable .pl-body) */
.pl-controls {
  background: var(--surface);
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.pl-search-wrap {
  position: relative; margin-bottom: 8px;
}
.pl-search-ic {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: 0.6; pointer-events: none;
}
.pl-search {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px 9px 32px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg);
  font-size: 13px; color: var(--text);
  font-family: inherit;
}
.pl-search:focus {
  outline: none; border-color: var(--primary);
  background: var(--surface);
}
.pl-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -4px; padding: 0 4px 2px;
}
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text); font-weight: 500;
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.pl-tab:hover { border-color: var(--primary); }
.pl-tab.active {
  background: var(--primary); color: white;
  border-color: var(--primary);
}

/* Body */
.pl-body {
  max-height: 420px; overflow-y: auto;
  padding: 10px 16px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.pl-section-title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-soft);
  margin: 6px 0 -2px;
}
.pl-empty {
  text-align: center; color: var(--text-soft);
  padding: 24px 8px; font-size: 13px;
}
.pl-footer {
  font-size: 11px; color: var(--text-soft);
  padding: 10px 16px 12px; line-height: 1.4;
  border-top: 1px solid var(--border);
}

/* Breed card (Wszystkie view) */
.breed-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.breed-card.current {
  background: linear-gradient(135deg, var(--primary-soft), #F5E8C9);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(200, 155, 90, 0.18);
}
.bc-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.bc-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  flex: 1; min-width: 0;
}
.bc-head .badge {
  background: var(--gold); color: var(--primary-dark);
  font-size: 9px; padding: 2px 6px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.3px;
}
.bc-prices {
  display: flex; flex-direction: column;
  gap: 2px;
}
.bc-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 4px 0;
  font-size: 12.5px;
}
.bc-svc {
  color: var(--text-soft); display: flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1;
}
.bc-ic { font-size: 13px; }
.bc-val {
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right; flex-shrink: 0;
}

/* Single-service rows */
.breed-rows {
  display: flex; flex-direction: column;
}
.breed-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 4px;
  border-bottom: 1px solid var(--border);
}
.breed-row:last-child { border-bottom: none; }
.breed-row.current {
  background: linear-gradient(135deg, var(--primary-soft), #F5E8C9);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 9px 10px;
}
.br-name {
  font-size: 13px; font-weight: 500; color: var(--text);
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
}
.br-name .badge {
  background: var(--gold); color: var(--primary-dark);
  font-size: 9px; padding: 1px 5px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.3px;
  flex-shrink: 0;
}
.br-price {
  text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end;
}

/* Price value parts */
.bp-main {
  color: var(--primary-dark); font-weight: 700;
  font-size: 13px; white-space: nowrap;
}
.bp-main.bp-hourly {
  font-size: 12px;
}
.bp-sub {
  font-size: 10px; color: var(--text-soft);
  font-weight: 500; margin-top: 1px; white-space: nowrap;
}
.bp-empty { color: var(--text-soft); font-size: 13px; }

/* Add-ons list */
.addons-list {
  display: flex; flex-direction: column;
}
.addon-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.addon-row:last-child { border-bottom: none; }
.ar-name { color: var(--text); flex: 1; min-width: 0; }
.ar-price { text-align: right; flex-shrink: 0; }

/* Loyalty when not eligible — show inactive state */
.loyalty-card.not-eligible {
  background: var(--primary-soft);
}
.loyalty-card.not-eligible .loyalty-paws { opacity: 0.4; }

/* ── Week schedule grid ── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.week-day-col {
  min-width: 42px;
  border-radius: 12px;
  padding: 4px 3px;
  cursor: pointer;
  transition: background 0.15s;
}
.week-day-col:hover { background: var(--primary-soft); }
.week-day-col.today { background: var(--primary-soft); }
.week-day-header { text-align: center; margin-bottom: 4px; }
.week-day-name { font-size: 10px; color: var(--text-soft); text-transform: uppercase; font-weight: 600; }
.week-day-num {
  font-size: 16px; font-weight: 700; color: var(--text);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; margin: 2px auto 0;
}
.week-day-num.today { background: var(--primary); color: white; }
.week-day-visits { min-height: 40px; }
.week-visit-item {
  background: var(--surface);
  border-radius: 6px;
  padding: 3px 4px;
  margin-bottom: 2px;
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
}

/* ── Next visit accent banner ── */
.banner.next-visit-accent {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
}
.banner.banner-book {
  background: #EFF6EE;
  border-left: 4px solid var(--success);
}

/* ── Two-level notes (groomer view) ── */
.notes-block {
  margin: 8px 14px;
  border-radius: 14px;
  padding: 12px 14px;
}
.notes-block-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.notes-block.client-visible {
  background: #EAF5EA;
  border: 1.5px solid #A8D5A2;
}
.notes-block.client-visible .notes-block-label { color: #2D6A2D; }
.notes-visible-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: #2D6A2D; color: white;
  border-radius: 6px; padding: 2px 7px;
}
.notes-block.internal-only {
  background: #FFF3E0;
  border: 1.5px dashed #E8961A;
}
.notes-block.internal-only .notes-block-label { color: #7A4510; }
.notes-internal-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: #E8961A; color: white;
  border-radius: 6px; padding: 2px 7px;
}
/* Owner visit: note from groomer to owner */
.owner-note-from-groomer {
  font-size: 13px; color: #2D6A2D; font-style: italic;
  background: #EAF5EA; border-radius: 8px;
  padding: 6px 10px; margin-top: 6px;
  border-left: 3px solid #A8D5A2;
}

/* ── Fullscreen rating overlay ── */
#rating-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(46, 36, 25, 0.65);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
}
#rating-overlay.open {
  display: flex;
}
.rating-modal {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px 24px;
  width: 100%; max-width: 380px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.rating-modal h3 { font-size: 18px; color: var(--text); }
.stars-input.big .star-btn {
  font-size: 36px; width: 48px; height: 48px;
}

/* ── Breed chips (questionnaire) ── */
.breed-chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface); font-size: 13px;
  cursor: pointer; color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.breed-chip.active, .breed-chip:hover {
  background: var(--primary-soft); border-color: var(--primary);
  color: var(--primary-dark); font-weight: 600;
}

/* ── Consent rows (questionnaire) ── */
.consent-row {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 14px; line-height: 1.5;
}
.consent-row a {
  color: var(--primary); font-weight: 500; text-decoration: underline;
}
.consent-row input[type="checkbox"] {
  width: 20px; height: 20px; min-width: 20px; flex-shrink: 0; margin-top: 2px;
  cursor: pointer; position: relative;
  border: 2px solid var(--border); border-radius: 5px;
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
}
.consent-row input[type="checkbox"]:checked {
  background: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5l3 3L13 5' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px 13px; background-repeat: no-repeat; background-position: center;
}

/* ── Toggle row (extras step) ── */
.toggle-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--surface);
  border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border);
}
.toggle-row input[type="checkbox"] {
  width: 44px; height: 26px; flex-shrink: 0;
  appearance: none; -webkit-appearance: none;
  background: var(--border); border-radius: 999px; border: none;
  cursor: pointer; position: relative; transition: background 0.2s;
}
.toggle-row input[type="checkbox"]::after {
  content: ""; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; top: 3px; left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-row input[type="checkbox"]:checked {
  background: var(--primary);
}
.toggle-row input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

/* ── Phone-row for landing page ── */
.salon-info {
  padding: 16px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.salon-info .row-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; font-size: 14px;
}
.salon-info .row-line .ic { flex-shrink: 0; font-size: 16px; }
