/* ==========================================================================
   ALOHA Baby — CSS riêng cho các trang tính năng (chọn ảnh hậu kỳ, đặt lịch).
   Dùng chung design tokens & component cơ bản (btn, container...) từ style.css.
   ========================================================================== */

.page-header { padding: 32px 0 8px; }
.breadcrumb { font-size: 13px; color: var(--navy-500); margin-bottom: 14px; }
.breadcrumb a { color: var(--pink-600); font-weight: 600; }
.page-header h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 6px; }
.page-header > .container > p { color: var(--navy-500); font-size: 14.5px; }

/* ---------------------------------- Ảnh của tôi (chọn ảnh hậu kỳ) ---------------------------------- */
/* Canh theo đỉnh: ô "Đã chọn" cao lên (dòng phí + nút chọn nhanh) không đẩy tiêu đề xuống thấp */
.ps-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-bottom: 28px;
}
.ps-head-row h1 { margin-bottom: 4px; }
.ps-head-row p { color: var(--navy-500); font-size: 14px; }
.ps-head-row p strong { color: var(--pink-600); }

.ps-summary {
  background: var(--white); border: 1px solid var(--pink-100); border-radius: var(--radius-md);
  padding: 16px 20px; min-width: 320px; box-shadow: var(--shadow-soft);
}
.ps-summary-count { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--navy-500); margin-bottom: 8px; }
.ps-summary-count strong { font-size: 16px; color: var(--navy-900); font-family: var(--font-heading); }
.ps-progress { height: 8px; border-radius: var(--radius-pill); background: var(--pink-50); overflow: hidden; }
.ps-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--pink-400), var(--pink-600)); transition: width 0.3s ease, background 0.3s ease; }
.ps-progress-bar.over { background: linear-gradient(90deg, #f6a723, #e0417a); }
.ps-extra { margin-top: 10px; font-size: 12.5px; color: var(--pink-700); background: var(--pink-50); border-radius: 8px; padding: 8px 10px; }
.ps-extra strong { font-family: var(--font-heading); }

/* Ô "Đã chọn" nổi theo khi cuộn (js/chon-anh.js thêm .is-floating + ô giữ chỗ .ps-summary-slot) */
.ps-summary-slot { flex: 0 0 auto; }
.ps-summary.is-floating {
  position: fixed; z-index: 90;
  box-shadow: 0 12px 32px rgba(44, 42, 61, 0.18);
  animation: psFloatIn .25s ease;
}
@keyframes psFloatIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) {
  .ps-summary.is-floating { left: 12px; right: 12px; width: auto; min-width: 0; padding: 10px 14px; }
  .ps-summary.is-floating .ps-extra { margin-top: 8px; padding: 6px 10px; }
  .ps-summary.is-floating .ps-extra > div { display: none; } /* ẩn dòng "(Đơn giá...)" cho gọn */
  .ps-summary.is-floating .ps-bulk { margin-top: 10px; padding-top: 10px; }
  .ps-summary.is-floating .ps-bulk-btn { min-height: 32px; padding: 5px 10px; font-size: 12.5px; }
}
@media (max-width: 560px) { .ps-summary-slot { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ps-summary.is-floating { animation: none; } }

/* Chọn / bỏ chọn nhanh (dưới bộ đếm "Đã chọn") */
.ps-bulk {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--pink-100);
}
.ps-bulk-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 7px 12px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--pink-200); background: var(--white); color: var(--pink-600);
  font-family: var(--font-body); font-size: 13px; font-weight: 700; white-space: nowrap;
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}
.ps-bulk-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.ps-bulk-btn:hover:not(:disabled) { background: var(--pink-50); border-color: var(--pink-400); }
.ps-bulk-btn:active:not(:disabled) { transform: scale(.97); }
.ps-bulk-btn--clear { border-color: #e6e4ee; color: var(--navy-700); }
.ps-bulk-btn--clear:hover:not(:disabled) { background: #f6f5fa; border-color: var(--navy-300); color: var(--navy-900); }
.ps-bulk-btn:disabled { opacity: .45; cursor: not-allowed; }
/* Dòng "Đã bỏ chọn X ảnh · Hoàn tác" (tự ẩn sau vài giây) */
.ps-bulk-undo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 8px 8px 8px 12px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: var(--white); font-size: 12.5px;
  animation: psUndoIn .25s ease;
}
.ps-bulk-undo:empty { display: none; }
.ps-bulk-undo-btn {
  flex-shrink: 0; background: rgba(255,255,255,.12); border: none; border-radius: var(--radius-pill);
  color: var(--pink-200); font-family: var(--font-body); font-size: 12.5px; font-weight: 800;
  padding: 5px 12px; cursor: pointer; transition: background .2s ease;
}
.ps-bulk-undo-btn:hover { background: rgba(255,255,255,.22); }
@keyframes psUndoIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ps-bulk-undo { animation: none; } }

.ps-empty-state {
  background: var(--white); border: 1.5px dashed var(--pink-200); border-radius: var(--radius-lg);
  padding: 56px 24px; text-align: center; max-width: 480px; margin: 24px auto;
}
.ps-empty-state .ico {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--pink-50);
  color: var(--pink-600); display: flex; align-items: center; justify-content: center;
}
.ps-empty-state h2 { font-size: 20px; margin-bottom: 10px; }
.ps-empty-state p { color: var(--navy-500); font-size: 14px; margin-bottom: 22px; }

.ps-body { padding: 8px 0 96px; }
.ps-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.ps-tab {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--pink-200);
  background: var(--white); color: var(--navy-700); font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ps-tab.active, .ps-tab:hover { background: var(--pink-600); border-color: var(--pink-600); color: var(--white); }

.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.ps-photo { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-soft); }
.ps-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-photo.hidden-by-filter { display: none; }
.ps-heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700); transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.ps-heart:hover { transform: scale(1.08); }
.ps-heart svg { width: 18px; height: 18px; }
.ps-photo.selected .ps-heart { background: var(--pink-600); color: var(--white); }
.ps-photo.selected .ps-heart svg { fill: currentColor; }
.ps-photo.selected::after {
  content: ""; position: absolute; inset: 0; border: 3px solid var(--pink-500); border-radius: var(--radius-md);
  pointer-events: none;
}
.ps-photo-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; color: var(--white);
  background: rgba(20,15,25,0.45); padding: 3px 9px; border-radius: var(--radius-pill);
}

.ps-note-box {
  background: var(--white); border: 1px solid var(--pink-100); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 24px;
}
.ps-note-box h3 { font-size: 16px; margin-bottom: 10px; }
.ps-note-box textarea {
  width: 100%; min-height: 90px; border: 1px solid var(--pink-200); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-body); font-size: 14px; resize: vertical;
}
.ps-note-box textarea:focus { outline: none; border-color: var(--pink-500); }

.ps-submit-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--pink-50); border-radius: var(--radius-lg); padding: 20px 24px;
}
.ps-submit-bar p { font-size: 13.5px; color: var(--navy-700); max-width: 460px; }
.ps-submit-bar button:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.ps-submitted-banner {
  display: none; align-items: center; gap: 12px; background: var(--pink-600); color: var(--white);
  border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 24px; font-size: 14px; font-weight: 600;
}
.ps-submitted-banner.show { display: flex; }
.ps-submitted-banner svg { flex-shrink: 0; }

/* ---------------------------------- Đặt lịch real-time ---------------------------------- */
.bk-stepper { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.bk-step {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--navy-300);
  padding: 8px 4px;
}
.bk-step span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--pink-50); color: var(--navy-300);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-family: var(--font-heading);
  border: 1.5px solid var(--pink-100);
}
.bk-step.active { color: var(--pink-700); }
.bk-step.active span { background: var(--pink-600); color: var(--white); border-color: var(--pink-600); }
.bk-step.done { color: var(--navy-700); }
.bk-step.done span { background: var(--pink-100); color: var(--pink-600); border-color: var(--pink-200); }

.bk-body { padding: 32px 0 96px; }
.bk-container { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.bk-main {
  background: var(--white); border: 1px solid var(--pink-100); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-soft);
  min-width: 0; /* cho hàng 7 ngày (.bk-date-row) cuộn ngang bên trong, không đẩy rộng cả trang trên mobile */
}
.bk-panel h2 { font-size: 19px; margin-bottom: 18px; }

.bk-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bk-service {
  border: 1.5px solid var(--pink-100); border-radius: var(--radius-md); background: var(--white);
  padding: 20px 16px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.bk-service .ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: var(--pink-50); color: var(--pink-600); display: flex; align-items: center; justify-content: center; }
.bk-service .ico svg { width: 22px; height: 22px; }
.bk-service span { font-weight: 700; font-size: 14px; }
.bk-service:hover { border-color: var(--pink-300); }
.bk-service.selected { border-color: var(--pink-600); background: var(--pink-50); }

.bk-live-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--pink-700);
  background: var(--pink-50); border-radius: var(--radius-pill); padding: 7px 14px; margin-bottom: 20px;
}
.bk-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(34,197,94,0); } }

.bk-date-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 22px; }
.bk-date {
  flex-shrink: 0; min-width: 68px; text-align: center; padding: 10px 6px; border-radius: var(--radius-md);
  border: 1.5px solid var(--pink-100); background: var(--white); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.bk-date .dow { display: block; font-size: 11.5px; color: var(--navy-500); margin-bottom: 4px; }
.bk-date .dnum { display: block; font-size: 17px; font-weight: 700; font-family: var(--font-heading); }
.bk-date.active { border-color: var(--pink-600); background: var(--pink-600); }
.bk-date.active .dow, .bk-date.active .dnum { color: var(--white); }

.bk-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.bk-slot {
  position: relative; padding: 14px 8px; border-radius: var(--radius-md); text-align: center;
  border: 1.5px solid var(--pink-200); background: var(--white); font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: all 0.25s ease; color: var(--navy-900);
}
.bk-slot .sub { display: block; font-size: 11px; font-weight: 600; margin-top: 3px; color: var(--navy-500); }
.bk-slot.free:hover { border-color: var(--pink-500); transform: translateY(-2px); }
.bk-slot.holding { border-color: #f6a723; background: #fff8ec; color: #b06a00; cursor: not-allowed; }
.bk-slot.holding .sub { color: #b06a00; }
.bk-slot.full { border-color: var(--navy-300); background: #f4f4f6; color: var(--navy-300); cursor: not-allowed; text-decoration: line-through; }
.bk-slot.mine { border-color: var(--pink-600); background: linear-gradient(135deg, var(--pink-500), var(--pink-600)); color: var(--white); }
.bk-slot.mine .sub { color: var(--pink-100); }
.bk-slot.just-updated { animation: slotFlash 0.9s ease; }
@keyframes slotFlash { 0% { box-shadow: 0 0 0 0 rgba(224,65,122,0.4); } 100% { box-shadow: 0 0 0 10px rgba(224,65,122,0); } }

.bk-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--navy-500); }
.bk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bk-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bk-legend .dot.free { background: var(--white); border: 1.5px solid var(--pink-300); }
.bk-legend .dot.holding { background: #f6a723; }
.bk-legend .dot.full { background: var(--navy-300); }
.bk-legend .dot.mine { background: var(--pink-600); }

.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bk-field-full { grid-column: 1 / -1; }
.bk-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--navy-700); }
.bk-field input, .bk-field textarea {
  width: 100%; border: 1px solid var(--pink-200); border-radius: var(--radius-sm);
  padding: 11px 13px; font-family: var(--font-body); font-size: 14px;
}
.bk-field textarea { min-height: 76px; resize: vertical; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--pink-500); }
.bk-field small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--navy-500); }
.bk-req { color: #c22d2d; }
.bk-opt { font-weight: 400; color: var(--navy-500); font-size: 12px; }
.bk-form-hint { margin: -6px 0 16px; font-size: 12.5px; color: var(--navy-500); }
.bk-field input.invalid { border-color: #c22d2d; background: #fffafa; }
.bk-field small.bk-err { color: #c22d2d; font-weight: 600; }

/* Bước 1: chọn concept sau khi chọn dịch vụ */
.bk-concept-wrap { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--pink-100); scroll-margin-top: 96px; animation: payIn .3s ease; }
.bk-concept-hint { margin: -4px 0 14px; font-size: 12.5px; color: var(--navy-500); }
.bk-concept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bk-concept {
  display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--pink-100);
  border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.bk-concept:hover { border-color: var(--pink-300); }
.bk-concept.selected { border-color: var(--pink-600); box-shadow: 0 0 0 1px var(--pink-600); background: var(--pink-50); }
.bk-concept-pick {
  flex: 1; display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0;
  cursor: pointer; font-family: var(--font-body); color: var(--navy-700);
}
.bk-concept-pick:active { transform: scale(.98); }
.bk-concept-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--pink-50); }
.bk-concept-name { display: block; padding: 9px 10px 2px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.bk-concept-price { display: block; padding: 0 10px 8px; font-size: 13px; font-weight: 700; color: var(--pink-600); margin-top: auto; }
.bk-concept-view {
  background: none; border: 0; border-top: 1px dashed var(--pink-100); padding: 7px 10px; font-size: 12px;
  color: var(--navy-500); cursor: pointer; font-family: var(--font-body); text-align: left;
}
.bk-concept-view:hover { color: var(--pink-600); }
.bk-concept-custom { border-style: dashed; border-color: var(--pink-300); }
.bk-concept-custom .bk-concept-pick { padding-top: 14px; }
.bk-concept-ico {
  width: 42px; height: 42px; margin: 0 10px 4px; border-radius: 50%; background: var(--pink-100); color: var(--pink-600);
  display: flex; align-items: center; justify-content: center;
}
.bk-concept-ico svg { width: 21px; height: 21px; }
.bk-concept-desc { display: block; padding: 2px 10px 8px; font-size: 12px; color: var(--navy-500); line-height: 1.4; }
.bk-custom { margin-top: 16px; padding: 16px; background: var(--pink-50); border-radius: var(--radius-md); animation: payIn .3s ease; }
.bk-custom label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--navy-700); }
.bk-custom textarea {
  width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--pink-200); border-radius: var(--radius-sm);
  padding: 11px 13px; font-family: var(--font-body); font-size: 14px; background: var(--white);
}
.bk-custom textarea:focus { outline: none; border-color: var(--pink-500); }
.bk-custom textarea.invalid { border-color: #c22d2d; background: #fffafa; }
.bk-custom small.bk-err { display: block; margin-top: 6px; font-size: 11.5px; color: #c22d2d; font-weight: 600; }
.bk-custom-note { margin-top: 8px; font-size: 12px; color: var(--navy-500); }

/* Bước 4: Đặt cọc */
.bk-deposit-box {
  background: var(--pink-50); border: 1px solid var(--pink-100); border-radius: var(--radius-md, 14px);
  padding: 16px 18px; margin-bottom: 24px;
}
.bk-deposit-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--navy-700); }
.bk-deposit-row span { color: var(--navy-500); }
.bk-deposit-row strong { white-space: nowrap; }
.bk-deposit-main { border-top: 1px dashed var(--pink-200); border-bottom: 1px dashed var(--pink-200); margin: 4px 0; padding: 11px 0; }
.bk-deposit-main span { color: var(--navy-700); font-weight: 700; }
.bk-deposit-main strong { color: var(--pink-600); font-family: var(--font-heading); font-size: 22px; }
.bk-deposit-note { margin-top: 8px; font-size: 12px; color: var(--navy-500); }
.bk-sub { font-size: 15px; margin-bottom: 12px; }
.bk-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-pay {
  text-align: left; background: var(--white); border: 1.5px solid var(--pink-100); border-radius: var(--radius-sm);
  padding: 13px 14px; cursor: pointer; font-family: var(--font-body); color: var(--navy-700);
  transition: border-color .2s, background .2s, transform .15s;
}
.bk-pay strong { display: block; font-size: 14px; margin-bottom: 3px; }
.bk-pay span { font-size: 12px; color: var(--navy-500); }
.bk-pay:hover { border-color: var(--pink-300); }
.bk-pay:active { transform: scale(.98); }
.bk-pay.selected { border-color: var(--pink-600); background: var(--pink-50); box-shadow: inset 0 0 0 1px var(--pink-600); }
.bk-pay-detail {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 18px; padding: 18px;
  border: 1px solid var(--pink-100); border-radius: var(--radius-md, 14px); animation: payIn .3s ease;
}
@keyframes payIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bk-pay-qr { flex: 0 0 150px; text-align: center; }
.bk-pay-qr svg { width: 150px; height: 150px; display: block; border: 1px solid var(--pink-100); border-radius: 8px; }
.bk-pay-qr small { display: block; margin-top: 6px; font-size: 11px; color: var(--navy-500); }
.bk-pay-info { flex: 1; min-width: 0; font-size: 13.5px; color: var(--navy-700); }
.bk-pay-info p { margin-bottom: 10px; }
.bk-pay-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--pink-50); }
.bk-pay-lines span { color: var(--navy-500); }
.bk-pay-lines strong { text-align: right; overflow-wrap: anywhere; }
.bk-pay-tip { margin-top: 10px; font-size: 12px; color: var(--navy-500); }
.bk-pay-status {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 14px 16px;
  background: #eef5ff; border: 1px solid #cfe0fb; border-radius: var(--radius-md); animation: payIn .3s ease;
}
.bk-pay-status[hidden] { display: none; }
.bk-pay-status strong { display: block; font-size: 14px; color: var(--navy-700); margin-bottom: 4px; }
.bk-pay-status p { font-size: 12.5px; color: var(--navy-500); line-height: 1.5; }
.bk-pay-status .bk-pay-demo { margin-top: 6px; font-size: 11.5px; font-style: italic; }
.bk-pay-spinner {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  border: 3px solid #cfe0fb; border-top-color: #2f6fd6; animation: paySpin .9s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-pay-spinner { animation-duration: 2.5s; } }
.bk-summary .bk-sum-deposit dd { color: var(--pink-600); }

.bk-summary {
  background: var(--white); border: 1px solid var(--pink-100); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-soft); position: sticky; top: 92px;
}
.bk-summary h3 { font-size: 16px; margin-bottom: 16px; }
.bk-summary dl { margin-bottom: 16px; }
.bk-summary dl > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--pink-50); font-size: 13.5px; }
.bk-summary dt { color: var(--navy-500); }
.bk-summary dd { font-weight: 700; text-align: right; }
.bk-hold-timer {
  background: var(--pink-50); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px;
  font-size: 13px; color: var(--pink-700); text-align: center;
}
.bk-hold-timer strong { font-family: var(--font-heading); font-size: 15px; }
.bk-next, .bk-back { width: 100%; margin-bottom: 10px; }
.bk-next:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.bk-success {
  display: none; text-align: center; padding: 48px 24px;
}
.bk-success.show { display: block; }
.bk-success .ico {
  width: 72px; height: 72px; border-radius: 50%; background: var(--pink-100); color: var(--pink-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.bk-success .ico svg { width: 34px; height: 34px; }
.bk-success h2 { margin-bottom: 10px; }
.bk-success p { color: var(--navy-500); margin-bottom: 24px; }

@media (max-width: 1024px) {
  .ps-grid { grid-template-columns: repeat(3, 1fr); }
  .bk-container { grid-template-columns: 1fr; }
  .bk-summary { position: static; }
}

@media (max-width: 1120px) {
  .bk-service-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-concept-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .ps-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ps-summary { min-width: 0; width: 100%; }
  .bk-slot-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-main { padding: 22px 18px; }
  .bk-form { grid-template-columns: 1fr; }
  .bk-pay-grid { grid-template-columns: 1fr; }
  .bk-concept-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bk-pay-detail { flex-direction: column; align-items: center; padding: 16px 14px; }
  .bk-pay-qr { flex-basis: auto; }
  .bk-pay-info { width: 100%; }
  .bk-deposit-main strong { font-size: 19px; }
  .bk-stepper { gap: 4px; }
  .bk-step span { width: 22px; height: 22px; font-size: 11.5px; }
  .bk-step { font-size: 12px; }
}

/* Thông báo giới hạn ảnh yêu thích */
.ps-liked-limit-msg {
  text-align: center;
  color: #e91e8c;
  font-size: .9rem;
  font-weight: 600;
  margin: 12px 0;
  padding: 8px 16px;
  background: #fce4f4;
  border-radius: 8px;
}
/* Ô link Google Drive - tải ảnh gốc chất lượng cao */
.ps-drive-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e6ff 100%);
  border: 1.5px solid #c5cae9;
  border-radius: 12px;
  text-decoration: none;
  color: #1a237e;
  transition: all .25s ease;
  max-width: 400px;
}
.ps-drive-link:hover {
  background: linear-gradient(135deg, #d0e0fc 0%, #e0d0ff 100%);
  border-color: #7c4dff;
  box-shadow: 0 4px 16px rgba(124,77,255,.18);
  transform: translateY(-2px);
}
.ps-drive-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.ps-drive-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ps-drive-text strong {
  font-size: .9rem;
  font-weight: 700;
  color: #1a237e;
}
.ps-drive-text small {
  font-size: .75rem;
  color: #5c6bc0;
  opacity: .85;
}
.ps-drive-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #7c4dff;
  font-weight: 700;
  transition: transform .2s;
}
.ps-drive-link:hover .ps-drive-arrow {
  transform: translateX(4px);
}
@media (max-width: 600px) {
  .ps-drive-link {
    max-width: 100%;
    padding: 10px 14px;
  }
}
/* ===== Ô dấu cộng thêm ảnh yêu thích ===== */
.ps-add-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1;
  border: 2.5px dashed #e91e8c;
  border-radius: 14px;
  background: rgba(233,30,140,.04);
  cursor: pointer;
  transition: all .25s ease;
  opacity: .55;
  min-height: 180px;
}
.ps-add-photo:hover {
  opacity: 1;
  background: rgba(233,30,140,.10);
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(233,30,140,.15);
}
.ps-add-icon {
  font-size: 3rem;
  font-weight: 300;
  color: #e91e8c;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(233,30,140,.08);
}
.ps-add-photo span {
  font-size: .85rem;
  color: #e91e8c;
  font-weight: 600;
}

/* ===== Badge chỉnh sửa thêm trên ảnh ===== */
.ps-photo.ps-extra-photo .ps-photo-badge {
  background: linear-gradient(135deg, #ff6b35, #e91e8c);
  color: #fff;
}
.ps-photo.ps-extra-photo::after {
  content: 'Chỉnh sửa thêm +50K';
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(233,30,140,.9);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 3;
}

/* Tag chỉnh sửa thêm trong ghi chú */
.ps-extra-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #e91e8c);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

/* ===== Modal popup hỏi chỉnh sửa thêm ===== */
.ps-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ps-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.ps-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: scale(.85);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ps-modal-overlay.show .ps-modal {
  transform: scale(1);
}
.ps-modal-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}
.ps-modal-text {
  font-size: .95rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 24px;
}
.ps-modal-text strong {
  color: #e91e8c;
  font-size: 1.05rem;
}
.ps-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.ps-modal-btn {
  padding: 10px 32px;
  border-radius: 25px;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}
.ps-modal-yes {
  background: linear-gradient(135deg, #e91e8c, #ff6b9d);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233,30,140,.3);
}
.ps-modal-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,30,140,.4);
}
.ps-modal-no {
  background: #f0f0f0;
  color: #666;
}
.ps-modal-no:hover {
  background: #e0e0e0;
}

/* Hộp xác nhận "Chọn tất cả" (dùng chung khung .ps-modal, thêm phần chi phí dự kiến) */
.ps-modal--confirm { max-width: 420px; padding: 28px 24px 24px; }
.ps-modal-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-50); color: var(--pink-600);
}
.ps-modal-icon svg { width: 26px; height: 26px; }
.ps-modal-title { font-size: 1.15rem; color: var(--navy-900); margin: 0 0 8px; }
.ps-modal--confirm .ps-modal-text { font-size: .9rem; margin-bottom: 14px; }
.ps-modal--confirm .ps-modal-text strong { font-size: inherit; color: var(--navy-900); }
.ps-modal-cost {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--pink-50); border: 1px solid var(--pink-100); border-radius: 12px;
  padding: 12px 14px; text-align: left;
}
.ps-modal-cost span { font-size: .82rem; color: var(--navy-500); }
.ps-modal-cost strong { font-family: var(--font-heading); font-size: 1.2rem; color: var(--pink-600); white-space: nowrap; }
.ps-modal-hint { font-size: .8rem; color: var(--navy-500); margin: 10px 0 18px; }
.ps-modal--confirm .ps-modal-actions { flex-wrap: wrap; }
.ps-modal--confirm .ps-modal-btn { flex: 1 1 140px; padding: 11px 12px; font-size: .86rem; }

/* ===== Modal QR Chuyển Khoản Cá Nhân Hóa ===== */
.ps-qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 16px;
}
.ps-qr-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.ps-qr-modal {
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
  transform: scale(.92);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  border: 1px solid rgba(233,30,140,.15);
}
.ps-qr-overlay.show .ps-qr-modal {
  transform: scale(1);
}
.ps-qr-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.ps-qr-close:hover {
  background: #e5e7eb;
  color: #1f2937;
  transform: rotate(90deg);
}
.ps-qr-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 32px;
}
.ps-qr-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(233,30,140,.12), rgba(255,107,157,.2));
  color: #e91e8c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-qr-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.ps-qr-subtitle {
  font-size: .82rem;
  color: #6b7280;
  margin: 0;
}

/* Thẻ tính tiền tự động */
.ps-qr-calc-card {
  background: #fdf2f8;
  border: 1.5px solid rgba(233,30,140,.2);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.ps-qr-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  color: #4b5563;
  margin-bottom: 7px;
}
.ps-code-tag {
  background: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #e91e8c;
  border: 1px solid rgba(233,30,140,.25);
  font-size: .82rem;
}
.ps-extra-count-tag {
  color: #e91e8c;
  font-weight: 700;
  font-size: .92rem;
}
.ps-qr-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(233,30,140,.3);
  margin-top: 10px;
}
.ps-total-label {
  font-size: .92rem;
  font-weight: 700;
  color: #1f2937;
  display: block;
}
.ps-total-sub {
  font-size: .75rem;
  color: #6b7280;
}
.ps-total-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #e91e8c;
  letter-spacing: -.5px;
}

/* Khung hiển thị ảnh QR VietQR */
.ps-qr-frame {
  text-align: center;
  margin-bottom: 18px;
}
.ps-qr-img-wrapper {
  display: inline-block;
  position: relative;
  padding: 8px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  border: 2px solid rgba(233,30,140,.15);
  max-width: 270px;
  width: 100%;
}
.ps-qr-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  min-height: 200px;
  background: #f9fafb;
}
.ps-qr-hint {
  font-size: .78rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 10px auto 0;
  max-width: 380px;
  text-align: center;
}
.ps-qr-hint svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 4px;
  color: #e91e8c;
}

/* Bảng thông tin chuyển khoản */
.ps-bank-details {
  background: #f9fafb;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  font-size: .83rem;
}
.ps-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}
.ps-bank-row:last-child {
  border-bottom: none;
}
.ps-bank-label {
  color: #6b7280;
  font-weight: 500;
}
.ps-bank-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
}
.ps-bank-val strong.highlight {
  color: #e91e8c;
  font-weight: 700;
}
.ps-copy-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all .2s;
}
.ps-copy-btn:hover {
  background: #e91e8c;
  color: #fff;
  border-color: #e91e8c;
}
.ps-copy-btn.copied {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
}

/* Đếm ngược thời hạn mã QR */
.ps-qr-countdown {
  background: #fff;
  border: 1.5px dashed rgba(233,30,140,.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.ps-qr-countdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: .83rem;
  color: #6b7280;
}
.ps-qr-countdown-time {
  font-size: 1.35rem;
  font-weight: 800;
  color: #e91e8c;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.ps-qr-countdown-bar {
  height: 5px;
  border-radius: 99px;
  background: #fce7f3;
  margin-top: 8px;
  overflow: hidden;
}
.ps-qr-countdown-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #e91e8c, #ff6b9d);
  transition: width 1s linear;
}
.ps-qr-paystatus {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-size: .78rem;
  line-height: 1.45;
  color: #6b7280;
}
.ps-qr-paystatus-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: psPayPulse 1.4s ease-in-out infinite;
}
.ps-qr-paystatus.is-error { color: #b91c1c; }
.ps-qr-paystatus.is-error .ps-qr-paystatus-dot { background: #ef4444; }
.ps-qr-modal.is-expired .ps-qr-paystatus { display: none; }
@keyframes psPayPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .ps-qr-paystatus-dot { animation: none; }
}
.ps-qr-modal.is-urgent .ps-qr-countdown { border-color: rgba(234,88,12,.5); }
.ps-qr-modal.is-urgent .ps-qr-countdown-time { color: #ea580c; }
.ps-qr-modal.is-urgent .ps-qr-countdown-bar span { background: #ea580c; }
.ps-qr-modal.is-expired .ps-qr-countdown-time { color: #9ca3af; }
.ps-qr-modal.is-expired .ps-qr-countdown-label { color: #b91c1c; font-weight: 600; }
.ps-qr-modal.is-expired .ps-qr-img { opacity: .2; filter: grayscale(1); }

/* Thông điệp: ảnh chỉ gửi đi sau khi thanh toán */
.ps-qr-promise {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(233,30,140,.08), rgba(255,107,157,.14));
  border-radius: 14px;
  padding: 14px 16px;
  color: #1f2937;
}
.ps-qr-promise svg {
  flex-shrink: 0;
  color: #e91e8c;
  margin-top: 2px;
}
.ps-qr-promise strong {
  display: block;
  font-size: .92rem;
  line-height: 1.45;
  margin-bottom: 4px;
}
.ps-qr-promise p {
  margin: 0;
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Banner mở lại QR */
.ps-banner-info {
  flex: 1;
}
.ps-banner-info strong {
  display: block;
  font-size: .98rem;
  margin-bottom: 4px;
}
.ps-banner-info p {
  margin: 0 0 8px 0;
  font-size: .88rem;
  line-height: 1.5;
}
.ps-reopen-qr-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  color: #065f46;
  border: 1.5px solid #059669;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ps-reopen-qr-link:hover {
  background: #059669;
  color: #fff;
}
/* ===== Lightbox (xem ảnh lớn, thu phóng, lướt, yêu thích + ghi chú) ===== */
.ps-photo img { cursor: zoom-in; }
.ps-zoom-hint {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,.55); color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.ps-photo:hover .ps-zoom-hint { opacity: 1; }

.ps-lightbox {
  position: fixed; inset: 0; z-index: 9000;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.ps-lightbox.show { opacity: 1; visibility: visible; }
/* Đang mờ dần khi đóng (0,25s) thì không nhận thao tác nữa, tránh "nuốt" cú bấm
   ngay sau khi đóng (con .ps-lb-shell > * đặt pointer-events: auto nên phải ghi đè cả con). */
.ps-lightbox:not(.show), .ps-lightbox:not(.show) * { pointer-events: none !important; }
.ps-lb-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 14, 28, .94);
}
.ps-lb-shell {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  pointer-events: none;
}
.ps-lb-shell > * { pointer-events: auto; }

.ps-lb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
}
.ps-lb-counter {
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 20px;
  font-variant-numeric: tabular-nums;
}
/* padding + margin âm: nới vùng bấm quanh nhóm nút phóng to (không đổi bố cục), bấm hơi lệch
   nút không bị tính là bấm vào chỗ trống của thanh trên (sẽ đóng lightbox) */
.ps-lb-actions { display: flex; gap: 6px; padding: 8px; margin: -8px; }
.ps-lb-actions button, .ps-lb-close, .ps-lb-prev, .ps-lb-next {
  background: rgba(255,255,255,.14); border: none; color: #fff;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.ps-lb-actions button { width: 38px; height: 38px; font-size: 20px; }
.ps-lb-actions .ps-lb-zoom-val { width: auto; min-width: 58px; padding: 0 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.ps-lb-close { width: 42px; height: 42px; font-size: 28px; }
.ps-lb-actions button:hover, .ps-lb-close:hover, .ps-lb-prev:hover, .ps-lb-next:hover { background: rgba(255,255,255,.28); }

.ps-lb-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: default; /* bấm vùng tối quanh ảnh = đóng */
}
.ps-lb-stage.is-zoomed, .ps-lb-stage.is-zoomed .ps-lb-img { cursor: grab; }
.ps-lb-stage.is-zoomed:active, .ps-lb-stage.is-zoomed:active .ps-lb-img { cursor: grabbing; }
.ps-lb-img {
  max-width: calc(100% - 32px); max-height: calc(100% - 16px);
  object-fit: contain; border-radius: 6px;
  user-select: none; -webkit-user-drag: none;
  transition: transform .15s ease-out;
  transform-origin: center center;
  cursor: zoom-in; /* nhấp đúp để phóng to */
}
.ps-lb-prev, .ps-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font-size: 30px; line-height: 1;
}
.ps-lb-prev { left: 16px; }
.ps-lb-next { right: 16px; }
.ps-lb-prev[hidden], .ps-lb-next[hidden] { display: none; }
/* Nới vùng bấm quanh nút ‹ › 12px: bấm hơi lệch vẫn chuyển ảnh, không bị đóng lightbox */
.ps-lb-prev::before, .ps-lb-next::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; }

.ps-lb-panel {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.ps-lb-fav-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ps-lb-fav {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--pink-500); background: #fff; color: var(--pink-600);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.ps-lb-fav svg { width: 18px; height: 18px; }
.ps-lb-fav:active { transform: scale(.97); }
.ps-lb-fav.active { background: var(--pink-600); border-color: var(--pink-600); color: #fff; }
.ps-lb-fav.active svg { fill: currentColor; }
.ps-lb-fav:disabled { opacity: .55; cursor: not-allowed; }
.ps-lb-favinfo { font-size: .8rem; color: #6b7280; }
.ps-lb-note { margin-top: 10px; }
.ps-lb-note label {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; font-weight: 700; color: var(--navy-900, #1f2937); margin-bottom: 6px;
}
.ps-lb-extra {
  font-size: .7rem; font-weight: 700; color: #fff;
  background: #ea580c; padding: 2px 8px; border-radius: 999px;
}
.ps-lb-note textarea {
  width: 100%; resize: vertical; min-height: 56px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  padding: 8px 10px; font: inherit; font-size: .88rem;
}
.ps-lb-note textarea:focus { outline: none; border-color: var(--pink-500); }

@media (max-width: 768px) {
  .ps-lb-top { padding: 10px; }
  .ps-lb-actions button { width: 34px; height: 34px; font-size: 18px; }
  .ps-lb-actions .ps-lb-zoom-val { min-width: 50px; }
  .ps-lb-close { width: 36px; height: 36px; font-size: 24px; }
  .ps-lb-prev, .ps-lb-next { width: 38px; height: 38px; font-size: 24px; }
  .ps-lb-prev { left: 8px; }
  .ps-lb-next { right: 8px; }
  .ps-lb-panel { margin-bottom: 10px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-lb-img, .ps-lightbox { transition: none; }
}

/* ---------------------------------- View Album theo dịch vụ (#/album/<slug>, js/albums.js) ----------------------------------
   Lưới dạng masonry (CSS columns) để ảnh dọc/ngang giữ đúng tỉ lệ, không giới hạn số ảnh.
   Bấm ảnh mở lightbox xem lớn (phím mũi tên / vuốt để chuyển ảnh, Esc để đóng). */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.gallery-head p { color: var(--navy-500); font-size: 14.5px; max-width: 560px; }
.gallery-head .gallery-count { color: var(--pink-600); font-size: 13px; font-weight: 700; margin-top: 6px; }
.gallery-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-back { display: inline-flex; align-items: center; gap: 6px; }

/* Desktop: chip xuống dòng (chuột không cuộn ngang được khi đã ẩn thanh cuộn). Điện thoại: 1 hàng vuốt ngang (xem @media 560px). */
.gallery-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-bottom: 4px; }
.gallery-switch::-webkit-scrollbar { display: none; }
.gallery-chip {
  flex-shrink: 0; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--pink-200); background: var(--white);
  font-size: 13px; font-weight: 700; color: var(--navy-700);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.gallery-chip:hover { border-color: var(--pink-400); color: var(--pink-700); }
.gallery-chip.active { background: var(--pink-600); border-color: var(--pink-600); color: var(--white); }

/* .btn / flex / grid đặt display riêng sẽ đè thuộc tính hidden -> ẩn tường minh. */
#view-album [hidden] { display: none !important; }

.gallery-up {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--pink-600);
  margin-bottom: 8px;
}
.gallery-up:hover { color: var(--pink-700); }
.gallery-up:hover svg { transform: translateX(-3px); }
.gallery-up svg { transition: transform 0.2s ease; }

.gallery-body { padding: 24px 0 72px; }

/* Tầng dịch vụ: lưới thẻ concept album (ảnh bìa = ảnh đầu tiên của concept). */
.concept-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.concept-album {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--pink-200), var(--pink-400));
  box-shadow: var(--shadow-card);
  display: flex; align-items: flex-end;
  padding: 22px; color: var(--white);
}
.concept-album img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.concept-album::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20,15,25,0.72), rgba(20,15,25,0.15) 50%, transparent 72%);
}
.concept-album-body { display: flex; flex-direction: column; gap: 4px; }
.concept-album-name { font-family: var(--font-heading); font-size: 21px; font-weight: 700; line-height: 1.2; text-shadow: var(--caption-shadow); }
.concept-album-desc { font-size: 13.5px; line-height: 1.45; opacity: 0.95; text-shadow: var(--caption-shadow); }
.concept-album-count {
  align-self: flex-start; margin-top: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.22); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700;
}
.concept-album-arrow {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--pink-600);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.concept-album-arrow svg { width: 18px; height: 18px; }
.concept-album:hover img, .concept-album:focus-visible img { transform: scale(1.06); }
.concept-album:hover .concept-album-arrow, .concept-album:focus-visible .concept-album-arrow { transform: rotate(45deg); }
.gallery-empty { text-align: center; color: var(--navy-500); padding: 48px 0; }
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-item {
  display: block; width: 100%;
  margin: 0 0 16px; padding: 0; border: 0;
  break-inside: avoid;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--pink-100);
  cursor: zoom-in;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gallery-item:not(.loaded) { min-height: 220px; }
.gallery-item.loaded { opacity: 1; transform: none; }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-note { text-align: center; font-size: 12.5px; color: var(--navy-500); margin-top: 8px; }
.gallery-footer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.gallery-missing { padding: 64px 0; text-align: center; }
.gallery-missing p { margin-bottom: 20px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 15, 25, 0.96);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { position: absolute; inset: 64px 76px; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.14); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s ease;
}
.lightbox-btn[hidden] { display: none; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.85); font-size: 13px; font-weight: 700; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 560px) {
  .gallery-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .gallery-actions .btn { flex: 1; justify-content: center; }
  .gallery-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .concept-albums { grid-template-columns: 1fr; gap: 14px; }
  .concept-album { aspect-ratio: 16 / 11; padding: 18px; border-radius: var(--radius-md); }
  .concept-album-name { font-size: 19px; }
  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; border-radius: var(--radius-sm); }
  .gallery-item:not(.loaded) { min-height: 160px; }
  .lightbox-stage { inset: 64px 12px 76px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item, .gallery-item img, .gallery-chip, .concept-album img, .concept-album-arrow { transition: none; }
  .gallery-item { transform: none; }
}

/* Lightbox dùng chung (album + trang nội dung): ảnh hoặc video. */
.lightbox-stage [hidden] { display: none !important; }
.lightbox-stage video { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }

/* ---------------------------------- View Nội dung chi tiết (#/noi-dung/<slug>, js/content.js) ----------------------------------
   Bài viết 1 cột dễ đọc; khối ảnh dùng lại lưới masonry + thẻ concept album của view Album. */
#view-content [hidden] { display: none !important; }
.content-header .eyebrow { margin-bottom: 12px; }
.content-body { padding: 24px 0 72px; }
.content-article { max-width: 880px; margin: 0 auto; }
.content-cover { margin: 0 0 12px; }
.content-cover img {
  display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  background: var(--pink-100);
}
.content-h { font-size: clamp(21px, 3vw, 26px); line-height: 1.3; margin: 40px 0 14px; }
.content-p { font-size: 15.5px; line-height: 1.75; color: var(--navy-700); margin-bottom: 14px; }
.content-p a, .content-list a, .content-note a { color: var(--pink-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.content-list { display: grid; gap: 10px; margin: 4px 0 16px; padding: 0; list-style: none; }
.content-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.65; color: var(--navy-700); }
.content-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.5em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink-400); box-shadow: 0 0 0 4px var(--pink-100);
}
.content-steps { counter-reset: cstep; display: grid; gap: 12px; margin: 4px 0 16px; padding: 0; list-style: none; }
.content-steps li {
  counter-increment: cstep; position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px 16px 66px;
  border: 1px solid var(--pink-100); border-radius: var(--radius-md); background: var(--white);
}
.content-steps li::before {
  content: counter(cstep); position: absolute; left: 18px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-600); color: var(--white); font-weight: 800; font-size: 15px;
}
.content-steps strong { font-size: 15.5px; color: var(--navy-900); }
.content-steps span { font-size: 14.5px; line-height: 1.6; color: var(--navy-500); }
.content-note {
  margin: 32px 0 0; padding: 14px 18px;
  border-radius: var(--radius-md); background: var(--pink-50);
  font-size: 13.5px; line-height: 1.6; color: var(--navy-500);
}
.content-figure { margin: 24px 0; }
.content-figure img { display: block; width: 100%; border-radius: var(--radius-md); }
.content-figure figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--navy-500); }
.content-video video {
  display: block; margin: 0 auto;
  max-width: 100%; max-height: 78vh;
  border-radius: var(--radius-md); background: #000; box-shadow: var(--shadow-card);
}
.content-gallery { margin: 8px 0 12px; }
.gallery-item.is-video { position: relative; }
.content-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(20, 15, 25, 0.45); border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: transform 0.25s ease, background 0.25s ease;
}
.content-play svg { width: 22px; height: 22px; margin-left: 3px; }
.gallery-item.is-video:hover .content-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(224, 65, 122, 0.8); }
.content-albums { margin: 8px 0 12px; }

.content-related-wrap { max-width: 880px; margin: 48px auto 0; padding-top: 8px; border-top: 1px solid var(--pink-100); }
.content-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--pink-100); border-radius: var(--radius-md); overflow: hidden; background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.related-thumb { display: block; aspect-ratio: 16 / 10; background: var(--pink-100); overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
.related-eyebrow { font-size: 12px; font-weight: 700; color: var(--pink-600); }
.related-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--navy-900); }

@media (max-width: 760px) {
  .content-related { grid-template-columns: 1fr; }
  .related-card { flex-direction: row; }
  .related-thumb { width: 116px; flex-shrink: 0; aspect-ratio: auto; }
}
@media (max-width: 560px) {
  .content-cover img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
  .content-h { margin-top: 32px; }
  .content-p { font-size: 15px; }
  .content-steps li { padding: 14px 14px 14px 58px; }
  .content-steps li::before { left: 14px; width: 30px; height: 30px; font-size: 14px; }
  .content-video video { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .related-card, .content-play { transition: none; }
}

/* ============================== Khung chat với Sale (js/sale-chat.js, 2026-09-27) ==============================
   Từ 2026-09-28 là khung NHỎ Ở GÓC phải dưới, mở bằng nút chat nổi (như chatbot ban đầu, cùng vị trí/
   kích thước với .chat-panel trong style.css), thay màn chat toàn trang #/chat-sale hôm 27/09.
   Tin Sale bên trái nền trắng kèm avatar, tin khách bên phải nền hồng (cùng quy ước với hộp thư Admin).
   Hiệu ứng: khung trượt lên khi mở, từng tin "bật lên" khi đến (.sc-pop), nhịp "đang nhập" (.sc-typing). */
.sc-panel {
  position: fixed;
  right: 26px; bottom: 98px;
  z-index: 210;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 130px);
  max-height: calc(100svh - 130px);
  transform: translateY(16px) scale(0.98);
  transform-origin: 100% 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}
.sc-panel.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }

.sc-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pink-50); border: 1px solid var(--pink-100);
}
.sc-avatar-sm { width: 28px; height: 28px; }

.sc-main {
  height: 100%;
  display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.sc-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--pink-100); flex-shrink: 0; }
.sc-head .sc-avatar { width: 36px; height: 36px; }
.sc-head-text { min-width: 0; flex: 1; }
.sc-head-text h2 { font-size: 14.5px; line-height: 1.3; margin: 0; color: var(--navy-900); }
.sc-head-text span { font-size: 12.5px; color: var(--pink-700); font-weight: 600; }
.sc-call {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pink-600); border: 1.5px solid var(--pink-200); transition: background 0.2s;
}
.sc-call:hover { background: var(--pink-50); }
.sc-close {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--navy-500); font-size: 24px; line-height: 1; transition: background 0.2s;
}
.sc-close:hover { background: var(--pink-50); color: var(--pink-700); }

.sc-thread {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px 14px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--pink-50), #fffafc 60%);
}
.sc-row { display: flex; align-items: flex-end; gap: 10px; }
.sc-row.from-me { justify-content: flex-end; }
.sc-stack { display: flex; flex-direction: column; gap: 4px; max-width: 82%; min-width: 0; }
.sc-row.from-me .sc-stack { align-items: flex-end; }
.sc-row.from-sale .sc-stack { align-items: flex-start; }
.sc-name { font-size: 11.5px; font-weight: 700; color: var(--navy-500); padding-left: 4px; }
.sc-name em { font-style: normal; font-weight: 500; color: var(--navy-300); }
.sc-bubble {
  padding: 9px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.sc-row.from-sale .sc-bubble { background: var(--white); border: 1px solid var(--pink-100); color: var(--navy-900); border-top-left-radius: 6px; }
.sc-row.from-me .sc-bubble { background: linear-gradient(135deg, var(--pink-500), var(--pink-600)); color: var(--white); border-top-right-radius: 6px; }
.sc-bubble strong { color: var(--pink-700); }
.sc-row time { font-size: 10.5px; color: var(--navy-300); padding: 0 4px; }

.sc-day { display: flex; justify-content: center; }
.sc-day span { font-size: 11px; font-weight: 600; color: var(--navy-500); background: var(--white); border: 1px solid var(--pink-100); border-radius: var(--radius-pill); padding: 3px 12px; }

.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sc-chip {
  padding: 7px 12px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1.5px solid var(--pink-400); background: var(--white); color: var(--pink-700);
  font: inherit; font-size: 12.5px; font-weight: 700; transition: background 0.2s, transform 0.15s;
}
.sc-chip:hover { background: var(--pink-100); }
.sc-chip:active { transform: scale(0.96); }
.sc-chip:disabled { opacity: 0.45; cursor: not-allowed; transform: none; background: var(--white); }

/* Trạng thái kết nối máy chủ chat (server/sale-chat.js): đang kết nối / cần đăng nhập lại. */
.sc-status { padding: 8px 14px; font-size: 12.5px; line-height: 1.5; color: #8a5a00; background: #fff6e0; border-bottom: 1px solid #f4e2b8; }
.sc-status-auth { color: var(--pink-700); background: var(--pink-50); border-bottom-color: var(--pink-100); }
.sc-status button { border: none; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--pink-700); text-decoration: underline; cursor: pointer; }

/* Tin khách đang gửi / gửi lỗi (chưa lên server). */
.sc-row.from-me .sc-bubble.sc-sending { opacity: 0.7; }
.sc-row.from-me .sc-bubble.sc-failed { background: var(--white); color: var(--navy-700); border: 1.5px dashed var(--pink-400); }
.sc-retry { border: none; background: none; padding: 0 4px; font: inherit; font-size: 11.5px; font-weight: 700; color: #c22d2d; cursor: pointer; }
.sc-retry:hover { text-decoration: underline; }

/* Dấu "..." đang trả lời nằm dưới cùng cuộc trò chuyện, kèm dòng chữ cho dễ nhận ra. */
.sc-typing-row { display: flex; align-items: center; gap: 10px; }
.sc-typing-note { font-size: 12px; font-style: italic; color: var(--navy-500); }
.sc-typing { display: inline-flex; gap: 4px; padding: 13px 16px; }
.sc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-400); animation: typingDot 1s infinite ease-in-out; }
.sc-typing span:nth-child(2) { animation-delay: 0.15s; }
.sc-typing span:nth-child(3) { animation-delay: 0.3s; }

/* Tin vừa đến "bật lên" từ góc của người gửi, như ứng dụng nhắn tin thật. */
.sc-pop { animation: scPop 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.sc-row.from-sale .sc-pop { transform-origin: 0 100%; }
.sc-row.from-me .sc-pop { transform-origin: 100% 100%; }
.sc-typing { animation: scPop 0.25s ease-out both; transform-origin: 0 100%; }
@keyframes scPop { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }

/* Màn chuyển cảnh từ Trang chủ vào album / trang nội dung / Ảnh của tôi (js/router.js veilTo, 29/09):
   nền trắng hồng loang tròn từ chỗ bấm, giữa màn là tên trang; tan đi thì trang mới trồi lên (.view-enter). */
.svc-zoom {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, var(--white) 0%, var(--pink-50) 45%, var(--pink-100) 100%);
}
.svc-zoom-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 24px; text-align: center; }
.svc-zoom-heart { color: var(--pink-600); font-size: 22px; line-height: 1; }
.svc-zoom-name {
  font-family: var(--font-heading); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 40px); letter-spacing: inherit; color: var(--navy-900);
}
.svc-zoom-inner { letter-spacing: 0.14em; }
.svc-zoom-line { width: 72px; height: 2px; border-radius: 2px; background: var(--pink-500); transform-origin: center; }
.svc-zoom.is-long .svc-zoom-name { font-size: clamp(18px, 2.4vw, 28px); max-width: 22ch; line-height: 1.35; }
/* Trang mới "trồi lên" sau màn chuyển cảnh, hoặc khi đi tiếp bên trong album / nội dung (js/router.js).
   Ảnh của tôi chỉ mờ dần phần thân: ở đó có thanh tóm tắt position:fixed, transform sẽ làm nó nhảy. */
.view-enter .page-header > .container { animation: viewEnter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.view-enter .page-header ~ section { animation: viewEnter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both; }
#view-chon-anh.view-enter .page-header ~ section { animation-name: viewFade; }
@keyframes viewEnter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes viewFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .view-enter .page-header > .container, .view-enter .page-header ~ section { animation: none; } }

.sc-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; flex-shrink: 0; border-top: 1px solid var(--pink-100); background: var(--white); }
.sc-composer textarea {
  flex: 1; min-width: 0; resize: none; max-height: 132px;
  border: 1px solid var(--pink-200); border-radius: 20px; padding: 9px 14px;
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.45; color: var(--navy-900);
}
.sc-composer textarea:focus { outline: none; border-color: var(--pink-500); box-shadow: 0 0 0 3px var(--pink-100); }
.sc-send {
  width: 40px; height: 40px; border-radius: 50%; border: none; flex-shrink: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600)); color: var(--white);
  transition: opacity 0.2s, transform 0.15s;
}
.sc-send:active { transform: scale(0.94); }
.sc-send:disabled { opacity: 0.4; cursor: not-allowed; }
.sc-demo { margin: 0; padding: 0 12px 8px; flex-shrink: 0; font-size: 11px; color: var(--navy-300); text-align: center; background: var(--white); }

/* Điện thoại: cùng vị trí với .chat-panel (style.css), cao gần hết màn nhưng chừa nút chat nổi. */
@media (max-width: 720px) {
  .sc-panel { right: 12px; left: 12px; width: auto; max-width: none; bottom: 88px; height: calc(100svh - 110px); max-height: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-pop, .sc-typing, .sc-typing span { animation: none; }
  .sc-panel, .sc-chip, .sc-send, .sc-call, .sc-close { transition: none; }
}

/* ===== Tab "Ảnh đã chỉnh": ô link ảnh đã chỉnh (khung hoa lá) + chat với thợ ===== */
.ps-tab { position: relative; }
.ps-tab-dot {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink-600); box-shadow: 0 0 0 2px var(--white);
}
.ps-edited { display: grid; gap: 20px; max-width: 760px; margin: 8px auto 40px; }
.ps-result-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background:
    radial-gradient(circle at 12% 0%, #fff0f5 0, transparent 55%) padding-box,
    radial-gradient(circle at 100% 100%, #f1fbf3 0, transparent 50%) padding-box,
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, #ffc9dd, #ffe2c2 45%, #c9ecd1) border-box;
  box-shadow: var(--shadow-card);
}
.ps-result-deco { position: absolute; width: 118px; height: 118px; pointer-events: none; }
.ps-result-deco--tl { top: -6px; left: -6px; transform: rotate(-90deg); }
.ps-result-deco--br { bottom: -6px; right: -6px; transform: rotate(90deg); }
.ps-result-inner { position: relative; text-align: center; padding: 34px 28px 30px; }
.ps-result-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink-100), #ffe9d6); color: var(--pink-600);
}
.ps-result-icon svg { width: 28px; height: 28px; }
.ps-result-inner h3 { font-size: 20px; margin-bottom: 4px; }
.ps-result-meta { font-size: 13px; color: var(--navy-500); margin-bottom: 16px; }
.ps-result-meta strong { color: var(--pink-600); }
.ps-result-status { display: inline-block; padding: 1px 10px; border-radius: var(--radius-pill); background: var(--pink-50); color: var(--pink-700); font-weight: 700; font-size: 12px; }
.ps-result-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600)); color: var(--white);
  font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px rgba(224, 65, 122, 0.28);
  transition: transform .15s ease, box-shadow .2s ease;
}
.ps-result-link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 65, 122, 0.34); color: var(--white); }
.ps-result-link svg { width: 18px; height: 18px; }
.ps-result-url {
  display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 14px auto 0;
  padding: 6px 6px 6px 14px; border-radius: var(--radius-pill); background: var(--pink-50); border: 1px dashed var(--pink-200);
}
.ps-result-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--navy-500); text-align: left; }
.ps-result-copy {
  flex-shrink: 0; border: none; border-radius: var(--radius-pill); background: var(--white); color: var(--pink-600);
  font-family: var(--font-body); font-weight: 700; font-size: 12px; padding: 6px 12px; cursor: pointer; box-shadow: var(--shadow-soft);
}
.ps-result-time { font-size: 12px; color: var(--navy-500); margin-top: 10px; }
.ps-result-empty, .ps-result-waiting { font-size: 14px; color: var(--navy-700); max-width: 460px; margin: 0 auto; line-height: 1.6; }
.ps-result-pulse {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #f6a723; margin-right: 8px; vertical-align: 1px;
  animation: psPayPulse 1.4s ease-in-out infinite;
}

.ps-chat-card { background: var(--white); border: 1px solid var(--pink-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.ps-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--pink-50); background: linear-gradient(90deg, var(--pink-50), var(--white)); }
.ps-chat-head h3 { font-size: 16px; margin-bottom: 2px; }
.ps-chat-head p { font-size: 12.5px; color: var(--navy-500); }
.ps-chat-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pink-100); color: var(--pink-600); }
.ps-chat-avatar svg { width: 20px; height: 20px; }
.ps-chat-list { display: flex; flex-direction: column; gap: 10px; min-height: 140px; max-height: 360px; overflow-y: auto; padding: 18px 20px; background: #fffafc; }
.ps-chat-empty { margin: auto; text-align: center; font-size: 13px; color: var(--navy-500); max-width: 320px; }
.ps-msg { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.ps-msg p { white-space: pre-wrap; word-break: break-word; }
.ps-msg time { display: block; font-size: 10.5px; margin-top: 3px; opacity: .7; }
.ps-msg.from-me { align-self: flex-end; background: linear-gradient(135deg, var(--pink-500), var(--pink-600)); color: var(--white); border-bottom-right-radius: 5px; }
.ps-msg.from-me time { text-align: right; }
.ps-msg.from-staff { align-self: flex-start; background: var(--white); color: var(--navy-900); border: 1px solid var(--pink-100); border-bottom-left-radius: 5px; }
.ps-msg-name { display: block; font-size: 11.5px; font-weight: 700; color: var(--pink-600); margin-bottom: 2px; }
.ps-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--pink-50); }
.ps-chat-form textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 14px; border-radius: 21px;
  border: 1px solid var(--pink-200); font-family: var(--font-body); font-size: 14px; line-height: 1.45;
}
.ps-chat-form textarea:focus { outline: none; border-color: var(--pink-500); }
.ps-chat-form textarea:disabled { background: #f7f6fa; cursor: not-allowed; }
.ps-chat-send {
  width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600)); color: var(--white);
}
.ps-chat-send svg { width: 20px; height: 20px; }
.ps-chat-send:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) {
  .ps-result-inner { padding: 30px 18px 24px; }
  .ps-result-deco { width: 88px; height: 88px; }
  .ps-result-link { padding: 12px 20px; font-size: 14px; }
  .ps-chat-list { padding: 14px; max-height: 320px; }
  .ps-msg { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { .ps-result-pulse { animation: none; } }

/* Chat "Ảnh đã chỉnh": dấu "thợ đang trả lời" */
.ps-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ps-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-400); animation: psTyping 1.1s ease-in-out infinite; }
.ps-typing i:nth-child(2) { animation-delay: .15s; }
.ps-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes psTyping { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ps-typing i { animation: none; } }

/* Tab "Ảnh đã chỉnh": .ps-edited đặt display:grid nên phải ẩn tường minh khi [hidden]
   (không thì khung hiện cả ở tab Tất cả / Ảnh gốc / Yêu thích) */
.ps-edited[hidden], .ps-chat-card[hidden] { display: none; }
/* Chưa gửi: các bước + nút đi chọn ảnh */
.ps-send-steps { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 420px; margin: 0 auto 22px; text-align: left; }
.ps-send-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--navy-700); }
.ps-send-steps li > span {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1.5px solid var(--pink-200); color: var(--pink-600); font-weight: 800; font-size: 13px;
}
.ps-send-steps li.done > span { background: var(--pink-600); border-color: var(--pink-600); color: var(--white); }
.ps-send-steps strong { color: var(--pink-600); white-space: nowrap; }
.ps-send-cta { border: none; cursor: pointer; font-family: var(--font-body); }
/* Đã gửi: tiến độ 3 bước */
.ps-progress-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 460px; margin: 2px auto 18px; }
.ps-progress-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.35; color: var(--navy-500); text-align: center; padding: 0 4px; }
.ps-progress-steps li > span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--pink-200); }
.ps-progress-steps li + li::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--pink-100); }
.ps-progress-steps li.done + li::before { background: var(--pink-500); }
.ps-progress-steps li.done > span { background: var(--pink-600); border-color: var(--pink-600); }
.ps-progress-steps li.current > span { border-color: var(--pink-600); box-shadow: 0 0 0 4px rgba(224, 65, 122, 0.16); }
.ps-progress-steps li.done, .ps-progress-steps li.current { color: var(--navy-900); font-weight: 700; }

/* Nút trong thông báo "Bạn đã gửi N ảnh..." (nền hồng) */
.ps-banner-btn {
  display: inline-flex; align-items: center; padding: 7px 16px; border: none; border-radius: var(--radius-pill);
  background: var(--white); color: var(--pink-600); font-family: var(--font-body); font-size: 13px; font-weight: 800;
  cursor: pointer; transition: transform .1s ease, box-shadow .2s ease;
}
.ps-banner-btn:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.ps-banner-btn:active { transform: scale(.97); }

/* "Chat với thợ chỉnh ảnh" nổi bật hơn: đầu khung hồng đậm, viền + bóng hồng, nền chấm nhẹ,
   câu hỏi nhanh, nút gửi lớn (đè lên kiểu gốc ở trên) */
.ps-chat-card { border: 2px solid var(--pink-200); box-shadow: 0 18px 44px rgba(224, 65, 122, 0.18); }
.ps-chat-head {
  padding: 18px 22px; border-bottom: none; color: var(--white);
  background: linear-gradient(120deg, var(--pink-500), var(--pink-600) 55%, #f27ba6);
}
.ps-chat-head h3 { color: var(--white); font-size: 18px; margin-bottom: 3px; }
.ps-chat-head p { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.92); font-size: 12.5px; }
.ps-chat-avatar { width: 48px; height: 48px; background: var(--white); color: var(--pink-600); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28); }
.ps-chat-avatar svg { width: 24px; height: 24px; }
.ps-chat-online { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75); }
.ps-chat-list {
  min-height: 220px; max-height: 440px;
  background: radial-gradient(circle at 1px 1px, rgba(224, 65, 122, 0.08) 1px, transparent 0) 0 0 / 18px 18px, #fff8fb;
}
.ps-msg.from-staff { box-shadow: 0 3px 10px rgba(44, 42, 61, 0.06); }
.ps-msg.from-me { box-shadow: 0 4px 12px rgba(224, 65, 122, 0.25); }
.ps-chat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px; scrollbar-width: none; background: var(--white); }
.ps-chat-quick::-webkit-scrollbar { display: none; }
.ps-chat-quick button {
  flex-shrink: 0; white-space: nowrap; padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--pink-200); background: var(--pink-50); color: var(--pink-700);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .1s ease;
}
.ps-chat-quick button:hover:not(:disabled) { background: var(--pink-100); border-color: var(--pink-400); }
.ps-chat-quick button:active:not(:disabled) { transform: scale(.97); }
.ps-chat-quick button:disabled { opacity: .5; cursor: not-allowed; }
.ps-chat-form { border-top: none; padding: 10px 14px 16px; background: var(--white); }
.ps-chat-form textarea { min-height: 46px; padding: 12px 16px; border-width: 1.5px; border-radius: 23px; }
.ps-chat-form textarea:focus { box-shadow: 0 0 0 3px rgba(224, 65, 122, 0.15); }
.ps-chat-send { width: 46px; height: 46px; box-shadow: 0 6px 16px rgba(224, 65, 122, 0.35); transition: transform .1s ease, box-shadow .2s ease; }
.ps-chat-send:hover:not(:disabled) { box-shadow: 0 8px 20px rgba(224, 65, 122, 0.45); }
.ps-chat-send:active:not(:disabled) { transform: scale(.94); }
@media (max-width: 560px) {
  .ps-chat-head { padding: 14px 16px; }
  .ps-chat-avatar { width: 42px; height: 42px; }
  .ps-chat-list { min-height: 200px; }
}
