/* ═══════════════════════════════════════════════════
   FLASH, TOGGLES, NOTIFICATIONS, BOOKING AND MENU CONTROLS
   ═══════════════════════════════════════════════════ */

/* ── Flash Deal ── */
.flash-card {
  background: linear-gradient(135deg, rgba(244,63,94,0.06), rgba(109,45,176,0.04));
  border: 1px solid rgba(244,63,94,0.18);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.flash-card__label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--error);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.flash-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.flash-card__sub {
  font-size: 12px;
  color: var(--text-3);
}
.timer {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.timer__box {
  background: var(--surface-2);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid var(--border);
}
.timer__val {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.timer__label {
  font-size: 10px;
  color: var(--text-3);
}

/* ── Toggle Switch ── */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle--on { background: var(--success); }
.toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle--on .toggle__knob { transform: translateX(20px); }

/* ── Notification Item ── */
.notif-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.notif-item--alert { border-color: var(--error-border); }
.notif-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.notif-item__title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-item__body { font-size: 11px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.notif-item__time { font-size: 10px; color: var(--text-3); margin-top: 4px; }

/* ── Booking Card ── */
.booking-card {
  background: var(--surface);
  border: none;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}
.booking-card--upcoming {
  box-shadow: var(--shadow-rose);
}
/* Arrived from "View booking" on the home hero: make the target obvious. */
.booking-card--focus {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  animation: bookingFocusIn 0.4s var(--ease-out);
}
@keyframes bookingFocusIn {
  from { outline-color: transparent; }
  to   { outline-color: var(--primary); }
}

/* ── Service Selection Item ── */
.service-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.service-select--active {
  background: var(--primary-surface);
  border-color: var(--primary);
}
.service-select__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-select--active .service-select__check,
.pkg-card--active .service-select__check {
  background: var(--primary);
  border-color: var(--primary);
}
.service-select--readonly,
.service-select--locked {
  cursor: default;
}
.service-row .service-select.service-select--readonly,
.service-row .service-select.service-select--locked { cursor: default; }
.service-select--readonly:hover { background: var(--surface); }
.service-select--locked {
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  border-width: 1px;
}
.service-select--locked .svc-name { font-size: 14px; }
.service-select--locked .svc-price { font-size: 14px; }
.svc-price-block { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pkg-card--locked { cursor: default; }
.service-select--compact {
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  border-width: 1px;
}
.svc-chevron--sm { width: 32px; height: 32px; border-radius: 8px; }
.svc-chevron--sm svg { width: 14px; height: 14px; }

/* ── Package Card ── */
.pkg-row { display: block; margin-bottom: 10px; }
.pkg-row .pkg-card { margin-bottom: 0; }

.pkg-card {
  padding: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.18s var(--ease-smooth);
}
.pkg-card--active {
  background: var(--primary-surface);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-rose);
}

/* ── Date Chip ── */
.date-chip {
  min-width: 52px;
  padding: 10px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
}
.date-chip--active {
  border-color: var(--primary);
  background: var(--primary-surface);
}
.date-chip__day { font-size: 10px; color: var(--text-3); }
.date-chip__num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.date-chip--active .date-chip__num { color: var(--primary); }

/* ── Time Chip ── */
.time-chip {
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font-body);
}
.time-chip--active {
  border-color: var(--primary);
  background: var(--primary-surface);
  color: var(--primary);
  font-weight: 600;
}

/* ── Stats Card (Dashboard) ── */
.stat-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 10px;
  padding: 14px;
}
.stat-card__label { font-size: 11px; color: var(--ink-500); letter-spacing: 0.3px; }
.stat-card__value { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-top: 4px; color: var(--ink-50); letter-spacing: -0.5px; }
.stat-card__change { font-size: 10px; margin-top: 2px; display: flex; align-items: center; gap: 3px; }
.stat-card__change--up { color: #4ECB71; }
.stat-card__change--down { color: #FF6B6B; }

/* ── Accordion ── */
.accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--border-subtle); }
.accordion__item:last-child { border-bottom: none; }
.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
}
.accordion__body {
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  display: none;
}
.accordion__item--open .accordion__body { display: block; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* ── Service Select — state-driven sub-elements ── */
.service-row { display: block; }
.service-row .service-select { cursor: pointer; }

.svc-chevron {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.2s var(--ease-out), background 0.15s;
}
.svc-chevron svg { width: 18px; height: 18px; }
.svc-chevron:hover { background: var(--surface-2); }
.svc-chevron--open { transform: rotate(180deg); background: var(--primary-surface); border-color: var(--primary); }

/* Detail-page affordance: rose forward arrow on a soft rose pill */
.svc-chevron--detail {
  background: var(--primary-surface);
  border-color: var(--primary);
}
.svc-chevron--detail:hover { background: var(--rose-100); }

/* "Details" inline tag on rows that have a detail page */
.svc-detail-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  padding: 1px 6px;
  border-radius: 5px;
  line-height: 1.5;
}

/* Subtle left-border accent on rows with a detail page */
.service-row--detail .service-select { border-left: 3px solid var(--primary); padding-left: 11px; }
.pkg-card--detail { border-left: 3px solid var(--primary); }

/* ── Package service chips (inside .pkg-card 'select' variant) ── */
.pkg-chip {
  font-size: 12.5px;
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
  transition: background 0.15s, border-color 0.15s;
}
.pkg-chip--sm {
  font-size: 11.5px;
  padding: 3px 9px;
}
.pkg-chip--tappable { cursor: pointer; }
.pkg-chip--tappable:hover {
  background: var(--surface-3);
  border-color: var(--ink-300);
}
.pkg-chip--detail {
  background: var(--primary-surface);
  border-color: var(--primary-border);
  color: var(--primary);
  font-weight: 600;
}
.pkg-chip--detail:hover {
  background: var(--rose-100);
}
.pkg-card--active .pkg-chip {
  background: var(--primary-surface);
  border-color: rgba(244,63,94,0.3);
  color: var(--primary);
}
.pkg-card--active .pkg-chip--detail {
  background: #fff;
  border-color: var(--primary);
}
.pkg-chip--meta {
  background: transparent;
  border-color: var(--border);
  color: var(--text-3);
  font-weight: 500;
}
.pkg-chip--more {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

/* Inert chip — service has no info to show; render as outline-only label */
.pkg-chip--inert {
  background: transparent;
  border-color: var(--border);
  color: var(--text-3);
  cursor: default;
}
.pkg-chip--inert:hover {
  background: transparent;
  border-color: var(--border);
}
.pkg-card--active .pkg-chip--inert {
  background: transparent;
  border-color: rgba(244,63,94,0.25);
  color: var(--text-3);
}

/* Inline service-info panel inside a package card (shown when a non-enriched service chip is tapped) */
.pkg-svc-info-panel {
  margin-top: -2px;
  padding: 12px 14px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  animation: svcExpandIn 0.18s var(--ease-out);
}
.pkg-svc-info-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.pkg-svc-info-close:hover { background: var(--surface-3); }

.svc-expand-panel {
  padding: 10px 14px 14px;
  margin: -2px 0 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  animation: svcExpandIn 0.18s var(--ease-out);
}
@keyframes svcExpandIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.svc-include-chip {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.svc-include-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  opacity: 0.85;
}

/* eyebrow label used across service-detail sections */
.sd-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.svc-detail-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.svc-detail-link:hover { text-decoration: underline; }

/* ── Unified Discount Badge ── */
.price-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--saffron-400);
  color: #fff;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-select__disc-badge {
  font-size: 9px;
  padding: 1px 6px;
  background: var(--success-surface);
  border: 1px solid var(--success-border);
  border-radius: 6px;
  color: var(--success);
  font-weight: 600;
  line-height: 1.6;
}

/* ── Package Card variants ── */
.pkg-card--summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.pkg-card--summary--compact {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.pkg-card--suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--success-surface);
  border: 1px solid var(--success-border);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 8px;
}
.pkg-card--suggestion > div:first-child > div:last-child { gap: 6px; }

/* ── Package component sub-elements ── */
.pkg-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--primary);
  padding: 2px 6px;
  border-radius: 6px;
}
.pkg-svc-chip--matched,
.pkg-svc-chip--bonus {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.pkg-svc-chip--matched {
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-weight: 600;
}
.pkg-svc-chip--bonus {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.pkg-save-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-surface);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── Success Circle (booking confirmed) ── */
.success-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px var(--success-border);
}
