/* Pop-up booking sheet (assets/js/booking.js) */
.bk-lock, .bk-lock body { overflow: hidden; }
.bk-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,52, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.bk-overlay.open { opacity: 1; pointer-events: auto; }
.bk-sheet { background: #fff; width: 560px; max-width: 100%; height: min(760px, calc(100vh - 40px)); border-radius: 22px; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 30px 80px rgba(15,23,52, .35); transform: translateY(16px) scale(.98); transition: transform .25s ease; }
.bk-overlay.open .bk-sheet { transform: none; }
.bk-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.bk-head-text { flex: 1; min-width: 0; }
.bk-head h2 { margin: 0; font-size: 20px; }
.bk-step-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.bk-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); flex-shrink: 0; display: grid; place-items: center; }
.bk-icon-btn:hover { background: var(--primary-light); }
.bk-icon-btn:disabled { opacity: .35; cursor: default; }
.bk-progress { height: 3px; background: var(--border); }
.bk-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .3s ease; }
.bk-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bk-foot { border-top: 1px solid var(--border); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #fff; }
.bk-foot .btn { flex-shrink: 0; }
.bk-foot-sum { min-width: 0; display: flex; flex-direction: column; }
.bk-foot-sum strong { font-size: 15px; }
.bk-foot-sum span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-foot-hint { font-size: 13px; color: var(--muted); }

.bk-search input { width: 100%; padding: 12px 14px 12px 40px; border-radius: 12px; border: 1.5px solid var(--border); font-size: 15px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236f6579' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 13px center no-repeat; }
.bk-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.bk-chips::-webkit-scrollbar { display: none; }
.bk-chip { flex-shrink: 0; border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.bk-chip.active { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); border-color: var(--primary); color: #fff; }
.bk-cat-label { font-family: "Lora", serif; font-weight: 600; font-size: 16px; margin: 18px 0 8px; }
.bk-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.bk-row:hover, .bk-row.selected { border-color: var(--primary); box-shadow: 0 4px 14px rgba(35,72,184, .12); }
.bk-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-row-main strong { font-size: 15px; }
.bk-meta { font-size: 13px; color: var(--muted); }
.bk-price { font-weight: 700; font-size: 14px; text-align: right; max-width: 40%; }
.bk-chev { color: var(--muted); font-size: 20px; }
.bk-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--primary-light); display: grid; place-items: center; }
.bk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bk-thumb-fallback { background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); }
.bk-thumb-fallback::after { content: '✨'; font-size: 24px; }
.bk-thumb-fallback[data-cat*="Hair" i]::after { content: '💇'; }
.bk-thumb-fallback[data-cat*="Body" i]::after { content: '🌸'; }
.bk-thumb-fallback[data-cat*="Skin" i]::after { content: '🧖'; }
.bk-thumb-fallback[data-cat*="Nail" i]::after { content: '💅'; }
.bk-thumb-fallback[data-cat*="Massage" i]::after { content: '💆'; }
.bk-thumb-fallback[data-cat*="class" i]::after { content: '🧘'; }
.bk-thumb-fallback[data-cat*="Occasion" i]::after { content: '👰'; }
.bk-thumb-fallback[data-cat*="Consult" i]::after { content: '💬'; }
.bk-thumb-fallback[data-cat*="Lesson" i]::after { content: '🎓'; }

.bk-staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bk-staff { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border: 1.5px solid var(--border); border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: inherit; text-align: center; }
.bk-staff:hover, .bk-staff.selected { border-color: var(--primary); box-shadow: 0 4px 14px rgba(35,72,184, .12); }
.bk-staff strong { font-size: 14px; }
.bk-avatar { width: 64px; height: 64px; border-radius: 50%; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; flex-shrink: 0; }
.bk-avatar em { font-style: normal; color: #fff; font-weight: 700; font-size: 20px; }
.bk-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-avatar-any { color: #fff; font-size: 26px; }
.bk-with { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.bk-with .bk-avatar { width: 36px; height: 36px; font-size: 16px; }
.bk-with .bk-avatar em { font-size: 13px; }
.bk-with .bk-link { margin-left: auto; }
.bk-link { background: none; border: none; color: var(--primary-dark); font-weight: 700; cursor: pointer; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; }

.bk-month { font-weight: 700; margin: 6px 0 8px; }
.bk-days-wrap { display: flex; align-items: center; gap: 6px; }
.bk-days { flex: 1; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { scroll-snap-align: start; flex: 0 0 64px; border: 1.5px solid var(--border); background: #fff; border-radius: 14px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; font: inherit; color: inherit; }
.bk-day span { font-size: 12px; color: var(--muted); }
.bk-day strong { font-size: 19px; }
.bk-day i { font-style: normal; font-size: 10.5px; color: var(--green); font-weight: 600; }
.bk-day.full { opacity: .55; }
.bk-day.full i { color: var(--muted); }
.bk-day.selected { background: linear-gradient(160deg, var(--primary-dark), var(--primary) 70%, #3C64DE); border-color: var(--primary); color: #fff; opacity: 1; box-shadow: 0 8px 18px -8px rgba(35,72,184,.6); }
.bk-day.selected span, .bk-day.selected i { color: rgba(255, 255, 255, .8); }
.bk-days-nav { width: 32px; height: 32px; font-size: 18px; }
.bk-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk-slot { border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 11px 6px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); }
.bk-slot:hover, .bk-slot.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.bk-empty { text-align: center; padding: 24px 8px; color: var(--muted); }
.bk-empty strong { color: var(--ink); display: block; margin-bottom: 6px; }
.bk-empty .bk-slot-grid { margin: 8px 0 16px; text-align: center; }
.bk-loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 24px; font-size: 14px; }
.bk-loading span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--primary); animation: bk-spin .8s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-summary { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 16px; }
.bk-summary > div { flex: 1; min-width: 0; }
.bk-form { display: flex; flex-direction: column; gap: 4px; }
.bk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-field { margin-bottom: 10px; }
.bk-field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.bk-field input, .bk-field textarea { width: 100%; padding: 12px 13px; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.bk-field small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.bk-field.has-error input, .bk-field.has-error textarea { border-color: var(--red); background: #fff7f7; }
.bk-err { color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 4px; min-height: 0; }
.bk-err:empty { display: none; }
.bk-opt { font-weight: 400; color: var(--muted); }
.bk-signed { background: var(--primary-light); color: var(--primary-dark); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }
.bk-more { margin: 4px 0 10px; }
.bk-more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--primary-dark); margin-bottom: 8px; }
.bk-deposit { border: 1.5px dashed var(--border); border-radius: 14px; padding: 12px; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 2px; }
.bk-deposit .bk-field { margin-top: 8px; margin-bottom: 0; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; margin-top: 4px; }
.bk-check input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--primary); }
.bk-check.has-error span { color: var(--red); }
.bk-policy { font-size: 13px; color: var(--muted); background: var(--bg); padding: 10px 12px; border-radius: 10px; margin-top: 6px; }
.bk-alert { background: #fdecec; color: #a42121; border: 1px solid #f5c2c2; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin: 0 0 12px; }
.bk-ok { background: #e9f8ef; color: #136c35; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-top: 10px; }
.bk-waitlist { text-align: left; margin-top: 12px; }
.bk-waitlist summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); text-align: center; }
.bk-waitlist .bk-form { margin-top: 12px; }
.bk-note { background: var(--accent-light); border-radius: 12px; padding: 12px; font-size: 14px; text-align: left; margin: 12px 0; }
.bk-done { text-align: center; padding: 10px 4px; }
.bk-done-icon { width: 72px; height: 72px; border-radius: 50%; margin: 6px auto 12px; display: grid; place-items: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, #22b573, #16a34a); box-shadow: 0 12px 28px rgba(22, 163, 74, .35); }
.bk-done h3 { margin: 0 0 6px; font-size: 22px; }
.bk-summary-done { text-align: left; margin-top: 16px; }
.bk-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 600px) {
  .bk-overlay { padding: 0; align-items: flex-end; }
  .bk-sheet { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .bk-staff-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-grid2 { grid-template-columns: 1fr; gap: 0; }
  .bk-foot .btn { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) { .bk-overlay, .bk-sheet, .bk-progress i { transition: none; } .bk-loading span { animation: none; } }
