/* Panel de cliente — mismos estilos que booksolut.com */
/* ===== Flash toast ===== */
.cp-flash {
  position: fixed; top: 1rem; right: 1rem; z-index: 10000;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border-radius: 0.5rem; box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  font-size: 0.9rem; max-width: 420px;
  transition: opacity 0.4s ease;
  display: flex; align-items: center;
}
.cp-flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.cp-flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.cp-flash-close {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; opacity: 0.6;
  padding: 0.25rem 0.5rem; color: inherit;
}
.cp-flash-close:hover { opacity: 1; }

/* ===== MercadoPago pay button ===== */
.cp-mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1;
  border: 1px solid #00A5E0;
  background: linear-gradient(135deg, #00A5E0 0%, #0095CC 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 165, 224, 0.25);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cp-mp-btn:hover,
.cp-mp-btn:focus {
  background: linear-gradient(135deg, #0095CC 0%, #0085B8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 165, 224, 0.35);
  transform: translateY(-1px);
}
.cp-mp-btn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0, 165, 224, 0.25); }
.cp-mp-btn .cp-mp-logo {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}
.cp-mp-btn .cp-mp-label { letter-spacing: 0.01em; }
.cp-mp-btn-outline {
  background: #ffffff;
  color: #00A5E0;
  border: 1px solid #00A5E0;
  box-shadow: 0 1px 3px rgba(0, 165, 224, 0.12);
}
.cp-mp-btn-outline:hover,
.cp-mp-btn-outline:focus {
  background: #F0FAFF;
  color: #0085B8;
  border-color: #0095CC;
  box-shadow: 0 4px 10px rgba(0, 165, 224, 0.18);
}
.cp-mp-btn-outline .cp-mp-logo { }

/* ===== Client Panel — Base ===== */
.cp-container { max-width: 1140px; }
.cp-container .cp-tab-panel--active { animation: cpFadeIn 0.35s ease-out; }

/* ===== Welcome Header ===== */
.cp-welcome-header {
  background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #0ea5e9));
  border-radius: var(--radius-xl, 16px);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb, 79, 70, 229), 0.2);
}
.cp-welcome-header::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cp-welcome-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cp-welcome-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  flex-shrink: 0; backdrop-filter: blur(4px);
}
.cp-welcome-text { flex: 1 1 200px; min-width: 0; }
.cp-welcome-name { font-size: 1.25rem; font-weight: 700; margin: 0; color: #fff; }
.cp-welcome-sub { font-size: 0.85rem; opacity: 0.85; margin: 0.15rem 0 0; }
.cp-welcome-stats { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cp-stat-card {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg, 12px);
  padding: 0.6rem 1.1rem; text-align: center;
  backdrop-filter: blur(4px); min-width: 80px;
}
.cp-stat-number { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.cp-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.85; }
.cp-welcome-action { flex-shrink: 0; }
.cp-btn-book {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 0.55rem 1.25rem;
  font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px); text-decoration: none;
}
.cp-btn-book:hover { background: rgba(255,255,255,0.3); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ===== Tab Navigation ===== */
.cp-tabs-nav {
  display: flex; gap: 0.4rem; margin-bottom: 1.25rem; padding: 0.3rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: var(--radius-xl, 16px);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cp-tab-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  pointer-events: none;
}
.cp-tab-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.2rem; border: none;
  border-radius: var(--radius-lg, 12px);
  background: transparent;
  color: var(--text-secondary, #64748b);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cp-tab-btn:hover { background: var(--bg-secondary, #f8fafc); color: var(--text-main, #0f172a); }
.cp-tab-btn--active {
  background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #0ea5e9));
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 79, 70, 229), 0.3);
}
.cp-tab-btn--active:hover { opacity: 0.92; background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #0ea5e9)); }

/* ===== Tab Panels ===== */
.cp-tab-panel { display: none; animation: cpFadeIn 0.3s ease; }
.cp-tab-panel--active { display: block; }
@keyframes cpFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Card ===== */
.cp-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: var(--radius-xl, 16px);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cp-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.cp-card-day-detail:hover, .cp-card:has(.cp-cal-grid):hover { transform: none; }
.cp-card-title { font-weight: 700; font-size: 1rem; color: var(--text-main, #0f172a); }

/* ===== Section Header ===== */
.cp-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.cp-section-title { font-weight: 700; margin: 0; color: var(--text-main, #0f172a); }
.cp-month-nav { display: flex; align-items: center; gap: 0.5rem; }
.cp-month-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-default, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #0f172a); padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.cp-month-btn:hover { background: var(--bg-secondary, #f8fafc); border-color: var(--primary, #4f46e5); color: var(--primary, #4f46e5); }
.cp-month-label { font-weight: 700; font-size: 1rem; min-width: 160px; text-align: center; color: var(--text-main, #0f172a); }

.cp-video-spotlight {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(79, 70, 229, 0.04));
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
}
.cp-video-spotlight::before {
  content: '';
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  pointer-events: none;
}
.cp-video-spotlight-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
}
.cp-video-spotlight-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cp-video-spotlight-main { flex: 1 1 320px; min-width: 0; }
.cp-video-spotlight-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  line-height: 1.25;
}
.cp-video-spotlight-meta {
  margin-top: 0.3rem;
  color: var(--text-secondary, #475569);
  font-size: 0.88rem;
}
.cp-video-spotlight-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.cp-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255,255,255,0.7);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cp-video-chip--success { background: rgba(16, 185, 129, 0.12); color: #059669; border-color: rgba(16, 185, 129, 0.18); }
.cp-video-chip--warning { background: rgba(245, 158, 11, 0.12); color: #d97706; border-color: rgba(245, 158, 11, 0.18); }
.cp-video-chip--danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; border-color: rgba(239, 68, 68, 0.18); }
.cp-video-chip--secondary { background: rgba(100, 116, 139, 0.12); color: #475569; border-color: rgba(100, 116, 139, 0.18); }
.cp-video-spotlight-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.cp-video-empty {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px dashed var(--border-default, #cbd5e1);
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-secondary, #64748b);
}
.cp-video-empty i { font-size: 1.1rem; color: var(--primary, #4f46e5); }

/* ===== Calendar Grid ===== */
.cp-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--border-default, #e2e8f0);
}
.cp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 100px;
  overflow: hidden;
}
.cp-cal-day {
  position: relative; padding: 6px 8px;
  background: var(--bg-card, #ffffff);
  border: none;
  border-right: 1px solid var(--border-default, #e2e8f0);
  border-bottom: 1px solid var(--border-default, #e2e8f0);
  border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  text-align: left; cursor: pointer;
  color: var(--text-main, #0f172a);
  transition: background-color 0.15s ease;
}
.cp-cal-day:nth-child(7n) { border-right: none; }
.cp-cal-day:hover { background-color: var(--bg-secondary, #f8fafc); }
.cp-cal-day--outside { background-color: var(--bg-secondary, #f8fafc); color: var(--text-secondary, #94a3b8); }
.cp-cal-day--events:not(.cp-cal-day--selected) { background: rgba(var(--primary-rgb, 79, 70, 229), 0.04); }
.cp-cal-day--selected { background: rgba(var(--primary-rgb, 79, 70, 229), 0.08); box-shadow: inset 0 0 0 2px var(--primary, #4f46e5); }
.cp-cal-day--next-video {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(79, 70, 229, 0.04));
  box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.28);
}
.cp-cal-day-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-weight: 600; font-size: 0.875rem; line-height: 1;
}
.cp-cal-day--today:not(.cp-cal-day--selected) .cp-cal-day-num { border: 2px solid var(--primary, #4f46e5); color: var(--primary, #4f46e5); }
.cp-cal-day--selected .cp-cal-day-num { background: var(--primary, #4f46e5); color: #fff; }
.cp-cal-day--next-video:not(.cp-cal-day--selected) .cp-cal-day-num { background: rgba(16, 185, 129, 0.14); color: #047857; }
.cp-cal-day-preview {
  margin-top: 3px; font-size: 0.7rem;
  color: var(--text-secondary, #64748b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.cp-cal-day-preview--video { color: #0f766e; font-weight: 700; }
.cp-cal-badge {
  font-size: 0.65rem; padding: 0.15em 0.45em; border-radius: 6px; font-weight: 600;
  background: rgba(var(--primary-rgb, 79, 70, 229), 0.12);
  color: var(--primary, #4f46e5);
}
.cp-cal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.35rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

/* ===== Day Detail Panel ===== */
.cp-card-day-detail { min-height: 240px; }
#clientDayDetails { max-height: calc(100vh - 300px); overflow-y: auto; }
.cp-date-badge { background: var(--bg-secondary, #f1f5f9); padding: 0.25rem 0.7rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-main, #0f172a); }
.cp-day-card { border-radius: var(--radius-lg, 12px); border: 1px solid var(--border-default, #e2e8f0); background: var(--bg-card, #ffffff); padding: 0.75rem 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); margin-bottom: 0.5rem; }
.cp-day-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.8rem; }
.cp-day-card-time { font-weight: 700; color: var(--primary, #4f46e5); }
.cp-day-appt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 0.4rem; margin-top: 0.3rem; border-top: 1px solid var(--border-default, #e2e8f0); }
.cp-day-appt:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.cp-day-appt-main { flex: 1 1 auto; min-width: 0; }
.cp-day-appt-service { font-weight: 600; font-size: 0.875rem; color: var(--text-main, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-day-appt-staff { font-size: 0.75rem; color: var(--text-secondary, #64748b); }
.cp-day-appt-meta { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.35rem; }
.cp-day-appt-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; flex-wrap: wrap; }
.cp-empty-state { text-align: center; padding: 2rem 1rem; color: var(--text-secondary, #94a3b8); }
.cp-empty-state i { font-size: 2rem; margin-bottom: 0.5rem; display: block; opacity: 0.5; }
.cp-empty-state p { margin: 0; font-size: 0.9rem; }

/* ===== Appointments Table ===== */
.cp-table { margin-bottom: 0; }
.cp-table-row--next-video td { background: rgba(16, 185, 129, 0.05); }
.cp-table-primary { font-weight: 700; color: var(--text-main, #0f172a); }
.cp-table-secondary { margin-top: 0.18rem; font-size: 0.74rem; color: var(--text-secondary, #64748b); }
.cp-table thead th {
  background: var(--bg-secondary, #f8fafc);
  border-bottom: 2px solid var(--border-default, #e2e8f0);
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--text-secondary, #64748b); padding: 0.7rem 0.75rem;
}
.cp-table tbody td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border-default, #e2e8f0); font-size: 0.875rem; color: var(--text-main, #0f172a); vertical-align: middle; }
.cp-table tbody tr:hover td { background: var(--bg-secondary, #f8fafc); }
.cp-table tbody tr:last-child td { border-bottom: none; }

/* ===== Status Badges ===== */
.cp-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25em 0.65em; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.cp-badge--success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.cp-badge--warning { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.cp-badge--danger  { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.cp-badge--secondary { background: rgba(100, 116, 139, 0.12); color: #475569; }
.cp-badge--primary { background: rgba(79, 70, 229, 0.12); color: #4f46e5; }
.cp-badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cp-badge--success .cp-badge-dot { background: #10b981; }
.cp-badge--warning .cp-badge-dot { background: #f59e0b; }
.cp-badge--danger .cp-badge-dot  { background: #ef4444; }
.cp-badge--secondary .cp-badge-dot { background: #94a3b8; }
.cp-badge--primary .cp-badge-dot { background: #6366f1; }

/* ===== Action Buttons ===== */
.cp-action-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.7rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid; background: transparent;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none; white-space: nowrap;
}
.cp-action-btn:hover { transform: translateY(-1px); }
.cp-action-btn--reschedule { border-color: var(--primary, #4f46e5); color: var(--primary, #4f46e5); }
.cp-action-btn--reschedule:hover { background: var(--primary, #4f46e5); color: #fff; }
.cp-action-btn--cancel { border-color: #ef4444; color: #ef4444; }
.cp-action-btn--cancel:hover { background: #ef4444; color: #fff; }
.cp-action-btn--join { border-color: #10b981; color: #059669; background: rgba(16, 185, 129, 0.08); }
.cp-action-btn--join:hover { background: #059669; color: #fff; }
.cp-action-btn--secondary { border-color: var(--border-default, #cbd5e1); color: var(--text-main, #334155); background: rgba(255,255,255,0.75); }
.cp-action-btn--secondary:hover { background: var(--bg-secondary, #f8fafc); color: var(--text-main, #0f172a); }

/* ===== Mode Toggle ===== */
.cp-mode-toggle { display: inline-flex; border-radius: var(--radius-lg, 12px); border: 1px solid var(--border-default, #e2e8f0); overflow: hidden; background: var(--bg-secondary, #f8fafc); }
.cp-mode-btn { padding: 0.4rem 1rem; border: none; background: transparent; font-weight: 600; font-size: 0.8rem; cursor: pointer; color: var(--text-secondary, #64748b); transition: background 0.2s, color 0.2s; }
.cp-mode-btn:hover { color: var(--text-main, #0f172a); }
.cp-mode-btn--active { background: var(--primary, #4f46e5); color: #fff !important; }

/* ===== Pagination ===== */
.cp-pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; margin-top: 0.5rem; border-top: 1px solid var(--border-default, #e2e8f0); }
.cp-page-btn {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: 8px;
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #0f172a);
  font-size: 0.8rem; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.cp-page-btn:hover:not(:disabled) { border-color: var(--primary, #4f46e5); color: var(--primary, #4f46e5); }
.cp-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Loyalty card ===== */
.cp-loyalty-stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-loyalty-stamp {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: #fff; transition: transform .2s ease;
}
.cp-loyalty-stamp--empty {
  background: var(--bg-secondary, #e2e8f0);
  color: var(--text-muted, #94a3b8);
  border: 1.5px dashed var(--border-default, #cbd5e1);
}
.cp-loyalty-stamp--filled { box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.cp-loyalty-stamp--milestone { border: 2px solid #fbbf24 !important; }
.cp-loyalty-stamp--milestone.cp-loyalty-stamp--empty {
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
}
.cp-loyalty-bar { height: 8px; background: var(--bg-secondary, #e2e8f0); border-radius: 4px; overflow: hidden; }
.cp-loyalty-bar-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.cp-loyalty-milestones .cp-ms-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; border-bottom: 1px solid var(--border-default, #e2e8f0); font-size: .85rem;
}
.cp-loyalty-reward-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border-radius: 10px; padding: 12px 14px; font-size: .9rem;
}
.cp-loyalty-pending-banner {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; border-radius: 10px; padding: 12px 14px; font-size: .9rem;
}
.cp-loyalty-milestones .cp-ms-claim-btn { font-size: .75rem; padding: 2px 8px; }

/* ===== Profile ===== */
.cp-profile-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-default, #e2e8f0); }
.cp-profile-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #0ea5e9));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb, 79, 70, 229), 0.25);
}
.cp-label { font-weight: 600; font-size: 0.85rem; color: var(--text-main, #0f172a); }
.cp-btn-save {
  background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #0ea5e9));
  border: none; color: #fff; font-weight: 600;
  border-radius: var(--radius-lg, 12px); padding: 0.6rem 1rem;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 79, 70, 229), 0.25);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cp-btn-save:hover { opacity: 0.92; transform: translateY(-2px); color: #fff; box-shadow: 0 6px 20px rgba(var(--primary-rgb, 79, 70, 229), 0.3); }
.cp-btn-save:disabled { opacity: 0.6; transform: none; box-shadow: none; }
.cp-save-text, .cp-save-spinner { transition: opacity 0.2s ease; }

/* ===== Membership Tab ===== */
.cp-mem-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(124,58,237,0.1);
  color: var(--primary, #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}

/* ===== Google Card ===== */
.cp-google-icon {
  width: 44px; height: 44px; border-radius: var(--radius-lg, 12px);
  background: var(--bg-secondary, #f1f5f9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-secondary, #64748b); margin-bottom: 0.75rem;
}
.cp-btn-google {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-default, #e2e8f0);
  color: var(--text-main, #0f172a); font-weight: 600;
  border-radius: var(--radius-lg, 12px); padding: 0.55rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s; text-decoration: none;
}
.cp-btn-google:hover { border-color: var(--primary, #4f46e5); box-shadow: 0 2px 8px rgba(var(--primary-rgb, 79, 70, 229), 0.15); color: var(--text-main, #0f172a); }
.cp-google-connected { display: flex; align-items: center; gap: 0.25rem; padding: 0.4rem 0.75rem; background: rgba(16, 185, 129, 0.08); border-radius: 8px; color: #059669; font-weight: 600; }

/* ===== Focus-visible (light) ===== */
.cp-container .cp-tab-btn:focus-visible,
.cp-container .cp-cal-day:focus-visible,
.cp-container .cp-month-btn:focus-visible,
.cp-container .cp-mode-btn:focus-visible,
.cp-container .cp-page-btn:focus-visible,
.cp-container .cp-action-btn:focus-visible,
.cp-container .cp-btn-book:focus-visible,
.cp-container .cp-btn-save:focus-visible,
.cp-container .cp-btn-google:focus-visible {
  outline: 2px solid var(--primary, #4f46e5);
  outline-offset: 2px;
}
.cp-container .form-control:focus-visible { outline: none; }

/* ===== Scrollbar (light) ===== */
#clientDayDetails::-webkit-scrollbar { width: 5px; }
#clientDayDetails::-webkit-scrollbar-track { background: var(--bg-secondary, #f8fafc); border-radius: 4px; }
#clientDayDetails::-webkit-scrollbar-thumb { background: var(--border-default, #e2e8f0); border-radius: 4px; }
#clientDayDetails::-webkit-scrollbar-thumb:hover { background: var(--text-secondary, #94a3b8); }

/* =====================================================
   DARK THEME — Client Panel
   Uses system tokens from public-tenant.css:
   --bg-primary: #0f172a  --bg-secondary: #1e293b
   --bg-card: #1e293b     --bg-body: #020617
   --text-primary: #f1f5f9 --text-secondary: #94a3b8
   --text-main: #e5e7eb   --border-default: #334155
   --primary / --secondary are lightened in dark by public.php
   ===================================================== */

/* --- Welcome Header --- */
html[data-theme="dark"] .cp-welcome-header {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .cp-welcome-avatar {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
html[data-theme="dark"] .cp-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
html[data-theme="dark"] .cp-btn-book {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
html[data-theme="dark"] .cp-btn-book:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* --- Tab Navigation --- */
html[data-theme="dark"] .cp-tabs-nav {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-tab-btn {
  color: var(--text-secondary, #94a3b8);
}
html[data-theme="dark"] .cp-tab-btn:hover {
  background: var(--bg-primary, #0f172a);
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-tab-btn--active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* --- Cards (global) --- */
html[data-theme="dark"] .cp-card {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-default, #334155);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .cp-card-title {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-video-spotlight {
  border-color: rgba(56, 189, 248, 0.2);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(79, 70, 229, 0.18));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}
html[data-theme="dark"] .cp-video-spotlight-kicker {
  color: #67e8f9;
}
html[data-theme="dark"] .cp-video-spotlight-title {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-video-spotlight-meta {
  color: var(--text-secondary, #cbd5e1);
}
html[data-theme="dark"] .cp-video-chip {
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-primary, #f1f5f9);
  border-color: rgba(148, 163, 184, 0.18);
}
html[data-theme="dark"] .cp-video-empty {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-default, #334155);
  color: var(--text-secondary, #94a3b8);
}

/* --- Section Header & Month Nav --- */
html[data-theme="dark"] .cp-section-title {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-month-label {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-month-btn {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-default, #334155);
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-month-btn:hover {
  background: var(--bg-primary, #0f172a);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Calendar Grid --- */
html[data-theme="dark"] .cp-cal-weekdays {
  color: var(--text-secondary, #94a3b8);
  border-bottom-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-cal-day {
  background: var(--bg-card, #1e293b);
  color: var(--text-primary, #f1f5f9);
  border-right-color: var(--border-default, #334155);
  border-bottom-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-cal-day:hover {
  background: var(--bg-primary, #0f172a);
}
html[data-theme="dark"] .cp-cal-day--outside {
  background: var(--bg-primary, #0f172a);
  color: var(--text-secondary, #64748b);
}
html[data-theme="dark"] .cp-cal-day--events:not(.cp-cal-day--selected) {
  background: rgba(var(--primary-rgb, 79, 70, 229), 0.1);
}
html[data-theme="dark"] .cp-cal-day--selected {
  background: rgba(var(--primary-rgb, 79, 70, 229), 0.18);
  box-shadow: inset 0 0 0 2px var(--primary);
}
html[data-theme="dark"] .cp-cal-day--next-video {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18), rgba(79, 70, 229, 0.16));
  box-shadow: inset 0 0 0 2px rgba(52, 211, 153, 0.35);
}
html[data-theme="dark"] .cp-cal-day--today:not(.cp-cal-day--selected) .cp-cal-day-num {
  border-color: var(--primary);
  color: var(--primary);
}
html[data-theme="dark"] .cp-cal-day--selected .cp-cal-day-num {
  background: var(--primary);
  color: #fff;
}
html[data-theme="dark"] .cp-cal-day--next-video:not(.cp-cal-day--selected) .cp-cal-day-num {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
html[data-theme="dark"] .cp-cal-day-num {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-cal-day--outside .cp-cal-day-num {
  color: var(--text-secondary, #64748b);
}
html[data-theme="dark"] .cp-cal-day-preview {
  color: var(--text-secondary, #94a3b8);
}
html[data-theme="dark"] .cp-cal-day-preview--video {
  color: #67e8f9;
}
html[data-theme="dark"] .cp-cal-badge {
  background: rgba(var(--primary-rgb, 79, 70, 229), 0.2);
  color: var(--primary);
}
html[data-theme="dark"] .cp-cal-pill {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

/* --- Day Detail Panel --- */
html[data-theme="dark"] .cp-date-badge {
  background: var(--bg-primary, #0f172a);
  border: 1px solid var(--border-default, #334155);
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-day-card {
  background: var(--bg-primary, #0f172a);
  border-color: var(--border-default, #334155);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
html[data-theme="dark"] .cp-day-card-time {
  color: var(--primary);
}
html[data-theme="dark"] .cp-day-card-header .text-muted {
  color: var(--text-secondary, #94a3b8) !important;
}
html[data-theme="dark"] .cp-day-appt {
  border-top-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-day-appt-service {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-day-appt-staff {
  color: var(--text-secondary, #94a3b8);
}
html[data-theme="dark"] .cp-table-row--next-video td {
  background: rgba(16, 185, 129, 0.08);
}
html[data-theme="dark"] .cp-table-secondary {
  color: var(--text-secondary, #94a3b8);
}

/* --- Appointments Table --- */
html[data-theme="dark"] .cp-table {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-table thead th {
  background: var(--bg-primary, #0f172a);
  color: var(--text-secondary, #94a3b8);
  border-bottom-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-table tbody td {
  color: var(--text-primary, #f1f5f9);
  border-bottom-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-table tbody tr:hover td {
  background: var(--bg-primary, #0f172a);
}
html[data-theme="dark"] .cp-table tbody tr:last-child td {
  border-bottom-color: transparent;
}

/* --- Custom Badges (cp-badge) --- */
html[data-theme="dark"] .cp-badge--success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
html[data-theme="dark"] .cp-badge--warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
html[data-theme="dark"] .cp-badge--danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
html[data-theme="dark"] .cp-badge--secondary {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}
html[data-theme="dark"] .cp-badge--primary {
  background: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
}
html[data-theme="dark"] .cp-badge--success .cp-badge-dot { background: #6ee7b7; }
html[data-theme="dark"] .cp-badge--warning .cp-badge-dot { background: #fcd34d; }
html[data-theme="dark"] .cp-badge--danger .cp-badge-dot  { background: #fca5a5; }
html[data-theme="dark"] .cp-badge--secondary .cp-badge-dot { background: #cbd5e1; }
html[data-theme="dark"] .cp-badge--primary .cp-badge-dot { background: #a5b4fc; }

/* --- Bootstrap Badge Overrides (if any leak through) --- */
html[data-theme="dark"] .cp-container .badge.bg-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .cp-container .badge.bg-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fcd34d !important;
}
html[data-theme="dark"] .cp-container .badge.bg-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
}
html[data-theme="dark"] .cp-container .badge.bg-secondary {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #cbd5e1 !important;
}

/* --- Mode Toggle --- */
html[data-theme="dark"] .cp-mode-toggle {
  background: var(--bg-primary, #0f172a);
  border-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-mode-btn {
  color: var(--text-secondary, #94a3b8);
}
html[data-theme="dark"] .cp-mode-btn:hover {
  color: var(--text-primary, #f1f5f9);
  background: var(--bg-card, #1e293b);
}
html[data-theme="dark"] .cp-mode-btn--active {
  background: var(--primary);
  color: #fff !important;
}

/* --- Action Buttons --- */
html[data-theme="dark"] .cp-action-btn--reschedule {
  border-color: var(--primary);
  color: var(--primary);
}
html[data-theme="dark"] .cp-action-btn--reschedule:hover {
  background: var(--primary);
  color: #fff;
}
html[data-theme="dark"] .cp-action-btn--cancel {
  border-color: #f87171;
  color: #f87171;
}
html[data-theme="dark"] .cp-action-btn--cancel:hover {
  background: #ef4444;
  color: #fff;
}
html[data-theme="dark"] .cp-action-btn--join {
  border-color: #34d399;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
}
html[data-theme="dark"] .cp-action-btn--join:hover {
  background: #059669;
  color: #fff;
}
html[data-theme="dark"] .cp-action-btn--secondary {
  border-color: var(--border-default, #334155);
  color: var(--text-primary, #f1f5f9);
  background: rgba(15, 23, 42, 0.45);
}
html[data-theme="dark"] .cp-action-btn--secondary:hover {
  background: var(--bg-primary, #0f172a);
  color: var(--text-primary, #f1f5f9);
}

/* --- Pagination --- */
html[data-theme="dark"] .cp-pagination {
  border-top-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-page-btn {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-default, #334155);
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-page-btn:hover:not(:disabled) {
  background: var(--bg-primary, #0f172a);
  border-color: var(--primary);
  color: var(--primary);
}
html[data-theme="dark"] .cp-page-btn:disabled {
  color: var(--text-secondary, #64748b);
  border-color: var(--border-default, #334155);
}

/* --- Profile --- */
html[data-theme="dark"] .cp-profile-header {
  border-bottom-color: var(--border-default, #334155);
}
html[data-theme="dark"] .cp-label {
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-btn-save {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .cp-btn-save:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Form Inputs (scoped to panel) --- */
html[data-theme="dark"] .cp-container .form-control {
  background: var(--bg-primary, #0f172a);
  border-color: var(--border-default, #334155);
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-container .form-control::placeholder {
  color: var(--text-secondary, #64748b);
}
html[data-theme="dark"] .cp-container .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 79, 70, 229), 0.25);
  background: var(--bg-primary, #0f172a);
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-container .input-group-text {
  background: var(--bg-card, #1e293b);
  border-color: var(--border-default, #334155);
  color: var(--text-secondary, #94a3b8);
}
html[data-theme="dark"] .cp-container .form-label {
  color: var(--text-primary, #f1f5f9);
}

/* --- Google Calendar Card --- */
html[data-theme="dark"] .cp-google-icon {
  background: var(--bg-primary, #0f172a);
  border: 1px solid var(--border-default, #334155);
  color: var(--text-secondary, #94a3b8);
}
html[data-theme="dark"] .cp-btn-google {
  background: var(--bg-primary, #0f172a);
  border-color: var(--border-default, #334155);
  color: var(--text-primary, #f1f5f9);
}
html[data-theme="dark"] .cp-btn-google:hover {
  background: var(--bg-card, #1e293b);
  border-color: var(--primary);
  color: var(--text-primary, #f1f5f9);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb, 79, 70, 229), 0.2);
}
html[data-theme="dark"] .cp-google-connected {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}
html[data-theme="dark"] .cp-container .btn-outline-danger {
  border-color: #f87171;
  color: #f87171;
}
html[data-theme="dark"] .cp-container .btn-outline-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* --- Empty States --- */
html[data-theme="dark"] .cp-empty-state {
  color: var(--text-secondary, #94a3b8);
}
html[data-theme="dark"] .cp-empty-state i {
  color: var(--text-secondary, #64748b);
}

/* --- text-muted override inside panel --- */
html[data-theme="dark"] .cp-container .text-muted {
  color: var(--text-secondary, #94a3b8) !important;
}

/* --- .text-success override for connected icon --- */
html[data-theme="dark"] .cp-container .text-success {
  color: #6ee7b7 !important;
}

/* --- Focus-visible for accessibility --- */
html[data-theme="dark"] .cp-container .cp-tab-btn:focus-visible,
html[data-theme="dark"] .cp-container .cp-cal-day:focus-visible,
html[data-theme="dark"] .cp-container .cp-month-btn:focus-visible,
html[data-theme="dark"] .cp-container .cp-mode-btn:focus-visible,
html[data-theme="dark"] .cp-container .cp-page-btn:focus-visible,
html[data-theme="dark"] .cp-container .cp-action-btn:focus-visible,
html[data-theme="dark"] .cp-container .cp-btn-book:focus-visible,
html[data-theme="dark"] .cp-container .cp-btn-save:focus-visible,
html[data-theme="dark"] .cp-container .cp-btn-google:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
html[data-theme="dark"] .cp-container .form-control:focus-visible {
  outline: none;
}

/* --- Scrollbar inside day details (webkit) --- */
html[data-theme="dark"] #clientDayDetails::-webkit-scrollbar {
  width: 5px;
}
html[data-theme="dark"] #clientDayDetails::-webkit-scrollbar-track {
  background: var(--bg-primary, #0f172a);
}
html[data-theme="dark"] #clientDayDetails::-webkit-scrollbar-thumb {
  background: var(--border-default, #334155);
  border-radius: 4px;
}
html[data-theme="dark"] #clientDayDetails::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary, #64748b);
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .cp-welcome-inner { flex-direction: column; text-align: center; align-items: center; }
  .cp-welcome-stats { justify-content: center; }
  .cp-welcome-header { padding: 1.25rem 1.25rem; }
  .cp-video-spotlight-body { flex-direction: column; align-items: flex-start; }
  .cp-video-spotlight-actions { width: 100%; }
  .cp-cal-grid { grid-auto-rows: 72px; }
  .cp-cal-day-num { width: 24px; height: 24px; font-size: 0.75rem; }
  .cp-cal-day-preview { font-size: 0.65rem; }
  .cp-cal-day { padding: 4px 6px; }
  .cp-section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .cp-tab-btn span { display: none; }
  .cp-tab-btn { padding: 0.55rem 0.9rem; font-size: 1rem; }
  .cp-action-btn { padding: 0.25rem 0.5rem; font-size: 0.72rem; }
  .cp-card { padding: 1rem 1.1rem; }
  .cp-card:hover { transform: none; }
  .cp-day-appt { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  .cp-cal-grid { grid-auto-rows: 56px; }
  .cp-cal-day { padding: 3px 4px; }
  .cp-cal-day-num { width: 22px; height: 22px; font-size: 0.72rem; }
  .cp-cal-day-preview { display: none; }
  .cp-cal-pill { font-size: 0; padding: 0.25rem; }
  .cp-cal-pill i { font-size: 0.62rem; margin: 0; }
  .cp-cal-badge { font-size: 0.55rem; padding: 0.1em 0.3em; }
  .cp-col-time { display: none; }
  .cp-tabs-nav { gap: 0.2rem; padding: 0.2rem; scrollbar-width: none; }
  .cp-tabs-nav::-webkit-scrollbar { display: none; }
  .cp-day-appt { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .cp-action-btn { font-size: 0.7rem; }
  .cp-card { padding: 0.9rem 1rem; border-radius: var(--radius-lg, 12px); }
  .cp-welcome-header { border-radius: var(--radius-lg, 12px); padding: 1rem; }
  .cp-welcome-name { font-size: 1.1rem; }
  .cp-welcome-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
  .cp-table thead th { font-size: 0.7rem; padding: 0.5rem 0.5rem; }
  .cp-table tbody td { font-size: 0.8rem; padding: 0.5rem 0.5rem; }
  .cp-table .text-end { white-space: normal; }
  .cp-table .text-end .cp-action-btn { display: block; width: 100%; text-align: center; margin-bottom: 0.2rem; }
  .cp-table .text-end .cp-action-btn.me-1 { margin-right: 0 !important; }
  .cp-pagination { flex-direction: column; gap: 0.5rem; align-items: stretch; text-align: center; }
  .cp-pagination .d-flex { justify-content: center; }
}

/* ===== WordPress extras ===== */
.booksolut-mypanel.cp-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 0 2rem;
}
.booksolut-mypanel .cp-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.booksolut-mypanel .cp-guest-actions .booksolut-btn {
  border-radius: 12px;
}
.booksolut-mypanel .cp-manage-code {
  margin-top: 1.25rem;
}
.cp-reschedule-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cp-reschedule-overlay[hidden] { display: none !important; }
.cp-reschedule-dialog {
  width: min(420px, 100%);
  background: var(--bg-card, #fff);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.cp-reschedule-dialog h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.cp-reschedule-dialog .cp-field { margin-bottom: 0.75rem; }
.cp-reschedule-dialog label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.cp-reschedule-dialog input,
.cp-reschedule-dialog select {
  width: 100%;
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}
.cp-reschedule-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.cp-form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.cp-form-check input { width: 1.1rem; height: 1.1rem; }
.cp-toast {
  position: fixed; top: 1rem; right: 1rem; z-index: 10060;
  padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.cp-toast--ok { background: #d1fae5; color: #065f46; }
.cp-toast--err { background: #fee2e2; color: #991b1b; }
.booksolut-mypanel .form-control,
.booksolut-mypanel .input-group-text {
  border-radius: 10px;
}
.booksolut-mypanel .input-group { display: flex; width: 100%; }
.booksolut-mypanel .input-group-text {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.75rem; background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-default, #e2e8f0); border-right: 0;
}
.booksolut-mypanel .input-group .form-control { flex: 1; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.booksolut-mypanel .form-control {
  border: 1px solid var(--border-default, #e2e8f0);
  padding: 0.55rem 0.75rem;
  width: 100%;
  background: var(--bg-card, #fff);
  color: var(--text-main, #0f172a);
}
.booksolut-mypanel .mb-3 { margin-bottom: 1rem; }
.booksolut-mypanel .mb-4 { margin-bottom: 1.25rem; }
.booksolut-mypanel .w-100 { width: 100%; }
.booksolut-mypanel .row { display: flex; flex-wrap: wrap; margin: 0 -0.6rem; }
.booksolut-mypanel .g-4 { gap: 0; }
.booksolut-mypanel .col-lg-7,
.booksolut-mypanel .col-lg-5,
.booksolut-mypanel .col-xl-8,
.booksolut-mypanel .col-xl-4 { padding: 0 0.6rem; box-sizing: border-box; }
.booksolut-mypanel .col-lg-7,
.booksolut-mypanel .col-xl-8 { flex: 1 1 62%; }
.booksolut-mypanel .col-lg-5,
.booksolut-mypanel .col-xl-4 { flex: 1 1 34%; }
.booksolut-mypanel .d-none { display: none !important; }
.booksolut-mypanel .d-flex { display: flex; }
.booksolut-mypanel .flex-wrap { flex-wrap: wrap; }
.booksolut-mypanel .justify-content-between { justify-content: space-between; }
.booksolut-mypanel .align-items-center { align-items: center; }
.booksolut-mypanel .text-end { text-align: right; }
.booksolut-mypanel .text-muted { color: #64748b; }
.booksolut-mypanel .small { font-size: 0.875rem; }
.booksolut-mypanel .mb-0 { margin-bottom: 0; }
.booksolut-mypanel .mb-1 { margin-bottom: 0.25rem; }
.booksolut-mypanel .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.booksolut-mypanel .me-1 { margin-right: 0.25rem; }
.booksolut-mypanel .me-2 { margin-right: 0.5rem; }
.booksolut-mypanel .gap-2 { gap: 0.5rem; }
.booksolut-mypanel .table-responsive { overflow-x: auto; }
.booksolut-mypanel table.cp-table { width: 100%; border-collapse: collapse; }
.booksolut-mypanel .form-switch { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 991px) {
  .booksolut-mypanel .col-lg-7,
  .booksolut-mypanel .col-lg-5,
  .booksolut-mypanel .col-xl-8,
  .booksolut-mypanel .col-xl-4 { flex: 1 1 100%; }
}

