/* ===================================================================
   Nawafeth — provider-detail-polish.css
   Additive finishing touches for the provider detail page (all tabs:
   profile, services, portfolio, reviews + map card + action bar).
   Scoped under `body.page-provider-detail` so global styles are
   untouched. No layout properties are redefined; only micro-
   interactions, focus rings, smoother transitions, refined hovers
   and reduced-motion safeguards.
   =================================================================== */

/* ── Card / tab content entrance ──────────────────────────────────── */
@keyframes nw-pd-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes nw-pd-pop {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  body.page-provider-detail .pd-panel.active > .pd-card,
  body.page-provider-detail .pd-panel.active > section,
  body.page-provider-detail .pd-panel.active > .pd-services-grid > *,
  body.page-provider-detail .pd-panel.active > .pd-rating-summary,
  body.page-provider-detail .pd-panel.active > .pd-reviews-list > * {
    animation: nw-pd-rise 420ms cubic-bezier(.22,.61,.36,1) both;
  }
  body.page-provider-detail .pd-panel.active > *:nth-child(2) { animation-delay: 60ms; }
  body.page-provider-detail .pd-panel.active > *:nth-child(3) { animation-delay: 120ms; }
  body.page-provider-detail .pd-panel.active > *:nth-child(4) { animation-delay: 160ms; }
  body.page-provider-detail .pd-panel.active > *:nth-child(n+5) { animation-delay: 200ms; }
}

/* ── Tabs: refined feedback, no layout change ─────────────────────── */
body.page-provider-detail .pd-tab {
  transition: color 180ms ease,
              background-color 180ms ease,
              border-color 180ms ease,
              box-shadow 200ms ease,
              transform 160ms cubic-bezier(.22,.61,.36,1);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail .pd-tab:not(.active):hover {
    background: rgba(124, 77, 211, .07);
    color: #5d2f86;
  }
}
body.page-provider-detail .pd-tab:active { transform: scale(.97); }
body.page-provider-detail .pd-tab:focus-visible {
  outline: 2px solid rgba(124, 77, 211, .85);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(124, 77, 211, .18);
}
body.page-provider-detail .pd-tab.active {
  box-shadow: 0 6px 16px rgba(124, 77, 211, .18);
}

/* Smooth transitions for the tab meta counter */
body.page-provider-detail .pd-tab-meta {
  transition: background-color 180ms ease, color 180ms ease;
}

/* ── Cards: subtle hover lift on desktop only ─────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail .pd-card {
    transition: transform 240ms cubic-bezier(.22,.61,.36,1),
                box-shadow 240ms ease,
                border-color 240ms ease;
  }
  body.page-provider-detail .pd-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(52, 28, 92, .10);
  }
}

/* ── Provider avatar presence dot ─────────────────────────────────── */
body.page-provider-detail.page-provider-detail-premium .pd-avatar-wrap {
  width: 112px;
  height: 112px;
}

body.page-provider-detail .pd-avatar {
  inset: 0;
  width: 100%;
  height: 100%;
  right: auto;
  bottom: auto;
  overflow: visible;
  box-sizing: border-box;
  padding: 3px;
  background: var(--nw-avatar-ring-gradient);
  box-shadow: var(--nw-avatar-ring-shadow);
}

body.page-provider-detail .pd-avatar-media {
  position: absolute;
  inset: 3px;
  z-index: 1;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nw-avatar-inner-bg);
}

body.page-provider-detail .pd-avatar-badge {
  width: 24px;
  height: 24px;
  border-width: 2px;
  box-shadow: var(--nw-avatar-badge-shadow);
  z-index: 3;
}

body.page-provider-detail .pd-avatar-badge svg {
  width: 12px;
  height: 12px;
}

body.page-provider-detail .pd-avatar-badge-blue {
  top: 0;
  left: -6px;
}

body.page-provider-detail .pd-avatar-badge-green {
  top: 0;
  right: -6px;
}

@media (min-width: 769px) {
  body.page-provider-detail.page-provider-detail-premium .pd-avatar-wrap {
    width: 126px;
    height: 126px;
  }
}

@media (max-width: 520px) {
  body.page-provider-detail.page-provider-detail-premium .pd-avatar-wrap {
    width: 108px;
    height: 108px;
  }
}

body.page-provider-detail .pd-avatar > .nw-presence-dot {
  width: 12px;
  height: 12px;
  border-width: 2px;
  right: 0;
  left: auto;
  inset-inline-end: auto;
  bottom: 0;
  z-index: 20;
  box-shadow: 0 0 0 2px rgba(255,255,255,.92), 0 4px 10px rgba(15,23,42,.18);
  transform: translate(30%, 30%);
}

@media (max-width: 520px) {
  body.page-provider-detail .pd-avatar > .nw-presence-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
    right: 0;
    left: auto;
    inset-inline-end: auto;
    bottom: 0;
  }
}

/* ── Top profile area: grouped summary, calmer rhythm ─────────────── */
body.page-provider-detail .pd-avatar-area {
  margin-bottom: -4px;
}

body.page-provider-detail.page-provider-detail-premium .pd-identity {
  width: min(720px, calc(100% - 28px));
  margin-bottom: 18px;
  padding: 22px 24px 20px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96));
  border-color: rgba(14, 101, 112, 0.2);
  box-shadow:
    0 22px 46px rgba(12, 34, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.page-provider-detail .pd-name {
  letter-spacing: 0;
}

body.page-provider-detail.page-provider-detail-premium .pd-name {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

body.page-provider-detail.page-provider-detail-premium .pd-handle {
  margin-top: 6px;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 900;
}

body.page-provider-detail .pd-verification-card {
  width: min(520px, 100%);
  margin: 12px auto 0;
  padding: 10px 12px;
  gap: 9px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.page-provider-detail .pd-verification-card.hidden {
  display: none !important;
}

body.page-provider-detail .pd-verification-card-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #0f172a;
}

body.page-provider-detail .pd-verification-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

body.page-provider-detail .pd-verification-card-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

body.page-provider-detail .pd-verification-reasons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

body.page-provider-detail .pd-verification-reason {
  --pd-verification-color: #2563eb;
  min-height: 30px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--pd-verification-color);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: color-mix(in srgb, var(--pd-verification-color) 10%, white);
  border: 1px solid color-mix(in srgb, var(--pd-verification-color) 22%, transparent);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.2;
}

body.page-provider-detail .pd-verification-reason-dot {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pd-verification-color);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.18);
  box-shadow: 0 6px 12px color-mix(in srgb, var(--pd-verification-color) 24%, transparent);
}

body.page-provider-detail .pd-verification-reason-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.page-provider-detail .pd-profile-summary-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(14, 101, 112, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 251, 0.94));
  box-shadow:
    0 22px 46px rgba(12, 34, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.page-provider-detail .pd-profile-summary-card::before {
  content: "";
  position: absolute;
  inset-inline: 20px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.55), rgba(29, 78, 216, 0.42), transparent);
}

body.page-provider-detail .pd-profile-summary-card .pd-overview-strip {
  margin: 0;
}

body.page-provider-detail .pd-profile-summary-card .pd-overview-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 92px;
  padding: 14px 14px 13px;
  border-radius: 20px;
}

body.page-provider-detail .pd-profile-summary-card .pd-overview-card::after {
  display: none;
}

body.page-provider-detail .pd-overview-icon {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1FB5A8;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(224, 242, 254, 0.86));
  border: 1px solid rgba(14, 116, 144, 0.16);
  box-shadow: 0 10px 18px rgba(14, 116, 144, 0.1);
}

body.page-provider-detail .pd-overview-icon svg {
  width: 19px;
  height: 19px;
}

body.page-provider-detail .pd-profile-summary-card .pd-overview-label {
  font-size: 10.5px;
  line-height: 1.35;
}

body.page-provider-detail .pd-profile-summary-card .pd-overview-value {
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.35;
}

body.page-provider-detail .pd-profile-summary-card .pd-stats-card {
  width: min(100%, 520px);
  justify-self: center;
  margin: 0;
  padding: 16px 14px;
  border-radius: 24px;
}

body.page-provider-detail .pd-profile-summary-card .pd-connections-row {
  margin: 0;
  border-radius: 24px;
}

body.page-provider-detail .pd-connections-label {
  letter-spacing: 0;
}

body.page-provider-detail .pd-discovery-side .pd-actions,
body.page-provider-detail .pd-actions-contact-card {
  border-radius: 28px;
}

body.page-provider-detail .pd-action-primary .pd-action-primary-copy small {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

@media (max-width: 760px) {
  body.page-provider-detail.page-provider-detail-premium .pd-identity {
    width: min(100% - 24px, 560px);
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  body.page-provider-detail.page-provider-detail-premium .pd-name {
    font-size: clamp(23px, 7vw, 30px);
  }

  body.page-provider-detail .pd-profile-summary-card {
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
  }

  body.page-provider-detail .pd-profile-summary-card .pd-overview-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.page-provider-detail .pd-profile-summary-card .pd-overview-card {
    min-height: 72px;
    padding: 12px;
    border-radius: 18px;
  }

  body.page-provider-detail .pd-overview-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  body.page-provider-detail .pd-profile-summary-card .pd-stats-card {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  body.page-provider-detail .pd-profile-summary-card .pd-stat {
    min-height: 64px;
    justify-content: center;
    border: 1px solid rgba(14, 101, 112, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
  }

  body.page-provider-detail .pd-profile-summary-card .pd-stat-divider {
    display: none;
  }
}

@media (max-width: 420px) {
  body.page-provider-detail .pd-profile-summary-card .pd-connections-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body.page-provider-detail .pd-profile-summary-card .pd-connections-divider {
    display: none;
  }

  body.page-provider-detail .pd-profile-summary-card .pd-connections-btn {
    justify-content: flex-start;
  }
}

/* ── Field rows: clearer keyboard focus ───────────────────────────── */
body.page-provider-detail .pd-field-open-link {
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
body.page-provider-detail .pd-field-open-link:hover {
  background: rgba(124, 77, 211, .1);
  color: #5d2f86;
}
body.page-provider-detail .pd-field-open-link:active { transform: scale(.94); }
body.page-provider-detail .pd-field-open-link:focus-visible {
  outline: 2px solid rgba(124, 77, 211, .85);
  outline-offset: 2px;
}

/* ── Action bar (request / chat / call / whatsapp) ────────────────── */
body.page-provider-detail .pd-actions a,
body.page-provider-detail .pd-actions button {
  transition: transform 180ms cubic-bezier(.22,.61,.36,1),
              box-shadow 220ms ease,
              filter 220ms ease,
              background-color 200ms ease,
              border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail .pd-action-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(124, 77, 211, .32);
    filter: brightness(1.04);
  }
}
body.page-provider-detail .pd-actions a:active,
body.page-provider-detail .pd-actions button:active { transform: scale(.97); }
body.page-provider-detail .pd-actions a:focus-visible,
body.page-provider-detail .pd-actions button:focus-visible {
  outline: 2px solid rgba(124, 77, 211, .85);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(124, 77, 211, .18);
}

/* Primary CTA shine sweep on hover (decorative only) */
@keyframes nw-pd-shine {
  0%   { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  20%  { opacity: 1; }
  60%  { transform: translateX(220%)  skewX(-18deg); opacity: 1; }
  100% { transform: translateX(220%)  skewX(-18deg); opacity: 0; }
}
body.page-provider-detail .pd-action-primary {
  position: relative;
  overflow: hidden;
}
body.page-provider-detail .pd-action-primary::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .42), transparent);
  pointer-events: none;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.page-provider-detail .pd-action-primary:hover::after {
    animation: nw-pd-shine 1100ms ease both;
  }
}

/* ── Overview strip cards: tap feedback on touch + lift on hover ─── */
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail .pd-overview-card {
    transition: transform 220ms cubic-bezier(.22,.61,.36,1), box-shadow 220ms ease;
  }
  body.page-provider-detail .pd-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(52, 28, 92, .10);
  }
}

/* ── Stats block: subtle counter pop only when entering ───────────── */
@media (prefers-reduced-motion: no-preference) {
  body.page-provider-detail .pd-stats-card .pd-stat-value {
    transition: color 200ms ease;
  }
}

/* ── Service cards (services tab) ─────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail .pd-services-grid > * {
    transition: transform 240ms cubic-bezier(.22,.61,.36,1),
                box-shadow 240ms ease,
                border-color 240ms ease;
  }
  body.page-provider-detail .pd-services-grid > *:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(52, 28, 92, .12);
  }
}
body.page-provider-detail .pd-services-grid > *:focus-visible {
  outline: 2px solid rgba(124, 77, 211, .85);
  outline-offset: 3px;
}

/* Services hero badge: a soft pulse on first reveal */
@keyframes nw-pd-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 77, 211, .35); }
  50%      { box-shadow: 0 0 0 6px rgba(124, 77, 211, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  body.page-provider-detail .pd-services-hero-badge,
  body.page-provider-detail .pd-portfolio-hero-badge {
    animation: nw-pd-pulse 2.6s ease-in-out 1 both;
  }
}

/* ── Portfolio (reels) cards ──────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail #pd-portfolio-sections .pd-reel-card,
  body.page-provider-detail #pd-portfolio-sections [data-reel-card] {
    transition: transform 260ms cubic-bezier(.22,.61,.36,1),
                box-shadow 260ms ease, filter 260ms ease;
  }
  body.page-provider-detail #pd-portfolio-sections .pd-reel-card:hover,
  body.page-provider-detail #pd-portfolio-sections [data-reel-card]:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 22px 44px rgba(20, 12, 50, .22);
    filter: saturate(1.06);
  }
}

/* ── Reviews tab refinements ──────────────────────────────────────── */
body.page-provider-detail .pd-rating-summary {
  transition: box-shadow 240ms ease, transform 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail .pd-rating-summary:hover {
    box-shadow: 0 16px 32px rgba(52, 28, 92, .10);
  }
  body.page-provider-detail .pd-reviews-list > * {
    transition: transform 220ms cubic-bezier(.22,.61,.36,1), box-shadow 220ms ease;
  }
  body.page-provider-detail .pd-reviews-list > *:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(52, 28, 92, .08);
  }
}

/* ── Service range map card ──────────────────────────────────────── */
body.page-provider-detail #pd-service-range-card .pd-map-wrap {
  transition: box-shadow 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail #pd-service-range-card:hover .pd-map-wrap {
    box-shadow: 0 14px 30px rgba(20, 12, 50, .14);
  }
}

/* ── Social list chips: gentle hover ──────────────────────────────── */
body.page-provider-detail .pd-social-list > a,
body.page-provider-detail .pd-social-list > button {
  transition: transform 160ms ease, background-color 180ms ease, box-shadow 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  body.page-provider-detail .pd-social-list > a:hover,
  body.page-provider-detail .pd-social-list > button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(52, 28, 92, .12);
  }
}
body.page-provider-detail .pd-social-list > a:active,
body.page-provider-detail .pd-social-list > button:active { transform: scale(.96); }
body.page-provider-detail .pd-social-list > a:focus-visible,
body.page-provider-detail .pd-social-list > button:focus-visible {
  outline: 2px solid rgba(124, 77, 211, .85);
  outline-offset: 3px;
}

/* ── Empty states ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  body.page-provider-detail .pd-empty:not(.hidden) {
    animation: nw-pd-pop 480ms cubic-bezier(.22,.61,.36,1) both;
  }
  body.page-provider-detail .pd-empty-icon {
    display: inline-block;
    animation: nw-pd-float 4.6s ease-in-out infinite;
  }
}
@keyframes nw-pd-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ── Skeleton shimmer pacing ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  body.page-provider-detail .nw-skeleton-block,
  body.page-provider-detail .nw-skeleton-surface {
    animation-duration: 1500ms;
    animation-timing-function: ease-in-out;
  }
}

/* ── Tablet (640–1023): a touch more spacing on tabs ──────────────── */
@media (min-width: 640px) and (max-width: 1023px) {
  body.page-provider-detail .pd-tab {
    letter-spacing: .01em;
  }
}

/* ── Dark mode tuning ─────────────────────────────────────────────── */
[data-theme="dark"] body.page-provider-detail .pd-tab.active {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .42);
}
[data-theme="dark"] body.page-provider-detail .pd-tab:not(.active):hover {
  background: rgba(192, 132, 252, .1);
  color: #d8b8ff;
}
[data-theme="dark"] body.page-provider-detail .pd-card:hover,
[data-theme="dark"] body.page-provider-detail .pd-overview-card:hover,
[data-theme="dark"] body.page-provider-detail .pd-services-grid > *:hover,
[data-theme="dark"] body.page-provider-detail .pd-reviews-list > *:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, .5);
}
[data-theme="dark"] body.page-provider-detail .pd-tab:focus-visible,
[data-theme="dark"] body.page-provider-detail .pd-actions a:focus-visible,
[data-theme="dark"] body.page-provider-detail .pd-actions button:focus-visible {
  outline-color: rgba(192, 132, 252, .9);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, .22);
}

/* ── Reduced motion: silence everything decorative ────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.page-provider-detail .pd-panel.active > *,
  body.page-provider-detail .pd-tab,
  body.page-provider-detail .pd-card,
  body.page-provider-detail .pd-overview-card,
  body.page-provider-detail .pd-action-primary,
  body.page-provider-detail .pd-action-primary::after,
  body.page-provider-detail .pd-services-grid > *,
  body.page-provider-detail .pd-reviews-list > *,
  body.page-provider-detail .pd-empty,
  body.page-provider-detail .pd-empty-icon,
  body.page-provider-detail #pd-portfolio-sections .pd-reel-card,
  body.page-provider-detail .pd-services-hero-badge,
  body.page-provider-detail .pd-portfolio-hero-badge {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   STRUCTURE POLISH — provider detail orchestration
   ===================================================================== */
body.page-provider-detail .pd-discovery-shell {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

body.page-provider-detail .pd-discovery-main,
body.page-provider-detail .pd-discovery-side {
  min-width: 0;
}

body.page-provider-detail .pd-discovery-main {
  display: grid;
  gap: 20px;
}

body.page-provider-detail .pd-tabs-shell {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(124, 77, 211, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 255, 0.96));
  box-shadow: 0 20px 44px rgba(33, 16, 64, 0.08);
}

body.page-provider-detail .pd-tabs-shell .pd-tabs {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  padding: 0 0 12px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(124, 77, 211, 0.08);
}

body.page-provider-detail .pd-tabs-shell .pd-tab-content {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding-top: 6px;
}

body.page-provider-detail .pd-tabs-shell .pd-panel.active {
  animation: none;
}

body.page-provider-detail .pd-tabs-shell .pd-panel > :first-child {
  margin-top: 0;
}

@media (max-width: 1023px) {
  body.page-provider-detail .pd-tabs-shell {
    border-radius: 22px;
    padding-inline: 16px;
  }
}


/* =====================================================================
   DESKTOP POLISH — provider detail page (>=1024px)
   ===================================================================== */
@media (min-width: 1024px) {
  body.page-provider-detail .page-content,
  body.page-provider-detail .pd-page,
  body.page-provider-detail .pd-content-shell,
  body.page-provider-detail .pd-loading-shell {
    background:
      radial-gradient(1100px 460px at 100% 0%, rgba(124, 77, 211, 0.07), transparent 58%),
      radial-gradient(900px 380px at 0% 14%, rgba(33, 150, 243, 0.05), transparent 60%),
      var(--color-bg, #faf8ff);
  }

  body.page-provider-detail .pd-content-shell,
  body.page-provider-detail .pd-loading-shell {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
  }

  body.page-provider-detail .pd-cover {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(33, 16, 64, 0.18);
  }

  body.page-provider-detail .pd-discovery-shell {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    align-items: start;
    gap: 24px;
  }

  body.page-provider-detail .pd-discovery-side {
    position: relative;
  }

  body.page-provider-detail .pd-discovery-side .pd-actions {
    position: sticky;
    top: calc(var(--navbar-height, 72px) + 18px);
    margin-top: 0;
    padding: 18px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,255,0.96));
    border: 1px solid rgba(124, 77, 211, 0.09);
    box-shadow: 0 22px 46px rgba(33, 16, 64, 0.10);
  }

  body.page-provider-detail .pd-actions-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.page-provider-detail .pd-tabs-shell {
    padding: 18px 20px 22px;
    border-radius: 30px;
    margin-bottom: 28px;
    box-shadow: 0 22px 48px rgba(33, 16, 64, 0.08);
  }

  body.page-provider-detail .pd-tab {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 14px;
  }

  body.page-provider-detail .pd-tab.active {
    background: linear-gradient(135deg, #5d2f86 0%, #7c4dd3 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(124, 77, 211, 0.34);
  }

  body.page-provider-detail .pd-tabs-shell .pd-tabs {
    gap: 8px;
    margin-bottom: 12px;
  }

  body.page-provider-detail .pd-overview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  body.page-provider-detail .pd-connections-row {
    border-radius: 22px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(124, 77, 211, 0.08);
    box-shadow: 0 14px 30px rgba(33, 16, 64, 0.06);
  }

  body.page-provider-detail .pd-highlights-section,
  body.page-provider-detail .pd-tabs-shell .pd-tab-content {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,245,255,0.96));
    border: 1px solid rgba(124, 77, 211, 0.09);
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(33, 16, 64, 0.07);
  }

  body.page-provider-detail .pd-highlights-section {
    padding: 18px;
  }

  body.page-provider-detail .pd-tabs-shell .pd-tab-content {
    padding: 10px;
  }

  body.page-provider-detail #tab-profile.pd-panel.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.page-provider-detail #pd-bio-card,
  body.page-provider-detail #pd-service-range-card,
  body.page-provider-detail #pd-social-card {
    grid-column: 1 / -1;
  }

  body.page-provider-detail #tab-services.pd-panel.active,
  body.page-provider-detail #tab-portfolio.pd-panel.active,
  body.page-provider-detail #tab-reviews.pd-panel.active {
    display: grid;
    gap: 20px;
  }

  body.page-provider-detail .pd-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.page-provider-detail #pd-portfolio-sections {
    display: grid;
    gap: 18px;
  }

  body.page-provider-detail .pd-portfolio-section,
  body.page-provider-detail .pd-rating-summary,
  body.page-provider-detail .pd-reviews-list,
  body.page-provider-detail .pd-empty {
    border-radius: 24px;
  }

  body.page-provider-detail .pd-card,
  body.page-provider-detail .pd-overview-card {
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(33, 16, 64, 0.07);
  }

  body.page-provider-detail .pd-reviews-static {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.page-provider-detail .pd-review-card {
    min-height: 100%;
  }
}

@media (min-width: 1280px) {
  body.page-provider-detail .pd-content-shell,
  body.page-provider-detail .pd-loading-shell {
    width: min(1280px, calc(100% - 72px));
  }

  body.page-provider-detail .pd-discovery-shell {
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.68fr);
  }

  body.page-provider-detail .pd-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.page-provider-detail .pd-reels-row,
  body.page-provider-detail .pd-portfolio-row {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.page-provider-detail .pd-panel.active > *:nth-child(1) { animation: nw-pd-rise 420ms cubic-bezier(.22,.61,.36,1) both; animation-delay: 40ms; }
  body.page-provider-detail .pd-panel.active > *:nth-child(2) { animation: nw-pd-rise 420ms cubic-bezier(.22,.61,.36,1) both; animation-delay: 100ms; }
  body.page-provider-detail .pd-panel.active > *:nth-child(3) { animation: nw-pd-rise 420ms cubic-bezier(.22,.61,.36,1) both; animation-delay: 160ms; }
  body.page-provider-detail .pd-panel.active > *:nth-child(4) { animation: nw-pd-rise 420ms cubic-bezier(.22,.61,.36,1) both; animation-delay: 200ms; }
  body.page-provider-detail .pd-panel.active > *:nth-child(n+5) { animation: nw-pd-rise 420ms cubic-bezier(.22,.61,.36,1) both; animation-delay: 240ms; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-provider-detail .pd-panel.active > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Dark-mode coverage for premium provider detail surfaces ───────────
   Mirrors the light surfaces shown in `provider_detail.html` so the
   hero pill, summary cards, contact card, stats row, overview cards,
   action tiles and cover gradient all adapt in dark mode. */
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-cover {
  background: linear-gradient(128deg, #0b1322 0%, #11233a 52%, #1e1b4b 100%) !important;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.55) !important;
}
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-cover-gradient {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 56%, transparent 100%) !important;
}
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-avatar {
  border-color: rgba(11, 19, 34, 0.96) !important;
  background: #11182a !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55) !important;
}
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-identity {
  background: rgba(23, 35, 54, 0.96) !important;
  border-color: rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-name,
[data-theme="dark"] body.page-provider-detail .pd-name {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-handle,
[data-theme="dark"] body.page-provider-detail .pd-category-text {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-verification-card {
  background: rgba(11, 19, 34, 0.68) !important;
  border-color: rgba(174, 196, 226, 0.16) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-verification-card-head {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-verification-reason {
  background: rgba(37, 99, 235, 0.16) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  background: color-mix(in srgb, var(--pd-verification-color) 18%, #0b1322) !important;
  border-color: color-mix(in srgb, var(--pd-verification-color) 34%, rgba(174, 196, 226, 0.18)) !important;
}

/* Profile summary card + nested overview/stat/connections surfaces */
[data-theme="dark"] body.page-provider-detail .pd-profile-summary-card {
  background: linear-gradient(180deg, rgba(23, 35, 54, 0.96), rgba(17, 24, 42, 0.94)) !important;
  border-color: rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-profile-summary-card::before {
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.55), rgba(45, 212, 191, 0.42), transparent) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-overview-card {
  background: rgba(11, 19, 34, 0.78) !important;
  border: 1px solid rgba(174, 196, 226, 0.18) !important;
  color: #eaf2ff !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-overview-icon {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.18), rgba(124, 58, 237, 0.18)) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
  color: #5eead4 !important;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-overview-label {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-overview-value {
  color: #f8fbff !important;
}

[data-theme="dark"] body.page-provider-detail .pd-stats-card {
  background: linear-gradient(180deg, rgba(23, 35, 54, 0.96), rgba(17, 24, 42, 0.92)) !important;
  border: 1px solid rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-stat-value {
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-stat-label {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-stat-divider {
  background: rgba(174, 196, 226, 0.22) !important;
}

[data-theme="dark"] body.page-provider-detail .pd-connections-row {
  background: rgba(11, 19, 34, 0.78) !important;
  border: 1px solid rgba(174, 196, 226, 0.20) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-btn,
[data-theme="dark"] body.page-provider-detail .pd-connections-btn:hover {
  color: #eaf2ff !important;
  background: transparent !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-label {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-hint {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-divider {
  background: rgba(174, 196, 226, 0.22) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-icon {
  color: #c4b5fd !important;
}

/* Contact / actions card */
[data-theme="dark"] body.page-provider-detail .pd-actions-contact-card {
  background: rgba(23, 35, 54, 0.96) !important;
  border: 1px solid rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-actions-contact-title {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-actions-contact-note {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-tile,
[data-theme="dark"] body.page-provider-detail .pd-action-icon {
  background: rgba(11, 19, 34, 0.78) !important;
  border: 1px solid rgba(174, 196, 226, 0.20) !important;
  color: #eaf2ff !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-tile:hover,
[data-theme="dark"] body.page-provider-detail .pd-action-icon:hover {
  background: rgba(124, 58, 237, 0.18) !important;
  border-color: rgba(192, 132, 252, 0.55) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-tile .pd-action-tile-icon {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-whatsapp {
  color: #5eead4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-whatsapp .pd-action-tile-icon {
  background: rgba(45, 212, 191, 0.18) !important;
  color: #5eead4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-copy strong {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-copy small {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-follow {
  background: rgba(11, 19, 34, 0.78) !important;
  border: 1.5px solid rgba(192, 132, 252, 0.55) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-follow:hover {
  background: rgba(124, 58, 237, 0.22) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-follow.following {
  background: rgba(124, 58, 237, 0.16) !important;
  border-color: rgba(174, 196, 226, 0.22) !important;
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-primary .pd-action-primary-icon {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Identity follow button on the hero pill */
[data-theme="dark"] body.page-provider-detail .pd-social-follow-btn {
  background: rgba(124, 58, 237, 0.22) !important;
  border: 1px solid rgba(192, 132, 252, 0.55) !important;
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-social-follow-btn.following {
  background: rgba(11, 19, 34, 0.78) !important;
  color: #b8c7da !important;
  border-color: rgba(174, 196, 226, 0.22) !important;
}

/* ── Dark-mode — highlights, contact card, map, services, reviews ───── */
[data-theme="dark"] body.page-provider-detail .pd-highlights-section {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(23, 35, 54, 0.96), rgba(17, 24, 42, 0.94)) !important;
  border-color: rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-section-title {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-section-hint {
  background: rgba(11, 19, 34, 0.78) !important;
  border-color: rgba(174, 196, 226, 0.20) !important;
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-highlights-empty {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-highlights-empty-text {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-mode-badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.08)) !important;
  border-color: rgba(192, 132, 252, 0.40) !important;
  color: #d9d0ff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-mode-badge[data-mode="provider"] {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0.08)) !important;
  border-color: rgba(94, 234, 212, 0.40) !important;
  color: #5eead4 !important;
}

/* Contact / profile field cards (.pd-card + .pd-field-*) */
[data-theme="dark"] body.page-provider-detail .pd-card {
  background: rgba(23, 35, 54, 0.96) !important;
  border: 1px solid rgba(174, 196, 226, 0.18) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-card:hover {
  border-color: rgba(192, 132, 252, 0.40) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-card-title {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-card-title svg {
  fill: #c4b5fd !important;
}
[data-theme="dark"] body.page-provider-detail .pd-bio-text {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-field-label {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-field-value {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-field-divider {
  background: rgba(174, 196, 226, 0.18) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-contact-row {
  background: rgba(11, 19, 34, 0.78) !important;
  color: #eaf2ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-contact-row:hover {
  background: rgba(124, 58, 237, 0.18) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-social-row .pd-social-icon {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-social-label {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-social-value {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-social-link {
  color: #c4b5fd !important;
}
[data-theme="dark"] body.page-provider-detail .pd-social-link:hover {
  background: rgba(124, 58, 237, 0.22) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-field-open-link {
  color: #c4b5fd !important;
}

/* Service-range map block */
[data-theme="dark"] body.page-provider-detail .pd-map-title {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-map-container {
  border: 1px solid rgba(174, 196, 226, 0.22) !important;
  background: rgba(11, 19, 34, 0.78) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-map-empty {
  background: rgba(124, 58, 237, 0.12) !important;
  border: 1px dashed rgba(192, 132, 252, 0.45) !important;
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-map-wrap .google-maps-container {
  background: #0b1322 !important;
}

/* Services tab cards */
[data-theme="dark"] body.page-provider-detail .pd-service-card {
  background: rgba(23, 35, 54, 0.96) !important;
  border: 1px solid rgba(174, 196, 226, 0.18) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-card:hover {
  border-color: rgba(192, 132, 252, 0.55) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-img {
  background: rgba(11, 19, 34, 0.85) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-img .pd-service-placeholder {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-name {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-desc {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-price {
  color: #d9d0ff !important;
}

/* Empty states for tabs */
[data-theme="dark"] body.page-provider-detail .pd-empty {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-empty .pd-empty-title {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-empty .pd-empty-subtitle {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-empty-section-card {
  background: rgba(23, 35, 54, 0.96) !important;
  border: 1px solid rgba(174, 196, 226, 0.18) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}

/* Reviews tab — rating summary, bars, review cards */
[data-theme="dark"] body.page-provider-detail .pd-rating-summary {
  background:
    radial-gradient(circle at top, rgba(45, 212, 191, 0.15), transparent 38%),
    linear-gradient(180deg, rgba(23, 35, 54, 0.96), rgba(17, 24, 42, 0.94)) !important;
  border: 1px solid rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-rating-big {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-rating-count {
  background: rgba(11, 19, 34, 0.78) !important;
  border-color: rgba(174, 196, 226, 0.22) !important;
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-rating-bars-title {
  color: #5eead4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-rating-bar-label {
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-rating-bar {
  background: rgba(174, 196, 226, 0.18) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-rating-bar-meta {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-rating-bar-fill {
  background: linear-gradient(90deg, #7c3aed 0%, #2dd4bf 100%) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-card {
  background: linear-gradient(180deg, rgba(23, 35, 54, 0.96), rgba(17, 24, 42, 0.94)) !important;
  border: 1px solid rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-author {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-author-action:hover,
[data-theme="dark"] body.page-provider-detail .pd-review-author-action:focus-visible {
  color: #5eead4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-score {
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-text {
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-reply {
  background: rgba(124, 58, 237, 0.14) !important;
  border-color: rgba(192, 132, 252, 0.35) !important;
  border-inline-start-color: #2dd4bf !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-reply-label {
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-reply-text {
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-review-date {
  color: #8a98ad !important;
}

/* Connections followers/following sheet */
[data-theme="dark"] body.page-provider-detail .pd-connections-sheet-backdrop {
  background: rgba(2, 6, 18, 0.72) !important;
  backdrop-filter: blur(8px) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-sheet {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.2), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(45, 212, 191, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(23, 35, 54, 0.98), rgba(11, 19, 34, 0.98)) !important;
  border: 1px solid rgba(174, 196, 226, 0.22) !important;
  border-bottom: 0 !important;
  box-shadow: 0 -24px 52px rgba(0, 0, 0, 0.58) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-sheet .pd-sheet-handle {
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.2), rgba(192, 132, 252, 0.62), rgba(94, 234, 212, 0.2)) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-sheet-header {
  border-bottom-color: rgba(174, 196, 226, 0.18) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-heading-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(45, 212, 191, 0.72)) !important;
  color: #f8fbff !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-sheet .pd-sheet-title {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-subtitle,
[data-theme="dark"] body.page-provider-detail .pd-sheet-empty {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-sheet .pd-sheet-close {
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-sheet .pd-sheet-close:hover {
  background: rgba(192, 132, 252, 0.14) !important;
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-search {
  background: rgba(11, 19, 34, 0.82) !important;
  border-color: rgba(174, 196, 226, 0.2) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-search:focus-within {
  border-color: rgba(192, 132, 252, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.24), 0 10px 22px rgba(0, 0, 0, 0.34) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-search-icon {
  color: #c4b5fd !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-search-input {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-search-input::placeholder {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail button.pd-connections-item,
[data-theme="dark"] body.page-provider-detail .pd-connections-item {
  background: linear-gradient(180deg, rgba(23, 35, 54, 0.94), rgba(17, 24, 42, 0.9)) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  color: #eaf2ff !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36) !important;
}
[data-theme="dark"] body.page-provider-detail button.pd-connections-item:hover,
[data-theme="dark"] body.page-provider-detail button.pd-connections-item:focus-visible {
  background: linear-gradient(180deg, rgba(37, 50, 76, 0.98), rgba(23, 35, 54, 0.96)) !important;
  border-color: rgba(192, 132, 252, 0.52) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48) !important;
}
[data-theme="dark"] body.page-provider-detail button.pd-connections-item.is-client {
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 113, 108, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(23, 35, 54, 0.94), rgba(17, 24, 42, 0.9)) !important;
}
[data-theme="dark"] body.page-provider-detail button.pd-connections-item.is-provider {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(27, 38, 61, 0.96), rgba(17, 24, 42, 0.92)) !important;
  border-color: rgba(192, 132, 252, 0.28) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-item .pd-sheet-avatar {
  background: linear-gradient(145deg, #8A4DFF 0%, #6A34C9 55%, #FF7A59 130%) !important;
  border-color: rgba(192, 132, 252, 0.30) !important;
  color: #fff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-item .pd-sheet-name {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-item .pd-sheet-handle-text,
[data-theme="dark"] body.page-provider-detail .pd-connections-handle-text {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-badge.is-provider {
  background: rgba(124, 58, 237, 0.22) !important;
  border: 1px solid rgba(192, 132, 252, 0.28) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-badge.is-client {
  background: rgba(148, 163, 184, 0.14) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-status-icon.is-client-warning {
  color: #9ca3af !important;
}
[data-theme="dark"] body.page-provider-detail .pd-connections-chevron {
  color: #c4b5fd !important;
}
[data-theme="dark"] body.page-provider-detail button.pd-connections-item.is-client .pd-connections-chevron {
  color: #9ca3af !important;
}

/* Non-provider notice opened from followers list */
[data-theme="dark"] body.page-provider-detail .pd-not-provider-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.22), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(45, 212, 191, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(23, 35, 54, 0.98), rgba(11, 19, 34, 0.98)) !important;
  border-color: rgba(174, 196, 226, 0.22) !important;
  box-shadow: 0 30px 62px rgba(0, 0, 0, 0.62) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-not-provider-avatar {
  background: rgba(124, 58, 237, 0.22) !important;
  border-color: rgba(174, 196, 226, 0.28) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-not-provider-title {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-not-provider-name {
  color: #c4b5fd !important;
}
[data-theme="dark"] body.page-provider-detail .pd-not-provider-message {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-not-provider-close {
  background: rgba(192, 132, 252, 0.14) !important;
  color: #f8fbff !important;
}

/* Full dark-mode pass for provider detail tabs and tab content */
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium {
  --pd-premium-ink: #f8fbff;
  --pd-premium-muted: #b8c7da;
  --pd-premium-main: #5eead4;
  --pd-premium-main-strong: #99f6e4;
  --pd-premium-main-soft: rgba(45, 212, 191, 0.16);
  --pd-premium-line: rgba(174, 196, 226, 0.2);
  --pd-premium-glass: rgba(23, 35, 54, 0.96);
  --pd-premium-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
  background:
    radial-gradient(780px 360px at 92% -8%, rgba(124, 58, 237, 0.18), transparent 64%),
    radial-gradient(720px 320px at -12% 16%, rgba(45, 212, 191, 0.12), transparent 64%),
    linear-gradient(180deg, #07111f 0%, #0b1322 44%, #101827 100%) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-page,
[data-theme="dark"] body.page-provider-detail .pd-page-premium,
[data-theme="dark"] body.page-provider-detail .page-content,
[data-theme="dark"] body.page-provider-detail .pd-content-shell,
[data-theme="dark"] body.page-provider-detail .pd-loading-shell {
  background:
    radial-gradient(1100px 460px at 100% 0%, rgba(124, 58, 237, 0.14), transparent 58%),
    radial-gradient(900px 380px at 0% 14%, rgba(45, 212, 191, 0.09), transparent 60%),
    #0b1322 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tabs-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(23, 35, 54, 0.96), rgba(11, 19, 34, 0.94)) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.52) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tabs-shell .pd-tabs,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tabs,
[data-theme="dark"] body.page-provider-detail .pd-tabs {
  background: rgba(11, 19, 34, 0.62) !important;
  border-color: rgba(174, 196, 226, 0.16) !important;
  box-shadow: none !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tabs-shell .pd-tab-content,
[data-theme="dark"] body.page-provider-detail .pd-tab-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(17, 24, 42, 0.98), rgba(11, 19, 34, 0.98)) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab {
  background: rgba(148, 163, 184, 0.18) !important;
  border: 1px solid rgba(174, 196, 226, 0.18) !important;
  color: #b8c7da !important;
  box-shadow: none !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab > svg,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab > svg {
  background: rgba(11, 19, 34, 0.42) !important;
  fill: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab-meta,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab-meta {
  background: rgba(11, 19, 34, 0.5) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab:hover,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab:hover {
  background: rgba(124, 58, 237, 0.22) !important;
  border-color: rgba(192, 132, 252, 0.44) !important;
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab:hover > svg,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab:hover > svg {
  fill: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab.active,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab.active {
  background: linear-gradient(135deg, #f8fbff, #edf7ff) !important;
  border-color: rgba(94, 234, 212, 0.44) !important;
  color: #0a5a54 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab.active > svg,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab.active > svg {
  background: rgba(45, 212, 191, 0.14) !important;
  fill: #0a5a54 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-tab.active .pd-tab-meta,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-tab.active .pd-tab-meta {
  background: rgba(45, 212, 191, 0.12) !important;
  border-color: rgba(15, 118, 110, 0.26) !important;
  color: #0a5a54 !important;
}

/* Profile tab surfaces */
[data-theme="dark"] body.page-provider-detail .pd-discovery-side .pd-actions,
[data-theme="dark"] body.page-provider-detail .pd-actions,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-actions {
  background: rgba(23, 35, 54, 0.94) !important;
  border: 1px solid rgba(174, 196, 226, 0.18) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-action-primary,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-action-follow {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.38), rgba(45, 212, 191, 0.22)) !important;
  border-color: rgba(192, 132, 252, 0.42) !important;
  color: #f8fbff !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-card::before {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.64), rgba(45, 212, 191, 0.42)) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-social-row.fixed,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-social-row.fixed {
  background: rgba(11, 19, 34, 0.74) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-field-open-link,
[data-theme="dark"] body.page-provider-detail .pd-social-link {
  background: rgba(124, 58, 237, 0.14) !important;
  border-color: rgba(192, 132, 252, 0.24) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-field-open-link.disabled,
[data-theme="dark"] body.page-provider-detail .pd-social-link.disabled {
  background: rgba(148, 163, 184, 0.1) !important;
  color: #64748b !important;
}

/* Map tab/card surfaces */
[data-theme="dark"] body.page-provider-detail #pd-service-range-card .pd-map-wrap,
[data-theme="dark"] body.page-provider-detail .pd-map-wrap {
  background: rgba(11, 19, 34, 0.86) !important;
  border: 1px solid rgba(174, 196, 226, 0.18) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-map-container .google-maps-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.72) contrast(0.92) saturate(0.72) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-map-container .google-maps-control-zoom a,
[data-theme="dark"] body.page-provider-detail .pd-map-container .google-maps-control-attribution {
  background: rgba(17, 24, 42, 0.92) !important;
  color: #c4d2e4 !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-map-container .google-maps-control-attribution a {
  color: #c4b5fd !important;
}

/* Services tab */
[data-theme="dark"] body.page-provider-detail .pd-services-helper,
[data-theme="dark"] body.page-provider-detail .pd-services-hero,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-services-hero {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(23, 35, 54, 0.96), rgba(11, 19, 34, 0.94)) !important;
  border-color: rgba(174, 196, 226, 0.2) !important;
  color: #c4d2e4 !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-services-hero-badge,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-services-hero-badge {
  background: rgba(45, 212, 191, 0.16) !important;
  border: 1px solid rgba(94, 234, 212, 0.24) !important;
  color: #5eead4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-services-hero-copy h3 {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-services-hero-copy p {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-services-hero-count,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-services-hero-count {
  background: rgba(11, 19, 34, 0.78) !important;
  border-color: rgba(174, 196, 226, 0.2) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-list-card,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-service-list-card {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.2), transparent 36%),
    linear-gradient(165deg, rgba(23, 35, 54, 0.98) 0%, rgba(17, 24, 42, 0.96) 52%, rgba(11, 19, 34, 0.98) 100%) !important;
  border-color: rgba(174, 196, 226, 0.2) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.52) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-list-card:hover {
  border-color: rgba(192, 132, 252, 0.52) !important;
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.62) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-list-glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 72%) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-index,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-service-index {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.3), rgba(124, 58, 237, 0.42)) !important;
  color: #f8fbff !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-list-kicker {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-list-title,
[data-theme="dark"] body.page-provider-detail .pd-service-meta-value {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-meta-item,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-service-meta-item {
  background: rgba(11, 19, 34, 0.78) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-meta-label {
  color: #8a98ad !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-scope-pill,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-service-scope-pill {
  background: rgba(45, 212, 191, 0.16) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
  color: #99f6e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-list-desc,
[data-theme="dark"] body.page-provider-detail .pd-service-footnote {
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-list-footer {
  border-top-color: rgba(174, 196, 226, 0.18) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-chip {
  background: rgba(148, 163, 184, 0.12) !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  color: #c4d2e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-service-chip.primary,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-service-chip.primary {
  background: rgba(45, 212, 191, 0.16) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
  color: #99f6e4 !important;
}

/* Portfolio tab */
[data-theme="dark"] body.page-provider-detail .pd-portfolio-hero,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-portfolio-hero,
[data-theme="dark"] body.page-provider-detail .pd-portfolio-section {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(23, 35, 54, 0.96), rgba(11, 19, 34, 0.94)) !important;
  border: 1px solid rgba(174, 196, 226, 0.2) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-hero-badge,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-portfolio-hero-badge,
[data-theme="dark"] body.page-provider-detail .pd-portfolio-section-count,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-portfolio-section-count {
  background: rgba(45, 212, 191, 0.16) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
  color: #99f6e4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-hero-copy h3,
[data-theme="dark"] body.page-provider-detail .pd-portfolio-section-title {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-hero-copy p,
[data-theme="dark"] body.page-provider-detail .pd-portfolio-section-desc,
[data-theme="dark"] body.page-provider-detail .pd-portfolio-section-hint {
  color: #b8c7da !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-hero-metric,
[data-theme="dark"] body.page-provider-detail.page-provider-detail-premium .pd-portfolio-hero-metric {
  background: rgba(11, 19, 34, 0.78) !important;
  border-color: rgba(174, 196, 226, 0.2) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-reel-card {
  background: #0b1322 !important;
  border-color: rgba(174, 196, 226, 0.18) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.52) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-frame {
  background: linear-gradient(180deg, #111827 0%, #070b14 100%) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-document-card .pd-portfolio-frame {
  background:
    radial-gradient(circle at 24% 18%, rgba(124, 58, 237, 0.2), transparent 28%),
    linear-gradient(145deg, #172336 0%, #111827 52%, #0b1322 100%) !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-document-preview {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-document-icon {
  background: rgba(11, 19, 34, 0.78) !important;
  border-color: rgba(192, 132, 252, 0.26) !important;
  color: #c4b5fd !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-document-type {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #d9d0ff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-document-label {
  color: #f8fbff !important;
}
[data-theme="dark"] body.page-provider-detail .pd-portfolio-document-meta {
  color: #b8c7da !important;
}

/* Loading placeholders inside every tab */
[data-theme="dark"] body.page-provider-detail .pd-tab-loading-shell .nw-skeleton-surface,
[data-theme="dark"] body.page-provider-detail .pd-list-skeleton-card,
[data-theme="dark"] body.page-provider-detail .pd-reel-skeleton-card,
[data-theme="dark"] body.page-provider-detail .pd-review-skeleton-summary,
[data-theme="dark"] body.page-provider-detail .pd-review-skeleton-row {
  background: rgba(23, 35, 54, 0.94) !important;
  border-color: rgba(174, 196, 226, 0.16) !important;
}

/* =====================================================================
   VISUAL POLISH — provider detail typography & contact button states
   ===================================================================== */

/* ── Bio text: bigger base font for readability on mobile ─────────── */
body.page-provider-detail .pd-bio-text {
  font-size: 13px;
  line-height: 1.85;
}

/* ── Card titles: bolder, slightly larger on mobile ───────────────── */
body.page-provider-detail .pd-card-title {
  font-size: 13.5px;
  font-weight: 900;
  gap: 10px;
  margin-bottom: 14px;
}

/* ── Overview label: slightly heavier weight ──────────────────────── */
body.page-provider-detail .pd-overview-label {
  font-size: 11px;
  font-weight: 800;
}

/* ── Overview value: bold and legible ────────────────────────────── */
body.page-provider-detail .pd-overview-value {
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* ── Stat value: slightly larger on mobile ──────────────────────── */
body.page-provider-detail .pd-stat-value {
  font-size: clamp(18px, 1.8vw, 26px);
}

/* ── Stat label: heavier ─────────────────────────────────────────── */
body.page-provider-detail .pd-stat-label {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
}

/* ── Disabled contact buttons (call/whatsapp when no data) ─────────── */
body.page-provider-detail .pd-action-disabled,
body.page-provider-detail .pd-action-tile[disabled],
body.page-provider-detail .pd-action-icon[disabled] {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.3);
}

/* ── Field value: line-height for RTL readability ─────────────────── */
body.page-provider-detail .pd-field-value {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.75;
}

/* ── Name heading: always bold ────────────────────────────────────── */
body.page-provider-detail .pd-name {
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ── Handle: slightly more visible ───────────────────────────────── */
body.page-provider-detail .pd-handle {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  opacity: 0.88;
}

/* ── Action tile copy: readable on all screens ───────────────────── */
body.page-provider-detail .pd-action-copy strong {
  font-size: 13px;
  font-weight: 900;
}
body.page-provider-detail .pd-action-copy small {
  font-size: 11px;
  line-height: 1.5;
}

/* ── Connections row text ──────────────────────────────────────────── */
body.page-provider-detail .pd-connections-label {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 800;
}
body.page-provider-detail .pd-connections-hint {
  font-size: 10.5px;
}

/* ── Dark mode overrides for new elements ─────────────────────────── */
[data-theme="dark"] body.page-provider-detail .pd-handle {
  color: #a8bdd4 !important;
}
[data-theme="dark"] body.page-provider-detail .pd-bio-text {
  font-size: 13px;
  color: #c4d2e4 !important;
  line-height: 1.85;
}

/* ── ورقة تفاصيل الشارة (سبب التوثيق / وصف التميّز) ── */
.pd-badge-trust-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.28), transparent 42%),
    linear-gradient(135deg, var(--pd-badge-accent, #5f33ad), color-mix(in srgb, var(--pd-badge-accent, #5f33ad) 72%, #17102d));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--pd-badge-accent, #5f33ad) 24%, transparent);
}
.pd-badge-trust-status {
  justify-self: start;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 900;
}
.pd-badge-trust-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.pd-badge-trust-headline {
  max-width: 25rem;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(16px, 3.8vw, 20px);
  font-weight: 900;
  line-height: 1.6;
}
.pd-badge-trust-metric {
  flex: 0 0 auto;
  min-width: 92px;
  display: grid;
  gap: 1px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  color: var(--pd-badge-accent, #5f33ad);
  text-align: center;
}
.pd-badge-trust-metric strong {
  font-size: 21px;
  font-weight: 950;
  line-height: 1.1;
}
.pd-badge-trust-metric small {
  color: #475569;
  font-family: 'Cairo', sans-serif;
  font-size: 8.5px;
  font-weight: 800;
}
.pd-badge-detail-list {
  display: grid;
  gap: 10px;
  padding: 2px 0 6px;
}
.pd-badge-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--pd-badge-accent, #5f33ad) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--pd-badge-accent, #5f33ad) 22%, transparent);
}
.pd-badge-detail-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pd-badge-accent, #5f33ad);
}
.pd-badge-detail-text {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nw-ink, #F7F2FF);
  padding-top: 2px;
}
.pd-badge-detail-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.pd-badge-detail-label {
  color: var(--pd-badge-accent, #5f33ad);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}
.pd-badge-detail-row.is-structured .pd-badge-detail-text {
  display: block;
  padding-top: 0;
  font-weight: 700;
  line-height: 1.75;
}
.pd-excellence-chip-row .excellence-badge-chip.is-interactive {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.pd-excellence-chip-row .excellence-badge-chip.is-interactive:hover,
.pd-excellence-chip-row .excellence-badge-chip.is-interactive:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--excellence-badge-color, #5f33ad) 22%, transparent);
  outline: 2px solid color-mix(in srgb, var(--excellence-badge-color, #5f33ad) 35%, transparent);
  outline-offset: 2px;
}
.pd-badge-trust-action {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--pd-badge-accent, #5f33ad), color-mix(in srgb, var(--pd-badge-accent, #5f33ad) 72%, #17102d));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--pd-badge-accent, #5f33ad) 24%, transparent);
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 900;
}
.pd-badge-trust-action:hover,
.pd-badge-trust-action:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
@media (max-width: 420px) {
  .pd-badge-trust-main { align-items: stretch; flex-direction: column; }
  .pd-badge-trust-metric { align-self: stretch; }
}
[data-theme="dark"] .pd-badge-detail-text { color: #f1f5f9; }

/* ── صفّ شارات الأفتار: دوائر صغيرة أسفل الصورة مثل قالب المزود ── */
body.page-provider-detail .pd-avatar-badge,
body.page-provider-detail .pd-avatar-excellence-badges,
body.page-provider-detail .pd-avatar-wrap > .nw-avatar-arc-badges,
body.page-provider-detail .pd-avatar-wrap > .nw-avatar-top-badges {
  display: none !important;
}
body.page-provider-detail .pd-avatar-area {
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
body.page-provider-detail .pd-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  direction: ltr;
  gap: 7px;
  margin-top: 7px;
  min-height: 34px;
  position: relative;
  z-index: 7;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
body.page-provider-detail .pd-badge-row.hidden { display: none; }
body.page-provider-detail .pd-badge-seal {
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--pd-seal-color, #5f33ad),
    color-mix(in srgb, var(--pd-seal-color, #5f33ad) 78%, #000)
  );
  box-shadow:
    0 7px 15px color-mix(in srgb, var(--pd-seal-color, #5f33ad) 32%, transparent),
    0 2px 5px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex: 0 0 auto;
}
body.page-provider-detail .pd-badge-seal:hover {
  transform: translateY(-2px) scale(1.06);
}
body.page-provider-detail .pd-badge-seal:active { transform: scale(0.96); }
body.page-provider-detail .pd-badge-seal svg { width: 15px; height: 15px; }
[data-theme="dark"] body.page-provider-detail .pd-badge-seal { border-color: #221E2E; }
