/* ============================================
   BARBERPRO – STYLES GLOBAUX
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e2b04a;
  --accent-dark: #c9962e;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --red: #ef4444;
  --green: #10b981;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --purple: #8b5cf6;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.2s ease;
  --heading-font: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   CLIENT SITE
   ============================================ */

.client-body { background: var(--white); }

/* Header */
.client-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent);
}
.logo i { font-size: 1.2rem; }

.header-nav { display: flex; gap: 0.5rem; margin-left: auto; align-items: center; }

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-admin { border: 1px solid rgba(255,255,255,0.2); }
.nav-admin:hover { border-color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--primary);
  padding: 0.5rem 1.5rem 1rem;
}
.mobile-menu a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem;
}
.mobile-menu.open { display: flex; }

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #0f3460 100%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2b04a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  transition: all 0.5s ease;
}
.hero-bg.has-image { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(22,33,62,0.75) 60%, rgba(15,52,96,0.65) 100%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag {
  display: inline-block;
  background: rgba(226, 176, 74, 0.15);
  border: 1px solid rgba(226, 176, 74, 0.3);
  color: var(--accent);
  padding: 0.4rem 1.2rem; border-radius: 50px;
  font-size: 0.85rem; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-title span { color: var(--accent); }
.hero-sub { color: rgba(255,255,255,0.7); font-size: 1.15rem; margin-bottom: 2.5rem; }

.hero-stats {
  position: relative; z-index: 1;
  display: flex; gap: 3rem; margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; color: var(--white); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat span { font-size: 0.85rem; opacity: 0.7; }

/* Sections */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--surface); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--primary); margin-bottom: 0.75rem;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.2rem; margin-bottom: 1rem;
}
.service-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem; }
.service-desc { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; }
.service-meta { display: flex; justify-content: space-between; align-items: center; }
.service-price { font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.service-duration { color: var(--text-light); font-size: 0.8rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.barber-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.barber-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.barber-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: var(--white);
  margin: 0 auto 1rem;
}
.barber-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.4rem; }
.barber-title { color: var(--text-light); font-size: 0.875rem; }

/* Booking Wizard */
.booking-wizard {
  max-width: 800px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.steps-indicator {
  display: flex; align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  gap: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1;
}
.step span {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}
.step p { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-top: 0.4rem; }
.step.active span { background: var(--accent); color: var(--primary); }
.step.active p { color: var(--white); }
.step.done span { background: var(--green); color: var(--white); }
.step-line {
  height: 2px; flex: 1;
  background: rgba(255,255,255,0.2); margin-bottom: 1.4rem;
}

.wizard-step { padding: 2rem; }
.wizard-step h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-hint { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1.5rem; }

.services-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.service-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.service-option:hover { border-color: var(--accent); }
.service-option.selected {
  border-color: var(--accent);
  background: rgba(226, 176, 74, 0.08);
}
.service-option .s-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.service-option .s-info { font-size: 0.8rem; color: var(--text-light); }
.service-option .s-price { font-weight: 700; color: var(--accent); margin-top: 0.5rem; }

.barbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.barber-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer; transition: var(--transition);
}
.barber-option:hover { border-color: var(--accent); }
.barber-option.selected { border-color: var(--accent); background: rgba(226,176,74,0.08); }
.barber-option .b-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem; font-weight: 700;
  margin: 0 auto 0.75rem;
}
.barber-option .b-name { font-weight: 600; font-size: 0.9rem; }

/* Calendar */
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.calendar-nav h4 { font-size: 1rem; font-weight: 600; text-transform: capitalize; }

/* Jours du calendrier public (page de réservation) */
.calendar-day {
  text-align: center; padding: 0.5rem 0.25rem;
  border-radius: 6px; cursor: pointer;
  font-size: 0.875rem; transition: background 0.15s;
}
.calendar-day:hover:not(.past):not(.day-closed) { background: rgba(0,0,0,0.06); }
.calendar-day.past { opacity: 0.35; pointer-events: none; cursor: default; }
.calendar-day.day-closed {
  opacity: 0.25; pointer-events: none; cursor: not-allowed;
  text-decoration: line-through;
}
.calendar-day.empty { cursor: default; }
.cal-day-header { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--text-light); padding: 0.5rem 0; }

.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem; margin-bottom: 1.5rem;
}
.calendar-grid .day-name {
  text-align: center; font-size: 0.75rem; font-weight: 600;
  color: var(--text-light); padding: 0.5rem 0;
}
.cal-day {
  text-align: center; padding: 0.5rem 0.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.875rem;
  transition: var(--transition);
}
.cal-day:hover { background: var(--surface); }
.cal-day.today { background: rgba(226,176,74,0.15); font-weight: 600; color: var(--accent); }
.cal-day.selected { background: var(--accent); color: var(--primary); font-weight: 600; }
.cal-day.past { opacity: 0.35; pointer-events: none; }
.cal-day.empty { cursor: default; }
.cal-day.has-appt::after {
  content: ''; display: block; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
  margin: 2px auto 0;
}

.time-slots-section { margin-top: 1rem; }
.time-slots-section h4 { font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }
.time-slots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slot-btn {
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 50px; background: none;
  font-size: 0.875rem; cursor: pointer;
  transition: var(--transition); color: var(--text);
}
.slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--primary); font-weight: 600; }

/* Client Form */
.client-form { padding-top: 0.5rem; }
.booking-summary {
  background: var(--surface);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem; color: var(--text-light);
}
.booking-summary strong { color: var(--text); font-weight: 600; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 500;
  margin-bottom: 0.4rem; color: var(--text);
}
.form-group label i { width: 16px; color: var(--accent); margin-right: 0.3rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit;
  background: var(--white); color: var(--text);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,176,74,0.1);
}
.form-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Success */
.success-screen { text-align: center; padding: 2rem; }
.success-icon {
  font-size: 4rem; color: var(--green); margin-bottom: 1rem;
  animation: popIn 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.success-screen h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-screen p { color: var(--text-light); margin-bottom: 1.5rem; }
.booking-confirmation {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 1.25rem; text-align: left; margin-bottom: 1.5rem;
}
.confirmation-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.confirmation-row:last-child { border-bottom: none; }
.confirmation-row .label { color: var(--text-light); font-size: 0.875rem; }
.confirmation-row .value { font-weight: 600; font-size: 0.875rem; }

/* Step navigation */
.step-nav { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }

/* Footer */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto 2rem;
}
.footer-grid .logo { color: var(--accent); margin-bottom: 0.75rem; }
.footer-grid p { font-size: 0.875rem; margin-bottom: 0.3rem; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-grid i { width: 16px; color: var(--accent); margin-right: 0.4rem; }
.closed { color: rgba(255,255,255,0.35) !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem; text-align: center; font-size: 0.8rem;
  max-width: 1200px; margin: 0 auto;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.admin-body { overflow: hidden; height: 100vh; display: flex; background: var(--surface); }

/* Sidebar */
.sidebar {
  width: 260px; min-height: 100vh;
  background: var(--primary);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 200;
}
.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header .logo { color: var(--accent); font-size: 1.2rem; }
.sidebar-close { display: none; background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 1.1rem; }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-footer { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.08); }

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 0.9rem;
  transition: var(--transition); position: relative;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.nav-item.active {
  background: rgba(226,176,74,0.12);
  color: var(--accent);
  border-right: 3px solid var(--accent);
}
.nav-item i { width: 18px; text-align: center; font-size: 0.9rem; }
.nav-item .badge {
  margin-left: auto;
  background: var(--red); color: var(--white);
  font-size: 0.7rem; font-weight: 600;
  padding: 2px 6px; border-radius: 50px;
  min-width: 20px; text-align: center;
}
.nav-item .badge:empty, .nav-item .badge[data-zero] { display: none; }

/* Main area */
.admin-main {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; min-width: 0;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  flex-shrink: 0;
}
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; font-size: 1.2rem; color: var(--text);
  padding: 0.25rem;
}
.page-title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.date-display { color: var(--text-light); font-size: 0.875rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}

.admin-content { flex: 1; overflow-y: auto; padding: 1.5rem; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow); border-left: 4px solid transparent;
}
.kpi-blue { border-color: var(--blue); }
.kpi-green { border-color: var(--green); }
.kpi-purple { border-color: var(--purple); }
.kpi-orange { border-color: var(--orange); }
.kpi-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.kpi-blue .kpi-icon { background: rgba(59,130,246,0.1); color: var(--blue); }
.kpi-green .kpi-icon { background: rgba(16,185,129,0.1); color: var(--green); }
.kpi-purple .kpi-icon { background: rgba(139,92,246,0.1); color: var(--purple); }
.kpi-orange .kpi-icon { background: rgba(245,158,11,0.1); color: var(--orange); }
.kpi-label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.25rem; display: block; }
.kpi-value { font-size: 1.6rem; font-weight: 800; color: var(--text); }

/* Cards */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-full { grid-column: 1 / -1; }
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 0.95rem; font-weight: 600; }
.chart-container { padding: 1rem; height: 250px; }

/* Page actions */
.page-section { animation: fadeIn 0.2s ease; }
.page-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.25rem; align-items: center;
}
.page-actions .form-input { flex: 1; min-width: 160px; max-width: 240px; }

/* Tables */
.table-container { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  padding: 0.75rem 1rem; text-align: left;
  background: var(--surface); font-size: 0.8rem;
  font-weight: 600; color: var(--text-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.6rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.status-pending { background: rgba(245,158,11,0.1); color: var(--orange); }
.status-confirmed { background: rgba(59,130,246,0.1); color: var(--blue); }
.status-completed { background: rgba(16,185,129,0.1); color: var(--green); }
.status-cancelled { background: rgba(239,68,68,0.1); color: var(--red); }
.status-no-show { background: rgba(100,116,139,0.1); color: var(--text-light); }

/* Appointment mini list */
.appointment-list-mini { padding: 0.5rem; }
.appt-mini-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  margin-bottom: 0.25rem; transition: var(--transition);
}
.appt-mini-item:hover { background: var(--surface); }
.appt-mini-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.appt-mini-info { flex: 1; min-width: 0; }
.appt-mini-info .name { font-weight: 500; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-mini-info .service { font-size: 0.75rem; color: var(--text-light); }
.appt-mini-time { font-size: 0.8rem; font-weight: 600; color: var(--text-light); white-space: nowrap; }

/* Calendar view */
.calendar-view {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto;
}
.cal-time-grid {
  display: grid;
  grid-template-columns: 60px repeat(var(--barber-cols, 1), 1fr);
  min-height: 600px;
}
.cal-time-label {
  padding: 0.4rem 0.5rem; text-align: right; font-size: 0.7rem; color: var(--text-light);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cal-col-header {
  padding: 0.6rem 0.5rem; text-align: center; font-size: 0.8rem;
  font-weight: 600; border-bottom: 2px solid var(--border);
  background: var(--surface);
}
.cal-cell {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  min-height: 30px; position: relative; cursor: pointer; transition: var(--transition);
}
.cal-cell:hover { background: rgba(226,176,74,0.04); }
.cal-event {
  position: absolute; left: 2px; right: 2px;
  border-radius: 4px; padding: 2px 6px;
  font-size: 0.7rem; font-weight: 600; color: var(--white);
  overflow: hidden; cursor: pointer; z-index: 1;
}
.cal-blocked {
  background: repeating-linear-gradient(
    45deg, #64748b 0px, #64748b 3px, #94a3b8 3px, #94a3b8 10px
  ) !important;
  color: #fff; opacity: 0.85;
  border: 1px dashed #475569;
}

/* Accounting */
.accounting-summary {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 1.25rem;
}
.acc-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); text-align: center;
}
.acc-card .label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; display: block; }
.acc-card .value { font-size: 1.4rem; font-weight: 800; }
.acc-income .value { color: var(--green); }
.acc-expense .value { color: var(--red); }
.acc-net .value { color: var(--blue); }

/* Reports */
.report-form { padding: 1.25rem; }
.report-types { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.checkbox-card {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.875rem; font-weight: 500; transition: var(--transition);
}
.checkbox-card:has(input:checked) { border-color: var(--accent); background: rgba(226,176,74,0.08); }
.checkbox-card input { accent-color: var(--accent); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.25rem; }
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.settings-item:last-child { border-bottom: none; }
.settings-item .info .name { font-weight: 500; font-size: 0.9rem; }
.settings-item .info .meta { font-size: 0.8rem; color: var(--text-light); }

/* Hero image upload */
.hero-upload-zone {
  padding: 1.25rem;
  display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap;
}
.hero-preview-wrap { flex-shrink: 0; }
.hero-preview {
  width: 280px; height: 158px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.hero-preview:hover .hero-preview-overlay { opacity: 1; }
.hero-preview-placeholder { text-align: center; color: rgba(255,255,255,0.4); padding: 1rem; }
.hero-preview-placeholder i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.hero-preview-placeholder p { font-size: 0.75rem; }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.hero-preview-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.hero-upload-controls { flex: 1; min-width: 200px; }
.upload-hint { font-size: 0.8rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
.upload-label { cursor: pointer; display: inline-flex; }
.upload-progress { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-light); }
.hero-texts-form { border-top: 1px solid var(--border); }

/* Modals */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 500; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: block; }
.modal {
  display: none; position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.modal.open { display: block; transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-header button { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 1.1rem; }
.modal-body { padding: 1.25rem 1.5rem; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 0.75rem;
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Toast */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.875rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 280px; max-width: 380px;
  border-left: 4px solid var(--green);
  animation: slideIn 0.3s ease;
}
.toast.error { border-color: var(--red); }
.toast.warning { border-color: var(--orange); }
.toast i { font-size: 1rem; }
.toast.error i { color: var(--red); }
.toast .toast-success i { color: var(--green); }
.toast p { font-size: 0.875rem; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; border: none; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--primary);
  box-shadow: 0 2px 8px rgba(226,176,74,0.3);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(226,176,74,0.4); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-icon { background: none; border: 1.5px solid var(--border); color: var(--text); padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); cursor: pointer; }
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* Form input (admin) */
.form-input {
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.875rem; font-family: inherit;
  background: var(--white); color: var(--text);
  transition: var(--transition); outline: none; width: 100%;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,176,74,0.1); }

/* Action buttons in table */
.action-btns { display: flex; gap: 0.25rem; }
.btn-table {
  padding: 0.3rem 0.6rem; border-radius: 6px;
  border: none; cursor: pointer; font-size: 0.75rem;
  transition: var(--transition);
}
.btn-confirm { background: rgba(16,185,129,0.1); color: var(--green); }
.btn-confirm:hover { background: var(--green); color: var(--white); }
.btn-complete { background: rgba(59,130,246,0.1); color: var(--blue); }
.btn-complete:hover { background: var(--blue); color: var(--white); }
.btn-cancel { background: rgba(239,68,68,0.1); color: var(--red); }
.btn-cancel:hover { background: var(--red); color: var(--white); }
.btn-send { background: rgba(139,92,246,0.1); color: var(--purple); }
.btn-send:hover { background: var(--purple); color: var(--white); }
.btn-edit { background: rgba(245,158,11,0.1); color: var(--orange); }
.btn-edit:hover { background: var(--orange); color: var(--white); }
.btn-delete { background: rgba(239,68,68,0.1); color: var(--red); }
.btn-delete:hover { background: var(--red); color: var(--white); }

/* Helpers */
.hidden { display: none !important; }
.spinner-container { display: flex; justify-content: center; padding: 2rem; width: 100%; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.skeleton-card {
  background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius); height: 140px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-light);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.3; display: block; }

/* Barber stats table */
.barber-stat-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.barber-stat-row:last-child { border-bottom: none; }
.barber-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.barber-stat-info { flex: 1; }
.barber-stat-info .name { font-weight: 500; font-size: 0.875rem; }
.barber-stat-info .appts { font-size: 0.75rem; color: var(--text-light); }
.barber-stat-rev { font-weight: 700; font-size: 0.9rem; color: var(--green); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

  .booking-wizard { border-radius: 0; box-shadow: none; }
  .steps-indicator { padding: 1rem; gap: 0; }
  .step p { display: none; }
  .wizard-step { padding: 1.25rem; }

  .services-select-grid { grid-template-columns: 1fr 1fr; }

  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-close { display: block; }

  .admin-main { width: 100%; }
  .menu-toggle { display: block; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }

  .page-actions { flex-direction: column; align-items: stretch; }
  .page-actions .form-input { max-width: none; }

  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.75rem; }

  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; justify-content: center; }

  .hero-stats { margin-top: 2rem; padding-top: 2rem; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .services-select-grid { grid-template-columns: 1fr; }
  .barbers-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1rem; }
  .stat strong { font-size: 1.5rem; }
  .modal { width: 96%; max-height: 95vh; }
}

/* ===== SAAS ADDITIONS ===== */

/* Plan badge */
.plan-badge {
  background: var(--accent); color: var(--primary);
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
  border-radius: 50px; text-transform: uppercase;
}
.plan-badge.past_due { background: var(--red); color: white; }
.plan-badge.trialing { background: var(--blue); color: white; }

/* Trial/payment banners */
.banner-trial, .banner-warning {
  padding: 0.6rem 1.5rem; text-align: center;
  font-size: 0.875rem; display: flex; align-items: center;
  justify-content: center; gap: 0.75rem;
}
.banner-trial { background: rgba(59,130,246,0.1); color: var(--blue); border-bottom: 1px solid rgba(59,130,246,0.2); }
.banner-warning { background: rgba(239,68,68,0.1); color: var(--red); border-bottom: 1px solid rgba(239,68,68,0.2); }

/* Setup / onboarding banner */
.banner-setup {
  background: linear-gradient(135deg, rgba(226,176,74,0.12), rgba(226,176,74,0.04));
  border-bottom: 1px solid rgba(226,176,74,0.25);
  padding: 1rem 1.5rem;
}
.setup-banner-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.setup-banner-top strong { color: var(--text); font-size: 0.9rem; }
.setup-steps-row {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.setup-step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  border: 1.5px solid rgba(226,176,74,0.35);
  background: rgba(226,176,74,0.06);
  color: var(--text); transition: all 0.2s;
  user-select: none;
}
.setup-step:hover:not(.done) { background: rgba(226,176,74,0.14); border-color: var(--accent); }
.setup-step.done { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.07); color: var(--text-light); cursor: default; }
.setup-step.done i { color: #22c55e; }
.setup-step:not(.done) i { color: var(--accent); }
.btn-see-page {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 7px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--accent); color: var(--primary);
  text-decoration: none; transition: background 0.2s;
}
.btn-see-page:hover { background: var(--accent-dark); }
.setup-dismiss-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 1rem; padding: 2px 4px;
  line-height: 1; transition: color 0.15s;
}
.setup-dismiss-btn:hover { color: var(--text); }
.setup-toggle-btn {
  background: none; border: 1.5px solid rgba(226,176,74,0.35); border-radius: 6px;
  cursor: pointer; color: var(--text-light); font-size: 0.75rem;
  padding: 3px 7px; line-height: 1; transition: all 0.15s; display: none;
}
.setup-toggle-btn:hover { color: var(--text); border-color: var(--accent); }
.setup-toggle-btn .toggle-icon { display: inline-block; transition: transform 0.22s; }
.banner-setup.collapsed .setup-steps-row { display: none; }
.banner-setup:not(.collapsed) .setup-toggle-btn .toggle-icon { transform: rotate(180deg); }
@media (max-width: 767px) {
  .setup-toggle-btn { display: inline-flex; align-items: center; gap: 4px; }
  .setup-banner-top { cursor: pointer; }
}

/* Pricing page */
.pricing-hero { background: linear-gradient(135deg, var(--primary), #0f3460); color: white; padding: 5rem 1.5rem; text-align: center; }
.pricing-hero h1 { font-size: clamp(2rem,5vw,3.5rem); font-family: 'Playfair Display',serif; color: var(--accent); margin-bottom: 1rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; }
.pricing-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; border: 2px solid var(--border); position: relative; }
.pricing-card.featured { border-color: var(--accent); transform: scale(1.02); }
.pricing-card .plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-card .plan-price { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.pricing-card .plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card .plan-features { list-style: none; margin: 1.5rem 0; }
.pricing-card .plan-features li { padding: 0.4rem 0; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }
.pricing-card .plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--primary); font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; }

/* Onboarding */
.onboarding-body { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.onboarding-card { background: white; border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.onboarding-steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.onboarding-step { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.onboarding-step.active { background: var(--accent); }

/* Booking page */
.booking-body { background: var(--surface); }
.booking-header { background: var(--primary); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.booking-header .salon-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.booking-header .salon-name { color: white; font-weight: 600; font-size: 1.1rem; }
.booking-hero { min-height: 70vh; background: linear-gradient(135deg, var(--primary), #0f3460); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; position: relative; overflow: hidden; }
.booking-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transition: opacity 1.2s ease; }
.booking-hero-overlay { position: absolute; inset: 0; background: rgba(26,26,46,0.75); }
.booking-hero-content { position: relative; z-index: 1; }
.booking-hero-content h1 { font-family: var(--heading-font); font-size: clamp(2rem,5vw,3.5rem); color: white; margin-bottom: 0.75rem; }
.booking-hero-content h1 span { color: var(--tenant-accent, #e2b04a); }
.booking-hero-content p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

/* Customization section */
.custom-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; padding: 1.25rem; }
.custom-image-zone { border: 2px dashed var(--border); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.custom-image-zone .zone-label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); padding: 0.5rem 0.75rem; background: var(--surface); }
.custom-image-preview { width: 100%; height: 120px; object-fit: cover; display: block; }
.custom-image-placeholder { height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-light); gap: 0.5rem; font-size: 0.8rem; cursor: pointer; }
.custom-image-placeholder:hover { background: var(--surface); }
.custom-image-placeholder i { font-size: 1.5rem; }
.custom-image-actions { display: flex; gap: 0.5rem; padding: 0.5rem; }

/* Team section */
.role-badge { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.role-owner { background: rgba(226,176,74,0.15); color: #c9962e; }
.role-admin { background: rgba(59,130,246,0.1); color: var(--blue); }
.role-barber { background: rgba(16,185,129,0.1); color: var(--green); }

/* Billing section */
.billing-plan-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.25rem; }
.billing-current { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.billing-plan-name { font-size: 1.3rem; font-weight: 700; }
.billing-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.billing-plan-option { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; cursor: pointer; transition: var(--transition); }
.billing-plan-option:hover, .billing-plan-option.current { border-color: var(--accent); background: rgba(226,176,74,0.05); }
.billing-plan-option .price { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

/* Booking URL card */
.booking-url-card { background: var(--surface); border-radius: var(--radius-sm); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; border: 1px solid var(--border); }
.booking-url-text { flex: 1; color: var(--blue); text-decoration: none; word-break: break-all; }

/* Color picker */
.color-picker-wrap { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.color-preview { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--border); flex-shrink: 0; }

/* Booking nav */
.booking-nav { background: var(--primary-light); position: sticky; top: 0; z-index: 99; border-bottom: 1px solid rgba(255,255,255,0.08); }
.booking-nav-inner { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 1100px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.booking-nav-inner::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .booking-nav { position: relative; }
  .booking-nav-inner { justify-content: flex-start; padding: 0 0.25rem; }
  .booking-nav::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 48px; background: linear-gradient(to right, transparent, var(--primary-light, #1a1a2e)); pointer-events: none; }
  [data-theme="minimal"] .booking-nav::after,
  [data-theme="magazine"] .booking-nav::after { background: linear-gradient(to right, transparent, #fff); }
  [data-theme="vibrant"] .booking-nav::after { background: linear-gradient(to right, transparent, #7c3aed); }
  [data-theme="sidebar"] .booking-nav::after { background: linear-gradient(to right, transparent, var(--primary-light, #1a1a2e)); }
}
.bnav-link { color: rgba(255,255,255,0.6); text-decoration: none; padding: 0.9rem 1.25rem; font-size: 0.85rem; font-weight: 500; white-space: nowrap; transition: var(--transition); border-bottom: 2px solid transparent; }
.bnav-link:hover, .bnav-link.active { color: white; border-bottom-color: var(--tenant-accent, #e2b04a); }
.bnav-cta { background: var(--tenant-accent, #e2b04a); color: #fff !important; margin: 0.4rem 0.75rem; border-radius: 20px; padding: 0.45rem 1.1rem; font-weight: 600; border-bottom: none !important; }
.bnav-cta:hover { filter: brightness(0.9); border-bottom: none !important; }
.bnav-cta.active { border-bottom: none !important; }

/* Nav dropdowns */
.bnav-dropdown { position: relative; display: flex; align-items: stretch; }
.bnav-caret { font-size: 0.65rem; margin-left: 0.25rem; opacity: 0.6; transition: transform 0.2s; vertical-align: middle; }
.bnav-dropdown.open .bnav-caret { transform: rotate(180deg); opacity: 1; }
.bnav-dropdown-menu {
  display: none;
  position: fixed;
  min-width: 180px;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9999;
  overflow: hidden;
}
.bnav-dropdown-menu.open { display: block; }
.bnav-dropdown-item {
  display: block;
  padding: 0.65rem 1.1rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bnav-dropdown-item:last-child { border-bottom: none; }
.bnav-dropdown-item:hover { background: rgba(255,255,255,0.1); color: white; }
.bnav-dropdown-empty { padding: 0.65rem 1.1rem; color: rgba(255,255,255,0.35); font-size: 0.8rem; font-style: italic; }

/* Services showcase */
.services-showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.25rem; }
.service-showcase-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: var(--transition); }
.service-showcase-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--tenant-accent, #e2b04a); }
.ssc-icon { font-size: 1.5rem; color: var(--tenant-accent, #e2b04a); }
.ssc-info h3 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.ssc-info p { font-size: 0.825rem; color: var(--text-light); }
.ssc-meta { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid var(--border); margin-top: auto; }
.ssc-duration { font-size: 0.8rem; color: var(--text-light); }
.ssc-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }

/* Marque section layout */
.marque-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Social icons */
.header-socials { display: flex; align-items: center; gap: 0.4rem; }
.social-icon-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); text-decoration: none; transition: var(--transition); font-size: 0.9rem; flex-shrink: 0; }
.social-icon-link:hover { background: var(--tenant-accent, #e2b04a); color: var(--primary); }

/* Booking footer */
.booking-footer { background: var(--primary); padding: 2.5rem 1.5rem; text-align: center; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-contact { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.footer-socials { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-socials .social-icon-link { width: 42px; height: 42px; font-size: 1rem; background: rgba(255,255,255,0.1); }

/* Booking wizard on dark bg */
#reservation .booking-wizard { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }

/* Gallery — Admin */
.gallery-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; }
.gallery-admin-item { display: flex; flex-direction: column; }
.gallery-admin-img-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; background: var(--surface); }
.gallery-admin-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: var(--transition); }
.gallery-admin-img-wrap:hover img { transform: scale(1.03); }
.gallery-admin-delete { position: absolute; top: 6px; right: 6px; background: rgba(239,68,68,0.9); color: white; border: none; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.gallery-admin-img-wrap:hover .gallery-admin-delete { opacity: 1; }
.gallery-caption-input { width: 100%; }

/* Gallery — Public booking page */
.gallery-public-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.gallery-public-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--surface); cursor: pointer; }
.gallery-public-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-public-item:hover img { transform: scale(1.05); }
.gallery-public-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.5rem 0.75rem; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: white; font-size: 0.8rem; }

/* Lightbox */
.gallery-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.gallery-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.gallery-lightbox-content { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.gallery-lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-sm); object-fit: contain; }
.gallery-lightbox-content p { color: white; font-size: 0.9rem; }
.gallery-lightbox-content button { position: absolute; top: -40px; right: 0; background: rgba(255,255,255,0.15); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.gallery-lightbox-content button:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .custom-images-grid { grid-template-columns: 1fr; }
  .billing-plans-grid { grid-template-columns: 1fr; }
  .gallery-admin-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }
  .gallery-public-grid { grid-template-columns: repeat(2, 1fr); }
  .bnav-link { padding: 0.75rem 0.85rem; font-size: 0.78rem; }
  .services-showcase-grid { grid-template-columns: 1fr; }
  .marque-inner { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  #reservation .booking-wizard { padding: 1.25rem; }
}

/* ---- Services admin page ---- */
.service-page-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.service-page-item:last-child { border-bottom: none; }
.spi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.spi-info { flex: 1; min-width: 0; }
.spi-name { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.spi-meta { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spi-price { font-size: 1rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.spi-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Icon picker */
.icon-picker {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.icon-opt {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-light);
  transition: all 0.15s;
}
.icon-opt:hover { border-color: var(--accent); color: var(--accent); }
.icon-opt.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); }

/* ---- Products admin ---- */
.modal-lg { max-width: 680px; }
.products-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.product-admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.product-admin-card:hover { box-shadow: var(--shadow); }
.pac-photo { height: 140px; overflow: hidden; cursor: pointer; background: var(--surface); }
.pac-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.pac-photo img:hover { transform: scale(1.04); }
.pac-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 2rem; cursor: pointer; }
.pac-info { padding: 0.75rem; flex: 1; }
.pac-name { font-weight: 600; font-size: 0.875rem; color: var(--primary); }
.pac-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.pac-price { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin-top: 0.3rem; }
.pac-actions { padding: 0.5rem 0.75rem; display: flex; gap: 0.4rem; border-top: 1px solid var(--border); background: var(--surface); }

.product-photo-zone {
  width: 140px;
  height: 140px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.15s;
}
.product-photo-zone:hover { border-color: var(--accent); }
#productPhotoPlaceholder { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; pointer-events: none; }

/* ---- Products public (booking page) ---- */
.products-brand-group { margin-bottom: 3rem; }
.products-brand-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.products-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.product-pub-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition: box-shadow 0.15s, transform 0.15s;
}
.product-pub-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.ppc-photo { height: 160px; background: var(--surface); overflow: hidden; }
.ppc-photo img { width: 100%; height: 100%; object-fit: cover; }
.ppc-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--border); }
.ppc-info { padding: 0.875rem; }
.ppc-brand { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 2px; }
.ppc-name { font-weight: 600; font-size: 0.9rem; color: var(--primary); margin-bottom: 4px; }
.ppc-type { display: inline-block; font-size: 0.7rem; background: var(--surface); color: var(--text-light); border-radius: 4px; padding: 2px 6px; margin-bottom: 4px; }
.ppc-desc { font-size: 0.78rem; color: var(--text-light); margin-bottom: 6px; line-height: 1.4; }
.ppc-price { font-size: 1rem; font-weight: 700; color: var(--accent); }

.product-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.product-type-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.product-type-btn:hover { border-color: var(--accent); color: var(--accent); }
.product-type-btn.active { background: var(--accent); border-color: var(--accent); color: white; font-weight: 600; }

@media (max-width: 600px) {
  .products-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .products-pub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   THEMES
   ============================================================ */


/* ---- Sidebar layout ---- */
.booking-sidebar { display: none; }
.sidebar-overlay { display: none; }
.sidebar-mobile-topbar { display: none; }

[data-theme="sidebar"] .booking-body { display: flex; align-items: flex-start; }
[data-theme="sidebar"] .booking-sidebar {
  display: flex !important;
  flex-direction: column;
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--primary, #1a1a2e);
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
}
[data-theme="sidebar"] .booking-main-wrap { flex: 1; min-width: 0; }
[data-theme="sidebar"] .booking-header { display: none !important; }
[data-theme="sidebar"] .booking-hero { min-height: 55vh; }

.sidebar-header {
  padding: 1.4rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-salon-name {
  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: 1rem; font-weight: 700; color: white; line-height: 1.3;
}
.sidebar-nav { flex: 1; padding: 0.5rem 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  color: white; background: rgba(255,255,255,0.06);
  border-left-color: var(--tenant-accent, #e2b04a);
}
.sidebar-cta { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: var(--tenant-accent, #e2b04a);
  color: var(--primary, #1a1a2e);
  border-radius: var(--radius-sm, 8px);
  text-decoration: none; font-size: 0.875rem; font-weight: 700;
  transition: filter 0.2s;
}
.sidebar-cta-btn:hover { filter: brightness(0.9); }

.sidebar-mobile-topbar {
  align-items: center; justify-content: space-between;
  background: var(--primary, #1a1a2e);
  padding: 0.7rem 1rem;
  position: sticky; top: 0; z-index: 200;
}

@media (max-width: 768px) {
  [data-theme="sidebar"] .booking-body { display: block; }
  [data-theme="sidebar"] .booking-sidebar {
    position: fixed; top: 0; left: -280px;
    height: 100vh; width: 260px;
    transition: left 0.3s ease; z-index: 400;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  [data-theme="sidebar"] .booking-sidebar.open { left: 0; }
  [data-theme="sidebar"] .sidebar-mobile-topbar { display: flex !important; }
  [data-theme="sidebar"] .sidebar-overlay.open {
    display: block !important;
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300;
  }
}

/* ============================================================
   BLOG – public & admin
   ============================================================ */

/* Public blog grid */
.blog-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: white;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.07));
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 1px solid var(--border, #e8ecf0);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, 0 6px 24px rgba(0,0,0,0.12)); }
.blog-card-cover { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card-cover-placeholder {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  background: var(--surface, #f4f6fa); color: var(--text-light); font-size: 2rem;
}
.blog-card-body { padding: 1.25rem; }
.blog-card-date { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.4rem; }
.blog-card-title {
  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 0.5rem; line-height: 1.35;
}
.blog-card-excerpt { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }
.blog-card-more {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem;
  font-size: 0.82rem; font-weight: 600; color: var(--tenant-accent, #e2b04a);
}

/* Blog post reader overlay */
.blog-post-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.72); z-index: 500;
  overflow-y: auto; padding: 2rem 1rem;
}
.blog-post-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.blog-post-modal {
  background: white; border-radius: 16px;
  max-width: 720px; width: 100%; padding: 2rem;
  position: relative; margin: auto;
}
.blog-post-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: var(--text-light);
}
.blog-post-modal-close:hover { color: var(--primary); }
.blog-post-modal-cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; }
.blog-post-modal-date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.5rem; }
.blog-post-modal-title {
  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700;
  color: var(--primary); margin-bottom: 1.25rem; line-height: 1.3;
}
.blog-post-modal-content { font-size: 0.95rem; color: var(--text); line-height: 1.85; white-space: pre-wrap; }

/* Admin blog list */
.blog-admin-list { display: flex; flex-direction: column; gap: 0.6rem; }
.blog-admin-row {
  background: white; border-radius: 10px; padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.9rem;
  border: 1px solid var(--border);
}
.blog-admin-row-info { flex: 1; min-width: 0; }
.blog-admin-row-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-admin-row-meta { font-size: 0.77rem; color: var(--text-light); margin-top: 2px; }
.blog-status-badge { font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.blog-status-badge.published { background: #dcfce7; color: #166534; }
.blog-status-badge.draft { background: #f1f5f9; color: #64748b; }

/* ============================================================
   MOBILE — Page de réservation publique (améliorations)
   ============================================================ */

/* Titre du wizard : taille de base explicite */
.step-title, .wizard-step h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

@media (max-width: 768px) {

  /* 1. Hero moins haut — laisse deviner le contenu en-dessous */
  .booking-hero {
    min-height: 56vh;
    padding: 2.5rem 1.25rem 2rem;
  }

  /* 2. Steps indicator plus compact */
  .steps-indicator {
    padding: 0.875rem 0.75rem;
  }
  .step span {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .step-line {
    margin-bottom: 1rem;
  }

  /* 3. Titre wizard sur 1 ligne */
  .step-title, .wizard-step h2 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 4. Bouton scroll-to-top à gauche — ne couvre plus les prix */
  #backToTopBtn {
    right: auto !important;
    left: 1rem !important;
  }

  /* 5. Inputs 16px — évite le zoom automatique sur iOS */
  .form-group input,
  .form-group textarea,
  .form-group select,
  .form-input {
    font-size: 16px !important;
  }

  /* 6. Touches calendrier plus grandes */
  .calendar-day, .cal-day {
    padding: 0.6rem 0.2rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 7. Time slots — touches plus grandes */
  .slot-btn {
    padding: 0.6rem 0.875rem;
    min-height: 40px;
    font-size: 0.875rem;
  }

  /* 8. Grille barbiers 2 colonnes */
  .barbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .barber-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {

  /* Hero encore plus compact sur très petits écrans */
  .booking-hero {
    min-height: 46vh;
    padding: 2rem 1rem;
  }

  /* Wizard plus serré */
  .wizard-step {
    padding: 1rem;
  }
  .steps-indicator {
    padding: 0.65rem 0.4rem;
  }
  .step span {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }
  .step-line {
    margin-bottom: 0.8rem;
  }

  /* Titre plus court */
  .step-title, .wizard-step h2 {
    font-size: 1rem;
  }

  /* Avatar barbier plus petit */
  .barber-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
  .barber-card {
    padding: 1rem 0.75rem;
  }

  /* Time slots encore plus compacts */
  .slot-btn {
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }
  .time-slots {
    gap: 0.4rem;
  }
}

/* ── Bouton Suivant sticky sur mobile ── */
@media (max-width: 768px) {
  .step-nav {
    position: sticky;
    bottom: 0;
    background: white;
    margin: 0.75rem -1.25rem -1.25rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border, #e8ecf0);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
    z-index: 10;
    flex-direction: row !important;
    justify-content: space-between;
  }
  .step-nav .btn {
    width: auto !important;
    flex: none;
  }
  .step-nav .btn:only-child {
    width: 100% !important;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .step-nav {
    margin: 0.75rem -1rem -1rem;
    padding: 0.75rem 1rem;
  }
}

/* Retirer overflow:hidden sur mobile pour permettre sticky */
@media (max-width: 768px) {
  .booking-wizard { overflow: visible; }
}

/* ── Admin mobile ── */
@media (max-width: 768px) {
  /* Topbar : titre sur une ligne, date cachée */
  .admin-topbar { padding: 0.75rem 1rem; gap: 0.6rem; }
  .page-title {
    font-size: 1rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: calc(100vw - 140px);
  }
  .date-display { display: none; }
  .topbar-right { gap: 0.5rem; }

  /* Lien de réservation : URL pleine largeur, boutons en dessous */
  .booking-url-card {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }
  /* Le div enfant direct prend toute la largeur → boutons passent en dessous.
     !important nécessaire pour écraser l'inline style flex:1;min-width:0 */
  .booking-url-card > div {
    flex: 0 0 100% !important;
    min-width: 0 !important;
  }
  /* Lien de réservation dans Personnalisation (l'élément est un <a>, pas un <div>) */
  .booking-url-card > .booking-url-text {
    flex: 0 0 100% !important;
    display: block;
    word-break: break-all;
    font-size: 0.8rem !important;
  }
  .booking-url-card .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  /* ── Services : mettre les boutons sur une nouvelle ligne ── */
  .service-page-item {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.4rem 0.75rem;
  }
  .spi-icon { width: 36px; height: 36px; font-size: 0.95rem; }
  .spi-info { flex: 1; min-width: 0; }
  .spi-price { font-size: 0.875rem; white-space: nowrap; }
  /* Actions passent sur une nouvelle ligne, alignées à droite */
  .spi-actions {
    flex: 0 0 100%;
    justify-content: flex-end;
  }

  /* ── Admin body : dvh évite le clip dû à la barre d'adresse mobile ── */
  .admin-body { height: 100dvh; }

  /* Setup steps : pleine largeur sur mobile */
  .setup-steps-row { flex-direction: column; }
  .setup-step { width: 100%; justify-content: space-between; }
}

/* ── Toggle switch ── */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border); border-radius: 24px; transition: 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: white; border-radius: 50%; transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── SMS send bar ── */
.sms-send-bar { display: flex; flex-direction: column; gap: 0.4rem; }
.sms-send-top { display: flex; align-items: center; gap: 0.5rem; }
.sms-send-input-row { display: flex; align-items: center; gap: 0.5rem; }
/* Desktop : tout sur une ligne */
@media (min-width: 769px) {
  .sms-send-bar { flex-direction: row; align-items: center; gap: 0.625rem; }
  .sms-send-top { flex-shrink: 0; }
  .sms-send-input-row { flex: 1; min-width: 0; }
}
@media (max-width: 768px) {
  /* Étape 1 : pas de retour non plus, cacher tout le nav */
  #wizard-step-1 .step-nav { display: none !important; }
  /* Étapes 2 & 3 : garder Retour, masquer Suivant */
  #btn-step2-next,
  #btn-step3-next { display: none !important; }
  /* Quand step-nav n'a plus qu'un seul bouton visible, le centrer */
  #wizard-step-2 .step-nav,
  #wizard-step-3 .step-nav {
    justify-content: flex-start;
  }

  /* ── Étape 4 : nav fixe en bas — visible même si le formulaire est long ── */
  #wizard-step-4 .step-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    z-index: 200;
  }
  /* Espace pour que le dernier champ ne soit pas caché derrière le nav fixe */
  #wizard-step-4 {
    padding-bottom: 80px;
  }
}

/* ══════════════════════════════════════════
   THEME: MINIMAL
   Clean white, typography-first (DM Sans)
══════════════════════════════════════════ */
[data-theme="minimal"] .booking-body { font-family: 'DM Sans', 'Inter', sans-serif; }
[data-theme="minimal"] .booking-header { background: #fff; border-bottom: 1px solid #f1f1f1; box-shadow: none; }
[data-theme="minimal"] .salon-name { font-family: 'DM Sans', sans-serif; color: #111; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
[data-theme="minimal"] .booking-nav { background: #fff; border-bottom: 1px solid #f1f1f1; box-shadow: none; }
[data-theme="minimal"] .bnav-link { color: #94a3b8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
[data-theme="minimal"] .bnav-link.active { color: #111; border-bottom-color: #111; }
[data-theme="minimal"] .bnav-cta { background: #111 !important; color: #fff; border-radius: 6px; padding: 0.5rem 1.25rem; box-shadow: none; }
[data-theme="minimal"] .booking-hero {
  min-height: 45vh; background: #fff !important;
  text-align: left; padding: 5rem 3rem 3rem; justify-content: flex-start;
}
[data-theme="minimal"] .booking-hero-bg,
[data-theme="minimal"] .booking-hero-overlay { display: none; }
[data-theme="minimal"] .booking-hero-content { max-width: 700px; margin: 0 auto; }
[data-theme="minimal"] .hero-tag {
  color: #94a3b8; font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase;
  background: none; padding: 0 0 3px; border-radius: 0; border-bottom: 1px solid #94a3b8; font-weight: 400;
}
[data-theme="minimal"] #heroTitle { font-family: 'Playfair Display', serif; color: #111; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; }
[data-theme="minimal"] #heroSubtitle { color: #64748b; font-size: 0.95rem; }
[data-theme="minimal"] .btn-primary { background: #111 !important; color: #fff !important; border-radius: 6px !important; box-shadow: none !important; }
[data-theme="minimal"] #services { background: #fff; }
[data-theme="minimal"] .services-showcase-grid { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto; }
[data-theme="minimal"] .service-showcase-card {
  flex-direction: row; align-items: center; justify-content: space-between;
  background: none; border-radius: 0; box-shadow: none;
  border: none; border-bottom: 1px solid #f1f1f1; padding: 1.1rem 0; gap: 1rem;
}
[data-theme="minimal"] .service-showcase-card:hover { box-shadow: none; transform: none; border-color: #f1f1f1; padding-left: 0.5rem; transition: padding 0.15s; }
[data-theme="minimal"] .ssc-icon { display: none; }
[data-theme="minimal"] .ssc-meta { border-top: none; padding: 0; margin: 0; flex-direction: row; gap: 1rem; }
[data-theme="minimal"] .ssc-price { font-weight: 700; color: #111; font-size: 1rem; }
[data-theme="minimal"] .ssc-duration { color: #94a3b8; font-size: 0.78rem; }
[data-theme="minimal"] .service-showcase-card .btn-primary { display: none; }
[data-theme="minimal"] #reservation { background: #fff; }
[data-theme="minimal"] #reservation h2, [data-theme="minimal"] #reservation h2 + * { color: #111; }
[data-theme="minimal"] #reservation > div > p { color: #94a3b8; }
[data-theme="minimal"] .booking-wizard { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; }
[data-theme="minimal"] .booking-footer { background: #111; }

/* ══════════════════════════════════════════
   THEME: VIBRANT
   Purple/pink gradient, Space Grotesk
══════════════════════════════════════════ */
[data-theme="vibrant"] .booking-body { font-family: 'Space Grotesk', 'Inter', sans-serif; }
[data-theme="vibrant"] .booking-header { background: linear-gradient(135deg, #6d28d9, #7c3aed); border-bottom: none; }
[data-theme="vibrant"] .salon-name { color: #fff; }
[data-theme="vibrant"] .social-icon-link { color: rgba(255,255,255,0.85) !important; }
[data-theme="vibrant"] .booking-nav { background: #7c3aed; border-bottom: none; box-shadow: none; }
[data-theme="vibrant"] .bnav-link { color: rgba(255,255,255,0.65); }
[data-theme="vibrant"] .bnav-link.active { color: #fff; border-bottom-color: #fff; }
[data-theme="vibrant"] .bnav-cta { background: rgba(255,255,255,0.18) !important; color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; box-shadow: none; }
[data-theme="vibrant"] .booking-hero {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 40%, #a855f7 70%, #ec4899 100%) !important;
}
[data-theme="vibrant"] .booking-hero-bg { display: none; }
[data-theme="vibrant"] .booking-hero-overlay { background: transparent !important; }
[data-theme="vibrant"] .hero-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  color: white; border: 1px solid rgba(255,255,255,0.25);
  padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; letter-spacing: normal;
}
[data-theme="vibrant"] #heroTitle { font-weight: 900; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05; }
[data-theme="vibrant"] .btn-primary { background: rgba(255,255,255,0.92) !important; color: #7c3aed !important; border-radius: 50px !important; font-weight: 800 !important; box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important; }
[data-theme="vibrant"] #services { background: #faf5ff; }
[data-theme="vibrant"] .service-showcase-card { border-radius: 20px; box-shadow: 0 4px 20px rgba(124,58,237,0.08); border: 2px solid transparent; }
[data-theme="vibrant"] .service-showcase-card:hover { border-color: #a855f7; transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124,58,237,0.15); }
[data-theme="vibrant"] .ssc-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; border-radius: 16px; font-size: 1.3rem; }
[data-theme="vibrant"] .ssc-info h3 { font-weight: 800; color: #1e1b4b; }
[data-theme="vibrant"] .ssc-price { color: #7c3aed; font-weight: 900; }
[data-theme="vibrant"] .service-showcase-card .btn-primary { background: linear-gradient(135deg, #7c3aed, #ec4899) !important; color: white !important; border-radius: 50px !important; font-weight: 700 !important; }
[data-theme="vibrant"] #reservation { background: #6d28d9; }
[data-theme="vibrant"] #reservation h2 { color: #fff; }
[data-theme="vibrant"] #reservation > div > p { color: rgba(255,255,255,0.7); }
[data-theme="vibrant"] .booking-wizard { background: #fff; border-radius: 20px; overflow: hidden; }
[data-theme="vibrant"] .booking-footer { background: #1e1b4b; }

/* ══════════════════════════════════════════
   THEME: BOUTIQUE
   Split layout: dark left info + light right
══════════════════════════════════════════ */
[data-theme="boutique"] .booking-body { display: flex; align-items: flex-start; }
[data-theme="boutique"] .booking-sidebar {
  display: flex !important; flex-direction: column;
  width: 360px; flex-shrink: 0; position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, #292524 0%, #1c1917 100%);
  border-right: none; z-index: 100; padding: 2.5rem; gap: 0;
}
[data-theme="boutique"] .booking-main-wrap { flex: 1; min-width: 0; background: #faf9f7; }
[data-theme="boutique"] .booking-header,
[data-theme="boutique"] .booking-nav,
[data-theme="boutique"] .sidebar-mobile-topbar { display: none !important; }
[data-theme="boutique"] .booking-hero {
  min-height: 18vh; background: #faf9f7 !important;
  padding: 3rem 2.5rem 2rem; text-align: left; justify-content: flex-start; overflow: visible;
}
[data-theme="boutique"] .booking-hero-bg,
[data-theme="boutique"] .booking-hero-overlay { display: none; }
[data-theme="boutique"] .booking-hero-content { max-width: 100%; }
[data-theme="boutique"] .hero-tag { font-size: 0.62rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(212,175,122,0.8); background: none; padding: 0; border-radius: 0; }
[data-theme="boutique"] #heroTitle { font-family: 'Playfair Display', serif; color: #1c1917; font-size: clamp(1.5rem, 3vw, 2.4rem); }
[data-theme="boutique"] #heroSubtitle { color: #78716c; font-size: 0.9rem; }
[data-theme="boutique"] .btn-primary { background: #1c1917 !important; color: #fff !important; border-radius: 8px !important; box-shadow: none !important; }
[data-theme="boutique"] .sidebar-header { padding: 0 0 1.5rem; margin-bottom: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
[data-theme="boutique"] .sidebar-salon-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: white; line-height: 1.2; }
[data-theme="boutique"] .sidebar-nav { padding: 0; gap: 0; }
[data-theme="boutique"] .sidebar-link { display: none; }
[data-theme="boutique"] .sidebar-cta { background: rgba(212,175,122,0.12) !important; color: #d4af7a !important; border: 1px solid rgba(212,175,122,0.25) !important; border-radius: 8px !important; margin-top: 2rem !important; font-size: 0.85rem; }
[data-theme="boutique"] #services, [data-theme="boutique"] #reservation { background: #faf9f7; }
[data-theme="boutique"] .service-showcase-card { border-radius: 10px; background: white; }
[data-theme="boutique"] #reservation h2 { color: #1c1917; }
[data-theme="boutique"] #reservation > div > p { color: #78716c; }
[data-theme="boutique"] .booking-wizard { background: #fff; border: 1.5px solid #e7e5e4; border-radius: 12px; }
[data-theme="boutique"] .booking-footer { display: none !important; }
.boutique-info-block { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }
.boutique-info-item { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.45); font-size: 0.8rem; line-height: 1.5; }
.boutique-info-item i { color: #d4af7a; width: 14px; flex-shrink: 0; margin-top: 2px; }
.boutique-desc-block { color: rgba(255,255,255,0.35); font-size: 0.8rem; line-height: 1.7; margin-top: 1.25rem; }
@media (max-width: 768px) {
  [data-theme="boutique"] .booking-body { display: block; }
  [data-theme="boutique"] .booking-sidebar { width: 100%; height: auto; position: relative; min-height: auto; padding: 1.5rem; }
}

/* ══════════════════════════════════════════
   THEME: MAGAZINE
   2-column editorial hero, red accent
══════════════════════════════════════════ */
[data-theme="magazine"] .booking-body { background: #f8f4f0; }
[data-theme="magazine"] .booking-header { background: white; border-bottom: 3px solid #1a1a2e; box-shadow: none; }
[data-theme="magazine"] .salon-name { font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #1a1a2e; font-size: 0.88rem; }
[data-theme="magazine"] .social-icon-link { color: #1a1a2e !important; }
[data-theme="magazine"] .booking-nav { background: white; border-bottom: 1px solid #e2e8f0; box-shadow: none; }
[data-theme="magazine"] .bnav-link { color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; font-weight: 600; }
[data-theme="magazine"] .bnav-link.active { color: #c41e3a; border-bottom-color: #c41e3a; }
[data-theme="magazine"] .bnav-cta { background: #c41e3a !important; color: white; border-radius: 0; padding: 0.5rem 1.25rem; box-shadow: none; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.75rem; }
[data-theme="magazine"] .booking-hero {
  display: grid; grid-template-columns: 1fr 1fr; padding: 0;
  min-height: 88vh; text-align: left; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #0f3460) !important;
  justify-content: unset; align-items: unset;
}
[data-theme="magazine"] .booking-hero-bg { inset: 0 50% 0 0; }
[data-theme="magazine"] .booking-hero-overlay { inset: 0 50% 0 0; }
[data-theme="magazine"] .booking-hero-content {
  grid-column: 2; background: #f8f4f0;
  position: relative; z-index: 2; padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center; min-height: 88vh;
}
[data-theme="magazine"] .hero-tag { font-size: 0.62rem; letter-spacing: 4px; text-transform: uppercase; color: #c41e3a; font-weight: 700; background: none; padding: 0; border-radius: 0; margin-bottom: 1rem; }
[data-theme="magazine"] #heroTitle { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.5rem); color: #1a1a2e; line-height: 1; font-weight: 900; }
[data-theme="magazine"] #heroSubtitle { color: #64748b; font-size: 0.9rem; line-height: 1.7; }
[data-theme="magazine"] .btn-primary { background: #c41e3a !important; color: white !important; border-radius: 0 !important; box-shadow: none !important; letter-spacing: 0.05em; text-transform: uppercase; }
[data-theme="magazine"] #services { background: #f8f4f0; }
[data-theme="magazine"] .service-showcase-card { background: white; border-radius: 0; box-shadow: none; border: 1px solid #e2e8f0; border-left: 3px solid #c41e3a; }
[data-theme="magazine"] .service-showcase-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: none; }
[data-theme="magazine"] .ssc-icon { background: #1a1a2e; color: #c41e3a; border-radius: 6px; }
[data-theme="magazine"] .ssc-price { color: #1a1a2e; font-weight: 800; }
[data-theme="magazine"] #reservation { background: white; border-top: 3px solid #1a1a2e; }
[data-theme="magazine"] #reservation h2 { color: #1a1a2e; }
[data-theme="magazine"] #reservation > div > p { color: #94a3b8; }
[data-theme="magazine"] .booking-wizard { background: white; border: 1px solid #e2e8f0; border-radius: 8px; }
[data-theme="magazine"] .booking-footer { background: #1a1a2e; border-top: 3px solid #c41e3a; }
@media (max-width: 768px) {
  [data-theme="magazine"] .booking-hero { grid-template-columns: 1fr; min-height: auto; }
  [data-theme="magazine"] .booking-hero-bg,
  [data-theme="magazine"] .booking-hero-overlay { display: none; }
  [data-theme="magazine"] .booking-hero-content { grid-column: 1; min-height: 40vh; padding: 3rem 1.5rem; }
}

/* ---- REVIEWS PUBLIC ---- */
.reviews-public-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.review-card-stars { color: var(--tenant-accent, #e2b04a); font-size: 1.05rem; letter-spacing: 1px; }
.review-card-name { font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.review-card-date { font-size: 0.78rem; color: var(--text-light); }
.review-card-comment { font-size: 0.9rem; color: var(--text); line-height: 1.55; }
.reviews-empty { text-align: center; padding: 2rem; color: var(--text-light); font-size: 0.95rem; grid-column: 1/-1; }
.reviews-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; max-width: 540px; }
.reviews-form-inner { display: flex; flex-direction: column; gap: 0.85rem; }
.star-picker { display: flex; gap: 4px; margin-bottom: 0.25rem; }
.star-pick { font-size: 1.75rem; cursor: pointer; color: #d1d5db; transition: color 0.12s; line-height: 1; }
.star-pick.lit { color: var(--tenant-accent, #e2b04a); }
