/**
 * RelPro — Pro Front-end Dashboard
 * Design system: "Malt Wellness"
 *
 * Covers both the [relpro_pro_register] and [relpro_pro_dashboard] shortcodes.
 */

/* ── 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-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --relpro-font-title:   'Outfit', 'Inter', sans-serif;
}

/* ── Box-sizing reset ───────────────────────────────────────────────────── */
.relpro-pro-dash *,
.relpro-pro-dash *::before,
.relpro-pro-dash *::after,
.relpro-auth-box *,
.relpro-auth-box *::before,
.relpro-auth-box *::after,
.relpro-pro-reg-wrap *,
.relpro-pro-reg-wrap *::before,
.relpro-pro-reg-wrap *::after {
  box-sizing: border-box;
}

/* ── Auth / Register form ───────────────────────────────────────────────── */
.relpro-pro-reg-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem;
}

.relpro-auth-box {
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 14px;
  padding: 2rem;
  max-width: 560px;
  margin: 0 auto;
  font-family: var(--relpro-font-body);
}

.relpro-auth-box__title {
  font-family: var(--relpro-font-title);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--relpro-primary);
  margin: 0 0 .25rem;
}

.relpro-auth-notice {
  background: var(--relpro-bg);
  border: 1px solid var(--relpro-border);
  border-radius: 10px;
  padding: 1.25rem;
  font-family: var(--relpro-font-body);
  font-size: .9375rem;
  color: var(--relpro-primary);
  text-align: center;
}

.relpro-auth-notice p { margin: 0 0 1rem; }
.relpro-auth-notice p:last-child { margin: 0; }

.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-input {
  width: 100%;
  padding: .575rem .85rem;
  border: 1.5px solid var(--relpro-border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: var(--relpro-font-body);
  color: var(--relpro-primary);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

.relpro-auth-input:focus {
  border-color: var(--relpro-accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 60, .12);
}

.relpro-auth-hint {
  font-size: .75rem;
  color: var(--relpro-text-muted);
}

.relpro-auth-error {
  font-size: .75rem;
  color: var(--relpro-error);
  font-weight: 500;
}

.relpro-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem 1.5rem;
  background: var(--relpro-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  font-family: var(--relpro-font-body);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.relpro-auth-btn:hover { background: #d44f2b; }

.relpro-auth-footer {
  text-align: center;
  font-size: .875rem;
  color: var(--relpro-text-muted);
  margin: .25rem 0 0;
}

.relpro-auth-link {
  color: var(--relpro-accent);
  text-decoration: none;
  font-weight: 500;
}

.relpro-auth-link:hover { text-decoration: underline; }

.relpro-auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--relpro-primary);
  cursor: pointer;
  line-height: 1.4;
}

.relpro-auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: .1rem;
  accent-color: var(--relpro-accent);
}

/* ── Dashboard shell ────────────────────────────────────────────────────── */
.relpro-pro-dash {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: var(--relpro-font-body);
  color: var(--relpro-primary);
}

/* ── Dashboard header ───────────────────────────────────────────────────── */
.relpro-dashboard-header {
  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-dashboard-header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.relpro-dashboard-header__avatar-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(232,96,60,.6);
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.relpro-dashboard-header__avatar {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
}

.relpro-dashboard-header__avatar-initials {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--relpro-font-title);
}

.relpro-dashboard-header__title {
  font-family: var(--relpro-font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .2rem;
}

.relpro-dashboard-header__subtitle {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.relpro-dashboard-header__actions {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}

.relpro-dashboard-header__ghost-btn {
  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-dashboard-header__ghost-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ── Status banner ──────────────────────────────────────────────────────── */
.relpro-status-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.relpro-status-banner--published {
  background: #f0faf5;
  border: 1px solid var(--relpro-success);
  color: #1a5c3a;
}

.relpro-status-banner--pending {
  background: #fffbeb;
  border: 1px solid var(--relpro-accent-warm);
  color: #7c5f00;
}

.relpro-status-banner--draft {
  background: #f8f9fa;
  border: 1px solid var(--relpro-border);
  color: var(--relpro-primary);
}

.relpro-status-banner--deactivated {
  background: #fff7ed;
  border: 1px solid #fb923c;
  color: #7c2d12;
}

/* ── Tab navigation ─────────────────────────────────────────────────────── */
.relpro-dashboard-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;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.relpro-dashboard-tabs::-webkit-scrollbar { display: none; }

.relpro-dashboard-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-dashboard-tab:hover { background: #fff; color: var(--relpro-primary); }

.relpro-dashboard-tab--active {
  background: #fff;
  color: var(--relpro-accent);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(28,43,58,.1);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.relpro-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--relpro-font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
}

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

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

.relpro-btn--ghost {
  background: transparent;
  color: var(--relpro-text-muted);
  border: 1.5px solid transparent;
}
.relpro-btn--ghost:hover { background: #f3f4f6; color: var(--relpro-primary); }

.relpro-btn--danger {
  background: #fff0f0;
  color: var(--relpro-error);
  border: 1.5px solid #fcc;
}
.relpro-btn--danger:hover { background: #fee; }

.relpro-btn--sm { padding: .45rem .9rem; font-size: .8125rem; }
.relpro-btn--xs { padding: .3rem .65rem; font-size: .75rem; border-radius: 6px; }
.relpro-btn--full { width: 100%; justify-content: center; }
.relpro-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Form sections ──────────────────────────────────────────────────────── */
.relpro-form-section {
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.relpro-form-section__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--relpro-border);
  background: var(--relpro-bg);
}

.relpro-form-section__icon {
  width: 32px;
  height: 32px;
  background: var(--relpro-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.relpro-form-section__icon svg { width: 16px; height: 16px; }

.relpro-form-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--relpro-primary);
  margin: 0;
}

.relpro-form-section__body { padding: 1.25rem; }

/* ── Fields ─────────────────────────────────────────────────────────────── */
.relpro-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}

.relpro-field:last-child { margin-bottom: 0; }

.relpro-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.relpro-field--specialty-row {
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}
.relpro-specialty-swap-wrap {
  display: flex;
  align-items: center;
  padding-top: 1.75rem;
}

.relpro-field--inline { align-items: flex-end; }

.relpro-field__label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--relpro-primary);
}

.relpro-field__hint {
  font-size: .75rem;
  color: var(--relpro-text-muted);
  margin: 0;
}
.relpro-field__hint--upsell {
  color: var(--relpro-accent);
  font-weight: 500;
}

.relpro-required { color: var(--relpro-error); }

.relpro-field--error .relpro-input-text,
.relpro-field--error .relpro-input-number {
  border-color: var(--relpro-error);
}

.relpro-field__error {
  font-size: .75rem;
  color: var(--relpro-error);
}

/* ── Inputs ─────────────────────────────────────────────────────────────── */
.relpro-input-text,
.relpro-input-number,
.relpro-input-url,
.relpro-input-select,
.relpro-time-input {
  width: 100%;
  padding: .55rem .75rem;
  border: 1.5px solid var(--relpro-border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: var(--relpro-font-body);
  color: var(--relpro-primary);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.relpro-input-text:focus,
.relpro-input-number:focus,
.relpro-input-url:focus,
.relpro-input-select:focus,
.relpro-time-input:focus {
  border-color: var(--relpro-accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 60, .12);
}

.relpro-input-text:disabled {
  background: #f9f9f9;
  color: #9ca3af;
  cursor: not-allowed;
}

.relpro-input-number { max-width: 120px; }
.relpro-time-input { width: auto; max-width: 110px; }

.relpro-bio-textarea {
  resize: vertical;
  min-height: 220px;
}

textarea.relpro-input-text { resize: vertical; }

/* ── Photo drag & drop ──────────────────────────────────────────────────── */
.relpro-dropzone {
  border: 2px dashed var(--relpro-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--relpro-bg);
}

.relpro-dropzone:hover,
.relpro-dropzone.is-over {
  border-color: var(--relpro-accent);
  background: #fff8f6;
}

.relpro-dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.relpro-dropzone__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto .75rem;
  display: block;
}

.relpro-dropzone__placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--relpro-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}

.relpro-dropzone__placeholder svg {
  width: 32px;
  height: 32px;
  color: #9ca3af;
}

.relpro-dropzone__text {
  font-size: .9rem;
  color: var(--relpro-text-muted);
  margin: 0 0 .25rem;
}

.relpro-dropzone__browse {
  background: none;
  border: none;
  color: var(--relpro-accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: .9rem;
  text-decoration: underline;
  font-family: var(--relpro-font-body);
}

.relpro-dropzone__hint {
  font-size: .75rem;
  color: #9ca3af;
  margin: .25rem 0 0;
}

.relpro-upload-progress {
  margin-top: .75rem;
  height: 4px;
  background: var(--relpro-border);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.relpro-upload-progress__bar {
  height: 100%;
  background: var(--relpro-accent);
  width: 0;
  transition: width .3s;
}

.relpro-photo-width-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  margin-top: .5rem;
}

.relpro-photo-width-badge--ok { background: #f0faf5; color: var(--relpro-success); }
.relpro-photo-width-badge--warn { background: #fffbeb; color: #7c5f00; }

/* ── Certifications ─────────────────────────────────────────────────────── */
.relpro-certs-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.relpro-cert-row {
  display: grid;
  grid-template-columns: 1fr 1fr 100px auto;
  gap: .5rem;
  align-items: center;
}

.relpro-cert-row__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: .25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}

.relpro-cert-row__remove:hover {
  color: var(--relpro-error);
  background: #fff0f0;
}

.relpro-cert-row__remove svg { width: 16px; height: 16px; }

/* ── Checkboxes ─────────────────────────────────────────────────────────── */
.relpro-checkboxes {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.relpro-checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  cursor: pointer;
}

.relpro-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--relpro-accent);
}

/* ── Bio counter ────────────────────────────────────────────────────────── */
.relpro-bio-counter {
  font-size: .8125rem;
  color: var(--relpro-text-muted);
  margin: .35rem 0 0;
}

.relpro-bio-counter__count { font-weight: 600; }
.relpro-bio-counter__count.is-ok  { color: var(--relpro-success); }
.relpro-bio-counter__count.is-warn { color: var(--relpro-accent); }

/* ── Geocode ────────────────────────────────────────────────────────────── */
.relpro-geocode-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.relpro-geocode-status {
  font-size: .8125rem;
  color: var(--relpro-text-muted);
  margin: .35rem 0 0;
}

.relpro-geocode-status--ok { color: var(--relpro-success); }

/* ── Specialty hint ─────────────────────────────────────────────────────── */
.relpro-specialty-hint { font-size: .75rem; color: var(--relpro-text-muted); }

/* ── Tags ───────────────────────────────────────────────────────────────── */
.relpro-tag--premium {
  background: var(--relpro-accent-warm);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 4px;
}

/* ── Save bar ───────────────────────────────────────────────────────────── */
.relpro-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 12px;
  margin-top: 1.5rem;
}

.relpro-save-status {
  font-size: .875rem;
  color: var(--relpro-text-muted);
}

/* ── Requirements checklist ─────────────────────────────────────────────── */
.relpro-requirements {
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.relpro-requirements__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--relpro-primary);
  margin: 0 0 .75rem;
}

.relpro-requirements__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.relpro-requirements__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
}

.relpro-requirements__item svg { width: 14px; height: 14px; flex-shrink: 0; }
.relpro-requirements__item--ok  { color: var(--relpro-success); }
.relpro-requirements__item--ok  svg { stroke: var(--relpro-success); }
.relpro-requirements__item--fail { color: var(--relpro-error); }
.relpro-requirements__item--fail svg { stroke: var(--relpro-error); }

/* ── Inline publication criteria ─────────────────────────────────────────── */
.relpro-inline-check {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  margin-top: .5rem;
  font-weight: 500;
}
.relpro-inline-check .ic-ok,
.relpro-inline-check .ic-fail {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: none;
}
.relpro-inline-check--ok   { color: var(--relpro-success); }
.relpro-inline-check--ok   .ic-ok   { display: block; stroke: var(--relpro-success); }
.relpro-inline-check--fail { color: var(--relpro-error); }
.relpro-inline-check--fail .ic-fail { display: block; stroke: var(--relpro-error); }

/* ── Tab header ─────────────────────────────────────────────────────────── */
.relpro-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.relpro-tab-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--relpro-primary);
  margin: 0;
}

.relpro-tab-description {
  font-size: .875rem;
  color: var(--relpro-text-muted);
  margin: 0 0 1.25rem;
}

/* ── Inline form ────────────────────────────────────────────────────────── */
.relpro-inline-form {
  background: var(--relpro-bg);
  border: 1px solid var(--relpro-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.relpro-inline-form__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--relpro-primary);
  margin: 0 0 1rem;
}

.relpro-inline-form__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

.relpro-form-status {
  font-size: .8125rem;
  color: var(--relpro-text-muted);
}

.relpro-hidden { display: none !important; }

/* ── Data table ─────────────────────────────────────────────────────────── */
.relpro-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.relpro-data-table th {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 2px solid var(--relpro-border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--relpro-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.relpro-data-table td {
  padding: .75rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  color: var(--relpro-primary);
}

.relpro-data-table tr:last-child td { border-bottom: none; }

.relpro-svc-name { font-weight: 500; }

.relpro-svc-desc {
  display: block;
  font-size: .8rem;
  color: var(--relpro-text-muted);
  margin-top: .15rem;
}

.relpro-actions-cell { white-space: nowrap; }
.relpro-actions-cell .relpro-btn { margin-right: .35rem; }
.relpro-actions-cell .relpro-btn:last-child { margin-right: 0; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.relpro-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.relpro-badge--success { background: #f0faf5; color: var(--relpro-success); }
.relpro-badge--muted   { background: #f3f4f6; color: var(--relpro-text-muted); }
.relpro-badge--warning { background: #fffbeb; color: #7c5f00; }
.relpro-badge--error   { background: #fff0f0; color: var(--relpro-error); }

/* ── Empty states ───────────────────────────────────────────────────────── */
.relpro-empty-state,
.relpro-empty-state-block {
  text-align: center;
  padding: 2rem;
  color: var(--relpro-text-muted);
  font-size: .9rem;
  background: var(--relpro-bg);
  border-radius: 10px;
  border: 1px dashed var(--relpro-border);
}

/* ── Availability grid ──────────────────────────────────────────────────── */
.relpro-availability-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.relpro-avail-day {
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 10px;
  overflow: hidden;
}

.relpro-avail-day__header {
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  background: var(--relpro-bg);
  border-bottom: 1px solid var(--relpro-border);
}

.relpro-avail-day__toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  margin: 0;
  font-size: .9rem;
  user-select: none;
}

.relpro-avail-day__toggle input[type="checkbox"] {
  accent-color: var(--relpro-accent);
  width: 16px;
  height: 16px;
}

.relpro-avail-day__name { font-weight: 600; color: var(--relpro-primary); }

.relpro-avail-day__slots {
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.relpro-time-range-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.relpro-time-range-sep {
  color: var(--relpro-text-muted);
  font-size: .9rem;
}

.relpro-overrides-section { margin-top: 2rem; }

.relpro-override-add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.relpro-override-times {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* ── Review cards ───────────────────────────────────────────────────────── */
.relpro-reviews-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.relpro-reviews-summary__avg {
  font-size: 2rem;
  font-weight: 700;
  color: var(--relpro-primary);
}

.relpro-reviews-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.relpro-review-card {
  background: #fff;
  border: 1px solid var(--relpro-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.relpro-review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .75rem;
  gap: .5rem;
}

.relpro-review-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.relpro-review-card__author {
  font-size: .9375rem;
  color: var(--relpro-primary);
}

.relpro-review-stars {
  display: flex;
  gap: 1px;
  color: var(--relpro-accent-warm);
}

.relpro-star--empty { color: var(--relpro-border); }

.relpro-review-card__content {
  font-size: .9rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: .75rem;
}

.relpro-review-card__reply {
  background: var(--relpro-bg);
  border-left: 3px solid var(--relpro-accent);
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: .875rem;
  margin-bottom: .75rem;
}

.relpro-review-card__reply p { margin: .35rem 0 0; }

.relpro-review-card__actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.relpro-reply-textarea,
.relpro-appeal-textarea {
  width: 100%;
  resize: vertical;
}

/* ── Upsell block ───────────────────────────────────────────────────────── */
.relpro-upsell-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #1C2B3A, #2d4a63);
  color: #fff;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.relpro-upsell-block__icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.relpro-upsell-block__icon svg { width: 20px; height: 20px; }

.relpro-upsell-block__body { flex: 1; }

.relpro-upsell-block__title {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.relpro-upsell-block__desc {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

/* ── Toasts ─────────────────────────────────────────────────────────────── */
#relpro-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}

.relpro-toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--relpro-font-body);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  pointer-events: auto;
  animation: relpro-toast-in .25s ease;
  max-width: 340px;
}

.relpro-toast--success { background: var(--relpro-success); color: #fff; }
.relpro-toast--error   { background: var(--relpro-error);   color: #fff; }
.relpro-toast--info    { background: var(--relpro-primary);  color: #fff; }

@keyframes relpro-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Dashboard tab content ──────────────────────────────────────────────── */
.relpro-dashboard-tab-content { padding-top: .25rem; }

/* ── Stats tab ──────────────────────────────────────────────────────────── */
.relpro-stats { padding-top: .5rem; }

.relpro-stats__period {
  font-size: .85rem;
  color: var(--relpro-text-muted);
  margin-bottom: 1.5rem;
}

.relpro-stats-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.relpro-stats-kpi {
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
}

.relpro-stats-kpi__icon {
  width: 32px;
  height: 32px;
  color: var(--relpro-accent);
  flex-shrink: 0;
}

.relpro-stats-kpi__icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.relpro-stats-kpi__value {
  font-family: var(--relpro-font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--relpro-primary);
  line-height: 1;
}

.relpro-stats-kpi__label {
  font-size: .8rem;
  color: var(--relpro-text-muted);
}

.relpro-stats-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--relpro-border);
  border-radius: 10px;
}

.relpro-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.relpro-stats-table th,
.relpro-stats-table td {
  padding: .6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--relpro-border);
}

.relpro-stats-table thead th {
  font-weight: 600;
  color: var(--relpro-text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--relpro-bg);
}

.relpro-stats-table tbody tr:last-child td { border-bottom: none; }
.relpro-stats-table tbody tr:hover { background: var(--relpro-bg); }

.relpro-stats__empty {
  color: var(--relpro-text-muted);
  font-size: .9rem;
  padding: 1.5rem 0;
}

/* ── Logout tab button ──────────────────────────────────────────────────── */
.relpro-dashboard-tab--logout {
  margin-left: auto;
  color: var(--relpro-text-muted);
  border-bottom-color: transparent !important;
  opacity: .8;
}
.relpro-dashboard-tab--logout:hover {
  color: var(--relpro-error);
  opacity: 1;
}

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

.relpro-account-section {
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
}

.relpro-account-section--danger {
  border-color: #fca5a5;
  background: #fff5f5;
}

.relpro-account-section--warning {
  border-color: #fdba74;
  background: #fff7ed;
}

.relpro-account-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--relpro-primary);
  margin: 0 0 .5rem;
}

.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;
}

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

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

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

/* ── No-profile screen ──────────────────────────────────────────────────── */
.relpro-no-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--relpro-surface);
  border: 1px solid var(--relpro-border);
  border-radius: 14px;
  max-width: 480px;
  margin: 2rem auto;
}

.relpro-no-profile__icon {
  color: var(--relpro-text-muted);
  margin-bottom: 1.25rem;
}

.relpro-no-profile__title {
  font-family: var(--relpro-font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--relpro-primary);
  margin: 0 0 .625rem;
}

.relpro-no-profile__desc {
  font-size: .9rem;
  color: var(--relpro-text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.relpro-link {
  font-size: .875rem;
  color: var(--relpro-text-muted);
  text-decoration: underline;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .relpro-pro-dash { padding: 1rem .75rem; }

  .relpro-dashboard-header { padding: 1.25rem 1.25rem; }
  .relpro-dashboard-header__left { gap: .75rem; }
  .relpro-dashboard-header__avatar-ring { width: 52px; height: 52px; }
  .relpro-dashboard-header__avatar,
  .relpro-dashboard-header__avatar-initials { width: 44px; height: 44px; font-size: 1.1rem; }
  .relpro-dashboard-header__title { font-size: 1.0625rem; }
  .relpro-dashboard-header__actions { flex-wrap: wrap; gap: .375rem; }
  .relpro-dashboard-header__ghost-btn { font-size: .75rem; padding: .35rem .7rem; }

  .relpro-field--row { grid-template-columns: 1fr; }
  .relpro-field--specialty-row { grid-template-columns: 1fr; }
  .relpro-specialty-swap-wrap { padding-top: 0; justify-content: center; }

  .relpro-cert-row {
    grid-template-columns: 1fr auto;
    row-gap: .35rem;
  }

  .relpro-cert-row > div:nth-child(1) { grid-column: 1; }
  .relpro-cert-row > div:nth-child(2) { grid-column: 1; }
  .relpro-cert-row > div:nth-child(3) { grid-column: 1; }
  .relpro-cert-row > button           { grid-column: 2; grid-row: 1; }

  .relpro-save-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .relpro-availability-grid .relpro-time-range-row { flex-wrap: wrap; }

  .relpro-auth-form__row { grid-template-columns: 1fr; }

  .relpro-override-add-form { flex-direction: column; }

  .relpro-data-table { font-size: .8rem; }

  #relpro-services-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .relpro-actions-cell .relpro-btn { display: block; margin-bottom: .25rem; }

  .relpro-stats-kpis { grid-template-columns: 1fr; }
}

/* ── Delivery mode tags (table) ─────────────────────────────────────────── */
.relpro-mode-tags { display:flex; flex-wrap:wrap; gap:.25rem; }
.relpro-mode-tag  { display:inline-block; padding:.125rem .45rem; border-radius:4px; font-size:.72rem; font-weight:500; line-height:1.6; white-space:nowrap; }
.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:#E8603C; cursor:pointer; }

/* ── Success button variant ──────────────────────────────────────────────── */
.relpro-btn--success { background:#f0faf5; color:#1a7d4f; border:1px solid #b2dfce; }
.relpro-btn--success:hover { background:#dcf5ea; color:#155d3b; }

/* ── 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;
}
.relpro-nav-badge--warning { background: #d97706; }

/* ── Toggle switch (approval setting) ───────────────────────────────────── */
.relpro-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.relpro-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
.relpro-toggle__track {
  display: block;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .2s;
  position: relative;
}
.relpro-toggle__track::after {
  content: '';
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}
.relpro-toggle__input:checked + .relpro-toggle__track { background: var(--relpro-accent); }
.relpro-toggle__input:checked + .relpro-toggle__track::after { transform: translateX(1.25rem); }
.relpro-toggle__input:focus-visible + .relpro-toggle__track { outline: 2px solid var(--relpro-accent); outline-offset: 2px; }
