/* ============================================
   BOOKINGS — Booking page styles
   Includes: Page container, booking cards,
   compact booking grid, campaign sections,
   talent suggest dropdown, drag & drop,
   booking type badges, booking card footer,
   edit history, booking detail modal,
   brand filter chips, status badges & filters,
   recalculate progress, export button,
   customer lookup, bookings empty state
   ============================================ */

/* ============================================ PAGE CONTAINER (Bookings/Finance/Calendar) ============================================ */
.page-container {
  padding: 1.5rem 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-title .material-symbols-outlined {
  font-size: 1.6rem;
  color: var(--primary);
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-count {
  font-size: 0.7rem;
  background: var(--primary-alpha-20);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.active-dot {
  background: var(--koc-color);
}

.past-dot {
  background: var(--text-dim);
}

.empty-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 1.5rem;
  text-align: center;
}

/* ============================================ BOOKINGS ============================================ */
.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.booking-card {
  padding: 1.25rem;
  border-radius: var(--glass-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-fast);
}

.booking-card:hover {
  border-color: var(--primary-alpha-30);
  transform: translateY(-2px);
}

.booking-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.booking-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-alpha-20);
  border: 2px solid var(--primary-alpha-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.booking-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.booking-status {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-status-active {
  background: rgba(45, 212, 191, 0.12);
  color: var(--koc-color);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.booking-status-completed {
  background: var(--white-05);
  color: var(--text-dim);
  border: 1px solid var(--white-05);
}

.booking-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.booking-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.booking-info-row .material-symbols-outlined {
  font-size: 1rem;
  color: var(--text-dim);
}

.booking-notes {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 0.35rem 0.5rem;
  background: var(--white-05);
  border-radius: 6px;
  margin-top: 0.25rem;
}

.booking-card-footer {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  border-top: 1px solid var(--white-05);
  padding-top: 0.5rem;
}

.booking-card-action {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--white-05);
  border: 1px solid var(--white-05);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.booking-card-action:hover {
  background: var(--white-10);
  color: var(--primary);
}

.booking-card-action .material-symbols-outlined {
  font-size: 1rem;
}

/* ── Compact booking grid for campaigns (20-60 cards) ── */
.bookings-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.5rem;
  min-height: 60px;
}

.bookings-grid-compact .booking-card {
  padding: 0.6rem;
  gap: 0.4rem;
}

.bookings-grid-compact .booking-card-header {
  gap: 0.4rem;
}

.bookings-grid-compact .booking-card-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.55rem;
}

.bookings-grid-compact .booking-card-name {
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookings-grid-compact .booking-card-tags {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.bookings-grid-compact .booking-card-footer {
  padding-top: 0.3rem;
}

/* Completed booking card */
.booking-card.bk-completed {
  opacity: 0.45;
  filter: grayscale(30%);
}

.booking-card.bk-completed:hover {
  opacity: 0.7;
}

/* Compact body */
.booking-card-body-compact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bk-info-compact {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.bk-info-compact .material-symbols-outlined {
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.6;
}

/* Completion toggle button — icon-only, easy to hit */
.bk-card-complete {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  cursor: pointer;
  color: var(--text-dim);
  transition: var(--transition-fast);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bk-card-complete:hover {
  background: rgba(45, 212, 191, 0.15);
  color: var(--koc-color);
  border-color: rgba(45, 212, 191, 0.3);
  transform: scale(1.1);
}

.bk-card-complete.active {
  background: rgba(45, 212, 191, 0.2);
  color: var(--koc-color);
  border-color: rgba(45, 212, 191, 0.4);
}

.bk-card-complete .material-symbols-outlined {
  font-size: 1.1rem;
}

/* Special care button */
.bk-card-care {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-dim);
  transition: var(--transition-fast);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bk-card-care:hover {
  color: #ef4444;
  transform: scale(1.2);
}

.bk-card-care.active {
  color: #ef4444;
}

.bk-card-care .material-symbols-outlined {
  font-size: 0.9rem;
}

/* Special care card red border */
.booking-card.bk-special-care {
  border: 2px solid rgba(239, 68, 68, 0.5) !important;
  outline-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.12);
}

/* Larger avatar for booking cards */
.booking-card-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-alpha-30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--white-10);
}

.bk-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bk-avatar-initials {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

/* Booking progress card background */
.booking-card.bk-stage-waiting {
  --bk-stage-bg: linear-gradient(145deg, #fffaf1, #eadfce);
  --bk-stage-border: #967020;
}

.booking-card.bk-stage-experienced {
  --bk-stage-bg: linear-gradient(145deg, #eef8ef, #dcefe1);
  --bk-stage-border: #6d9e70;
}

.booking-card.bk-stage-producing {
  --bk-stage-bg: linear-gradient(145deg, #fff4dc, #f0dfba);
  --bk-stage-border: #c28a32;
}

.booking-card.bk-stage-feedback {
  --bk-stage-bg: linear-gradient(145deg, #f8ecfb, #e7d7f3);
  --bk-stage-border: #9a73b2;
}

.booking-card.bk-stage-aired {
  --bk-stage-bg: linear-gradient(145deg, #e9f4fb, #d5e7f1);
  --bk-stage-border: #618ea8;
}

.booking-card.bk-stage-measured {
  --bk-stage-bg: linear-gradient(145deg, #eaf7f3, #d7ece6);
  --bk-stage-border: #578f80;
}

.booking-card.bk-stage-accepted {
  --bk-stage-bg: linear-gradient(145deg, #eef7e5, #dceccf);
  --bk-stage-border: #739755;
}

.booking-card[class*="bk-stage-"] {
  background-image: var(--bk-stage-bg);
  border-color: var(--bk-stage-border);
}

/* Booking card notes */
.bk-card-notes {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 0.2rem 0.4rem;
  background: var(--white-05);
  border-radius: 4px;
  margin-top: 0.15rem;
  max-height: 2.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contract code badge */
.bk-contract-badge {
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(186, 158, 105, 0.1);
  color: var(--primary);
  border: 1px solid rgba(186, 158, 105, 0.2);
  letter-spacing: 0.03em;
}

/* Campaign filter tags */
.camp-filter-tags {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.camp-filter-tag {
  background: var(--white-05);
  border: 1px solid var(--white-10);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.camp-filter-tag:hover {
  background: var(--white-10);
  color: var(--text-light);
}

.camp-filter-tag.active {
  background: rgba(186, 158, 105, 0.15);
  color: var(--primary);
  border-color: rgba(186, 158, 105, 0.3);
}

/* Brand checkbox group for campaign form */
.brand-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.brand-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  cursor: pointer;
  transition: var(--transition-fast);
}

.brand-checkbox:hover {
  background: var(--white-05);
  border-color: var(--white-15, rgba(255, 255, 255, 0.15));
}

.brand-checkbox input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.brand-checkbox input[type="checkbox"]:checked+.brand-checkbox-label {
  color: var(--brand-color, var(--primary));
  font-weight: 600;
}

.brand-checkbox-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

/* Booking-specific autocomplete dropdown (fixed z-index) */
.booking-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #2a2520;
  border: 1px solid rgba(186, 158, 105, 0.25);
  border-radius: 10px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.3);
  margin-top: 4px;
}

.booking-autocomplete-dropdown .staff-ac-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.booking-autocomplete-dropdown .staff-ac-item:last-child {
  border-bottom: none;
}

.booking-autocomplete-dropdown .staff-ac-item:hover {
  background: rgba(186, 158, 105, 0.12);
}

.booking-autocomplete-dropdown .staff-ac-name {
  color: var(--text-light);
  font-weight: 600;
}

.booking-autocomplete-dropdown .staff-ac-dept {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-left: auto;
}

/* Form hint text */
.form-hint {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  font-style: italic;
}

/* ======= Talent Suggest Dropdown (Booking form) ======= */
.talent-suggest-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(35, 31, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(186, 158, 105, 0.2);
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

.talent-suggest-item {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: background 0.15s;
}

.talent-suggest-item:hover {
  background: rgba(186, 158, 105, 0.12);
}

.talent-suggest-item+.talent-suggest-item {
  border-top: 1px solid rgba(186, 158, 105, 0.08);
}

/* ======= Campaign Sections ======= */
.campaign-section {
  margin-bottom: 1rem;
  padding: 1rem;
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.campaign-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.campaign-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.camp-brand-badge {
  background: rgba(186, 158, 105, 0.12);
  color: var(--primary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
}

.camp-total {
  color: var(--primary);
  font-weight: 600;
}

.camp-delete-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.camp-delete-btn:hover {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
}

/* Btn outline pill */
.btn-outline-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-outline-pill:hover {
  background: rgba(186, 158, 105, 0.1);
}

/* ======= Drag & Drop ======= */
.booking-card[draggable] {
  cursor: grab;
  transition: transform 0.15s, opacity 0.15s;
}

.booking-card.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.booking-card.long-press-pending {
  transform: scale(0.97);
  box-shadow: 0 0 0 2px var(--primary);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.campaign-drop-zone {
  min-height: 60px;
  border: 2px dashed transparent;
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  padding: 0.25rem;
}

.campaign-drop-zone.drop-active {
  border-color: var(--primary);
  background: rgba(186, 158, 105, 0.04);
}

/* ======= Booking Type Badges ======= */
.bk-type-badge {
  display: inline-block;
  font-size: 0.55rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bk-type-kol {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.bk-type-koc {
  background: rgba(74, 222, 128, 0.16);
  color: #86efac;
}

.bk-type-model {
  background: rgba(186, 158, 105, 0.15);
  color: var(--primary);
}

.bk-type-khách-đẹp {
  background: rgba(192, 132, 252, 0.16);
  color: #d8b4fe;
}

/* ======= Booking Card Footer (edit/delete/history) ======= */
.booking-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.2rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bk-card-edit,
.bk-card-delete,
.bk-card-history,
.bk-card-detail {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.bk-card-edit:hover,
.bk-card-history:hover,
.bk-card-detail:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
}

.bk-card-detail:hover {
  color: var(--accent);
  border-color: rgba(186, 158, 105, 0.3);
}

.bk-card-delete:hover {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
}

/* ======= Edit History ======= */
.bk-history-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bk-history-item:last-child {
  border-bottom: none;
}

.bk-history-author {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.bk-history-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.bk-history-changes {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ======= Bookings Empty ======= */
.bookings-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}

/* ======= Booking Detail Modal ======= */
.bkd-modal {
  max-width: 600px;
  width: 94%;
  padding: 1.5rem;
  max-height: 85vh;
  overflow-y: auto;
}

.bkd-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bkd-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.bkd-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bkd-avatar-initials {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.bkd-header-info {
  flex: 1;
  min-width: 0;
}

.bkd-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bkd-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
}

.bkd-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.bkd-datetime {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Link mạng xã hội của talent trong chi tiết booking (Mục 1) */
.bkd-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.bkd-socials .platform-icon {
  width: 28px;
  height: 28px;
}
.bkd-socials .platform-icon svg {
  width: 22px;
  height: 22px;
}

.bkd-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.bkd-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.bkd-info-item>.material-symbols-outlined {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 0.1rem;
}

.bkd-info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.1rem;
}

.bkd-info-value {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.bkd-section {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.bkd-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.bkd-section-title .material-symbols-outlined {
  font-size: 1rem;
}

.bkd-costume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.bkd-costume-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.bkd-costume-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.bkd-costume-caption {
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(0, 0, 0, 0.4);
}

.bkd-costume-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #f87171;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.bkd-costume-item:hover .bkd-costume-remove {
  opacity: 1;
}

.bkd-costume-remove .material-symbols-outlined {
  font-size: 0.8rem;
}

.bkd-costume-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 120px;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

.bkd-costume-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(186, 158, 105, 0.05);
}

.bkd-costume-add .material-symbols-outlined {
  font-size: 1.5rem;
}

/* Paste zone */
.bkd-paste-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.bkd-paste-zone:focus,
.bkd-paste-zone:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(186, 158, 105, 0.04);
}

.bkd-paste-zone .material-symbols-outlined {
  font-size: 1rem;
}

.bkd-paste-zone.bkd-paste-success {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

/* Reusable image remove button */
.bkd-img-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #f87171;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.bkd-costume-item:hover .bkd-img-remove {
  opacity: 1;
}

.bkd-img-remove .material-symbols-outlined {
  font-size: 0.8rem;
}

.bkd-size-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bkd-size-btn {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.bkd-size-btn:hover {
  border-color: rgba(186, 158, 105, 0.3);
  color: var(--text-light);
}

.bkd-size-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

.bkd-notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ========== Brand Filter Chips ========== */

.brand-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.brand-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.brand-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.brand-filter-chip.active {
  background: var(--chip-bg, rgba(186, 158, 105, 0.15));
  border-color: var(--chip-border, rgba(186, 158, 105, 0.4));
  color: var(--chip-color, var(--primary));
  font-weight: 600;
}

/* ========== Status Badges on Booking Cards ========== */

.bk-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.bk-status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.bk-status-confirmed {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.bk-status-done {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.28);
}

.bk-status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ========== Status Filter Chips ========== */

.status-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.status-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 0.3rem 0.7rem;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.status-filter-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.status-filter-chip.active {
  background: rgba(186, 158, 105, 0.12);
  border-color: rgba(186, 158, 105, 0.35);
  color: var(--primary);
  font-weight: 600;
}

/* ========== Recalculate Progress ========== */

.recalc-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(186, 158, 105, 0.1);
  border: 1px solid rgba(186, 158, 105, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
  animation: fadeInInfo 0.3s ease;
}

.recalc-progress .recalc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(186, 158, 105, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.recalc-progress .recalc-text {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
}

.recalc-progress .recalc-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* ========== Export Button on Booking Card ========== */

.bk-card-export {
  color: var(--primary) !important;
  opacity: 0.7;
}

.bk-card-export:hover {
  opacity: 1;
  background: rgba(186, 158, 105, 0.1);
}


/* ============================================
   UNIFIED CUSTOMER LOOKUP
   ============================================ */

/* Phone input row */
.bf-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.bf-phone-row .form-input {
  flex: 1;
}

/* Customer badges */
.customer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.customer-badge-returning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.customer-badge-new {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.customer-badge-vip {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Customer lookup loading */
.customer-lookup-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.customer-lookup-loading .spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid var(--white-10);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Customer info panel */
.customer-info-panel {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-info-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.customer-info-name .material-symbols-outlined {
  font-size: 0.9rem;
  color: var(--primary);
  vertical-align: text-bottom;
}

/* Brands used list */
.customer-brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.customer-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  color: var(--text-muted);
}

.customer-brand-chip .brand-icon {
  font-size: 0.7rem;
}

/* Service history toggle */
.customer-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.customer-history-toggle:hover {
  color: var(--primary-hover);
}

.customer-history-toggle .material-symbols-outlined {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.customer-history-toggle.expanded .material-symbols-outlined {
  transform: rotate(180deg);
}

/* Service history panel */
.customer-history-panel {
  margin-top: 0.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.customer-history-panel.expanded {
  max-height: 300px;
  opacity: 1;
  overflow-y: auto;
}

.customer-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.customer-history-table th {
  padding: 0.35rem 0.4rem;
  text-align: left;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6rem;
  border-bottom: 1px solid var(--white-10);
  white-space: nowrap;
}

.customer-history-table td {
  padding: 0.3rem 0.4rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--white-05);
}

.customer-history-table tr:hover td {
  color: var(--text-light);
  background: var(--white-05);
}

.customer-history-company {
  font-weight: 600;
  color: var(--primary);
}

.customer-history-revenue {
  color: #4ade80;
  font-weight: 600;
}

/* Badge row in booking form */
.bf-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

/* ============================================
   UX REDESIGN — Booking touch targets
   ============================================ */
@media (max-width: 760px) {
  .bookings-grid,
  .bookings-grid-compact {
    grid-template-columns: 1fr;
  }

  .booking-card,
  .campaign-section {
    border-radius: 14px;
  }

  .bk-avatar-initials {
    color: #fff0ba;
  }

  .bk-type-badge,
  .bk-status-badge {
    color: #fff7df;
  }

  .bk-type-kol,
  .bk-status-confirmed {
    background: #123a66;
    border-color: rgba(161, 205, 255, 0.3);
  }

  .bk-type-koc,
  .bk-status-done {
    background: #0f3f2b;
    border-color: rgba(166, 255, 204, 0.28);
  }

  .bk-type-model,
  .bk-status-pending {
    background: #4a3514;
    border-color: rgba(255, 222, 158, 0.3);
  }

  .campaign-header,
  .booking-card-header,
  .bkd-header,
  .bkd-title-row {
    flex-wrap: wrap;
  }

  .booking-card-footer {
    gap: 8px;
  }

  .booking-card-action,
  .bk-card-edit,
  .bk-card-delete,
  .bk-card-history,
  .bk-card-detail,
  .camp-delete-btn,
  .btn-outline-pill,
  .customer-history-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .btn-outline-pill {
    justify-content: center;
    border-radius: 12px;
  }

  .bkd-info-grid,
  .bkd-costume-grid {
    grid-template-columns: 1fr;
  }

  .customer-history-panel {
    overflow-x: auto;
  }

  .customer-history-table {
    min-width: 520px;
  }
}

/* ============================================
   LIQUID GLASS LEVEL 2 — bookings and campaigns
   ============================================ */
.page-container > .glass-panel,
.campaign-section,
.booking-form-container,
.booking-detail-container,
.campaign-form-container,
.booking-card,
.brand-filter-panel,
.customer-lookup-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
}

.booking-card {
  overflow: hidden;
}

.booking-card:hover {
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow);
}

.booking-card-avatar,
.booking-card-avatar-lg,
.bk-card-complete,
.booking-card-action,
.camp-filter-tag,
.brand-checkbox,
.btn-outline-pill,
.bk-card-edit,
.bk-card-delete,
.bk-card-detail,
.status-filter-chip {
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.08), rgba(255, 248, 236, 0.025));
  border-color: rgba(232, 205, 145, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.07);
}

.booking-card-action:hover,
.bk-card-complete:hover,
.camp-filter-tag:hover,
.brand-checkbox:hover,
.btn-outline-pill:hover,
.bk-card-edit:hover,
.bk-card-delete:hover,
.bk-card-detail:hover,
.status-filter-chip:hover {
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.12), rgba(215, 184, 117, 0.08));
  border-color: rgba(232, 205, 145, 0.3);
  transform: translateY(-1px);
}

.booking-card-footer {
  border-top-color: rgba(232, 205, 145, 0.12);
}

.booking-notes,
.bk-card-notes,
.booking-info-pill,
.customer-badge,
.booking-status,
.booking-type-badge {
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.07);
}

.booking-form-overlay,
.booking-detail-overlay,
.campaign-form-overlay {
  background: rgba(6, 5, 4, 0.66);
  backdrop-filter: blur(12px) saturate(1.18);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
}

.booking-form-container,
.booking-detail-container,
.campaign-form-container {
  background: linear-gradient(145deg, rgba(31, 26, 21, 0.88), rgba(14, 11, 8, 0.8));
  border-color: rgba(232, 205, 145, 0.28);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 248, 236, 0.08);
}

.booking-form-container input,
.booking-form-container select,
.booking-form-container textarea,
.booking-detail-container input,
.booking-detail-container select,
.booking-detail-container textarea,
.campaign-form-container input,
.campaign-form-container select,
.campaign-form-container textarea {
  background: linear-gradient(145deg, rgba(13, 11, 9, 0.42), rgba(255, 248, 236, 0.035));
  border-color: rgba(232, 205, 145, 0.18);
  color: var(--text-light);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.05);
}

.booking-form-container input:focus,
.booking-form-container select:focus,
.booking-form-container textarea:focus,
.booking-detail-container input:focus,
.booking-detail-container select:focus,
.booking-detail-container textarea:focus,
.campaign-form-container input:focus,
.campaign-form-container select:focus,
.campaign-form-container textarea:focus {
  border-color: rgba(232, 205, 145, 0.5);
  box-shadow: var(--focus-ring), inset 0 1px 0 rgba(255, 248, 236, 0.06);
}

.booking-autocomplete-dropdown,
.talent-suggest-dropdown {
  border-radius: 14px;
}

/* ============================================
   Tiến độ & hiệu quả booking (booking-progress.js)
   ============================================ */

/* --- Hot tier color (shared) --- */
.bk-hot-hot { --hot-color: #ff6a3d; }
.bk-hot-good { --hot-color: #5fd39a; }
.bk-hot-normal { --hot-color: var(--accent); }
.bk-hot-low { --hot-color: #c98b8b; }
.bk-hot-none { --hot-color: var(--text-dim); }

/* --- Stepper (chi tiết booking) --- */
.bkd-stepper {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}
.bkd-stage {
  flex: 1 0 auto;
  min-width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.1rem;
  position: relative;
  color: var(--text-dim);
}
.bkd-stage-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%;
  color: inherit;
  font: inherit;
}
.bkd-stage-dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fast);
}
.bkd-stage-dot .material-symbols-outlined { font-size: 1.05rem; }
.bkd-stage.done { color: var(--text-light); }
.bkd-stage.done .bkd-stage-dot {
  background: var(--primary-alpha-20);
  border-color: var(--primary);
  color: var(--primary);
}
.bkd-stage.current .bkd-stage-dot {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 0 3px var(--primary-alpha-30);
}
.bkd-stage-label { font-size: 0.6rem; text-align: center; line-height: 1.15; }
.bkd-stage-date { font-size: 0.55rem; color: var(--primary); min-height: 0.7rem; }
.bkd-stage-date-input {
  width: 100%;
  max-width: 94px;
  font-size: 0.52rem;
  color: var(--primary);
  background: var(--primary-alpha-20);
  border: 1px solid var(--primary-alpha-30);
  border-radius: 5px;
  padding: 1px 2px;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
}
.bkd-stage-date-input:hover { border-color: var(--primary); }
.bkd-progress-reset {
  display: block;
  margin: -0.2rem 0 0.5rem auto;
  padding: 0.1rem 0.3rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  cursor: pointer;
}
.bkd-progress-reset:hover { color: var(--primary); }

/* --- Phiếu tổng kết (gate Nghiệm thu — GĐ1 "Trí nhớ chung 5 brand") --- */
.bkd-review-wrap { margin: 0.15rem 0 0.6rem; }
.bkd-review-form {
  border: 1px solid rgba(186, 158, 105, 0.35);
  background: rgba(186, 158, 105, 0.07);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.bkd-review-title { font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 0.45rem; }
.bkd-review-req { color: var(--text-muted); font-weight: 500; font-size: 0.72rem; }
.bkd-review-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.1rem 0; flex-wrap: wrap;
}
.bkd-review-label { font-size: 0.8rem; color: var(--text-muted); }
.bkd-stars { display: inline-flex; gap: 0.1rem; }
.bkd-star {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1; padding: 0.25rem 0.3rem;
  min-width: 36px; min-height: 36px;
  color: var(--text-muted); border-radius: 8px;
}
.bkd-star.active { color: var(--primary); }
.bkd-star:hover { color: var(--primary); }
.bkd-star:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.bkd-review-actions { display: flex; gap: 0.5rem; margin-top: 0.65rem; flex-wrap: wrap; }
.bkd-review-summary {
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
  border: 1px dashed rgba(186, 158, 105, 0.4);
  border-radius: 10px; padding: 0.5rem 0.65rem; font-size: 0.78rem;
}
.bkd-review-chip {
  background: rgba(186, 158, 105, 0.12);
  border-radius: 999px; padding: 0.12rem 0.55rem; white-space: nowrap;
}
.bkd-review-notechip { color: var(--text-muted); font-style: italic; }
.bkd-review-edit {
  margin-left: auto; background: none; border: 1px solid rgba(186, 158, 105, 0.4);
  border-radius: 8px; padding: 0.2rem 0.6rem; cursor: pointer;
  color: var(--primary); font-size: 0.72rem; font-weight: 600;
}
.bkd-review-edit:hover { background: rgba(186, 158, 105, 0.12); }
@media (max-width: 560px) {
  .bkd-star { min-width: 44px; min-height: 44px; }
  .bkd-review-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
}

/* --- KOL metrics: CPV/CPE, mục tiêu, trễ mốc --- */
.bk-goal-ok { color: #4caf7d; }
.bk-goal-miss { color: #d9a23a; }
.bk-late-badge { color: #d98a3a; font-weight: 600; }
.bkd-cost-eff { font-size: 0.78rem; color: var(--text-dim); }
.bkd-goal-row { font-size: 0.82rem; margin-top: 0.35rem; }
.bkd-goal-row.bkd-goal-ok { color: #4caf7d; }
.bkd-goal-row.bkd-goal-miss { color: #d9a23a; }
/* connecting line behind dots */
.bkd-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 19px);
  right: calc(-50% + 19px);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}
.bkd-stage.done:not(:last-child)::after { background: var(--primary-alpha-30); }

/* --- Feedback rounds --- */
.bkd-feedback-block {
  margin: 0.6rem 0;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
.bkd-feedback-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-light);
}
.bkd-feedback-title .material-symbols-outlined { color: var(--accent); }
.bkd-fb-add {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--primary-alpha-20);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.bkd-fb-add:hover { background: var(--primary); color: var(--bg-dark); }
.bkd-feedback-list { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.bkd-feedback-round {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}
.bkd-fb-idx { font-weight: 700; color: var(--accent); white-space: nowrap; }
.bkd-fb-date { color: var(--text-dim); white-space: nowrap; }
.bkd-fb-note { flex: 1; color: var(--text-muted); word-break: break-word; }
.bkd-fb-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; line-height: 1; }
.bkd-fb-remove:hover { color: #f87171; }

/* --- Effectiveness metrics --- */
.bkd-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.bkd-hot-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; flex-wrap: wrap; }
.bkd-hot-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.bkd-hot-badge.bkd-hot-hot { color: #ff6a3d; background: rgba(255, 106, 61, 0.12); }
.bkd-hot-badge.bkd-hot-good { color: #5fd39a; background: rgba(95, 211, 154, 0.12); }
.bkd-hot-badge.bkd-hot-normal { color: var(--accent); background: var(--primary-alpha-20); }
.bkd-hot-badge.bkd-hot-low { color: #c98b8b; background: rgba(201, 139, 139, 0.12); }
.bkd-hot-badge.bkd-hot-none { color: var(--text-dim); }
.bkd-metrics-source { font-size: 0.65rem; color: var(--text-dim); }

/* --- Mini progress on booking card --- */
.bk-progress-mini { grid-column: 1 / -1; color: var(--text-muted); }

/* --- Preview panel (hồ sơ talent xem nhanh) --- */
.preview-booking-progress {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.preview-booking-link { color: var(--primary); text-decoration: underline; }

/* --- Collab card (hồ sơ talent đầy đủ / worklog) --- */
.collab-progress {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}
.collab-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.collab-progress-label { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.7rem; color: var(--text-light); }
.collab-stepper { display: flex; gap: 4px; }
.collab-step { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.collab-step.done { background: var(--primary); }
.collab-metrics {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.collab-hot-badge { font-weight: 700; color: var(--hot-color, var(--accent)); }
.collab-post-link { display: inline-flex; align-items: center; gap: 0.15rem; color: var(--primary); text-decoration: none; }
.collab-post-link:hover { text-decoration: underline; }

/* --- Mobile --- */
@media (max-width: 860px) {
  .bkd-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .bkd-stage { min-width: 78px; }
}

/* --- GĐ2: gợi ý "lần trước" + cảnh báo trùng lịch (form booking) --- */
.bkf-prefill-hint {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.35rem; padding: 0.45rem 0.6rem;
  border: 1px dashed rgba(186, 158, 105, 0.45);
  border-radius: 10px; font-size: 0.74rem; line-height: 1.45;
  background: rgba(186, 158, 105, 0.07);
}
.bkf-prefill-text em { color: var(--text-muted); }
.bkf-prefill-apply {
  background: none; border: 1px solid rgba(186, 158, 105, 0.45);
  border-radius: 8px; padding: 0.25rem 0.6rem; min-height: 32px;
  color: var(--primary); font-size: 0.7rem; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.bkf-prefill-apply:hover { background: rgba(186, 158, 105, 0.12); }
.bkf-date-conflict {
  margin-top: 0.3rem; padding: 0.4rem 0.55rem;
  border: 1px solid rgba(217, 90, 90, 0.45);
  background: rgba(217, 90, 90, 0.08);
  border-radius: 8px; color: #b54545;
  font-size: 0.72rem; line-height: 1.4;
}
@media (max-width: 560px) { .bkf-prefill-apply { min-height: 44px; } }
