@font-face {
  font-family: Manrope;
  src: url("../assets/fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --canvas: #090a0f;
  --surface: #12131a;
  --surface-raised: #1b1d27;
  --surface-hover: #222530;
  --ink: #f1f3f7;
  --ink-soft: #cbd0da;
  --muted: #8c94a6;
  --line: #272c37;
  --cyan: #25f4ee;
  --cyan-deep: #92fbf7;
  --cyan-soft: rgba(37, 244, 238, 0.09);
  --cyan-border: rgba(37, 244, 238, 0.24);
  --cyan-active: #1acbc6;
  --on-accent: #090a0f;
  --pink: #fe2c55;
  --pink-text: #ff7892;
  --pink-soft: rgba(254, 44, 85, 0.12);
  --pink-border: rgba(254, 44, 85, 0.26);
  --violet: #b49aff;
  --green: #64e2bf;
  --amber: #f6be71;
  --red: #f18c96;
  --radius: 16px;
  --sidebar-width: 248px;
  --bg: var(--canvas);
  --text: var(--ink);
  --border: var(--line);
  --primary: var(--cyan);
  --accent: var(--cyan);
  --text-muted: var(--muted);
  --border-color: var(--line);
  --bs-body-bg: var(--canvas);
  --bs-body-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--surface-raised);
  --bs-secondary-bg: var(--surface);
  --bs-border-color: var(--line);
  --bs-primary: var(--cyan);
  --bs-primary-rgb: 37, 244, 238;
  --bs-link-color: var(--cyan);
  --bs-link-hover-color: var(--cyan-deep);
  --bs-body-font-family: Manrope, "Segoe UI", sans-serif;
  --bs-border-radius: 0.6rem;
}
[data-bs-theme="light"] {
  color-scheme: light;
  --canvas: #f4f6fa;
  --surface: #ffffff;
  --surface-raised: #edf1f6;
  --surface-hover: #e6ecf3;
  --ink: #192638;
  --ink-soft: #35455b;
  --muted: #5e6c80;
  --line: #d7dfe9;
  --cyan: #087c80;
  --cyan-deep: #065e62;
  --cyan-soft: rgba(8, 124, 128, 0.08);
  --cyan-border: rgba(8, 124, 128, 0.28);
  --cyan-active: #06686c;
  --on-accent: #ffffff;
  --pink: #cf254c;
  --pink-text: #b81c40;
  --pink-soft: rgba(207, 37, 76, 0.06);
  --pink-border: rgba(207, 37, 76, 0.22);
  --violet: #7950bf;
  --green: #187553;
  --amber: #916008;
  --red: #b83648;
  --bs-primary-rgb: 8, 124, 128;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.6;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--cyan-deep);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
::selection {
  background: #125e62;
  color: #fff;
}
[hidden] {
  display: none !important;
}
.lead-origin-evidence { display: block; margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.5; font-weight: 400; }
:root[data-bs-theme="light"] .logo-for-dark,
:root[data-bs-theme="dark"] .logo-for-light {
  display: none;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.1px;
  font-weight: 750;
  line-height: 1.3;
  margin-bottom: 7px;
}
h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
  font-weight: 700;
}
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.btn {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 40px;
}
.btn-primary {
  --bs-btn-bg: var(--cyan);
  --bs-btn-color: var(--on-accent);
  --bs-btn-border-color: var(--cyan);
  --bs-btn-hover-bg: var(--cyan-deep);
  --bs-btn-hover-color: var(--on-accent);
  --bs-btn-hover-border-color: var(--cyan-deep);
  --bs-btn-active-bg: var(--cyan-active);
  --bs-btn-active-border-color: var(--cyan-active);
  --bs-btn-active-color: var(--on-accent);
  --bs-btn-disabled-bg: #31817f;
  --bs-btn-disabled-color: var(--on-accent);
  --bs-btn-disabled-border-color: #31817f;
  box-shadow: 0 2px 8px #0002;
}
.btn-outline-secondary {
  --bs-btn-color: #c4cad6;
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--surface-hover);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: #424c60;
  --bs-btn-active-bg: var(--surface-hover);
  --bs-btn-active-border-color: #424c60;
  --bs-btn-active-color: #fff;
  background: #ffffff02;
}
.btn-sm {
  font-size: 13px;
  min-height: 33px;
  padding: 6px 11px;
}
.btn-danger {
  --bs-btn-bg: #783e48;
  --bs-btn-border-color: #96505c;
  --bs-btn-hover-bg: #945160;
  --bs-btn-hover-border-color: #ae606d;
}
.btn-outline-danger {
  --bs-btn-color: var(--red);
  --bs-btn-border-color: #60343e;
  --bs-btn-hover-bg: #60343e;
  --bs-btn-hover-border-color: #60343e;
}
.form-control,
.form-select {
  font-size: 14px;
  background-color: #101319;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 41px;
}
.form-select {
  padding-right: 32px;
}
.form-control::placeholder {
  color: #747e90;
  opacity: 1;
}
.form-control:focus,
.form-select:focus {
  background-color: #11151c;
  color: var(--ink);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.form-label {
  font-size: 14px;
  color: #c9cfdb;
  font-weight: 650;
  margin-bottom: 7px;
}
.form-text {
  font-size: 13px;
  color: var(--muted);
}
.form-check-input:checked {
  background-color: #078b89;
  border-color: var(--cyan);
}
.form-control[type="date"],
.form-control[type="time"] {
  color-scheme: inherit;
}
.text-secondary,
.text-muted {
  color: var(--muted) !important;
}
.text-success {
  color: var(--cyan) !important;
}
.text-danger {
  color: var(--red) !important;
}
.text-warning {
  color: var(--amber) !important;
}
.bg-body-tertiary {
  background: var(--surface-raised) !important;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-header .page-subtitle {
  margin-bottom: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.65px;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.page-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading a {
  font-size: 13px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
  min-width: 0;
}
.metric-label {
  color: var(--muted);
  font-size: 14px;
}
.metric-value {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.3;
}
.metric-caption {
  font-size: 13px;
  color: var(--muted);
}
.avatar {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 750;
  font-size: 15px;
}
.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}
.avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 20px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #373c49;
  border-radius: 6px;
  color: #b9c1d0;
  background: #ffffff04;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.status-pill.confirmed,
.status-confirmed,
.status-pill.completed,
.status-completed {
  color: #8ee9c8;
  background: #64e2bf0d;
  border-color: #2a5146;
}
.status-pill.scheduled,
.status-scheduled {
  color: #f6c585;
  background: #f6be710a;
  border-color: #57462e;
}
.status-pill.cancelled,
.status-cancelled,
.status-pill.no_show,
.status-no_show {
  color: #efa4aa;
  background: #ef88930b;
  border-color: #59373f;
}
.empty-state {
  padding: 55px 24px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty-state h2 {
  color: var(--ink-soft);
  font-size: 18px;
}
.empty-state p {
  max-width: 400px;
  margin: 8px auto 20px;
  font-size: 14px;
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink-soft);
  --bs-table-border-color: #262c36;
  --bs-table-hover-bg: #ffffff02;
  --bs-table-hover-color: #fff;
  font-size: 14px;
  margin-bottom: 0;
  vertical-align: middle;
}
.table thead th {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #11151b;
  border-bottom-width: 1px;
  white-space: nowrap;
  padding: 13px 16px;
}
.table tbody td {
  padding: 16px;
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table-responsive {
  border-radius: 10px;
}
.modal {
  --bs-modal-bg: #181c24;
  --bs-modal-border-color: #343c49;
  --bs-modal-header-border-color: var(--line);
  --bs-modal-footer-border-color: var(--line);
  --bs-modal-border-radius: 16px;
}
.modal-header {
  padding: 20px 24px;
}
.modal-body {
  padding: 24px;
}
.modal-title {
  font-weight: 700;
  letter-spacing: -0.3px;
}
.modal-backdrop {
  --bs-backdrop-opacity: 0.75;
}
.toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 20px;
  border: 1px solid #39554d;
  border-radius: 12px;
  background: #1a2b26;
  box-shadow: 0 12px 40px #0005;
  color: #d8f5e9;
  font-size: 14px;
  animation: toast-in 0.2s ease-out;
}
.app-toast > .icon {
  margin-top: 2px;
}
.app-toast-danger {
  background: #332027;
  border-color: #71444f;
  color: #ffced5;
}
.app-toast-info {
  background: #202936;
  border-color: #40516a;
  color: #d4e3f7;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  h1 {
    font-size: 32px;
  }
  .panel-card {
    padding: 26px;
  }
}
@media (max-width: 1199px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .btn {
    min-height: 44px;
  }
  :root input.form-control,
  :root textarea.form-control {
    font-size: 16px;
    min-height: 44px;
  }
  .form-select {
    min-height: 44px;
  }
  h1 {
    font-size: 25px;
  }
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .page-header > .btn {
    align-self: flex-start;
  }
  .panel-card {
    padding: 17px;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-value {
    font-size: 25px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-header {
    padding: 18px;
  }
  .toast-region {
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Component colors that need more than the shared palette in light mode. */
[data-bs-theme="light"] .btn-outline-secondary {
  --bs-btn-color: var(--ink-soft);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-border-color: #aebccd;
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-border-color: #aebccd;
  background: transparent;
}
[data-bs-theme="light"] .btn-outline-danger {
  --bs-btn-border-color: #d19aa3;
  --bs-btn-hover-bg: #b83648;
  --bs-btn-hover-border-color: #b83648;
}
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
  background-color: var(--surface);
}
[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
  background-color: var(--surface);
}
[data-bs-theme="light"] .form-control::placeholder {
  color: var(--muted);
}
[data-bs-theme="light"] .form-label {
  color: var(--ink-soft);
}
[data-bs-theme="light"] .status-pill {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--ink-soft);
}
[data-bs-theme="light"] :is(.status-pill.confirmed, .status-confirmed, .status-pill.completed, .status-completed) {
  color: #186443;
  background: #e9f6ef;
  border-color: #b6dcca;
}
[data-bs-theme="light"] :is(.status-pill.scheduled, .status-scheduled) {
  color: #80520b;
  background: #fff5df;
  border-color: #ecd5a4;
}
[data-bs-theme="light"] :is(.status-pill.cancelled, .status-cancelled, .status-pill.no_show, .status-no_show) {
  color: #a5263b;
  background: #fff0f2;
  border-color: #e9bbc3;
}
[data-bs-theme="light"] .table {
  --bs-table-border-color: var(--line);
  --bs-table-hover-bg: var(--surface-raised);
  --bs-table-hover-color: var(--ink);
}
[data-bs-theme="light"] .table thead th {
  background: var(--surface-raised);
}
[data-bs-theme="light"] .modal {
  --bs-modal-bg: var(--surface);
  --bs-modal-border-color: var(--line);
}
[data-bs-theme="light"] .app-toast {
  color: #185738;
  background: #edfaf2;
  border-color: #9bcdb0;
  box-shadow: 0 12px 40px #1926381a;
}
[data-bs-theme="light"] .app-toast-danger {
  color: #9f253a;
  background: #fff0f2;
  border-color: #e9bbc3;
}
[data-bs-theme="light"] .app-toast-info {
  color: #244d7d;
  background: #edf5ff;
  border-color: #b3cce9;
}

.city-field { position: relative; }
.city-options {
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.city-option {
  display: block;
  width: 100%;
  border: 0;
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}
.city-option:hover, .city-option.active { background: var(--cyan-soft); color: var(--cyan); }
.appointment-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; background: var(--cyan-soft); border: 1px solid var(--cyan-border); border-radius: 10px; }
.appointment-total output { font-size: 21px; font-weight: 700; overflow-wrap: anywhere; }
.booking-location { margin-top: 20px; font-size: 14px; overflow-wrap: anywhere; }
.platform-label { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; max-width: 100%; }
.platform-label > span { min-width: 0; }
.platform-logo { display: inline-block; flex-shrink: 0; object-fit: contain; vertical-align: middle; }
.platform-label > .platform-logo { width: 20px; height: 20px; }

.avatar > img[data-client-avatar] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.avatar-xs { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }

.message-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 28px;
  margin-top: 6px;
  padding-block: 3px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.message-download:is(:hover, :focus-visible) { color: var(--cyan); text-decoration: underline; }
.message-download:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }
