.topbar-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(24, 49, 108, 0.06);
}

.topbar-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.topbar-main-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.profile-share-btn {
  margin-top: 12px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-share-btn+.profile-share-btn {
  margin-top: 8px;
}

.profile-share-icon {
  font-size: 16px;
  line-height: 1;
}

.doctor-public-screen {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.doctor-public-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.doctor-public-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid #e7ecfb;
  border-radius: 12px;
  background: linear-gradient(140deg, #f7faff 0%, #ffffff 70%);
  padding: 14px;
}

.doctor-public-top.is-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.doctor-public-summary {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
}

.doctor-public-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doctor-public-avatar {
  width: 150px;
  height: 150px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid #e2e9fd;
  box-shadow: 0 12px 30px rgba(17, 36, 87, 0.12);
}

.doctor-public-identity h1 {
  margin: 0 0 6px;
  font-size: 28px;
  color: #172849;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.doctor-public-specialties {
  margin: 0;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.doctor-public-colegiado {
  margin: 0;
  color: #5a6c96;
  font-weight: 700;
  font-size: 13px;
}

.doctor-public-meta-line,
.doctor-public-rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.doctor-public-meta-line {
  margin: 0;
  color: #5a6c96;
}

.doctor-public-city-line {
  color: #5a6c96;
  font-weight: 700;
  font-size: 13px;
}

.doctor-public-rating-line {
  margin-top: 2px;
  width: fit-content;
  min-width: 240px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7dd 0%, #ffffff 70%);
  border: 1px solid #f6df9a;
  box-shadow: 0 8px 18px rgba(246, 193, 73, 0.2);
}

.doctor-public-rating-star {
  color: #f2ad21;
  font-size: 20px;
  line-height: 1;
}

.doctor-public-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f5df9e;
}

.doctor-public-rating-value {
  color: #b17000;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.doctor-public-rating-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #5f4a12;
}

.doctor-public-rating-copy strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.doctor-public-rating-copy small {
  font-size: 11px;
  color: #8a6f31;
  line-height: 1.2;
}

.doctor-public-rate-editor {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  max-width: 320px;
}

.doctor-public-rate-stars {
  position: relative;
  width: fit-content;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2px;
  color: #d3dceb;
}

.doctor-public-rate-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  width: calc((var(--rate, 0) / 5) * 100%);
  color: #f2ad21;
  pointer-events: none;
}

.doctor-public-rate-slider {
  width: 100%;
  accent-color: var(--brand-primary);
}

.doctor-public-rate-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doctor-public-rate-meta strong {
  color: #1f3f77;
  font-size: 14px;
}

.doctor-public-rate-meta small {
  color: #60729c;
  font-size: 12px;
  font-weight: 700;
}

.doctor-public-actions {
  border: 1px solid #e3e9f9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.doctor-public-socials-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5d709d;
  font-weight: 700;
}

.doctor-public-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doctor-public-card {
  border: 1px solid #e7ecfb;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.doctor-public-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #172849;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doctor-public-title-icon {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #eef3ff;
  color: var(--brand-primary);
  border: 1px solid #d5e2ff;
}

.doctor-public-title-icon svg {
  width: 13px;
  height: 13px;
}

.doctor-public-card p,
.doctor-public-card li {
  color: #3e527e;
  line-height: 1.45;
}

.doctor-public-card ul {
  margin: 0;
  padding-left: 18px;
}

.doctor-public-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 7px;
}

.doctor-public-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
}

.doctor-public-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #f3f7ff;
  border: 1px solid #dbe6ff;
  color: var(--brand-primary);
}

.doctor-public-item-icon svg {
  width: 12px;
  height: 12px;
}

.doctor-public-list-info .doctor-public-item-icon {
  background: #f7fbff;
  color: var(--brand-primary-mid);
}

.doctor-public-card a {
  color: #1f57d8;
  text-decoration: none;
}

.doctor-public-card a:hover {
  text-decoration: underline;
}

.doctor-public-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doctor-public-social-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #dce5ff;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #1f57d8;
  background: #f7faff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.doctor-public-social-icon svg {
  width: 18px;
  height: 18px;
}

.doctor-public-social-icon span {
  font-size: 12px;
  font-weight: 700;
}

.doctor-public-social-icon:hover {
  transform: translateY(-1px);
  border-color: #aac3ff;
  box-shadow: 0 8px 18px rgba(47, 104, 255, 0.16);
}

.doctor-public-card-full {
  grid-column: 1 / -1;
}

.doctor-public-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.doctor-public-gallery-item {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7ff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-public-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 49, 122, 0.16);
}

.doctor-public-gallery-item img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border: 1px solid #e3e9f9;
  display: block;
}

.doctor-public-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.doctor-public-gallery-modal[hidden] {
  display: none;
}

.doctor-public-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 50, 0.74);
  backdrop-filter: blur(4px);
}

.doctor-public-gallery-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  margin: min(7vh, 50px) auto;
  border-radius: 16px;
  background: linear-gradient(160deg, #f9fbff 0%, #eef3ff 100%);
  border: 1px solid #c8d8ff;
  box-shadow: 0 24px 60px rgba(10, 30, 77, 0.35);
  padding: 50px 22px 18px;
}

.doctor-public-gallery-panel img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0f1e45;
}

.doctor-public-gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #1f57d8;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.doctor-public-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 87, 216, 0.92);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.doctor-public-gallery-nav-prev {
  left: -16px;
}

.doctor-public-gallery-nav-next {
  right: -16px;
}

.doctor-public-gallery-caption {
  margin: 10px 0 0;
  text-align: center;
  color: #39558f;
  font-size: 13px;
  font-weight: 700;
}

body.doctor-public-gallery-open {
  overflow: hidden;
}

.doctor-public-empty {
  margin-top: 14px;
  border: 1px dashed #cfd9f7;
  border-radius: 12px;
  padding: 16px;
  color: var(--brand-primary-mid);
  background: #f9fbff;
}

@media (max-width: 768px) {
  .doctor-public-screen {
    padding: 14px;
  }

  .doctor-public-top {
    grid-template-columns: 1fr;
  }

  .doctor-public-summary {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .doctor-public-avatar {
    width: 120px;
    height: 120px;
  }

  .doctor-public-identity h1 {
    font-size: 24px;
  }

  .doctor-public-meta-line,
  .doctor-public-rating-line {
    justify-content: center;
  }

  .doctor-public-rating-line {
    margin-inline: auto;
    border-radius: 14px;
    min-width: 0;
    width: 100%;
    max-width: 380px;
    justify-content: center;
  }

  .doctor-public-rating-copy {
    align-items: flex-start;
    text-align: left;
  }

  .doctor-public-grid {
    grid-template-columns: 1fr;
  }

  .doctor-public-gallery-panel {
    width: min(96vw, 760px);
    margin: 20px auto;
    padding: 42px 12px 14px;
  }

  .doctor-public-gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 25px;
  }

  .doctor-public-gallery-nav-prev {
    left: 8px;
  }

  .doctor-public-gallery-nav-next {
    right: 8px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: var(--brand-primary-dark);
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-mini {
  height: 22px;
}

.brand-logo-mobile-main {
  display: none;
}

.brand-logo-main {
  height: 34px;
}

.brand-desktop .brand-logo-main {
  height: 58px;
}

.brand span {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  min-height: 34px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary-mid);
  text-decoration: none;
  line-height: 1;
  padding: 0;
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.topbar-mobile-only {
  display: none !important;
}

.topbar-auth-mobile-entry {
  display: none !important;
}

.topbar-mobile-logout {
  display: none !important;
  color: #1b4f95 !important;
  font-weight: 700 !important;
}

.topbar-auth-desktop-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.topbar-menu-btn {
  display: none !important;
}

.logout-icon-btn {
  color: var(--brand-primary);
  border-color: #bcd0ff;
  background: var(--brand-primary-soft-2);
}

.logout-icon-btn:hover {
  border-color: #7ea5ff;
  background: #eaf1ff;
}

.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  appearance: none;
  display: grid;
  place-items: center;
  color: var(--brand-primary-mid);
  border: 1px solid #c3d5ff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-primary-soft-2) 100%);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  color: var(--brand-primary-dark);
  border-color: var(--brand-primary);
  box-shadow: 0 6px 14px rgba(31, 169, 201, 0.18);
  transform: translateY(-1px);
}

.icon-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4b5f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid #fff;
}


.topbar-notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 72px;
  width: min(360px, 85vw);
  max-height: min(360px, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 43, 103, 0.18);
  padding: 10px;
  z-index: 40;
}

.topbar-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
}

.topbar-notification-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-notification-head strong {
  font-size: 13px;
  color: #213866;
}

.topbar-notification-refresh {
  color: #2c56a6;
  border-color: #cad9ff;
  background: var(--brand-primary-soft-2);
}

.topbar-notification-close {
  color: #2c56a6;
  border-color: #cad9ff;
  background: var(--brand-primary-soft-2);
}

.topbar-notification-refresh:hover,
.topbar-notification-close:hover,
.topbar-chat-btn:hover {
  border-color: #9ab7ff;
  background: var(--brand-primary-soft);
}

.topbar-notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.topbar-notification-item {
  width: 100%;
  border: 1px solid #e4ebff;
  background: #fff;
  color: #2d4471;
  border-radius: 9px;
  padding: 8px;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.topbar-notification-item-layout {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: start;
}

.topbar-notification-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #d3dfff;
  background: #eef4ff;
}

.topbar-notification-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.topbar-notification-message {
  display: block;
  color: #2d4471;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-notification-meta {
  display: block;
  color: #5d709c;
  font-size: 11px;
  line-height: 1.25;
}

.topbar-notification-item.is-unread {
  border-color: #adc6ff;
  background: #f5f9ff;
}

.topbar-notification-empty {
  margin: 6px 0;
  color: #5d709c;
  font-size: 12px;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-ghost {
  color: var(--brand-primary-dark);
  background: #fff;
}

.btn-ghost:hover {
  background: var(--btn-ghost-hover);
  border-color: var(--brand-primary-mid);
}

.btn-primary {
  border-color: #0558a8;
  background: #0558a8;
  color: #fff;
  box-shadow: 0 8px 18px var(--btn-cta-shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(4, 69, 135, 0.3), 0 0 0 1px rgba(5, 88, 168, 0.38);
}

.home-banner {
  margin-top: 14px;
  background-image:
    linear-gradient(90deg, rgba(244, 248, 255, 0.86) 0%, rgba(237, 244, 255, 0.68) 46%, rgba(229, 238, 255, 0.34) 100%),
    var(--banner-bg-image);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% 100%, cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 56px 14px;
  min-height: 328px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  isolation: isolate;
  overflow: visible;
}

.home-banner.is-image-only {
  background-image: var(--banner-bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.banner-content {
  max-width: 60%;
  position: relative;
  z-index: 30;
}

.banner-content h1 {
  margin: 8px 0 6px;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brand-primary-dark);
  background: linear-gradient(92deg, #2f68ff 0%, #3b78e8 56%, #1fa9c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.banner-content p {
  margin: 0;
  color: #50638f;
  font-size: 18px;
  line-height: 1.35;
}

.banner-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 700;
}

.banner-search {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.1fr 1.45fr 0.9fr auto;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  overflow: visible;
  position: relative;
  z-index: 30;
}

.banner-field {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e8eeff;
  border-radius: 8px;
  padding: 0 8px;
  min-height: 34px;
}

.field-icon {
  color: #7b8cb2;
  font-size: 12px;
  flex: 0 0 auto;
}

.banner-field input,
.banner-field select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #2e3f66;
  font-size: 11px;
  font-family: inherit;
}

.field-clear-btn {
  border: none;
  background: transparent;
  color: #6b7fae;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.field-clear-btn:hover {
  background: #eef4ff;
  color: #355493;
}

.field-clear-btn[hidden] {
  display: none;
}

.fs-select {
  position: relative;
}

.fs-select:focus-within {
  z-index: 70;
}

.fs-trigger {
  width: 100%;
  min-height: 34px;
  border: 1px solid #e8eeff;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  cursor: pointer;
  color: #2e3f66;
  font-family: inherit;
  font-size: 11px;
}

.fs-value {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-caret {
  color: #5f739f;
  font-size: 10px;
}

.fs-clear {
  color: #6b7fae;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}

.fs-clear:hover {
  background: #eef4ff;
  color: #355493;
}

.fs-clear[hidden] {
  display: none;
}

.fs-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(24, 49, 108, 0.12);
  z-index: 80;
  padding: 8px;
}

.fs-search {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  font-family: inherit;
  font-size: 11px;
  color: #2e3f66;
  outline: none;
}

.fs-options {
  margin-top: 6px;
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.fs-option {
  border: none;
  background: #f7f9ff;
  color: #2f467a;
  text-align: left;
  padding: 8px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
}

.fs-option:hover {
  background: #eaf1ff;
}

.banner-btn {
  border: 1px solid #0558a8;
  border-radius: 8px;
  background: #0558a8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 20px;
  min-height: 34px;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--btn-cta-shadow);
}

.banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(4, 69, 135, 0.3), 0 0 0 1px rgba(5, 88, 168, 0.38);
}

.banner-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #5a6f9d;
  font-size: 11px;
  font-weight: 600;
}

.banner-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  position: relative;
  z-index: 5;
}

.banner-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-step {
  width: 28px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: #b8c7ea;
  cursor: pointer;
}

.banner-step.is-active {
  background: var(--brand-primary);
}

.banner-counter {
  font-size: 11px;
  font-weight: 700;
  color: #5a6f9d;
}

.banner-nav-edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-primary);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 25;
}

.banner-nav-edge.is-left {
  left: 14px;
}

.banner-nav-edge.is-right {
  right: 14px;
}

.specialties-section {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(24, 49, 108, 0.05);
}

.specialties-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.specialties-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.specialties-link {
  border: none;
  background: transparent;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.specialties-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b8c7ea transparent;
}

.specialties-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.specialties-scroll::-webkit-scrollbar {
  height: 0;
}

.specialties-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: max(100%, 1500px);
  padding-bottom: 4px;
}

.specialty-card,
.specialty-modal-card {
  border: 1px solid #e6eeff;
  background: #fff;
  border-radius: 10px;
  min-width: 140px;
  min-height: 62px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.specialty-card:hover,
.specialty-modal-card:hover,
.specialty-card.is-selected,
.specialty-modal-card.is-selected {
  border-color: #7da2ff;
  box-shadow: inset 0 0 0 1px #7da2ff, 0 6px 14px rgba(47, 104, 255, 0.12);
  transform: none;
  z-index: 2;
}

.specialty-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f0f5ff;
}

.specialty-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.specialty-icon-emoji {
  width: auto;
  height: auto;
  font-size: 14px;
  line-height: 1;
}

.specialty-label {
  font-size: 11px;
  font-weight: 700;
  color: #334f83;
  text-align: center;
  line-height: 1.15;
}

.specialties-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.specialties-modal[hidden] {
  display: none;
}

.specialties-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 52, 0.52);
}

.specialties-modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(16, 35, 84, 0.25);
  padding: 14px;
}

.specialties-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.specialties-modal-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--brand-primary-dark);
}

.specialties-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d9e5ff;
  background: #fff;
  color: #44609a;
  cursor: pointer;
}

.specialties-modal-filter {
  margin-top: 10px;
}

.specialties-modal-filter input {
  width: 100%;
  height: 40px;
  border: 1px solid #d7e3ff;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: #2a416f;
  background: #f8faff;
  outline: none;
}

.specialties-modal-filter input:focus {
  border-color: #7da2ff;
  box-shadow: 0 0 0 2px rgba(47, 104, 255, 0.14);
  background: #fff;
}

.specialties-modal-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.specialties-modal-grid .specialty-modal-card[hidden] {
  display: none !important;
}

.specialties-modal-empty {
  margin: 12px 2px 2px;
  color: #4f6495;
  font-size: 13px;
  font-weight: 700;
}

.featured-doctors-section {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(24, 49, 108, 0.05);
}

.featured-doctors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.featured-doctors-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.featured-doctors-link {
  border: none;
  background: transparent;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.featured-doctors-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b8c7ea transparent;
}

.featured-doctors-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-doctors-scroll::-webkit-scrollbar {
  height: 0;
}

.featured-doctors-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: max-content;
  padding-bottom: 4px;
}

.doctor-card {
  width: 160px;
  flex: 0 0 160px;
  text-align: left;
  cursor: pointer;
  border: 1px solid #e4edff;
  border-radius: 10px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 4px 10px rgba(24, 49, 108, 0.06);
}

.doctor-card.is-selected,
.doctor-card:hover {
  border-color: #bcd0ff;
  box-shadow: 0 8px 14px rgba(47, 104, 255, 0.12);
}

.doctor-photo-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.doctor-photo {
  width: 100%;
  height: 84px;
  object-fit: cover;
  display: block;
}

.doctor-status {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: #ecfbf1;
  color: #179a52;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
}

.doctor-card h3 {
  margin: 7px 0 2px;
  font-size: 12px;
  line-height: 1.2;
  color: #2a416f;
}

.doctor-specialty {
  margin: 0;
  color: #3f67b0;
  font-size: 10px;
  font-weight: 600;
}

.doctor-location {
  margin: 3px 0 0;
  color: #6b7fa9;
  font-size: 9px;
}

.doctor-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b7fa9;
  font-size: 9px;
}

.doctor-rating {
  color: #f6a00b;
  font-weight: 700;
}

.doctor-reviews-empty {
  color: #8b97b7;
  font-weight: 600;
}

.doctor-zone {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctors-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
}

.doctors-modal[hidden] {
  display: none;
}

.doctors-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 52, 0.52);
}

.doctors-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(16, 35, 84, 0.25);
  padding: 14px;
}

.doctors-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doctors-modal-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--brand-primary-dark);
}

.doctors-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d9e5ff;
  background: #fff;
  color: #44609a;
  cursor: pointer;
}

.doctors-modal-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.doctor-modal-card {
  width: 100%;
  flex: initial;
}

.doctors-section {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(24, 49, 108, 0.05);
}

.doctors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doctors-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.doctors-count {
  color: #5a6f9d;
  font-size: 12px;
  font-weight: 600;
}

.doctors-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.doctors-grid .doctor-card {
  width: auto;
  flex: initial;
}

.doctors-groups {
  margin-top: 10px;
  display: grid;
  gap: 14px;
}

.doctors-group {
  border: 1px solid #e5edff;
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.doctors-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doctors-group-toggle {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2f4e8a;
  cursor: pointer;
}

.doctors-group-chevron {
  color: #5471ab;
  font-size: 12px;
}

.doctors-group-title {
  margin: 0;
  color: #2f4e8a;
  font-size: 13px;
  font-weight: 700;
}

.doctors-group-count {
  color: #6780b2;
  font-size: 11px;
  font-weight: 600;
}

.doctors-group-link {
  border: none;
  background: transparent;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.doctors-group-body {
  margin-top: 8px;
}

.doctors-group .doctors-grid {
  margin-top: 8px;
}

.doctors-group-pagination {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.doctors-group-pagination[hidden] {
  display: none;
}

.doctors-empty {
  margin-top: 10px;
  border: 1px dashed #d7e3ff;
  border-radius: 10px;
  padding: 16px;
  color: #5870a1;
  font-size: 12px;
  text-align: center;
}

.doctors-empty-inline {
  margin-top: 8px;
}

.doctors-pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.doctors-pagination[hidden] {
  display: none;
}

.doctors-page-btn {
  border: 1px solid #d4e1ff;
  background: #fff;
  border-radius: 8px;
  min-height: 32px;
  padding: 0 12px;
  color: #355493;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.doctors-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.doctors-page-indicator {
  color: #5a6f9d;
  font-size: 12px;
  font-weight: 600;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(14, 27, 58, 0.42);
}

.global-loading-overlay[hidden] {
  display: none;
}

.global-loading-card {
  width: min(320px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid #d7e3ff;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(17, 35, 82, 0.26);
  padding: 18px 16px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.global-loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid #d3e1ff;
  border-top-color: var(--brand-primary);
  animation: loading-spin 0.8s linear infinite;
}

.global-loading-text {
  margin: 0;
  color: #355493;
  font-size: 13px;
  font-weight: 700;
}

.specialty-doctors-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}

.specialty-doctors-modal[hidden] {
  display: none;
}

.specialty-doctors-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 52, 0.52);
}

.specialty-doctors-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(16, 35, 84, 0.25);
  padding: 14px;
}

.specialty-doctors-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.register-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
}

.register-modal[hidden] {
  display: none;
}

.register-modal-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(62, 130, 255, 0.22), transparent 42%),
    rgba(10, 20, 46, 0.58);
  backdrop-filter: blur(2px);
}

.register-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
  border: 1px solid #cfe0ff;
  box-shadow: 0 22px 54px rgba(12, 31, 79, 0.3);
  padding: 18px;
}

.register-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.register-modal-head h3 {
  margin: 0;
  color: #223a6d;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.register-subtitle {
  margin: 8px 0 0;
  color: #5a73a8;
  font-size: 13px;
  font-weight: 600;
}

.register-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #c8dafd;
  background: var(--brand-primary-soft-2);
  color: #385b98;
  cursor: pointer;
  font-size: 20px;
}

.register-steps {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-step {
  border-radius: 999px;
  border: 1px solid #d8e4ff;
  color: #5f74a5;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
}

.register-step.is-active {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #edf3ff;
}

.register-type-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-type-card {
  border: 1px solid #d4e2ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-type-card:hover {
  transform: translateY(-1px);
  border-color: #99bcff;
  box-shadow: 0 10px 24px rgba(36, 78, 160, 0.12);
}

.register-type-card.is-selected {
  border-color: #3f76f8;
  box-shadow: inset 0 0 0 1px #3f76f8, 0 12px 28px rgba(47, 104, 255, 0.16);
}

.register-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #285ef0;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.register-type-title {
  font-size: 20px;
  font-weight: 700;
  color: #253f73;
  letter-spacing: -0.01em;
}

.register-type-subtitle {
  color: #5a73a9;
  font-size: 14px;
  line-height: 1.3;
}

.register-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.register-field {
  display: grid;
  gap: 5px;
}

.register-field span {
  font-size: 12px;
  color: #395487;
  font-weight: 700;
}

.register-field input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d5e2ff;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  color: #2f467a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-field input:focus {
  outline: none;
  border-color: #7ba3ff;
  box-shadow: 0 0 0 3px rgba(47, 104, 255, 0.14);
}

.register-field-error {
  margin: 0;
  color: #c22e4a;
  font-size: 11px;
}

.register-success {
  margin: 10px 0 0;
  border-radius: 8px;
  border: 1px solid #b9efcc;
  background: #ebfff3;
  color: #1f7a47;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}

.register-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 1 / -1;
}

.register-actions-start {
  justify-content: flex-start;
  margin-top: 0;
}

.specialty-doctors-modal-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--brand-primary-dark);
}

.specialty-doctors-modal-head p {
  margin: 3px 0 0;
  color: #6079ad;
  font-size: 11px;
  font-weight: 600;
}

.specialty-doctors-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d9e5ff;
  background: #fff;
  color: #44609a;
  cursor: pointer;
}

.specialty-doctors-modal-search {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.specialty-doctors-modal-search input {
  flex: 1;
  min-height: 34px;
  border: 1px solid #d7e3ff;
  border-radius: 8px;
  padding: 0 10px;
  color: #2f4a80;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.specialty-doctors-modal-search button {
  min-height: 34px;
  border: 1px solid #0558a8;
  border-radius: 8px;
  background: #0558a8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--btn-cta-shadow);
}

.specialty-doctors-modal-meta {
  margin-top: 10px;
  color: #5f79ad;
  font-size: 12px;
  font-weight: 600;
}

.specialty-doctors-modal .doctors-modal-grid {
  margin-top: 10px;
}

.specialty-doctors-modal .doctor-card {
  width: auto;
  flex: initial;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-doctor-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 980px) {
  .topbar-logo-row {
    display: none;
  }

  .topbar-main-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-mini {
    display: none;
  }

  .brand-logo-mobile-main {
    display: block;
    width: auto;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
    margin-top: 2px;
    border: 1px solid #dbe5ff;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    font-size: 13px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .nav a.active::after {
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
  }

  .actions {
    order: 2;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar-notification-panel {
    right: 0;
    top: calc(100% + 6px);
    width: min(340px, calc(100vw - 20px));
    max-height: min(70vh, 380px);
  }

  .btn-ghost {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-menu-btn {
    display: grid !important;
  }

  .topbar-profile-btn {
    display: none;
  }

  .nav .topbar-mobile-only {
    display: inline-flex !important;
  }

  .nav .topbar-auth-mobile-entry {
    display: inline-flex !important;
  }

  .nav .topbar-mobile-logout {
    display: inline-flex !important;
    margin-top: 4px;
    border-top: 1px solid #dbe6ff;
    padding-top: 10px;
  }

  .actions .logout-icon-btn {
    display: none;
  }

  .topbar-auth-desktop-group {
    display: none;
  }

  .btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
  }


  @media (max-width: 560px) {
    .topbar-notification-panel {
      width: min(340px, calc(100vw - 20px));
      left: auto;
      right: 0;
      transform: none;
      max-height: min(68vh, 420px);
      padding: 8px;
    }
  }

  .icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .home-banner {
    padding: 14px 14px 52px;
    min-height: 268px;
    background-position: center, center;
    background-size: 100% 100%, cover;
  }

  .register-modal-panel {
    width: calc(100vw - 16px);
    padding: 12px;
  }

  .register-type-grid,
  .register-form {
    grid-template-columns: 1fr;
  }

  .banner-content {
    max-width: 100%;
  }

  .banner-content h1 {
    font-size: 34px;
  }

  .banner-content p {
    font-size: 15px;
  }

  .banner-search {
    grid-template-columns: 1fr;
  }

  .banner-nav-edge {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .banner-nav-edge.is-left {
    left: 14px;
  }

  .banner-nav-edge.is-right {
    right: 14px;
  }

  .specialties-section {
    padding: 10px;
  }

  .specialties-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 8px;
  }

  .specialties-link {
    padding: 0;
  }

  .specialty-card {
    min-width: 116px;
  }

  .featured-doctors-section {
    padding: 10px;
  }

  .doctors-section {
    padding: 10px;
  }

  .doctor-card {
    width: 148px;
    flex-basis: 148px;
  }

  .doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctors-grid .doctor-card {
    width: auto;
    flex-basis: auto;
  }
}

.profile-screen {
  margin-top: 14px;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-head-card {
  background: #fff;
  border: 1px solid #dfe7fb;
  border-radius: 14px;
  padding: 14px 16px;
}

.profile-head h2 {
  margin: 0;
  color: #18284f;
}

.profile-head p {
  margin: 6px 0 0;
  color: #5e6f95;
  font-size: 14px;
}

.profile-back-btn {
  max-width: none;
}

.profile-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid #dfe7fb;
  border-radius: 14px;
  padding: 16px;
}

.profile-avatar-block {
  border: 1px solid #e6edff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-avatar {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid #edf2ff;
  align-self: center;
  display: block;
}

.profile-avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  align-self: center;
}

.profile-avatar-rating {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #f4df9f;
  background: linear-gradient(135deg, #fff8e3 0%, #ffffff 72%);
}

.profile-avatar-rating-stars {
  position: relative;
  letter-spacing: 2px;
  line-height: 1;
  font-size: 18px;
}

.profile-avatar-rating-stars-base {
  color: #d6dfef;
}

.profile-avatar-rating-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--rating, 0) / 5) * 100%);
  overflow: hidden;
  color: #f2ad21;
  white-space: nowrap;
}

.profile-avatar-rating-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #6f581b;
}

.profile-avatar-rating-meta strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.profile-avatar-rating-meta small {
  font-size: 11px;
  font-weight: 700;
  color: #8a6f31;
}

.profile-avatar-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border: 2px solid #dbe6ff;
  border-radius: 999px;
  background-color: #fff;
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 16px rgba(22, 54, 127, 0.25);
}

.profile-avatar-badge-file {
  right: 44px;
}

.profile-avatar-badge svg {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-file-input-native {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-main-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.profile-step {
  color: #7f95c3;
  font-size: 11px;
}

.profile-step-btn {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  font: inherit;
  text-align: center;
  gap: 5px;
  padding: 0;
}

.profile-step span {
  width: 28px;
  height: 28px;
  border: 2px solid #c8d8fb;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: #fff;
  color: #5b73a8;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.profile-step.is-active {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

.profile-step.is-active span {
  border-color: #0558a8;
  background: #0558a8;
  color: #fff;
  box-shadow: 0 8px 18px var(--btn-cta-shadow), 0 0 0 1px rgba(5, 88, 168, 0.35);
  transform: translateY(-1px);
}

.profile-step.is-done span {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: #f4fcff;
}

.profile-step-btn:hover span {
  border-color: var(--brand-primary-mid);
  box-shadow: 0 4px 10px rgba(31, 62, 138, 0.12);
}

.profile-step-divider {
  height: 1px;
  background: #d7e2fb;
  margin-top: -2px;
  margin-bottom: 2px;
}

.profile-step-title {
  margin: 0;
  color: #243d72;
  font-size: 20px;
  line-height: 1.2;
}

.profile-step-mobile-open-btn {
  display: none;
}

.profile-step-inline-content {
  display: grid;
  gap: 12px;
}

.profile-step-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 12px;
}

.profile-step-modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(12, 23, 49, 0.58);
}

.profile-step-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 20px));
  max-height: calc(100vh - 24px);
  border: 1px solid #d4e1ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(17, 39, 89, 0.28);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.profile-step-modal-head {
  padding: 10px 12px;
  border-bottom: 1px solid #e5edff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-step-modal-head h3 {
  margin: 0;
  color: #243d72;
  font-size: 16px;
}

.profile-step-modal-close {
  width: 30px;
  height: 30px;
  border: 1px solid #d7e2fb;
  border-radius: 8px;
  background: #fff;
  color: #345289;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.profile-step-modal-body {
  overflow: auto;
  padding: 12px;
}

.profile-step-modal-actions {
  border-top: 1px solid #e5edff;
  padding: 10px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field span {
  font-size: 13px;
  font-weight: 700;
  color: #2c3d69;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  border: 1px solid #d7e2fb;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  color: #193059;
  font-family: inherit;
  background: #fff;
}

.profile-field textarea {
  resize: vertical;
}

.profile-select {
  position: relative;
}

.profile-select-trigger {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7e2fb;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #193059;
  cursor: pointer;
}

.profile-select-trigger strong {
  font-size: 14px;
  font-weight: 500;
}

.profile-select-trigger small {
  color: #6d81b3;
}

.profile-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  border: 1px solid #d7e2fb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 43, 94, 0.14);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 20;
}

.profile-select-menu[hidden] {
  display: none;
}

.profile-select-option {
  border: none;
  border-radius: 8px;
  background: var(--brand-primary-soft-2);
  color: #2f4e8a;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.profile-select-option.is-selected {
  background: #dce7ff;
  color: #214388;
  font-weight: 700;
}

.profile-select-sm {
  min-width: 140px;
}

.profile-phone-intl-wrap {
  width: 100%;
}

.profile-phone-intl-wrap .iti {
  width: 100%;
}

.profile-phone-intl-wrap .iti__tel-input,
.profile-phone-intl {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7e2fb;
  border-radius: 8px;
  color: #193059;
  font-size: 14px;
  font-weight: 400;
}

.profile-phone-intl-wrap .iti--separate-dial-code .iti__selected-flag {
  background: #f7faff;
  border-right: 1px solid #d7e2fb;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 0 10px;
}

.profile-phone-intl-wrap .iti__selected-dial-code {
  color: #193059;
  font-size: 14px;
  font-weight: 400;
}

.profile-phone-intl-wrap .iti__country-list {
  width: 100%;
  max-height: 300px;
  border: 1px solid #d7e2fb;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(20, 43, 94, 0.16);
}

.profile-phone-intl-wrap .iti__search-input {
  min-height: 40px;
  border: 1px solid #d7e2fb;
  border-radius: 8px;
  font-family: inherit;
}

.profile-horarios-list {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-horario-card {
  border: 1px solid #d9e4ff;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.profile-horario-card:nth-child(even) {
  background: #f2f7ff;
}

.profile-horario-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #32528d;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-horario-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) 42px auto;
  gap: 8px;
  align-items: center;
}

.profile-horario-row input {
  min-height: 44px;
}

.profile-horario-add-day {
  width: 42px;
  min-height: 42px;
  border: 1px solid #cfe0ff;
  background: #ffffff;
  color: var(--brand-primary);
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-horario-add-day:hover {
  background: #f3f7ff;
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-inline-actions {
  display: flex;
  gap: 10px;
}

.profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-tag {
  border: 1px solid #cfe0ff;
  background: #f3f7ff;
  color: var(--brand-primary);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.profile-specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.profile-specialty-search {
  width: 100%;
  min-height: 44px;
  margin: 10px 0;
  border: 1px solid #d7e2fb;
  border-radius: 10px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: #193059;
  background: #fff;
  outline: none;
}

.profile-specialty-search:focus {
  border-color: #8fb0ff;
  box-shadow: 0 0 0 3px rgba(47, 104, 255, 0.14);
}

.profile-specialty-empty {
  margin: 10px 0 0;
  color: #5a709f;
  font-size: 13px;
}

.profile-specialty-card {
  border: 1px solid #d7e2fb;
  background: #fff;
  color: #2f4e8a;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-specialty-card.is-selected {
  border-color: #4ba35f;
  background: #eaf8ef;
  color: #1e7a3c;
  box-shadow: inset 0 0 0 1px #7ed094;
}

.profile-gallery-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.profile-gallery-item {
  margin: 0;
  border: 1px solid #e0e8fd;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.profile-gallery-item button {
  border: 1px solid #e5ecff;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  color: #425a8f;
  font-size: 12px;
  cursor: pointer;
  min-width: 0;
}

.profile-gallery-actions [data-profile-remove-gallery] {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  min-height: 36px;
}

.profile-gallery-source-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.profile-gallery-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  min-width: 0;
  font-weight: 700;
  padding: 6px 4px;
}

.profile-gallery-source-btn svg {
  width: 17px;
  height: 17px;
}

.profile-gallery-empty {
  justify-content: center;
}

.profile-gallery-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed #c8d9ff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #6a80b2;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.profile-gallery-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.profile-review-box {
  margin: 0;
  border: 1px solid #dae5ff;
  border-radius: 8px;
  padding: 10px;
  background: #f7faff;
  max-height: 240px;
  overflow: auto;
  font-size: 12px;
}

.profile-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-social-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f8fbff;
  display: grid;
  gap: 8px;
}

.profile-social-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-social-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #27457f;
}

.profile-social-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #d7e4ff;
  background: #fff;
  display: grid;
  place-items: center;
}

.profile-social-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.profile-social-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.profile-social-switch {
  width: 44px;
  height: 24px;
  border: 1px solid #d5e1ff;
  background: #e9f0ff;
  border-radius: 999px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-social-switch span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(33, 60, 123, 0.22);
  transition: transform 0.2s ease;
}

.profile-social-switch.is-on {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.profile-social-switch.is-on span {
  transform: translateX(20px);
}

.profile-social-switch-sm {
  width: 36px;
  height: 20px;
  padding: 2px;
}

.profile-social-switch-sm span {
  width: 14px;
  height: 14px;
}

.profile-social-switch-sm.is-on span {
  transform: translateX(16px);
}

.profile-contact-visibility {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.profile-contact-visibility small {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5672a8;
}

.profile-social-card input:disabled {
  background: #eef3ff;
  color: #8ca1cc;
}

.profile-review-hidden {
  display: none;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.profile-success {
  margin: 0;
  color: #2f8744;
  font-weight: 600;
  font-size: 14px;
}

.profile-error {
  margin: 0;
  color: #b23a4a;
  font-weight: 600;
  font-size: 14px;
}

.profile-success-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(14, 28, 58, 0.54), rgba(23, 45, 92, 0.5));
  backdrop-filter: blur(2px);
  padding: 14px;
  animation: profileSuccessOverlayIn 220ms ease-out;
}

.profile-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  background: rgba(12, 24, 52, 0.62);
  padding: 12px;
}

.profile-camera-modal-card {
  width: min(720px, calc(100vw - 24px));
  background: #0f172f;
  border: 1px solid #263867;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.profile-camera-video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.profile-camera-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-success-modal-card {
  width: min(520px, calc(100vw - 24px));
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(15, 35, 85, 0.32);
  padding: 22px 24px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  animation: profileSuccessCardIn 300ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.profile-success-modal-card h3 {
  margin: 2px 0 0;
  color: #1f3a70;
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.profile-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #edfdf4 0%, #dff7e9 55%, #cdf1dd 100%);
  color: #2b9a52;
  border: 2px solid #8fd8ad;
  box-shadow: 0 10px 22px rgba(72, 168, 112, 0.24);
  animation: profileSuccessPop 420ms cubic-bezier(0.16, 0.84, 0.35, 1) 80ms both;
}

.profile-success-icon span {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.profile-success-copy {
  margin: 0;
  color: #5c719f;
  font-size: 14px;
  line-height: 1.45;
  max-width: 410px;
}

.profile-success-cta {
  min-width: 132px;
  font-weight: 700;
  animation: profileSuccessRise 360ms ease-out 120ms both;
}

@keyframes profileSuccessOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes profileSuccessCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.965);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profileSuccessPop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes profileSuccessRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .profile-success-modal,
  .profile-success-modal-card,
  .profile-success-icon,
  .profile-success-cta {
    animation: none !important;
  }
}

.profile-empty {
  background: #fff;
  border: 1px solid #dfe7fb;
  border-radius: 12px;
  padding: 20px;
  color: #415580;
}

.my-stats-screen {
  margin-top: 14px;
  border: 1px solid #dfe8ff;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.my-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.my-stats-head h2 {
  margin: 0;
  color: var(--brand-primary-dark);
}

.my-stats-head p {
  margin: 5px 0 0;
  color: #60729c;
  font-size: 14px;
}

.my-stats-empty {
  margin-top: 12px;
  border: 1px solid #d8e5ff;
  border-radius: 10px;
  padding: 12px;
  background: var(--brand-primary-soft-2);
  color: #35508a;
  font-weight: 600;
}

.my-stats-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.my-stats-card {
  border: 1px solid #e2eafe;
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.my-stats-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-stats-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d5e2ff;
  background: #fff;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.my-stats-card-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.my-stats-card small {
  color: #5b709d;
  font-size: 12px;
  font-weight: 700;
}

.my-stats-card strong {
  color: #1f3f77;
  font-size: 26px;
  line-height: 1;
}

.my-stats-card span {
  color: #6b7fa8;
  font-size: 12px;
}

.my-stats-progress {
  height: 9px;
  border-radius: 999px;
  background: #e6eeff;
  overflow: hidden;
}

.my-stats-progress>div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-mid));
}

.my-stats-chart-card {
  margin-top: 12px;
  border: 1px solid #e2eafe;
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px;
}

.my-stats-chart-card h3 {
  margin: 0 0 10px;
  color: #1f3f77;
}

.my-stats-empty-chart {
  margin: 0;
  color: #60729c;
}

.my-stats-pie-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.my-stats-pie-wrap {
  width: 220px;
  height: 220px;
  position: relative;
  margin: 0 auto;
}

.my-stats-pie {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.my-stats-pie-empty {
  background: #e9efff;
}

.my-stats-pie-segment {
  cursor: pointer;
  transition: filter 0.18s ease, stroke-width 0.18s ease;
  stroke: transparent;
  stroke-width: 0;
}

.my-stats-pie-segment:hover,
.my-stats-pie-segment.is-active,
.my-stats-pie-segment:focus-visible {
  filter: brightness(1.06);
  stroke: #ffffff;
  stroke-width: 2;
  outline: none;
}

.my-stats-pie-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d8e5ff;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 2;
}

.my-stats-pie-center strong {
  color: #1f3f77;
  font-size: 24px;
  line-height: 1;
}

.my-stats-pie-center small {
  color: #60729c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.my-stats-pie-tooltip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -8px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  max-width: 180px;
  background: rgba(20, 31, 56, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(13, 25, 48, 0.28);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.my-stats-pie-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -18px) scale(1);
}

.my-stats-pie-legend {
  display: grid;
  gap: 10px;
}

.my-stats-legend-row {
  display: grid;
  gap: 6px;
}

.my-stats-legend-label {
  color: #35508a;
  font-size: 13px;
  font-weight: 700;
}

.my-stats-legend-track {
  height: 22px;
  border-radius: 999px;
  background: #e8eeff;
  overflow: hidden;
  border: 1px solid #d8e2fb;
}

.my-stats-legend-fill {
  height: 100%;
  min-width: 92px;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
}

.my-stats-legend-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.my-stats-legend-metric strong {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
}

.my-stats-legend-metric small {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 2px 6px;
}

.my-stats-legend-fill.is-zero {
  opacity: 0.65;
}

@media (max-width: 900px) {
  .my-stats-cards {
    grid-template-columns: 1fr;
  }

  .my-stats-pie-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.register-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #51648f;
  font-size: 13px;
}

.register-check input {
  width: 16px;
  height: 16px;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 14px;
}

.promo-modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(9, 18, 40, 0.62);
}

.promo-modal-panel {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #d6e3ff;
  background: #fff;
  box-shadow: 0 24px 52px rgba(12, 28, 70, 0.34);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.promo-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #cddcff;
  background: #fff;
  color: #3a568f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.promo-modal-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e1ebff;
  display: block;
}

.promo-modal-copy {
  color: #264073;
  font-size: 15px;
  line-height: 1.5;
}

.promo-modal-copy h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--brand-primary-dark);
}

.promo-modal-copy p {
  margin: 0;
}

.promo-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-modal-optout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #486092;
  font-size: 13px;
  font-weight: 600;
}

.promo-modal-optout input {
  width: 16px;
  height: 16px;
}

.promo-modal-action {
  min-height: 36px;
}

@media (max-width: 640px) {
  .promo-modal-panel {
    padding: 14px;
    gap: 10px;
  }

  .promo-modal-copy h3 {
    font-size: 20px;
  }

  .promo-modal-copy {
    font-size: 14px;
  }

  .promo-modal-footer {
    align-items: stretch;
  }

  .promo-modal-action {
    width: 100%;
  }
}

textarea {
  resize: none;
}

.pub-feed {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.pub-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.pub-feed-head h2 {
  margin: 0;
  color: var(--brand-primary-dark);
}

.pub-feed-head p {
  margin: 5px 0 0;
  color: #60729c;
  font-size: 14px;
}

.pub-feed-cta {
  margin-top: 10px;
  border: 1px solid #d8e5ff;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--brand-primary-soft-2);
  color: #35508a;
  font-weight: 600;
}

.pub-feed-toolbar {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.pub-feed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-feed-chip {
  border: 1px solid #d8e5ff;
  background: #f7faff;
  color: #415c94;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pub-feed-chip.is-active {
  background: #0558a8;
  color: #fff;
  border-color: #0558a8;
}

.pub-feed-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.pub-feed-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pub-feed-search input {
  border: 1px solid #d8e2fb;
  border-radius: 9px;
  padding: 9px 11px;
  font-family: inherit;
}

.pub-feed-search button {
  border: 1px solid #0558a8;
  border-radius: 9px;
  background: #0558a8;
  color: #fff;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--btn-cta-shadow);
}

.pub-feed-search button:hover,
.specialty-doctors-modal-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(4, 69, 135, 0.3), 0 0 0 1px rgba(5, 88, 168, 0.38);
}

.pub-feed-create-btn,
.pub-feed-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pub-feed-search-btn {
  min-height: 34px;
}

.pub-feed-create-btn-mobile {
  display: none;
}

.pub-feed-create-btn {
  gap: 8px;
}

.pub-feed-create-btn span[aria-hidden="true"],
.pub-feed-search-btn span[aria-hidden="true"] {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.pub-feed-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.pub-feed-card {
  border: 1px solid #e2eafe;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.pub-feed-card-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
}

.pub-feed-card-head img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid #dbe6ff;
}

.pub-feed-doctor-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.pub-feed-doctor-link-photo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.pub-feed-doctor-link-name {
  font-weight: 700;
  color: #1b335f;
}

.pub-feed-doctor-link-name:hover {
  color: var(--brand-primary);
}

.pub-feed-card-head h4 {
  margin: 0;
  color: #1b335f;
  font-size: 15px;
}

.pub-feed-card-head p {
  margin: 3px 0 0;
  color: #61729b;
  font-size: 12px;
}

.pub-feed-verified {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 700;
}

.pub-feed-card-text {
  margin: 10px 0;
  color: #2d426e;
  line-height: 1.45;
}

.pub-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pub-feed-tags span {
  background: #eef4ff;
  color: #36579a;
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 8px;
}

.pub-feed-card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 7px;
}

.pub-feed-photo-btn {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.pub-feed-media-block {
  margin-top: 10px;
  border: 1px solid #dee8ff;
  border-radius: 12px;
  background: #f9fbff;
  padding: 10px;
}

.pub-feed-card-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e1e9ff;
}

.pub-feed-card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-feed-action-btn {
  border: 1px solid #d8e4ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #38558f;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pub-feed-action-btn-right {
  margin-left: auto;
}

.pub-feed-action-btn.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.pub-feed-comment-box {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.pub-feed-comment-box[hidden] {
  display: none;
}

.pub-feed-comment-box input[type="text"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d9e4ff;
  border-radius: 10px;
  padding: 9px;
  font-family: inherit;
}

.pub-feed-emoji-wrap {
  position: relative;
  width: 100%;
  display: block;
  overflow: visible;
}

.pub-feed-emoji-wrap input[type="text"] {
  width: 100%;
  padding-right: 40px;
}

.pub-feed-more-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.pub-feed-emoji-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid #d8e4ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #2f5fd9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.pub-feed-emoji-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 220;
  width: 236px;
  border: 1px solid #d7e4ff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 45, 95, 0.16);
  padding: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.pub-feed-emoji-menu:not([hidden]) {
  display: grid;
}

.pub-feed-emoji-menu[hidden] {
  display: none !important;
}

.pub-feed-emoji-option {
  border: 1px solid #e1e9fd;
  background: #fbfdff;
  border-radius: 8px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pub-feed-emoji-option:hover {
  background: #eef5ff;
  border-color: #bdd1ff;
}

.pub-feed-comments-thread {
  display: grid;
  gap: 8px;
}

.pub-feed-comment-tools {
  display: flex;
  justify-content: flex-end;
}

.pub-feed-comment-collapse-btn {
  border: 1px solid #d7e4ff;
  background: #f8fbff;
  color: #2f5fd9;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pub-feed-comment-collapse-btn:hover {
  border-color: #adc6ff;
  background: #edf4ff;
}

.pub-feed-comments-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.pub-feed-comments-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 54, 0.62);
  backdrop-filter: blur(2px);
}

.pub-feed-comments-modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 94vw);
  margin: min(8vh, 52px) auto;
  border-radius: 14px;
  border: 1px solid #d5e3ff;
  background: #fff;
  box-shadow: 0 22px 55px rgba(10, 29, 71, 0.35);
  overflow: hidden;
}

.pub-feed-comments-modal-panel>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2eafe;
}

.pub-feed-comments-modal-panel>header h3 {
  margin: 0;
  color: #1c3463;
}

.pub-feed-comments-modal-panel>header button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2b4e92;
  cursor: pointer;
  font-size: 16px;
}

.pub-feed-comments-modal-body {
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.pub-feed-comments-modal-footer {
  border-top: 1px solid #e2eafe;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: #fbfdff;
}

.pub-feed-comments-modal-footer input[type="text"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d9e4ff;
  border-radius: 10px;
  padding: 9px;
  font-family: inherit;
}

.pub-feed-comments-empty {
  margin: 0;
  color: #60729c;
  font-size: 12px;
}

.pub-feed-comment-item {
  border: 1px solid #e1e9fd;
  border-radius: 10px;
  background: #fbfdff;
  padding: 8px;
}

.pub-feed-comment-level-1,
.pub-feed-comment-level-2,
.pub-feed-comment-level-3 {
  margin-left: 18px;
}

.pub-feed-comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #5f7199;
  font-size: 11px;
}

.pub-feed-comment-head strong {
  color: #1f3f77;
  font-size: 12px;
}

.pub-feed-comment-pill {
  border-radius: 999px;
  border: 1px solid #cce0ff;
  background: #eef5ff;
  color: var(--brand-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
}

.pub-feed-comment-edited {
  color: var(--brand-primary);
  font-weight: 700;
}

.pub-feed-comment-item p {
  margin: 5px 0 0;
  color: #30466f;
  font-size: 13px;
  line-height: 1.35;
}

.pub-feed-comment-row-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pub-feed-comment-like {
  border: 1px solid #d8e4ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #38558f;
  padding: 4px 9px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pub-feed-comment-like.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.pub-feed-likes-chip {
  border: 1px solid #d8e4ff;
  border-radius: 999px;
  background: #f8fbff;
  color: #2f5fd9;
  padding: 4px 9px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pub-feed-likes-chip:hover {
  background: #edf4ff;
  border-color: #adc6ff;
}

.pub-feed-comment-reply {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pub-feed-comment-children {
  margin-top: 7px;
  display: grid;
  gap: 7px;
}

.pub-feed-reply-modal {
  position: fixed;
  inset: 0;
  z-index: 184;
}

.pub-feed-reply-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 54, 0.62);
  backdrop-filter: blur(2px);
}

.pub-feed-reply-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  margin: min(14vh, 110px) auto;
  border-radius: 14px;
  border: 1px solid #d5e3ff;
  background: #fff;
  box-shadow: 0 22px 55px rgba(10, 29, 71, 0.35);
  overflow: hidden;
}

.pub-feed-reply-modal-panel>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2eafe;
}

.pub-feed-reply-modal-panel>header h3 {
  margin: 0;
  color: #1c3463;
}

.pub-feed-reply-modal-panel>header button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2b4e92;
  cursor: pointer;
  font-size: 16px;
}

.pub-feed-reply-modal-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.pub-feed-reply-context {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
}

.pub-feed-reply-snippet {
  margin: 0;
  font-size: 12px;
  color: #5f7199;
  border: 1px dashed #cbdafd;
  border-radius: 8px;
  background: #f6f9ff;
  padding: 8px;
}

.pub-feed-reply-modal-body input[type="text"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d9e4ff;
  border-radius: 10px;
  padding: 9px;
  font-family: inherit;
}

.pub-feed-likes-modal {
  position: fixed;
  inset: 0;
  z-index: 183;
}

.pub-feed-likes-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 54, 0.62);
  backdrop-filter: blur(2px);
}

.pub-feed-likes-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 94vw);
  margin: min(14vh, 110px) auto;
  border-radius: 14px;
  border: 1px solid #d5e3ff;
  background: #fff;
  box-shadow: 0 22px 55px rgba(10, 29, 71, 0.35);
  overflow: hidden;
}

.pub-feed-likes-modal-panel>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2eafe;
}

.pub-feed-likes-modal-panel>header h3 {
  margin: 0;
  color: #1c3463;
  font-size: 16px;
}

.pub-feed-likes-modal-panel>header button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2b4e92;
  cursor: pointer;
  font-size: 16px;
}

.pub-feed-likes-modal-body {
  max-height: min(56vh, 440px);
  overflow: auto;
  padding: 12px;
}

.pub-feed-likes-modal-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pub-feed-likes-modal-body li {
  border: 1px solid #e1e9fd;
  border-radius: 10px;
  background: #fbfdff;
  padding: 8px 10px;
  color: #30466f;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pub-feed-likes-modal-body li small {
  color: #60729c;
  font-size: 11px;
  white-space: nowrap;
}

.pub-feed-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 185;
}

.pub-feed-photo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 54, 0.68);
  backdrop-filter: blur(2px);
}

.pub-feed-photo-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  margin: min(10vh, 70px) auto;
  border-radius: 14px;
  border: 1px solid #d5e3ff;
  background: #fff;
  box-shadow: 0 22px 55px rgba(10, 29, 71, 0.35);
  overflow: hidden;
}

.pub-feed-photo-modal-panel>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2eafe;
}

.pub-feed-photo-modal-panel>header h3 {
  margin: 0;
  color: #1c3463;
  font-size: 16px;
}

.pub-feed-photo-modal-panel>header button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2b4e92;
  cursor: pointer;
  font-size: 16px;
}

.pub-feed-photo-modal-body {
  padding: 12px;
  display: grid;
  place-items: center;
  max-height: min(76vh, 780px);
  overflow: auto;
  background: #f8fbff;
}

.pub-feed-photo-modal-body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #dbe7ff;
  background: #fff;
}

.pub-feed-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 185;
}

.pub-feed-edit-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 54, 0.62);
  backdrop-filter: blur(2px);
}

.pub-feed-edit-modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 94vw);
  margin: min(8vh, 52px) auto;
  border-radius: 14px;
  border: 1px solid #d5e3ff;
  background: #fff;
  box-shadow: 0 22px 55px rgba(10, 29, 71, 0.35);
  overflow: hidden;
}

.pub-feed-edit-modal-panel>header,
.pub-feed-edit-modal-panel>footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2eafe;
}

.pub-feed-edit-modal-panel>header h3 {
  margin: 0;
  color: #1c3463;
}

.pub-feed-edit-modal-panel>header button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2b4e92;
  cursor: pointer;
  font-size: 16px;
}

.pub-feed-edit-modal-panel>footer {
  border-top: 1px solid #e2eafe;
  border-bottom: 0;
  justify-content: flex-end;
}

.pub-feed-edit-modal-body {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.pub-feed-edit-modal-body label {
  display: grid;
  gap: 6px;
}

.pub-feed-edit-modal-body textarea {
  width: 100%;
  border: 1px solid #d9e4ff;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.pub-feed-edit-photos {
  display: grid;
  gap: 8px;
}

.pub-feed-edit-photos strong {
  color: #2b4e92;
  font-size: 13px;
}

.pub-feed-edit-photos-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.pub-feed-edit-photo-item {
  border: 1px solid #dce7ff;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.pub-feed-edit-photo-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e1e9ff;
}

.pub-feed-edit-photo-item button {
  border: 1px solid #d8e4ff;
  border-radius: 999px;
  background: #fff;
  color: #38558f;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.pub-feed-replying-to {
  border: 1px dashed #cbdafd;
  border-radius: 8px;
  background: #f6f9ff;
  color: #3d5992;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 700;
}

.pub-feed-replying-to button {
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 700;
  cursor: pointer;
}

.pub-feed-replying-clear-btn {
  border: 1px solid #d6e3ff;
  background: #fff;
  color: #365897;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.pub-feed-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pub-feed-cancel-comment {
  border: 1px solid #d8e4ff;
  border-radius: 8px;
  background: #fff;
  color: #48618f;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.pub-feed-send-comment {
  justify-self: end;
  border: 0;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.pub-feed-loading,
.pub-feed-end,
.pub-feed-empty {
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  color: #536896;
  background: #f7faff;
  border: 1px solid #e2eafe;
}

.pub-feed-composer-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.pub-feed-composer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 56, 0.58);
  backdrop-filter: blur(3px);
}

.pub-feed-composer-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  margin: min(8vh, 56px) auto;
  border-radius: 14px;
  border: 1px solid #d0defe;
  background: #fff;
  box-shadow: 0 24px 55px rgba(12, 31, 75, 0.35);
  overflow: hidden;
}

.pub-feed-composer-panel>header,
.pub-feed-composer-panel>footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e3eafd;
}

.pub-feed-composer-panel>footer {
  border-bottom: 0;
  border-top: 1px solid #e3eafd;
  justify-content: flex-end;
}

.pub-feed-composer-panel>header h3 {
  margin: 0;
  color: #1c3463;
}

.pub-feed-composer-panel>header button {
  border: 0;
  background: #edf3ff;
  color: #2e4f90;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
}

.pub-feed-composer-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.pub-feed-composer-body label {
  display: grid;
  gap: 5px;
}

.pub-feed-composer-body label>span {
  color: #304f8f;
  font-size: 12px;
  font-weight: 700;
}

.pub-feed-composer-body input[type="text"],
.pub-feed-composer-body input[type="file"] {
  border: 1px solid #d9e4ff;
  border-radius: 10px;
  padding: 9px;
  font-family: inherit;
}

.pub-feed-composer-body input[type="text"] {
  min-height: 40px;
}

.pub-feed-dropzone {
  border: 2px dashed #bcd0ff;
  border-radius: 12px;
  background: #f7faff;
  color: #3e5c96;
  display: grid;
  gap: 4px;
  text-align: center;
  padding: 16px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pub-feed-dropzone.is-dragover {
  border-color: var(--brand-primary);
  background: #ecf3ff;
}

.pub-feed-dropzone span {
  font-weight: 700;
}

.pub-feed-dropzone small {
  color: #6075a5;
  font-size: 12px;
}

.pub-feed-composer-help {
  margin: 0;
  color: #5f7198;
  font-size: 12px;
}

.pub-feed-composer-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.pub-feed-composer-preview-item {
  margin: 0;
  border: 1px solid #dde7ff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #f8fbff;
}

.pub-feed-composer-preview-item img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.pub-feed-composer-preview-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 31, 72, 0.86);
  color: #fff;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.pub-feed-composer-empty {
  margin: 0;
  grid-column: 1 / -1;
  border: 1px dashed #cedcfb;
  border-radius: 10px;
  padding: 12px;
  color: #5d719d;
  text-align: center;
  background: #f8fbff;
}

.pub-feed-composer-error {
  margin: 0;
  color: #b23a4a;
  font-size: 12px;
  font-weight: 700;
}

.doctor-public-posts {
  display: grid;
  gap: 9px;
}

.doctor-public-post-item {
  border: 1px solid #e4ebff;
  border-radius: 11px;
  padding: 10px;
  background: #fbfdff;
}

.doctor-public-post-item p {
  margin: 0;
}

.doctor-public-post-thumbs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 6px;
}

.doctor-public-post-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2eaff;
}

.doctor-public-post-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #5f7198;
  font-size: 12px;
  font-weight: 700;
}

.about-screen {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.about-hero {
  border: 1px solid #dfe7fb;
  border-radius: 14px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 255, 0.95) 55%, rgba(236, 244, 255, 0.95) 100%),
    radial-gradient(circle at 85% 10%, rgba(65, 126, 255, 0.12), rgba(255, 255, 255, 0));
  padding: 18px;
  display: grid;
  gap: 8px;
}

.about-kicker {
  margin: 0;
  color: #3d64b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-hero h2 {
  margin: 0;
  color: #18284f;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.about-lead {
  margin: 0;
  color: #4b6190;
  font-size: 16px;
  line-height: 1.45;
}

.about-card {
  border: 1px solid #dfe7fb;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.about-card p {
  margin: 0;
  color: #3e527e;
  line-height: 1.6;
  font-size: 15px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-pillar-card {
  border: 1px solid #dfe7fb;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.about-pillar-card h3 {
  margin: 0;
  color: #223b70;
  font-size: 16px;
}

.about-pillar-card p {
  margin: 0;
  color: #5d709c;
  line-height: 1.5;
  font-size: 14px;
}

.about-directives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-directive-card {
  border: 1px solid #dfe7fb;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.about-directive-head {
  display: grid;
  gap: 4px;
}

.about-directive-head h3 {
  margin: 0;
  color: #1e3768;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-directive-media {
  min-height: 280px;
  border-radius: 18px;
  border: 2px dashed #c4d7ff;
  background:
    radial-gradient(circle at 22% 22%, rgba(96, 142, 255, 0.16), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.about-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-style: solid;
  min-height: 340px;
  height: 340px;
}

.about-carousel-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.about-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(17, 39, 86, 0.62);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
}

.about-carousel-arrow:hover {
  background: rgba(17, 39, 86, 0.82);
}

.about-carousel-arrow[data-about-carousel-prev] {
  left: 10px;
}

.about-carousel-arrow[data-about-carousel-next] {
  right: 10px;
}

.about-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -2px;
}

.about-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #b4c5eb;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.about-carousel-dot.is-active {
  background: #2f55a0;
  transform: scale(1.25);
}

.about-directive-media p {
  margin: 0;
  color: #4e6698;
  font-weight: 700;
}

.about-directive-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #2d4473;
  font-size: 16px;
  line-height: 1.35;
}

.about-directive-list--placeholder {
  color: #7d8eb4;
}

@media (max-width: 980px) {
  .about-hero h2 {
    font-size: 33px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .about-directives {
    grid-template-columns: 1fr;
  }

  .about-directive-head h3 {
    font-size: 24px;
  }

  .about-directive-media {
    min-height: 240px;
  }

  .about-carousel-image {
    min-height: 0;
  }

  .about-carousel {
    min-height: 300px;
    height: 300px;
  }

  .about-directive-list {
    font-size: 15px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pub-feed-comment-level-1,
  .pub-feed-comment-level-2,
  .pub-feed-comment-level-3 {
    margin-left: 10px;
  }

  .profile-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-horario-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-horario-add-day {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .about-hero {
    padding: 14px;
  }

  .about-hero h2 {
    font-size: 29px;
  }

  .about-lead {
    font-size: 14px;
  }

  .about-directive-card {
    padding: 12px;
  }

  .about-directive-head h3 {
    font-size: 22px;
  }

  .about-directive-media {
    min-height: 210px;
  }

  .about-carousel-image {
    min-height: 0;
  }

  .about-carousel {
    min-height: 250px;
    height: 250px;
  }

  .about-carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .about-directive-list {
    font-size: 14px;
    gap: 6px;
  }

  .profile-head {
    align-items: flex-start;
  }

  .profile-head h2 {
    font-size: 28px;
  }

  .profile-head p {
    font-size: 12px;
    line-height: 1.25;
  }

  .profile-back-btn {
    max-width: none;
    margin-top: -4px;
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 10px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .profile-step-mobile-open-btn {
    display: inline-flex;
    margin-bottom: 8px;
  }

  .profile-step-inline-content {
    display: none;
  }

  .profile-main-block>.profile-actions {
    display: none;
  }

  .profile-step-modal-panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .profile-step-modal-head h3 {
    font-size: 15px;
  }

  .profile-step-modal-actions {
    justify-content: space-between;
  }

  .profile-avatar-block .profile-share-btn {
    width: 100%;
    max-width: none;
    min-height: 40px;
    margin-top: 6px;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .profile-avatar-block .profile-share-icon {
    font-size: 15px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-inline-actions {
    flex-direction: column;
  }

  .profile-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-gallery-source-buttons,
  .profile-gallery-actions {
    grid-template-columns: 1fr;
  }

  .profile-social-grid {
    grid-template-columns: 1fr;
  }

  .profile-horario-row {
    grid-template-columns: 1fr;
  }

  .profile-phone-intl-wrap .iti {
    width: 100%;
  }

  .pub-feed-search {
    grid-template-columns: 1fr;
  }

  .pub-feed-search-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pub-feed-search-btn,
  .pub-feed-create-btn-mobile {
    width: 100%;
    min-height: 34px;
  }

  .pub-feed-create-btn-head {
    display: none;
  }

  .pub-feed-create-btn-mobile {
    display: inline-flex;
  }

  .pub-feed-card-gallery {
    grid-template-columns: 1fr;
  }
}