:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --ink: #1F2230;
  --muted: #6A6F7D;
  --line: #ECE5DA;
  --accent: #D63F78;
  --accent-press: #B82D62;
  --accent-soft: #FCE6EE;
  --pine: #2C5D4D;
  --pine-soft: #E2EFE9;
  --sun: #F6C453;
  --warn: #B4462F;
  --warn-soft: #F8E3DD;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 34, 48, .05), 0 6px 20px rgba(31, 34, 48, .06);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.app { max-width: 480px; margin: 0 auto; padding: 16px 16px 104px; }
.wide { max-width: 1100px; }

/* כותרת */
.topbar { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; }
.topbar .logo { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.topbar .sub { font-size: 13px; color: var(--muted); margin: 0; }
.topbar .spacer { flex: 1; }
.back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }

h2 { font-size: 22px; line-height: 1.25; margin: 8px 0 12px; letter-spacing: -.015em; }
h3 { font-size: 16px; margin: 20px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }

/* כרטיסים */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card + .card { margin-top: 12px; }
.card.accent { background: var(--accent); color: #fff; }
.card.pine { background: var(--pine); color: #fff; }
.card.soft { background: var(--accent-soft); box-shadow: none; }

/* כפתורים */
.btn { appearance: none; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 600; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; text-decoration: none; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-press); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); }
.btn.green { background: var(--pine); color: #fff; }
.btn.danger { background: var(--warn-soft); color: var(--warn); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 8px 12px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* טפסים */
label.field { display: block; }
label.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px 14px; font-size: 16px; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 84px; resize: vertical; }
input[type=tel], input[type=number] { direction: ltr; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; user-select: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 4px; cursor: pointer; text-align: center; }
.seg button b { display: block; font-size: 15px; }
.seg button small { color: var(--muted); font-size: 11.5px; }
.seg button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* בחירת טיפול */
.option { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; width: 100%; text-align: inherit; }
.option + .option { margin-top: 10px; }
.option.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #FFF8FA; }
.option .price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.option .meta { font-size: 13px; color: var(--muted); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; margin-top: 2px; display: grid; place-items: center; }
.on .check { background: var(--accent); border-color: var(--accent); }
.on .check::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* רצועת ימים ושעות */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 64px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 10px 0; text-align: center; cursor: pointer; scroll-snap-align: start; }
.day .dn { font-size: 12px; color: var(--muted); }
.day .dd { font-size: 20px; font-weight: 700; line-height: 1.2; }
.day .dc { font-size: 11px; color: var(--pine); }
.day.off { opacity: .4; }
.day.off .dc { color: var(--muted); }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.on .dn, .day.on .dc { color: rgba(255, 255, 255, .75); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 0; text-align: center; cursor: pointer; font-weight: 500; direction: ltr; }
.time.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* שלבים */
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--accent); }

/* כלב */
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 700; color: var(--accent); font-size: 20px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; border-radius: 26px; font-size: 34px; }
.dogs-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.dog-pill { flex: none; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow); text-decoration: none; }
.dog-pill .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }

/* סטטוס */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge.booked { background: var(--accent-soft); color: var(--accent-press); }
.badge.arrived, .badge.in_progress { background: #FFF3D1; color: #8A6410; }
.badge.ready { background: var(--pine-soft); color: var(--pine); }
.badge.done { background: #EEF0F3; color: var(--muted); }
.badge.cancelled, .badge.no_show { background: var(--warn-soft); color: var(--warn); }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.progress div { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); }
.progress div.on { background: #fff; }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 11.5px; opacity: .85; margin-top: 6px; }

/* כרטיס מועדון */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(31, 34, 48, .18); display: grid; place-items: center; }
.stamp.on { border: 0; background: var(--accent); }
.stamp.on svg { width: 55%; height: 55%; }
.stamp.gift { border-color: var(--accent); }

/* מחירון */
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.ptable th:first-child, .ptable td:first-child { text-align: right; }
.ptable thead th { font-size: 12px; color: var(--muted); font-weight: 500; }
.ptable td b { font-weight: 600; }

.stars { color: var(--sun); letter-spacing: 1px; }
.review + .review { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* ניווט תחתון */
.tabbar { position: fixed; bottom: 0; inset-inline: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); z-index: 20; }
.tabbar nav { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--accent); }
.tabbar a.cta svg { background: var(--accent); color: #fff; border-radius: 12px; padding: 5px; width: 34px; height: 34px; margin-top: -6px; }

/* הודעות */
.toast { position: fixed; top: 16px; inset-inline: 16px; max-width: 448px; margin: 0 auto; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; z-index: 50; box-shadow: var(--shadow); animation: drop .25s ease; }
.toast.err { background: var(--warn); }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.sheet-bg { position: fixed; inset: 0; background: rgba(31, 34, 48, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }

.hero { background: var(--ink); color: #fff; border-radius: 24px; padding: 24px 20px; position: relative; overflow: hidden; }
.hero h2 { font-size: 26px; margin: 12px 0 8px; }
.hero p { margin: 0; opacity: .8; }
.hero .logo { width: 56px; height: 56px; border-radius: 16px; }
.hero > * { position: relative; z-index: 1; }
.hero::after { content: ''; z-index: 0; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--accent); opacity: .18; inset-inline-start: -70px; bottom: -110px; }

.photo-pick { border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; background: var(--surface); }
.after-photo { border-radius: 16px; overflow: hidden; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* אליסה + גלריה */
.groomer { display: flex; align-items: center; gap: 14px; }
.groomer img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.9); flex: none; }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery button { flex: none; width: 150px; aspect-ratio: 3/4; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; cursor: zoom-in; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(31,34,48,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; background: rgba(15,16,22,.92); z-index: 60; display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 92dvh; max-width: 100%; border-radius: 12px; }

/* רוסית: כיוון משמאל לימין */
[dir=ltr] .back svg { transform: scaleX(-1); }
[dir=ltr] input[type=tel], [dir=ltr] input[type=number] { text-align: left; }

/* בורר שפה קבוע */
.langsw { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface); gap: 2px; }
.langsw button { border: 0; background: none; border-radius: 9px; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; min-width: 40px; }
.langsw button.on { background: var(--ink); color: #fff; }
