/* ========================================
   NEW FEATURES CSS - Clinica Eva Luque Demo
   Black + White clinical luxury aesthetic
   Features added on top of base.css
   ======================================== */

/* ========== DEMO BANNER ========== */
.demo-banner {
  background: #000000;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  position: relative;
  z-index: 1001;
}
.demo-banner strong { color: #ffffff; }
.demo-banner a { color: #ffffff; font-weight: 600; text-decoration: underline; margin-left: 6px; }

/* ========== VIEW SWITCH ========== */
.view-switch {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: -4px 0 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 8px 0 0 8px;
}
.view-switch button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  position: relative;
  text-align: center;
  line-height: 1.35;
}
.view-switch button i, .view-switch button svg { width: 20px; height: 20px; }
.view-switch button.active { color: #fff; background: rgba(255,255,255,0.06); }
.view-switch button.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
}
.view-switch button:hover:not(.active) { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.03); }
.view-switch-cta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
  white-space: nowrap;
}
.view-switch-cta i, .view-switch-cta svg { width: 0.75rem; height: 0.75rem; }
.view-switch-cta:hover { background: rgba(255,255,255,0.15); color: #fff; }
@keyframes switchBounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  40%, 60% { transform: translateY(-50%) translateX(-7px); }
}
@keyframes switchGlow {
  0%, 100% { box-shadow: -4px 0 30px rgba(0,0,0,0.3); }
  50% { box-shadow: -4px 0 35px rgba(255,255,255,0.1); }
}
.view-switch.bounce {
  animation: switchBounce 2s ease-in-out infinite, switchGlow 2s ease-in-out infinite;
}

/* ========== SKETCH ANNOTATIONS ========== */
section, .site-footer { position: relative; }
.sk { position: absolute; z-index: 10; pointer-events: none; font-family: 'Inter', sans-serif; color: #2563eb; line-height: 1.2; }
.sk-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; opacity: 0.85; }
.sk-sub { display: block; font-size: 0.62rem; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.5; white-space: nowrap; }
.sk-line { position: absolute; background: #2563eb; opacity: 0.3; }
.sk-line-v { width: 1px; }
.sk-line-h { height: 1px; }
.sk-dot { width: 5px; height: 5px; border-radius: 50%; background: #2563eb; opacity: 0.5; position: absolute; }
/* Light variant for dark sections */
.sk-light { color: rgba(147,197,253,0.65); }
.sk-light .sk-line { background: rgba(147,197,253,0.35); }
.sk-light .sk-dot { background: rgba(147,197,253,0.45); }
/* Also support sections with dark bg */
#reservar .sk, .hero .sk { color: rgba(147,197,253,0.65); }
#reservar .sk .sk-line, .hero .sk .sk-line { background: rgba(147,197,253,0.35); }
#reservar .sk .sk-dot, .hero .sk .sk-dot { background: rgba(147,197,253,0.45); }
@media (max-width: 768px) { .sk { opacity: 0.5; } .sk-label { font-size: 0.58rem; } .sk-sub { font-size: 0.52rem; } }
@media (max-width: 500px) { .sk { display: none; } }

/* ========== HISTORIA SECTION ========== */
.historia { background: var(--bg); padding: 100px 0; }
.historia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.historia-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #141414 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.historia-visual::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.historia-visual span {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  opacity: 0.6;
  text-align: center;
  padding: 2rem;
}
.historia-text .section-desc { max-width: 100%; }
.historia-quote {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: #000000;
  line-height: 1.5;
}
.historia-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .historia-grid { grid-template-columns: 1fr; gap: 2rem; }
  .historia-visual { max-height: 350px; }
}

/* ========== GALERIA SECTION ========== */
.galeria { background: var(--bg-muted); padding: 100px 0; }
.galeria .text-center { text-align: center; }
.galeria .text-center .section-desc { margin: 0 auto; }
.galeria-grid {
  display: grid;
  margin-top: 3rem;
  gap: 6px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
}
.gal-item {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.gal-item:hover::after { opacity: 1; }
.gal-item span {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gal-item:hover span { opacity: 1; }
.gal-item:nth-child(1) { grid-column: span 5; grid-row: span 3; background: linear-gradient(160deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%); }
.gal-item:nth-child(2) { grid-column: span 4; grid-row: span 2; background: linear-gradient(145deg, #0a0a0a 0%, #1f1f1f 50%, #333333 100%); }
.gal-item:nth-child(3) { grid-column: span 3; grid-row: span 2; background: linear-gradient(135deg, #050505 0%, #171717 50%, #262626 100%); }
.gal-item:nth-child(4) { grid-column: span 3; grid-row: span 2; background: linear-gradient(150deg, #0d0d0d 0%, #1a1a1a 50%, #2e2e2e 100%); }
.gal-item:nth-child(5) { grid-column: span 4; grid-row: span 2; background: linear-gradient(140deg, #080808 0%, #1c1c1c 50%, #303030 100%); }
.gal-item:nth-child(6) { grid-column: span 5; grid-row: span 2; background: linear-gradient(155deg, #030303 0%, #151515 50%, #282828 100%); }
.gal-item:nth-child(7) { grid-column: span 7; grid-row: span 2; background: linear-gradient(135deg, #060606 0%, #1a1a1a 50%, #2c2c2c 100%); }
.gal-item:nth-child(8) { grid-column: span 5; grid-row: span 2; background: linear-gradient(145deg, #0b0b0b 0%, #1e1e1e 50%, #323232 100%); }
@media (max-width: 900px) {
  .galeria-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 100px; }
  .gal-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .gal-item:nth-child(2) { grid-column: span 3; grid-row: span 2; }
  .gal-item:nth-child(3) { grid-column: span 3; grid-row: span 2; }
  .gal-item:nth-child(4) { grid-column: span 3; grid-row: span 2; }
  .gal-item:nth-child(5) { grid-column: span 3; grid-row: span 2; }
  .gal-item:nth-child(6) { grid-column: span 3; grid-row: span 2; }
  .gal-item:nth-child(7) { grid-column: span 6; grid-row: span 2; }
  .gal-item:nth-child(8) { display: none; }
}

/* ========== CONSUMER VIEW TOGGLE ========== */
.consumer-view.hidden { display: none; }

/* =====================================================
   CLINICAL LUXE NOIR — Consumer Front Page Overrides
   Absolute black + white. Cormorant Garamond display.
   Warm nude (#C4A882) accent used surgically.
   ===================================================== */

/* ── Typography ── */
.section-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; letter-spacing: -0.01em; }
.section-title em { font-style: italic; color: #C4A882; }
.section-label { letter-spacing: 0.2em; font-size: 0.7rem; color: #a3a3a3; }

/* ── Header ── */
.site-header { background: rgba(255,255,255,0.95); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; color: #525252; }
.nav-links a:hover { color: #000; }
.nav-links a::after { background: #000; height: 1px; }
.btn-primary { background: #000; border-radius: 0; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }
.btn-primary:hover { background: #1a1a1a; }
.btn-ghost { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Hero ── */
.hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 3.8rem; letter-spacing: -0.02em; line-height: 1.1; }
.hero h1 em { color: #C4A882; }
.hero-badge { background: rgba(196,168,130,0.12); border: 1px solid rgba(196,168,130,0.2); color: #C4A882; border-radius: 0; font-size: 0.68rem; letter-spacing: 0.15em; }
.hero-badge::before { background: #C4A882; }
.hero-sub { color: rgba(255,255,255,0.55); font-weight: 300; font-size: 1rem; }
.hero-stat-num { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 2.2rem; }
.hero-stat-label { font-size: 0.68rem; letter-spacing: 0.12em; }
.hero-card { border-radius: 2px; }
.hero-card-title { letter-spacing: 0.15em; font-size: 0.72rem; }
.hero-service-item { border-radius: 0; }
.hero-service-item:hover { background: rgba(196,168,130,0.08); border-color: rgba(196,168,130,0.15); }
.hero-service-price { color: #C4A882; }
.btn-outline { border-radius: 0; }

/* ── Services ── */
.service-tab { border-radius: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.service-tab.active { background: #000; border-radius: 0; }
.service-card { border-radius: 2px; }
.service-card:hover { border-color: #000; }

/* ── Team ── */
.team-card { border-radius: 2px; }
.team-avatar { border-radius: 0; }
.team-name { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.1rem; }

/* ── Historia ── */
.historia { background: #f7f7f7; }
.historia-visual { border-radius: 2px; }
.historia-visual::before { display: none; }
.historia-quote { font-family: 'Cormorant Garamond', serif; color: #000; font-size: 1.3rem; }
.historia-quote cite { color: #a3a3a3; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }

/* ── Gallery ── */
.galeria { background: #000; padding: 100px 0; }
.galeria .section-label { color: rgba(255,255,255,0.4); }
.galeria .section-title { color: #fff; }
.galeria .section-title em { color: #C4A882; }
.galeria .section-desc { color: rgba(255,255,255,0.5); }
.gal-item { border-radius: 0; }
.gal-item span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

/* ── Booking ── */
#reservar .section-title em { color: #C4A882; }
.booking-feature-icon { border-radius: 0; background: rgba(196,168,130,0.1); color: #C4A882; }
.booking-form-wrap { border-radius: 2px; }
.form-group input, .form-group select, .form-group textarea { border-radius: 0; }

/* ── Reviews ── */
.review-card { border-radius: 2px; }
.review-stars { color: #C4A882; }

/* ── Contact ── */
.contact-icon { border-radius: 0; background: rgba(0,0,0,0.03); }
.contact-map { border-radius: 2px; }

/* ── Footer ── */
.footer-logo span { color: #C4A882; }

/* ── Cookie + WhatsApp ── */
.cookie-btn.accept { background: #000; border-radius: 0; }
.wa-fab { border-radius: 0; }
.mobile-nav a { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.3rem; }

/* ========================================================================
   SERVICE QUEUE PANEL
   Back-office real-time queue management for salon services.
   All classes prefixed with `sq-`.
   ======================================================================== */

/* ---------- Queue Stats Bar ---------- */
.sq-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sq-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.sq-stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.sq-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sq-stat-card--waiting .sq-stat-icon  { background: rgba(217, 119, 6, 0.1);  color: var(--warning); }
.sq-stat-card--progress .sq-stat-icon { background: rgba(37, 99, 235, 0.1);  color: #2563eb; }
.sq-stat-card--done .sq-stat-icon     { background: rgba(22, 163, 74, 0.1);  color: var(--success); }
.sq-stat-card--revenue .sq-stat-icon  { background: rgba(0, 0, 0, 0.06); color: var(--accent); }

.sq-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sq-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.sq-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Controls Bar ---------- */
.sq-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sq-controls-left {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.sq-date-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.sq-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.sq-controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.sq-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.sq-btn--primary {
  background: #000000;
  border-color: #000000;
  color: #fff;
}

.sq-btn--primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sq-btn i,
.sq-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ---------- Service Grid ---------- */
.sq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(23.75rem, 1fr));
  gap: 1.25rem;
}

/* ---------- Service Card ---------- */
.sq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.sq-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--border);
}

/* Category accent top-borders */
.sq-card[data-category="peluqueria"]::before  { background: #8B5CF6; }
.sq-card[data-category="color"]::before       { background: #F59E0B; }
.sq-card[data-category="barberia"]::before    { background: #10B981; }
.sq-card[data-category="estetica"]::before    { background: #EC4899; }
.sq-card[data-category="tratamiento"]::before { background: #2563eb; }

.sq-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Card Header ---------- */
.sq-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem 0.75rem;
}

.sq-card-info {
  flex: 1;
  min-width: 0;
}

.sq-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.sq-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.sq-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.sq-pill--duration {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.sq-pill--price {
  background: rgba(0, 0, 0, 0.06);
  color: var(--accent);
}

.sq-pill--materials {
  background: var(--bg-muted);
  color: var(--text-secondary);
}

/* ---------- Availability Indicator ---------- */
.sq-card-availability {
  text-align: right;
  flex-shrink: 0;
  min-width: 4.5rem;
}

.sq-avail-fraction {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.5px;
}

.sq-avail-label {
  font-size: 0.62rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 0.2rem;
}

.sq-avail-bar {
  width: 100%;
  height: 0.25rem;
  border-radius: 100px;
  background: var(--bg-muted);
  margin-top: 0.4rem;
  overflow: hidden;
}

.sq-avail-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s;
}

/* Occupancy thresholds */
.sq-avail-bar-fill[data-occupancy="low"]  { background: var(--success); }
.sq-avail-bar-fill[data-occupancy="mid"]  { background: var(--warning); }
.sq-avail-bar-fill[data-occupancy="high"] { background: var(--danger); }

.sq-badge-full {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Queue List ---------- */
.sq-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 18.75rem;
  overflow-y: auto;
}

/* Subtle scrollbar */
.sq-queue::-webkit-scrollbar { width: 4px; }
.sq-queue::-webkit-scrollbar-track { background: transparent; }
.sq-queue::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 100px;
}
.sq-queue::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ---------- Queue Item ---------- */
.sq-queue-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-left: 3px solid transparent;
  transition: background var(--transition);
}

.sq-queue-item:hover {
  background: var(--bg-muted);
}

.sq-queue-item + .sq-queue-item {
  border-top: 1px solid var(--border-light);
}

/* Status variants */
.sq-queue-item.sq-status-waiting {
  border-left-color: var(--warning);
  background: rgba(217, 119, 6, 0.03);
}

.sq-queue-item.sq-status-in-progress {
  border-left-color: #2563eb;
  background: rgba(37, 99, 235, 0.03);
}

.sq-queue-item.sq-status-completed {
  border-left-color: var(--success);
  opacity: 0.6;
}

.sq-queue-item.sq-status-cancelled {
  border-left-color: var(--text-light);
  opacity: 0.4;
}

.sq-queue-item.sq-status-cancelled .sq-client-name {
  text-decoration: line-through;
}

/* Order number */
.sq-order {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sq-status-in-progress .sq-order {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.sq-status-waiting .sq-order {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
}

/* Client info */
.sq-client {
  flex: 1;
  min-width: 0;
}

.sq-client-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.sq-client-detail {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

/* ---------- Status Select ---------- */
.sq-status-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.55rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2378716c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  flex-shrink: 0;
}

.sq-status-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.sq-status-select--waiting {
  background-color: rgba(217, 119, 6, 0.08);
  color: var(--warning);
  border-color: rgba(217, 119, 6, 0.2);
}

.sq-status-select--in-progress {
  background-color: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

.sq-status-select--completed {
  background-color: rgba(22, 163, 74, 0.08);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.2);
}

.sq-status-select--cancelled {
  background-color: rgba(168, 162, 158, 0.08);
  color: var(--text-light);
  border-color: rgba(168, 162, 158, 0.2);
}

/* ---------- Card Footer ---------- */
.sq-card-footer {
  padding: 0.625rem 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.sq-card-footer i,
.sq-card-footer svg {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.5;
}

/* ---------- Empty State ---------- */
.sq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.sq-empty-icon {
  font-size: 2rem;
  color: var(--border);
  margin-bottom: 0.75rem;
}

.sq-empty-text {
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: 14rem;
  line-height: 1.5;
}

/* ---------- Walk-in Modal ---------- */
.sq-modal .modal-body {
  padding: 1.5rem;
}

.sq-form-group {
  margin-bottom: 1.125rem;
}

.sq-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
  letter-spacing: 0.2px;
}

.sq-form-input,
.sq-form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sq-form-input:focus,
.sq-form-select:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.sq-form-input::placeholder {
  color: var(--text-light);
}

.sq-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2378716c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  padding-right: 2.25rem;
}

.sq-form-submit {
  width: 100%;
  padding: 0.75rem;
  background: #000000;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.sq-form-submit:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sq-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sq-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sq-grid {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  }

  .sq-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sq-card-availability {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .sq-avail-bar {
    flex: 1;
    margin-top: 0;
  }

  .sq-card-meta {
    flex-wrap: wrap;
  }

  .sq-queue-item {
    padding: 0.5rem 0.625rem;
  }

  .sq-client-name {
    font-size: 0.78rem;
  }

  .sq-client-detail {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .sq-stats {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .sq-grid {
    grid-template-columns: 1fr;
  }

  .sq-date-label {
    font-size: 1.1rem;
  }

  .sq-summary {
    font-size: 0.75rem;
  }

  .sq-stat-value {
    font-size: 1.15rem;
  }

  .sq-stat-label {
    font-size: 0.65rem;
  }

  .sq-card-header {
    padding: 0.875rem 1rem 0.625rem;
  }

  .sq-card-footer {
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
  }

  .sq-avail-fraction {
    font-size: 1.25rem;
  }

  .sq-pill {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
  }

  .sq-queue-item {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
  }

  .sq-order {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.6rem;
  }

  .sq-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ========================================
   ASSISTANT VIRTUAL - STYLE OVERRIDES
   Clinical black + white luxury aesthetic
   ======================================== */

/* Trigger button - clinical minimal */
.assistant-trigger {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-muted));
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
  gap: 10px;
  padding: 12px 22px;
}
.assistant-trigger:hover {
  border-color: #000000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.08);
}
.assistant-dot {
  width: 8px;
  height: 8px;
  background: #000000;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.assistant-trigger span {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* Panel - glass morphism clinical */
.assistant-panel {
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  backdrop-filter: blur(20px);
  width: 400px;
  max-height: 560px;
}

/* Header - black clinical */
.assistant-header {
  background: linear-gradient(135deg, #000000, #0a0a0a);
  color: #fff;
  padding: 18px 22px;
  border-bottom: 2px solid #ffffff;
  position: relative;
}
.assistant-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.assistant-close {
  color: rgba(255,255,255,0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}
.assistant-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Messages area */
.assistant-body {
  padding: 20px;
  gap: 14px;
  background: var(--bg);
  max-height: 340px;
}

/* Bot messages */
.assistant-msg.bot {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  max-width: 88%;
  white-space: pre-line;
}

/* User messages */
.assistant-msg.user {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  max-width: 85%;
}

/* Suggestion chips */
.assistant-suggestions {
  padding: 8px 20px 14px;
  gap: 8px;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}
.assistant-suggestion {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #000000;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.1);
  transition: var(--transition);
  white-space: nowrap;
}
.assistant-suggestion:hover {
  background: #000000;
  color: #fff;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Input area */
.assistant-input-area {
  padding: 14px 16px;
  gap: 10px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}
.assistant-input {
  flex: 1;
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}
.assistant-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  background: var(--bg-card);
}
.assistant-input::placeholder {
  color: var(--text-light);
}

/* Send button */
.assistant-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: var(--transition);
}
.assistant-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Mic button */
.assistant-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fafafa;
  color: #000000;
  border: 1px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}
.assistant-mic:hover {
  background: #000000;
  color: #fff;
  border-color: #000000;
}
.assistant-mic.listening {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.15);
}

/* Voice status */
.assistant-status {
  text-align: center;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--bg);
}
.assistant-status.listening {
  color: var(--danger);
  background: rgba(220,38,38,0.04);
}
.assistant-status.speaking {
  color: #000000;
  background: rgba(0,0,0,0.03);
}

/* Waves animation refinement */
.assistant-waves span {
  background: var(--danger);
  border-radius: 3px;
  width: 3px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .assistant-panel {
    width: calc(100vw - 32px);
    left: 16px;
    bottom: 80px;
    max-height: 480px;
    border-radius: 16px;
  }
  .assistant-body { max-height: 260px; }
  .assistant-trigger { padding: 10px 16px; }
}
@media (max-width: 480px) {
  .assistant-trigger span { display: none; }
  .assistant-trigger { padding: 12px; width: 48px; height: 48px; justify-content: center; }
  .assistant-panel { bottom: 72px; }
}

/* =====================================================================
   ATELIER ROSÉ -- Backoffice Premium Redesign
   Light, warm, feminine luxury dashboard.
   Cream + white + soft pink accents. Clean beauty clinic aesthetic.
   ===================================================================== */

/* -- Google Font import for the backoffice -- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* -- Backoffice-scope design tokens -- */
.backoffice {
  --bo-bg: #FAF8F5;
  --bo-surface: #FFFFFF;
  --bo-surface-2: #F3F0EC;
  --bo-surface-raised: #EBE7E2;
  --bo-border: rgba(0,0,0,0.08);
  --bo-border-subtle: rgba(0,0,0,0.04);
  --bo-text: #1A1A1A;
  --bo-text-secondary: #6B6B6B;
  --bo-text-muted: #A3A3A3;
  --bo-gold: #D4A0A0;
  --bo-gold-dim: rgba(212,160,160,0.12);
  --bo-gold-glow: rgba(212,160,160,0.06);
  --bo-radius: 14px;
  --bo-radius-sm: 8px;
  --bo-radius-xs: 6px;
  --bo-font: 'Outfit', 'Inter', sans-serif;
  --bo-font-display: 'DM Serif Display', 'Playfair Display', serif;
  --bo-transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --bo-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --bo-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
}

/* -- Base backoffice container -- */
.backoffice {
  background: var(--bo-bg);
  min-height: 100vh;
  font-family: var(--bo-font);
  color: var(--bo-text);
  -webkit-font-smoothing: antialiased;
}

/* Radial glow removed for light theme */
.backoffice::before {
  display: none;
}

/* -- Header -- */
.backoffice .bo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--bo-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.backoffice .bo-header-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 12rem;
}

.backoffice .bo-logo {
  font-family: var(--bo-font-display);
  font-size: 1.2rem;
  color: var(--bo-text);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.backoffice .bo-logo span {
  color: #D4A0A0;
  font-style: italic;
}

.backoffice .bo-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--bo-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(212,160,160,0.15);
  color: #C48888;
  border: 1px solid rgba(212,160,160,0.25);
}

/* -- Tabs -- */
.backoffice .bo-tabs {
  display: flex;
  gap: 2px;
  background: var(--bo-surface);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--bo-border-subtle);
}

.backoffice .bo-tab {
  padding: 8px 20px;
  border-radius: 8px;
  font-family: var(--bo-font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bo-text-muted);
  transition: all var(--bo-transition);
  border: none;
  background: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.backoffice .bo-tab:hover {
  color: var(--bo-text);
  background: var(--bo-surface-2);
}
.backoffice .bo-tab.active {
  background: #1A1A1A;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* -- Header right -- */
.backoffice .bo-header-right .btn {
  font-family: var(--bo-font);
  color: var(--bo-text-secondary);
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--bo-transition);
  background: transparent;
}
.backoffice .bo-header-right .btn:hover {
  color: var(--bo-text);
  border-color: rgba(0,0,0,0.2);
  background: var(--bo-surface-2);
}

/* -- Body -- */
.backoffice .bo-body {
  padding-top: 5.5rem;
  padding-bottom: 2rem;
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  position: relative;
  z-index: 1;
}

/* -- Stats Cards -- */
.backoffice .bo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.backoffice .bo-stat-card {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--bo-transition);
}
.backoffice .bo-stat-card::before {
  display: none;
}
.backoffice .bo-stat-card:hover {
  border-color: var(--bo-border);
  box-shadow: var(--bo-shadow-sm);
}

.backoffice .bo-stat-label {
  font-family: var(--bo-font);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--bo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.backoffice .bo-stat-value {
  font-family: var(--bo-font);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* -- Queue Controls -- */
.backoffice .sq-controls {
  margin-bottom: 24px;
}
.backoffice .sq-date-label {
  font-family: var(--bo-font-display);
  font-size: 1.5rem;
  color: var(--bo-text);
  font-weight: 400;
}
.backoffice .sq-summary {
  font-family: var(--bo-font);
  color: var(--bo-text-muted);
  font-size: 0.82rem;
}
.backoffice .sq-summary strong {
  color: var(--bo-text);
  font-weight: 700;
}

.backoffice .sq-controls-right .btn {
  font-family: var(--bo-font);
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: 10px;
  color: var(--bo-text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 18px;
  transition: all var(--bo-transition);
}
.backoffice .sq-controls-right .btn:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--bo-text);
  background: var(--bo-surface-2);
}
.backoffice .sq-controls-right .btn svg {
  stroke: currentColor;
}

/* -- Service Queue Grid -- */
.backoffice .sq-grid {
  gap: 18px;
}

/* -- Service Card -- */
.backoffice .sq-card {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
  overflow: visible;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.backoffice .sq-card::before { display: none; }

.backoffice .sq-card:hover {
  border-color: var(--bo-border);
  box-shadow: var(--bo-shadow);
  transform: translateY(-2px);
}

.backoffice .sq-card-header {
  padding: 18px 20px 12px;
}

.backoffice .sq-card-name {
  font-family: var(--bo-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bo-text);
  letter-spacing: 0.01em;
}

.backoffice .sq-card-meta .sq-pill,
.backoffice .sq-pill {
  background: var(--bo-surface-2);
  color: var(--bo-text-secondary);
  border: 1px solid var(--bo-border-subtle);
  font-family: var(--bo-font);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
}
.backoffice .sq-pill-muted {
  color: var(--bo-text-muted);
}

/* -- Availability -- */
.backoffice .sq-avail-count {
  font-family: var(--bo-font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bo-text);
  line-height: 1;
}
.backoffice .sq-avail-count span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bo-text-muted);
}
.backoffice .sq-avail-label {
  font-family: var(--bo-font);
  font-size: 0.58rem;
  color: var(--bo-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.backoffice .sq-avail-bar {
  background: var(--bo-surface-2);
  height: 3px;
  border-radius: 4px;
}
.backoffice .sq-avail-fill {
  border-radius: 4px;
  height: 100%;
}
.backoffice .sq-avail-full {
  font-family: var(--bo-font);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(239,68,68,0.15);
}

/* -- Queue Items -- */
.backoffice .sq-queue {
  border-top: 1px solid var(--bo-border-subtle);
  max-height: 280px;
}
.backoffice .sq-queue::-webkit-scrollbar { width: 3px; }
.backoffice .sq-queue::-webkit-scrollbar-thumb { background: var(--bo-border); border-radius: 4px; }

.backoffice .sq-queue-item {
  padding: 10px 18px;
  border-left-width: 3px;
  transition: background var(--bo-transition);
}
.backoffice .sq-queue-item + .sq-queue-item {
  border-top: 1px solid var(--bo-border-subtle);
}
.backoffice .sq-queue-item:hover {
  background: var(--bo-surface-2);
}

.backoffice .sq-queue-item.sq-status-waiting { border-left-color: #f59e0b; background: rgba(245,158,11,0.03); }
.backoffice .sq-queue-item.sq-status-in-progress { border-left-color: #3b82f6; background: rgba(59,130,246,0.04); }
.backoffice .sq-queue-item.sq-status-completed { border-left-color: #10b981; opacity: 0.5; }
.backoffice .sq-queue-item.sq-status-cancelled { border-left-color: var(--bo-text-muted); opacity: 0.3; }

.backoffice .sq-queue-order {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bo-surface-raised);
  color: var(--bo-text-muted);
  font-family: var(--bo-font);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.backoffice .sq-queue-name {
  font-family: var(--bo-font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bo-text);
}
.backoffice .sq-queue-time {
  font-family: var(--bo-font);
  font-size: 0.7rem;
  color: var(--bo-text-muted);
}

/* -- Status Select (dark) -- */
.backoffice .sq-status-select,
.backoffice select.sq-status-select,
.backoffice .sq-select-waiting,
.backoffice .sq-select-in-progress,
.backoffice .sq-select-completed,
.backoffice .sq-select-cancelled {
  font-family: var(--bo-font);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 24px 4px 8px;
  border: 1px solid var(--bo-border);
  background-color: var(--bo-surface-2);
  color: var(--bo-text-secondary);
  cursor: pointer;
  transition: all var(--bo-transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%239c9590' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
  -webkit-appearance: none;
  appearance: none;
}
.backoffice .sq-select-waiting { color: #f59e0b; border-color: rgba(245,158,11,0.25); background-color: rgba(245,158,11,0.08); }
.backoffice .sq-select-in-progress { color: #3b82f6; border-color: rgba(59,130,246,0.25); background-color: rgba(59,130,246,0.08); }
.backoffice .sq-select-completed { color: #10b981; border-color: rgba(16,185,129,0.25); background-color: rgba(16,185,129,0.08); }
.backoffice select option { background: #FFFFFF; color: var(--bo-text); }

/* -- Card Footer -- */
.backoffice .sq-card-footer {
  border-top: 1px solid var(--bo-border-subtle);
  padding: 10px 20px;
  font-family: var(--bo-font);
  font-size: 0.7rem;
  color: var(--bo-text-muted);
}

/* -- Empty State -- */
.backoffice .sq-empty {
  color: var(--bo-text-muted);
  padding: 32px 16px;
  font-family: var(--bo-font);
  font-size: 0.8rem;
}

/* -- Activity Feed -- */
.backoffice .bo-activity {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
  padding: 24px;
  margin-top: 24px;
}
.backoffice .bo-activity h3 {
  font-family: var(--bo-font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--bo-text);
  margin-bottom: 18px;
}
.backoffice .activity-list {
  max-height: 260px;
  overflow-y: auto;
}
.backoffice .activity-item {
  padding: 10px 12px;
  border-radius: var(--bo-radius-sm);
  transition: background var(--bo-transition);
}
.backoffice .activity-item:hover {
  background: var(--bo-surface-2);
}
.backoffice .activity-text {
  font-family: var(--bo-font);
  font-size: 0.82rem;
  color: var(--bo-text-secondary);
}
.backoffice .activity-time {
  font-family: var(--bo-font);
  font-size: 0.68rem;
  color: var(--bo-text-muted);
}
.backoffice .activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 7px;
}

/* -- Modals (dark version) -- */
.backoffice .modal-overlay,
#svcEditModal,
#walkInModal,
#apptModal {
  backdrop-filter: blur(8px);
}
#svcEditModal .modal,
#walkInModal .modal,
#apptModal .modal {
  background: #FFFFFF;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.15);
  color: var(--bo-text);
}
#svcEditModal .modal h2,
#walkInModal .modal h2,
#apptModal .modal h2 {
  font-family: var(--bo-font-display);
  color: var(--bo-text);
}
#svcEditModal .modal label,
#walkInModal .modal label {
  color: var(--bo-text-muted);
}
#svcEditModal .modal input,
#svcEditModal .modal select,
#walkInModal .modal input,
#walkInModal .modal select {
  background: #FFFFFF;
  border-color: var(--bo-border);
  color: var(--bo-text);
  border-radius: var(--bo-radius-sm);
}
#svcEditModal .modal input:focus,
#walkInModal .modal input:focus {
  border-color: #D4A0A0;
  box-shadow: 0 0 0 3px rgba(212,160,160,0.3);
}
#svcEditModal .modal-close,
#walkInModal .modal-close,
#apptModal .modal-close {
  color: var(--bo-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--bo-transition);
}
#svcEditModal .modal-close:hover,
#walkInModal .modal-close:hover,
#apptModal .modal-close:hover {
  background: var(--bo-surface-2);
  color: var(--bo-text);
}

/* Modal field labels and values */
.backoffice .modal-field-label,
#svcEditModal label,
#walkInModal label {
  font-family: var(--bo-font);
}
.backoffice .modal-field-value {
  font-family: var(--bo-font);
  color: var(--bo-text);
}

/* -- Services Table (dark) -- */
.backoffice #boServicesList {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
}
.backoffice #boServicesList table {
  color: var(--bo-text);
}
.backoffice #boServicesList thead tr {
  background: var(--bo-surface-2);
}
.backoffice #boServicesList th {
  color: var(--bo-text-secondary);
  font-family: var(--bo-font);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.backoffice #boServicesList tr {
  border-bottom-color: var(--bo-border-subtle);
}
.backoffice #boServicesList td {
  font-family: var(--bo-font);
  color: var(--bo-text-secondary);
}
.backoffice #boServicesList tr:hover {
  background: var(--bo-surface-2);
}

/* Clients search */
.backoffice #clientSearch {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-sm);
  color: var(--bo-text);
  font-family: var(--bo-font);
  padding: 10px 16px;
}
.backoffice #clientSearch:focus {
  border-color: #D4A0A0;
  box-shadow: 0 0 0 3px rgba(212,160,160,0.3);
  outline: none;
}
.backoffice #clientSearch::placeholder {
  color: var(--bo-text-muted);
}
.backoffice #clientsList {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
}

/* -- Responsive backoffice -- */
@media (max-width: 48rem) {
  /* Header */
  .backoffice .bo-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 3.5rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .backoffice .bo-header-left {
    gap: 0.5rem;
  }
  .backoffice .bo-logo {
    font-size: 1rem;
  }
  .backoffice .bo-badge {
    font-size: 0.55rem;
    padding: 0.125rem 0.5rem;
  }
  .backoffice .bo-header-right {
    display: none;
  }
  .backoffice .bo-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    padding: 0.125rem;
  }
  .backoffice .bo-tabs::-webkit-scrollbar {
    display: none;
  }
  .backoffice .bo-tab {
    flex-shrink: 0;
    padding: 0.375rem 0.875rem;
    font-size: 0.78rem;
  }
  .backoffice .bo-body {
    padding-top: 7rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .backoffice .bo-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice .bo-stat-value {
    font-size: 1.6rem;
  }
  /* Dashboard */
  .backoffice .db-kpi {
    padding: 0.5rem 0.625rem;
  }
  .backoffice .db-kpi-value {
    font-size: 1rem;
  }
  .backoffice .db-columns {
    grid-template-columns: 1fr;
  }
  .backoffice .db-section {
    padding: 0.75rem;
  }
  /* Chart */
  .backoffice .db-chart {
    height: 5rem;
    padding-bottom: 1.25rem;
  }
  .backoffice .db-chart-value {
    font-size: 0.5rem;
  }
  .backoffice .db-chart-label {
    font-size: 0.5rem;
  }
  /* Clientes table */
  .backoffice #clientsList {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .backoffice #clientsList table {
    min-width: 40rem;
  }
  .backoffice #boTabClientes > div:first-child {
    flex-direction: column;
    gap: 0.5rem;
  }
  /* Servicios table */
  .backoffice #boServicesList {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .backoffice #boServicesList table {
    min-width: 50rem;
  }
  /* Ingresos */
  .backoffice .inc-periods {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .backoffice .inc-period {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  .backoffice .inc-kpis {
    gap: 0.375rem;
  }
  .backoffice .inc-breakdown {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .backoffice .inc-breakdown table,
  .backoffice .inc-table {
    min-width: 30rem;
  }
  .backoffice .inc-transactions {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .backoffice .inc-transactions table {
    min-width: 30rem;
  }
  /* Calendar */
  .backoffice .cal-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .backoffice .cal-month-label {
    font-size: 1.1rem;
    min-width: auto;
  }
  .backoffice .cal-day-num {
    font-size: 0.75rem;
  }
  .backoffice .cal-day-detail {
    padding: 0.75rem;
  }
  /* Client profile panel */
  .backoffice .cp-panel {
    width: 100%;
    padding-top: 1rem;
  }
  .backoffice .cp-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .backoffice .cp-stat-value {
    font-size: 1rem;
  }
  /* Modals */
  #walkInModal .modal,
  #svcEditModal .modal {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
@media (max-width: 30rem) {
  .backoffice .db-kpis {
    gap: 0.375rem;
  }
  .backoffice .inc-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .backoffice .bo-stats {
    grid-template-columns: 1fr;
  }
  .backoffice .sq-grid {
    grid-template-columns: 1fr;
  }
  .backoffice .sq-date-label {
    font-size: 1.2rem;
  }
}

/* =====================================================
   ACCORDION SERVICE QUEUE
   ===================================================== */

/* Grid becomes vertical list */
.backoffice .sq-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Card as accordion item */
.backoffice .sq-card {
  border-radius: 0;
  border: none;
  border-left: 3px solid transparent;
  background: var(--bo-surface);
  overflow: hidden;
  transition: all 0.2s ease;
}
.backoffice .sq-card:first-child { border-radius: 10px 10px 0 0; }
.backoffice .sq-card:last-child { border-radius: 0 0 10px 10px; }
.backoffice .sq-card::before { display: none; }

.backoffice .sq-card:hover {
  transform: none;
  background: var(--bo-surface-2);
  box-shadow: none;
}

/* Header row - compact, all info visible */
.backoffice .sq-card-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.backoffice .sq-card-header:hover {
  background: var(--bo-surface-2);
}

/* Chevron rotation */
.backoffice .sq-chevron {
  opacity: 0.3;
  transition: transform 0.25s ease, opacity 0.2s;
}
.backoffice .sq-card:hover .sq-chevron { opacity: 0.6; }
.backoffice .sq-card.sq-open .sq-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Body hidden by default */
.backoffice .sq-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.backoffice .sq-card.sq-open .sq-card-body {
  max-height: 600px;
}

/* Open state highlight */
.backoffice .sq-card.sq-open {
  background: var(--bo-surface-2);
}

/* Availability bar in header */
.backoffice .sq-card-header .sq-avail-bar {
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
}

/* Name styling in accordion */
.backoffice .sq-card-name {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer inside body */
.backoffice .sq-card-footer {
  border-top: 1px solid var(--bo-border-subtle);
  padding: 8px 18px;
  font-size: 0.68rem;
}

/* =====================================================
   HIDE VIEW-SWITCH & COOKIE BANNER IN BACKOFFICE
   ===================================================== */

.backoffice.active ~ .view-switch,
body:has(.backoffice.active) .view-switch {
  display: none;
}

body:has(.backoffice.active) .cookie-banner {
  display: none;
}

/* =====================================================
   DASHBOARD TAB (.db-)
   ===================================================== */

/* db-grid is now a vertical stack: KPIs on top, then columns below */
.backoffice .db-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* KPIs: 2x2 grid */
.backoffice .db-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.backoffice .db-kpi {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius-sm);
  padding: 0.625rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
}

.backoffice .db-kpi-label {
  font-size: 0.58rem;
  color: var(--bo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--bo-font);
  font-weight: 600;
}

.backoffice .db-kpi-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bo-text);
  font-family: var(--bo-font);
  line-height: 1.2;
}

.backoffice .db-kpi-sub {
  font-size: 0.6rem;
  color: var(--bo-text-muted);
  font-family: var(--bo-font);
}

.backoffice .db-kpi--accent .db-kpi-value {
  color: #D4A0A0;
}

/* Mobile card items (clients + services) */
.backoffice .bo-card-item {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--bo-border-subtle);
  cursor: pointer;
  transition: background var(--bo-transition);
}
.backoffice .bo-card-item:last-child {
  border-bottom: none;
}
.backoffice .bo-card-item:active {
  background: var(--bo-surface-2);
}
.backoffice .bo-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.backoffice .bo-card-row + .bo-card-row {
  margin-top: 0.125rem;
}
.backoffice .bo-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bo-text);
  font-family: var(--bo-font);
}
.backoffice .bo-card-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--bo-text);
  font-family: var(--bo-font);
  flex-shrink: 0;
}
.backoffice .bo-card-meta {
  font-size: 0.75rem;
  color: var(--bo-text-secondary);
  font-family: var(--bo-font);
}
.backoffice .bo-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bo-text-secondary);
  background: var(--bo-surface-2);
  padding: 0.125rem 0.5rem;
  border-radius: 2rem;
  font-family: var(--bo-font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 2-column layout below KPIs */
.backoffice .db-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

/* -- Dashboard Section -- */
.backoffice .db-section {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.backoffice .db-section-title {
  font-family: var(--bo-font);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bo-text);
  margin-bottom: 0.75rem;
}

/* -- Today List (cards) -- */
.backoffice .db-today-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.backoffice .db-today-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--bo-radius-sm);
  border: 1px solid var(--bo-border-subtle);
  background: var(--bo-surface);
  transition: all var(--bo-transition);
}

.backoffice .db-today-item:hover {
  border-color: var(--bo-border);
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.04);
}

.backoffice .db-today-time {
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 2.75rem;
  color: var(--bo-text);
  font-family: var(--bo-font);
}

.backoffice .db-today-client {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bo-text);
  font-family: var(--bo-font);
  flex: 1;
  min-width: 0;
}

.backoffice .db-today-service {
  font-size: 0.75rem;
  color: var(--bo-text-secondary);
  font-family: var(--bo-font);
}

.backoffice .db-today-status {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--bo-font);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.backoffice .db-today-status--completed {
  color: #059669;
  background: rgba(16,185,129,0.1);
}

.backoffice .db-today-status--waiting {
  color: #d97706;
  background: rgba(245,158,11,0.1);
}

.backoffice .db-today-status--in-progress {
  color: #2563eb;
  background: rgba(59,130,246,0.1);
}

.backoffice .db-today-status--cancelled {
  color: #dc2626;
  background: rgba(239,68,68,0.1);
}

.backoffice .db-today-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.backoffice .db-today-btn {
  font-size: 0.72rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--bo-font);
  background: var(--bo-surface-2);
  border: 1px solid var(--bo-border);
  color: var(--bo-text);
  transition: all var(--bo-transition);
}

.backoffice .db-today-btn:hover {
  background: #1A1A1A;
  color: #FFFFFF;
}

/* -- Alerts -- */
.backoffice .db-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.backoffice .db-alert {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--bo-radius-xs);
  font-size: 0.78rem;
  font-family: var(--bo-font);
}

.backoffice .db-alert--warning {
  background: rgba(245,158,11,0.08);
  border-left: 0.1875rem solid #f59e0b;
}

.backoffice .db-alert--info {
  background: rgba(59,130,246,0.08);
  border-left: 0.1875rem solid #3b82f6;
}

.backoffice .db-alert-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.backoffice .db-alert-text {
  color: var(--bo-text-secondary);
}

/* -- Chart -- */
.backoffice .db-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 6rem;
  padding: 1.25rem 0 1.5rem;
  position: relative;
}

.backoffice .db-chart-bar {
  flex: 1;
  background: #D4A0A0;
  border-radius: 0.1875rem 0.1875rem 0 0;
  min-height: 0.1875rem;
  transition: height 0.4s ease;
  position: relative;
}

.backoffice .db-chart-bar:hover {
  opacity: 0.8;
}

.backoffice .db-chart-label {
  position: absolute;
  bottom: -1.125rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5625rem;
  color: var(--bo-text-muted);
  font-family: var(--bo-font);
  white-space: nowrap;
}

.backoffice .db-chart-value {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5625rem;
  color: var(--bo-text-secondary);
  font-family: var(--bo-font);
  white-space: nowrap;
}

/* =====================================================
   CALENDAR (.cal-)
   ===================================================== */

/* Nueva cita button — desktop: top row; mobile: floating FAB */
.backoffice .cal-new-cita {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.backoffice .cal-new-cita-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

@media (max-width: 48rem) {
  .backoffice .cal-new-cita {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 90;
    margin: 0;
  }
  .backoffice .cal-new-cita-btn {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    background: #1A1A1A;
    color: #fff;
    border-color: #1A1A1A;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.2);
  }
  .backoffice .cal-new-cita-text {
    display: none;
  }
}

.backoffice .cal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.backoffice .cal-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.backoffice .cal-nav-btn {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: 0.375rem;
  color: var(--bo-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--bo-transition), border-color var(--bo-transition);
  font-size: 0.75rem;
}

.backoffice .cal-nav-btn:hover {
  color: var(--bo-text);
  border-color: rgba(0,0,0,0.2);
}

.backoffice .cal-month-label {
  font-family: var(--bo-font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--bo-text);
  min-width: 10rem;
  text-align: center;
}

.backoffice .cal-today-btn {
  padding: 0.3125rem 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid var(--bo-border);
  background: var(--bo-surface);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bo-text-secondary);
  font-family: var(--bo-font);
  cursor: pointer;
  transition: color var(--bo-transition), border-color var(--bo-transition);
}

.backoffice .cal-today-btn:hover {
  color: var(--bo-text);
  border-color: rgba(0,0,0,0.2);
}

/* -- Calendar Grid -- */
.backoffice .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
}

.backoffice .cal-weekday {
  text-align: center;
  font-size: 0.625rem;
  color: var(--bo-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.375rem 0.25rem;
  font-family: var(--bo-font);
}

.backoffice .cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.5rem 0.25rem;
  border-radius: var(--bo-radius-xs);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  min-height: 2.5rem;
}

.backoffice .cal-day:hover {
  background: var(--bo-surface-2);
}

.backoffice .cal-day--empty {
  cursor: default;
}

.backoffice .cal-day--empty:hover {
  background: transparent;
}

.backoffice .cal-day--today .cal-day-num {
  background: #1A1A1A;
  color: #FFFFFF;
  border-radius: 50%;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.backoffice .cal-day--selected {
  background: var(--bo-surface-raised);
}

.backoffice .cal-day--selected .cal-day-num {
  color: var(--bo-text);
}

.backoffice .cal-day--today.cal-day--selected .cal-day-num {
  color: #FFFFFF;
}

.backoffice .cal-day-num {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--bo-font);
  line-height: 1;
}

.backoffice .cal-day-dots {
  display: flex;
  gap: 0.125rem;
  min-height: 0.25rem;
}

.backoffice .cal-day-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #D4A0A0;
}

.backoffice .cal-day-dot--many {
  background: #f59e0b;
}

.backoffice .cal-day-dot--full {
  background: #ef4444;
}

.backoffice .cal-day-count {
  font-size: 0.5625rem;
  color: var(--bo-text-muted);
  font-family: var(--bo-font);
}

/* -- Day Detail -- */
.backoffice .cal-day-detail {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
  padding: 1rem;
  margin-top: 0.75rem;
}

.backoffice .cal-day-detail-title {
  font-family: var(--bo-font);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bo-text);
  margin-bottom: 0.625rem;
}

/* =====================================================
   CLIENT PROFILE MODAL (.cp-)
   ===================================================== */

.backoffice .cp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(0.5rem);
  z-index: 500;
  display: flex;
  justify-content: flex-end;
}

.backoffice .cp-panel {
  width: 26rem;
  max-width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  border-left: 3px solid #D4A0A0;
  overflow-y: auto;
  padding: 5.5rem 1.25rem 1.25rem;
  animation: boSlideInRight 0.25s cubic-bezier(0.4,0,0.2,1);
}

@keyframes boSlideInRight {
  from { transform: translateX(100%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

.backoffice .cp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.backoffice .cp-close {
  position: sticky;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bo-surface-2);
  border: 1px solid var(--bo-border);
  border-radius: 50%;
  color: var(--bo-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--bo-transition);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.backoffice .cp-close:hover {
  background: var(--bo-text);
  color: #fff;
}

.backoffice .cp-name {
  font-family: var(--bo-font-display);
  font-size: 1.375rem;
  color: var(--bo-text);
  margin-bottom: 0.1875rem;
}

.backoffice .cp-contact {
  font-size: 0.78rem;
  color: var(--bo-text-muted);
  font-family: var(--bo-font);
}

/* -- Stats -- */
.backoffice .cp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.backoffice .cp-stat {
  background: var(--bo-surface-2);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius-sm);
  padding: 0.625rem;
  text-align: center;
}

.backoffice .cp-stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--bo-text);
  font-family: var(--bo-font);
}

.backoffice .cp-stat-label {
  font-size: 0.5625rem;
  color: var(--bo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--bo-font);
}

/* -- Sections -- */
.backoffice .cp-section {
  margin-bottom: 1rem;
}

.backoffice .cp-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: var(--bo-font);
}

/* -- Notes -- */
.backoffice .cp-notes {
  width: 100%;
  min-height: 4.5rem;
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-sm);
  padding: 0.625rem;
  color: var(--bo-text);
  font-family: var(--bo-font);
  font-size: 0.82rem;
  resize: vertical;
}

.backoffice .cp-notes::placeholder {
  color: var(--bo-text-muted);
}

.backoffice .cp-notes:focus {
  border-color: #D4A0A0;
  box-shadow: 0 0 0 3px rgba(212,160,160,0.3);
  outline: none;
}

.backoffice .cp-save-notes {
  margin-top: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: #1A1A1A;
  color: #FFFFFF;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--bo-font);
  cursor: pointer;
  transition: opacity var(--bo-transition);
}

.backoffice .cp-save-notes:hover {
  opacity: 0.85;
}

/* -- History -- */
.backoffice .cp-history {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
}

.backoffice .cp-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.625rem;
  border-radius: var(--bo-radius-xs);
  transition: background var(--bo-transition);
}

.backoffice .cp-history-item:hover {
  background: var(--bo-surface);
}

.backoffice .cp-history-date {
  font-size: 0.72rem;
  color: var(--bo-text-muted);
  min-width: 4.5rem;
  font-family: var(--bo-font);
}

.backoffice .cp-history-service {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bo-text);
  font-family: var(--bo-font);
  flex: 1;
}

.backoffice .cp-history-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bo-text);
  font-family: var(--bo-font);
}

.backoffice .cp-history-status {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  font-family: var(--bo-font);
  letter-spacing: 0.02em;
}

/* -- Actions -- */
.backoffice .cp-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.backoffice .cp-btn {
  flex: 1;
  padding: 0.625rem;
  border-radius: var(--bo-radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: var(--bo-font);
  transition: opacity var(--bo-transition);
}

.backoffice .cp-btn:hover {
  opacity: 0.85;
}

.backoffice .cp-btn--primary {
  background: #1A1A1A;
  color: #FFFFFF;
}

.backoffice .cp-btn--secondary {
  background: #FFFFFF;
  color: var(--bo-text);
  border: 1px solid rgba(0,0,0,0.15);
}

/* =====================================================
   INCOME TAB (.inc-)
   ===================================================== */

.backoffice .inc-periods {
  display: inline-flex;
  gap: 0.125rem;
  margin-bottom: 1.25rem;
  background: var(--bo-surface);
  padding: 0.25rem;
  border-radius: 2rem;
  border: 1px solid var(--bo-border-subtle);
}

.backoffice .inc-period {
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bo-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--bo-font);
  background: transparent;
  border: none;
}

.backoffice .inc-period:hover {
  color: var(--bo-text);
}

.backoffice .inc-period.active {
  background: #1A1A1A;
  color: #FFFFFF;
  font-weight: 700;
}

.backoffice .inc-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* -- Breakdown Table -- */
.backoffice .inc-breakdown {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.backoffice .inc-table {
  width: 100%;
  border-collapse: collapse;
}

.backoffice .inc-table thead {
  background: var(--bo-surface-2);
}

.backoffice .inc-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--bo-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  font-family: var(--bo-font);
}

.backoffice .inc-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--bo-text-secondary);
  border-top: 1px solid var(--bo-border-subtle);
  font-family: var(--bo-font);
}

.backoffice .inc-table tr:hover td {
  background: var(--bo-surface-2);
}

.backoffice .inc-table .inc-pct-bar {
  height: 0.375rem;
  background: var(--bo-surface-raised);
  border-radius: 0.25rem;
  overflow: hidden;
  width: 100%;
  min-width: 4rem;
}

.backoffice .inc-table .inc-pct-fill {
  height: 100%;
  background: #D4A0A0;
  border-radius: 0.25rem;
  min-width: 0.25rem;
}

.backoffice .inc-total-row td {
  font-weight: 700;
  color: var(--bo-text);
  border-top: 0.125rem solid var(--bo-border);
}

/* -- Transactions -- */
.backoffice .inc-transactions {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border-subtle);
  border-radius: var(--bo-radius);
  overflow: hidden;
}

.backoffice .inc-transactions-title {
  padding: 0.75rem 1rem;
  font-family: var(--bo-font);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bo-text);
  border-bottom: 1px solid var(--bo-border-subtle);
}

/* =====================================================
   CLIENTS TABLE & SEARCH (dark theme)
   ===================================================== */

.backoffice table {
  width: 100%;
  border-collapse: collapse;
}

.backoffice table thead {
  background: var(--bo-surface-2);
}

.backoffice table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--bo-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  font-family: var(--bo-font);
}

.backoffice table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--bo-text-secondary);
  border-top: 1px solid var(--bo-border-subtle);
  font-family: var(--bo-font);
}

.backoffice table tr:hover td {
  background: var(--bo-surface-2);
}

/* Sort dropdown dark theme */
.backoffice select,
.backoffice .sort-select {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-sm);
  color: var(--bo-text);
  font-family: var(--bo-font);
  font-size: 0.78rem;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  transition: border-color var(--bo-transition);
}

.backoffice select:focus,
.backoffice .sort-select:focus {
  border-color: #D4A0A0;
  box-shadow: 0 0 0 3px rgba(212,160,160,0.3);
  outline: none;
}

.backoffice select option {
  background: #FFFFFF;
  color: var(--bo-text);
}

/* Search input dark theme (supplements existing #clientSearch) */
.backoffice input[type="search"],
.backoffice input[type="text"],
.backoffice #clientSearch {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-xs);
  color: var(--bo-text);
  font-family: var(--bo-font);
  font-size: 0.82rem;
  padding: 0.375rem 0.625rem;
}

.backoffice input[type="search"]::placeholder,
.backoffice input[type="text"]::placeholder,
.backoffice #clientSearch::placeholder {
  color: var(--bo-text-muted);
}

.backoffice input[type="search"]:focus,
.backoffice input[type="text"]:focus,
.backoffice #clientSearch:focus {
  border-color: #D4A0A0;
  box-shadow: 0 0 0 3px rgba(212,160,160,0.3);
  outline: none;
}

/* ========== BO View Title ========== */
.bo-view-title {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: none;
}

/* ========== BO Bottom Nav (mobile) ========== */
.bo-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bo-view-title {
    display: block;
  }
  .backoffice .bo-tabs {
    display: none;
  }
  .backoffice .bo-header {
    height: auto;
    min-height: 44px;
    padding: 8px 16px;
  }
  .backoffice .bo-body {
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .bo-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid var(--border);
    height: 64px;
    align-items: stretch;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  }
  .bo-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    padding: 6px 0;
    position: relative;
  }
  .bo-bnav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
  }
  .bo-bnav-item.active {
    color: var(--accent);
  }
  .bo-bnav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
  }
}

/* ========== Client Photo Gallery ========== */
.cp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.cp-photo-card {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}
.cp-photo-img {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cp-photo-img:hover {
  opacity: 0.85;
}
.cp-photo-info {
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.cp-photo-label {
  flex: 1;
  font-size: 0.65rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.cp-photo-actions {
  display: flex;
  gap: 0.15rem;
  flex-shrink: 0;
}
.cp-photo-actions button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s;
  padding: 0;
}
.cp-photo-actions button:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.cp-photo-card.cp-photo-selected {
  outline: 3px solid #D4A0A0;
  outline-offset: -3px;
}
.cp-photo-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 2px solid #D4A0A0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}
.cp-photo-selected .cp-photo-check {
  background: #D4A0A0;
  border-color: #D4A0A0;
}
.cp-photo-card {
  position: relative;
}
@media (max-width: 480px) {
  .cp-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Dashboard today info wrapper ========== */
.backoffice .db-today-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

/* ========== MOBILE: Dashboard today cards ========== */
@media (max-width: 768px) {
  .backoffice .db-today-item {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.25rem 0.5rem;
  }
  .backoffice .db-today-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .backoffice .db-today-info .db-today-client {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .backoffice .db-today-info .db-today-service {
    display: block;
    width: 100%;
    font-size: 0.72rem;
  }
  .backoffice .db-today-time {
    font-size: 0.78rem;
    min-width: auto;
    flex-shrink: 0;
  }
  .backoffice .db-today-status {
    flex-shrink: 0;
  }
  .backoffice .db-today-actions {
    flex-shrink: 0;
  }
  .backoffice .db-columns {
    grid-template-columns: 1fr;
  }
  .backoffice .db-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   RESPONSIVE - DASHBOARD, CALENDAR, PROFILE, INCOME
   ===================================================== */

@media (max-width: 48rem) {
  .backoffice .db-columns {
    grid-template-columns: 1fr;
  }
  .backoffice .db-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice .cal-day-num {
    font-size: 0.68rem;
  }
  .backoffice .cal-month-label {
    font-size: 0.9375rem;
    min-width: 8rem;
  }
  .backoffice .cp-panel {
    width: 100%;
  }
  .backoffice .inc-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice .inc-periods {
    flex-wrap: wrap;
  }
}

@media (max-width: 30rem) {
  .backoffice .cp-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .backoffice .cp-stat {
    padding: 0.375rem;
  }
  .backoffice .cp-stat-value {
    font-size: 1rem;
  }
  .backoffice .cp-stat-label {
    font-size: 0.5rem;
  }
  .backoffice .cal-day {
    padding: 0.375rem 0.125rem;
    min-height: 2rem;
  }
}

/* =====================================================
   LIGHT THEME VISIBILITY FIXES
   Ensure proper contrast on cream/white backgrounds
   ===================================================== */

/* -- "Nueva cita" outline button in Agenda -- */
.backoffice .btn-outline {
  border-color: rgba(0,0,0,0.15);
  color: var(--bo-text-secondary);
}
.backoffice .btn-outline:hover {
  border-color: #1A1A1A;
  color: #FFFFFF;
  background: #1A1A1A;
}

/* -- Servicios "Editar" buttons -- */
.backoffice #boServicesList button {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  color: var(--bo-text-secondary);
  border-radius: var(--bo-radius-xs);
  font-family: var(--bo-font);
  cursor: pointer;
  transition: all var(--bo-transition);
}
.backoffice #boServicesList button:hover {
  border-color: #1A1A1A;
  color: #FFFFFF;
  background: #1A1A1A;
}

/* -- Services table material pills (override inline styles) -- */
.backoffice #boServicesList td span {
  background: var(--bo-surface-raised);
  color: var(--bo-text-secondary);
}

/* -- Walk-in modal & backoffice .btn-primary (black on light) -- */
#walkInModal .btn-primary,
.backoffice .btn-primary {
  background: #1A1A1A;
  color: #FFFFFF;
  font-weight: 700;
}
#walkInModal .btn-primary:hover,
.backoffice .btn-primary:hover {
  background: #333333;
  color: #FFFFFF;
}

/* -- Walk-in modal title and labels -- */
#walkInModal h2 {
  color: var(--bo-text);
}
#walkInModal label {
  color: var(--bo-text-muted);
}

/* -- Walk-in modal close button -- */
#walkInModal .modal-close {
  color: var(--bo-text-secondary);
  font-size: 1.5rem;
}
#walkInModal .modal-close:hover {
  color: var(--bo-text);
}

/* -- Walk-in modal select and input -- */
#walkInModal select,
#walkInModal input {
  background: #FFFFFF;
  border: 1px solid var(--bo-border);
  color: var(--bo-text);
  border-radius: var(--bo-radius-sm);
}
