
:root {
  --primary: #26786A; 
  --primary-light: #2A8072; 
  --primary-dark: #1F6B5F;
  --primary-subtle: rgba(45, 139, 122, 0.08);
  --accent: #E8985E;
  --clanics-primary: var(--primary);
  --bg: var(--page-bg);
  --bg-warm: var(--page-bg);
  --surface: #FFFFFF;
  --bg-primary: var(--page-bg);
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --text: #2b3039;
  --text-primary: var(--text);
  --text-muted: var(--text-faint);
  --text-tertiary: var(--text-faint);
  --text-inverse: #FFFFFF;
  --border: #E8E4DF;
  --border-light: #F2EFEA;
  --border-medium: #D0C9C0;
  --success: #1f6e57;
  --error: #cf4040;
  --warning: #F5A623;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-4xl: 2.25rem;
  --sidebar-width: 72px;
  --chat-panel-width: 380px;
  --mobile-safe-top: env(safe-area-inset-top, 0px);
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-header: calc(56px + var(--mobile-safe-top));
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 43, 60, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 43, 60, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 43, 60, 0.12);
  --shadow-2xl: 0 25px 50px -12px rgba(26, 43, 60, 0.25);
  --indigo: #6366F1;
  --indigo-dark: #4F46E5;
  --indigo-darker: #3730A3;
  --indigo-subtle: rgba(99, 102, 241, 0.1);
  --indigo-glow: rgba(99, 102, 241, 0.15);
  --indigo-glow-strong: rgba(99, 102, 241, 0.25);
  --indigo-glow-pulse: rgba(99, 102, 241, 0.35);
  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img {
  max-width: 100%; display: block;
}
button {
  font-family: inherit; cursor: pointer; border: none; background: none;
}
input, textarea {
  font-family: inherit; font-size: inherit;
}
a {
  color: inherit; text-decoration: none;
}
.app-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  display: none;
}
.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color var(--transition);
}
.logo-link:hover {
  color: var(--primary);
}
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--mobile-header);
  padding: 0 var(--space-md);
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
}
.mobile-menu-btn:hover {
  background: var(--bg-warm);
}
.mobile-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--primary);
}
.mobile-header__brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
}
.mobile-header__wordmark {
  height: 18px;
  width: auto;
  display: block;
}
.main-content {
  flex: 1;
  width: 100%;
  padding-top: var(--mobile-header);
  padding-bottom: var(--space-3xl);
}
.message {
  display: flex;
  gap: var(--space-sm);
  max-width: 85%;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from {
    opacity: 0; transform: translateY(8px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}
.send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  align-self: center;
  margin: 0;
}
.send-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.05);
}
.send-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}
.clinic-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  animation: cardIn 0.4s ease backwards;
}
@keyframes cardIn {
  from {
    opacity: 0; transform: translateY(20px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}
.clinic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.clinic-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.clinic-badge.spotlight {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}
.favourite-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.favourite-btn:hover {
  background: var(--surface);
  color: var(--error);
  transform: scale(1.1);
}
.favourite-btn.active {
  color: var(--error);
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.clinic-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text);
  line-height: 1.3;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-modal-backdrop) + 50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-container {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(1) translateY(0);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-raised);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.modal-close:hover {
  background: var(--bg-warm);
  color: var(--text);
}
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}
.modal-gallery {
  position: relative;
  height: 200px;
  background: var(--bg-warm);
}
.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 6px 12px;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.modal-badge.spotlight {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.modal-verified-badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) 12px;
  background: rgba(45, 139, 122, 0.95);
  color: var(--text-inverse);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.modal-verified-badge svg {
  flex-shrink: 0;
}
.modal-favourite-btn {
  position: absolute;
  top: var(--space-md);
  right: 72px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: var(--z-raised);
}
.modal-favourite-btn:hover {
  background: var(--surface);
  color: var(--error);
  transform: scale(1.1);
}
.modal-favourite-btn.active {
  color: var(--error);
}
.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}
.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text);
  line-height: 1.3;
}
.modal-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--accent);
  flex-shrink: 0;
}
.modal-rating .rating-value {
  font-weight: var(--weight-semibold);
  font-size: 0.9375rem;
}
.modal-rating .rating-count {
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.modal-location {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}
.modal-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}
.modal-response-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
}
.modal-response-time strong {
  font-weight: var(--weight-semibold);
}
.modal-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) 14px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
}
.review-card {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F2EFEA;
}
.review-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.modal-section {
  padding: var(--space-lg);
}
.modal-section + .modal-section {
  border-top: 1px solid var(--border-light);
}
.modal-section-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.modal-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
#hoursDrop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #F2EFEA;
  padding: 4px 0;
  z-index: 20;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: dropIn 0.15s ease;
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.lb-image-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-lightbox img.lb-main {
  max-width: 85vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  display: block;
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-toast);
  transition: background 0.2s;
}
.lb-close svg, .lb-nav svg {
  width: 20px;
  height: 20px;
}
.lb-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-toast);
  transition: all 0.2s;
  opacity: 0.7;
}
.lb-nav:hover {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}
.lb-prev {
  left: -52px;
}
.lb-next {
  right: -52px;
}
.lb-counter {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  margin-top: var(--space-md);
  letter-spacing: 3px;
}
@media (max-width: 700px) {
  .lb-prev {
    left: var(--space-sm);
  }
  .lb-next {
    right: var(--space-sm);
  }
  .lb-nav {
    background: rgba(0, 0, 0, 0.5);
  }
  .lb-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}
@media (min-width: 769px) {
  .sidebar {
    display: flex;
  }
  .mobile-header {
    display: none;
  }
  .main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding-top: 0;
    padding-bottom: 0;
  }
}
@media (min-width: 1536px) {
  :root {
    --chat-panel-width: 420px;
  }
}
.page-section {
  padding: var(--space-xl);
  padding-bottom: calc(var(--space-xl) + 64px);
  min-height: calc(100vh - var(--mobile-header));
  min-height: calc(100dvh - var(--mobile-header));
  max-width: 1200px;
  margin: 0 auto;
}
.page-section.hidden {
  display: none;
}
.page-header {
  margin-bottom: var(--space-xl);
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--space-xs);
}
.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.section-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 400px;
  margin: 0 auto;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  color: var(--clanics-primary);
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  border: 2px solid var(--clanics-primary);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--clanics-primary);
  color: var(--text-inverse);
  transform: translateY(-1px);
}
.nav-icon.has-message-badge {
  position: relative;
}
.message-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 var(--space-xs);
  background: var(--error);
  color: var(--text-inverse);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-badge.hidden {
  display: none;
}
.mobile-nav-badge {
  position: absolute;
  top: var(--space-xs);
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 var(--space-xs);
  background: var(--error, var(--color-danger-strong));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  line-height: 16px;
  text-align: center;
  border-radius: var(--radius-full);
  pointer-events: none;
}
.messages-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 190px);
  height: calc(100dvh - 190px);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 36px;
}
@media (min-width: 769px) {
  .messages-layout {
    flex-direction: row;
    height: calc(100vh - 160px);
    height: calc(100dvh - 160px);
  }
  body:has(#messagesPage) .app-container {
    height: 100dvh;
  }
  body:has(#messagesPage) .main-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 24px;
  }
  body:has(#messagesPage) #messagesPage.page-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
  }
  body:has(#messagesPage) .messages-layout {
    flex: 1;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
  }
}
.messages-sidebar {
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 769px) {
  .messages-sidebar {
    width: 360px;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
  }
}
.messages-filter {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}
.msg-filter-btn {
  padding: var(--space-xs) var(--space-md);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--bg-warm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.msg-filter-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}
.msg-filter-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
}
.messages-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: var(--space-lg);
}
.message-thread {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  color: inherit; text-decoration: none; 
  cursor: pointer;
  transition: background var(--transition);
}
.message-thread:hover {
  background: var(--bg-warm);
}
.message-thread.active {
  background: var(--primary-subtle);
}
.message-thread.unread {
  background: rgba(45, 139, 122, 0.05);
}
.message-thread.unread .thread-clinic {
  font-weight: 700;
}
.message-thread.unread .thread-preview {
  color: var(--text);
  font-weight: var(--weight-medium);
}
.thread-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: visible;
  flex-shrink: 0;
}
.thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--success);
  border: 2px solid var(--surface);
  border-radius: var(--radius-full);
}
.thread-content {
  flex: 1;
  min-width: 0;
}
.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.thread-clinic, .conversation-clinic-details p {
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--text);
}
.thread-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}
.thread-preview {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}
.thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.thread-service {
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
}
.unread-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: var(--radius-full);
}
.conversation-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.conversation-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}
.conversation-empty.hidden {
  display: none;
}
.conversation-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.conversation-empty h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--space-xs);
}
.conversation-empty p {
  font-size: var(--text-sm);
}
.conversation-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.conversation-active.hidden {
  display: none;
}
.conversation-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.back-to-list {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  color: var(--text);
  cursor: pointer;
  border: none;
}
@media (min-width: 769px) {
  .back-to-list {
    display: none;
  }
}
.conversation-clinic-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}
.conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.conversation-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
}
.status-dot.online {
  background: var(--success);
}
.conversation-actions {
  display: flex;
  gap: var(--space-xs);
}
.conv-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  color: var(--text-muted);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.conv-action-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}
.message-thread:last-of-type {
  margin-bottom: var(--space-md);
}
.profile-content {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: var(--space-2xl);
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.form-card .form-group {
  margin-bottom: var(--space-lg);
}
.form-card .form-group:last-child {
  margin-bottom: 0;
}
.form-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-xs);
}
.input-error {
  border-color: var(--error) !important;
}
.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}
.btn-text-danger {
  padding: var(--space-sm);
  background: none;
  border: none;
  color: var(--error);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.btn-text-danger:hover {
  opacity: 1;
}
.settings-section {
  margin-bottom: var(--space-lg);
}
@media (min-width: 769px) {
  .page-title {
    font-size: 2rem;
  }
}
@media (min-width: 1024px) {
  .page-section {
    padding: var(--space-2xl);
    min-height: 100vh;
    min-height: 100dvh;
  }
  .page-title {
    font-size: var(--text-4xl);
  }
}
.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  padding: var(--space-sm) var(--space-xs);
  color: var(--text-muted);
  transition: color var(--transition);
}
.mobile-nav-item span {
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
}
.mobile-nav-item:hover {
  color: var(--text-secondary);
}
.mobile-nav-item.active {
  color: var(--primary);
}
.mobile-nav-item.active svg {
  stroke-width: 2.5;
}
.faq-section-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}
.faq-badge-container {
  margin-bottom: 16px;
}
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}
.faq-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.faq-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-icon-wrapper {
  flex-shrink: 0;
}
.faq-plus-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-question-text {
  font-size: 16px;
  font-weight: 700;
  color: #111C15;
}
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-card.open .faq-content {
  grid-template-rows: 1fr;
}
.faq-card.open .faq-plus-icon {
  transform: rotate(45deg);
}
.faq-content-inner {
  overflow: hidden;
}
.faq-content-inner p {
  padding: 0 24px 20px 64px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}
.faq-footer-text {
  font-size: 14px;
  color: #64748B;
  margin-top: 40px;
}
.friendly-link {
  color: #111C15;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.friendly-link:hover {
  color: #84CC16;
}
.pricing-page-content .pricing-page {
  padding: 0;
}
.pricing-page-content .pricing-cards {
  padding: 0;
}
.pricing-page-content, .chat-shell:not(.is-empty) .cs-hero {
  padding-top: 0;
  padding-bottom: 0;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-question span {
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  color: var(--text);
}
.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, 2rem);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.cta-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-md);
}
@media (min-width: 480px) {
  .cta-buttons {
    flex-direction: row;
  }
}
.cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.site-footer {
  display: none;
  width: 100%;
  background: transparent;
  border-top: none;
  margin-left: 0;
  margin-bottom: var(--space-3xl); 
}
@media (min-width: 769px) {
  .site-footer {
    margin-bottom: 0;
  }
}
.footer-minimal {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.footer-minimal-single {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}
.footer-minimal-single a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.15);
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.footer-minimal-single a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}
.footer-minimal-single .footer-nav-link {
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.footer-minimal-single .footer-sep {
  margin: 0 6px;
  color: var(--text-muted);
  opacity: 0.5;
}
.intel-demo-card {
  width: 100%;
  max-width: 430px;
  background: #FFFFFF;
  border: 1px solid #ECE8E1;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(26, 43, 60, 0.07);
  padding: 22px 24px 20px;
  text-align: left;
}
.icd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #F0EBE1;
}
.icd-title {
  font-size: 10.5px;
  font-weight: var(--weight-semibold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.icd-tag {
  font-size: 10px;
  color: #6a6a61;
}
.icd-service {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 14px;
}
.icd-service-name {
  font-weight: var(--weight-semibold);
  font-size: 14.5px;
  color: var(--text);
}
.icd-delta {
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
  color: var(--primary-dark);
  white-space: nowrap;
}
.icd-row {
  display: grid;
  grid-template-columns: 92px 1fr 56px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.icd-row-label {
  font-size: 11.5px;
  color: var(--text-secondary);
}
.icd-bar {
  height: 8px;
  border-radius: 4px;
  background: #F0EBE1;
  overflow: hidden;
}
.icd-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.icd-bar--you span { width: 75%; background: #D9D2C2; }
.icd-bar--avg span { width: 90%; background: #C2CBB6; }
.icd-bar--top span { width: 100%; background: var(--primary); }
.icd-row-value {
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.icd-insight {
  margin-top: 16px;
  padding: 11px 14px;
  background: rgba(38, 120, 106, 0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
}
.icd-insight strong {
  color: var(--primary-dark);
}
.mi-cta-br {
  display: none;
}
@media (min-width: 769px) {
  .mi-cta-br {
    display: inline;
  }
}
.mi-demo-section, .mi-modules-section {
  margin-bottom: var(--space-3xl);
  text-align: center;
}
.mi-demo-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}
.mi-legal-note {
  font-size: var(--text-xs);
  color: #6a6a61;
  max-width: 560px;
  margin: var(--space-md) auto 0;
  line-height: 1.5;
}
.mi-quote-section {
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.mi-quote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, 1.75rem);
  font-weight: var(--weight-medium);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.mi-quote-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
.cta-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65) !important;
  margin-top: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-align: center;
}
body.body--b2b .section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, 2rem);
  font-weight: var(--weight-semibold);
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-sm);
}
body.body--b2b .section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}
.br-desktop {
  display: none;
}
@media (min-width: 769px) {
  .br-desktop {
    display: inline;
  }
}
.footer-b2b {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}
.footer-b2b__links {
  font-size: var(--text-xs);
  margin-bottom: var(--space-sm);
}
.footer-b2b__links .footer-nav-link {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.footer-b2b__links .footer-nav-link:hover {
  color: var(--primary);
}
.footer-b2b__cta {
  color: var(--primary) !important;
}
.footer-b2b__meta {
  font-size: 11px;
  color: var(--text-muted);
}
.footer-b2b__meta a {
  color: var(--text-muted);
  text-decoration: underline;
}
.footer-b2b__meta a:hover {
  color: var(--primary);
}
body.show-footer .site-footer {
  display: block;
}
.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}
.mark-all-read-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--primary);
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.mark-all-read-btn:hover {
  background: var(--primary);
  color: white;
}
.mark-all-read-btn svg {
  flex-shrink: 0;
}
.messages-search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  position: relative;
  height: 48px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.messages-search .search-icon, .step-connector {
  color: var(--text-muted);
  flex-shrink: 0;
}
.messages-search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: var(--text-sm);
  color: var(--text);
  outline: none;
  height: 100%;
  padding: 0;
  margin: 0;
  line-height: 1;
}
.search-clear-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.search-clear-btn:hover {
  background: var(--border);
  color: var(--text);
}
.messages-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  color: var(--text-muted);
}
.messages-empty-state svg {
  margin-bottom: var(--space-md);
  opacity: 0.5;
}
.messages-empty-state h2 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}
.messages-empty-state p {
  font-size: var(--text-sm);
}
.conv-more-dropdown {
  position: relative;
}
.conv-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  z-index: var(--z-sticky);
  animation: dropdownFadeIn 0.15s ease;
}
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  text-align: left;
}
.dropdown-item:hover {
  background: var(--bg-warm);
}
.dropdown-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}
.dropdown-item.danger {
  color: var(--error);
}
.dropdown-item.danger svg {
  color: var(--error);
}
.dropdown-item.danger:hover {
  background: rgba(232, 90, 90, 0.08);
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}
.typing-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.typing-bubble {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}
.typing-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
}
#unreadFilterCount {
  font-weight: var(--weight-semibold);
}
@media (max-width: 768px) {
  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .mark-all-read-btn {
    align-self: flex-end;
    margin-top: calc(-1 * var(--space-lg));
  }
  .typing-indicator {
    padding: var(--space-xs) var(--space-sm);
  }
  .typing-text {
    display: none;
  }
}
.eq-chip:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
#enquiryPanel {
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.clara-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: claraBlink 4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(200, 230, 76, 0.4);
}
.clara-dot:nth-child(2) {
  animation-delay: 0.1s;
}
@keyframes claraBlink {
  0%, 45%, 55%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.1);
    opacity: 0.8;
  }
}
.why-join-page, .mi-page {
  max-width: 900px;
  margin: 0 auto;
}
.benefits-section {
  margin-bottom: var(--space-3xl);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.benefit-card, .metric-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
}
.benefit-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(26, 43, 60, 0.08);
}
.benefit-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--primary);
}
.benefit-title, .metric-label {
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.benefit-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  color: #ffffff;
}
body.body--b2b .stats-section .section-title,
.stats-section .section-title {
  color: #ffffff;
}
body.body--b2b .stats-section .section-subtitle,
.stats-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}
.stats-grid, .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}
.stat-card {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-xs);
}
.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.stat-source {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}
.how-it-works-section {
  margin-bottom: var(--space-3xl);
}
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-md);
}
.step-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .step-connector {
    display: none;
  }
  .steps-grid {
    flex-direction: column;
  }
  .step-card {
    max-width: 100%;
  }
}
.compare-section {
  margin-bottom: var(--space-3xl);
}
.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--bg-card);
}
.compare-table th, .compare-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.compare-table th {
  background: var(--bg-warm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
}
.compare-table th.highlight-col {
  background: var(--primary);
  color: #ffffff;
}
.compare-table td.highlight-col {
  background: var(--primary-subtle);
  font-weight: var(--weight-semibold);
}
.compare-table td:first-child {
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}
.compare-table .positive {
  color: var(--success);
}
.compare-table .negative {
  color: var(--error);
}
.compare-table .neutral {
  color: var(--text-muted);
}
.compare-table tbody tr:hover {
  background: var(--bg-warm);
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.why-join-page .benefit-card, .why-join-page .stat-card, .why-join-page .step-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}
.why-join-page .benefit-card:hover, .why-join-page .step-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(45, 139, 122, 0.08);
}
.why-join-page .stat-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
.why-join-page .stat-number {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.5px;
}
.market-intelligence-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
.intel-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}
.intel-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.intel-text h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 4vw, 1.875rem);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: 1.3;
}
.intel-desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.6;
}
.intel-features-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.intel-features-list li {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
.intel-features-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.intel-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.intel-legal-note {
  font-size: var(--text-xs);
  color: #6a6a61; 
  margin-top: var(--space-md);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .market-intelligence-section {
    padding: var(--space-lg);
  }
  .intel-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}
.why-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0d8a6f 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  color: #ffffff;
}
.why-cta .cta-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, 2rem);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
  color: #ffffff;
}
.why-cta .cta-subtitle {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}
.why-cta .cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.why-cta .cta-note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.tag button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1;
}
.about-page, .contact-page {
  max-width: 1000px;
  margin: 0 auto;
}
.about-hero {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.about-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}
.about-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.clara-icon-large {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto var(--space-lg);
}
.clara-icon-large .clara-dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: var(--radius-full);
}
.about-section {
  padding: var(--space-2xl) 0;
}
.about-section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.about-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, 2rem);
  margin-top: var(--space-sm);
}
.about-section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-md) auto 0;
}
.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-lg);
}
.about-mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}
.mission-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--primary);
}
.about-mission-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}
.about-mission-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}
.about-clara-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin: var(--space-xl) 0;
}
.about-clara-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (max-width: 768px) {
  .about-clara-content {
    grid-template-columns: 1fr;
  }
}
.about-clara-text h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, 2rem);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}
.about-clara-text > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.clara-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.clara-features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--text-primary);
}
.clara-features-list svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}
.clara-chat-preview {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.preview-message {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.preview-message.user {
  flex-direction: row-reverse;
}
.clara-dots-small {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}
.clara-dots-small span {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: var(--radius-full);
}
.preview-bubble {
  background: var(--bg-card);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 80%;
}
.preview-message.user .preview-bubble {
  background: var(--primary);
  color: white;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.about-stat {
  padding: var(--space-lg);
}
.about-stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary);
}
.about-stat .stat-label {
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}
.about-values-grid, .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.about-value-card, .contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.about-value-card h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
  color: var(--primary);
}
.about-value-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-sm);
}
.about-cta {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  background: linear-gradient(135deg, var(--primary-subtle), var(--bg-warm));
  border-radius: var(--radius-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.about-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, 2rem);
  margin-bottom: var(--space-sm);
}
.about-cta p, .help-contact p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.about-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.help-page {
  max-width: 1100px;
  margin: 0 auto;
}
.help-search {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.help-search svg {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.help-search-input {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 28px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  background: var(--bg-card);
}
.help-contact {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
}
.help-contact h2, .help-no-results h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}
.help-tabs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.help-tab {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.help-tab:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}
.help-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.help-faq-list {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.faq-icon {
  color: var(--text-secondary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.faq-answer-content p {
  margin: 0 0 var(--space-sm);
}
.faq-answer-content p:last-child {
  margin-bottom: 0;
}
.faq-answer-content strong {
  color: var(--text-primary);
}
.faq-answer-content a {
  color: var(--primary);
  text-decoration: none;
}
.faq-answer-content a:hover {
  text-decoration: underline;
}
.help-no-results {
  text-align: center;
  padding: var(--space-2xl);
  display: none;
}
.help-no-results p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
}
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-appearance: none;
}
.contact-locked-input {
  background: #f5f3f0 !important;
  color: var(--text-secondary) !important;
  cursor: not-allowed !important;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 16px;
  padding-right: calc(var(--space-md) + 20px);
  cursor: pointer;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.captcha-group {
  margin-bottom: var(--space-lg);
}
.captcha-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: 4px;
}
.btn-icon {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  height: 42px;
  width: 42px;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  background: var(--bg-hover) !important;
  border-color: var(--border-medium);
  color: var(--text-primary);
}
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.contact-info-card h2 {
  font-size: var(--text-md);
  margin-bottom: var(--space-xs);
}
.contact-info-card > p {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.contact-response {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.legal-page {
  max-width: 800px;
  margin: 0 auto;
}
.legal-header {
  text-align: center;
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-xl);
}
.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: var(--space-sm);
}
.legal-updated {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.legal-content {
  padding-bottom: var(--space-2xl);
}
.legal-section {
  margin-bottom: var(--space-xl);
}
.legal-section h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.legal-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.legal-section ul {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.legal-section ul li {
  margin-bottom: var(--space-xs);
}
body.body--chat-page .site-footer {
  display: none !important;
}
@media (min-width: 769px) {
  body.body--chat-page:not(:has(#regShell)) .sidebar {
    display: flex;
  }
  body.body--chat-page:not(:has(#regShell)) .mobile-header {
    display: none !important;
  }
}
body.body--chat-page .main-content {
  margin: 0 !important; padding: 0 !important;
}
body.body--chat-page .app-container {
  display: block;
}
html, body.body--chat-page {
  height: 100%;
}
body.body--chat-page {
  overflow: hidden;
}
.cs-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.cs-skip {
  position: fixed; top: var(--space-sm); left: var(--space-sm);
  background: var(--text); color: #fff;
  padding: 10px var(--space-md); border-radius: 8px;
  font-size: 14px; font-weight: var(--weight-semibold);
  text-decoration: none; z-index: var(--z-toast);
  transform: translateY(-200%); transition: transform 0.15s;
}
.cs-skip:focus {
  transform: translateY(0); outline: 2px solid var(--primary); outline-offset: 2px;
}
.chat-shell :focus-visible, .cs-drawer :focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.chat-shell {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: auto;
  height: 100vh;
  height: var(--visual-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  font-family: var(--font-body);
  color: var(--text);
  box-sizing: border-box;
}
.cs-hero, .cs-input {
  flex: 0 0 auto;
}
.cs-hero {
  text-align: center;
  padding: var(--space-lg) 20px var(--space-xs);
  max-width: 720px;
  margin: 0 auto;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 0.32s ease, opacity 0.22s ease, transform 0.32s ease, padding 0.32s ease;
}
.chat-shell.is-empty .cs-hero {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}
.chat-shell.is-empty {
  justify-content: center;
}
.chat-shell.is-empty .cs-conversation {
  flex: 0 0 auto; padding-bottom: 4px;
}
.chat-shell.is-empty .cs-bubble:last-child {
  margin-bottom: 0;
}
#regShell.is-empty .cs-conversation {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
#regShell.is-empty .cs-conversation > * {
  width: 100%;
}
#regShell.is-empty::after {
  content: '';
  flex: 1 1 0;
}
.chat-shell.is-empty .cs-strip {
  position: absolute; top: 0; left: 0; right: 0;
}
.cs-hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.cs-hero__accent {
  color: var(--primary);
  display: inline-block;
}
@media (max-width: 480px) {
  .cs-hero {
    padding: 18px var(--space-md) var(--space-xs);
  }
}
@media (min-width: 769px) {
  .chat-shell {
    left: 72px;
  }
  .cs-drawer-btn {
    display: none !important;
  }
}
.cs-corner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.cs-corner-link:hover {
  color: var(--primary); background: rgba(45, 139, 122, 0.07);
}
.cs-corner-link:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.cs-biz {
  display: none;
  color: #26786A;
  background: rgba(45, 139, 122, 0.07);
}
.cs-biz:hover, .cs-biz:active {
  color: #26786A;
  background: rgba(45, 139, 122, 0.13);
}
@media (min-width: 769px) {
  .cs-biz, body.body--b2b .mobile-header__links {
    display: inline-flex;
    position: absolute;
    top: 25.5px;
    right: 26px;
    z-index: var(--z-raised);
  }
}
body:has(#clinicModal:not(.hidden)) .cs-biz, body:has(#authModal:not([hidden])) .cs-biz {
  display: none !important;
}
.cs-hint {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  animation: cs-hint-fade 5s ease forwards;
  animation-delay: 1.2s;
}
body.has-seen-drawer .cs-hint {
  display: none;
}
@keyframes cs-hint-fade {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.cs-conversation {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px var(--space-md) var(--space-lg);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}
@media (min-width: 760px) {
  .cs-conversation {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
  }
  .cs-conversation > * {
    max-width: 720px; margin-left: auto; margin-right: auto;
  }
}
.cs-bubble {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  animation: cs-bubble-bounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cs-bubble-bounce {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cs-bubble--user {
  justify-content: flex-end;
}
.cs-bubble--clara:has(+ .cs-bubble--clara),
.cs-bubble--user:has(+ .cs-bubble--user) {
  margin-bottom: 6px;
}
.cs-bubble__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.cs-bubble--user .cs-bubble__body {
  flex: 0 1 auto;
  max-width: 70%;
  width: fit-content;
  background: var(--primary-subtle); color: var(--text); border-top-right-radius: 4px;
}
.cs-bubble--clara .cs-bubble__body {
  background: var(--page-bg); color: var(--text); border-top-left-radius: 4px;
}
.cs-cards {
  margin-top: 12px; display: grid; gap: 10px;
}
.cs-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.cs-card:hover {
  border-color: var(--primary); transform: translateY(-1px);
}
.cs-card__photo {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--page-bg) center/cover no-repeat;
  background-image: url('/images/clinic-placeholder.svg');
}
.cs-card__body {
  display: flex; flex-direction: column; min-width: 0; gap: 2px;
}
.cs-card__name {
  font-size: 14px; font-weight: var(--weight-semibold); color: var(--text); margin: 0; line-height: 1.3;
}
.cs-card__meta {
  font-size: 12px; color: var(--text-secondary); margin: 0;
}
.cs-card__rating {
  font-size: 12px; color: var(--text-secondary);
}
.cs-card__rating .stars {
  color: var(--warning); margin-right: var(--space-xs);
}
.cs-card__actions {
  display: flex; gap: var(--space-sm); margin-top: var(--space-xs);
}
.cs-card__open, .cs-card__save {
  background: none; border: none; padding: 0;
  font: inherit; font-size: 12px; font-weight: var(--weight-medium);
  cursor: pointer; color: var(--primary);
}
.cs-card__open, .cs-card__save, .sl-card__remove, .sl-link, .pp-signout, .pp-danger__btn {
  display: inline-flex; align-items: center; min-height: 24px;
}
.cs-card__save {
  color: var(--text-secondary);
}
.cs-card__save:hover, .cs-card__save.is-saved {
  color: var(--primary);
}
@media (min-width: 760px) {
  .cs-card {
    grid-template-columns: 96px 1fr; gap: var(--space-md); padding: 14px;
  }
  .cs-card__photo {
    width: 96px; height: 96px; border-radius: var(--radius-md);
  }
  .cs-card__name {
    font-size: 15px;
  }
  .cs-card__meta {
    font-size: 13px;
  }
  .cs-card__rating {
    font-size: 13px;
  }
  .cs-card__actions {
    font-size: 13px; margin-top: 6px;
  }
}
.cs-typing {
  display: inline-flex; gap: var(--space-xs); align-items: center; padding: var(--space-xs) 0;
}
.cs-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #b8b1a4; animation: cs-typing 1.2s ease-in-out infinite;
}
.cs-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.cs-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes cs-typing {
  0%, 80%, 100% {
    opacity: 0.25; transform: translateY(0);
  }
  40% {
    opacity: 1;    transform: translateY(-2px);
  }
}
.cs-bubble--clara:not(.is-thinking) .cs-typing {
  display: none;
}
.cs-bubble--clara.is-thinking .clara-text {
  display: none;
}
.cs-bubble--clara:not(.is-thinking) .clara-text {
  animation: cs-text-fade 0.18s ease both;
}
@keyframes cs-text-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.cs-bubble--clara.is-thinking {
  opacity: 0;
  animation: cs-thinking-reveal 0.2s 0.22s forwards;
}
@keyframes cs-thinking-reveal {
  to {
    opacity: 1;
  }
}
.cs-input {
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(253, 251, 248,0) 0%, rgba(253, 251, 248,0.92) 30%, rgba(253, 251, 248,1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.cs-input__wrap {
  display: flex; align-items: flex-end; gap: var(--space-sm);
  max-width: 720px; margin: 0 auto;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(28, 28, 28, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cs-input__wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(45, 139, 122, 0.12);
}
.cs-input__legal {
  max-width: 720px;
  margin: var(--space-sm) auto 0;
  text-align: center;
}
.chat-shell.is-empty .cs-input {
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.chat-shell.is-empty .cs-input__legal {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  margin: 0;
}
.cs-mic, .cs-send {
  position: relative;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.cs-mic::after, .cs-send::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}
.cs-mic:hover {
  background: var(--page-bg); color: var(--text);
}
body:not(.has-speech-recognition) .cs-mic {
  display: none;
}
.cs-mic.is-listening {
  background: #fde2e2; color: var(--color-danger-strong);
  box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5);
  animation: cs-mic-pulse 1.4s ease-in-out infinite;
}
@keyframes cs-mic-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(192, 57, 43, 0);
  }
}
.cs-send {
  background: var(--primary);
  color: #fff;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}
.cs-send:hover:not(:disabled) {
  background: var(--primary-light);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(45, 139, 122, 0.25);
}
.cs-send:active:not(:disabled) {
  transform: scale(0.95);
}
.cs-send:disabled {
  background: var(--border);
  color: var(--text-faint);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.cs-textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  resize: none;
  line-height: 1.4;
  padding: 7px 0;
  max-height: 140px;
}
.cs-textarea::placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-drawer {
  position: fixed; inset: 0; z-index: var(--z-sticky);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.cs-drawer.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cs-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity 0.22s ease;
}
.cs-drawer.hidden .cs-drawer__backdrop {
  opacity: 0;
}
.cs-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(320px, 84vw);
  background: var(--page-bg);
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
  transform: translateX(0);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.cs-drawer.hidden .cs-drawer__panel {
  transform: translateX(-100%);
}
.cs-drawer__head {
  padding: 20px 20px 12px;
}
.cs-drawer__hello {
  margin: 0; font-size: 17px; font-weight: var(--weight-semibold); color: var(--text);
}
.cs-drawer__hello a {
  color: var(--primary); text-decoration: none;
}
.cs-drawer__logo {
  display: inline-flex; align-items: center;
}
.cs-drawer__logo img {
  display: block; width: 38px; height: 38px;
}
.cs-drawer__nav {
  padding: var(--space-sm);
}
.cs-drawer__link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-divider, var(--border-light, rgba(var(--ink, 0), 0.06)));
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-medium);
  transition: color 0.15s ease, opacity 0.15s ease;
}
.cs-drawer__link:last-child {
  border-bottom: none;
}
.cs-drawer__link:hover {
  background: transparent;
  opacity: 0.7;
}
.cs-drawer__link.is-active {
  background: transparent;
  color: var(--primary);
}
.cs-drawer__link svg {
  flex-shrink: 0; color: var(--text-secondary);
}
.cs-drawer__link.is-active svg {
  color: var(--primary);
}
.cs-drawer__count {
  margin-left: auto;
  padding: 1px var(--space-sm);
  background: var(--primary); color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: var(--weight-semibold);
}
.cs-drawer__divider {
  margin: 12px 20px 0;
  height: 1px;
  background: var(--page-bg);
}
.cs-drawer__biz {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.cs-drawer__biz:hover {
  color: var(--primary);
}
.cs-drawer__biz svg {
  color: var(--text-secondary); flex-shrink: 0;
}
.cs-drawer__biz:hover svg {
  color: var(--primary);
}
.cs-drawer__foot {
  padding: 12px 20px 20px; margin-top: auto;
}
.cs-drawer__bottom-links {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.cs-drawer__bottom-link {
  display: flex;
  align-items: center;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider, var(--border-light, rgba(var(--ink, 0), 0.06)));
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.cs-drawer__bottom-link:last-child {
  border-bottom: none;
}
.cs-drawer__bottom-link:hover {
  background: transparent;
  opacity: 0.7;
}
.cs-drawer__bottom-signout {
  color: var(--color-danger-strong, #dc2626);
}
body:has(.shortlist-page) .site-footer {
  display: none !important;
}
.shortlist-page {
  max-width: 720px;
  margin: var(--space-3xl) auto 96px;
  padding: 0 var(--space-lg);
  font-family: var(--font-body);
  color: var(--text);
}
.sl-head {
  margin-bottom: 40px;
}
.sl-title, .pp-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}
.sl-empty {
  padding: var(--space-lg) 0;
}
.sl-empty__lead {
  font-size: 17px; font-weight: var(--weight-medium); margin: 0 0 10px; color: var(--text);
}
.sl-empty__detail {
  font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 var(--space-lg); max-width: 480px;
}
.sl-empty__cta {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.sl-empty__cta:hover {
  text-decoration: underline;
}
.sl-grid {
  display: flex; flex-direction: column; gap: 20px;
}
.sl-card {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}
.sl-card__swipe-wrapper {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.sl-card.is-swiping-active .sl-card__swipe-wrapper {
  transition: none !important;
}
.sl-card__swipe-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100px;
  background: #dc2626;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 1;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  pointer-events: none;
}
.sl-card.is-removing {
  opacity: 0; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s;
}
.sl-card:hover {
  border-color: #d9d3c8;
}
.sl-card__photo {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  background: var(--page-bg) center/cover no-repeat;
  background-image: url('/images/clinic-placeholder.svg');
}
.sl-card__body {
  display: flex; flex-direction: column; min-width: 0;
}
.sl-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}
.sl-card__name {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  cursor: pointer;
}
.sl-card__name:hover {
  color: var(--primary);
}
.sl-card__remove {
  background: none;
  border: none;
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: var(--weight-medium);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.sl-card__remove:hover {
  color: var(--color-danger-strong); background: #fdf5f4;
}
.sl-card__remove-x {
  display: block; flex-shrink: 0;
}
.sl-card__meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0 0;
}
.sl-card__rating {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 6px 0 0;
}
.sl-card__rating .stars {
  color: var(--warning); margin-right: var(--space-xs); letter-spacing: 1px;
}
.sl-card__saved {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: auto;
  padding-top: 10px;
}
.sl-note {
  margin-top: 12px;
  padding: var(--space-sm) 10px;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: var(--page-bg);
  transition: border-color 0.15s, background 0.15s;
}
.sl-note:hover {
  border-color: var(--border);
}
.sl-note:focus-within {
  border-color: var(--primary); background: #fff; border-style: solid;
}
.sl-note__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.sl-note__input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  resize: none;
  outline: none;
  padding: 0;
  line-height: 1.45;
  min-height: 18px;
  box-sizing: border-box;
}
.sl-note__input::placeholder {
  font-style: italic;
}
.sl-note__hint {
  font-size: 11px; color: var(--text-faint); margin-top: var(--space-xs); min-height: 14px;
}
.sl-note__hint.is-saved {
  color: var(--primary);
}
.sl-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.sl-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.sl-link:hover {
  color: var(--primary);
}
@media (max-width: 560px) {
  .sl-card__swipe-wrapper {
    grid-template-columns: 88px 1fr; gap: 12px; padding: 12px;
  }
  .sl-card__photo {
    width: 88px; height: 88px;
  }
}
body:has(.profile-page) .site-footer {
  display: none !important;
}
body:has(#myReviewsPage) .site-footer {
  display: none !important;
}
.profile-page {
  max-width: 560px;
  margin: var(--space-3xl) auto 96px;
  padding: 0 var(--space-lg);
  font-family: var(--font-body);
  color: var(--text);
}
.pp-head {
  margin-bottom: 56px;
}
.pp-fields {
  display: flex; flex-direction: column; gap: 28px; margin-bottom: 40px;
}
.pp-field {
  display: flex; flex-direction: column; gap: 6px;
}
.pp-field__label {
  font-size: 12px; color: var(--text-secondary); font-weight: var(--weight-semibold); letter-spacing: 0.02em;
}
.pp-field__hint {
  font-size: 12px; color: var(--text-faint);
}
.pp-input {
  font-family: inherit;
  font-size: 16px;
  padding: var(--space-sm) 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  outline: none;
  color: var(--text);
  transition: border-color 0.15s;
  border-radius: 0;
}
.email-pending {
  margin-top: 6px;
  padding: var(--space-sm) 12px;
  border-radius: 8px;
  background: #fff5e6;
  border: 1px solid #f5d7a0;
  color: #7a4a00;
  font-size: 12px;
  line-height: 1.5;
}
.email-pending.hidden {
  display: none;
}
.pp-toggles {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.pp-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.pp-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary);
  font-size: 14px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  margin-bottom: var(--space-2xl);
}
.pp-link:hover {
  text-decoration: underline;
}
.pp-link__new {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-sm);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
}
.pp-signout-row {
  text-align: right; margin-bottom: 160px;
}
.pp-signout {
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.pp-signout:hover {
  color: var(--text);
}
.pp-danger {
  text-align: left; max-width: 360px;
}
.pp-danger__btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}
.pp-danger__btn:hover {
  color: var(--color-danger-strong);
}
.pp-danger__note {
  margin: var(--space-xs) 0 0;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.55;
}
.roi-page {
  max-width: 1000px; margin: 0 auto;
}
.roi-page > div {
  margin-bottom: var(--space-3xl);
}
.roi-page > div:last-child {
  margin-bottom: 0;
}
.calculator-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.calculator-inputs, .calculator-results { min-width: 0; }
.calc-input-group {
  margin-bottom: var(--space-lg);
}
.calc-input-group:last-child {
  margin-bottom: 0;
}
.calc-input-group > label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.calc-input-wrapper {
  display: flex; align-items: center; gap: var(--space-md);
}
.calc-slider {
  flex: 1;
  min-width: 0;
  height: 6px;
  accent-color: var(--primary);
  cursor: pointer;
}
.calc-value {
  min-width: 56px;
  text-align: right;
  font-weight: var(--weight-semibold);
  font-size: 1.0625rem;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.plan-selector {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
}
.plan-option {
  flex: 1 1 auto;
  padding: 10px var(--space-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: normal;
}
.plan-option:hover {
  border-color: var(--primary); color: var(--primary);
}
.plan-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
}
.plan-limit-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  line-height: 1.4;
}
.calculator-results {
  background: var(--primary-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.result-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
@media (max-width: 540px) {
  .result-comparison { grid-template-columns: 1fr; gap: var(--space-sm); }
  .result-comparison .result-vs { transform: rotate(90deg); }
}
.result-box {
  min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); text-align: center;
}
.result-box.clanics .result-amount {
  color: var(--primary);
}
.result-label, .savings-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.result-amount {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: var(--weight-semibold);
  color: var(--text);
}
.result-detail {
  font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4;
}
.result-vs {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.savings-highlight {
  text-align: center;
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.savings-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: var(--weight-semibold);
  color: var(--primary);
  line-height: 1.1;
}
.savings-percent {
  font-size: var(--text-sm); color: var(--success); font-weight: var(--weight-medium);
}
.savings-annualized {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}
.scenario-annualized {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}
.metric-card:hover {
  border-color: var(--border); box-shadow: var(--shadow-lg);
}
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  align-items: start;
}
.scenario-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}
.scenario-card:hover {
  box-shadow: var(--shadow-md);
}
.scenario-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(45, 139, 122, 0.16);
}
.scenario-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.scenario-header {
  text-align: center; margin-bottom: var(--space-lg);
}
.scenario-type {
  display: block; font-size: 1.125rem; font-weight: var(--weight-semibold); color: var(--text);
}
.scenario-enquiries {
  display: block; font-size: var(--text-sm); color: var(--text-secondary); margin-top: 2px;
}
.scenario-comparison {
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.scenario-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-sm); color: var(--text-secondary);
}
.scenario-row .negative {
  color: var(--error); font-weight: var(--weight-semibold);
}
.scenario-row .positive {
  color: var(--primary); font-weight: var(--weight-semibold);
}
.scenario-savings {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--space-sm); padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-weight: var(--weight-semibold); color: var(--text);
}
.scenario-savings span:last-child {
  color: var(--primary); font-size: 1.125rem;
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}
.tip-card:hover {
  border-color: var(--border); box-shadow: var(--shadow-md);
}
.tip-number {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
}
.tip-title {
  font-size: 1.0625rem; font-weight: var(--weight-semibold); color: var(--text); margin-bottom: var(--space-sm);
}
.tip-desc {
  font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6;
}
.success-cta {
  text-align: center;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--primary-subtle) 0%, rgba(200, 230, 76, 0.10) 100%);
  border-radius: var(--radius-xl);
}
@media (min-width: 840px) {
  .calculator-card {
    grid-template-columns: 1fr 1fr; align-items: start; padding: var(--space-2xl); gap: var(--space-2xl);
  }
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.modal-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: 0 var(--space-lg) var(--space-lg);
  margin-top: var(--space-md);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.modal-disclaimer svg {
  color: var(--text-muted);
  margin-top: 1px;
  flex-shrink: 0;
}
.modal-verified-badge.paused {
  bottom: auto;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.95);
}
.modal-verified-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}
.modal-hours-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #f5f3f0;
  color: #5A6B7C;
  font-size: 0.8125rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s;
}
.modal-hours-toggle-btn:hover {
  background: #e8e6e2;
  color: var(--text);
}
.modal-hours-wrap {
  position: relative;
  display: inline-flex;
}
.market-intel-section-wrap {
  max-width: 820px;
  margin: 80px auto 80px;
  padding: 0 var(--space-md);
  text-align: center;
}
.market-intel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}
@media (min-width: 769px) {
  .market-intel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.intel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 32px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.intel-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}
.intel-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.intel-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.intel-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #111C15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.intel-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
#regShell {
  padding-top: var(--mobile-header);
}
body:has(#regShell) .sidebar { display: none !important; }
.reg-login-hint {
  position: fixed;
  top: var(--mobile-header);
  left: 0;
  right: 0;
  z-index: 60;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: var(--space-sm) 20px 0;
  max-height: 48px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease;
}
.reg-login-hint a {
  color: var(--primary);
  font-weight: var(--weight-semibold);
  display: inline-block;
  padding: 14px 10px;
  margin: -14px -6px;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(45, 139, 122, 0.15);
  touch-action: manipulation; 
}
body:has(#regShell .cs-bubble--user) .reg-login-hint {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  pointer-events: none;
}
@media (min-width: 769px) {
  #regShell { left: 0; }
}
.reg-candidates {
  display: flex; flex-direction: column; gap: var(--space-sm);
  margin-top: 10px;
}
.reg-candidate {
  display: block; text-align: left;
  background: #fff;
  border: 1px solid #ece8e1;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.reg-candidate:hover { border-color: var(--primary); transform: translateY(-1px); }
.reg-candidate__name { font-weight: var(--weight-semibold); font-size: 14px; color: var(--text); }
.reg-candidate__addr { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.reg-candidate__none {
  background: transparent; border: 1px dashed #d4d0c8;
  color: #6f6f6a; text-align: center; font-style: italic;
}
.reg-candidate__none:hover { border-color: var(--primary); color: var(--primary); }
.cs-bubble--clara:has(.reg-candidates) { justify-content: center; }
.cs-bubble--clara:has(.reg-candidates) .cs-bubble__body {
  max-width: 440px; width: 100%;
  background: transparent; padding: 0;
}
.reg-live__title {
  font-family: 'Playfair Display', serif;
  font-weight: var(--weight-medium); font-size: 24px;
  margin: 0 0 6px; color: var(--text);
}
.reg-live__sub { margin: 0 0 18px; color: var(--text-secondary); font-size: 14px; }
.reg-live__hint { margin: 14px 0 0; font-size: 12px; color: #6f6f6a; transition: color 0.15s ease; }
.reg-live__hint.is-error { color: #d93838; }
.reg-live__reassure { margin: 8px 0 0; font-size: 11.5px; color: var(--text-secondary); line-height: 1.5; }
.reg-live__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.reg-live__btn {
  padding: 11px 20px;
  border-radius: 12px;
  font: inherit; font-size: 14px; font-weight: var(--weight-semibold);
  cursor: pointer; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  border: 1.5px solid transparent;
}
.reg-live__btn--primary { background: var(--text); color: #fff; }
.reg-live__btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,43,60,0.20); }
.reg-live__btn--wide { padding: 13px 40px; font-size: 15px; }
.reg-live__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.reg-live__btn:disabled:hover { transform: none; box-shadow: none; background: var(--text); }
.reg-build {
  width: 100%; max-width: 560px;
  margin: 12px auto var(--space-lg);
  padding: var(--space-lg);
  background: #fff; border: 1px solid #ece8e1; border-radius: 18px;
}
.reg-build__head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: var(--weight-semibold); color: var(--text-secondary);
  margin-bottom: 16px;
}
.reg-build__spin {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid #e6e2db; border-top-color: var(--primary); border-radius: 50%;
  animation: reg-spin 0.7s linear infinite;
}
@keyframes reg-spin { to { transform: rotate(360deg); } }
.reg-build__livehead { text-align: center; margin-bottom: 16px; opacity: 0; transition: opacity 0.3s ease; }
.reg-build__livehead.is-in { opacity: 1; }
.reg-build__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
  border: 1px solid #ece8e1;
  border-radius: 10px;
}
.reg-build__tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f0ea;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0;
}
.reg-build__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.reg-build__tile:hover img {
  transform: scale(1.05);
}
.reg-build__tile.is-selected {
  border-color: var(--primary);
}
.reg-build__tile-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid #d4d0c8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 2;
}
.reg-build__tile.is-selected .reg-build__tile-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.reg-build__tile-check svg {
  width: 10px;
  height: 10px;
  stroke-width: 3.5;
}
.reg-build__tile:not(.is-selected) img {
  opacity: 0.45;
}
.reg-build__tile.is-dragging {
  opacity: 0.25;
}
.reg-build__tile:first-of-type::after {
  content: 'Cover';
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 8.5px;
  font-weight: var(--weight-semibold);
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}
.reg-build__tile-grab {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d4d0c8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  z-index: 2;
  cursor: grab;
}
.reg-build__tile.is-dragging .reg-build__tile-grab {
  cursor: grabbing;
}
.reg-build__gridcap {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: left;
}
.reg-build__rows { display: flex; flex-direction: column; gap: 11px; text-align: left; }
.reg-build__row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: var(--text);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.reg-build__row.is-in { opacity: 1; transform: none; }
.reg-hours {
  border: 1px solid #ece8e1; border-radius: 10px;
  padding: 10px 14px 6px; margin-bottom: 4px; text-align: left;
}
.reg-hours__title {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted, #8a8a85); margin-bottom: 6px;
}
.reg-hours__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 3px 0; font-size: 13.5px; color: var(--text);
}
.reg-hours__row.is-today .reg-hours__day,
.reg-hours__row.is-today .reg-hours__time { font-weight: 700; color: var(--primary); }
.reg-hours__day { font-weight: 600; width: 38px; flex-shrink: 0; }
.reg-hours__time { font-variant-numeric: tabular-nums; text-align: right; }
.reg-hours__closed { color: var(--muted, #8a8a85); }
.reg-hours__lunch { color: var(--muted, #8a8a85); font-size: 12px; }
.reg-build__tick { color: var(--primary); flex-shrink: 0; }
.reg-build__rowtext { font-weight: var(--weight-medium); }
.reg-build__done { text-align: center; margin-top: 18px; opacity: 0; transition: opacity 0.3s ease; }
.reg-build__done.is-in { opacity: 1; }
.reg-build__pick { margin-top: 18px; text-align: left; opacity: 0; transition: opacity 0.3s ease; }
.reg-build__pick.is-in { opacity: 1; }
.reg-pick__head { font-size: 14px; font-weight: var(--weight-semibold); color: var(--text); margin-bottom: 10px; }
.reg-pick__head span { font-weight: var(--weight-medium); color: var(--text-secondary); font-size: 12.5px; }
.reg-pick__search {
  width: 100%; box-sizing: border-box; margin: 0 0 10px;
  padding: 9px 12px; border: 1.5px solid #e0ddd8; border-radius: 10px;
  font: inherit; font-size: 13.5px; color: var(--text); background: #fff;
}
.reg-pick__search:focus { outline: 0; border-color: var(--primary); }
.reg-pick__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 172px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 2px;
}
.reg-pick[hidden] { display: none; }
.reg-pick {
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 7px 13px; border-radius: 999px;
  background: #fff; color: var(--text);
  border: 1.5px solid #e0ddd8;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.reg-pick:hover { border-color: var(--primary); }
.reg-pick.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.reg-pick.is-on::before { content: '✓ '; }
body.body--b2b .mobile-header {
  display: flex !important;
  z-index: var(--z-raised);
}
.mobile-header__brand-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.mobile-header__icon {
  display: none;
}
.mobile-header__links {
  display: none;
}
@media (max-width: 768px) {
  body.body--b2b .mobile-header .mobile-header__icon {
    display: none;
  }
}
@media (min-width: 769px) {
  body.body--b2b {
    --mobile-header: 86px;
  }
  body.body--b2b .mobile-header .mobile-header__icon {
    left: 17px;
  }
  body.body--b2b .mobile-header__links {
    align-items: center;
    gap: 4px;
  }
  body.body--b2b .mobile-header-spacer {
    display: none;
  }
  .mobile-header__links .mobile-header__links-login {
    color: var(--primary);
    font-weight: var(--weight-semibold);
  }
  .mobile-header__links .mobile-header__links-mi {
    display: none;
  }
  @media (min-width: 1300px) {
    .mobile-header__links .mobile-header__links-mi {
      display: inline-flex;
    }
  }
  body:has(#regShell) .reg-login-hint {
    display: none;
  }
  @media (max-width: 1023px) {
    body.body--b2b .mobile-header__brand {
      justify-content: flex-start;
      padding-left: 56px;
    }
  }
}
@media (min-width: 769px) {
  body.body--b2b .sidebar {
    display: none !important;
  }
  body.body--b2b .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: var(--mobile-header);
  }
}
.notification-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text);
  animation: slideInDown 0.3s ease-out;
}
.notification-banner__content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.notification-banner__text {
  font-weight: var(--weight-medium, 500);
  color: var(--text);
}
.notification-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--primary) !important;
  color: var(--text-inverse) !important;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: opacity var(--transition);
}
.notification-banner__btn:hover {
  opacity: 0.9;
}
.notification-banner__icon {
  font-size: 1.25rem;
}
.notification-banner__close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 var(--space-xs);
  transition: color var(--transition);
}
.notification-banner__close:hover {
  color: var(--text);
}
.notification-banner.hidden {
  display: none !important;
}
@media (max-width: 768px) {
  .site-footer {
    display: none !important;
  }
  .messages-layout {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    height: calc(100dvh - 120px) !important;
  }
  .messages-sidebar {
    width: 100% !important;
    display: flex !important;
    border-right: none !important;
  }
  .conversation-view {
    display: none !important;
  }
  .messages-sidebar.conv-open {
    display: none !important;
  }
  .messages-sidebar.conv-open + .conversation-view {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: var(--visual-viewport-height, 100dvh) !important;
    z-index: 1000 !important;
    background: var(--surface) !important;
    width: 100% !important;
  }
  .messages-sidebar.conv-open + .conversation-view .conversation-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1002 !important;
    flex: 0 0 auto !important;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: var(--space-md) !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
  }
  .messages-sidebar.conv-open + .conversation-view .conversation-messages {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding-bottom: 80px !important;
  }
  .messages-sidebar.conv-open + .conversation-view .conversation-input-area {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--border-light) !important;
    padding: var(--space-sm) var(--space-md) !important;
  }
  .confirm-modal-overlay, .edit-review-modal-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .confirm-modal-panel, .edit-review-modal-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    margin-bottom: 0 !important;
    margin-top: auto !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    overflow-y: auto !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12) !important;
    animation: slideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1) !important;
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom)) !important;
  }
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-container {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    margin-bottom: 0 !important;
    margin-top: auto !important;
    transform: translateY(0);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .modal-overlay.hidden .modal-container {
    transform: translateY(100%) !important;
  }
  .modal-content {
    max-height: none !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
  #modalActions {
    border-radius: 0 !important;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    background: #fff !important;
    border-top: 1px solid #F2EFEA !important;
  }
  .mark-all-read-btn,
  .back-to-list,
  .conv-action-btn,
  .msg-filter-btn,
  .dropdown-item,
  .authm__btn,
  .authm__x,
  .modal-close {
    min-height: 48px !important;
    min-width: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mark-all-read-btn, .msg-filter-btn {
    padding: 0 var(--space-md) !important;
    min-width: auto !important;
  }
  .dropdown-item {
    min-height: 48px !important;
    padding: var(--space-sm) var(--space-md) !important;
    width: 100% !important;
  }
  .message-thread, .sl-card, .clinic-card, .cs-card {
    padding-top: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
  }
  .message-thread {
    min-height: 72px !important;
  }
  input[type="text"], input[type="search"], input[type="email"], input[type="tel"], textarea, select, .btn, button {
    min-height: 48px !important;
  }
  button:active, a:active, .message-thread:active, .sl-card:active, .clinic-card:active, .cs-card:active, .msg-filter-btn:active, .dropdown-item:active {
    background-color: rgba(0, 0, 0, 0.05) !important;
    opacity: 0.8;
  }
}
.cs-reply-chips { margin-top: 10px; }
.cs-bubble__body { overflow-wrap: anywhere; }
.chat-shell[dir="rtl"] .cs-card__arrow { display: inline-block; transform: scaleX(-1); }
.chat-shell[dir="rtl"] .cs-card, .chat-shell[dir="rtl"] .clara-text, .chat-shell[dir="rtl"] .cs-textarea { text-align: start; }
.cs-more { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-more__count { font-size: 13px; color: var(--text-muted, #6b7280); border-radius: 6px; }
.cs-more__hint { margin: 6px 0 0; font-size: 13px; color: var(--text-muted, #6b7280); }
.cs-card.is-new, .cs-bubble { scroll-margin-top: 16px; }
#chatMessages[data-hold] { overflow-anchor: none; }
.cs-card.is-new { animation: cs-card-in .32s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.cs-more__count.is-bumped { animation: cs-count-bump .9s ease; }
@keyframes cs-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cs-count-bump { 0%, 40% { color: var(--primary, #26786A); font-weight: 600; } 100% { font-weight: 400; } }
.cs-reply-chips__row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
@keyframes appleSpringPill {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cs-reply-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  text-align: left;
  border: 1px solid rgba(45, 139, 122, 0.35);
  background: rgba(45, 139, 122, 0.07);
  color: #26786A;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  animation: appleSpringPill 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-reply-chip:nth-child(1) { animation-delay: 0.02s; }
.cs-reply-chip:nth-child(2) { animation-delay: 0.07s; }
.cs-reply-chip:nth-child(3) { animation-delay: 0.12s; }
.cs-reply-chip:nth-child(4) { animation-delay: 0.17s; }
.cs-reply-chip:hover:not(:disabled) {
  background: rgba(45, 139, 122, 0.14);
  border-color: rgba(45, 139, 122, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(45, 139, 122, 0.12);
}
.cs-reply-chip:active:not(:disabled) {
  transform: scale(0.95);
  background: rgba(45, 139, 122, 0.22);
}
.cs-reply-chip:focus-visible { outline: 2px solid #26786A; outline-offset: 2px; }
.cs-reply-chip:disabled { opacity: 0.45; cursor: default; }
@media (max-width: 480px), (pointer: coarse) {
  .cs-reply-chip { min-height: 40px; padding: 7px 15px; }
}
.cs-reply-chip__label {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .app-container {
    min-height: 100dvh !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  .main-content {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  .contact-page {
    background: var(--page-bg) !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(100dvh - var(--mobile-header, 56px)) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #contactPage.page-section, #messagesPage.page-section {
    padding: 0 !important;
  }
  .messages-layout {
    border: none !important;
    border-radius: 0 !important;
    flex: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--page-bg) !important;
  }
  .messages-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-right: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--page-bg) !important;
  }
  .messages-sidebar.conv-open + .conversation-view {
    padding: 0 !important;
    left: 50% !important;
    transform: translate3d(-50%, 0, 0) !important;
    right: auto !important;
    top: 0 !important;
    height: var(--visual-viewport-height, 100dvh) !important;
    background: var(--surface) !important;
  }
  .chat-shell.is-empty .cs-input {
    transform: none !important;
    will-change: auto !important;
  }
  .conversation-avatar {
    width: 40px !important;
    height: 40px !important;
  }
  .typing-avatar {
    width: 28px !important;
    height: 28px !important;
  }
  .cs-card.has-badge {
    padding-top: 38px !important;
  }
  .cs-card.has-badge .clinic-badge.spotlight {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
    margin: 0 !important;
  }
  #chatShell, #regShell {
    padding-top: 56px !important;
  }
  .mark-all-read-btn, .msg-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    height: 36px !important;
    min-height: 36px !important;
    min-width: auto !important;
    line-height: normal !important;
    box-sizing: border-box !important;
  }
  .contact-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  .contact-form {
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    margin-bottom: 40px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .contact-form-success {
    background: transparent !important;
    border: none !important;
    padding: 24px 0 !important;
    box-shadow: none !important;
  }
  .shortlist-page {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .sl-card {
    border: 1px solid var(--border-light, #e0ddd8) !important;
    background: var(--surface, #ffffff) !important;
    border-radius: var(--radius-xl, 16px) !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
  }
  .sl-card__swipe-wrapper {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: var(--radius-xl, 16px) !important;
    background: var(--surface, #ffffff) !important;
    width: 100% !important;
    height: 100% !important;
  }
  .sl-card__photo {
    width: 100% !important;
    height: 200px !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }
  .sl-card__body {
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .sl-card__name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--text, #1c1c1e) !important;
  }
  .sl-card__meta {
    font-size: 14px !important;
    color: var(--text-secondary, #8e8e93) !important;
    margin: 0 !important;
  }
  .sl-card__rating {
    font-size: 14px !important;
    margin: 4px 0 0 0 !important;
  }
  .sl-note {
    margin-top: 12px !important;
    border-radius: var(--radius-md, 8px) !important;
    border: 1px solid var(--border-light, #e0ddd8) !important;
    background: var(--bg-warm, #faf9f6) !important;
  }
  .sl-card__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
    width: 100% !important;
  }
  .sl-card__actions button, .sl-card__actions .sl-link {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-lg, 12px) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .sl-card__actions button[data-act="enquire"] {
    background: var(--primary, #26786A) !important;
    color: var(--text-inverse, #ffffff) !important;
    border: none !important;
  }
  .sl-card__actions button[data-act="enquire"]:active {
    background: var(--primary-dark, #206357) !important;
  }
  .sl-card__actions .sl-link {
    background: var(--bg-warm, #faf9f6) !important;
    color: var(--text, #1c1c1e) !important;
    border: 1px solid var(--border-light, #e0ddd8) !important;
    text-decoration: none !important;
  }
  .sl-card__actions .sl-link:active {
    background: rgba(0, 0, 0, 0.05) !important;
  }
  .sl-card__saved {
    margin: 4px 0 0 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    font-size: 12px !important;
    color: var(--text-faint, #b5ad9f) !important;
  }
  .sl-card__swipe-bg {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    bottom: 1px !important;
    width: 100px !important;
    background: #dc2626 !important;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0 !important;
  }
  .shortlist-page .sl-head, .profile-page .pp-head, #messagesPage .page-header-row > div:first-child, #myReviewsPage .page-header, .inner-page-header .section-label {
    display: none !important;
  }
  #messagesPage .mark-all-read-btn {
    margin-top: 0 !important;
    align-self: flex-end !important;
  }
  .contact-form .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  .contact-form .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  .contact-form .form-group label {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    font-weight: var(--weight-semibold) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
  }
  .contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
    font-family: inherit !important;
    font-size: 16px !important;
    padding: var(--space-sm) 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    background: transparent !important;
    color: var(--text) !important;
    transition: border-color 0.15s !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  .contact-form .captcha-group {
    gap: 12px !important;
  }
  .contact-form .captcha-container {
    margin-top: 8px !important;
    gap: var(--space-md) !important;
  }
  .contact-form .captcha-container input {
    border-bottom: 1px solid var(--border) !important;
    text-align: center !important;
    max-width: 100px !important;
  }
  .contact-form .contact-locked-input {
    background: transparent !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
  }
  .messages-sidebar.conv-open + .conversation-view .conversation-input-area {
    padding: 8px var(--space-md) !important;
  }
  html:has(#messagesPage), body:has(#messagesPage) {
    overflow: hidden !important;
    height: 100dvh !important;
    position: fixed !important;
    width: 100% !important;
  }
  #messagesPage {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100dvh - var(--mobile-header, 56px)) !important;
    overflow: hidden !important;
    background: var(--page-bg) !important;
  }
  #messagesPage .page-header {
    flex-shrink: 0 !important;
    margin-bottom: var(--space-md) !important;
    padding: var(--space-md) var(--space-lg) 0 !important;
    background: var(--page-bg) !important;
  }
  .messages-list {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: var(--page-bg) !important;
    padding-bottom: var(--space-xl) !important;
  }
  .messages-search {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-sizing: border-box !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .messages-filter, .message-thread {
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: var(--page-bg) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .message-thread.active {
    background: var(--primary-subtle) !important;
  }
  .message-thread.unread {
    background: rgba(45, 139, 122, 0.04) !important;
  }
  .messages-sidebar.conv-open + .conversation-view .conversation-header {
    height: 56px !important;
    padding: 0 var(--space-md) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border-light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    z-index: 1000 !important;
    gap: var(--space-sm) !important;
  }
  .back-to-list, .conv-action-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: background 0.2s ease !important;
  }
  .back-to-list {
    margin-left: -20px !important; 
  }
  .conv-action-btn {
    margin-right: -13px !important; 
  }
  .back-to-list:active, .conv-action-btn:active {
    background: transparent !important;
    opacity: 0.7 !important;
  }
  .conversation-clinic-info {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-sm) !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin-left: -12px !important;
  }
  .conversation-clinic-details {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  #convClinicName {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }
  .conversation-status {
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    margin-top: 1px !important;
    line-height: 1.2 !important;
  }
  .conversation-status .status-dot {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-top: -2px !important;
    margin-right: 4px !important;
  }
  .conversation-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-right: -8px !important;
  }
  .cs-input__wrap {
    background: #fff !important;
  }
  html.html--chat-page, body.body--chat-page {
    overflow: hidden !important;
    height: 100dvh !important;
    position: fixed !important;
    width: 100% !important;
  }
  body:has(#regShell.keyboard-open) .mobile-header {
    display: none !important;
  }
  .reg-candidate {
    animation: reg-candidate-fade-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes reg-candidate-fade-up {
    from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    }
    to {
    opacity: 1;
    transform: translateY(0) scale(1);
    }
  }
}
@media screen and (max-width: 375px) {
  .inner-page-header h1, .pp-name, .sl-title {
    font-size: clamp(20px, 6vw, 24px) !important;
    line-height: 1.25 !important;
  }
}
