/* Customer-app parity styles (forest / gold / ivory) */

/* Reference photos + design card share */
.book-ref-photos { margin: 0.75rem 0 0.25rem; }
.book-ref-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.book-ref-thumb { position: relative; width: 64px; height: 64px; }
.book-ref-thumb-btn {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 10px;
  overflow: hidden; background: #eee; cursor: pointer;
}
.book-ref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-ref-thumb-remove {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0;
  border-radius: 50%; background: #0F3D2E; color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer;
}
.book-ref-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Service preview swipe */
.svc-preview-overlay {
  position: fixed; inset: 0; z-index: 12100;
  background: rgba(8, 20, 16, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.svc-preview-overlay[hidden], .svc-preview-modal[hidden] { display: none !important; }
.svc-preview-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 12110; width: min(94vw, 420px); max-height: min(88vh, 720px);
  display: flex; flex-direction: column; outline: none;
}
.svc-preview-card {
  background: var(--surface, #fff); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 61, 46, 0.28); max-height: min(80vh, 680px);
  overflow-y: auto;
}
.svc-preview-media { aspect-ratio: 4/3; background: #e8efe9; }
.svc-preview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-preview-media.is-empty { min-height: 140px; background: linear-gradient(135deg, #0F3D2E, #1a5c44); }
.svc-preview-body { padding: 14px 16px 18px; }
.svc-preview-cat {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #C9A24A; margin-bottom: 4px;
}
.svc-preview-title { font-size: 1.25rem; margin: 0 0 12px; color: var(--text, #111); }
.svc-preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.svc-preview-stat {
  background: color-mix(in srgb, #0F3D2E 8%, var(--surface, #fff));
  border-radius: 12px; padding: 10px 12px;
}
.svc-preview-stat span { display: block; font-size: 0.68rem; color: var(--text-muted); }
.svc-preview-stat strong { font-size: 1.05rem; color: #0F3D2E; }
.svc-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.svc-preview-tags span {
  font-size: 0.68rem; padding: 3px 8px; border-radius: 999px;
  background: rgba(201, 162, 74, 0.18); color: #0F3D2E; font-weight: 650;
}
.svc-preview-desc { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 14px; }
.svc-preview-close {
  position: absolute; top: -8px; right: -4px; z-index: 2; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: #0F3D2E; color: #fff; cursor: pointer;
}
.svc-preview-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: #0F3D2E; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.svc-preview-nav.prev { left: -10px; }
.svc-preview-nav.next { right: -10px; }
.svc-preview-counter {
  text-align: center; color: #F6EBDD; font-size: 0.78rem; font-weight: 650; margin-top: 10px;
}

/* Compact offers */
.offer-summary-card.osc-compact { padding: 0; overflow: hidden; }
.osc-compact-media { position: relative; aspect-ratio: 16/10; background: #e8efe9; }
.osc-compact-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.osc-compact-media-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #0F3D2E, #1a5c44); }
.osc-compact-badge {
  position: absolute; top: 8px; font-size: 0.65rem; font-weight: 750; padding: 3px 8px;
  border-radius: 999px; color: #fff;
}
.osc-compact-badge.disc { left: 8px; background: #0F3D2E; }
.osc-compact-badge.ends { right: 8px; background: rgba(0,0,0,0.55); }
.osc-compact-body { padding: 12px 14px 14px; }
.osc-compact-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.osc-compact-price strong { font-size: 1.15rem; color: #0F3D2E; }
.osc-compact-price s { color: var(--text-muted); font-size: 0.85rem; }
.osc-save-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; background: rgba(201,162,74,0.22); color: #0F3D2E; margin-bottom: 8px;
}
.osc-compact-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.osc-details { margin-top: 10px; border-top: 1px solid var(--border, #e8e0d8); padding-top: 10px; }
.osc-details-row { display: flex; gap: 10px; margin-bottom: 6px; font-size: 0.8rem; }
.osc-details-row > span { flex: 0 0 72px; color: var(--text-muted); }
.osc-code-copy {
  border: 0; background: transparent; color: #0F3D2E; font-weight: 750;
  text-decoration: underline; cursor: pointer; padding: 0;
}

/* My Bookings cards */
.appt-tabs {
  display: flex; gap: 4px; padding: 0 12px 8px; border-bottom: 1px solid var(--border);
}
.appt-tab {
  flex: 1; border: 0; background: transparent; padding: 8px 4px; font-size: 0.72rem;
  font-weight: 700; color: var(--text-muted); border-bottom: 2px solid transparent; cursor: pointer;
}
.appt-tab.is-active { color: #0F3D2E; border-bottom-color: #C9A24A; }
.appt-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start;
  border: 0 !important; box-shadow: 0 2px 10px rgba(15,61,46,0.08);
}
.appt-date-tile {
  background: color-mix(in srgb, #0F3D2E 10%, var(--surface, #fff));
  border-radius: 12px; text-align: center; padding: 8px 4px; line-height: 1.15;
}
.appt-date-tile .d { display: block; font-size: 1.15rem; font-weight: 800; color: #0F3D2E; }
.appt-date-tile .m { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: #C9A24A; }
.appt-date-tile .w { display: block; font-size: 0.58rem; color: var(--text-muted); margin-top: 2px; }
.appt-card-status.is-pending { background: #f59e0b; color: #fff; }
.appt-card-status.is-confirmed { background: #16a34a; color: #fff; }
.appt-card-status.is-completed { background: #2563eb; color: #fff; }
.appt-card-status.is-cancelled { background: #dc2626; color: #fff; }
.appt-card-svc { font-size: 0.8rem; margin: 2px 0; }
.appt-card-facts { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.appt-card-countdown {
  margin-top: 6px; font-size: 0.72rem; font-weight: 700; color: #0F3D2E;
  background: rgba(201,162,74,0.18); display: inline-block; padding: 3px 8px; border-radius: 999px;
}

/* Notifications */
.notif-filters { display: flex; gap: 6px; padding: 8px 12px; align-items: center; }
.notif-filter-btn {
  border: 0; background: color-mix(in srgb, #0F3D2E 8%, transparent); color: var(--text);
  font-size: 0.72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.notif-filter-btn.is-active { background: #0F3D2E; color: #F6EBDD; }
.notif-unread-count { margin-left: auto; font-size: 0.68rem; color: var(--text-muted); font-weight: 650; }
.notif-item { position: relative; border: 0 !important; }
.notif-item.is-unread .notif-item-title { font-weight: 800; }
.notif-item.is-expanded .notif-item-msg { -webkit-line-clamp: unset; max-height: none; white-space: normal; }
.notif-item-msg {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.78rem;
}
.notif-unread-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #C9A24A;
  position: absolute; top: 14px; left: 8px;
}
.notif-type-badge {
  display: inline-block; font-size: 0.58rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 2px 6px; border-radius: 999px;
  background: rgba(15,61,46,0.1); color: #0F3D2E; margin-left: 6px;
}
.notif-type-icon { width: 1.1rem; text-align: center; color: #C9A24A; margin-right: 4px; }
.notif-bulk-bar {
  display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border);
}
.notif-bulk-bar[hidden] { display: none !important; }

/* Chat booking cards + WA composer */
.msg-booking-card {
  background: color-mix(in srgb, #0F3D2E 6%, transparent); border-radius: 12px;
  padding: 10px 12px; min-width: 200px;
}
.msg-mine .msg-booking-card { background: rgba(255,255,255,0.12); }
.msg-booking-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.msg-booking-head strong { flex: 1; font-size: 0.88rem; }
.msg-booking-status {
  font-size: 0.62rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.msg-booking-status.is-ok { background: rgba(22,163,74,0.18); color: #15803d; }
.msg-booking-status.is-warn { background: rgba(245,158,11,0.2); color: #b45309; }
.msg-booking-status.is-danger { background: rgba(220,38,38,0.18); color: #b91c1c; }
.msg-booking-status.is-info { background: rgba(37,99,235,0.18); color: #1d4ed8; }
.msg-mine .msg-booking-status { color: #F6EBDD; background: rgba(255,255,255,0.18); }
.msg-booking-when { font-size: 0.78rem; margin-bottom: 8px; }
.msg-booking-when i { margin-right: 4px; color: #C9A24A; }
.msg-booking-fact { display: flex; gap: 8px; font-size: 0.75rem; padding: 2px 0; }
.msg-booking-fact > span { flex: 0 0 64px; color: var(--text-muted); font-size: 0.68rem; }
.msg-mine .msg-booking-fact > span { color: rgba(246,235,221,0.75); }
.msg-booking-extra { font-size: 0.75rem; opacity: 0.85; margin-top: 4px; }
.msg-booking-call {
  display: inline-block; margin-top: 8px; font-size: 0.75rem; font-weight: 750;
  padding: 6px 12px; border-radius: 999px; background: #C9A24A; color: #0F3D2E; text-decoration: none;
}

.chat-input-row--wa { align-items: flex-end; gap: 6px; }
.chat-composer-box {
  flex: 1; display: flex; align-items: flex-end; gap: 4px;
  background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 22px;
  padding: 4px 8px 4px 4px; min-height: 40px;
}
.chat-input-row--wa .chat-attach-btn {
  width: 34px; height: 34px; border: 0 !important; background: transparent; display: grid; place-items: center;
  color: var(--text-muted); border-radius: 50%; flex-shrink: 0;
}
.chat-input-grow {
  flex: 1; border: 0 !important; box-shadow: none !important; resize: none;
  max-height: 120px; padding: 8px 4px; background: transparent !important;
  font-size: 0.9rem; line-height: 1.35;
}
.chat-input-row--wa .chat-mic-btn,
.chat-input-row--wa #chatSendBtn {
  width: 42px; height: 42px; border-radius: 50% !important; padding: 0 !important;
  display: grid; place-items: center; flex-shrink: 0;
}
.chat-input-row--wa #chatSendBtn { background: #0F3D2E; color: #F6EBDD; border: 0; }
.chat-input-row--wa .chat-mic-btn { background: #0F3D2E; color: #F6EBDD; border: 0; }

/* Loyalty zoom blur fallback */
.loyalty-pass-overlay.is-blur,
.loyalty-pass-overlay {
  background: rgba(8, 16, 22, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .loyalty-pass-overlay { background: rgba(8, 16, 22, 0.82); }
}

/* Decorative border cleanups + repeated helper copy under section titles */
html.parity-clean-cards .section-head .section-sub,
html.parity-clean-cards .section-header .section-sub,
html.parity-clean-cards .h-section > .text-muted.small:first-of-type {
  display: none;
}
html.parity-clean-cards .h-card,
html.parity-clean-cards .offer-summary-card,
html.parity-clean-cards .appt-card,
html.parity-clean-cards .notif-item,
html.parity-clean-cards .app-icon-btn {
  border-color: transparent !important;
  outline: none;
}
html.parity-clean-cards .form-control,
html.parity-clean-cards .form-select,
html.parity-clean-cards textarea {
  border-color: var(--border) !important;
}

html.appearance-night .svc-preview-stat strong,
html.appearance-night .osc-compact-price strong,
html.appearance-night .appt-tab.is-active,
html.appearance-night .appt-date-tile .d { color: #C9A24A; }
html.appearance-night .svc-preview-card { background: #152820; }
html.appearance-night .chat-composer-box { background: #152820; }
