/* RelPro Booking & Client Dashboard CSS — v1.2.0 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --relpro-primary:     #1C2B3A;
  --relpro-accent:      #E8603C;
  --relpro-accent-warm: #F5A623;
  --relpro-bg:          #FAFAF8;
  --relpro-surface:     #FFFFFF;
  --relpro-border:      #E8E8E0;
  --relpro-text-muted:  #6B7280;
  --relpro-success:     #3DAA77;
  --relpro-verified:    #1A6FA8;
  --relpro-error:       #C0392B;
  --relpro-warning:     #D97706;
  --relpro-radius:      10px;
  --relpro-shadow:      0 2px 12px rgba(28,43,58,.08);
}

/* ── Reset (scoped) ──────────────────────────────────────────────────────── */
.relpro-booking-widget *,
.relpro-client-dashboard *,
.relpro-auth-box *,
.relpro-auth-logged-in * {
  box-sizing: border-box;
}

/* ── Common typography base ──────────────────────────────────────────────── */
.relpro-booking-widget,
.relpro-client-dashboard,
.relpro-auth-box,
.relpro-auth-logged-in {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--relpro-primary);
  line-height: 1.6;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.relpro-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  text-decoration: none;
  white-space: nowrap;
}
.relpro-btn:disabled { opacity: .55; cursor: not-allowed; }

.relpro-btn--primary  { background: var(--relpro-accent); color: #fff; border-color: var(--relpro-accent); }
.relpro-btn--primary:hover { background: #d44f2b; border-color: #d44f2b; color: #fff; }

.relpro-btn--outline  { background: transparent; color: var(--relpro-primary); border-color: var(--relpro-border); }
.relpro-btn--outline:hover { border-color: var(--relpro-primary); }

.relpro-btn--ghost    { background: transparent; color: var(--relpro-primary); border-color: transparent; }
.relpro-btn--ghost:hover { background: rgba(28,43,58,.06); }

.relpro-btn--accent   { background: var(--relpro-accent); color: #fff; }
.relpro-btn--accent:hover { background: #d44f2b; color: #fff; }

.relpro-btn--danger   { background: var(--relpro-error); color: #fff; border-color: var(--relpro-error); }
.relpro-btn--danger:hover { background: #a93226; }

.relpro-btn--sm  { padding: .45rem .9rem; font-size: .8125rem; }
.relpro-btn--xs  { padding: .3rem .65rem; font-size: .75rem; }

/* ── Auth forms ──────────────────────────────────────────────────────────── */
.relpro-auth-box {
  max-width: 480px;
  margin: 0 auto;
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--relpro-shadow);
}

.relpro-auth-box__title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--relpro-primary);
  margin: 0 0 1.5rem;
}

.relpro-auth-form { display: flex; flex-direction: column; gap: 1rem; }
.relpro-auth-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.relpro-auth-field { display: flex; flex-direction: column; gap: .35rem; }
.relpro-auth-field--error .relpro-auth-input { border-color: var(--relpro-error); }

.relpro-auth-label { font-size: .875rem; font-weight: 500; color: var(--relpro-primary); }
.relpro-auth-hint  { font-size: .75rem; color: var(--relpro-text-muted); }
.relpro-auth-error { font-size: .75rem; color: var(--relpro-error); }

.relpro-auth-input {
  width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--relpro-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--relpro-primary);
  background: var(--relpro-bg);
  transition: border-color .15s;
  appearance: none;
}
.relpro-auth-input:focus {
  outline: none;
  border-color: var(--relpro-accent);
  background: var(--relpro-surface);
}
textarea.relpro-auth-input { resize: vertical; }

.relpro-auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
}
.relpro-auth-checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.relpro-auth-btn {
  width: 100%;
  justify-content: center;
  padding: .75rem;
  font-size: 1rem;
  background: var(--relpro-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.relpro-auth-btn:hover { background: #d44f2b; }
.relpro-auth-btn--sm   { width: auto; padding: .45rem .9rem; font-size: .8125rem; border-radius: 8px; display: inline-flex; }

.relpro-auth-footer { font-size: .8125rem; color: var(--relpro-text-muted); text-align: center; margin: 0; }
.relpro-auth-link   { color: var(--relpro-accent); text-decoration: none; font-size: .875rem; }
.relpro-auth-link:hover { text-decoration: underline; }
.relpro-auth-link--logout { color: var(--relpro-text-muted); }

.relpro-auth-notice { font-size: .9375rem; color: var(--relpro-text-muted); text-align: center; padding: 1rem; }
.relpro-auth-logged-in { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9375rem; }

.relpro-alert { padding: .75rem 1rem; border-radius: 8px; font-size: .875rem; margin-bottom: 1rem; }
.relpro-alert--error   { background: rgba(192,57,43,.08);  color: var(--relpro-error);   border: 1px solid rgba(192,57,43,.2); }
.relpro-alert--success { background: rgba(61,170,119,.08); color: #2a8b5f;              border: 1px solid rgba(61,170,119,.2); }

/* ── Client dashboard ────────────────────────────────────────────────────── */
.relpro-client-dashboard { max-width: 920px; margin: 0 auto; padding: 0 1rem 2rem; }
.relpro-client-dashboard--locked { max-width: 480px; padding-top: 1rem; }

/* ── Hero header ─────────────────────────────────────────────────────────── */
.relpro-client-dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #1C2B3A 0%, #2C3E50 100%);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.relpro-client-dash-hero__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.relpro-client-dash-hero__avatar-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(232,96,60,.6);
  padding: 2px;
  flex-shrink: 0;
}
.relpro-client-dash-hero__avatar {
  border-radius: 50%;
  width: 60px !important;
  height: 60px !important;
  object-fit: cover;
  display: block;
}
.relpro-client-dash-hero__name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .2rem;
}
.relpro-client-dash-hero__email {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}
.relpro-client-dash-hero__logout {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: .45rem .9rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.relpro-client-dash-hero__logout:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Tab navigation ──────────────────────────────────────────────────────── */
.relpro-client-dash-tabs {
  display: flex;
  gap: .375rem;
  background: var(--relpro-bg);
  border: 1px solid var(--relpro-border);
  border-radius: 12px;
  padding: .375rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
}
.relpro-client-dash-tab {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--relpro-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.relpro-client-dash-tab:hover { background: #fff; color: var(--relpro-primary); }
.relpro-client-dash-tab--active {
  background: #fff;
  color: var(--relpro-accent);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(28,43,58,.1);
}

/* ── Content wrapper ─────────────────────────────────────────────────────── */
.relpro-client-dash-content { min-height: 200px; }

/* ── Toast system ────────────────────────────────────────────────────────── */
.relpro-client-toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.relpro-client-toast {
  background: #1C2B3A;
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  pointer-events: auto;
  animation: relpro-toast-in .2s ease;
}
.relpro-client-toast--error   { background: var(--relpro-error); }
.relpro-client-toast--success { background: var(--relpro-success); }
@keyframes relpro-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Section titles ──────────────────────────────────────────────────────── */
.relpro-section-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--relpro-primary);
}

/* ── Account tab ─────────────────────────────────────────────────────────── */
.relpro-client-account-wrap { display: flex; flex-direction: column; gap: 1.25rem; }

.relpro-account-section {
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}
.relpro-account-section--danger { border-color: rgba(192,57,43,.25); background: #FFF8F7; }

.relpro-account-section__title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--relpro-primary);
}
.relpro-account-section__title--danger { color: var(--relpro-error); }

.relpro-account-section__desc {
  font-size: .875rem;
  color: var(--relpro-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.relpro-account-form { display: flex; flex-direction: column; gap: .875rem; }

.relpro-account-section__actions { margin-top: .25rem; }

.relpro-field { display: flex; flex-direction: column; gap: .35rem; }
.relpro-field label { font-size: .875rem; font-weight: 500; color: var(--relpro-primary); }
.relpro-field__hint { font-size: .8125rem; color: var(--relpro-text-muted); }

.relpro-input {
  padding: .6rem .875rem;
  border: 1.5px solid var(--relpro-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--relpro-primary);
  background: var(--relpro-bg);
  transition: border-color .15s;
  width: 100%;
}
.relpro-input:focus { outline: none; border-color: var(--relpro-accent); background: #fff; }

.relpro-field--checkbox { margin-top: .25rem; }
.relpro-checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  cursor: pointer;
}
.relpro-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--relpro-error); flex-shrink: 0;
}

/* ── Appointment cards ───────────────────────────────────────────────────── */
.relpro-appointments-list { display: flex; flex-direction: column; gap: .75rem; }
.relpro-appointment-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: var(--relpro-radius);
  flex-wrap: wrap;
}
.relpro-appointment-card--upcoming { border-left: 3px solid var(--relpro-accent); }
.relpro-appointment-card__meta    { flex: 1; min-width: 120px; }
.relpro-appointment-card__service { font-weight: 600; font-size: .9375rem; display: block; }
.relpro-appointment-card__pro a   { color: var(--relpro-text-muted); font-size: .8125rem; text-decoration: none; }
.relpro-appointment-card__pro a:hover { color: var(--relpro-accent); text-decoration: underline; }
.relpro-appointment-card__datetime { text-align: right; min-width: 120px; }
.relpro-appointment-card__date { display: block; font-weight: 500; font-size: .875rem; }
.relpro-appointment-card__time { font-size: .8125rem; color: var(--relpro-text-muted); }
.relpro-appointment-card__actions { margin-left: auto; }
.relpro-appointment-card__review-submitted { display: flex; align-items: center; gap: .5rem; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.relpro-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.relpro-badge--success { background: rgba(61,170,119,.1);  color: #2a8b5f; }
.relpro-badge--warning { background: rgba(217,119,6,.1);   color: var(--relpro-warning); }
.relpro-badge--error   { background: rgba(192,57,43,.1);   color: var(--relpro-error); }
.relpro-badge--muted   { background: rgba(107,114,128,.1); color: var(--relpro-text-muted); }

/* ── Stars ───────────────────────────────────────────────────────────────── */
.relpro-review-stars { color: var(--relpro-accent-warm); font-size: 1rem; letter-spacing: .05em; }

/* ── Pro card mini ───────────────────────────────────────────────────────── */
.relpro-pro-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.relpro-pro-card-mini {
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: var(--relpro-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.relpro-pro-card-mini:hover { box-shadow: var(--relpro-shadow); }
.relpro-pro-card-mini__inner { text-decoration: none; color: inherit; }
.relpro-pro-card-mini__photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.relpro-pro-card-mini__photo--placeholder {
  width: 100%;
  height: 140px;
  background: rgba(28,43,58,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--relpro-border);
}
.relpro-pro-card-mini__photo--placeholder svg { width: 40px; height: 40px; }
.relpro-pro-card-mini__info { padding: .75rem; }
.relpro-pro-card-mini__name { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: .2rem; }
.relpro-pro-card-mini__title, .relpro-pro-card-mini__city {
  display: block;
  font-size: .75rem;
  color: var(--relpro-text-muted);
}
.relpro-pro-card-mini .relpro-btn { margin: .5rem .75rem .75rem; font-size: .75rem; }
.relpro-toggle-fav-btn--active { color: var(--relpro-accent); }

/* ── Empty states ────────────────────────────────────────────────────────── */
.relpro-empty-state { color: var(--relpro-text-muted); font-size: .9375rem; font-style: italic; }

/* ── Booking widget ──────────────────────────────────────────────────────── */
.relpro-booking-widget {
  max-width: 640px;
  margin: 1.5rem auto;
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: var(--relpro-shadow);
}
.relpro-booking-widget__title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

/* Steps header */
.relpro-booking-steps {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--relpro-border);
  overflow-x: auto;
}
.relpro-booking-step {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--relpro-text-muted);
  white-space: nowrap;
  padding: .35rem .6rem;
  border-radius: 20px;
  transition: background .15s, color .15s;
}
.relpro-booking-step--active { background: rgba(232,96,60,.1); color: var(--relpro-accent); font-weight: 600; }
.relpro-booking-step--done   { color: var(--relpro-success); }
.relpro-booking-step__num    { width: 20px; height: 20px; border-radius: 50%; background: currentColor; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .625rem; font-weight: 700; flex-shrink: 0; }

/* Service cards */
.relpro-service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.relpro-service-card {
  padding: 1rem;
  border: 2px solid var(--relpro-border);
  border-radius: var(--relpro-radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--relpro-bg);
}
.relpro-service-card:hover  { border-color: var(--relpro-accent); background: rgba(232,96,60,.04); }
.relpro-service-card--selected { border-color: var(--relpro-accent); background: rgba(232,96,60,.06); }
.relpro-service-card__name  { font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.relpro-service-card__meta  { font-size: .8125rem; color: var(--relpro-text-muted); display: flex; gap: 1rem; flex-wrap: wrap; }

/* Calendar */
.relpro-calendar { width: 100%; }
.relpro-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.relpro-calendar-title { font-weight: 600; font-size: 1rem; }
.relpro-calendar-grid  {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.relpro-calendar-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  border-radius: 8px;
  cursor: default;
  transition: background .1s;
}
.relpro-calendar-cell--header { font-weight: 600; font-size: .75rem; color: var(--relpro-text-muted); }
.relpro-calendar-cell--available { cursor: pointer; color: var(--relpro-primary); }
.relpro-calendar-cell--available:hover { background: rgba(232,96,60,.1); color: var(--relpro-accent); }
.relpro-calendar-cell--selected { background: var(--relpro-accent) !important; color: #fff !important; }
.relpro-calendar-cell--past,
.relpro-calendar-cell--unavailable { color: var(--relpro-border); cursor: not-allowed; }
.relpro-calendar-cell--today { border: 1.5px solid var(--relpro-accent); }
.relpro-calendar-loading { text-align: center; padding: 2rem; color: var(--relpro-text-muted); }

/* Time slots */
.relpro-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.relpro-time-slot {
  padding: .5rem 1rem;
  border: 1.5px solid var(--relpro-border);
  border-radius: 8px;
  font-size: .875rem;
  cursor: pointer;
  background: var(--relpro-bg);
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.relpro-time-slot:hover    { border-color: var(--relpro-accent); background: rgba(232,96,60,.05); }
.relpro-time-slot--selected { border-color: var(--relpro-accent); background: rgba(232,96,60,.1); color: var(--relpro-accent); font-weight: 600; }
.relpro-time-slot-empty { color: var(--relpro-text-muted); font-size: .875rem; font-style: italic; }

/* Booking form */
.relpro-booking-form { display: flex; flex-direction: column; gap: 1rem; }
.relpro-booking-form__summary {
  background: var(--relpro-bg);
  border: 1px solid var(--relpro-border);
  border-radius: 8px;
  padding: 1rem;
  font-size: .875rem;
}
.relpro-booking-form__row { display: flex; gap: .5rem; margin-bottom: .35rem; }
.relpro-booking-form__label { font-weight: 500; min-width: 100px; }
.relpro-booking-form textarea {
  width: 100%;
  padding: .625rem .875rem;
  border: 1.5px solid var(--relpro-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9375rem;
  resize: vertical;
}
.relpro-booking-form textarea:focus { outline: none; border-color: var(--relpro-accent); }

/* Success / error messages */
.relpro-booking-success {
  text-align: center;
  padding: 2rem 1rem;
}
.relpro-booking-success__icon { font-size: 3rem; margin-bottom: .75rem; }
.relpro-booking-success__title { font-family: 'Outfit', system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; color: var(--relpro-success); }

.relpro-booking-login-prompt {
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--relpro-border);
  border-radius: var(--relpro-radius);
}

.relpro-booking-login-prompt p {
  color: var(--relpro-text-muted);
  margin-bottom: 1rem;
}

.relpro-booking-login-prompt .relpro-btn {
  margin-bottom: 1rem;
}

.relpro-booking-login-prompt__register {
  font-size: .875rem;
  color: var(--relpro-text-muted);
  margin-top: .75rem !important;
  border-top: 1px solid var(--relpro-border);
  padding-top: .75rem;
}

.relpro-booking-login-prompt__register a {
  color: var(--relpro-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.relpro-booking-login-prompt__register a:hover {
  color: #c9471e;
}

/* CGU checkbox */
.relpro-booking-cgu {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: 1rem;
  background: #F0F4F8;
  border: 1px solid var(--relpro-border);
  border-radius: 8px;
  margin: 1rem 0;
}

.relpro-booking-cgu input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: .15rem;
  accent-color: var(--relpro-accent);
  cursor: pointer;
}

.relpro-booking-cgu label {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--relpro-text-muted);
  cursor: pointer;
}

.relpro-booking-cgu label a {
  color: var(--relpro-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.relpro-booking-cgu label a:hover {
  color: var(--relpro-accent);
}

/* Skeleton loader */
.relpro-skeleton {
  background: linear-gradient(90deg, #f0f0ee 25%, #e8e8e0 50%, #f0f0ee 75%);
  background-size: 200% 100%;
  animation: relpro-skeleton-shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes relpro-skeleton-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Review form (modal) ─────────────────────────────────────────────────── */
.relpro-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.relpro-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  cursor: pointer;
}
.relpro-modal__box {
  position: relative;
  background: var(--relpro-surface);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.relpro-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--relpro-text-muted);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.relpro-modal__close:hover { background: var(--relpro-bg); }
.relpro-modal__title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

/* Star rating (CSS-only interactive) */
.relpro-star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .15rem;
  margin-bottom: 1rem;
}
.relpro-star-rating input { display: none; }
.relpro-star-rating label {
  font-size: 2rem;
  cursor: pointer;
  color: var(--relpro-border);
  transition: color .1s;
}
.relpro-star-rating input:checked ~ label,
.relpro-star-rating label:hover,
.relpro-star-rating label:hover ~ label { color: var(--relpro-accent-warm); }

/* ── Favorites heart button ──────────────────────────────────────────────── */
.relpro-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  color: var(--relpro-text-muted);
}
.relpro-fav-btn:hover { background: rgba(232,96,60,.1); color: var(--relpro-accent); }
.relpro-fav-btn--active { color: var(--relpro-accent); }

/* ── Dashboard login notice ──────────────────────────────────────────────── */
.relpro-dashboard-login-notice {
  font-size: .9375rem;
  color: var(--relpro-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .relpro-auth-form__row { grid-template-columns: 1fr; }
  .relpro-auth-box { padding: 1.5rem; }
  .relpro-booking-widget { padding: 1.25rem; }
  .relpro-pro-cards-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .relpro-service-cards { grid-template-columns: 1fr; }
  .relpro-appointment-card { flex-direction: column; align-items: flex-start; }
  .relpro-appointment-card__datetime { text-align: left; }
  .relpro-appointment-card__actions { margin-left: 0; }
  .relpro-client-dash-hero { padding: 1.25rem 1.25rem; }
  .relpro-client-dash-hero__left { gap: .75rem; }
  .relpro-client-dash-hero__avatar-ring { width: 52px; height: 52px; }
  .relpro-client-dash-hero__avatar { width: 44px !important; height: 44px !important; }
  .relpro-client-dash-hero__name { font-size: 1.0625rem; }
  .relpro-client-dash-hero__logout { font-size: .75rem; padding: .35rem .7rem; }
  .relpro-account-section { padding: 1.25rem; }
  .relpro-client-toast-wrap { bottom: 1rem; right: 1rem; left: 1rem; }
}

/* ── Passwordless auth (.relpro-auth-wrap / .relpro-auth-card) ───────────── */
.relpro-auth-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--relpro-bg);
  min-height: 60vh;
  align-items: center;
}

.relpro-auth-card {
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--relpro-shadow);
  text-align: center;
}

.relpro-auth-card--pro {
  border-top: 3px solid var(--relpro-accent);
}

.relpro-auth-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--relpro-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--relpro-primary);
}
.relpro-auth-card__icon svg { width: 26px; height: 26px; }

.relpro-auth-card__icon--sent  { background: #EFF6FF; color: #2563EB; }
.relpro-auth-card__icon--success { background: #F0FDF4; color: var(--relpro-success); }

.relpro-auth-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--relpro-primary);
}

.relpro-auth-card__subtitle {
  font-size: .9rem;
  color: var(--relpro-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.relpro-auth-form {
  text-align: left;
}

.relpro-auth-alert {
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1rem;
  text-align: left;
}
.relpro-auth-alert--error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.relpro-auth-alert--info  { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* OTP input */
.relpro-field--otp { text-align: center; }
.relpro-input--otp {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-align: center;
  font-family: 'Courier New', monospace;
  padding: .75rem 1rem;
  border: 2px solid var(--relpro-border);
  border-radius: 10px;
  width: 100%;
  color: var(--relpro-primary);
  transition: border-color .15s;
}
.relpro-input--otp:focus {
  outline: none;
  border-color: var(--relpro-accent);
}

.relpro-btn--full  { width: 100%; justify-content: center; }
.relpro-btn--lg    { padding: .875rem 1.5rem; font-size: .9375rem; }

.relpro-auth-card__back {
  margin-top: 1.25rem;
  font-size: .85rem;
}
.relpro-auth-card__back a { color: var(--relpro-text-muted); text-decoration: none; }
.relpro-auth-card__back a:hover { color: var(--relpro-primary); }

.relpro-auth-card__legal {
  font-size: .78rem;
  color: var(--relpro-text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}
.relpro-auth-card__legal a { color: var(--relpro-text-muted); }

.relpro-label__optional {
  font-weight: 400;
  color: var(--relpro-text-muted);
  font-size: .8em;
}

/* ── Account deleted confirmation ────────────────────────────────────────── */
.relpro-account-deleted {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.relpro-account-deleted__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F0FDF4;
  color: var(--relpro-success);
  margin-bottom: 1.5rem;
}
.relpro-account-deleted h2 {
  margin: 0 0 .75rem;
  font-size: 1.375rem;
  color: var(--relpro-primary);
}
.relpro-account-deleted p {
  margin: 0 0 1.75rem;
  color: var(--relpro-text-muted);
  line-height: 1.6;
}

/* ── Auth alert — not found ───────────────────────────────────────────────── */
.relpro-auth-alert--not-found {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  border-radius: 8px;
  padding: .875rem 1rem;
  font-size: .9375rem;
  margin-bottom: 1.25rem;
}
.relpro-auth-alert--not-found strong { display: block; margin-bottom: .25rem; }
.relpro-auth-not-found-actions {
  display: flex;
  gap: .75rem;
  margin-top: .875rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .relpro-auth-card { padding: 1.75rem 1.25rem; border-radius: 12px; }
  .relpro-input--otp { font-size: 1.5rem; letter-spacing: .2em; }
}

/* ── Avatar upload ─────────────────────────────────────────────────────────── */
.relpro-avatar-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
}
.relpro-avatar-upload__preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #F3F4F6;
  border: 2px solid var(--relpro-border, #E8E8E0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9CA3AF;
  overflow: hidden;
}
.relpro-avatar-upload__controls {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.relpro-avatar-upload__filename {
  font-size: .8125rem;
  color: var(--relpro-text-muted, #6B7280);
}
.relpro-field__optional {
  font-weight: 400;
  color: var(--relpro-text-muted, #6B7280);
  font-size: .8125rem;
  margin-left: .25rem;
}

/* ── Avatar section (Mon compte tab) ──────────────────────────────────────── */
.relpro-avatar-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.relpro-avatar-section__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #F3F4F6;
  border: 2px solid var(--relpro-border, #E8E8E0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9CA3AF;
  overflow: hidden;
}
.relpro-avatar-section__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.relpro-avatar-section__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── Profile incomplete notice (Mon compte tab) ───────────────────────────── */
.relpro-profile-incomplete-notice {
  display: flex;
  align-items: center;
  gap: .625rem;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

/* ── Booking widget — profile incomplete banner ───────────────────────────── */
.relpro-booking-profile-incomplete {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  color: #92400E;
}
.relpro-booking-profile-incomplete svg {
  color: #F59E0B;
  flex-shrink: 0;
}
.relpro-booking-profile-incomplete p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
}

/* ── Delivery mode picker (booking step 1.5) ─────────────────────────────── */
.relpro-mode-picker {
  padding: 1.25rem 0;
}
.relpro-mode-picker__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--relpro-primary);
  margin: 0 0 1rem;
}
.relpro-mode-picker__grid {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.relpro-mode-picker__option {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .75rem;
  border: 2px solid var(--relpro-border);
  border-radius: 10px;
  background: var(--relpro-surface);
  cursor: pointer;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--relpro-primary);
  transition: border-color .15s, background .15s, transform .1s;
  text-align: center;
}
.relpro-mode-picker__option:hover {
  border-color: var(--relpro-accent);
  background: #FFF5F2;
  transform: translateY(-1px);
}
.relpro-mode-picker__option svg {
  color: var(--relpro-accent);
  flex-shrink: 0;
}
.relpro-mode-picker__back {
  margin-top: 1rem;
}

/* ── Mode tags (booking service card) ───────────────────────────────────── */
.relpro-mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .375rem;
}
.relpro-mode-tag {
  display: inline-block;
  padding: .125rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.6;
}
.relpro-mode-tag--office      { background: #EFF6FF; color: #1D4ED8; }
.relpro-mode-tag--home        { background: #F0FDF4; color: #166534; }
.relpro-mode-tag--teleconsult { background: #FDF4FF; color: #7E22CE; }

/* ── Checkbox group (form) ───────────────────────────────────────────────── */
.relpro-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
.relpro-checkbox-label {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  cursor: pointer;
}
.relpro-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--relpro-accent);
  cursor: pointer;
}

/* ── Nav badge (count pill in tab labels) ────────────────────────────────── */
.relpro-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  background: var(--relpro-accent);
  color: #fff;
  margin-left: .4rem;
}
