/* ============================================================
   اپلیکیشن: رزرو ملاقات و پنل مدیریت — استایل اختصاصی
   ============================================================ */

.app-body {
  background: var(--ivory);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */
.app-header {
  background: var(--ink);
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.app-brand { display: inline-flex; align-items: center; gap: 12px; }
.app-brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--brass-light);
  background: rgba(176, 138, 62, 0.12);
}
.app-brand strong { font-family: var(--serif); font-size: clamp(0.95rem, 2.2vw, 1.1rem); display: block; line-height: 1.15; }
.app-brand small { opacity: 0.75; font-size: 0.75rem; }
.app-header__user { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-header__user .hello { font-size: 0.92rem; opacity: 0.9; }
.btn--small { padding: 9px 18px; font-size: 0.85rem; }
.app-header__user .btn--ghost { border-color: var(--line-light); color: var(--ivory); }
.app-header__user .btn--ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

.app-main { flex: 1; padding-block: 40px 70px; }

.panel { animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- login ---------- */
.login-panel { display: flex; justify-content: center; }
.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 42px 38px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-card__icon {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.login-card h1 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 10px; }
.login-card__intro { color: var(--ink-soft); margin-bottom: 26px; font-size: 0.95rem; }
.login-form { display: grid; gap: 16px; text-align: right; }
.login-form label { display: grid; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.login-form .note { text-align: center; font-size: 0.8rem; color: var(--ink-soft); opacity: 0.8; }

input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.15);
}
.otp-input { text-align: center; letter-spacing: 10px; font-size: 1.5rem; }
.login-form__row { display: flex; justify-content: space-between; }
.linklike { background: none; border: none; color: var(--brass-dark); font-size: 0.85rem; cursor: pointer; }
.linklike:disabled { opacity: 0.4; cursor: default; }
.login-card__err, .confirm__err, .form-err {
  color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: center;
}
.login-form input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: #b3261e; }

/* ---------- booking ---------- */
.booking-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.booking-head .eyebrow { margin-bottom: 8px; }
.booking-title { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; }
.date-filter { max-width: 200px; }

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar__label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }

.jalali-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.jalali-picker__part {
  min-width: 88px;
  padding: 10px 12px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: var(--paper);
  font-family: inherit;
  font-size: 0.92rem;
}

.profile-box {
  margin-bottom: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.profile-box__title { font-size: 1.05rem; margin-bottom: 12px; font-family: var(--serif); }
.profile-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.profile-form label { flex: 1; min-width: 200px; display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; }
.profile-form input {
  padding: 10px 12px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  font-family: inherit;
}

.slot-card__type {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.85;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(184, 134, 11, 0.15);
}

.slot-form select {
  padding: 10px 12px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  font-family: inherit;
  background: var(--paper);
}

/* --- فاز P3: داشبورد admin --- */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.admin-tabs__btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.admin-tabs__btn.is-active,
.admin-tabs__btn:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.admin-tab-panel { margin-bottom: 30px; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.admin-toolbar__field {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.admin-toolbar__field select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  min-width: 120px;
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.admin-col--full { margin-top: 0; }
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.stat-card__value {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--brass-dark);
  line-height: 1.1;
}
.stat-card__label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; display: block; }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding-top: 10px;
}
.bar-chart__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}
.bar-chart__bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(to top, var(--brass-dark), var(--brass-light));
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
}
.bar-chart__label { font-size: 0.65rem; color: var(--ink-soft); }
.rate-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.rate-row__track {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.rate-row__fill { height: 100%; border-radius: 999px; }
.rate-row__fill--ok { background: #2e7d46; }
.rate-row__fill--bad { background: #b3261e; }
.type-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.calendar-toolbar {
  justify-content: center;
  align-items: center;
}
.calendar-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  min-width: 160px;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.calendar-grid__head {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 8px 0;
}
.calendar-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calendar-cell--empty { border: none; background: transparent; cursor: default; }
.calendar-cell.has-events { border-color: var(--brass-light); background: rgba(176, 138, 62, 0.08); }
.calendar-cell:hover:not(.calendar-cell--empty) { box-shadow: var(--shadow); }
.calendar-cell__day { font-weight: 600; }
.calendar-cell__count {
  font-size: 0.7rem;
  background: var(--brass-dark);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
}
.calendar-day-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.filters-toolbar { gap: 10px; }

@media (max-width: 980px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stats-cards { grid-template-columns: 1fr; }
  .calendar-grid { gap: 4px; }
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.slots-grid.slots-grid--table {
  display: block;
}
.slots-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.slots-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.slots-table th,
.slots-table td {
  border: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}
.slots-table thead th {
  background: rgba(16, 18, 26, 0.04);
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.slots-table__date-col,
.slots-table__date {
  position: sticky;
  right: 0;
  z-index: 1;
  background: var(--paper);
  font-weight: 600;
  color: var(--ink);
  min-width: 8.5em;
  text-align: right;
  padding-right: 12px;
}
.slots-table thead .slots-table__date-col {
  background: rgba(16, 18, 26, 0.04);
}
.slots-table__hour-col .slots-table__sep {
  opacity: 0.45;
  margin: 0 2px;
}
.slots-table__cell--reserved {
  color: var(--ink-soft);
  background: rgba(16, 18, 26, 0.03);
  font-size: 0.75rem;
}
.slots-table__cell--taken {
  background: rgba(179, 38, 30, 0.06);
  color: #b3261e;
}
.slots-table__cell--open {
  background: rgba(27, 127, 58, 0.08);
  padding: 4px;
}
.slots-table__pick {
  border: none;
  background: transparent;
  color: #1b7f3a;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.slots-table__pick:hover {
  background: rgba(27, 127, 58, 0.12);
}
.slot-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  position: relative;
}
.slot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.slot-card.is-selected { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.18); }
.slot-card.is-available {
  border-color: rgba(176, 138, 62, 0.55);
  background: linear-gradient(165deg, #fffef9 0%, var(--paper) 55%);
  box-shadow: 0 8px 24px rgba(16, 18, 26, 0.06);
}
.slot-card.is-available:not(:disabled):hover {
  border-color: var(--brass);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.slot-card.is-booked { opacity: 0.55; cursor: not-allowed; pointer-events: none; background: var(--line); }
.slot-card.is-closed { opacity: 0.45; cursor: not-allowed; background: rgba(16, 18, 26, 0.04); }
.slot-card:disabled:not(.is-available) { opacity: 0.5; cursor: not-allowed; }
.slot-card__status--open { background: rgba(27, 127, 58, 0.12); color: #1b7f3a; }
.slot-day-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(16, 18, 26, 0.03);
  color: var(--ink-soft);
}
.slot-day-row--full { border-style: solid; opacity: 0.85; }
.slot-day-row__date { font-weight: 600; color: var(--ink); min-width: 9em; }
.slot-day-row__status {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(179, 38, 30, 0.1);
  color: #b3261e;
}
.slot-day-row__hint { font-size: 0.85rem; }
.slot-card__date { font-size: 0.82rem; color: var(--brass-dark); font-weight: 600; }
.slot-card__time { font-family: var(--serif); font-size: 1.6rem; margin: 4px 0 8px; }
.slot-card__label { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.3em; }
.slot-card__status { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; }
.slot-card__status--taken { background: rgba(179, 38, 30, 0.12); color: #b3261e; }
.slot-card__status--closed { background: rgba(16, 18, 26, 0.1); color: var(--ink-soft); }

.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.load { text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* confirmation */
.confirm {
  margin-top: 26px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 18px;
  padding: 28px 30px;
  text-align: center;
}
.confirm h2 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 8px; }
.confirm p { opacity: 0.9; margin-bottom: 18px; }
.confirm__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.confirm .btn--ghost { border-color: var(--line-light); color: var(--ivory); }
.confirm__err { margin-top: 14px; }

/* my meetings */
.meetings-block { margin-top: 46px; }
.meetings-head h2 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.meeting-list { display: grid; gap: 12px; }
.meeting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 16px 20px;
}
.meeting-item__main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.meeting-item__date { font-family: var(--serif); font-size: 1.3rem; color: var(--brass-dark); }
.meeting-item__meta { font-size: 0.85rem; color: var(--ink-soft); }
.badge { font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.badge--booked { background: rgba(176, 138, 62, 0.18); color: var(--brass-dark); }
.badge--completed { background: rgba(46, 125, 70, 0.15); color: #2e7d46; }
.badge--cancelled { background: rgba(16, 18, 26, 0.1); color: var(--ink-soft); }
.btn--danger { background: #b3261e; color: #fff; border-radius: 999px; padding: 9px 18px; font-size: 0.85rem; border: none; font-weight: 600; cursor: pointer; }
.btn--danger:hover { background: #8f1e18; }

/* toasts */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--ivory);
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { border: 1px solid var(--brass-light); }
.toast--error { border: 1px solid rgba(179, 38, 30, 0.35); background: #fff5f4; color: #8b1a12; }

/* ============================================================
   پنل مدیریت
   ============================================================ */
.admin-head { margin-bottom: 30px; }
.admin-head .eyebrow { margin-bottom: 8px; }
.admin-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}
.admin-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.admin-col + .admin-col { align-content: start; }
.meetings-head__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.slot-form { display: grid; gap: 16px; }
.slot-form__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.slot-form label { display: grid; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.slot-form label small { font-weight: 400; opacity: 0.7; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .login-card { padding: 30px 22px; }
  .booking-head { flex-direction: column; align-items: flex-start; }
  .meeting-item { flex-direction: column; align-items: flex-start; }
  .slot-form__row { grid-template-columns: 1fr; }
}

.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================================
   صفحه رزرو — تقویم، اسلات‌ها، مودال
   ============================================================ */
.app-brand--logo { gap: 14px; }
.app-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  object-fit: cover;
  background: var(--paper);
}

.booking-page .app-main { padding-top: 0; }

.booking-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, #1a1d28 55%, #252a38 100%);
  color: var(--ivory);
  padding: 36px 0 42px;
  margin-bottom: 28px;
}
.booking-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(176, 138, 62, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(176, 138, 62, 0.12), transparent 50%);
  pointer-events: none;
}
.booking-hero__inner { position: relative; max-width: 720px; }
.booking-hero .eyebrow { color: var(--brass-light); margin-bottom: 10px; }
.booking-hero__title {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 12px;
}
.booking-hero__lead { opacity: 0.88; font-size: 0.98rem; max-width: 52ch; margin-bottom: 22px; }

.booking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.booking-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.booking-steps__item span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.booking-steps__item.is-active { opacity: 1; font-weight: 600; }
.booking-steps__item.is-active span {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.booking-steps__item.is-done { opacity: 0.85; }
.booking-steps__item.is-done span {
  background: rgba(176, 138, 62, 0.35);
  border-color: var(--brass-light);
}

.booking-panel {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 24px;
  align-items: start;
}
.booking-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.booking-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.booking-field { display: grid; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.booking-office-field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.booking-office-field legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.booking-office-options { display: grid; gap: 10px; }
.booking-office-option {
  display: block;
  cursor: pointer;
  font-weight: 400;
}
.booking-office-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.booking-office-option__body {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-elevated, #faf8f4);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.booking-office-option__body strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.booking-office-option__body small {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.booking-office-option input:checked + .booking-office-option__body {
  border-color: var(--brass);
  background: rgba(176, 138, 62, 0.08);
  box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.12);
}
.booking-office-option input:focus-visible + .booking-office-option__body {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}
.booking-optional { font-weight: 400; opacity: 0.75; }
.booking-select { cursor: pointer; }
.booking-cal-wrap { display: grid; gap: 10px; }
.booking-clear-date { align-self: start; font-size: 0.85rem; color: var(--brass-dark); }

.jalali-cal { display: grid; gap: 12px; }
.jalali-cal__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.jalali-cal__toolbar .btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  min-width: 40px;
  padding-inline: 12px;
}
.jalali-cal__title { margin: 0; flex: 1; }
.jalali-cal__hint { font-size: 0.78rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.jalali-cal--enter .booking-cal-grid {
  animation: calMonthIn 0.35s var(--ease) both;
}
@keyframes calMonthIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.booking-cal-grid .calendar-cell {
  min-height: 44px;
  aspect-ratio: auto;
  border-radius: 10px;
  font-size: 0.88rem;
}
.booking-cal-cell.is-today {
  box-shadow: inset 0 0 0 2px var(--brass-light);
}
.booking-cal-cell.is-selected {
  border-color: var(--brass);
  background: rgba(176, 138, 62, 0.2);
  box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.15);
}
.booking-cal-cell.calendar-cell--past {
  opacity: 0.35;
  cursor: not-allowed;
}
.booking-cal-cell.calendar-cell--quiet:not(.is-selected) {
  opacity: 0.72;
}

.booking-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 26px;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.booking-slots-head { margin-bottom: 18px; }
.booking-slots-title { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 6px; }
.booking-slots-sub { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.slots-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.slot-skeleton {
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--line) 0%, rgba(255,255,255,0.6) 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.slot-card {
  animation: slotIn 0.45s var(--ease) both;
  animation-delay: calc(var(--slot-i, 0) * 45ms);
}
@keyframes slotIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.empty-state {
  text-align: center;
  padding: 36px 16px 20px;
  color: var(--ink-soft);
}
.empty-state__icon { color: var(--brass-dark); margin-bottom: 12px; opacity: 0.85; }
.empty-state__title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.empty-state__text { font-size: 0.92rem; max-width: 36ch; margin: 0 auto; line-height: 1.6; }

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.booking-modal[hidden] { display: none !important; }
.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 26, 0.55);
  animation: fadeIn 0.3s ease both;
}
.booking-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 28px 24px 32px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  animation: sheetUp 0.4s var(--ease) both;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: none; }
}
.booking-modal__close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--ivory);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.booking-modal__body h2 { font-family: var(--serif); font-size: 1.45rem; margin: 6px 0 10px; }
.booking-modal__summary {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 18px;
  line-height: 1.55;
}
.booking-form { display: grid; gap: 14px; text-align: right; }
.booking-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.booking-modal__actions { display: grid; gap: 10px; margin-top: 18px; }
.btn--block { width: 100%; justify-content: center; }
body.booking-modal-open { overflow: hidden; }

.booking-success {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.booking-success[hidden] { display: none !important; }
.booking-success__ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(46, 125, 70, 0.15);
  transform: scale(0);
}
.booking-success.is-play .booking-success__ring {
  animation: successRing 0.6s ease-out forwards;
}
.booking-success__check {
  width: 72px;
  height: 72px;
  position: relative;
}
.booking-success__circle {
  stroke: #2e7d46;
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}
.booking-success__tick {
  stroke: #2e7d46;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.booking-success.is-play .booking-success__circle {
  animation: drawCircle 0.5s ease forwards 0.1s;
}
.booking-success.is-play .booking-success__tick {
  animation: drawTick 0.35s ease forwards 0.45s;
}
@keyframes successRing {
  to { transform: scale(2.2); opacity: 0; }
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }

@media (min-width: 640px) {
  .booking-modal { align-items: center; padding: 24px; }
  .booking-modal__sheet {
    border-radius: 22px;
    animation: sheetPop 0.35s var(--ease) both;
  }
  @keyframes sheetPop {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
}

@media (max-width: 640px) {
  .booking-cal-grid .calendar-cell { min-height: 40px; font-size: 0.82rem; }
  .booking-hero { padding: 28px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .slot-card,
  .jalali-cal--enter .booking-cal-grid,
  .booking-modal__backdrop,
  .booking-modal__sheet,
  .slot-skeleton,
  .booking-success.is-play .booking-success__ring,
  .booking-success.is-play .booking-success__circle,
  .booking-success.is-play .booking-success__tick,
  .panel {
    animation: none !important;
    transition: none !important;
  }
  .slot-card:hover { transform: none; }
}
.app-footer a { color: var(--ink); font-weight: 600; }
.app-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}
.app-footer__sep { opacity: 0.45; }
@media (max-width: 520px) {
  .app-footer__sep { display: none; }
}