/* Page-specific styles extracted from profile.html for browser caching. */
/* ── Page frame ── */
  body.page-profile.page-profile-v3 .page-content {
    padding-top: 0;
    padding-bottom: calc(var(--bottom-nav-height, 68px) + 24px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(ellipse at 80% 0%, rgba(103, 58, 183, 0.15), transparent 44%),
      radial-gradient(ellipse at 2% 34%, rgba(103, 58, 183, 0.09), transparent 40%),
      linear-gradient(180deg, #f2ecff 0%, #f7f4ff 28%, #faf8ff 60%, #f9f9fb 100%);
    min-height: 100dvh;
  }

  /* ── Shell ── */
  .prf-v3-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 14px 0;
  }

  body.page-profile.page-profile-v3 #auth-gate.auth-gate-unified {
    margin: 18px auto 0;
  }

  /* ── Content ── */
  .prf-v3-content {
    display: grid;
    gap: 14px;
  }

  /* ── Layout body: 1-col mobile, 2-col desktop ── */
  .prf-v3-body {
    display: grid;
    gap: 14px;
  }

  @media (min-width: 880px) {
    .prf-v3-shell { padding: 14px 20px 0; }
    .prf-v3-body {
      grid-template-columns: 340px minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }
    .prf-v3-sidebar { position: sticky; top: 20px; }
  }
  @media (min-width: 1100px) {
    .prf-v3-body { grid-template-columns: 360px minmax(0, 1fr); }
  }

  .prf-v3-sidebar { display: grid; gap: 14px; }
  .prf-v3-main    { display: grid; gap: 14px; min-width: 0; }

  /* ── Base card ── */
  .prf-v3-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(103, 58, 183, 0.11);
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(20, 10, 50, 0.07), 0 1px 4px rgba(103, 58, 183, 0.04);
    overflow: hidden;
  }

  /* ── Cover ── */
  .prf-v3-cover {
    position: relative;
    min-height: 200px;
    background:
      radial-gradient(ellipse at 95% 5%, rgba(255,255,255,0.22), transparent 36%),
      radial-gradient(ellipse at 5% 95%, rgba(255,255,255,0.12), transparent 32%),
      linear-gradient(128deg, #8E6AD8 0%, #8E6AD8 28%, #7E57C2 55%, #7E57C2 78%, #9575CD 100%);
    overflow: hidden;
    cursor: pointer;
  }

  .prf-v3-cover::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    bottom: -140px; inset-inline-start: -80px;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
  }
  .prf-v3-cover::after {
    content: '';
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    top: -70px; inset-inline-end: -40px;
    background: rgba(255,255,255,0.09);
    pointer-events: none;
  }

  .prf-v3-cover img {
    width: 100%; height: 100%;
    min-height: 200px; max-height: 270px;
    object-fit: cover; display: block;
  }

  .profile-cover-placeholder {
    width: 100%;
    min-height: 200px;
    display: block;
  }

  /* ── Cover bar (re-injected by JS) ── */
  .pv2-cover-bar {
    position: absolute;
    top: 12px; inset-inline-end: 12px;
    z-index: 4;
    display: flex; gap: 8px;
  }

  .pv2-mini-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.32);
    background: rgba(10, 5, 30, 0.52);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .16s ease, transform .14s ease;
    color: #fff;
  }
  .pv2-mini-btn:hover {
    background: rgba(255,255,255,0.24);
    transform: translateY(-1px);
  }

  /* ── Identity row ── */
  .prf-v3-identity-row {
    position: relative;
    z-index: 5;
    margin-top: 14px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  /* ── Avatar (JS replaces innerHTML) ── */
  .mwx-avatar {
    width: 92px; height: 92px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: linear-gradient(135deg, #ede7f6, #e8eaf6);
    box-shadow:
      0 10px 28px rgba(20, 10, 50, 0.22),
      0 0 0 2px rgba(103, 58, 183, 0.14);
    overflow: visible;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: box-shadow .2s ease, transform .16s ease;
  }
  .mwx-avatar > img,
  .mwx-avatar > .pv2-avatar-initials {
    border-radius: 50%;
  }
  .mwx-avatar > img { width: 100%; height: 100%; object-fit: cover; }
  .mwx-avatar > .nw-avatar-arc-badges { overflow: visible !important; }
  .mwx-avatar:hover {
    transform: scale(1.04);
    box-shadow:
      0 14px 34px rgba(20, 10, 50, 0.28),
      0 0 0 3px rgba(103, 58, 183, 0.3);
  }
  .mwx-avatar img { width: 100%; height: 100%; object-fit: cover; }

  .pv2-avatar-initials { color: #7E57C2; font-size: 30px; font-weight: 900; }

  .prf-v3-identity-copy {
    min-width: 0;
    align-self: center;
    padding: 0;
    display: grid;
    justify-items: start;
    gap: 5px;
  }

  #profile-name {
    margin: 0;
    color: #12082e;
    font-size: clamp(18px, 4vw, 25px);
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  #profile-username {
    margin: 0;
    padding: 4px 9px;
    border-radius: 999px;
    color: #5f5471;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 8px 18px rgba(31, 20, 60, 0.06);
    font-size: 12px;
    font-weight: 800;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  /* ── Upload progress ── */
  .mwx-upload {
    margin: 10px 16px 0;
    border-radius: 10px;
    border: 1px solid rgba(103, 58, 183, 0.22);
    background: rgba(103, 58, 183, 0.08);
    color: #8E6AD8;
    padding: 8px 12px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800;
  }
  .mwx-spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(103, 58, 183, 0.25);
    border-top-color: #7E57C2;
    border-radius: 50%;
    animation: mwxSpin .8s linear infinite;
    flex-shrink: 0;
  }
  @keyframes mwxSpin { to { transform: rotate(360deg); } }

  /* ── Stats ── */
  .mwx-stats {
    margin: 12px 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(103, 58, 183, 0.10);
    background: linear-gradient(135deg, rgba(237, 231, 246, 0.55) 0%, rgba(248, 244, 255, 0.75) 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
  }
  .mwx-stat {
    padding: 12px 8px;
    text-align: center;
    display: grid; gap: 3px;
    position: relative;
  }
  .mwx-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18%; bottom: 18%;
    inset-inline-end: 0;
    width: 1px;
    background: rgba(103, 58, 183, 0.15);
  }
  .mwx-stat strong { color: #8E6AD8; font-size: 22px; font-weight: 900; line-height: 1; }
  .mwx-stat span { color: #7b6a94; font-size: 10.5px; font-weight: 800; }

  /* ── Mode Switch card (JS hides entire #profile-switch-dock) ── */
  .prf-v3-mode-card { padding: 14px 16px; }
  .prf-v3-mode-label {
    margin: 0 0 8px; color: #12082e;
    font-size: 12px; font-weight: 900;
  }
  .mwx-mode-toggle,
  .ux-mode-switch {
    background: rgba(103, 58, 183, 0.06);
    border: 1px solid rgba(103, 58, 183, 0.14);
    border-radius: 12px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .pv2-mode-chip {
    border: 0;
    min-height: 40px;
    border-radius: 9px;
    background: transparent;
    color: #7860a0;
    font-family: 'Cairo', sans-serif;
    font-size: 12px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 7px; cursor: pointer;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
  }
  .pv2-mode-chip.active {
    background: linear-gradient(135deg, #7E57C2, #7E57C2);
    color: #fff;
    box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
  }

  /* ── Provider KPI strip (JS toggles .hidden) ── */
  .provider-dashboard-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid rgba(103, 58, 183, 0.08);
  }

  /* Override any hide rules from pages.css */
  body.page-profile.page-profile-v3 .provider-dashboard-strip:not(.hidden) { display: grid !important; }
  body.page-profile.page-profile-v3 .provider-dashboard-strip.hidden { display: none !important; }
  body.page-profile.page-profile-v3 #provider-cta:not(.hidden) { display: grid !important; }
  body.page-profile.page-profile-v3 #provider-cta.hidden { display: none !important; }
  body.page-profile.page-profile-v3 #provider-section:not(.hidden) { display: block !important; }
  body.page-profile.page-profile-v3 #provider-section.hidden { display: none !important; }

  .provider-kpi {
    border: 1px solid rgba(103, 58, 183, 0.14);
    border-radius: 14px;
    min-height: 72px;
    padding: 10px 6px;
    background: linear-gradient(150deg, #fff 0%, #f5f0ff 100%);
    display: grid; align-content: center; justify-items: center;
    text-decoration: none; gap: 4px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  @media (hover: hover) {
    .provider-kpi:hover {
      transform: translateY(-2px);
      border-color: rgba(103, 58, 183, 0.3);
      box-shadow: 0 10px 22px rgba(103, 58, 183, 0.12);
    }
  }
  .provider-kpi-value { color: #8E6AD8; font-size: 20px; font-weight: 900; line-height: 1; }
  .provider-kpi-label { color: #7b6a94; font-size: 10px; font-weight: 800; text-align: center; line-height: 1.3; }

  /* ── Provider CTA (JS toggles .hidden) ── */
  .prf-v3-cta {
    margin: 0 14px 16px;
    padding: 15px;
    border: 1px solid rgba(20, 184, 166, 0.26);
    border-radius: 18px;
    background:
      linear-gradient(145deg, rgba(240, 253, 250, 0.96) 0%, rgba(255, 255, 255, 0.98) 54%, rgba(250, 245, 255, 0.96) 100%);
    display: grid;
    gap: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  }
  .prf-v3-cta::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #14b8a6, #7c3aed 58%, #f59e0b);
  }
  .provider-cta-head { display: grid; gap: 7px; min-width: 0; }
  .provider-cta-kicker {
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.20);
    color: #1FB5A8;
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.2;
  }
  .provider-cta-title {
    color: #12082e;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
  }
  .provider-cta-copy {
    color: #5e4d7a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.85;
  }
  .provider-cta-benefits {
    display: grid;
    gap: 8px;
  }
  .provider-cta-benefit {
    min-height: 42px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(103, 58, 183, 0.10);
  }
  .provider-cta-benefit i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3ecff;
    color: #7E57C2;
  }
  .provider-cta-benefit:nth-child(2) i {
    background: #e6fffb;
    color: #1FB5A8;
  }
  .provider-cta-benefit:nth-child(3) i {
    background: #fff7ed;
    color: #c2410c;
  }
  .provider-cta-benefit span {
    color: #2d2342;
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1.5;
  }
  .provider-cta-actions {
    display: grid;
  }
  .prf-v3-cta .provider-cta-primary {
    min-height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
  }
  .prf-v3-cta .provider-cta-primary {
    background: linear-gradient(135deg, #1FB5A8, #14b8a6);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(20, 184, 166, 0.24);
  }
  .prf-v3-cta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(20, 184, 166, 0.28);
  }
  .provider-cta-proof {
    margin: 0;
    padding: 9px 10px;
    border-radius: 13px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #7c4a03;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
  }

  /* ── Summary card (desktop only — hidden on small mobile) ── */
  .prf-v3-summary-card { padding: 18px 20px; }
  .prf-v3-badge {
    display: inline-flex; align-items: center;
    min-height: 24px; padding: 0 10px;
    border-radius: 999px;
    background: rgba(103, 58, 183, 0.10);
    border: 1px solid rgba(103, 58, 183, 0.20);
    color: #8E6AD8; font-size: 10px; font-weight: 900;
    margin-bottom: 8px;
  }
  .prf-v3-summary-title {
    margin: 0 0 6px; color: #12082e;
    font-size: clamp(18px, 3.5vw, 26px); font-weight: 900; line-height: 1.25;
  }
  #profile-head-intro {
    margin: 0 0 10px; color: #5e4d7a;
    font-size: 12.5px; font-weight: 700; line-height: 1.9;
  }
  .prf-v3-command-sub {
    margin: 0; color: #7b6a94;
    font-size: 12px; font-weight: 700; line-height: 1.85;
  }
  .prf-v3-notes-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .prf-v3-note {
    min-height: 24px; padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(103, 58, 183, 0.18);
    background: rgba(103, 58, 183, 0.07);
    color: #8E6AD8; font-size: 10.5px; font-weight: 800;
    display: inline-flex; align-items: center;
  }

  /* ── Quick Actions ── */
  .prf-v3-actions-card { padding: 18px 16px; }
  .prf-v3-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .prf-v3-panel-title { margin: 0; color: #12082e; font-size: 16px; font-weight: 900; }

  .mwx-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .mwx-action {
    border: 1px solid rgba(103, 58, 183, 0.12);
    border-radius: 16px;
    min-height: 90px; padding: 12px 8px;
    background: linear-gradient(155deg, #ffffff 0%, #f8f3ff 100%);
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  }
  @media (hover: hover) {
    .mwx-action:hover {
      transform: translateY(-3px);
      border-color: rgba(103, 58, 183, 0.28);
      box-shadow: 0 12px 26px rgba(103, 58, 183, 0.13);
    }
  }
  .mwx-action:active { transform: scale(0.97); }
  .mwx-action i {
    width: 42px; height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.16), rgba(103, 58, 183, 0.07));
    color: #7E57C2;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .mwx-action span { color: #2d1f4a; font-size: 12px; font-weight: 800; text-align: center; line-height: 1.3; }

  /* ── Tools & Settings Panel ── */
  .prf-v3-tools-card { padding: 18px 16px; }
  .mwx-menu-list { display: grid; gap: 8px; }
  .mwx-menu-item {
    border: 1px solid rgba(103, 58, 183, 0.10);
    border-radius: 14px;
    min-height: 62px; padding: 12px 14px;
    background: rgba(248, 244, 255, 0.65);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px; align-items: center;
    text-align: right; cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
    font-family: 'Cairo', sans-serif;
    width: 100%; color: inherit; text-decoration: none;
    -webkit-appearance: none; appearance: none; border-style: solid;
  }
  @media (hover: hover) {
    .mwx-menu-item:hover {
      background: rgba(103, 58, 183, 0.09);
      border-color: rgba(103, 58, 183, 0.22);
      box-shadow: 0 6px 16px rgba(103, 58, 183, 0.09);
    }
  }
  .mwx-menu-item:active { transform: scale(0.99); }
  .mwx-menu-item i {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.14), rgba(103, 58, 183, 0.07));
    color: #7E57C2;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .mwx-menu-item strong { display: block; color: #12082e; font-size: 13px; font-weight: 900; }
  .mwx-menu-item small { display: block; color: #7b6a94; font-size: 11px; font-weight: 700; margin-top: 2px; line-height: 1.5; }
  .mwx-arrow { color: #c4b3dc; flex-shrink: 0; transition: transform .14s ease; }
  .mwx-menu-item:hover .mwx-arrow { transform: translateX(-2px); }

  .mwx-badge {
    min-width: 26px; height: 22px;
    border-radius: 999px; padding: 0 8px;
    background: linear-gradient(135deg, #7E57C2, #7E57C2);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 900;
    box-shadow: 0 3px 10px rgba(103, 58, 183, 0.28);
    flex-shrink: 0;
  }

  /* ── Provider Section ── */
  .prf-v3-provider-section { padding: 18px 16px; }

  /* ── Dark mode audit fixes ── */
  [data-theme="dark"] body.page-profile.page-profile-v3 {
    background: #0f1726;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .page-content {
    background:
      radial-gradient(900px 360px at 82% -8%, rgba(103, 58, 183, 0.24), transparent 58%),
      radial-gradient(720px 320px at 0% 24%, rgba(45, 212, 191, 0.11), transparent 56%),
      linear-gradient(180deg, #0b1422 0%, #101b2d 50%, #0f1726 100%) !important;
    color: #f4f7fb;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .prf-v3-card,
  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-dashboard-strip,
  [data-theme="dark"] body.page-profile.page-profile-v3 .prf-v3-cta,
  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-profile-card {
    background: linear-gradient(165deg, rgba(23, 34, 52, 0.98), rgba(18, 27, 42, 0.96)) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f4f7fb;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30) !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .prf-v3-cover {
    background:
      radial-gradient(ellipse at 95% 5%, rgba(255,255,255,0.16), transparent 36%),
      radial-gradient(ellipse at 5% 95%, rgba(45,212,191,0.10), transparent 34%),
      linear-gradient(128deg, #0f2d37 0%, #174052 34%, #2f2146 70%, #7353C8 100%);
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-avatar {
    border-color: rgba(255, 255, 255, 0.80);
    background: linear-gradient(135deg, #eee8ff, #dbeafe);
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 :is(
    #profile-name,
    .prf-v3-mode-label,
    .prf-v3-summary-title,
    .prf-v3-panel-title,
    .provider-cta-title,
    .provider-cta-benefit span,
    .mwx-menu-item strong,
    .provider-profile-card strong
  ) {
    color: #f4f7fb !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 :is(
    #profile-head-intro,
    .prf-v3-command-sub,
    .provider-cta-copy,
    .mwx-menu-item small,
    .provider-kpi-label,
    .mwx-stat span,
    .provider-profile-card small,
    .provider-profile-card p
  ) {
    color: #c7d2e4 !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 #profile-username,
  [data-theme="dark"] body.page-profile.page-profile-v3 .prf-v3-badge,
  [data-theme="dark"] body.page-profile.page-profile-v3 .prf-v3-note {
    background: rgba(167, 139, 250, 0.14) !important;
    border-color: rgba(196, 181, 253, 0.22) !important;
    color: #d8ccff !important;
    box-shadow: none;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-stats {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-cta-kicker {
    background: rgba(45, 212, 191, 0.14) !important;
    border-color: rgba(94, 234, 212, 0.22) !important;
    color: #99f6e4 !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-cta-benefit {
    background: rgba(255, 255, 255, 0.065) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-cta-benefit i {
    background: rgba(167, 139, 250, 0.16) !important;
    color: #c4b5fd !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-cta-benefit:nth-child(2) i {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #99f6e4 !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-cta-benefit:nth-child(3) i {
    background: rgba(251, 146, 60, 0.15) !important;
    color: #fed7aa !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-cta-proof {
    background: rgba(251, 146, 60, 0.13) !important;
    border-color: rgba(253, 186, 116, 0.20) !important;
    color: #fed7aa !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-stat:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.13);
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-stat strong,
  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-kpi-value {
    color: #a78bfa !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-mode-toggle,
  [data-theme="dark"] body.page-profile.page-profile-v3 .ux-mode-switch {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .pv2-mode-chip {
    color: #b8c4d6;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .pv2-mode-chip.active {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.30);
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-action,
  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-menu-item,
  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-kpi {
    background: rgba(255, 255, 255, 0.065) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f4f7fb !important;
    box-shadow: none !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-action:hover,
  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-menu-item:hover,
  [data-theme="dark"] body.page-profile.page-profile-v3 .provider-kpi:hover {
    background: rgba(167, 139, 250, 0.13) !important;
    border-color: rgba(196, 181, 253, 0.26) !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-action i,
  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-menu-item i {
    background: rgba(167, 139, 250, 0.16) !important;
    color: #c4b5fd !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-action span {
    color: #f4f7fb !important;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-arrow {
    color: #93a4bd;
  }

  [data-theme="dark"] body.page-profile.page-profile-v3 .mwx-upload {
    background: rgba(167, 139, 250, 0.14);
    border-color: rgba(196, 181, 253, 0.22);
    color: #d8ccff;
  }

  /* ── Desktop adjustments ── */
  @media (min-width: 880px) {
    .prf-v3-cover { min-height: 190px; }
    .prf-v3-cover img { min-height: 190px; max-height: 250px; }
    .profile-cover-placeholder { min-height: 190px; }
  }

  /* ── Mobile ≤420px ── */
  @media (max-width: 420px) {
    .prf-v3-shell { padding: 8px 10px 0; }
    .prf-v3-card { border-radius: 18px; }
    .prf-v3-cover { min-height: 165px; }
    .prf-v3-cover img { min-height: 165px; }
    .profile-cover-placeholder { min-height: 165px; }
    .mwx-avatar { width: 80px; height: 80px; }
    .prf-v3-identity-row {
      margin-top: 12px;
      padding: 0 14px;
      grid-template-columns: 86px minmax(0, 1fr);
      gap: 12px;
    }
    .prf-v3-identity-copy { padding: 0; gap: 4px; }
    .pv2-avatar-initials { font-size: 26px; }
    #profile-name { font-size: 20px; line-height: 1.12; }
    #profile-username { font-size: 11px; }
    .mwx-stat strong { font-size: 19px; }
    .mwx-actions-grid { gap: 8px; }
    .mwx-action { min-height: 82px; padding: 10px 6px; border-radius: 14px; gap: 7px; }
    .mwx-action i { width: 38px; height: 38px; border-radius: 11px; }
    .mwx-action span { font-size: 11px; }
    .prf-v3-summary-card { display: none; }
    .prf-v3-actions-card, .prf-v3-tools-card, .prf-v3-provider-section { padding: 14px 12px; }
    .prf-v3-panel-title { font-size: 15px; }
    .mwx-menu-item { padding: 10px 12px; min-height: 56px; border-radius: 12px; gap: 10px; grid-template-columns: auto minmax(0, 1fr) auto; }
    .mwx-menu-item i { width: 34px; height: 34px; border-radius: 10px; }
    .mwx-menu-item .mwx-arrow { display: none; }
    .prf-v3-cta { margin: 0 10px 14px; }
  }

  /* ── Mobile ≤360px ── */
  @media (max-width: 360px) {
    .prf-v3-identity-row {
      grid-template-columns: 78px minmax(0, 1fr);
      gap: 10px;
      padding: 0 12px;
    }
    .prf-v3-identity-copy { padding: 0; }
    #profile-name { font-size: 18px; }
    .mwx-actions-grid { gap: 6px; }
    .mwx-action { min-height: 74px; padding: 8px 4px; border-radius: 12px; }
    .mwx-action span { font-size: 10px; }
    .mwx-stat strong { font-size: 17px; }
    .mwx-stat span { font-size: 10px; }
    .mwx-stats { margin: 10px 12px 12px; }
  }
