/* ============================================================
   HealthCluster Brand Theme — Navbar
   Purple design system matching the HealthCluster product UI
   Loaded after style.css so it overrides the legacy theme.
   ============================================================ */

:root {
  --hc-primary: #b21ac9;         /* magenta / fuchsia */
  --hc-primary-dark: #9333ea;    /* violet */
  --hc-primary-deep: #7e22ce;
  --hc-primary-soft: #faf5ff;    /* lightest purple tint */
  --hc-primary-tint: #f3e8ff;
  --hc-border: #f0e6f7;
  --hc-text: #1f2937;
  --hc-text-muted: #6b7280;
  --hc-gradient: linear-gradient(135deg, #b21ac9 0%, #9333ea 100%);
  --hc-shadow: 0 1px 2px rgba(17, 12, 34, 0.04), 0 4px 16px rgba(146, 51, 234, 0.08);
  --hc-radius: 12px;
  --hc-font: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Header / navbar shell ---------- */

.hc-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.hc-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow);
  padding: 10px 28px;
  font-family: var(--hc-font);
}

/* Desktop: logo left | menus centered | language/profile right
   High specificity so late Bootstrap reloads (e.g. index boot_accordian.css) cannot reset it */
@media (min-width: 768px) {
  nav.navbar.navbar-expand-md.hc-navbar > .container-fluid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "brand nav actions";
    align-items: center;
    flex-wrap: nowrap !important;
    width: 100%;
  }

  nav.navbar.navbar-expand-md.hc-navbar > .container-fluid > .navbar-toggler {
    display: none !important;
  }

  nav.navbar.navbar-expand-md.hc-navbar > .container-fluid > .navbar-brand {
    grid-area: brand;
    grid-row: 1;
    justify-self: start;
    width: auto !important;
    max-width: max-content;
  }

  nav.navbar.navbar-expand-md.hc-navbar > .container-fluid > .navbar-collapse {
    grid-area: nav;
    grid-row: 1;
    justify-self: center;
    display: flex !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    flex-shrink: 1 !important;
    width: auto !important;
    max-width: 100%;
  }

  nav.navbar.navbar-expand-md.hc-navbar > .container-fluid > .hc-actions {
    grid-area: actions;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    width: auto !important;
    max-width: max-content;
  }

  .hc-nav {
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }
}

/* ---------- Brand ---------- */

.hc-brand {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none !important;
}

.hc-brand .hc-brand-logo {
  width: 190px;
  height: 48px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  margin: 0 30px 0 0;
}

/* ---------- Nav links ---------- */

.hc-nav {
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin: 0;
}

.hc-nav .nav-item {
  margin: 0;
}

.hc-nav .nav-link {
  color: var(--hc-text) !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 16px !important;
  border-radius: 10px;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}

.hc-nav .nav-link .navtext-small {
  display: block;
  font-size: 11px;
  font-weight: 400 !important;
  color: var(--hc-text-muted);
  margin-top: 2px;
  text-transform: none;
}

.hc-nav .nav-link:hover,
.hc-nav .nav-link:focus,
.hc-nav .nav-link.active {
  background: var(--hc-primary-soft);
  color: var(--hc-primary) !important;
}

.hc-nav .nav-link:hover .navtext-small,
.hc-nav .nav-link.active .navtext-small {
  color: var(--hc-primary-dark);
}

/* ---------- Right-side actions ---------- */

.hc-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: 0;
}

/* Join Call — patient online consult */
.hc-join-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hc-join-call span {
  position: relative;
  z-index: 1;
}

.hc-join-call.is-ready {
  color: #fff !important;
  background: var(--hc-gradient);
  box-shadow: 0 8px 18px rgba(178, 26, 201, 0.28);
}

.hc-join-call.is-ready:hover {
  transform: translateY(-1px);
  color: #fff !important;
}

.hc-join-call.is-waiting {
  display: inline-flex !important;
  color: #7c3aed !important;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
  box-shadow: none;
}

.hc-consult-page {
  font-family: var(--hc-font);
  min-height: 60vh;
  padding: 40px 20px 64px;
  background:
    radial-gradient(ellipse 70% 45% at 100% -10%, rgba(178, 26, 201, 0.12), transparent 55%),
    #f8f4fc;
}

.hc-consult-page-live {
  padding: 0;
  min-height: calc(100vh - 88px);
  background: #0f0a1a;
}

.hc-consult-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 18px;
  box-shadow: var(--hc-shadow);
  padding: 28px 24px;
  text-align: center;
}

.hc-consult-card-wide {
  max-width: 920px;
}

.hc-consult-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--hc-text);
}

.hc-consult-card p {
  margin: 0 0 10px;
  color: var(--hc-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.hc-consult-status {
  display: inline-flex;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #7e22ce;
  font-size: 13px;
  font-weight: 700;
}

/* Meet / WhatsApp style stage */
.hc-meet {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 88px);
  background: #0f0a1a;
  color: #fff;
}

.hc-meet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(15, 10, 26, 0.92);
  z-index: 3;
}

.hc-meet-top strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.hc-meet-top span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.hc-meet .hc-consult-status {
  margin: 0;
  background: rgba(178, 26, 201, 0.18);
  border-color: rgba(233, 213, 255, 0.35);
  color: #f3e8ff;
}

.hc-video-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  background: #1a1028;
  overflow: hidden;
}

.hc-video-tile {
  position: absolute;
  background: #1f1235;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.25s ease, height 0.25s ease, top 0.25s ease, left 0.25s ease, right 0.25s ease, bottom 0.25s ease, box-shadow 0.2s ease;
}

.hc-video-tile.is-main {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border: 0;
  border-radius: 0;
  cursor: default;
}

.hc-video-tile.is-pip {
  top: auto;
  left: auto;
  right: 18px;
  bottom: 18px;
  width: min(28vw, 220px);
  height: min(32vh, 160px);
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hc-video-tile.is-pip:hover {
  box-shadow: 0 12px 32px rgba(178, 26, 201, 0.35);
  border-color: #e9d5ff;
}

.hc-video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1f1235;
}

.hc-video-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  pointer-events: none;
}

.hc-meet-doc-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hc-meet-doc-mini img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(233, 213, 255, 0.55);
  background: #2a1845;
}

.hc-waiting-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}

.hc-waiting-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(233, 213, 255, 0.65);
  box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.18);
  background: #2a1845;
  margin-bottom: 8px;
}

.hc-waiting-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hc-waiting-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  background: #7c3aed;
}

.hc-waiting-profile h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.hc-waiting-spec {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
}

.hc-waiting-text {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.hc-waiting-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c084fc;
  margin-top: 8px;
  box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.7);
  animation: hc-pulse 1.6s ease-out infinite;
}

@keyframes hc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.65); }
  70% { box-shadow: 0 0 0 14px rgba(192, 132, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
}

.hc-video-empty.is-voice-connected .hc-waiting-pulse {
  display: none;
}

.hc-video-empty.is-voice-connected .hc-waiting-text {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.hc-video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
  padding: 20px;
  text-align: center;
}

.hc-voice-avatar {
  background: radial-gradient(circle at center, #7c3aed 0%, #1f1235 70%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hc-meet.is-voice .hc-video-tile.is-pip {
  display: flex;
}

.hc-call-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 14px 16px 20px;
  background: #1a1028;
  z-index: 3;
}

.hc-call-controls .hc-btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

.hc-meet .hc-btn-primary,
.hc-meet .hc-btn-primary span {
  color: #fff !important;
  background: #9333ea !important;
  border: 2px solid #9333ea !important;
  box-shadow: none !important;
  background-image: none !important;
}

.hc-meet .hc-btn-primary::before {
  display: none !important;
}

.hc-meet .hc-btn-primary:hover,
.hc-meet .hc-btn-primary:hover span {
  background: #7e22ce !important;
  border-color: #7e22ce !important;
  color: #fff !important;
}

.hc-meet .hc-btn-outline {
  background: #fff !important;
  border: 2px solid #fff !important;
  color: #1f1235 !important;
}

.hc-meet .hc-btn-outline:hover {
  background: #f3e8ff !important;
  border-color: #e9d5ff !important;
  color: #6b21a8 !important;
}

.hc-meet .hc-btn-danger {
  background: #e11d48 !important;
  border: 2px solid #e11d48 !important;
  color: #fff !important;
}

.hc-meet .hc-btn-danger:hover {
  background: #be123c !important;
  border-color: #be123c !important;
  color: #fff !important;
}

.hc-call-controls .hc-btn.is-active-mode {
  outline: 2px solid rgba(192, 132, 252, 0.95);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.3);
}

.hc-call-controls .hc-btn[disabled],
.hc-call-controls .hc-btn[disabled]:hover {
  opacity: 0.55 !important;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

@media (max-width: 767.98px) {
  .hc-video-tile.is-pip {
    width: 112px;
    height: 150px;
    right: 12px;
    bottom: 12px;
  }

  .hc-meet-top {
    padding: 12px;
  }

  .hc-call-controls {
    gap: 8px;
  }
}

/* Language selector pill */
.hc-lang {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-lang .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--hc-text-muted) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.hc-lang .dropdown-toggle:hover {
  background: var(--hc-primary-soft);
  color: var(--hc-primary) !important;
}

.hc-lang .dropdown-toggle img {
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.hc-lang .dropdown-menu {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  box-shadow: var(--hc-shadow);
  min-width: 10rem;
  padding: 6px;
  margin-top: 8px;
}

.hc-lang .dropdown-menu li {
  display: block !important;
  float: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.hc-lang .dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--hc-text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.hc-lang .dropdown-menu li a:hover {
  background: var(--hc-primary-soft);
  color: var(--hc-primary);
}

.hc-lang .dropdown-menu li a img {
  border-radius: 50%;
}

/* Primary CTA (Login / Signup) — watery liquid gradient */
@keyframes hc-water-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hc-water-shine {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  35% { opacity: 0.55; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

.hc-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    120deg,
    #7c1aad 0%,
    #b21ac9 28%,
    #d946ef 52%,
    #9333ea 78%,
    #7c1aad 100%
  ) !important;
  background-size: 220% 220% !important;
  animation: hc-water-flow 6s ease-in-out infinite;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px !important;
  border-radius: 999px;
  border: none;
  text-decoration: none !important;
  box-shadow:
    0 4px 14px rgba(178, 26, 201, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 18px rgba(88, 28, 135, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.hc-btn-primary::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -40%;
  width: 45%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: hc-water-shine 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 24px rgba(178, 26, 201, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 18px rgba(88, 28, 135, 0.2);
  color: #fff !important;
  animation-duration: 3.2s;
}

.hc-btn-primary:hover::before {
  animation-duration: 2.2s;
}

.hc-btn-primary > * {
  position: relative;
  z-index: 1;
}

.hc-btn-primary span {
  border: none !important;
  padding: 0 !important;
}

.hc-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff !important;
  color: var(--hc-primary) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px !important;
  border-radius: 999px;
  border: 1.5px solid var(--hc-primary-tint) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.hc-btn-outline:hover {
  background: #faf5ff !important;
  border-color: var(--hc-primary) !important;
  color: var(--hc-primary-dark, #7c1aad) !important;
}

/* Logged-in user chip */
.hc-user {
  position: relative;
}

.hc-user > a {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: transparent !important;
  color: var(--hc-text) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.hc-user > a:hover {
  background: var(--hc-primary-soft) !important;
}

.hc-user > a::after {
  display: none !important; /* hide bootstrap caret, we use our own svg */
}

/* Gradient initials avatar (image overlays it when available) */
.hc-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.hc-avatar img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  border: none !important;
  border-radius: 50%;
  margin: 0 !important;
}

.hc-user-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-caret {
  width: 16px;
  height: 16px;
  color: var(--hc-text-muted);
  transition: transform 0.2s ease;
}

.hc-user.show .hc-caret,
.hc-user.open .hc-caret {
  transform: rotate(180deg);
}

/* Dropdown card */
.hc-user .dropdown-menu.hc-menu {
  display: none;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 12, 34, 0.12);
  padding: 8px;
  margin-top: 10px !important;
  min-width: 13rem;
  width: auto !important;
  right: 0;
  left: auto;
  float: none;
}

.hc-user.show .dropdown-menu.hc-menu,
.hc-user.open .dropdown-menu.hc-menu {
  display: block;
}

.hc-menu li {
  display: block !important;
  float: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.hc-menu li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 10px;
  color: var(--hc-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  background: transparent !important;
}

.hc-menu li a svg {
  width: 18px;
  height: 18px;
  color: var(--hc-text-muted);
  flex-shrink: 0;
}

.hc-menu li a:hover {
  background: var(--hc-primary-soft) !important;
  color: var(--hc-primary) !important;
}

.hc-menu li a:hover svg {
  color: var(--hc-primary);
}

.hc-menu-divider {
  height: 1px !important;
  background: var(--hc-border);
  margin: 6px 4px !important;
}

.hc-menu li a.hc-menu-danger:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.hc-menu li a.hc-menu-danger:hover svg {
  color: #dc2626;
}

/* ---------- Mobile toggler ---------- */

.hc-navbar .navbar-toggler {
  border: 1px solid var(--hc-border);
  border-radius: 10px;
  padding: 6px 10px;
}

.hc-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%239333ea' stroke-width='2.4' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

@media (max-width: 767.98px) {
  .hc-navbar {
    padding: 10px 16px;
  }

  .hc-navbar > .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .hc-navbar .navbar-toggler {
    order: 3;
  }

  .hc-navbar .navbar-collapse {
    order: 4;
    flex-basis: 100%;
  }

  .hc-nav {
    margin: 10px 0 0 !important;
    align-items: stretch;
  }

  .hc-actions {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
    flex-wrap: wrap;
  }
}

/* ---------- RTL (Arabic) ---------- */

[dir="rtl"] .hc-brand .hc-brand-logo {
  margin: 0 0 0 30px;
  object-position: right center;
}

/* Arabic: same single row, mirrored edges
   logo = far right, menus = center, language/profile = far left */
@media (min-width: 768px) {
  [dir="rtl"] nav.navbar.navbar-expand-md.hc-navbar > .container-fluid {
    direction: ltr;
    grid-template-areas: "actions nav brand";
  }

  [dir="rtl"] nav.navbar.navbar-expand-md.hc-navbar > .container-fluid > .navbar-brand {
    justify-self: end;
  }

  [dir="rtl"] nav.navbar.navbar-expand-md.hc-navbar > .container-fluid > .navbar-collapse {
    direction: rtl;
  }

  [dir="rtl"] nav.navbar.navbar-expand-md.hc-navbar > .container-fluid > .hc-actions {
    justify-self: start;
    direction: rtl;
  }
}

@media (max-width: 767.98px) {
  [dir="rtl"] .hc-actions {
    margin-left: 8px;
    margin-right: auto;
  }
}

[dir="rtl"] .hc-user .dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .hc-lang .dropdown-menu {
  right: auto;
  left: 0;
}

/* ---------- Homepage floating search ---------- */

.search-bar {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

.search-bar .container,
.search-bar .inner-search-bar,
.search-bar .row,
.search-bar .search-bar-divide {
  pointer-events: auto;
}

.search-bar .inner-search-bar {
  width: 100% !important;
}

.search-bar .search-bar-divide {
  padding: 7px;
  border: 1px solid rgba(147, 51, 234, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(46, 16, 101, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-bar .search-bar-divide > .row {
  margin: 0;
  align-items: center;
}

.search-bar .search-bar-divide > .row > [class*="col-"] {
  padding: 0 !important;
}

.search-bar .search-bar-divide > .row > [class*="col-"]:first-child {
  border-right: 1px solid var(--hc-border);
}

.search-bar .search-bar-part2 {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar .inputboX,
.search-bar .search-bar-part2 .inputboX:focus {
  height: 52px;
  margin: 0 !important;
  padding: 0 50px 0 43px;
  border: 0 !important;
  border-radius: 11px;
  outline: 0;
  background: transparent !important;
  color: var(--hc-text);
  box-shadow: none !important;
  font-family: var(--hc-font);
  font-size: 14px;
  font-weight: 500;
}

.search-bar .inputboX::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

.search-bar .hc-field-icon {
  position: absolute;
  left: 17px;
  z-index: 2;
  color: var(--hc-primary);
  font-size: 16px;
  pointer-events: none;
}

.search-bar .hc-location-button,
.search-bar .hc-search-submit {
  position: absolute;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-bar .hc-location-button {
  background: var(--hc-primary-soft);
  color: var(--hc-primary);
}

.search-bar .hc-location-button:hover {
  background: var(--hc-primary-tint);
  color: var(--hc-primary-deep);
}

.search-bar .hc-search-submit {
  background: var(--hc-gradient);
  color: #fff;
  box-shadow: 0 5px 14px rgba(178, 26, 201, 0.28);
}

.search-bar .hc-search-submit:hover {
  color: #fff;
  transform: translateX(2px);
  box-shadow: 0 7px 18px rgba(178, 26, 201, 0.36);
}

.search-bar #combination-bucket-list {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 110;
}

.search-bar .combination-dropdown-wrapper {
  top: 0;
  overflow: hidden;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(46, 16, 101, 0.16);
}

.search-bar .combination-dropdown-wrapper .list-group-item:hover {
  background: var(--hc-primary-soft) !important;
}

.search-bar .combination-dropdown-wrapper .list-group-item:hover .ins-name {
  color: var(--hc-primary) !important;
}

[dir="rtl"] .search-bar .search-bar-divide > .row > [class*="col-"]:first-child {
  border-right: 0;
  border-left: 1px solid var(--hc-border);
}

[dir="rtl"] .search-bar .inputboX {
  padding-right: 43px;
  padding-left: 50px;
}

[dir="rtl"] .search-bar .hc-field-icon {
  left: auto;
  right: 17px;
}

[dir="rtl"] .search-bar .hc-location-button,
[dir="rtl"] .search-bar .hc-search-submit {
  right: auto;
  left: 8px;
}

/* ---------- Hero slider ---------- */

/* Offscreen preloader so slide images are cached before they show */
.hc-hero-preload {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#demo {
  position: relative;
  overflow: hidden;
}

/* Soft site-wide cursor animation — disabled for now */
.hc-cursor {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hc-cursor.hc-cursor-visible {
  opacity: 1;
}

.hc-cursor-dot,
.hc-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.hc-cursor-dot {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}

.hc-cursor-ring {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  background: rgba(243, 232, 255, 0.22);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hc-cursor-hover .hc-cursor-ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.5);
}

.hc-cursor-down .hc-cursor-ring {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background: rgba(168, 85, 247, 0.2);
}

.hc-cursor-down .hc-cursor-dot {
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0) scale(0.7);
}

html.hc-has-cursor,
html.hc-has-cursor body,
html.hc-has-cursor a,
html.hc-has-cursor button {
  cursor: auto !important;
}

@media (pointer: coarse), (max-width: 767.98px) {
  .hc-cursor {
    display: none !important;
  }

  html.hc-has-cursor,
  html.hc-has-cursor body,
  html.hc-has-cursor a,
  html.hc-has-cursor button {
    cursor: auto !important;
  }
}

/* ---------- Clinics page sections ---------- */

.hc-clinic-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 0;
  margin: 0;
  min-height: 0;
  text-align: center;
  font-family: var(--hc-font);
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(178, 26, 201, 0.1), transparent 65%),
    linear-gradient(180deg, #faf5ff 0%, #f3e8ff 38%, #fff 100%);
}

.hc-clinic-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto 6px;
  padding: 0 16px;
}

.hc-clinic-hero-copy .hc-eyebrow {
  margin-bottom: 16px;
}

.hc-clinic-hero-copy h1 {
  margin: 0;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .hc-clinic-hero-copy h1 {
    white-space: normal;
    font-size: clamp(24px, 6.5vw, 30px);
  }
}

.hc-clinic-hero-copy h1 span {
  background: var(--hc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hc-clinic-hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 4px auto 0;
  padding: 0;
}

.hc-clinic-hero-visual::before,
.hc-clinic-hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.hc-clinic-hero-visual::before {
  top: 0;
  height: 10%;
  background: linear-gradient(180deg, #faf5ff 0%, rgba(250, 245, 255, 0) 100%);
}

.hc-clinic-hero-visual::after {
  bottom: 0;
  height: 16%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.hc-clinic-hero-visual img {
  display: block !important;
  width: 100% !important;
  max-width: 1600px;
  min-height: 420px;
  height: auto !important;
  margin: 0 auto !important;
  border: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.06) contrast(1.03) brightness(1.03);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
}

.hc-clinic-hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: -36px auto 0;
  padding: 0 0 40px;
}

.hc-clinic-hero-stat {
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hc-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.08);
  backdrop-filter: blur(8px);
}

.hc-clinic-hero-stat strong {
  display: block;
  color: var(--hc-primary);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hc-clinic-hero-stat span {
  display: block;
  margin-top: 6px;
  color: var(--hc-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.hc-clinic-block {
  padding: 70px 0;
  font-family: var(--hc-font);
}

.hc-clinic-what {
  background: #fff;
}

.hc-clinic-partners {
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.hc-clinic-story {
  background: #fff;
}

.hc-clinic-card,
.hc-clinic-story-card {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hc-clinic-text {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0 12px;
  color: var(--hc-text-muted);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.hc-clinic-highlight {
  display: inline-block;
  margin: 0 0 34px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--hc-primary-soft);
  border: 1px solid var(--hc-primary-tint);
  color: var(--hc-primary);
  font-size: 14.5px;
  font-weight: 700;
}

.hc-clinic-features {
  margin-top: 10px;
}

.hc-clinic-feature {
  height: 100%;
  margin-bottom: 20px;
  padding: 26px 20px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(46, 16, 101, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hc-clinic-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(46, 16, 101, 0.12);
}

.hc-clinic-feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(178, 26, 201, 0.25);
}

.hc-clinic-feature h4 {
  margin: 0 0 8px;
  color: var(--hc-text);
  font-size: 17px;
  font-weight: 700;
}

.hc-clinic-feature p {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.hc-clinic-partners .hc-section-head {
  margin-bottom: 36px;
}

.hc-clinic-partners .hc-section-head h3 {
  margin-top: 16px;
  line-height: 1.35;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.hc-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 8px auto 0;
  padding: 0 12px;
}

.hc-partner-card {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(46, 16, 101, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hc-partner-card .client_logos {
  margin: 0 !important;
}

.hc-partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(46, 16, 101, 0.1);
}

.hc-clinic-story-card {
  padding: 48px 44px;
  background: linear-gradient(145deg, #fff 0%, #faf5ff 100%);
  border: 1px solid var(--hc-border);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(46, 16, 101, 0.08);
}

.hc-clinic-story-card .hc-section-head {
  margin-bottom: 28px;
}

.hc-clinic-story-card .hc-section-head h3 {
  line-height: 1.4;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
}

.hc-clinic-story-card .hc-clinic-text {
  margin-bottom: 8px;
}

.hc-clinic-story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 28px auto 0;
}

.hc-clinic-story-stat {
  padding: 18px 14px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 16px;
}

.hc-clinic-story-stat strong {
  display: block;
  color: var(--hc-primary);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hc-clinic-story-stat span {
  display: block;
  margin-top: 6px;
  color: var(--hc-text-muted);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .hc-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hc-clinic-block {
    padding: 48px 0;
  }

  .hc-clinic-hero {
    padding-top: 36px;
  }

  .hc-clinic-hero-visual img {
    min-height: 240px;
    max-width: none;
    width: 120% !important;
    margin-left: -10% !important;
  }

  .hc-clinic-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -12px;
    padding: 0 8px 36px;
  }

  .hc-clinic-hero-stat strong {
    font-size: 22px;
  }

  .hc-clinic-hero-visual::before {
    height: 8%;
  }

  .hc-clinic-hero-visual::after {
    height: 14%;
  }

  .hc-clinic-story-card {
    padding: 28px 18px;
  }

  .hc-partners-grid,
  .hc-clinic-story-stats {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.hc-clinic-testimonials {
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.hc-clinic-testimonials .hc-section-head {
  margin-bottom: 36px;
}

.hc-clinic-testimonials .hc-section-head h3 {
  margin-top: 16px;
  line-height: 1.35;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.hc-testimonial-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 56px;
}

.hc-testimonial-card {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(46, 16, 101, 0.08);
  padding: 40px 42px 34px;
  text-align: left;
}

.hc-quote-mark {
  color: var(--hc-primary);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.7;
  margin-bottom: 18px;
  opacity: 0.35;
}

.hc-testimonial-quote {
  margin: 0 0 28px;
  padding: 0 4px 4px;
  color: var(--hc-text);
  font-size: 16.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  font-weight: 500;
  max-width: 640px;
}

[dir="rtl"] .hc-testimonial-card {
  text-align: right;
}

[dir="rtl"] .hc-testimonial-quote {
  padding: 0 4px 4px;
}

.hc-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hc-testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hc-primary-tint);
}

.hc-testimonial-author strong {
  display: block;
  color: var(--hc-text);
  font-size: 15.5px;
  font-weight: 700;
}

.hc-testimonial-author span {
  display: block;
  color: var(--hc-text-muted);
  font-size: 13px;
  margin-top: 2px;
}

.hc-testimonial-nav {
  width: auto;
  opacity: 1;
}

.hc-testimonial-nav .hc-nav-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hc-border);
  color: var(--hc-primary);
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(46, 16, 101, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hc-testimonial-nav:hover .hc-nav-btn {
  background: var(--hc-gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

.hc-testimonial-carousel .carousel-control-prev {
  left: 0;
}

.hc-testimonial-carousel .carousel-control-next {
  right: 0;
}

.hc-testimonial-dots {
  position: static;
  margin: 22px 0 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.hc-testimonial-dots li {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e9d5ff;
  border: 0;
  margin: 0;
  opacity: 1;
}

.hc-testimonial-dots li.active {
  width: 24px;
  background: var(--hc-primary);
}

/* For doctors / clinics / hospitals audience blocks */
.hc-clinic-audience {
  background: #fff;
}

.hc-clinic-doctors {
  background: #fff;
}

.hc-clinic-clinics {
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.hc-clinic-hospitals {
  background: linear-gradient(180deg, #fff 0%, #f3e8ff 100%);
}

/* Page closer: one continuous dark band → footer */
.hc-clinic-closer {
  position: relative;
  overflow: hidden;
  color: #f5e9ff;
  background:
    radial-gradient(ellipse 70% 45% at 90% 12%, rgba(178, 26, 201, 0.32), transparent 55%),
    radial-gradient(ellipse 55% 40% at 8% 70%, rgba(147, 51, 234, 0.24), transparent 52%),
    linear-gradient(180deg, #3b1764 0%, #1e0b33 28%, #14081f 100%);
}

.hc-clinic-closer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  background: linear-gradient(180deg, #f3e8ff 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hc-clinic-closer > .hc-clinic-block {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-top: 36px;
  padding-bottom: 36px;
}

.hc-clinic-closer .hc-clinic-prime {
  padding-top: 56px;
}

.hc-clinic-closer .hc-clinic-media {
  padding-bottom: 56px;
}

.hc-clinic-closer .hc-eyebrow {
  color: #f3e8ff !important;
  background: rgba(178, 26, 201, 0.3) !important;
  border: 1px solid rgba(233, 213, 255, 0.3) !important;
}

.hc-prime-copy {
  padding-right: 18px;
}

.hc-prime-copy h3 {
  margin: 12px 0 14px;
  color: #fff;
  font-family: var(--hc-font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.hc-prime-copy p {
  margin: 0;
  color: rgba(237, 233, 254, 0.84);
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
}

.hc-prime-media {
  text-align: center;
}

.hc-prime-media img {
  max-width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.hc-stories-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(233, 213, 255, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.hc-stories-card .hc-section-head {
  margin-bottom: 14px;
}

.hc-stories-card .hc-section-head h3 {
  margin: 12px 0 0;
  color: #fff !important;
  font-size: 28px;
}

.hc-stories-card .hc-clinic-text {
  margin: 0 auto 24px;
  max-width: 640px;
  color: rgba(237, 233, 254, 0.8) !important;
  font-size: 15.5px;
  line-height: 1.7;
}

.hc-stories-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hc-stories-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(178, 26, 201, 0.24);
  border: 1px solid rgba(233, 213, 255, 0.24);
  border-radius: 12px;
  color: #f5e9ff;
  font-size: 14px;
  font-weight: 600;
}

.hc-stories-pills span i {
  color: #e879f9;
}

.hc-clinic-help {
  background: #fff;
  padding: 36px 0 48px;
  text-align: center;
}

.hc-clinic-help a {
  color: var(--hc-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--hc-primary-tint);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hc-clinic-help a:hover {
  color: var(--hc-primary-dark, #7e22ce);
  border-bottom-color: var(--hc-primary);
}

.hc-clinic-help p {
  margin: 0;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 22px;
  font-weight: 700;
}

.hc-clinic-media .hc-help-cta {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}

.hc-clinic-media .hc-help-cta h3 {
  margin: 12px 0 10px;
  color: #fff;
  font-family: var(--hc-font);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.hc-clinic-media .hc-help-cta p {
  margin: 0;
  color: rgba(237, 233, 254, 0.8);
  font-size: 16px;
  line-height: 1.65;
}

.hc-clinic-media .hc-help-cta a {
  color: #f0abfc;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 171, 252, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hc-clinic-media .hc-help-cta a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.hc-video-frame {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(233, 213, 255, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.hc-video-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0612;
}

.hc-video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hc-audience-media {
  padding: 16px;
  background: linear-gradient(145deg, #faf5ff, #fff);
  border: 1px solid var(--hc-border);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(46, 16, 101, 0.08);
  text-align: center;
}

.hc-audience-media img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.hc-audience-copy .hc-eyebrow {
  margin-bottom: 12px;
}

.hc-audience-copy h3 {
  margin: 0 0 22px;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.hc-audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-audience-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--hc-primary-soft);
  border: 1px solid var(--hc-primary-tint);
  border-radius: 12px;
  color: var(--hc-text);
  font-size: 15px;
}

.hc-audience-list li i {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

.hc-audience-list li b {
  color: var(--hc-primary);
}

@media (max-width: 767.98px) {
  .hc-testimonial-wrap {
    padding: 0 42px;
  }

  .hc-testimonial-card {
    padding: 26px 20px 22px;
  }

  .hc-audience-copy h3 {
    font-size: 24px;
  }

  .hc-audience-media {
    margin-bottom: 24px;
  }

  .hc-clinic-closer::before {
    height: 48px;
  }

  .hc-clinic-closer .hc-clinic-prime {
    padding-top: 40px;
  }

  .hc-clinic-closer .hc-clinic-media {
    padding-bottom: 40px;
  }

  .hc-prime-copy {
    padding-right: 0;
    margin-bottom: 24px;
    text-align: center;
  }

  .hc-prime-copy p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hc-prime-copy h3 {
    font-size: 26px;
  }

  .hc-stories-card {
    padding: 28px 20px;
  }

  .hc-stories-card .hc-section-head h3 {
    font-size: 22px;
  }

  .hc-clinic-help p {
    font-size: 18px;
  }

  .hc-clinic-media .hc-help-cta h3 {
    font-size: 24px;
  }

  .hc-clinic-media .hc-help-cta {
    margin-bottom: 24px;
  }

  .hc-video-frame {
    padding: 8px;
    border-radius: 16px;
  }
}

#demo .carousel-inner {
  overflow: hidden;
  height: 800px;
  max-height: calc(100vh - 70px);
}

#demo .bg-main1,
#demo .bg-main2,
#demo .bg-main3 {
  height: 800px !important;
  max-height: calc(100vh - 70px);
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  position: relative;
}

/* Cross-fade instead of slide — no bottom pop */
#demo.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  z-index: 0;
}

#demo.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

#demo.carousel-fade .carousel-item-next.carousel-item-left,
#demo.carousel-fade .carousel-item-prev.carousel-item-right {
  opacity: 1;
  z-index: 1;
}

#demo.carousel-fade .active.carousel-item-left,
#demo.carousel-fade .active.carousel-item-right {
  opacity: 0;
  z-index: 0;
}

#demo .bg-main1::before,
#demo .bg-main2::before,
#demo .bg-main3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.78) 32%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0) 72%
  );
  z-index: 1;
  pointer-events: none;
}

#demo .carousel-caption {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  padding: 0;
  display: flex;
  align-items: center;
}

#demo .header-content {
  max-width: 640px;
  padding-left: 8%;
  text-align: left;
}

#demo .header-content p {
  color: var(--hc-primary) !important;
  font-family: var(--hc-font);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

#demo .header-content h1 {
  color: var(--hc-text) !important;
  font-family: var(--hc-font);
  font-size: 40px !important;
  font-weight: 800 !important;
  line-height: 1.18;
  letter-spacing: -0.9px;
  margin-bottom: 22px !important;
  max-width: 100%;
}

#demo .header-content h1 .typed {
  display: inline-block;
  white-space: nowrap;
  color: var(--hc-primary);
  background: linear-gradient(135deg, #b21ac9 0%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#demo .header-content a {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  margin-top: 0 !important;
}

#demo .header-content a span {
  background: var(--hc-gradient) !important;
  color: #fff !important;
  font-family: var(--hc-font);
  font-weight: 700;
  padding: 12px 18px !important;
  border-radius: 999px 0 0 999px;
  box-shadow: 0 6px 18px rgba(178, 26, 201, 0.28);
}

#demo .header-content a span:last-child {
  border-radius: 0 999px 999px 0;
  padding: 12px 14px !important;
}

#demo .carousel-indicators {
  bottom: 125px;
  z-index: 3;
}

#demo .carousel-indicators li {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.25);
  border: 0;
  margin: 0 4px;
}

#demo .carousel-indicators li.active {
  background: var(--hc-primary);
}

[dir="rtl"] #demo .bg-main1::before,
[dir="rtl"] #demo .bg-main2::before,
[dir="rtl"] #demo .bg-main3::before {
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.78) 32%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0) 72%
  );
}

[dir="rtl"] #demo .header-content {
  padding-left: 0;
  padding-right: 8%;
  text-align: right;
  margin-right: 0;
}

[dir="rtl"] #demo .bg-main1,
[dir="rtl"] #demo .bg-main2,
[dir="rtl"] #demo .bg-main3 {
  background-position: center left !important;
}

@media (max-width: 991.98px) {
  #demo .carousel-inner,
  #demo .bg-main1,
  #demo .bg-main2,
  #demo .bg-main3 {
    height: 560px !important;
  }

  #demo .header-content h1 {
    font-size: 32px !important;
  }
}

@media (max-width: 767.98px) {
  #demo .carousel-inner,
  #demo .bg-main1,
  #demo .bg-main2,
  #demo .bg-main3 {
    height: 420px !important;
    background-position: 70% center !important;
  }

  #demo .header-content {
    max-width: 90%;
    padding-left: 6%;
  }

  #demo .header-content h1 {
    font-size: 26px !important;
  }
}

/* ---------- Audience cards (below hero) ---------- */

.hc-audience {
  background: transparent;
  padding: 0 0 10px;
  position: relative;
  z-index: 10;
  margin-top: -95px;
}

.hc-audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px 24px 26px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(46, 16, 101, 0.14);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* gradient fill sweeps in on hover */
.hc-audience-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hc-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.hc-audience-card > * {
  position: relative;
  z-index: 1;
}

.hc-audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(146, 51, 234, 0.3);
}

.hc-audience-card:hover::after {
  opacity: 1;
}

.hc-audience-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(178, 26, 201, 0.25);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hc-audience-card:hover .hc-audience-icon {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  transform: scale(1.1);
}

.hc-audience-title {
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.hc-audience-card:hover .hc-audience-title {
  color: #fff;
}

.hc-audience-arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hc-primary-soft);
  color: var(--hc-primary);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hc-audience-arrow i {
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.hc-audience-card:hover .hc-audience-arrow {
  background: #fff;
  color: var(--hc-primary);
  transform: translateX(4px);
}

[dir="rtl"] .hc-audience-arrow {
  transform: rotate(180deg);
}

[dir="rtl"] .hc-audience-card:hover .hc-audience-arrow {
  transform: rotate(180deg) translateX(4px);
}

/* ---------- Download app section ---------- */

.hc-download {
  margin-top: 70px;
  padding: 50px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--hc-primary-soft) 100%);
}

.hc-download .hc-section-head {
  margin-bottom: 28px;
}

.hc-download .hc-section-head h3 {
  margin-top: 14px;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 28px;
  font-weight: 800;
}

.hc-download .plarstore-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-download .plarstore-icons span {
  display: inline-block;
}

.hc-download .plarstore-icons img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(46, 16, 101, 0.1);
}

.hc-download .plarstore-icons a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(146, 51, 234, 0.2);
}

/* ---------- Footer ---------- */

.hc-footer {
  position: relative;
  z-index: 5;
  clear: both;
  margin: 0;
  background: #fff !important;
  border-top: 1px solid var(--hc-border);
  padding: 18px 0;
  color: var(--hc-text);
}

.hc-footer .container {
  background: transparent !important;
}

.hc-footer-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  text-align: center;
  background: transparent !important;
}

.hc-footer-brand {
  display: none;
}

.hc-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hc-footer-links a {
  color: var(--hc-primary) !important;
  font-family: var(--hc-font);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hc-footer-links a:hover {
  color: var(--hc-primary-dark) !important;
}

.hc-footer-links a::after {
  content: '|';
  margin-left: 8px;
  color: #d8b4fe;
  opacity: 1;
  font-weight: 400;
}

.hc-footer-links a:last-child::after {
  content: none;
}

.hc-footer-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8b4fe;
}

.hc-footer-copy {
  margin: 0 !important;
  color: var(--hc-primary) !important;
  font-family: var(--hc-font);
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1.4;
  background: transparent !important;
}

.footer-bottom-space {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.loginBottom {
  display: none !important;
}

/* ---------- Scroll-to-top button ---------- */

#scroll {
  position: fixed !important;
  right: 24px !important;
  bottom: 28px !important;
  z-index: 1040;
  width: 48px !important;
  height: 48px !important;
  background: #f3e8ff !important;
  border: 1px solid #e9d5ff !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 18px rgba(146, 51, 234, 0.16);
  text-indent: -9999px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#scroll span {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin-left: -7px !important;
  margin-top: -10px !important;
  height: 0 !important;
  width: 0 !important;
  border: 7px solid transparent !important;
  border-bottom-color: #a855f7 !important;
}

#scroll:hover {
  background: #ede9fe !important;
  border-color: #ddd6fe !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(146, 51, 234, 0.22);
  opacity: 1 !important;
  filter: none !important;
}

#scroll:hover span {
  border-bottom-color: #9333ea !important;
}

@media (max-width: 767.98px) {
  #scroll {
    right: 16px !important;
    bottom: 20px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .hc-download {
    padding: 40px 0 48px;
  }
}

.hc-welcome {
  margin-top: 70px !important;
  padding-bottom: 10px;
}

.hc-welcome-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.hc-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--hc-primary-soft);
  border: 1px solid var(--hc-primary-tint);
  color: var(--hc-primary);
  font-family: var(--hc-font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hc-welcome-title {
  margin: 18px 0 16px;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hc-welcome-text {
  color: var(--hc-text-muted);
  font-family: var(--hc-font);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.hc-welcome-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(46, 16, 101, 0.12);
}

/* ---------- Stats band ---------- */

.hc-stats {
  background: transparent !important;
  height: auto !important;
  display: block !important;
  padding: 40px 0 30px;
}

.hc-stats-card {
  background: var(--hc-gradient);
  border-radius: 24px;
  padding: 44px 30px;
  box-shadow: 0 20px 45px rgba(146, 51, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.hc-stats-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hc-stats-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

/* Shine sweep on hover */
.hc-shine {
  position: absolute;
  top: 0;
  left: -80%;
  z-index: 2;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.hc-stats-card:hover .hc-shine {
  animation: hc-shine-sweep 0.9s ease-in-out;
}

@keyframes hc-shine-sweep {
  from { left: -80%; }
  to { left: 130%; }
}

.hc-stats-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hc-stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(146, 51, 234, 0.38);
}

/* Section head (carousels etc.) */
.hc-section-head {
  text-align: center;
  margin-bottom: 26px;
}

.hc-section-head h3 {
  margin: 14px 0 0;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hc-stat {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6px 10px;
}

.col-md-4 + .col-md-4 .hc-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hc-stat-number {
  display: block;
  color: #fff;
  font-family: var(--hc-font);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hc-stat-label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--hc-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

[dir="rtl"] .col-md-4 + .col-md-4 .hc-stat {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---------- Services grid ---------- */

.hc-services {
  padding: 60px 0 40px;
}

.hc-services .our-service-heading h1 {
  display: none;
}

.hc-services .row > [class*="col-"] {
  margin-bottom: 30px;
}

.hc-service-card {
  position: relative;
  height: 100%;
  min-height: 250px;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(46, 16, 101, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* gradient top bar slides in on hover */
.hc-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hc-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hc-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--hc-primary-tint);
  box-shadow: 0 18px 40px rgba(46, 16, 101, 0.13);
}

.hc-service-card:hover::before {
  transform: scaleX(1);
}

[dir="rtl"] .hc-service-card::before {
  transform-origin: right;
}

.hc-service-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  font-size: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hc-service-card:hover .hc-service-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Icon gradient variants (purple family) */
.hc-grad-1 { background: linear-gradient(135deg, #b21ac9, #9333ea); box-shadow: 0 6px 16px rgba(178, 26, 201, 0.3); }
.hc-grad-2 { background: linear-gradient(135deg, #ec4899, #b21ac9); box-shadow: 0 6px 16px rgba(236, 72, 153, 0.3); }
.hc-grad-3 { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3); }
.hc-grad-4 { background: linear-gradient(135deg, #a855f7, #7e22ce); box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3); }
.hc-grad-5 { background: linear-gradient(135deg, #d946ef, #a21caf); box-shadow: 0 6px 16px rgba(217, 70, 239, 0.3); }
.hc-grad-6 { background: linear-gradient(135deg, #7c3aed, #4f46e5); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3); }

.hc-service-card h3 {
  margin: 0 0 10px;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.hc-service-card p {
  margin: 0;
  color: var(--hc-text-muted);
  font-family: var(--hc-font);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: left;
}

[dir="rtl"] .hc-service-card p {
  text-align: right;
}

/* Scroll reveal */
.hc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease,
              box-shadow 0.25s ease, border-color 0.25s ease;
}

.hc-reveal.hc-visible {
  opacity: 1;
  transform: translateY(0);
}

.hc-reveal.hc-visible:hover {
  transform: translateY(-6px);
}

@media (max-width: 767.98px) {
  .hc-welcome-title {
    font-size: 26px;
  }

  .hc-stats-card {
    padding: 30px 20px;
  }

  .hc-stat {
    padding: 16px 10px;
  }

  .col-md-4 + .col-md-4 .hc-stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  [dir="rtl"] .col-md-4 + .col-md-4 .hc-stat {
    border-right: 0;
  }

  .hc-stat-number {
    font-size: 32px;
  }
}

@media (max-width: 767.98px) {
  .search-bar {
    top: 76px;
    padding: 0 14px !important;
  }

  .search-bar .container {
    padding: 0;
  }

  .search-bar .search-bar-divide > .row > [class*="col-"]:first-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--hc-border);
  }

  .search-bar .inputboX {
    height: 48px;
  }
}

/* ---------- My Profile page ---------- */
.hc-profile-page {
  padding: 40px 0 48px;
  font-family: var(--hc-font);
  background: linear-gradient(180deg, #faf5ff 0%, #f8f5fc 40%, #fff 100%);
  min-height: auto;
}

/* Soft success toast — teal, not loud green / not purple */
.hc-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d8eee6;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.hc-toast-success {
  background: linear-gradient(180deg, #f7fdfb 0%, #fff 100%);
  border-color: #cfece2;
}

.hc-toast-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f8f2;
  color: #0f766e;
  font-size: 14px;
}

.hc-toast-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hc-toast-body strong {
  display: block;
  color: #134e4a;
  font-family: var(--hc-font);
  font-size: 14px;
  font-weight: 700;
}

.hc-toast-body p {
  margin: 2px 0 0;
  color: #475569;
  font-family: var(--hc-font);
  font-size: 13.5px;
  line-height: 1.45;
}

.hc-toast-close {
  flex-shrink: 0;
  opacity: 0.55;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  background: none;
  border: 0;
  padding: 0 2px;
}

.hc-toast-close:hover {
  opacity: 1;
  color: #0f172a;
}

.hc-profile-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 32px 32px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(46, 16, 101, 0.08);
}

.hc-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hc-border);
}

.hc-profile-head h2 {
  margin: 8px 0 0;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.hc-profile-head .editProfile {
  cursor: pointer;
}

.hc-profile-avatar {
  text-align: center;
  margin-bottom: 20px;
}

.hc-profile-picture {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hc-primary-soft);
  border: 3px solid var(--hc-primary-tint);
  box-shadow: 0 8px 22px rgba(178, 26, 201, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc-profile-picture:hover {
  border-color: var(--hc-primary);
  box-shadow: 0 10px 28px rgba(178, 26, 201, 0.28);
}

.hc-profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

.hc-profile-picture input[type="file"] {
  cursor: pointer;
  display: block;
  height: 100%;
  left: 0;
  opacity: 0 !important;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.hc-profile-avatar-label {
  display: block;
  color: var(--hc-primary);
  font-size: 13px;
  font-weight: 700;
}

.hc-profile-field {
  margin-bottom: 18px;
}

.hc-profile-field .fill-details-label {
  display: block;
  margin-bottom: 6px;
  color: var(--hc-primary);
  font-size: 13px;
  font-weight: 700;
}

.hc-profile-field .form-control.fill-details {
  height: 46px;
  padding: 10px 14px;
  color: var(--hc-text);
  background: #faf5ff;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  box-shadow: none;
  font-family: var(--hc-font);
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hc-profile-field .form-control.fill-details:focus {
  background: #fff;
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px rgba(178, 26, 201, 0.12);
  outline: none;
}

.hc-profile-field .form-control.fill-details:disabled,
.hc-profile-field .form-control.fill-details[readonly] {
  background: #f3f0f7;
  color: #6b7280;
  opacity: 1;
}

.hc-profile-field .error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.hc-profile-actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--hc-border);
  text-align: right;
}

.hc-profile-actions .confirm-btn {
  border: 0;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .hc-profile-page {
    padding: 24px 0 48px;
  }

  .hc-profile-card {
    padding: 22px 18px 24px;
    border-radius: 18px;
  }

  .hc-profile-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hc-profile-head h2 {
    font-size: 24px;
  }

  .hc-profile-actions {
    text-align: center;
  }

  .hc-profile-actions .confirm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- SweetAlert (HealthCluster purple) ---------- */
.swal-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px);
}

.swal-modal,
.hc-swal.swal-modal {
  width: min(420px, calc(100% - 28px)) !important;
  padding: 8px 4px 4px !important;
  border-radius: 22px !important;
  border: 1px solid #e9d5ff;
  box-shadow: 0 24px 60px rgba(133, 0, 216, 0.14) !important;
  font-family: var(--hc-font), "Plus Jakarta Sans", sans-serif !important;
  background: #fff !important;
}

[dir="rtl"] .swal-title,
[dir="rtl"] .swal-text {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: center;
}

.swal-icon {
  margin-top: 28px !important;
}

.swal-icon--success {
  border-color: #c084fc !important;
}

.swal-icon--success:before,
.swal-icon--success:after {
  background: #fff !important;
}

.swal-icon--success__hide-corners {
  background-color: #fff !important;
}

.swal-icon--success__line {
  background-color: #8500d8 !important;
}

.swal-icon--success__ring {
  border-color: rgba(133, 0, 216, 0.22) !important;
}

.swal-title {
  color: #1e293b !important;
  font-family: var(--hc-font), "Plus Jakarta Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
  padding: 10px 20px 4px !important;
}

.swal-text {
  color: #64748b !important;
  font-family: var(--hc-font), "Plus Jakarta Sans", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  max-width: 100% !important;
  padding: 0 22px !important;
  display: block !important;
  white-space: pre-line;
}

.swal-footer {
  text-align: center !important;
  padding: 8px 16px 22px !important;
  border: 0 !important;
}

.swal-button,
.swal-button--confirm {
  min-width: 112px;
  padding: 11px 28px !important;
  border-radius: 999px !important;
  border: none !important;
  background: linear-gradient(135deg, #8500d8 0%, #9333ea 100%) !important;
  background-color: #8500d8 !important;
  color: #fff !important;
  font-family: var(--hc-font), "Plus Jakarta Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(133, 0, 216, 0.28) !important;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.swal-button:not([disabled]):hover,
.swal-button--confirm:not([disabled]):hover {
  background: linear-gradient(135deg, #7500c0 0%, #8500d8 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(133, 0, 216, 0.34) !important;
}

.swal-button:focus,
.swal-button--confirm:focus {
  box-shadow: 0 0 0 3px rgba(233, 213, 255, 0.9), 0 8px 18px rgba(133, 0, 216, 0.28) !important;
  outline: none !important;
}

.swal-icon--error {
  border-color: #f87171 !important;
}

.swal-icon--warning {
  border-color: #fbbf24 !important;
}

.swal-icon--info {
  border-color: #c084fc !important;
}

.swal-button--danger {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.25) !important;
}

.swal-button--cancel {
  background: #fff !important;
  color: #64748b !important;
  border: 1px solid #e9d5ff !important;
  box-shadow: none !important;
}

.swal-button--cancel:hover {
  background: #faf5ff !important;
  color: #8500d8 !important;
}

/* ---------- Auth: Login / Register ---------- */
.hc-auth-page {
  display: flex;
  align-items: center;
  padding: 28px 0 40px;
  font-family: var(--hc-font);
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(178, 26, 201, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 80%, rgba(147, 51, 234, 0.1), transparent 50%),
    linear-gradient(180deg, #faf5ff 0%, #fff 100%);
  min-height: calc(100vh - 140px);
}

.hc-auth-page > .container {
  width: 100%;
  max-width: 1280px;
}

.hc-auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
  min-height: min(640px, calc(100vh - 220px));
}

.hc-auth-shell-register {
  align-items: start;
}

.hc-auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  border-radius: 32px;
  background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 55%, #ede9fe 100%);
  color: var(--hc-text);
  border: 1px solid var(--hc-border);
  box-shadow: 0 14px 36px rgba(46, 16, 101, 0.08);
  position: relative;
  overflow: hidden;
}

.hc-auth-visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(178, 26, 201, 0.1);
}

.hc-auth-visual .hc-eyebrow {
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--hc-primary) !important;
}

.hc-auth-visual h2 {
  margin: 14px 0 14px;
  color: var(--hc-text);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hc-auth-visual p {
  margin: 0 0 28px;
  color: var(--hc-text-muted);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 420px;
}

[dir="rtl"] .hc-auth-visual {
  text-align: right;
}

[dir="rtl"] .hc-auth-visual p {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .hc-auth-points li {
  flex-direction: row;
}

[dir="rtl"] .hc-auth-field label,
[dir="rtl"] .hc-auth-form {
  text-align: right;
}

[dir="rtl"] .hc-login-appt-hint {
  line-height: 1.7;
}

.hc-auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hc-auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--hc-text);
  font-size: 16px;
  font-weight: 600;
}

.hc-auth-points li i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 12px;
}

.hc-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.hc-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(46, 16, 101, 0.06);
}

.hc-auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 999px;
  color: var(--hc-text-muted) !important;
  font-family: var(--hc-font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.hc-auth-tab.is-active,
.hc-auth-tab:hover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    120deg,
    #7c1aad 0%,
    #b21ac9 28%,
    #d946ef 52%,
    #9333ea 78%,
    #7c1aad 100%
  );
  background-size: 220% 220%;
  animation: hc-water-flow 6s ease-in-out infinite;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hc-auth-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px 36px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(46, 16, 101, 0.08);
}

.hc-auth-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.hc-auth-card-top h3 {
  margin: 0;
  color: var(--hc-text);
  font-size: 22px;
  font-weight: 800;
}

.hc-auth-card-top .ask-qustion,
.hc-auth-card-top .ask-qustion p {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 13px;
}

.hc-auth-card-top a {
  color: var(--hc-primary) !important;
  font-weight: 700;
}

.hc-auth-status {
  margin-bottom: 18px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--hc-primary-deep) !important;
  box-shadow: none !important;
}

.hc-auth-status h6 {
  margin: 0;
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: left;
}

.hc-auth-field {
  margin-bottom: 20px;
}

.hc-auth-field label,
.hc-auth-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--hc-text);
  font-size: 14px;
  font-weight: 700;
}

.hc-auth-field .form-control,
.hc-auth-form .form-control,
.hc-auth-form select.form-control {
  height: 52px;
  padding: 12px 16px;
  color: var(--hc-text);
  background: #faf5ff;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  box-shadow: none;
  font-family: var(--hc-font);
  font-size: 15.5px;
}

.hc-auth-field .form-control:focus,
.hc-auth-form .form-control:focus {
  background: #fff;
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px rgba(178, 26, 201, 0.12);
}

.hc-auth-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 18px;
}

.hc-auth-link {
  color: var(--hc-primary) !important;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
}

.hc-auth-link:hover {
  color: var(--hc-primary-dark) !important;
}

.hc-auth-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 15px 24px !important;
  font-size: 16px !important;
  min-height: 54px;
}

.hc-auth-page .hc-toast {
  max-width: none;
  margin: 0;
}

.hc-auth-modal .modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
}

.hc-auth-modal .modal-header {
  background: var(--hc-gradient);
  border: 0;
  color: #fff;
  padding: 16px 20px;
}

.hc-auth-modal .modal-title {
  color: #fff;
  font-family: var(--hc-font);
  font-weight: 700;
  width: 100%;
  text-align: center;
  margin: 0;
}

.hc-auth-modal .close {
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
}

.hc-auth-modal .modal-body {
  padding: 22px 22px 26px;
}

.hc-auth-modal-logo img {
  max-height: 42px;
  width: auto;
  margin: 8px auto 18px;
}

.hc-auth-register .hc-auth-form .form-group {
  margin-bottom: 14px;
}

.hc-auth-register-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.hc-auth-card-wide {
  margin-top: 16px;
}

.hc-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.hc-auth-span-2 {
  grid-column: 1 / -1;
}

.hc-auth-mobile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
}

.hc-auth-gender {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 8px;
}

.hc-auth-gender label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-weight: 600 !important;
  color: var(--hc-text) !important;
}

.hc-auth-role-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hc-auth-role {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  cursor: pointer;
}

.hc-auth-role input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hc-auth-role span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--hc-border);
  background: #faf5ff;
  color: var(--hc-text);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hc-auth-role input:checked + span {
  background: var(--hc-gradient);
  border-color: transparent;
  color: #fff;
}

.hc-auth-role:hover span {
  border-color: var(--hc-primary-tint);
}

.hc-auth-page .log-btn,
.hc-auth-page .log-btn button {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.hc-auth-register .select2-container {
  width: 100% !important;
}

.hc-auth-register .select2-container .select2-selection--single {
  height: 46px !important;
  border-radius: 12px !important;
  border-color: var(--hc-border) !important;
  background: #faf5ff !important;
}

.hc-auth-register .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  color: var(--hc-text) !important;
}

.hc-auth-register .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
}

@media (max-width: 991.98px) {
  .hc-auth-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
  }

  .hc-auth-visual {
    padding: 32px 24px;
  }

  .hc-auth-card {
    padding: 28px 22px;
  }
}

@media (max-width: 767.98px) {
  .hc-auth-grid {
    grid-template-columns: 1fr;
  }

  .hc-auth-mobile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .hc-auth-page {
    padding: 20px 0 32px;
    min-height: auto;
    align-items: stretch;
  }

  .hc-auth-card {
    padding: 22px 16px;
  }
}

/* ---------- Contact page ---------- */
.hc-eyebrow-plain,
.hc-contact-page .hc-eyebrow {
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.hc-contact-page {
  font-family: var(--hc-font);
  padding: 40px 0 64px;
  min-height: calc(100vh - 160px);
  background:
    radial-gradient(ellipse 70% 50% at 8% 12%, rgba(178, 26, 201, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 88%, rgba(147, 51, 234, 0.08), transparent 50%),
    linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.hc-contact-hero {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.hc-contact-hero h1 {
  margin: 10px 0 0;
  color: var(--hc-text);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hc-contact-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.hc-contact-card,
.hc-contact-aside {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(46, 16, 101, 0.08);
}

.hc-contact-card {
  padding: 36px 34px 32px;
}

.hc-contact-card h2,
.hc-contact-aside h2 {
  margin: 0 0 8px;
  color: var(--hc-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hc-contact-card h2 {
  margin-bottom: 22px;
}

.hc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.hc-contact-span-2 {
  grid-column: 1 / -1;
}

.hc-contact-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--hc-text);
  font-size: 13.5px;
  font-weight: 700;
}

.hc-contact-field input,
.hc-contact-field select,
.hc-contact-field textarea {
  width: 100%;
  height: 50px;
  padding: 12px 14px;
  color: var(--hc-text);
  background: #faf5ff;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  box-shadow: none;
  font-family: var(--hc-font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hc-contact-field textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

.hc-contact-field input:focus,
.hc-contact-field select:focus,
.hc-contact-field textarea:focus {
  background: #fff;
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px rgba(178, 26, 201, 0.12);
}

.hc-contact-field input.wrong-data,
.hc-contact-field select.wrong-data,
.hc-contact-field textarea.wrong-data {
  border-color: #f87171;
  background: #fff5f5;
}

.hc-contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.hc-contact-submit {
  min-width: 160px;
  min-height: 50px;
  padding: 12px 28px !important;
  font-size: 15px !important;
  cursor: pointer;
}

.hc-contact-response {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.hc-contact-response p {
  margin: 0;
}

.hc-contact-response.is-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.hc-contact-response.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.hc-contact-aside {
  padding: 28px 32px 30px;
  background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 55%, #ede9fe 100%);
}

.hc-contact-brand {
  margin: 0 0 22px;
  color: var(--hc-primary);
  font-size: 15px;
  font-weight: 700;
}

.hc-contact-info-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}

.hc-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.hc-contact-info-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--hc-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hc-contact-info-item p {
  margin: 0;
  color: var(--hc-text);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 500;
}

.hc-contact-info-item a {
  color: var(--hc-text) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.hc-contact-info-item a:hover {
  color: var(--hc-primary) !important;
}

.hc-contact-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  overflow: hidden;
}

.hc-contact-icon i {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .hc-contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hc-contact-grid {
    grid-template-columns: 1fr;
  }

  .hc-contact-card,
  .hc-contact-aside {
    padding: 26px 20px;
  }

  .hc-contact-actions {
    justify-content: stretch;
  }

  .hc-contact-submit {
    width: 100%;
  }
}

/* ---------- Providers page ---------- */
.hc-provider-hero {
  position: relative;
  font-family: var(--hc-font);
  display: flex;
  align-items: center;
  padding: 48px 0 56px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #6b3fa0 0%, #5a2f8f 45%, #4a2478 100%);
}

.hc-provider-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  /* Keep natural aspect — image is ~3.2:1, so never force both axes */
  background-size: 100% auto;
}

.hc-provider-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 16, 101, 0.28) 0%, rgba(46, 16, 101, 0.12) 42%, rgba(46, 16, 101, 0.4) 100%);
}

.hc-provider-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hc-provider-hero-copy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.hc-provider-hero-copy .hc-eyebrow {
  color: #fff !important;
}

.hc-provider-hero-copy h1 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(20, 8, 40, 0.35);
}

.hc-provider-hero-copy p {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16.5px;
  line-height: 1.55;
}

.hc-provider-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 52px;
}

.hc-provider-swiper {
  width: 100%;
  padding: 8px 4px 36px;
  overflow: hidden;
}

.hc-provider-swiper .swiper-slide {
  height: auto;
  background: transparent;
}

.hc-provider-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 16px 36px rgba(20, 8, 40, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hc-provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(20, 8, 40, 0.3);
}

.hc-provider-card-img {
  display: block;
  height: 210px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #f3eafc;
}

.hc-provider-card-img--homecare {
  background-position: center 72%;
}

.hc-provider-card-label {
  display: block;
  padding: 14px 12px;
  background: #faf5ff;
  color: var(--hc-text);
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.hc-provider-card:hover .hc-provider-card-label {
  color: var(--hc-primary);
}

.hc-provider-nav {
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: 42%;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 20px rgba(20, 8, 40, 0.2);
  color: var(--hc-primary) !important;
  outline: none;
}

.hc-provider-nav::after {
  font-size: 16px !important;
  font-weight: 700;
  color: var(--hc-primary) !important;
}

.hc-provider-prev {
  left: 0 !important;
}

.hc-provider-next {
  right: 0 !important;
}

.hc-provider-pagination {
  bottom: 0 !important;
}

.hc-provider-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.hc-provider-pagination .swiper-pagination-bullet-active {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(178, 26, 201, 0.35);
}

.hc-provider-section {
  font-family: var(--hc-font);
  padding: 56px 0 24px;
  background:
    radial-gradient(ellipse 60% 45% at 10% 0%, rgba(178, 26, 201, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #faf5ff 100%);
}

.hc-provider-section .hc-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.hc-provider-section .hc-section-head h3 {
  margin: 8px 0 0;
  color: var(--hc-text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.hc-provider-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.hc-provider-step {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.06);
  text-align: center;
}

.hc-provider-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.hc-provider-step h4 {
  margin: 0 0 8px;
  color: var(--hc-text);
  font-size: 17px;
  font-weight: 800;
}

.hc-provider-step p {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

[dir="rtl"] .hc-provider-steps {
  direction: rtl;
}

[dir="rtl"] .hc-provider-step p,
[dir="rtl"] .hc-provider-hero-copy p,
[dir="rtl"] .hc-provider-cta-card p {
  unicode-bidi: plaintext;
}

.hc-provider-cta {
  font-family: var(--hc-font);
  padding: 28px 0 64px;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.hc-provider-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(46, 16, 101, 0.07);
}

.hc-provider-cta-card h3 {
  margin: 6px 0 8px;
  color: var(--hc-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hc-provider-cta-card p {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
}

.hc-provider-cta-card .hc-btn-primary {
  flex-shrink: 0;
  padding: 13px 24px !important;
}

@media (max-width: 991.98px) {
  .hc-provider-carousel {
    padding: 0 44px;
  }

  .hc-provider-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 767.98px) {
  .hc-provider-hero {
    min-height: auto;
    padding: 36px 0 44px;
  }

  .hc-provider-carousel {
    padding: 0 40px;
  }

  .hc-provider-card-img {
    height: 180px;
  }

  .hc-provider-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .hc-provider-cta-card .hc-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Search results (doctors) ---------- */
.hc-search-page {
  font-family: var(--hc-font);
  padding: 32px 0 56px;
  min-height: calc(100vh - 160px);
  background:
    radial-gradient(ellipse 60% 40% at 8% 0%, rgba(178, 26, 201, 0.08), transparent 55%),
    linear-gradient(180deg, #faf5ff 0%, #fff 40%);
}

.hc-search-page .moreins {
  display: none;
}

.hc-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.hc-search-meta h1 {
  margin: 6px 0 8px;
  color: var(--hc-text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.hc-search-meta p {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 14.5px;
}

.hc-search-meta strong {
  color: var(--hc-text);
}

.hc-search-near {
  display: inline-block;
  margin-left: 8px;
  color: var(--hc-primary) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.hc-search-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(46, 16, 101, 0.06);
}

.hc-search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--hc-text-muted) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.hc-search-tab i {
  font-size: 16px;
}

.hc-search-tab.is-active,
.hc-search-tab:hover {
  background: var(--hc-gradient);
  color: #fff !important;
}

.hc-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.hc-search-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hc-doctor-card {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.06);
  overflow: hidden;
}

.hc-doctor-card-main {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 200px;
  gap: 18px;
  padding: 18px 18px 8px;
}

.hc-doctor-photo {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3e8ff;
}

.hc-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-doctor-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hc-doctor-info-top h3 {
  margin: 0 0 4px;
  color: var(--hc-text);
  font-size: 18px;
  font-weight: 800;
}

.hc-doctor-info-top a {
  text-decoration: none !important;
}

.hc-doctor-specialty {
  margin: 0;
  color: var(--hc-primary);
  font-size: 14px;
  font-weight: 700;
}

.hc-doctor-facility {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hc-border);
}

.hc-doctor-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hc-doctor-chips h4 {
  margin: 0 0 8px;
  color: var(--hc-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hc-chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #faf5ff;
  border: 1px solid var(--hc-border);
  color: var(--hc-text);
  font-size: 12.5px;
  font-weight: 600;
}

.hc-chip.is-muted {
  color: var(--hc-text-muted);
}

.hc-chip-more {
  color: var(--hc-primary) !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
}

.hc-doctor-meta {
  padding-top: 4px;
}

.hc-doctor-meta p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--hc-text);
  font-size: 13.5px;
  line-height: 1.4;
}

.hc-doctor-meta i {
  color: var(--hc-primary);
  font-size: 15px;
  margin-top: 1px;
}

.hc-fee-office {
  color: #c2410c;
  font-weight: 700;
}

.hc-fee-online {
  color: #047857;
  font-weight: 700;
}

.hc-doctor-more {
  color: var(--hc-primary) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
}

.hc-doctor-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--hc-border);
  background: #fcfaff;
}

.hc-doctor-card-actions .hc-btn-primary,
.hc-doctor-card-actions .hc-btn-outline {
  min-height: 42px;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
}

.hc-search-empty {
  padding: 48px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.06);
}

.hc-search-empty h2 {
  margin: 8px 0 10px;
  color: var(--hc-text);
  font-size: 28px;
  font-weight: 800;
}

.hc-search-empty p {
  margin: 0 auto 20px;
  max-width: 420px;
  color: var(--hc-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.hc-search-map-card {
  position: sticky;
  top: 88px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.06);
}

.hc-search-map-card h3 {
  margin: 0 0 12px;
  color: var(--hc-text);
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .hc-search-layout {
    grid-template-columns: 1fr;
  }

  .hc-search-map-card {
    position: static;
  }

  .hc-doctor-card-main {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hc-doctor-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .hc-doctor-chips {
    grid-template-columns: 1fr;
  }

  .hc-doctor-card-actions {
    justify-content: stretch;
  }

  .hc-doctor-card-actions a {
    flex: 1;
    justify-content: center;
  }
}

.hc-search-map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 24px;
  border-radius: 16px;
  background: #faf5ff;
  border: 1px dashed var(--hc-border);
  text-align: center;
}

.hc-search-map-empty p {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 220px;
}

.hc-facility-card .hc-doctor-card-main {
  grid-template-columns: 88px minmax(0, 1fr) minmax(180px, 220px);
}

/* ---------- Info modals (Corporate Wellness / Providers / Patients) ---------- */
.hc-info-modal .modal-dialog {
  max-width: 640px;
  margin: 1.25rem auto;
}

.hc-info-modal .modal-content {
  border: 0 !important;
  border-radius: 24px !important;
  overflow: visible;
  box-shadow: 0 24px 60px rgba(46, 16, 101, 0.22);
  background: #fff;
}

.hc-info-modal .modal-body {
  position: relative;
  padding: 28px 28px 30px !important;
  border: 0 !important;
  border-radius: 24px !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(178, 26, 201, 0.08), transparent 55%),
    #fff;
  font-family: var(--hc-font);
}

.hc-info-modal .hc-info-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  float: none !important;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: var(--hc-gradient) !important;
  color: #fff !important;
  font-size: 0;
  line-height: 0;
  opacity: 1 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(178, 26, 201, 0.28);
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.hc-info-modal .hc-info-modal-close::before {
  content: "";
  width: 14px;
  height: 14px;
  display: block;
  background: currentColor;
  /* perfectly centered X via two rotated bars */
  mask: linear-gradient(#000 0 0) center/100% 2px no-repeat,
        linear-gradient(#000 0 0) center/2px 100% no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) center/100% 2px no-repeat,
                linear-gradient(#000 0 0) center/2px 100% no-repeat;
  transform: rotate(45deg);
}

.hc-info-modal .hc-info-modal-close:hover,
.hc-info-modal .hc-info-modal-close:focus,
.hc-info-modal .hc-info-modal-close:active,
.hc-info-modal .hc-info-modal-close:focus-visible {
  background: var(--hc-primary-dark) !important;
  color: #fff !important;
  opacity: 1 !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(178, 26, 201, 0.35);
}

.hc-info-modal .corporate-model-head {
  padding-right: 44px;
  margin-bottom: 14px;
}

[dir="rtl"] .hc-info-modal .modal-body {
  text-align: right;
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(178, 26, 201, 0.08), transparent 55%),
    #fff;
}

[dir="rtl"] .hc-info-modal .hc-info-modal-close {
  right: auto;
  left: 16px;
}

[dir="rtl"] .hc-info-modal .corporate-model-head {
  padding-right: 0;
  padding-left: 44px;
}

.hc-info-modal .corporate-model-head h3 {
  margin: 6px 0 0;
  color: var(--hc-text) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.4px;
  padding-bottom: 0 !important;
}

.hc-info-modal .corporate-model-brief p,
.hc-info-modal .corporate-model-benifits p,
.hc-info-modal .corporate-model-benifits li p {
  margin: 0 0 12px;
  color: var(--hc-text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.hc-info-modal .corporate-model-benifits {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #faf5ff;
  border: 1px solid var(--hc-border);
}

.hc-info-modal .corporate-model-benifits h3 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: var(--hc-text) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.hc-info-modal .corporate-model-brief ol,
.hc-info-modal .corporate-model-benifits ol {
  margin: 0;
  padding-left: 1.2rem;
}

[dir="rtl"] .hc-info-modal .corporate-model-brief ol,
[dir="rtl"] .hc-info-modal .corporate-model-benifits ol {
  padding-left: 0;
  padding-right: 1.2rem;
}

.hc-info-modal .corporate-model-brief li,
.hc-info-modal .corporate-model-benifits li {
  margin-bottom: 8px;
  color: var(--hc-text);
  font-weight: 600;
}

.hc-info-modal .corporate-model-brief li p,
.hc-info-modal .corporate-model-benifits li p {
  margin: 0;
  color: var(--hc-text);
  font-weight: 500;
}

.hc-info-modal .corporate-model-brief li::marker,
.hc-info-modal .corporate-model-benifits li::marker {
  color: var(--hc-primary);
  font-weight: 800;
}

@media (max-width: 575.98px) {
  .hc-info-modal .modal-body {
    padding: 24px 18px 22px !important;
  }

  .hc-info-modal .corporate-model-head h3 {
    font-size: 22px !important;
  }
}

/* ---------- Doctor profile ---------- */
.hc-doctor-page {
  font-family: var(--hc-font);
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(178, 26, 201, 0.08), transparent 55%),
    linear-gradient(180deg, #faf5ff 0%, #fff 35%);
  padding-bottom: 48px;
}

.hc-doctor-hero {
  padding: 36px 0 28px !important;
  background: transparent !important;
}

.hc-doctor-hero-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(46, 16, 101, 0.08);
}

.hc-doctor-hero-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--hc-border);
}

.hc-doctor-hero-info h1 {
  margin: 8px 0 12px;
  color: var(--hc-text);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.hc-doctor-specialty-line,
.hc-doctor-meta-line {
  margin: 0 0 8px;
  color: var(--hc-text-muted);
  font-size: 15px;
}

.hc-doctor-specialty-line strong,
.hc-doctor-meta-line strong {
  color: var(--hc-text);
  font-weight: 700;
}

.hc-doctor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hc-doctor-hero-actions .hc-btn-primary,
.hc-doctor-hero-actions .hc-btn-outline {
  padding: 12px 20px !important;
}

.hc-doctor-tabs.profile-fulldetails {
  background: #fff !important;
  border-bottom: 1px solid var(--hc-border);
  box-shadow: 0 8px 20px rgba(46, 16, 101, 0.04);
}

.hc-doctor-tabs .details-review-insurance ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

.hc-doctor-tabs .details-review-insurance ul li a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #faf5ff;
  border: 1px solid var(--hc-border);
  color: var(--hc-text) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.hc-doctor-tabs .details-review-insurance ul li a:hover,
.hc-doctor-tabs .details-review-insurance ul li.active a {
  background: var(--hc-gradient);
  border-color: transparent;
  color: #fff !important;
}

.hc-doctor-body {
  padding-top: 28px;
}

.hc-doctor-body .details-full {
  margin-bottom: 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.05);
}

.hc-doctor-body .details-full-heading h1 {
  margin: 0 0 14px;
  color: var(--hc-text);
  font-size: 22px;
  font-weight: 800;
}

.hc-doctor-body .specialities-dentistry h5,
.hc-doctor-body .specialities-treatments h5 {
  color: var(--hc-primary);
  font-weight: 700;
}

.hc-doctor-page .three-border,
.hc-doctor-page .fade-image {
  display: none !important;
}

@media (max-width: 767.98px) {
  .hc-doctor-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hc-doctor-hero-photo img {
    margin: 0 auto;
  }

  .hc-doctor-hero-actions {
    justify-content: center;
  }
}

/* ---------- Book appointment ---------- */
.hc-book-page {
  font-family: var(--hc-font);
  padding: 16px 0 48px;
  background:
    radial-gradient(ellipse 70% 45% at 100% -10%, rgba(178, 26, 201, 0.1), transparent 55%),
    #f8f4fc;
  color: var(--hc-text);
}

.hc-book-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hc-book-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 16px;
  box-shadow: var(--hc-shadow);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.hc-book-bar-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hc-book-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--hc-primary-tint);
}

.hc-book-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-book-bar-meta h1 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  color: var(--hc-text);
}

.hc-book-bar-meta p {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--hc-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.hc-book-type-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hc-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hc-book-switch-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hc-book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.hc-book-card {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(46, 16, 101, 0.05);
  padding: 14px 16px;
}

.hc-book-card-head {
  margin-bottom: 10px;
}

.hc-book-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--hc-text);
}

.hc-book-card-head p {
  margin: 2px 0 0;
  color: var(--hc-text-muted);
  font-size: 12px;
}

/* Calendar fills the whole card (fixes slim 220px bootstrap datepicker) */
.hc-book-calendar-shell {
  width: 100%;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 14px;
  padding: 10px;
}

.hc-book-page #calendar,
.hc-book-page .datepicker,
.hc-book-page .datepicker-inline,
.hc-book-page .ui-datepicker {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: block !important;
  box-shadow: none !important;
}

.hc-book-page .datepicker table,
.hc-book-page .ui-datepicker table {
  width: 100% !important;
  table-layout: fixed !important;
}

.hc-book-page .datepicker th,
.hc-book-page .datepicker td,
.hc-book-page .ui-datepicker th,
.hc-book-page .ui-datepicker td {
  width: 14.28% !important;
}

.hc-book-page .datepicker table tr td,
.hc-book-page .datepicker table tr th,
.hc-book-page .ui-datepicker td,
.hc-book-page .ui-datepicker th {
  height: auto !important;
  padding: 2px !important;
  border: 0 !important;
  text-align: center !important;
}

.hc-book-page .datepicker .datepicker-switch,
.hc-book-page .datepicker .prev,
.hc-book-page .datepicker .next,
.hc-book-page .ui-datepicker-title {
  color: #fff !important;
  font-weight: 800 !important;
}

.hc-book-page .datepicker thead tr:first-child th,
.hc-book-page .ui-datepicker-header {
  background: var(--hc-gradient) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 10px 6px !important;
}

.hc-book-page .datepicker thead tr:first-child th:hover {
  background: var(--hc-gradient) !important;
}

.hc-book-page .datepicker .dow,
.hc-book-page .ui-datepicker-calendar th {
  color: #7c3aed !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  background: transparent !important;
  padding-top: 10px !important;
}

.hc-book-page .datepicker table tr td span,
.hc-book-page .datepicker table tr td.day,
.hc-book-page .ui-datepicker td a,
.hc-book-page .ui-datepicker td span,
.hc-book-page .ui-datepicker .ui-state-default {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 40px !important;
  line-height: 1 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: #fff !important;
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  float: none !important;
}

.hc-book-page .datepicker table tr td.day:hover,
.hc-book-page .datepicker table tr td span:hover,
.hc-book-page .ui-datepicker td a:hover {
  background: #f3e8ff !important;
  border-color: #d8b4fe !important;
  color: #7e22ce !important;
}

.hc-book-page .datepicker table tr td.active,
.hc-book-page .datepicker table tr td.active:hover,
.hc-book-page .datepicker table tr td.active.day,
.hc-book-page .datepicker table tr td.selected,
.hc-book-page .ui-datepicker .ui-state-active {
  background: var(--hc-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
  text-shadow: none !important;
  box-shadow: 0 6px 14px rgba(178, 26, 201, 0.28) !important;
}

.hc-book-page .datepicker table tr td.disabled,
.hc-book-page .datepicker table tr td.disabled:hover,
.hc-book-page .datepicker table tr td.old,
.hc-book-page .datepicker table tr td.new,
.hc-book-page .ui-datepicker .ui-state-disabled {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  opacity: 1 !important;
  cursor: default !important;
}

.hc-book-page .datepicker table tr td.today {
  background: #faf5ff !important;
  color: #7e22ce !important;
  border-color: #e9d5ff !important;
}

/* Time slots — denser */
.hc-book-slots,
.hc-book-page .timeReplace {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin: 0 !important;
}

.hc-book-slot,
.hc-book-page .timeReplace .col-6,
.hc-book-page .timeReplace .time {
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  float: none !important;
}

.hc-book-page .time a,
.hc-book-slot a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px;
  border-radius: 0;
  background: #fff;
  border: 1.5px solid #c4b5fd;
  color: #3730a3 !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hc-book-page .time a:hover,
.hc-book-slot a:hover {
  border-color: #a78bfa !important;
  background: #f5f3ff !important;
  color: #6d28d9 !important;
  box-shadow: none !important;
}

.hc-book-page .time a.timeselect,
.hc-book-slot a.timeselect,
.hc-book-page .time a.timeselect:hover,
.hc-book-slot a.timeselect:hover {
  color: #5b21b6 !important;
  background: #ede9fe !important;
  border-color: #a78bfa !important;
  box-shadow: none !important;
}

.hc-book-slot.is-disabled,
.hc-book-page .time.is-disabled,
.hc-book-page .time[style*="opacity"] {
  pointer-events: none !important;
}

.hc-book-slot.is-booked a {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
  opacity: 1 !important;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.hc-book-slot-tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b91c1c;
}

.hc-book-slot-hint {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.hc-book-slot-hint strong {
  color: #991b1b;
  font-weight: 700;
}

.hc-book-slot-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--hc-text-muted);
  font-weight: 600;
  padding: 20px 8px;
}

/* Availability — compact, no huge gap */
.hc-book-avail-card {
  margin-bottom: 14px;
  padding: 12px 16px !important;
}

.hc-book-avail-card .hc-book-card-title {
  margin-bottom: 10px;
}

.hc-book-avail,
.hc-book-page .available-times {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
  align-items: stretch;
  justify-content: flex-start !important;
  max-width: 420px;
  width: auto !important;
  padding: 0 !important;
}

.hc-book-avail-box,
.hc-book-page .available-from,
.hc-book-page .available-to {
  flex: 0 0 170px;
  width: 170px !important;
  max-width: 170px;
  background: #faf5ff;
  border: 1px solid #e9d5ff !important;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 !important;
  text-align: left;
}

.hc-book-avail-box span,
.hc-book-page .available-from > p:first-child,
.hc-book-page .available-to > p:first-child {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hc-primary);
  margin: 0 0 4px;
}

.hc-book-avail-box strong,
.hc-book-page .available-from p,
.hc-book-page .available-to p {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--hc-text);
}

.hc-book-tabs {
  display: inline-flex;
  gap: 6px;
  background: #faf5ff;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 12px;
}

.hc-book-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--hc-text-muted) !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
}

.hc-book-tab.is-active,
.hc-book-tab:hover {
  background: #fff;
  color: var(--hc-primary) !important;
  box-shadow: var(--hc-shadow);
}

.hc-book-page .self-or-family-headings h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
}

.hc-book-page .fill-details-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hc-text-muted);
  margin-bottom: 4px;
}

.hc-book-page .hc-required {
  color: #dc2626;
  font-weight: 800;
  margin-inline-start: 2px;
}

.hc-book-page .form-group {
  margin-bottom: 12px !important;
}

.hc-book-page .fill-details,
.hc-book-page .textArea {
  border-radius: 10px !important;
  border: 1px solid #e9d5ff !important;
  background: #faf5ff !important;
  color: var(--hc-text) !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

.hc-book-page .textArea {
  height: auto !important;
  min-height: 72px !important;
  width: 100%;
  resize: vertical;
}

.hc-book-page .fill-details:focus,
.hc-book-page .textArea:focus {
  border-color: var(--hc-primary) !important;
  box-shadow: 0 0 0 3px rgba(178, 26, 201, 0.12) !important;
  background: #fff !important;
}

.hc-book-page .user-details-type,
.hc-book-page .insurance-details-type,
.hc-book-page .insurance-box {
  margin-top: 4px;
}

.hc-book-page .insurance-box,
.hc-book-page .self-or-family {
  border: 1px solid #e9d5ff !important;
  border-radius: 14px;
  padding: 14px !important;
  margin-bottom: 12px;
}

.hc-book-page .submit-cancel-btns {
  margin-top: 12px;
}

.hc-book-page .confirm-btn {
  border: 0 !important;
  min-width: 200px;
  position: relative;
}

.hc-book-page .confirm-btn.is-loading,
.hc-book-page .confirm-btn:disabled {
  opacity: 0.92;
  cursor: wait;
  pointer-events: none;
}

.hc-book-page .hc-book-confirm-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hc-book-page .hc-book-confirm-loading[hidden],
.hc-book-page .hc-book-confirm-label[hidden] {
  display: none !important;
}

.hc-book-page .hc-book-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: hc-book-spin 0.7s linear infinite;
}

.hc-book-page .hc-book-spinner.is-lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
  border-color: rgba(178, 26, 201, 0.2);
  border-top-color: var(--hc-primary);
}

@keyframes hc-book-spin {
  to { transform: rotate(360deg); }
}

.hc-book-page .hc-book-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 17, 45, 0.35);
  backdrop-filter: blur(2px);
}

.hc-book-page .hc-book-loading-overlay[hidden] {
  display: none !important;
}

.hc-book-page .hc-book-loading-card {
  background: #fff;
  border: 1px solid #e9d5ff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(133, 0, 216, 0.18);
  padding: 28px 32px;
  text-align: center;
  max-width: 280px;
}

.hc-book-page .hc-book-loading-card .hc-book-spinner {
  margin: 0 auto 14px;
}

.hc-book-page .hc-book-loading-card strong {
  display: block;
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 6px;
}

.hc-book-page .hc-book-loading-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.hc-book-page .blue-font,
.hc-book-page a[style*='06A6E0'],
.hc-book-page a[style*='b21ac9'] {
  color: var(--hc-primary) !important;
}

.hc-book-page .error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .hc-book-grid {
    grid-template-columns: 1fr;
  }

  .hc-book-slots,
  .hc-book-page .timeReplace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-book-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ---------- Forgot password ---------- */
.hc-forgot-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--hc-font, 'Plus Jakarta Sans', sans-serif);
  overflow: hidden;
}

.hc-forgot-map {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hc-forgot-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) brightness(0.92);
}

.hc-forgot-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 16, 101, 0.28);
  pointer-events: none;
}

.hc-forgot-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hc-forgot-card {
  width: 100%;
  max-width: 440px;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid rgba(226, 209, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(46, 16, 101, 0.22);
}

.hc-forgot-status {
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #faf5ff !important;
  color: #6b21a8 !important;
}

.hc-forgot-status h6 {
  margin: 0;
  color: #6b21a8;
  font-size: 15px;
  font-weight: 800;
}

.hc-forgot-status.is-error {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.hc-forgot-brand {
  text-align: center;
  margin-bottom: 12px;
}

.hc-forgot-brand img {
  max-width: 200px;
  height: auto;
}

.hc-forgot-copy {
  margin: 0 0 18px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
}

.hc-forgot-form label {
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.hc-forgot-input {
  height: 48px !important;
  border-radius: 12px !important;
  border: 1px solid #e9d5ff !important;
  background: #faf5ff !important;
  box-shadow: none !important;
  font-size: 15px !important;
}

.hc-forgot-input:focus {
  border-color: #b21ac9 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(178, 26, 201, 0.12) !important;
}

.hc-forgot-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  min-height: 48px;
  cursor: pointer;
  border: 0;
}

.hc-forgot-back {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: #b21ac9 !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
}

/* ---------- Facility details ---------- */
.hc-facility-page {
  font-family: var(--hc-font);
  padding-bottom: 48px;
  background:
    radial-gradient(ellipse 60% 40% at 8% 0%, rgba(178, 26, 201, 0.08), transparent 55%),
    linear-gradient(180deg, #faf5ff 0%, #fff 40%);
}

.hc-facility-gallery-slide {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
}

.hc-facility-hero {
  padding: 32px 0 24px !important;
  background: transparent !important;
}

.hc-facility-hero-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(46, 16, 101, 0.08);
}

.hc-facility-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--hc-border);
}

.hc-facility-info h1 {
  margin: 8px 0 10px;
  color: var(--hc-text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.hc-facility-info p {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 15px;
}

.hc-facility-info i {
  color: var(--hc-primary);
  margin-right: 4px;
}

.hc-facility-hero-actions {
  margin-top: 16px;
}

.hc-facility-tabs.profile-fulldetails {
  background: #fff !important;
  border-bottom: 1px solid var(--hc-border);
  box-shadow: 0 8px 20px rgba(46, 16, 101, 0.04);
}

.hc-facility-tabs .details-review-insurance ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

.hc-facility-tabs .details-review-insurance ul li a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #faf5ff;
  border: 1px solid var(--hc-border);
  color: var(--hc-text) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.hc-facility-tabs .details-review-insurance ul li a:hover {
  background: var(--hc-gradient);
  border-color: transparent;
  color: #fff !important;
}

.hc-facility-body {
  padding-top: 24px;
}

.hc-facility-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.hc-facility-card {
  margin-bottom: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(46, 16, 101, 0.05);
}

.hc-facility-card h2 {
  margin: 0 0 12px;
  color: var(--hc-text);
  font-size: 20px;
  font-weight: 800;
}

.hc-facility-card p {
  margin: 0 0 10px;
  color: var(--hc-text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.hc-facility-address {
  color: var(--hc-text) !important;
}

.hc-facility-muted {
  color: var(--hc-text-muted) !important;
}

.hc-facility-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-facility-chips .hc-chip {
  text-decoration: none !important;
  color: var(--hc-text);
}

.hc-facility-chips .hc-chip:hover {
  background: var(--hc-gradient);
  border-color: transparent;
  color: #fff;
}

.hc-facility-similar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.hc-facility-similar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--hc-border);
  background: #faf5ff;
  text-decoration: none !important;
  color: var(--hc-text) !important;
  font-size: 13.5px;
  font-weight: 700;
}

.hc-facility-similar-item img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

.hc-facility-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 16px;
}

.hc-facility-page .three-border,
.hc-facility-page .fade-image {
  display: none !important;
}

@media (max-width: 991.98px) {
  .hc-facility-layout {
    grid-template-columns: 1fr;
  }
}


/* ---------- My Appointments page ---------- */
.hc-appointments-page {
  padding: 32px 20px 56px;
  font-family: var(--hc-font);
  background: linear-gradient(180deg, #faf5ff 0%, #f4f0fb 28%, #f8fafc 100%);
  min-height: calc(100vh - 120px);
}

.hc-appointments-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.hc-appointments-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.hc-appointments-head .hc-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9333ea;
}

.hc-appointments-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.hc-appointments-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hc-appt-stat {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e9d5ff;
  color: #6b7280;
  font-size: 0.82rem;
}

.hc-appt-stat strong {
  color: #7c3aed;
  margin-right: 4px;
}

.hc-appt-section + .hc-appt-section {
  margin-top: 28px;
}

.hc-appt-section-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.hc-appt-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-appt-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 148px;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  border: 1px solid #e9d5ff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hc-appt-row:hover {
  transform: translateY(-1px);
  border-color: #ddd6fe;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.1);
}

.hc-appt-row.is-past {
  background: #fcfcfd;
  border-color: #e5e7eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.hc-appt-row.is-past:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.hc-appt-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  border: 1px solid #e9d5ff;
  flex-shrink: 0;
}

.hc-appt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hc-appt-avatar-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #7c3aed;
}

.hc-appt-avatar-fallback.is-visible,
.hc-appt-avatar.is-fallback .hc-appt-avatar-fallback {
  display: flex;
}

.hc-appt-body {
  min-width: 0;
}

.hc-appt-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hc-appt-doctor strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.hc-appt-speciality {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: #6b7280;
}

.hc-appt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hc-appt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
}

.hc-appt-chip svg {
  width: 14px;
  height: 14px;
  color: #9333ea;
  flex-shrink: 0;
}

.hc-appt-chip.is-when {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #5b21b6;
}

.hc-appt-chip.is-muted {
  color: #9ca3af;
  background: #f9fafb;
}

.hc-appt-chip.is-online {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.hc-appt-chip-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}

.hc-appt-chip-icons svg {
  width: 14px;
  height: 14px;
  color: #9333ea;
}

.hc-appt-call-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

.hc-appt-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #9333ea;
  text-decoration: none;
  cursor: default;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

a.hc-appt-call-icon.is-active {
  cursor: pointer;
}

a.hc-appt-call-icon.is-active:hover {
  box-shadow: 0 8px 18px rgba(168, 85, 247, 0.32);
  transform: translateY(-1px);
}

.hc-appt-call-icon svg {
  width: 18px;
  height: 18px;
}

.hc-appt-call-icon.is-active {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(168, 85, 247, 0.28);
}

.hc-appt-row.is-past .hc-appt-call-icon {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.hc-appt-row.is-past .hc-appt-call-icon.is-active {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  box-shadow: none;
}

.hc-appt-reason {
  margin: 0;
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.45;
}

.hc-appt-reason span {
  font-weight: 800;
  color: #374151;
  margin-right: 6px;
}

.hc-appt-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.hc-appt-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.hc-appt-status.is-scheduled {
  color: #6d28d9;
  background: #f3e8ff;
}

.hc-appt-status.is-accepted {
  color: #0f766e;
  background: #ccfbf1;
}

.hc-appt-status.is-rescheduled {
  color: #b45309;
  background: #fef3c7;
}

.hc-appt-status.is-rejected,
.hc-appt-status.is-cancelled {
  color: #b91c1c;
  background: #fee2e2;
}

.hc-appt-status.is-completed {
  color: #1d4ed8;
  background: #dbeafe;
}

.hc-appt-status.is-missed {
  color: #6b7280;
  background: #f3f4f6;
}

.hc-appt-office-note,
.hc-appt-no-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.hc-appt-empty {
  padding: 32px 24px;
  border: 1px dashed #ddd6fe;
  border-radius: 18px;
  text-align: center;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.7);
}

.hc-appt-empty.is-muted {
  border-color: #e5e7eb;
}

.hc-appt-join-call {
  width: 100%;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .hc-appointments-page {
    padding: 24px 14px 40px;
  }

  .hc-appointments-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hc-appt-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "avatar body"
      "actions actions";
    gap: 12px 14px;
  }

  .hc-appt-avatar {
    grid-area: avatar;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .hc-appt-body {
    grid-area: body;
  }

  .hc-appt-actions {
    grid-area: actions;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hc-appt-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hc-appt-join-call {
    flex: 1 1 160px;
  }
}

/* Gentle tip on login when opened from My Appointments */
.hc-login-appt-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #6b21a8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* My Appointments nav gate (guest login choice) */
.hc-appt-login-gate .hc-appt-login-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin-top: 8px;
}

.hc-appt-login-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid #e9d5ff;
  background: #faf5ff;
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hc-appt-login-card:hover {
  border-color: var(--hc-primary);
  box-shadow: 0 10px 24px rgba(178, 26, 201, 0.12);
  transform: translateY(-1px);
}

.hc-appt-login-card strong {
  font-size: 17px;
  color: #1f2937;
}

.hc-appt-login-card span {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .hc-appt-login-gate .hc-appt-login-cards {
    grid-template-columns: 1fr;
  }

  .hc-facility-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hc-facility-photo img {
    margin: 0 auto;
  }

  .hc-facility-hero-actions {
    display: flex;
    justify-content: center;
  }
}
