/* ============================================
   Mikhailova.Nails — Admin Panel
   Дизайн: смесь iOS + Telegram + банковское приложение
   ============================================ */

/* ---------- Шрифт ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
}

/* ---------- Переменные ---------- */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --text-2: #8a8a8e;
  --text-3: #c4c4c6;
  --separator: #ececef;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --accent: #0a84ff;        /* iOS blue / банковский акцент */
  --accent-pink: #ff2d92;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9500;
  --purple: #af52de;
  --yellow: #ffcc00;

  --grad-pink: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
  --grad-purple: linear-gradient(135deg, #a66cff 0%, #6c5ce7 100%);
  --grad-blue: linear-gradient(135deg, #5b8def 0%, #0a84ff 100%);
  --grad-green: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  --grad-dark: linear-gradient(135deg, #2c2c34 0%, #1c1c1e 100%);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 72px;
  --shadow-soft: 0 8px 30px rgba(0,0,0,0.08);
}

/* ---------- Сброс ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  line-height: 1.4;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- App container ---------- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + 28px + var(--safe-bottom));
}

/* ---------- Header страницы ---------- */
.page-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245,245,247,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-header .ph-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.page-header .ph-sub { font-size: 13px; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.ph-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent);
  transition: transform .15s ease, background .15s;
}
.icon-btn:active { transform: scale(.9); background: #ededf0; }

/* ---------- Контент ---------- */
.page { display: none; animation: pageIn .35s cubic-bezier(.22,.61,.36,1); }
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.content { padding: 4px 16px 0; }

/* ---------- Карточки ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-label {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .4px;
  margin: 18px 4px 8px;
}

/* ---------- Градиентные инфоблоки ---------- */
.info-block {
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.info-block .ib-label { font-size: 13px; font-weight: 500; opacity: .9; }
.info-block .ib-value { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; }
.info-block .ib-icon {
  position: absolute; right: -8px; top: -8px;
  font-size: 80px; opacity: .18;
}
.grad-pink { background: var(--grad-pink); }
.grad-purple { background: var(--grad-purple); }
.grad-blue { background: var(--grad-blue); }
.grad-green { background: var(--grad-green); }
.grad-dark { background: var(--grad-dark); }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- iOS Список / settings rows ---------- */
.list-group {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  position: relative;
  transition: background .15s;
}
.list-row:active { background: #f2f2f5; }
.list-row + .list-row::before {
  content: ''; position: absolute; top: 0; left: 56px; right: 0;
  height: 1px; background: var(--separator);
}
.list-row .lr-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
}
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 16px; font-weight: 500; }
.list-row .lr-sub { font-size: 13px; color: var(--text-2); }
.list-row .lr-value { font-size: 15px; color: var(--text-2); }
.list-row .chevron { color: var(--text-3); font-size: 14px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 16px; font-weight: 600;
  background: var(--accent); color: #fff;
  transition: transform .12s ease, opacity .15s;
  width: 100%;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-pink { background: var(--accent-pink); }
.btn-green { background: var(--green); }
.btn-blue { background: var(--accent); }
.btn-red { background: var(--red); }
.btn-secondary { background: #ececf0; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sm { padding: 9px 14px; font-size: 14px; width: auto; border-radius: 11px; }

/* ---------- iOS Toggle ---------- */
.ios-toggle {
  width: 51px; height: 31px; border-radius: 16px;
  background: #e3e3e8; position: relative;
  transition: background .25s; flex-shrink: 0;
}
.ios-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .25s cubic-bezier(.4,.8,.4,1);
}
.ios-toggle.on { background: var(--green); }
.ios-toggle.on::after { transform: translateX(20px); }

/* ---------- iOS Checkbox ---------- */
.ios-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--text-3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; flex-shrink: 0;
  transition: all .2s;
}
.ios-check.on { background: var(--accent); border-color: var(--accent); }

/* ---------- Поля ввода ---------- */
.field { margin-bottom: 14px; }
.field label { display:block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 4px 6px; }
.input, .textarea, select.input {
  width: 100%;
  background: #f0f0f3;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--text);
  transition: border .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none; background: #fff; border-color: var(--accent);
}
.textarea { resize: none; min-height: 88px; line-height: 1.5; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8a8e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* ---------- Search bar ---------- */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: #e9e9ec; border-radius: 12px;
  padding: 9px 12px; margin: 0 16px 8px;
}
.search-bar i { color: var(--text-2); }
.search-bar input { flex: 1; background: none; border: none; outline: none; font-size: 16px; }

/* ---------- Segmented control ---------- */
.segmented {
  display: flex; background: #e6e6ea; border-radius: 11px; padding: 2px;
  margin: 0 16px 14px;
}
.segmented button {
  flex: 1; padding: 8px; font-size: 14px; font-weight: 600; color: var(--text-2);
  border-radius: 9px; transition: all .2s;
}
.segmented button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

#fin-mode-switch { margin: 0 !important; }
#fin-mode-switch button { padding: 5px 12px; font-size: 12px; }

#fin-analytics-period { padding: 0 16px; }

/* ---------- Чипы ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 11px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: #f0f0f3; color: var(--text-2);
}
.chip.vip { background: #fff4d6; color: #b8860b; }
.chip.new { background: #d6f5e0; color: #1a8a3c; }
.chip.reg { background: #dce8ff; color: #2563eb; }
.chip-tab {
  padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--text-2); white-space: nowrap;
  transition: all .2s;
}
.chip-tab.active { background: var(--text); color: #fff; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 14px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* ---------- Appointment card ---------- */
.appt-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 14px; display: flex; gap: 12px; align-items: center;
  margin-bottom: 10px; transition: transform .12s;
}
.appt-card:active { transform: scale(.98); }
.appt-time {
  width: 56px; flex-shrink: 0; text-align: center;
}
.appt-time .at-h { font-size: 18px; font-weight: 800; }
.appt-time .at-dur { font-size: 11px; color: var(--text-2); }
.appt-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--accent); }
.appt-info { flex: 1; min-width: 0; }
.appt-info .ai-name { font-size: 16px; font-weight: 600; }
.appt-info .ai-srv { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-price { font-size: 15px; font-weight: 700; }
.status-dot { display:inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.day-divider {
  display: flex; align-items: baseline; gap: 8px; margin: 16px 4px 8px;
}
.day-divider .dd-date { font-size: 17px; font-weight: 700; }
.day-divider .dd-week { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ---------- Avatar ---------- */
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex-shrink: 0;
  overflow: hidden; position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 80px; height: 80px; font-size: 30px; }
.avatar.sm { width: 38px; height: 38px; font-size: 14px; }
.avatar-upload {
  cursor: pointer; transition: opacity .2s;
}
.avatar-upload:hover { opacity: .85; }
.avatar-upload::after {
  content: '\f030'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; transition: opacity .2s;
}
.avatar.lg.avatar-upload::after { font-size: 28px; }
.avatar-upload:hover::after { opacity: 1; }

/* ---------- Нижнее меню ---------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + var(--safe-bottom));
  width: calc(100% - 24px); max-width: 456px;
  height: var(--nav-h);
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-radius: 26px;
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.6);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-2); font-size: 10px; font-weight: 600;
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav-item i { font-size: 20px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.nav-item.active { color: var(--accent); }
.nav-item.active i { transform: translateY(-2px) scale(1.08); }
.nav-item .nav-dot {
  position: absolute; top: 2px; width: 30px; height: 30px; border-radius: 12px;
  background: var(--accent); opacity: 0; transform: scale(.5);
  transition: all .3s cubic-bezier(.34,1.56,.64,1); z-index: -1;
}
.nav-item.active .nav-dot { opacity: .12; transform: scale(1); }

/* ---------- Bottom Sheet (Telegram style) ---------- */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, backdrop-filter .3s;
}
.sheet-overlay.open {
  opacity: 1; pointer-events: auto;
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sheet {
  position: fixed; left: 50%; transform: translate(-50%, 100%);
  bottom: 0; width: 100%; max-width: 480px;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  z-index: 201;
  max-height: 92vh; overflow-y: auto;
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  padding: 8px 16px calc(28px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-handle {
  width: 38px; height: 5px; border-radius: 3px;
  background: #d0d0d5; margin: 6px auto 14px;
}
.sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-header h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.sheet-close {
  width: 30px; height: 30px; border-radius: 50%; background: #e3e3e8;
  color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ---------- Dynamic Island уведомления ---------- */
#di-container {
  position: fixed; top: calc(10px + env(safe-area-inset-top,0px)); left: 50%;
  transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: 100%; pointer-events: none;
}
.di-toast {
  background: #1c1c1e; color: #fff;
  border-radius: 30px; padding: 12px 20px 12px 16px;
  display: flex; align-items: center; gap: 11px;
  min-width: 200px; max-width: 90vw;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  animation: diIn .55s cubic-bezier(.34,1.56,.64,1) forwards;
  pointer-events: auto;
}
.di-toast.out { animation: diOut .4s ease forwards; }
@keyframes diIn {
  0% { transform: translateY(-30px) scale(.3); opacity: 0; width: 40px; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes diOut {
  to { transform: translateY(-20px) scale(.85); opacity: 0; }
}
.di-toast .di-ic {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.di-toast .di-text { font-size: 14px; font-weight: 600; line-height: 1.2; }
.di-toast .di-sub { font-size: 12px; color: #a0a0a5; font-weight: 400; }

/* ---------- Misc ---------- */
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0 !important; }
.muted { color: var(--text-2); }
.text-c { text-align: center; }
.fw7 { font-weight: 700; } .fw6 { font-weight: 600; }
.f13 { font-size: 13px; } .f15 { font-size: 15px; } .f20 { font-size: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.pill-warn { background: #fff0d6; color: #c77700; }
.pill-ok { background: #d6f5e0; color: #1a8a3c; }
.pill-info { background: #dce8ff; color: #2563eb; }
.pill-muted { background: #ededf0; color: var(--text-2); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty-state i { font-size: 44px; opacity: .3; margin-bottom: 12px; }
.divider { height: 1px; background: var(--separator); margin: 12px 0; }
.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + 30px + var(--safe-bottom));
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--accent); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(10,132,255,.4); z-index: 90;
  transition: transform .15s;
}
.fab:active { transform: scale(.9); }

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg,#ededf0 25%,#f5f5f7 50%,#ededf0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.photo-grid img, .photo-grid .add-photo {
  aspect-ratio: 1; border-radius: 12px; object-fit: cover; width: 100%;
}
.add-photo { background:#f0f0f3; display:flex; align-items:center; justify-content:center; color: var(--text-2); font-size: 22px; }

/* Calendar */
.calendar { background: var(--card); border-radius: var(--radius-md); padding: 14px; }
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 11px; color: var(--text-2); font-weight: 600; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 15px; font-weight: 500; transition: all .15s;
  position: relative;
}
.cal-day:active { background: #ececf0; }
.cal-day.today { color: var(--accent); font-weight: 700; }
.cal-day.selected { background: var(--accent); color: #fff; }
.cal-day.blocked { color: var(--text-3); text-decoration: line-through; }
.cal-day.has-appt::after { content:''; position:absolute; bottom:5px; width:5px; height:5px; border-radius:50%; background: var(--accent-pink); }
.cal-day.selected.has-appt::after { background: #fff; }
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: var(--text-3); opacity: .35; cursor: default; }

/* ---------- Birthday Picker ---------- */
.bp-display {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 14px;
  background: var(--card); cursor: pointer;
  transition: background .15s;
}
.bp-display:active { background: #ececf0; }
.bp-display .bp-text { flex: 1; font-size: 15px; font-weight: 500; color: var(--text); }
.bp-display .bp-placeholder { color: var(--text-3); }
.bp-display i { color: var(--text-3); font-size: 14px; }
.bp-year-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.bp-year-btn { width:36px; height:36px; border-radius:50%; background:var(--card); display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--text); cursor:pointer; transition:background .15s; }
.bp-year-btn:active { background:#ececf0; }
.bp-month-row { display:flex; gap:4px; margin-bottom:14px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.bp-month-row::-webkit-scrollbar { display:none; }
.bp-month-chip { flex-shrink:0; padding:7px 12px; border-radius:20px; font-size:13px; font-weight:600; color:var(--text-2); background:var(--card); cursor:pointer; transition:all .15s; white-space:nowrap; }
.bp-month-chip.active { background:var(--accent); color:#fff; }
.bp-month-chip:active { transform:scale(.95); }

/* progress bar */
.progress { height: 8px; background: #ececf0; border-radius: 8px; overflow: hidden; }
.progress > span { display:block; height:100%; border-radius:8px; background: var(--accent); }

/* ---------- Drag & Drop Upload ---------- */
.drop-zone {
  border: 2px dashed var(--text-3);
  border-radius: 16px;
  padding: 32px 16px;
  text-align: center;
  transition: all .25s cubic-bezier(.22,.61,.36,1);
  background: #fafafa;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(10,132,255,.04);
  transform: scale(1.01);
}
.drop-zone.drag-over {
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(10,132,255,.12);
}
.drop-zone-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(10,132,255,.1), rgba(175,82,222,.1));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 22px; color: var(--accent);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.drop-zone.drag-over .drop-zone-icon { transform: scale(1.15) translateY(-4px); }
.drop-zone-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.drop-zone-sub { font-size: 13px; color: var(--text-2); }

/* Upload Progress */
.upload-progress {
  margin-top: 12px;
  animation: fadeSlideIn .3s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.upload-progress-bar {
  height: 6px; background: #ececf0; border-radius: 6px; overflow: hidden;
  position: relative;
}
.upload-progress-bar .fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transition: width .3s cubic-bezier(.22,.61,.36,1);
  position: relative;
}
.upload-progress-bar .fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  animation: progressShimmer 1.5s infinite;
}
@keyframes progressShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}
.upload-progress-info {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 12px; color: var(--text-2); font-weight: 500;
}
.upload-progress-info .status-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.upload-progress-info .status-icon.compressing {
  background: rgba(175,82,222,.12); color: var(--purple);
  animation: pulse 1s infinite;
}
.upload-progress-info .status-icon.uploading {
  background: rgba(10,132,255,.12); color: var(--accent);
}
.upload-progress-info .status-icon.done {
  background: rgba(52,199,89,.12); color: var(--green);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Upload preview thumbnail */
.upload-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 12px; padding: 10px;
  margin-top: 10px; border: 1px solid var(--separator);
}
.upload-preview img {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.upload-preview-info { flex: 1; min-width: 0; }
.upload-preview-name {
  font-size: 13px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.upload-preview-size { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.upload-preview-remove {
  width: 28px; height: 28px; border-radius: 50%; background: #f0f0f3;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-2); flex-shrink: 0;
}

/* time slots */
.slot-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.slot {
  padding: 11px 4px; border-radius: 11px; background:#f0f0f3; text-align:center;
  font-size: 15px; font-weight: 600; transition: all .15s;
}
.slot.selected { background: var(--accent); color:#fff; }
.slot.busy { background: #f7d9d6; color: #c0392b; opacity: .6; }

.svc-price-btn {
  padding: 4px 10px; border-radius: 8px; background: #f0f0f3;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s;
  white-space: nowrap; user-select: none;
}
.svc-price-btn:active { transform: scale(.95); }
.svc-price-btn.custom { background: rgba(255,45,146,.12); color: var(--accent-pink); }

.spoiler-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--card); cursor: pointer; user-select: none;
  border: 1px solid var(--separator); transition: background .15s;
}
.spoiler-header:active { background: #f0f0f3; }
.spoiler-header .spoiler-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.spoiler-header .spoiler-title i { color: var(--accent-pink); font-size: 13px; }
.spoiler-header .spoiler-chevron { transition: transform .2s; font-size: 12px; color: var(--text-2); }
.spoiler-header.open .spoiler-chevron { transform: rotate(180deg); }
.spoiler-body { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.spoiler-body.open { max-height: 800px; }
.spoiler-content { padding: 12px 0 0; }

/* ---------- Пагинация ---------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 0 100px;
}
.page-btn {
  min-width: 36px; height: 36px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--separator);
  color: var(--text); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; padding: 0 8px;
}
.page-btn:active { transform: scale(.92); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn i { font-size: 12px; }
.page-dots { color: var(--text-2); font-size: 14px; padding: 0 2px; }

/* ---------- Booking Wizard ---------- */
.wizard-progress {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 16px;
}
.wizard-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3); transition: all .3s cubic-bezier(.22,.61,.36,1);
}
.wizard-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.wizard-dot.done { background: var(--green); }

.wizard-body {
  position: relative;
  min-height: 200px;
}
.wizard-step {
  width: 100%;
  transition: transform .38s cubic-bezier(.22,.61,.36,1), opacity .38s;
}
.wizard-step.enter-left {
  position: absolute; top: 0; left: 0;
  transform: translateX(-100%); opacity: 0;
}
.wizard-step.enter-right {
  position: absolute; top: 0; left: 0;
  transform: translateX(100%); opacity: 0;
}
.wizard-step.slide-out-left {
  transform: translateX(-100%); opacity: 0;
}
.wizard-step.slide-out-right {
  transform: translateX(100%); opacity: 0;
}

.wizard-nav {
  display: flex; gap: 8px; margin-top: 16px; padding-bottom: 8px;
}
.wizard-nav .btn { flex: 1; width: auto; }
.wizard-nav .btn-back {
  background: #ececf0; color: var(--accent); flex: 0 0 auto; padding: 14px 20px;
}

/* Photo upload grid */
.photo-upload-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.photo-thumb {
  position: relative; aspect-ratio: 1; border-radius: 14px;
  overflow: hidden; background: var(--card);
}
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-thumb .photo-remove {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer;
  transition: transform .15s;
}
.photo-thumb .photo-remove:active { transform: scale(.85); }
.photo-add {
  aspect-ratio: 1; border-radius: 14px;
  border: 2px dashed var(--text-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; transition: all .2s;
  color: var(--text-2); font-size: 12px; font-weight: 600;
}
.photo-add i { font-size: 20px; color: var(--accent); }
.photo-add:active { transform: scale(.95); background: rgba(10,132,255,.04); }
.photo-add.over { border-color: var(--accent); background: rgba(10,132,255,.06); }

.photo-upload-hint {
  font-size: 13px; color: var(--text-2); text-align: center;
  margin-bottom: 12px; line-height: 1.4;
}

/* Summary card in wizard */
.book-wiz-summary {
  background: var(--card); border-radius: var(--radius-md);
  padding: 16px; margin-top: 12px;
}
.book-wiz-row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 4px 0; gap: 12px;
}
.book-wiz-row.muted { color: var(--text-2); }
.book-wiz-svc {
  display: flex; justify-content: space-between;
  font-size: 15px; padding: 6px 0; gap: 12px;
}
.book-wiz-svc .bs-name { flex: 1; min-width: 0; }
.book-wiz-svc .bs-dur { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.book-wiz-svc .bs-price { font-weight: 600; white-space: nowrap; }
.book-wiz-total {
  font-size: 18px; font-weight: 700;
  border-top: 1px solid var(--separator);
  margin-top: 8px; padding-top: 8px;
  display: flex; justify-content: space-between;
}

/* Bonus input block */
.bonus-input-block {
  background: var(--grad-purple); border-radius: 14px;
  padding: 14px; color: #fff; margin-top: 10px;
}
.bonus-input-block .input {
  background: rgba(255,255,255,.15); color: #fff;
  border-color: rgba(255,255,255,.3);
}
.bonus-input-block label { color: rgba(255,255,255,.8); }
