/* ===== Pulsar Medesk — Guest & Onboarding Styles ===== */
/* Sprint 1: Foundation + Guest Browsing */

/* ===== Onboarding ===== */
.pm-onboarding {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--portal-header-total-height) - var(--portal-tabs-height));
  padding: 24px 16px;
  overflow: hidden;
}

.pm-onboarding-slides {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 340px;
  overflow: hidden;
  contain: layout paint;
  touch-action: pan-y;
}

.pm-onboarding-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.pm-onboarding-icon {
  margin-bottom: 24px;
}

.pm-onboarding-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--portal-text);
  margin-bottom: 10px;
}

.pm-onboarding-desc {
  font-size: 0.9375rem;
  color: var(--portal-text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

/* Dots */
.pm-onboarding-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--portal-border);
  transition: all 0.25s ease;
}

.pm-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--portal-primary);
}

/* Actions */
.pm-onboarding-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.pm-onboarding-btn {
  width: 100%;
}

.pm-onboarding-skip {
  color: var(--portal-text-secondary);
  font-size: 0.875rem;
}

/* ===== Guest Home ===== */
.pm-guest-home {
  padding-bottom: 16px;
}

.pm-hero {
  background: var(--portal-gradient);
  padding: 32px 20px 28px;
  border-radius: 0 0 var(--portal-radius-xl) var(--portal-radius-xl);
  margin-bottom: 20px;
}

.pm-hero-content {
  text-align: center;
}

.pm-hero-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pm-hero-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pm-hero-cta {
  background: #fff;
  color: var(--portal-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.pm-hero-cta:active {
  transform: scale(0.96);
}

/* ===== Public Provider Directory ===== */
.pm-provider-directory {
  padding: 16px 14px calc(18px + var(--portal-tabs-height));
  max-width: 1080px;
  margin-inline: auto;
}

.pm-provider-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 14px;
}

.pm-provider-title-block {
  min-width: 0;
}

.pm-provider-title {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.pm-provider-subtitle {
  margin: 4px 0 0;
  color: var(--portal-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pm-provider-section {
  margin-top: 14px;
}

.pm-provider-section-header {
  margin-bottom: 10px;
}

.pm-provider-search {
  position: relative;
  margin-bottom: 10px;
}

.pm-provider-search i,
.pm-provider-search svg {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--portal-text-secondary);
  pointer-events: none;
}

.pm-provider-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: var(--portal-surface);
  color: var(--portal-text);
  padding: 0 44px 0 14px;
  font: inherit;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[dir="ltr"] .pm-provider-search input {
  padding: 0 14px 0 44px;
}

.pm-provider-search input:focus {
  outline: none;
  border-color: rgba(var(--portal-primary-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--portal-primary-rgb), 0.1);
}

.pm-provider-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.pm-provider-categories::-webkit-scrollbar {
  display: none;
}

.pm-provider-category {
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: var(--portal-surface);
  color: var(--portal-text);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.pm-provider-category span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-provider-category i,
.pm-provider-category svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.pm-provider-category.active {
  border-color: rgba(var(--portal-primary-rgb), 0.42);
  background: rgba(var(--portal-primary-rgb), 0.09);
  color: var(--portal-primary);
  box-shadow: inset 0 0 0 1px rgba(var(--portal-primary-rgb), 0.08);
}

.pm-provider-category:hover {
  border-color: rgba(var(--portal-primary-rgb), 0.28);
  background: rgba(var(--portal-primary-rgb), 0.04);
}

@media (min-width: 560px) {
  .pm-provider-category {
    flex-basis: calc(33.333% - 8px);
  }
}

@media (min-width: 700px) {
  .pm-provider-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pm-provider-category {
    flex: 0 0 auto;
  }
}

.pm-provider-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pm-provider-card {
  border: 1px solid rgba(221, 230, 242, 0.95);
  border-radius: 8px;
  background: var(--portal-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  padding: 12px;
  animation: pm-provider-enter 260ms ease both;
  animation-delay: var(--provider-enter-delay, 0ms);
}

@keyframes pm-provider-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pm-provider-card-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.pm-provider-logo,
.pm-provider-logo-fallback {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
}

.pm-provider-logo {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.pm-provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.pm-provider-logo-fallback {
  display: grid;
  place-items: center;
  color: var(--portal-primary);
  background: rgba(var(--portal-primary-rgb), 0.09);
}

.pm-provider-logo-fallback i,
.pm-provider-logo-fallback svg {
  width: 19px;
  height: 19px;
}

.pm-provider-info {
  min-width: 0;
  flex: 1;
}

.pm-provider-info h3 {
  margin: 0;
  color: var(--portal-text);
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-provider-info p {
  margin: 4px 0 0;
  color: var(--portal-text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pm-provider-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pm-provider-badges span {
  max-width: 100%;
  border-radius: 8px;
  background: #eef6f2;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-provider-badges span:nth-child(2n) {
  background: #eef2ff;
  color: #3730a3;
}

.pm-provider-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.pm-provider-action {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.pm-provider-empty {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--portal-text-secondary);
  text-align: center;
  padding: 18px 12px;
  font-size: 0.88rem;
}

.pm-provider-card-skeleton {
  min-height: 132px;
  background: linear-gradient(90deg, rgba(226, 234, 246, 0.88) 25%, rgba(245, 249, 255, 0.98) 50%, rgba(226, 234, 246, 0.88) 75%);
  background-size: 200% 100%;
  animation: portal-shimmer 1.15s infinite;
}

@media (min-width: 680px) {
  .pm-provider-directory {
    padding-inline: 22px;
  }

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

@media (min-width: 1024px) {
  .pm-provider-directory {
    padding-top: 22px;
  }

  .pm-provider-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pm-portal-banners {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86%, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pm-portal-banners::-webkit-scrollbar {
  display: none;
}

.pm-portal-banners.pm-portal-banners-single {
  grid-auto-columns: 100%;
}

.pm-portal-banner-card {
  position: relative;
  margin: 0;
  border-radius: var(--portal-radius-lg);
  border: 1px solid var(--portal-divider);
  overflow: hidden;
  background: var(--portal-surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  scroll-snap-align: start;
}

.pm-portal-banner-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  background: #eef2f7;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pm-portal-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0.42) 38%,
    rgba(255, 255, 255, 0.08) 62%
  ),
  #e9eef5;
  background-size: 220% 100%;
  animation: portal-shimmer 1.15s linear infinite;
}

.pm-portal-banner-card.is-loaded::before {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pm-portal-banner-card.is-loaded img {
  opacity: 1;
}

@media (min-width: 720px) {
  .pm-portal-banners {
    grid-auto-columns: minmax(48%, 1fr);
  }

  .pm-portal-banners.pm-portal-banners-single {
    grid-auto-columns: 100%;
  }

  .pm-portal-banner-card img {
    aspect-ratio: 16 / 5;
  }
}

/* Sections */
.pm-section {
  padding: 0 16px;
  margin-bottom: 20px;
}

.pm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pm-section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--portal-text);
  margin-bottom: 12px;
}

.pm-section-header .pm-section-title {
  margin-bottom: 0;
}

/* Specialties Grid */
.pm-specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.pm-specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--portal-surface);
  border: 1px solid var(--portal-divider);
  border-radius: var(--portal-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 76px;
}

.pm-specialty-card:active {
  transform: scale(0.95);
  background: var(--portal-primary-light);
}

.pm-specialty-card.pm-specialty-active {
  border-color: var(--portal-primary);
  background: var(--portal-primary-light);
  box-shadow: 0 0 0 2px rgba(var(--portal-primary-rgb, 59, 130, 246), 0.15);
}

.pm-specialty-icon {
  width: 32px;
  height: 32px;
  color: var(--portal-primary);
  display: grid;
  place-items: center;
}

.pm-specialty-icon svg {
  width: 22px;
  height: 22px;
}

.pm-specialty-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--portal-text);
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (min-width: 430px) {
  .pm-specialties-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Doctor Cards */
.pm-doctors-list,
.pm-doctors-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 540px) {
  .pm-doctors-list,
  .pm-doctors-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pm-doctor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--portal-surface);
  border: 1px solid var(--portal-divider);
  border-radius: var(--portal-radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pm-doctor-card:active {
  background: var(--portal-primary-light);
  transform: scale(0.97);
}

.pm-doctor-avatar {
  flex-shrink: 0;
}

.pm-doctor-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.pm-doctor-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--portal-primary-light);
  display: grid;
  place-items: center;
  color: var(--portal-primary);
}

.pm-doctor-placeholder svg {
  width: 24px;
  height: 24px;
}

.pm-doctor-placeholder-lg {
  width: 80px;
  height: 80px;
}

.pm-doctor-placeholder-lg svg {
  width: 36px;
  height: 36px;
}

.pm-doctor-info {
  flex: 1;
  min-width: 0;
}

.pm-doctor-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--portal-text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.pm-doctor-specialty {
  font-size: 0.75rem;
  color: var(--portal-text-secondary);
  margin-bottom: 4px;
}

.pm-doctor-slot {
  font-size: 0.6875rem;
  color: var(--portal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pm-doctor-bio {
  font-size: 0.6875rem;
  color: var(--portal-text-muted);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-doctor-action {
  display: none;
}

/* Guest public appointments and services */
.pm-guest-appointments,
.pm-public-services-list {
  display: grid;
  gap: 10px;
}

.pm-appointment-entry-card,
.pm-public-service-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--portal-divider);
  border-radius: var(--portal-radius-lg);
  background: var(--portal-surface);
  color: var(--portal-text);
  text-align: start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pm-appointment-entry-card {
  cursor: pointer;
}

.pm-appointment-entry-card:active {
  background: var(--portal-primary-light);
  transform: scale(0.985);
}

.pm-appointment-entry-icon,
.pm-public-service-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--portal-primary-light);
  color: var(--portal-primary);
}

.pm-appointment-entry-icon svg,
.pm-public-service-icon svg {
  width: 20px;
  height: 20px;
}

.pm-appointment-entry-body,
.pm-public-service-body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pm-appointment-entry-body strong,
.pm-public-service-body strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.pm-appointment-entry-body small,
.pm-public-service-body small {
  color: var(--portal-text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
}

.pm-appointment-entry-cta,
.pm-public-service-price {
  flex: 0 0 auto;
  color: var(--portal-primary);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pm-public-service-price {
  font-size: 0.82rem;
}

@media (min-width: 680px) {
  .pm-guest-appointments,
  .pm-public-services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Login CTA Section */
.pm-login-cta-section {
  margin-top: 8px;
}

.pm-login-cta-card {
  background: var(--portal-primary-light);
  border-radius: var(--portal-radius-lg);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pm-login-cta-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--portal-text);
}

.pm-login-cta-card p {
  font-size: 0.8125rem;
  color: var(--portal-text-secondary);
  margin-bottom: 4px;
}

/* ===== Browse Doctors — Search & Filters ===== */
.pm-browse-doctors {
  padding-bottom: 16px;
}

.pm-search-bar {
  padding: 12px 16px;
}

.pm-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pm-search-icon {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--portal-text-muted);
  pointer-events: none;
}

html[dir="ltr"] .pm-search-icon {
  right: auto;
  left: 14px;
}

.pm-search-input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  background: var(--portal-surface);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--portal-text);
  outline: none;
  transition: border-color 0.2s;
}

html[dir="ltr"] .pm-search-input {
  padding: 12px 14px 12px 42px;
}

.pm-search-input:focus {
  border-color: var(--portal-primary);
}

/* Filter Chips */
.pm-filter-chips {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pm-filter-chips::-webkit-scrollbar {
  display: none;
}

.pm-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--portal-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pm-chip.active {
  background: var(--portal-primary);
  color: #fff;
  border-color: var(--portal-primary);
}

/* ===== Doctor Profile ===== */
.pm-doctor-profile {
  padding-bottom: 16px;
}

.pm-profile-header-card {
  background: var(--portal-gradient);
  padding: 28px 20px 24px;
  border-radius: 0 0 var(--portal-radius-xl) var(--portal-radius-xl);
  text-align: center;
  margin-bottom: 16px;
}

.pm-profile-avatar {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.pm-profile-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

.pm-profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pm-profile-specialty {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.pm-profile-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.pm-profile-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-profile-section {
  padding: 0 16px;
  margin-bottom: 16px;
}

.pm-profile-bio {
  font-size: 0.875rem;
  color: var(--portal-text-secondary);
  line-height: 1.7;
}

/* Date Strip */
.pm-date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pm-date-strip::-webkit-scrollbar {
  display: none;
}

.pm-date-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 10px 8px;
  border-radius: var(--portal-radius-md);
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pm-date-btn.active {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
  color: #fff;
}

.pm-date-btn.active .pm-date-day,
.pm-date-btn.active .pm-date-num,
.pm-date-btn.active .pm-date-today {
  color: #fff;
}

.pm-date-day {
  font-size: 0.6875rem;
  color: var(--portal-text-secondary);
  font-weight: 500;
}

.pm-date-num {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--portal-text);
}

.pm-date-today {
  font-size: 0.625rem;
  color: var(--portal-primary);
  font-weight: 600;
}

/* ===== Sprint 2: Guest Booking ===== */

/* Steps Progress Bar */
.pm-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px 24px;
}

.pm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.pm-step.active {
  opacity: 1;
}

.pm-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--portal-border);
  color: var(--portal-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}

.pm-step.active .pm-step-num {
  background: var(--portal-primary);
  color: #fff;
}

.pm-step.completed .pm-step-num {
  background: var(--portal-success, #22c55e);
  color: #fff;
}

.pm-step-label {
  font-size: 0.6875rem;
  color: var(--portal-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.pm-step.active .pm-step-label {
  color: var(--portal-primary);
  font-weight: 600;
}

.pm-step-line {
  flex: 1;
  height: 2px;
  background: var(--portal-border);
  margin: 0 6px;
  margin-bottom: 18px;
  min-width: 20px;
}

/* Guest Booking Steps */
.pm-guest-booking {
  padding: 0 16px 24px;
}

.pm-gb-step {
  display: none;
}

.pm-gb-step.active {
  display: block;
}

.pm-gb-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--portal-text);
  margin-bottom: 16px;
}

.pm-gb-subtitle {
  font-size: 0.875rem;
  color: var(--portal-text-secondary);
  margin-bottom: 4px;
}

.pm-gb-phone-display {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--portal-text);
  margin-bottom: 20px;
}

.pm-gb-doctor-summary {
  margin-bottom: 16px;
}

.pm-gb-next-btn {
  width: 100%;
  margin-top: 16px;
}

.pm-gb-back-btn {
  flex: 0 0 auto;
}

.pm-gb-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.pm-gb-btn-row .portal-btn-primary {
  flex: 1;
}

/* Form Components */
.pm-form-group {
  margin-bottom: 16px;
}

.pm-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--portal-text);
  margin-bottom: 6px;
}

.pm-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--portal-border);
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--portal-text);
  background: var(--portal-surface, #fff);
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.pm-form-input:focus {
  outline: none;
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(var(--portal-primary-rgb, 79,70,229), 0.1);
}

.pm-phone-row {
  display: flex;
  gap: 8px;
}

.pm-country-select {
  flex: 0 0 auto;
  width: 110px;
  padding: 10px 8px;
  border: 1.5px solid var(--portal-border);
  border-radius: 10px;
  font-size: 0.875rem;
  background: var(--portal-surface, #fff);
  color: var(--portal-text);
  font-family: inherit;
}

.pm-phone-input {
  flex: 1;
}

.pm-checkbox-group {
  margin-top: 20px;
}

.pm-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--portal-text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.pm-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--portal-primary);
}

.pm-link {
  color: var(--portal-primary);
  text-decoration: underline;
  font-weight: 500;
}

.pm-legal-consent-footer {
  width: min(100%, 620px);
  margin: 18px auto 0;
  padding: 0 8px;
  color: #7a8595;
  font-size: 0.84rem;
  line-height: 1.65;
  text-align: center;
}

.pm-legal-consent-footer .pm-link {
  color: #245b9d;
  font-weight: 800;
  text-underline-offset: 3px;
}

.pm-legal-consent-login {
  margin-top: 0;
  font-size: 0.8rem;
}

#portal-login.portal-login-overlay .pm-legal-consent-login {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.34);
}

#portal-login.portal-login-overlay .pm-legal-consent-login .pm-link {
  color: #fff;
}

/* Resend Row */
.pm-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.pm-resend-row .portal-timer {
  font-size: 0.8125rem;
  color: var(--portal-text-muted);
}

/* Summary Card */
.pm-gb-summary-card {
  background: var(--portal-surface, #fff);
  border: 1.5px solid var(--portal-border);
  border-radius: 12px;
  padding: 16px;
}

.pm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.pm-summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--portal-text-muted);
}

.pm-summary-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--portal-text);
}

.pm-summary-divider {
  height: 1px;
  background: var(--portal-border);
  margin: 4px 0;
}

/* Success View */
.pm-gb-success {
  text-align: center;
  padding: 24px 0;
}

.pm-gb-success-icon {
  margin-bottom: 16px;
}

.pm-gb-success .pm-gb-title {
  color: var(--portal-success, #22c55e);
}

.pm-gb-success .pm-gb-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pm-gb-success-summary {
  text-align: start;
  margin-bottom: 24px;
}

.pm-gb-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-gb-success-actions .portal-btn {
  width: 100%;
}

/* ===== Register Page ===== */
.pm-register {
  padding: 24px 16px;
}

.pm-register-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.pm-register-back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--portal-border, #dde3ea);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  color: var(--portal-primary);
  cursor: pointer;
  margin-bottom: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pm-register-back-btn:hover {
  background: rgba(var(--portal-primary-rgb, 79, 70, 229), 0.08);
  border-color: var(--portal-primary);
}

.pm-register-back-btn svg {
  width: 18px;
  height: 18px;
}

html[dir="ltr"] .pm-register-back-btn svg {
  transform: scaleX(-1);
}

.pm-register-icon {
  margin-bottom: 12px;
}

.pm-register-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--portal-text);
  margin-bottom: 6px;
}

.pm-register-subtitle {
  font-size: 0.875rem;
  color: var(--portal-text-secondary);
}

.pm-register-form {
  max-width: 420px;
  margin: 0 auto;
}

.pm-gender-row {
  display: flex;
  gap: 10px;
}

.pm-radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid var(--portal-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--portal-text);
  transition: border-color 0.2s, background 0.2s;
}

.pm-radio-pill:has(input:checked) {
  border-color: var(--portal-primary);
  background: rgba(var(--portal-primary-rgb, 79,70,229), 0.06);
}

.pm-radio-pill input[type="radio"] {
  accent-color: var(--portal-primary);
}

.pm-register-submit {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  font-size: 1rem;
}

.pm-register-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--portal-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* OTP Modal Overlay (Register) */
.pm-otp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.pm-otp-modal {
  background: var(--portal-surface, #fff);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.pm-otp-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--portal-text);
  margin-bottom: 8px;
}

.pm-otp-modal-sub {
  font-size: 0.875rem;
  color: var(--portal-text-secondary);
  margin-bottom: 20px;
}

.pm-otp-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.pm-otp-modal-actions .portal-btn {
  flex: 1;
}

/* ===== Legal Pages (Privacy / Terms) ===== */
.pm-legal-page {
  padding: 0 16px 32px;
}

.pm-legal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
}

.pm-legal-back {
  background: none;
  border: none;
  padding: 6px;
  color: var(--portal-text);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.pm-legal-back:hover {
  background: var(--portal-border);
}

.pm-legal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0;
}

.pm-legal-lang-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1.5px solid var(--portal-border);
  border-radius: 10px;
  overflow: hidden;
}

.pm-legal-lang-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--portal-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.pm-legal-lang-btn.active {
  background: var(--portal-primary);
  color: #fff;
}

.pm-legal-content {
  line-height: 1.75;
  color: var(--portal-text);
}

.pm-legal-content h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--portal-text);
}

.pm-legal-content p {
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.pm-legal-content ul {
  padding-inline-start: 20px;
  margin-bottom: 10px;
}

.pm-legal-content li {
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.pm-legal-updated {
  font-size: 0.75rem;
  color: var(--portal-text-muted);
  font-style: italic;
}

/* ===== 1-Click Rebooking Link ===== */
.pm-rebook-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--portal-surface);
  border: 1px solid var(--portal-divider);
  border-radius: var(--portal-radius-md);
  font-size: 0.8125rem;
  color: var(--portal-primary);
  text-decoration: none;
  transition: background 0.15s;
}
.pm-rebook-link:active {
  background: var(--portal-primary-light);
}
.pm-rebook-link span {
  flex: 1;
}
.pm-rebook-link strong {
  font-weight: 700;
}

/* Slot Grid */
.pm-slots-grid {
  min-height: 80px;
}

.pm-slot-group {
  margin-bottom: 16px;
}

.pm-slot-period {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--portal-text-secondary);
  margin-bottom: 8px;
}

.pm-slot-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-slot-btn {
  padding: 10px 16px;
  border-radius: var(--portal-radius-sm);
  border: 1px solid var(--portal-border);
  background: var(--portal-surface);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--portal-text);
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-slot-btn:active {
  transform: scale(0.95);
}

.pm-slot-btn.selected {
  background: var(--portal-primary);
  color: #fff;
  border-color: var(--portal-primary);
}

/* Empty States */
.pm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 16px;
  text-align: center;
  color: var(--portal-text-secondary);
}

.pm-empty-text {
  font-size: 0.875rem;
  color: var(--portal-text-secondary);
  text-align: center;
  padding: 24px 16px;
}

.pm-empty-slots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  color: var(--portal-text-secondary);
  font-size: 0.875rem;
}

/* Guest Back Link in Login */
.portal-login-guest-back {
  text-align: center;
  margin-top: 8px;
}

.portal-login-guest-back button {
  font-size: 0.875rem;
}

@media (max-width: 430px) {
  .pm-onboarding {
    padding-top: 16px;
    justify-content: flex-start;
  }

  .pm-onboarding-slides {
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .pm-onboarding {
    max-width: 680px;
    margin-inline: auto;
    padding: 40px 28px;
  }

  .pm-onboarding-slides {
    max-width: 620px;
    height: 420px;
  }

  .pm-onboarding-title {
    font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.4rem);
  }

  .pm-onboarding-desc {
    max-width: 520px;
    font-size: 1.05rem;
  }

  .pm-guest-home {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 24px 24px;
  }

  .pm-specialties-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pm-doctors-list,
  .pm-doctors-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}


/* Provider directory: compact cards with deferred actions. */
.pm-provider-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pm-provider-card:hover {
  border-color: rgba(var(--portal-primary-rgb), 0.26);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.pm-provider-card:focus-visible {
  outline: 3px solid rgba(var(--portal-primary-rgb), 0.25);
  outline-offset: 2px;
}

.pm-provider-card-main {
  flex: 1 1 auto;
}

.pm-provider-card-affordance {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--portal-primary);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.88;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.pm-provider-card-affordance i,
.pm-provider-card-affordance svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.pm-provider-card:hover .pm-provider-card-affordance {
  opacity: 1;
  transform: translateX(-2px);
}

html[dir="ltr"] .pm-provider-card:hover .pm-provider-card-affordance {
  transform: translateX(2px);
}

.pm-provider-action-sheet[hidden] {
  display: none !important;
}

.pm-provider-action-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.pm-provider-action-sheet.is-open {
  pointer-events: auto;
}

.pm-provider-action-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  opacity: 0;
  transition: opacity 180ms ease;
}

.pm-provider-action-sheet.is-open .pm-provider-action-backdrop {
  opacity: 1;
}

.pm-provider-action-panel {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--portal-surface);
  box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.22);
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  transform: translateY(16px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.pm-provider-action-sheet.is-open .pm-provider-action-panel {
  transform: translateY(0);
  opacity: 1;
}

.pm-provider-action-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
}

.pm-provider-action-heading {
  padding-inline-start: 44px;
  padding-inline-end: 4px;
  margin-bottom: 14px;
}

.pm-provider-action-kicker {
  display: block;
  color: var(--portal-primary);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pm-provider-action-title {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
}

.pm-provider-action-subtitle {
  margin: 5px 0 0;
  color: var(--portal-text-secondary);
  font-size: 0.86rem;
}

.pm-provider-action-buttons {
  display: grid;
  gap: 9px;
}

.pm-provider-auth-switch-note {
  margin: 0 0 4px;
  border: 1px solid rgba(var(--portal-primary-rgb), 0.18);
  border-radius: 10px;
  background: rgba(var(--portal-primary-rgb), 0.06);
  color: var(--portal-text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
  padding: 10px 12px;
}

.pm-provider-sheet-action {
  min-height: 46px;
}

body.portal-provider-directory-neutral .pm-provider-directory {
  min-height: calc(100vh - var(--portal-header-total-height));
  min-height: calc(100dvh - var(--portal-header-total-height));
  padding-bottom: 24px;
}

/* ===== Public Welcome / Legal Entry ===== */
body.portal-welcome-route,
body.portal-legal-route {
  background: #fff;
}

body.portal-welcome-route .portal-header,
body.portal-welcome-route .portal-tabs,
body.portal-legal-route .portal-header,
body.portal-legal-route .portal-tabs {
  display: none !important;
}

body.portal-welcome-route .portal-main,
body.portal-legal-route .portal-main {
  max-width: none;
  margin: 0 !important;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.pm-welcome-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(18px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #f7f9fd;
  color: #172033;
}

.pm-welcome-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  background: #fff;
  box-shadow: 0 1px 18px rgba(15, 35, 70, 0.06);
}

.pm-welcome-topbar {
  position: relative;
  z-index: 1;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  direction: ltr;
}

.pm-welcome-lang {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  direction: ltr;
  border: 1px solid #e6ebf2;
  border-radius: 999px;
  background: #eef2f7;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82);
}

.pm-welcome-lang-btn {
  min-width: 58px;
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #697586;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pm-welcome-lang-btn.active {
  background: #fff;
  color: #172033;
  box-shadow: 0 4px 12px rgba(15, 35, 70, 0.12);
}

.pm-welcome-lang-btn:active {
  transform: translateY(1px);
}

.pm-welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  font-family: var(--portal-font-en);
  font-size: clamp(1rem, 3.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.pm-welcome-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pm-welcome-main {
  position: relative;
  width: min(100%, 720px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vh, 82px) 0 34px;
}

.pm-welcome-onboarding {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pm-welcome-illustration {
  position: relative;
  width: clamp(128px, 28vw, 172px);
  height: clamp(128px, 28vw, 172px);
  margin: 8px 0 clamp(34px, 6vh, 56px);
  display: grid;
  place-items: center;
}

.pm-welcome-illustration-circle {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #0f5b95;
}

.pm-welcome-illustration-circle svg {
  width: clamp(56px, 13vw, 76px);
  height: clamp(56px, 13vw, 76px);
  stroke-width: 1.85;
}

.pm-welcome-illustration-mark {
  position: absolute;
  inset-inline-end: 22px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c9f2e7;
  color: #12a87b;
  box-shadow: 0 12px 28px rgba(18, 168, 123, 0.18);
}

.pm-welcome-illustration-mark svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

.pm-welcome-title {
  margin: 0;
  color: #172033;
  font-size: clamp(1.55rem, 5.2vw, 2.28rem);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0;
}

.pm-welcome-copy {
  max-width: 520px;
  margin: 16px 0 0;
  color: #7a8595;
  font-size: clamp(0.94rem, 3vw, 1.08rem);
  line-height: 1.75;
  font-weight: 600;
}

.pm-welcome-actions {
  width: min(100%, 400px);
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.pm-welcome-action {
  min-height: 54px;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 900;
}

.pm-welcome-action.portal-btn-primary {
  background: linear-gradient(135deg, #0a68b8, #0874de);
  box-shadow: 0 16px 32px rgba(8, 116, 222, 0.22);
}

.pm-welcome-skip {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #7a8595;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.pm-welcome-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(38px, 7vh, 62px);
}

.pm-welcome-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #dce5ef;
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease, transform 160ms ease;
}

.pm-welcome-dot.active {
  width: 30px;
  background: #0d66ad;
}

.pm-welcome-dot:active {
  transform: translateY(1px);
}

.pm-welcome-legal {
  width: min(100%, 650px);
  position: relative;
  justify-self: center;
  color: #7f8793;
  font-size: clamp(0.84rem, 2.6vw, 0.96rem);
  line-height: 1.65;
  text-align: center;
}

.pm-welcome-legal a {
  color: #245b9d;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-legal-menu-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  background: #fff;
  color: #20242a;
}

.pm-legal-menu-header {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.pm-legal-menu-back {
  position: absolute;
  inset-inline-start: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2362a2;
  cursor: pointer;
}

.pm-legal-menu-back svg {
  width: 26px;
  height: 26px;
}

html[dir="rtl"] .pm-legal-menu-back svg {
  transform: scaleX(-1);
}

.pm-legal-menu-title {
  margin: 0;
  color: #3c3f45;
  font-size: clamp(1.45rem, 4.8vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.pm-legal-menu-list {
  width: min(100%, 760px);
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.pm-legal-menu-card {
  width: 100%;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid #e2e6ed;
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-align: start;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pm-legal-menu-card:hover {
  border-color: rgba(36, 91, 157, 0.26);
  box-shadow: 0 12px 28px rgba(15, 35, 70, 0.08);
  transform: translateY(-1px);
}

.pm-legal-menu-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.pm-legal-menu-icon svg {
  width: 30px;
  height: 30px;
}

.pm-legal-menu-icon-blue {
  background: #eef6ff;
  color: #24649f;
}

.pm-legal-menu-icon-gold {
  background: #fff3df;
  color: #9a6118;
}

.pm-legal-menu-icon-green {
  background: #eef8e8;
  color: #3f822c;
}

.pm-legal-menu-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.pm-legal-menu-copy strong {
  color: #1f232a;
  font-size: clamp(1rem, 3.5vw, 1.22rem);
  line-height: 1.55;
  font-weight: 700;
}

.pm-legal-menu-copy small {
  color: #7c828c;
  font-size: clamp(0.86rem, 2.8vw, 0.98rem);
  line-height: 1.45;
}

.pm-legal-menu-chevron {
  width: 24px;
  height: 24px;
  color: #6f757e;
}

html[dir="rtl"] .pm-legal-menu-chevron {
  transform: scaleX(-1);
}

.pm-legal-faq-panel {
  width: min(100%, 760px);
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid #e2e6ed;
  border-radius: 18px;
  background: #fbfdff;
}

.pm-legal-faq-panel h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.pm-legal-faq-panel details {
  padding: 12px 0;
  border-top: 1px solid #e6ecf4;
}

.pm-legal-faq-panel details:first-of-type {
  border-top: 0;
}

.pm-legal-faq-panel summary {
  color: #172033;
  font-weight: 800;
  cursor: pointer;
}

.pm-legal-faq-panel p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.7;
}

@media (max-width: 430px) {
  .pm-welcome-page {
    padding-inline: 20px;
  }

  .pm-welcome-lang-btn {
    min-width: 50px;
    height: 34px;
    padding-inline: 12px;
  }

  .pm-welcome-brand {
    gap: 8px;
    font-size: 1rem;
  }

  .pm-welcome-brand img {
    width: 32px;
    height: 32px;
  }

  .pm-welcome-main {
    padding-top: 34px;
  }

  .pm-welcome-illustration {
    margin-bottom: 30px;
  }

  .pm-welcome-copy {
    margin-top: 16px;
  }

  .pm-welcome-actions {
    margin-top: 24px;
  }

  .pm-welcome-dots {
    margin-top: 36px;
  }

  .pm-legal-menu-card {
    min-height: 92px;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .pm-legal-menu-icon {
    width: 58px;
    height: 58px;
  }

  .pm-legal-menu-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .pm-welcome-page {
    padding-inline: 20px;
  }

  .pm-welcome-main {
    padding-top: 34px;
  }

  .pm-welcome-illustration {
    width: clamp(124px, 34vw, 142px);
    height: clamp(124px, 34vw, 142px);
    margin-bottom: 30px;
  }

  .pm-welcome-illustration-circle svg {
    width: clamp(54px, 15vw, 64px);
    height: clamp(54px, 15vw, 64px);
  }

  .pm-welcome-illustration-mark {
    width: 38px;
    height: 38px;
    inset-inline-end: 20px;
    bottom: 22px;
  }

  .pm-welcome-title {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }

  .pm-welcome-copy {
    font-size: clamp(0.94rem, 3.7vw, 1.02rem);
  }

  .pm-welcome-dots {
    margin-top: 36px;
  }

  .pm-welcome-actions {
    width: min(100%, 390px);
    margin-top: 24px;
  }

  .pm-welcome-action {
    min-height: 54px;
    font-size: 1.02rem;
  }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .pm-welcome-main {
    padding-top: clamp(42px, 7vh, 76px);
  }

  .pm-welcome-illustration {
    width: clamp(150px, 13vw, 172px);
    height: clamp(150px, 13vw, 172px);
  }
}

html.portal-device-mobile .pm-welcome-page {
  padding-inline: 20px;
}

html.portal-device-mobile .pm-welcome-main {
  padding-top: 34px;
}

html.portal-device-mobile .pm-welcome-illustration {
  width: clamp(124px, 34vw, 142px);
  height: clamp(124px, 34vw, 142px);
  margin-bottom: 30px;
}

html.portal-device-mobile .pm-welcome-illustration-circle svg {
  width: clamp(54px, 15vw, 64px);
  height: clamp(54px, 15vw, 64px);
}

html.portal-device-mobile .pm-welcome-illustration-mark {
  width: 38px;
  height: 38px;
  inset-inline-end: 20px;
  bottom: 22px;
}

html.portal-device-mobile .pm-welcome-title {
  font-size: clamp(1.5rem, 6vw, 1.8rem);
}

html.portal-device-mobile .pm-welcome-copy {
  font-size: clamp(0.94rem, 3.7vw, 1.02rem);
}

html.portal-device-mobile .pm-welcome-dots {
  margin-top: 36px;
}

html.portal-device-mobile .pm-welcome-actions {
  width: min(100%, 390px);
  margin-top: 24px;
}

html.portal-device-mobile .pm-welcome-action {
  min-height: 54px;
  font-size: 1.02rem;
}

html.portal-device-desktop .pm-welcome-main {
  padding-top: clamp(24px, 4vh, 46px);
}

html.portal-device-desktop .pm-welcome-illustration {
  width: clamp(118px, 9vw, 136px);
  height: clamp(118px, 9vw, 136px);
  margin-bottom: clamp(22px, 4vh, 34px);
}

html.portal-device-desktop .pm-welcome-page::before {
  height: 74px;
}

html.portal-device-desktop .pm-welcome-page {
  padding: max(12px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
}

html.portal-device-desktop .pm-welcome-topbar {
  min-height: 42px;
}

html.portal-device-desktop .pm-welcome-lang {
  padding: 3px;
}

html.portal-device-desktop .pm-welcome-lang-btn {
  min-width: 42px;
  height: 28px;
  padding-inline: 11px;
  font-size: 0.76rem;
}

html.portal-device-desktop .pm-welcome-brand {
  gap: 8px;
  font-size: 0.98rem;
}

html.portal-device-desktop .pm-welcome-brand img {
  width: 26px;
  height: 26px;
}

html.portal-device-desktop .pm-welcome-illustration-circle svg {
  width: clamp(46px, 5vw, 58px);
  height: clamp(46px, 5vw, 58px);
}

html.portal-device-desktop .pm-welcome-illustration-mark {
  width: 31px;
  height: 31px;
  inset-inline-end: 17px;
  bottom: 18px;
}

html.portal-device-desktop .pm-welcome-illustration-mark svg {
  width: 17px;
  height: 17px;
}

html.portal-device-desktop .pm-welcome-title {
  font-size: clamp(1.45rem, 2.05vw, 1.9rem);
}

html.portal-device-desktop .pm-welcome-copy {
  max-width: 500px;
  margin-top: 10px;
  font-size: clamp(0.82rem, 1.05vw, 0.96rem);
  line-height: 1.65;
}

html.portal-device-desktop .pm-welcome-dots {
  margin-top: clamp(24px, 4vh, 36px);
}

html.portal-device-desktop .pm-welcome-dot {
  width: 7px;
  height: 7px;
}

html.portal-device-desktop .pm-welcome-dot.active {
  width: 24px;
}

html.portal-device-desktop .pm-welcome-actions {
  width: min(100%, 340px);
  gap: 10px;
  margin-top: 22px;
}

html.portal-device-desktop .pm-welcome-action {
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.9rem;
}

html.portal-device-desktop .pm-welcome-skip {
  min-height: 26px;
  font-size: 0.82rem;
}

html.portal-device-desktop .pm-welcome-legal {
  font-size: 0.78rem;
  line-height: 1.5;
}

.pm-provider-public {
  max-width: 900px;
  margin-inline: auto;
  padding-bottom: 24px;
}

.pm-provider-public-header {
  align-items: center;
}

.pm-provider-public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pm-provider-public-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--portal-primary-rgb), 0.16);
  border-radius: 12px;
  background: var(--portal-surface);
  overflow: hidden;
  color: var(--portal-primary);
}

.pm-provider-public-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.pm-provider-public-logo i,
.pm-provider-public-logo svg {
  width: 24px;
  height: 24px;
}

.pm-provider-public-subtitle {
  margin: 4px 0 0;
  color: var(--portal-text-secondary);
  font-size: 0.9rem;
}

.pm-provider-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pm-provider-public-actions .portal-btn {
  width: auto;
  min-width: 132px;
}

.pm-provider-public-banners {
  margin-top: 2px;
}

.pm-provider-public .portal-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pm-provider-public-see-all {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 800;
}

.pm-provider-public-offers {
  display: grid;
  gap: 10px;
}

.pm-provider-public-offer {
  display: grid;
  gap: 10px;
}

.pm-provider-public-offer .portal-media-shell {
  margin: -2px -2px 0;
}

.pm-provider-public-services {
  display: grid;
  gap: 10px;
}

.pm-provider-public-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pm-provider-public-price {
  flex: 0 0 auto;
  color: var(--portal-primary);
  font-weight: 800;
}

@media (max-width: 520px) {
  .pm-provider-public-header {
    align-items: flex-start;
  }

  .pm-provider-public-actions {
    display: grid;
  }

  .pm-provider-public-actions .portal-btn {
    width: 100%;
  }

  .pm-provider-public-service {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 680px) {
  .pm-provider-action-sheet {
    align-items: center;
    padding: 24px;
  }

  .pm-provider-action-panel {
    border-radius: 12px;
    padding-bottom: 18px;
  }
}

/* ===== Portal entry polish v79 ===== */
.pm-welcome-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0 96px, transparent 96px),
    repeating-linear-gradient(135deg, rgba(15, 91, 149, 0.035) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #f8fbff 0%, #eef7f4 58%, #f7f9fd 100%);
}

.pm-welcome-page::before {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.pm-welcome-page .pm-welcome-main {
  width: min(100%, 1120px);
  padding: clamp(36px, 7vh, 74px) 0 32px;
}

.pm-welcome-page .pm-welcome-onboarding {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.pm-welcome-stage {
  width: 100%;
  display: grid;
  justify-items: center;
  min-height: 520px;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
  will-change: opacity, transform;
}

.pm-welcome-stage.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.pm-welcome-stage.is-switching {
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(0, 14px, 0) scale(0.985);
}

.pm-welcome-kicker {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid rgba(20, 125, 112, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #147d70;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.06);
}

.pm-welcome-stage[data-accent="booking"] .pm-welcome-kicker {
  border-color: rgba(126, 87, 194, 0.2);
  color: #6944b5;
}

.pm-welcome-stage[data-accent="records"] .pm-welcome-kicker {
  border-color: rgba(20, 133, 73, 0.22);
  color: #147d49;
}

.pm-welcome-page .pm-welcome-illustration {
  width: clamp(126px, 15vw, 164px);
  height: clamp(126px, 15vw, 164px);
  margin: 0 0 clamp(24px, 4vh, 38px);
}

.pm-welcome-page .pm-welcome-illustration-circle {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(229, 242, 255, 0.64)),
    #eaf2ff;
  color: #0d5f9e;
  box-shadow: 0 22px 58px rgba(8, 70, 130, 0.16);
}

.pm-welcome-page .pm-welcome-illustration-circle::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(13, 95, 158, 0.12);
  border-radius: 50%;
}

.pm-welcome-stage[data-accent="booking"] .pm-welcome-illustration-circle {
  color: #6744ba;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 232, 255, 0.72)),
    #f1ecff;
}

.pm-welcome-stage[data-accent="records"] .pm-welcome-illustration-circle {
  color: #148549;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 248, 236, 0.74)),
    #e8f8ef;
}

.pm-welcome-page .pm-welcome-title {
  max-width: 620px;
  font-size: clamp(1.92rem, 4.4vw, 3rem);
}

.pm-welcome-page .pm-welcome-copy {
  max-width: 620px;
  color: #617087;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
}

.pm-welcome-page .pm-welcome-dots {
  margin-top: clamp(24px, 5vh, 42px);
}

.pm-welcome-page .pm-welcome-dot {
  box-shadow: inset 0 0 0 1px rgba(13, 102, 173, 0.06);
}

.pm-welcome-page .pm-welcome-actions {
  width: min(100%, 430px);
}

.pm-welcome-page .pm-welcome-action {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.pm-welcome-page .pm-welcome-action:hover {
  filter: saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(8, 116, 222, 0.24);
}

.pm-welcome-page .pm-welcome-action svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms ease;
}

.pm-welcome-page .pm-welcome-action:hover svg {
  transform: translateX(-3px);
}

html[dir="ltr"] .pm-welcome-page .pm-welcome-action svg {
  transform: scaleX(-1);
}

html[dir="ltr"] .pm-welcome-page .pm-welcome-action:hover svg {
  transform: scaleX(-1) translateX(-3px);
}

.pm-welcome-preview {
  width: 100%;
}

.pm-welcome-preview-shell {
  position: relative;
  min-height: 410px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.82)),
    repeating-linear-gradient(90deg, rgba(15, 91, 149, 0.035) 0 1px, transparent 1px 36px);
  box-shadow: 0 26px 70px rgba(15, 35, 70, 0.12);
  overflow: hidden;
}

.pm-welcome-preview-header {
  display: grid;
  gap: 7px;
  text-align: start;
}

.pm-welcome-preview-header span {
  color: #147d70;
  font-size: 0.78rem;
  font-weight: 900;
}

.pm-welcome-preview-header strong {
  color: #172033;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.35;
}

.pm-welcome-preview-list {
  display: grid;
  gap: 12px;
}

.pm-welcome-preview-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(15, 35, 70, 0.05);
  transform: translateX(0);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.pm-welcome-preview-card svg {
  width: 22px;
  height: 22px;
  color: #0d66ad;
}

.pm-welcome-preview-card span,
.pm-welcome-preview-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-welcome-preview-card span {
  color: #172033;
  font-weight: 900;
}

.pm-welcome-preview-card small {
  margin-top: 3px;
  color: #697586;
  font-size: 0.78rem;
  font-weight: 700;
}

.pm-welcome-preview-card.active {
  border-color: rgba(20, 125, 112, 0.28);
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 35, 70, 0.1);
  transform: translateX(-8px);
}

html[dir="ltr"] .pm-welcome-preview-card.active {
  transform: translateX(8px);
}

.pm-welcome-preview-card.active svg {
  color: #147d70;
}

@media (max-width: 860px) {
  .pm-welcome-page .pm-welcome-main {
    width: min(100%, 720px);
    padding-top: clamp(28px, 5vh, 46px);
  }

  .pm-welcome-page .pm-welcome-onboarding {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .pm-welcome-stage {
    min-height: auto;
  }

  .pm-welcome-preview-shell {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .pm-welcome-page {
    padding-inline: 16px;
  }

  .pm-welcome-preview-card {
    min-height: 68px;
    padding: 12px;
  }

  .pm-welcome-page .pm-welcome-title {
    font-size: clamp(1.62rem, 8vw, 2.18rem);
  }
}

/* ===== Provider directory polish v79 ===== */
.pm-provider-directory {
  width: min(calc(100% - 28px), 1180px);
  max-width: none;
  padding: 18px 0 calc(24px + var(--portal-tabs-height));
}

.pm-provider-topbar.pm-provider-hero {
  position: relative;
  min-height: 230px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #10233f 0%, #0c5969 58%, #0f8a55 100%);
  box-shadow: 0 24px 60px rgba(15, 35, 70, 0.14);
  color: #fff;
}

.pm-provider-topbar.pm-provider-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #30c59f, #2f80ed, #f2b84b);
}

.pm-provider-hero .pm-provider-title-block {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.pm-provider-kicker,
.pm-provider-section-kicker {
  color: #30c59f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.pm-provider-hero .pm-provider-kicker {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #c7fff1;
}

.pm-provider-hero .pm-provider-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.pm-provider-hero .pm-provider-subtitle {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.96rem, 1.8vw, 1.08rem);
}

.pm-provider-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pm-provider-hero-metrics span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.pm-provider-hero-metrics svg {
  width: 16px;
  height: 16px;
  color: #c7fff1;
}

.pm-provider-hero-visual {
  position: relative;
  z-index: 1;
  width: min(36%, 330px);
  min-width: 260px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.pm-provider-hero-line {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.pm-provider-hero-line svg {
  width: 20px;
  height: 20px;
  color: #c7fff1;
}

.pm-provider-hero-line span {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.pm-provider-hero-line.is-primary {
  background: rgba(255, 255, 255, 0.17);
}

.pm-provider-hero-line:nth-child(2) span {
  width: 74%;
}

.pm-provider-hero-line:nth-child(3) span {
  width: 56%;
}

.pm-provider-refresh {
  position: absolute;
  z-index: 2;
  top: 16px;
  inset-inline-start: 16px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pm-provider-discovery-panel,
#my-providers-section.pm-provider-section {
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(15, 35, 70, 0.07);
}

.pm-provider-section-header {
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.pm-provider-filter-summary {
  margin: 0;
  color: var(--portal-text-secondary);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.pm-provider-discovery-panel .pm-provider-search {
  margin: 8px 0 12px;
}

.pm-provider-discovery-panel .pm-provider-search input {
  height: 54px;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 35, 70, 0.05);
}

.pm-provider-categories {
  gap: 8px;
  padding: 2px 0 16px;
}

.pm-provider-category {
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 42px;
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pm-provider-category:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 35, 70, 0.07);
}

.pm-provider-category.active {
  border-color: rgba(20, 125, 112, 0.3);
  background: rgba(20, 125, 112, 0.08);
  color: #147d70;
}

.pm-provider-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 14px;
}

.pm-provider-card {
  position: relative;
  min-height: 164px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 35, 70, 0.06);
  animation: pmProviderCardIn 360ms ease both;
  animation-delay: var(--provider-enter-delay, 0ms);
}

.pm-provider-card::before {
  content: "";
  position: absolute;
  inset-block: 14px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 999px;
  background: #2f80ed;
}

.pm-provider-card-lab::before {
  background: #147d70;
}

.pm-provider-card-pharmacy::before {
  background: #13a06f;
}

.pm-provider-card-radiology::before {
  background: #7e57c2;
}

.pm-provider-card-hospital::before {
  background: #f2b84b;
}

.pm-provider-card:hover {
  border-color: rgba(47, 128, 237, 0.28);
  box-shadow: 0 18px 42px rgba(15, 35, 70, 0.1);
  transform: translateY(-2px);
}

.pm-provider-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pm-provider-logo,
.pm-provider-logo-fallback {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 8px;
}

.pm-provider-logo {
  border-color: rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.pm-provider-logo img {
  padding: 6px;
}

.pm-provider-info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.pm-provider-info h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  white-space: normal;
}

.pm-provider-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.pm-provider-type-pill,
.pm-provider-location {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.pm-provider-type-pill {
  background: rgba(47, 128, 237, 0.1);
  color: #185fa8;
}

.pm-provider-location {
  max-width: 100%;
  color: #64748b;
  background: #f3f6fb;
}

.pm-provider-type-pill svg,
.pm-provider-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.pm-provider-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.pm-provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.pm-provider-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #5f6f84;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.pm-provider-badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.pm-provider-badge-linked,
.pm-provider-badge-success {
  background: rgba(19, 160, 111, 0.11);
  color: #0f7b58;
}

.pm-provider-badge-portal {
  background: rgba(47, 128, 237, 0.1);
  color: #185fa8;
}

.pm-provider-badge-booking {
  background: rgba(19, 160, 111, 0.11);
  color: #0f7b58;
}

.pm-provider-card-affordance {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(47, 128, 237, 0.22);
  border-radius: 8px;
  background: rgba(47, 128, 237, 0.08);
  color: #1667b7;
}

.pm-provider-card:hover .pm-provider-card-affordance {
  transform: translateX(-3px);
}

html[dir="ltr"] .pm-provider-card:hover .pm-provider-card-affordance {
  transform: translateX(3px);
}

.pm-provider-empty {
  border-radius: 8px;
}

.pm-provider-empty-hero {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  background: #f8fafc;
}

.pm-provider-card-skeleton {
  min-height: 164px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #eef3f8 0%, #f8fbff 48%, #eef3f8 100%);
  background-size: 220% 100%;
  animation: pmProviderSkeleton 1.1s ease infinite;
}

@keyframes pmProviderCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pmProviderSkeleton {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@media (max-width: 780px) {
  .pm-provider-directory {
    width: min(calc(100% - 20px), 680px);
    padding-top: 12px;
  }

  .pm-provider-topbar.pm-provider-hero {
    min-height: auto;
    padding: 20px;
  }

  .pm-provider-hero-visual {
    display: none;
  }

  .pm-provider-refresh {
    top: 12px;
    inset-inline-start: 12px;
  }

  .pm-provider-hero .pm-provider-title-block {
    padding-top: 42px;
  }

  .pm-provider-section-header,
  .pm-provider-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pm-provider-filter-summary {
    white-space: normal;
  }

  .pm-provider-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .pm-provider-category {
    min-width: 128px;
  }

  .pm-provider-card-affordance {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-welcome-stage,
  .pm-welcome-preview-card,
  .pm-provider-card,
  .pm-provider-category,
  .pm-welcome-page .pm-welcome-action {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Portal visual refinement v80 ===== */
.pm-welcome-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 96px, transparent 96px),
    linear-gradient(160deg, #f8fbff 0%, #f3f8fb 54%, #f6faf7 100%);
}

.pm-welcome-preview-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.9));
}

.pm-provider-topbar.pm-provider-hero {
  min-height: 198px;
  align-items: stretch;
  padding: clamp(18px, 3.2vw, 28px);
  border-color: rgba(123, 151, 177, 0.22);
  background:
    linear-gradient(90deg, rgba(20, 125, 112, 0.08), rgba(47, 128, 237, 0.07)),
    #ffffff;
  box-shadow: 0 16px 42px rgba(16, 42, 67, 0.08);
  color: #172033;
}

.pm-provider-topbar.pm-provider-hero::after {
  height: 3px;
  background: linear-gradient(90deg, #147d70, #2f80ed, #f2b84b);
}

.pm-provider-hero .pm-provider-title-block {
  max-width: 690px;
  gap: 9px;
}

.pm-provider-hero .pm-provider-kicker {
  border-color: rgba(20, 125, 112, 0.18);
  background: rgba(20, 125, 112, 0.08);
  color: #116d63;
}

.pm-provider-hero .pm-provider-title {
  color: #0f1f35;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.16;
}

.pm-provider-hero .pm-provider-subtitle {
  max-width: 620px;
  color: #64748b;
  font-size: clamp(0.94rem, 1.55vw, 1.04rem);
  font-weight: 700;
}

.pm-provider-hero-metrics {
  gap: 8px;
  margin-top: 6px;
}

.pm-provider-hero-metrics span {
  min-height: 36px;
  border-color: rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #20344f;
  box-shadow: 0 7px 18px rgba(16, 42, 67, 0.04);
}

.pm-provider-hero-metrics svg {
  color: #147d70;
}

.pm-provider-hero-panel {
  position: relative;
  z-index: 1;
  width: min(38%, 380px);
  min-width: 300px;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(123, 151, 177, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.07);
}

.pm-provider-hero-panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #147d70;
  font-size: 0.82rem;
  font-weight: 900;
}

.pm-provider-hero-panel-head svg {
  width: 18px;
  height: 18px;
}

.pm-provider-hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-provider-hero-panel-grid div {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  border-radius: 8px;
  background: #f8fbff;
}

.pm-provider-hero-panel-grid strong {
  color: #0f1f35;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
}

.pm-provider-hero-panel-grid small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45;
}

.pm-provider-hero-panel p {
  margin: 0;
  color: #4f5f72;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.65;
}

.pm-provider-refresh {
  border-color: rgba(47, 128, 237, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: #147d70;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.06);
}

.pm-provider-section-kicker,
.pm-welcome-preview-header span {
  color: #147d70;
}

.pm-provider-category.active {
  border-color: rgba(20, 125, 112, 0.26);
  background: rgba(20, 125, 112, 0.09);
  color: #116d63;
}

.pm-provider-card-affordance {
  border-color: rgba(20, 125, 112, 0.2);
  background: rgba(20, 125, 112, 0.08);
  color: #116d63;
}

@media (max-width: 860px) {
  .pm-provider-topbar.pm-provider-hero {
    min-height: auto;
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .pm-provider-hero .pm-provider-title-block {
    gap: 7px;
    padding-top: 34px;
  }

  .pm-provider-hero .pm-provider-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .pm-provider-hero .pm-provider-subtitle {
    font-size: 0.9rem;
  }

  .pm-provider-hero-panel {
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 14px;
  }

  .pm-provider-hero-panel-grid div {
    min-height: 70px;
    padding: 11px;
  }

  .pm-provider-hero-panel p {
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .pm-provider-hero-panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Provider directory premium refinement v81 ===== */
.pm-provider-directory {
  --pm-elegant-ink: #10243f;
  --pm-elegant-muted: #62738a;
  --pm-elegant-teal: #0f766e;
  --pm-elegant-teal-dark: #0f4f48;
  --pm-elegant-blue: #256fc4;
  --pm-elegant-surface: rgba(255, 255, 255, 0.92);
}

.pm-provider-topbar.pm-provider-hero {
  min-height: 188px;
  border: 1px solid rgba(134, 157, 181, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 249, 248, 0.94) 50%, rgba(238, 246, 255, 0.92) 100%),
    #fff;
  box-shadow:
    0 22px 60px rgba(16, 36, 63, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.pm-provider-topbar.pm-provider-hero::after {
  height: 2px;
  opacity: 0.86;
  background: linear-gradient(90deg, var(--pm-elegant-teal), var(--pm-elegant-blue), #dfaa3e);
}

.pm-provider-hero .pm-provider-title-block {
  max-width: 720px;
}

.pm-provider-hero .pm-provider-kicker {
  min-height: 32px;
  padding-inline: 12px;
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.075);
  color: var(--pm-elegant-teal-dark);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.06);
}

.pm-provider-hero .pm-provider-title {
  color: var(--pm-elegant-ink);
  font-size: clamp(1.58rem, 2.85vw, 2.25rem);
  font-weight: 950;
}

.pm-provider-hero .pm-provider-subtitle {
  color: #53657a;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  font-weight: 800;
  line-height: 1.72;
}

.pm-provider-hero-metrics {
  gap: 9px;
}

.pm-provider-hero-metrics span {
  min-height: 38px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #19324f;
  box-shadow:
    0 10px 24px rgba(16, 36, 63, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.pm-provider-hero-metrics svg {
  color: var(--pm-elegant-teal);
  stroke-width: 2.1;
}

.pm-provider-hero-panel {
  border: 0;
  background:
    linear-gradient(180deg, rgba(248, 252, 252, 0.96), rgba(241, 248, 250, 0.9)),
    #f7fbfc;
  box-shadow:
    0 18px 42px rgba(16, 36, 63, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.pm-provider-hero-panel-head {
  color: var(--pm-elegant-teal-dark);
}

.pm-provider-hero-panel-grid div {
  border-color: rgba(37, 111, 196, 0.1);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.04);
}

.pm-provider-hero-panel-grid strong {
  color: var(--pm-elegant-ink);
}

.pm-provider-hero-panel-grid small,
.pm-provider-hero-panel p {
  color: var(--pm-elegant-muted);
}

.pm-provider-discovery-panel,
#my-providers-section.pm-provider-section {
  border-color: rgba(134, 157, 181, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(16, 36, 63, 0.075);
}

.pm-provider-section-kicker {
  color: var(--pm-elegant-teal);
}

.pm-provider-filter-summary {
  color: #5a6d84;
}

.pm-provider-discovery-panel .pm-provider-search {
  width: min(100%, 980px);
  margin: 12px auto 14px;
}

.pm-provider-discovery-panel .pm-provider-search svg {
  width: 22px;
  height: 22px;
  color: var(--pm-elegant-teal);
  stroke-width: 2.25;
}

.pm-provider-discovery-panel .pm-provider-search input {
  height: 58px;
  border-color: rgba(134, 157, 181, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--pm-elegant-ink);
  padding-inline-start: 52px;
  padding-inline-end: 22px;
  box-shadow:
    inset 0 2px 5px rgba(16, 36, 63, 0.045),
    0 16px 34px rgba(16, 36, 63, 0.055);
}

html[dir="rtl"] .pm-provider-discovery-panel .pm-provider-search input {
  padding-inline-start: 22px;
  padding-inline-end: 52px;
}

.pm-provider-discovery-panel .pm-provider-search input:focus {
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow:
    inset 0 2px 5px rgba(16, 36, 63, 0.04),
    0 0 0 4px rgba(15, 118, 110, 0.1),
    0 18px 36px rgba(16, 36, 63, 0.07);
}

.pm-provider-categories {
  justify-content: center;
  gap: 10px;
  padding: 4px 0 18px;
}

.pm-provider-category {
  min-width: 126px;
  min-height: 44px;
  border-color: rgba(134, 157, 181, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d2e47;
  box-shadow: 0 9px 22px rgba(16, 36, 63, 0.045);
}

.pm-provider-category svg {
  stroke-width: 2.15;
}

.pm-provider-category:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 13px 28px rgba(16, 36, 63, 0.075);
}

.pm-provider-category.active {
  border-color: var(--pm-elegant-teal-dark);
  background: linear-gradient(135deg, #10243f, var(--pm-elegant-teal-dark));
  color: #fff;
  box-shadow: 0 15px 30px rgba(15, 79, 72, 0.22);
}

.pm-provider-category.active svg {
  color: #bdf5ea;
}

.pm-provider-list {
  gap: 18px;
}

.pm-provider-card {
  min-height: 178px;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(134, 157, 181, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 255, 0.96)),
    #fff;
  box-shadow:
    0 24px 64px rgba(16, 36, 63, 0.11),
    0 8px 20px rgba(16, 36, 63, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.pm-provider-card::before {
  inset-block: 16px;
  width: 3px;
  background: linear-gradient(180deg, var(--pm-elegant-blue), var(--pm-elegant-teal));
}

.pm-provider-card-lab::before,
.pm-provider-card-pharmacy::before {
  background: linear-gradient(180deg, var(--pm-elegant-teal), #31b58a);
}

.pm-provider-card-radiology::before {
  background: linear-gradient(180deg, #6d55ca, var(--pm-elegant-blue));
}

.pm-provider-card-hospital::before {
  background: linear-gradient(180deg, #dfaa3e, var(--pm-elegant-teal));
}

.pm-provider-card:hover {
  border-color: rgba(15, 118, 110, 0.2);
  box-shadow:
    0 30px 72px rgba(16, 36, 63, 0.14),
    0 10px 24px rgba(16, 36, 63, 0.055);
  transform: translateY(-3px);
}

.pm-provider-logo,
.pm-provider-logo-fallback {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  border-radius: 8px;
}

.pm-provider-logo {
  border-color: rgba(134, 157, 181, 0.14);
  background: linear-gradient(145deg, #fff, #f4f8fb);
  box-shadow:
    0 10px 22px rgba(16, 36, 63, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.pm-provider-info h3 {
  color: var(--pm-elegant-ink);
  font-size: 1.06rem;
  font-weight: 950;
}

.pm-provider-type-pill,
.pm-provider-location {
  min-height: 29px;
  padding-inline: 10px;
  border-radius: 999px;
}

.pm-provider-type-pill {
  background: rgba(37, 111, 196, 0.09);
  color: #1c5f9e;
}

.pm-provider-location {
  background: rgba(98, 115, 138, 0.09);
  color: #596b80;
}

.pm-provider-card-footer {
  align-items: center;
}

.pm-provider-badges {
  gap: 7px;
}

.pm-provider-card .pm-provider-badges .pm-provider-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline: 9px;
  border: 1px solid rgba(134, 157, 181, 0.08);
  border-radius: 999px;
  background: rgba(244, 248, 251, 0.92);
  color: #455970;
  font-size: 0.72rem;
}

.pm-provider-card .pm-provider-badges .pm-provider-badge-linked,
.pm-provider-card .pm-provider-badges .pm-provider-badge-success {
  background: rgba(198, 239, 225, 0.52);
  color: #125b4e;
}

.pm-provider-card .pm-provider-badges .pm-provider-badge-portal {
  background: rgba(217, 233, 255, 0.58);
  color: #174f89;
}

.pm-provider-card .pm-provider-badges .pm-provider-badge-booking {
  background: rgba(198, 239, 225, 0.52);
  color: #125b4e;
}

.pm-provider-card-affordance {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pm-elegant-teal-dark), var(--pm-elegant-teal));
  color: #fff;
  box-shadow:
    0 14px 28px rgba(15, 79, 72, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pm-provider-card-affordance svg {
  color: #d8fff6;
}

.pm-provider-card:hover .pm-provider-card-affordance {
  box-shadow:
    0 18px 34px rgba(15, 79, 72, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (max-width: 860px) {
  .pm-provider-topbar.pm-provider-hero {
    padding: 16px;
  }

  .pm-provider-hero-panel {
    box-shadow: 0 12px 26px rgba(16, 36, 63, 0.065);
  }

  .pm-provider-categories {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .pm-provider-card {
    min-height: 0;
    padding: 16px;
  }

  .pm-provider-logo,
  .pm-provider-logo-fallback {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
}

/* ===== Provider mobile experience and interaction refinement v82 ===== */
.pm-provider-card,
.pm-provider-category,
.pm-provider-card-affordance,
.pm-provider-empty-reset {
  -webkit-tap-highlight-color: transparent;
}

.pm-provider-card-affordance,
.pm-provider-category,
.pm-provider-empty-reset {
  position: relative;
  overflow: hidden;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.pm-provider-card-affordance::after,
.pm-provider-category::after,
.pm-provider-empty-reset::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.42), transparent 58%);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.pm-provider-card-affordance:active,
.pm-provider-category:active,
.pm-provider-empty-reset:active {
  transform: scale(0.985);
  filter: brightness(0.98);
}

.pm-provider-card-affordance:active::after,
.pm-provider-category:active::after,
.pm-provider-empty-reset:active::after {
  opacity: 1;
  transform: scale(1);
}

.pm-provider-empty-hero {
  min-height: 248px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 32px 24px;
  border: 1px dashed rgba(134, 157, 181, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 252, 0.94)),
    #fff;
  box-shadow: 0 18px 42px rgba(16, 36, 63, 0.055);
}

.pm-provider-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--pm-elegant-teal);
}

.pm-provider-empty-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}

.pm-provider-empty h3 {
  margin: 0;
  color: var(--pm-elegant-ink);
  font-size: 1rem;
  font-weight: 950;
}

.pm-provider-empty p {
  max-width: 380px;
  margin: 0;
  color: var(--pm-elegant-muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.7;
}

.pm-provider-empty-reset {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pm-elegant-teal-dark), var(--pm-elegant-teal));
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 79, 72, 0.18);
}

.pm-provider-empty-reset svg {
  width: 16px;
  height: 16px;
}

.pm-provider-card-skeleton {
  position: relative;
  min-height: 178px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(134, 157, 181, 0.12);
  background: #fff;
  box-shadow:
    0 18px 46px rgba(16, 36, 63, 0.075),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  overflow: hidden;
}

.pm-provider-card-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.72) 42%, transparent 74%);
  transform: translateX(-100%);
  animation: pmProviderSkeletonSweep 1.25s ease-in-out infinite;
}

.pm-provider-card-skeleton span {
  display: block;
  border-radius: 999px;
  background: #edf3f8;
}

.pm-provider-card-skeleton span:nth-child(1) {
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.pm-provider-card-skeleton span:nth-child(2) {
  width: min(76%, 260px);
  height: 18px;
  align-self: end;
}

.pm-provider-card-skeleton span:nth-child(3) {
  width: min(54%, 190px);
  height: 12px;
}

@keyframes pmProviderSkeletonSweep {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 680px) {
  .pm-provider-directory {
    width: min(calc(100% - 16px), 520px);
    padding-top: 8px;
    padding-bottom: calc(24px + var(--portal-tabs-height));
  }

  .pm-provider-topbar.pm-provider-hero {
    display: grid;
    justify-items: center;
    min-height: auto;
    padding: 20px 16px;
    text-align: center;
  }

  .pm-provider-hero .pm-provider-title-block {
    max-width: 100%;
    justify-items: center;
    align-content: center;
    padding-top: 0;
  }

  .pm-provider-hero .pm-provider-kicker {
    margin-inline: auto;
  }

  .pm-provider-hero .pm-provider-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .pm-provider-hero .pm-provider-subtitle {
    max-width: 34rem;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .pm-provider-hero-metrics {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 4px 4px;
    scrollbar-width: none;
  }

  .pm-provider-hero-metrics::-webkit-scrollbar {
    display: none;
  }

  .pm-provider-hero-metrics span {
    flex: 0 0 auto;
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.76rem;
  }

  .pm-provider-hero-panel {
    display: none;
  }

  .pm-provider-refresh {
    top: 12px;
    inset-inline-start: 12px;
  }

  .pm-provider-discovery-panel,
  #my-providers-section.pm-provider-section {
    padding: 16px;
  }

  .pm-provider-section-header {
    display: grid;
    gap: 4px;
    text-align: center;
  }

  .pm-provider-filter-summary {
    white-space: normal;
  }

  .pm-provider-discovery-panel .pm-provider-search {
    position: sticky;
    top: calc(var(--portal-header-total-height) + 8px);
    z-index: 20;
    width: calc(100% + 16px);
    margin: 8px -8px 12px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(247, 250, 252, 0.86);
    backdrop-filter: blur(14px);
  }

  .pm-provider-discovery-panel .pm-provider-search input {
    height: 52px;
    padding-inline: 48px 18px;
  }

  html[dir="rtl"] .pm-provider-discovery-panel .pm-provider-search input {
    padding-inline: 18px 48px;
  }

  .pm-provider-categories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    padding: 4px 2px 16px;
    margin-inline: -2px;
    scrollbar-width: none;
  }

  .pm-provider-categories::-webkit-scrollbar {
    display: none;
  }

  .pm-provider-category {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 40px;
    padding-inline: 14px;
    scroll-snap-align: start;
    font-size: 0.82rem;
  }

  .pm-provider-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pm-provider-card {
    grid-template-rows: auto auto;
    gap: 16px;
    min-height: 0;
    padding: 16px;
  }

  .pm-provider-card:active {
    transform: translateY(-1px) scale(0.995);
    box-shadow:
      0 18px 48px rgba(16, 36, 63, 0.12),
      0 6px 16px rgba(16, 36, 63, 0.045);
  }

  .pm-provider-card-main {
    align-items: flex-start;
    gap: 12px;
  }

  .pm-provider-info {
    gap: 8px;
  }

  .pm-provider-info h3 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .pm-provider-badges {
    gap: 6px;
  }

  .pm-provider-card .pm-provider-badges .pm-provider-badge {
    min-height: 24px;
    padding-inline: 7px;
    font-size: 0.66rem;
  }

  .pm-provider-card .pm-provider-badges .pm-provider-badge svg {
    width: 12px;
    height: 12px;
  }

  .pm-provider-meta-row {
    gap: 6px;
  }

  .pm-provider-type-pill,
  .pm-provider-location {
    min-height: 26px;
    font-size: 0.7rem;
  }

  .pm-provider-card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
    gap: 0;
    width: 100%;
    justify-self: stretch;
  }

  .pm-provider-card-affordance {
    min-width: 0;
    width: 100%;
    inline-size: 100%;
    box-sizing: border-box;
    min-height: 48px;
    justify-content: center;
    justify-self: stretch;
    align-self: stretch;
    font-size: 0.92rem;
  }

  .pm-provider-card-skeleton {
    min-height: 144px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .pm-provider-card-skeleton span:nth-child(1) {
    width: 56px;
    height: 56px;
  }

  .pm-provider-empty-hero {
    min-height: 220px;
    padding: 28px 16px;
  }
}

/* ===== Provider directory brand alignment v83 ===== */
.pm-provider-directory {
  --pm-elegant-ink: #13233a;
  --pm-elegant-muted: #617089;
  --pm-elegant-teal: var(--portal-primary);
  --pm-elegant-teal-dark: var(--portal-primary-dark);
  --pm-elegant-blue: #0073e6;
  --pm-brand-sky: #e8f2ff;
  --pm-brand-line: rgba(var(--portal-primary-rgb), 0.18);
  --pm-brand-shadow: rgba(var(--portal-primary-rgb), 0.14);
  font-family: var(--portal-font-primary), "Cairo", "Roboto", "Segoe UI", Tahoma, Arial, sans-serif;
}

.pm-provider-topbar.pm-provider-hero {
  border-color: rgba(var(--portal-primary-rgb), 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.96) 48%, rgba(232, 242, 255, 0.94) 100%),
    #fff;
  box-shadow:
    0 22px 58px rgba(var(--portal-primary-rgb), 0.11),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.pm-provider-topbar.pm-provider-hero::after {
  background: linear-gradient(90deg, var(--portal-primary-dark), var(--portal-primary), #69b8ff);
}

.pm-provider-hero .pm-provider-kicker,
.pm-provider-section-kicker,
.pm-provider-hero-panel-head,
.pm-provider-discovery-panel .pm-provider-search svg,
.pm-provider-hero-metrics svg,
.pm-provider-empty-icon {
  color: var(--portal-primary);
}

.pm-provider-hero .pm-provider-kicker {
  border-color: rgba(var(--portal-primary-rgb), 0.16);
  background: rgba(var(--portal-primary-rgb), 0.075);
  box-shadow: 0 8px 18px rgba(var(--portal-primary-rgb), 0.06);
}

.pm-provider-hero .pm-provider-title,
.pm-provider-info h3,
.pm-provider-empty h3 {
  color: #12213a;
  font-weight: 800;
  letter-spacing: 0;
}

.pm-provider-hero .pm-provider-subtitle,
.pm-provider-filter-summary,
.pm-provider-empty p {
  color: #5f6f86;
  font-weight: 600;
}

.pm-provider-hero-metrics span {
  border-color: rgba(var(--portal-primary-rgb), 0.12);
  color: #18385f;
}

.pm-provider-hero-panel {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.92)),
    #f8fbff;
  box-shadow:
    0 18px 42px rgba(var(--portal-primary-rgb), 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.pm-provider-discovery-panel,
#my-providers-section.pm-provider-section {
  border-color: rgba(var(--portal-primary-rgb), 0.12);
  box-shadow: 0 18px 46px rgba(var(--portal-primary-rgb), 0.075);
}

.pm-provider-discovery-panel .pm-provider-search input {
  border-color: rgba(var(--portal-primary-rgb), 0.18);
  box-shadow:
    inset 0 2px 5px rgba(15, 35, 70, 0.04),
    0 16px 34px rgba(var(--portal-primary-rgb), 0.055);
}

.pm-provider-discovery-panel .pm-provider-search input:focus {
  border-color: rgba(var(--portal-primary-rgb), 0.38);
  box-shadow:
    inset 0 2px 5px rgba(15, 35, 70, 0.035),
    0 0 0 4px rgba(var(--portal-primary-rgb), 0.1),
    0 18px 36px rgba(var(--portal-primary-rgb), 0.075);
}

.pm-provider-category:hover {
  border-color: rgba(var(--portal-primary-rgb), 0.28);
}

.pm-provider-category.active,
.pm-provider-card-affordance,
.pm-provider-empty-reset {
  background: var(--portal-gradient);
  color: #fff;
  box-shadow:
    0 15px 30px rgba(var(--portal-primary-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pm-provider-category.active {
  border-color: var(--portal-primary);
}

.pm-provider-category.active svg,
.pm-provider-card-affordance svg {
  color: #dbeeff;
}

.pm-provider-card::before,
.pm-provider-card-lab::before,
.pm-provider-card-pharmacy::before,
.pm-provider-card-radiology::before,
.pm-provider-card-hospital::before {
  background: linear-gradient(180deg, var(--portal-primary), #5db3ff);
}

.pm-provider-card:hover {
  border-color: rgba(var(--portal-primary-rgb), 0.2);
  box-shadow:
    0 30px 72px rgba(var(--portal-primary-rgb), 0.13),
    0 10px 24px rgba(16, 36, 63, 0.052);
}

.pm-provider-card:hover .pm-provider-card-affordance {
  box-shadow:
    0 18px 34px rgba(var(--portal-primary-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pm-provider-type-pill {
  background: rgba(var(--portal-primary-rgb), 0.08);
  color: var(--portal-primary-dark);
}

.pm-provider-card .pm-provider-badges .pm-provider-badge-linked,
.pm-provider-card .pm-provider-badges .pm-provider-badge-success,
.pm-provider-card .pm-provider-badges .pm-provider-badge-booking,
.pm-provider-card .pm-provider-badges .pm-provider-badge-portal {
  background: rgba(var(--portal-primary-rgb), 0.09);
  color: var(--portal-primary-dark);
}

.pm-provider-empty-icon {
  background: rgba(var(--portal-primary-rgb), 0.1);
}

@media (max-width: 680px) {
  .pm-provider-directory {
    width: min(calc(100% - 16px), 560px);
  }

  .pm-provider-hero .pm-provider-title {
    font-size: clamp(1.34rem, 6.2vw, 1.74rem);
    font-weight: 800;
  }

  .pm-provider-hero .pm-provider-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .pm-provider-discovery-panel,
  #my-providers-section.pm-provider-section {
    padding: 14px;
  }

  .pm-provider-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pm-provider-card {
    min-height: 176px;
    gap: 10px;
    padding: 12px;
    align-content: start;
  }

  .pm-provider-card::before {
    inset-block: 12px;
    width: 2px;
  }

  .pm-provider-card-main {
    display: grid;
    justify-items: center;
    align-items: start;
    gap: 8px;
    text-align: center;
  }

  .pm-provider-logo,
  .pm-provider-logo-fallback {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .pm-provider-info {
    width: 100%;
    gap: 6px;
    justify-items: center;
  }

  .pm-provider-badges {
    display: none;
  }

  .pm-provider-info h3 {
    width: 100%;
    min-height: 2.5em;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pm-provider-meta-row {
    justify-content: center;
    gap: 5px;
  }

  .pm-provider-location {
    display: none;
  }

  .pm-provider-type-pill {
    max-width: 100%;
    min-height: 24px;
    padding-inline: 7px;
    font-size: 0.66rem;
  }

  .pm-provider-card-footer {
    align-self: end;
  }

  .pm-provider-card-affordance {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .pm-provider-card-affordance svg {
    width: 15px;
    height: 15px;
  }

  .pm-provider-card-skeleton {
    min-height: 176px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
    padding: 12px;
  }
}

/* ===== Provider filtered category cards v84 ===== */
.pm-provider-card-category-view .pm-provider-meta-row {
  align-items: center;
}

.pm-provider-context-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.pm-provider-context-badges:empty {
  display: none;
}

@media (max-width: 680px) {
  .pm-provider-card-category-view .pm-provider-context-badges {
    display: flex;
    justify-content: center;
    gap: 5px;
  }

  .pm-provider-card-category-view .pm-provider-context-badges:empty {
    display: none;
  }

  .pm-provider-card-category-view .pm-provider-context-badges .pm-provider-badge {
    min-height: 22px;
    padding-inline: 6px;
    font-size: 0.62rem;
  }

  .pm-provider-card-category-view .pm-provider-context-badges .pm-provider-badge svg {
    width: 11px;
    height: 11px;
  }
}

/* ===== Provider typography and copy polish v85 ===== */
.pm-provider-directory,
.pm-provider-action-sheet {
  font-family: "Segoe UI", var(--portal-font-primary), "Cairo", "Roboto", Tahoma, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] .pm-provider-directory,
html[dir="rtl"] .pm-provider-action-sheet {
  font-family: "Segoe UI", "Cairo", Tahoma, Arial, sans-serif;
}

html[dir="ltr"] .pm-provider-directory,
html[dir="ltr"] .pm-provider-action-sheet {
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
}

.pm-provider-hero .pm-provider-title {
  font-size: clamp(1.36rem, 2.1vw, 1.86rem);
  line-height: 1.25;
  font-weight: 700;
}

.pm-provider-hero .pm-provider-subtitle {
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

.pm-provider-kicker,
.pm-provider-section-kicker,
.pm-provider-filter-summary,
.pm-provider-hero-metrics span,
.pm-provider-category,
.pm-provider-badge,
.pm-provider-type-pill,
.pm-provider-location,
.pm-provider-card-affordance,
.pm-provider-empty-reset,
.pm-provider-sheet-action {
  font-weight: 600;
}

.pm-provider-info h3,
.pm-provider-action-title,
.pm-provider-empty h3 {
  font-weight: 700;
}

.pm-provider-info h3 {
  font-size: 1rem;
  line-height: 1.34;
}

.pm-provider-action-title {
  font-size: 1.24rem;
  line-height: 1.28;
}

.pm-provider-action-subtitle {
  font-size: 0.9rem;
  line-height: 1.55;
}

.pm-provider-card .pm-provider-badges .pm-provider-badge,
.pm-provider-context-badges .pm-provider-badge {
  font-size: 0.68rem;
}

@media (max-width: 680px) {
  .pm-provider-directory {
    font-size: 0.91rem;
  }

  .pm-provider-hero .pm-provider-title {
    font-size: clamp(1.18rem, 5.6vw, 1.46rem);
    font-weight: 700;
  }

  .pm-provider-hero .pm-provider-subtitle {
    max-width: 19rem;
    font-size: 0.84rem;
    line-height: 1.5;
    font-weight: 500;
  }

  .pm-provider-info h3 {
    font-size: 0.8rem;
    line-height: 1.28;
    font-weight: 700;
  }

  .pm-provider-card-affordance {
    font-size: 0.78rem;
    font-weight: 700;
  }

  .pm-provider-card-category-view .pm-provider-context-badges .pm-provider-badge {
    font-size: 0.58rem;
    font-weight: 600;
  }
}

/* ===== Provider hero and mobile onboarding polish v86 ===== */
.pm-provider-directory,
.pm-provider-action-sheet,
.pm-welcome-page {
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}

html[dir="rtl"] .pm-provider-directory,
html[dir="rtl"] .pm-provider-action-sheet,
html[dir="rtl"] .pm-welcome-page {
  font-family: var(--portal-font-ar), "Cairo", Tahoma, Arial, sans-serif;
}

html[dir="ltr"] .pm-provider-directory,
html[dir="ltr"] .pm-provider-action-sheet,
html[dir="ltr"] .pm-welcome-page {
  font-family: var(--portal-font-en), "Roboto", "Segoe UI", Arial, sans-serif;
}

.pm-provider-topbar.pm-provider-hero {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  padding: clamp(24px, 3vw, 34px);
  text-align: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 58%, rgba(235, 244, 255, 0.94) 100%),
    #fff;
  box-shadow:
    0 20px 54px rgba(var(--portal-primary-rgb), 0.1),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.pm-provider-topbar.pm-provider-hero::after {
  height: 2px;
  background: linear-gradient(90deg, var(--portal-primary-dark), var(--portal-primary), #7dbdff);
}

.pm-provider-hero-panel,
.pm-provider-hero .pm-provider-kicker,
.pm-provider-hero-metrics span:nth-child(3),
.pm-provider-section-kicker {
  display: none !important;
}

.pm-provider-hero .pm-provider-title-block {
  max-width: 680px;
  justify-items: start;
  align-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  text-align: start;
}

.pm-provider-hero .pm-provider-title {
  margin: 0;
  color: #14233a;
  font-size: clamp(1.28rem, 1.8vw, 1.68rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: 0;
}

.pm-provider-hero .pm-provider-subtitle {
  max-width: 440px;
  margin: 0;
  color: #5f6f86;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 500;
}

.pm-provider-hero-metrics {
  width: auto;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.pm-provider-hero-metrics span {
  min-height: 32px;
  padding: 0 11px;
  border-color: rgba(var(--portal-primary-rgb), 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #18385f;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 7px 18px rgba(var(--portal-primary-rgb), 0.045);
}

.pm-provider-hero-metrics svg {
  color: var(--portal-primary);
  stroke-width: 2;
}

.pm-provider-refresh {
  top: 18px;
  inset-inline-start: auto;
  inset-inline-end: 18px;
  color: var(--portal-primary);
}

.pm-provider-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  text-align: start;
}

.pm-provider-section-header > div {
  display: grid;
  justify-items: start;
  gap: 3px;
  min-width: 0;
  text-align: start;
}

.pm-provider-section-header .pm-section-title {
  margin: 0;
  color: #14233a;
  font-size: clamp(1.04rem, 1.55vw, 1.22rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0;
}

.pm-provider-filter-summary {
  margin: 0;
  margin-inline-start: auto;
  color: #607189;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
  text-align: end;
  white-space: nowrap;
}

.pm-provider-discovery-panel .pm-provider-search {
  width: 100%;
  margin: 14px 0 16px;
}

.pm-provider-discovery-panel .pm-provider-search svg {
  inset-inline-start: 20px;
  inset-inline-end: auto;
  width: 21px;
  height: 21px;
  color: var(--portal-primary);
  stroke-width: 2.15;
}

.pm-provider-discovery-panel .pm-provider-search input {
  height: 54px;
  padding-inline-start: 58px;
  padding-inline-end: 20px;
  color: #14233a;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: start;
}

html[dir="rtl"] .pm-provider-discovery-panel .pm-provider-search input,
html[dir="ltr"] .pm-provider-discovery-panel .pm-provider-search input {
  padding-inline-start: 58px;
  padding-inline-end: 20px;
}

.pm-provider-discovery-panel .pm-provider-search input::placeholder {
  color: #7a8798;
  font-weight: 500;
}

.pm-provider-category {
  font-weight: 600;
}

.pm-provider-card-affordance,
.pm-provider-sheet-action {
  font-weight: 600;
}

.pm-provider-info h3,
.pm-provider-action-title,
.pm-provider-empty h3 {
  font-weight: 600;
}

.pm-welcome-page .pm-welcome-title {
  font-weight: 600;
  letter-spacing: 0;
}

.pm-welcome-page .pm-welcome-copy {
  font-weight: 500;
}

.pm-welcome-page .pm-welcome-action {
  font-weight: 600;
}

@media (max-width: 680px) {
  .pm-provider-topbar.pm-provider-hero {
    min-height: 132px;
    justify-items: start;
    padding: 18px;
    text-align: start;
  }

  .pm-provider-hero .pm-provider-title-block {
    max-width: 100%;
    justify-items: start;
    gap: 7px;
    padding: 0;
    text-align: start;
  }

  .pm-provider-hero .pm-provider-title {
    font-size: clamp(1.12rem, 5.1vw, 1.36rem);
    line-height: 1.34;
    font-weight: 600;
  }

  .pm-provider-hero .pm-provider-subtitle {
    max-width: 18rem;
    font-size: 0.81rem;
    line-height: 1.55;
  }

  .pm-provider-hero-metrics {
    max-width: 100%;
    justify-content: flex-start;
    gap: 7px;
    margin-top: 3px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pm-provider-hero-metrics::-webkit-scrollbar {
    display: none;
  }

  .pm-provider-hero-metrics span {
    flex: 0 0 auto;
    min-height: 30px;
    padding-inline: 9px;
    font-size: 0.7rem;
  }

  .pm-provider-refresh {
    top: 12px;
    inset-inline-end: 12px;
  }

  .pm-provider-section-header {
    display: grid;
    justify-items: start;
    gap: 4px;
    text-align: start;
  }

  .pm-provider-filter-summary {
    margin-inline-start: 0;
    width: 100%;
    text-align: start;
    white-space: normal;
  }

  .pm-provider-discovery-panel .pm-provider-search {
    width: calc(100% + 16px);
    margin: 8px -8px 12px;
  }

  .pm-provider-discovery-panel .pm-provider-search input {
    height: 50px;
    padding-inline-start: 54px;
    padding-inline-end: 18px;
    font-size: 0.88rem;
  }

  html[dir="rtl"] .pm-provider-discovery-panel .pm-provider-search input,
  html[dir="ltr"] .pm-provider-discovery-panel .pm-provider-search input {
    padding-inline-start: 54px;
    padding-inline-end: 18px;
  }

  .pm-provider-discovery-panel .pm-provider-search svg {
    inset-inline-start: 18px;
  }
}

@media (max-width: 680px) {
  .pm-welcome-preview,
  .pm-welcome-legal,
  .pm-welcome-skip,
  .pm-onboarding-skip {
    display: none !important;
  }

  .pm-welcome-page {
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
    padding-inline: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .pm-welcome-page .pm-welcome-main {
    width: 100%;
    min-height: calc(100dvh - var(--portal-header-total-height) - 22px);
    display: grid;
    place-items: center;
    padding: 14px 0 18px;
  }

  .pm-welcome-page .pm-welcome-onboarding {
    width: min(100%, 390px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pm-welcome-stage {
    min-height: auto;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .pm-welcome-page .pm-welcome-illustration {
    width: clamp(112px, 31vw, 132px);
    height: clamp(112px, 31vw, 132px);
    margin-bottom: 22px;
  }

  .pm-welcome-page .pm-welcome-title {
    font-size: clamp(1.38rem, 5.8vw, 1.68rem);
    line-height: 1.34;
    font-weight: 600;
  }

  .pm-welcome-page .pm-welcome-copy {
    max-width: 21rem;
    margin-inline: auto;
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.7;
  }

  .pm-welcome-page .pm-welcome-dots {
    margin-top: 24px;
  }

  .pm-welcome-page .pm-welcome-actions {
    width: min(100%, 360px);
    margin-top: 18px;
  }

  .pm-welcome-page .pm-welcome-action {
    min-height: 52px;
    font-size: 0.98rem;
  }
}

html.portal-device-mobile .pm-welcome-preview,
html.portal-device-mobile .pm-welcome-legal,
html.portal-device-mobile .pm-welcome-skip,
html.portal-device-mobile .pm-onboarding-skip {
  display: none !important;
}

html.portal-device-mobile .pm-welcome-page {
  grid-template-rows: auto minmax(0, 1fr);
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

html.portal-device-mobile .pm-welcome-page .pm-welcome-main {
  width: 100%;
  min-height: calc(100dvh - var(--portal-header-total-height) - 22px);
  display: grid;
  place-items: center;
  padding: 14px 0 18px;
}

html.portal-device-mobile .pm-welcome-page .pm-welcome-onboarding {
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

html[dir="ltr"] .pm-provider-hero .pm-provider-title,
html[dir="ltr"] .pm-provider-section-header .pm-section-title,
html[dir="ltr"] .pm-provider-info h3,
html[dir="ltr"] .pm-provider-action-title,
html[dir="ltr"] .pm-welcome-page .pm-welcome-title,
html[dir="ltr"] .pm-welcome-page .pm-welcome-action {
  font-weight: 500;
}
