/*
 * AF-Health 1.39.7
 * Sunrise Gold + Crimson Pulse
 * Complete public, authentication, registration, and non-admin portal themes.
 */

/* --------------------------------------------------------------------------
   Shared contract for the two new themes
   -------------------------------------------------------------------------- */
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin){
  --new-theme-line:color-mix(in srgb,var(--primary) 22%,var(--border));
  --new-theme-soft:color-mix(in srgb,var(--primary-soft) 74%,var(--surface));
  --new-theme-surface:color-mix(in srgb,var(--surface) 96%,transparent);
  --new-theme-raised:color-mix(in srgb,var(--surface) 88%,var(--primary-soft));
  --new-theme-ink:var(--text);
  --new-theme-muted:var(--muted);
  --new-theme-accent:var(--primary);
  --new-theme-accent-strong:var(--primary-strong);
  --new-theme-on-accent:var(--theme-on-primary,#fff);
  --portal-role-accent:var(--primary);
  --portal-role-soft:color-mix(in srgb,var(--primary-soft) 78%,transparent);
  color:var(--text);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .card,
  .auth-card,
  .signup-form-surface,
  .registration-form-card,
  .marketplace-registration-panel,
  .provider-directory-managed-html__surface,
  .public-page-managed-html__surface,
  .temporary-search-card,
  .temporary-capability-card,
  .temporary-registration-panel,
  .temporary-provider-card,
  .temporary-marketplace-card
){
  border-color:var(--new-theme-line);
  background:var(--theme-card-bg,var(--new-theme-surface));
  color:var(--text);
  box-shadow:var(--theme-card-shadow,var(--shadow-sm));
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .input,
  .select,
  .textarea,
  .auth-input-control,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
){
  border-color:color-mix(in srgb,var(--primary) 18%,var(--border));
  background:color-mix(in srgb,var(--surface) 97%,var(--primary-soft));
  color:var(--text);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .input,
  .select,
  .textarea,
  .auth-input-control,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
):focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 15%,transparent);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.btn-primary,.auth-submit){
  border-color:color-mix(in srgb,var(--primary-strong) 82%,var(--primary));
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  color:var(--new-theme-on-accent);
  box-shadow:0 13px 30px color-mix(in srgb,var(--primary-strong) 22%,transparent);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.btn-primary,.auth-submit):hover{
  border-color:var(--primary-strong);
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 88%,#fff),var(--primary-strong));
  color:var(--new-theme-on-accent);
  transform:translateY(-1px);
  box-shadow:0 17px 38px color-mix(in srgb,var(--primary-strong) 28%,transparent);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.btn-outline,.icon-button,.command-trigger){
  border-color:var(--new-theme-line);
  background:color-mix(in srgb,var(--surface) 92%,transparent);
  color:var(--primary-strong);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.btn-outline,.icon-button,.command-trigger):hover{
  border-color:color-mix(in srgb,var(--primary) 45%,var(--border));
  background:var(--primary-soft);
  color:var(--primary-strong);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .eyebrow,
  .section-overline,
  .section-kicker,
  .dashboard-kicker,
  .doctor-dashboard-eyebrow,
  .provider-section-kicker,
  .provider-card-eyebrow,
  .provider-directory-results-eyebrow,
  .signup-guide-kicker
){
  color:var(--primary-strong);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .badge-approved,
  .badge-active,
  .portal-badge,
  .provider-trust-chip,
  .metric-trend,
  .plan-status
){
  border-color:color-mix(in srgb,var(--portal-role-accent) 26%,var(--border));
  background:color-mix(in srgb,var(--portal-role-soft) 84%,var(--surface));
  color:color-mix(in srgb,var(--portal-role-accent) 82%,var(--text));
}

/* --------------------------------------------------------------------------
   Sunrise Gold: radiant public identity
   -------------------------------------------------------------------------- */
body.frontend-theme-sunrise_gold:not(.role-admin){
  --public-hero-bg:linear-gradient(128deg,var(--theme-hero-a) 0%,color-mix(in srgb,var(--theme-hero-b) 92%,#fff06a) 60%,#fff3a6 100%);
  --public-hero-ink:var(--theme-on-primary);
  --public-hero-muted:color-mix(in srgb,var(--theme-on-primary) 78%,#fff4ad);
  --public-hero-accent:color-mix(in srgb,#fff 82%,var(--primary) 18%);
  --public-hero-panel:color-mix(in srgb,#fff 34%,transparent);
  --public-hero-panel-strong:color-mix(in srgb,#fff 42%,transparent);
  --public-hero-line:color-mix(in srgb,var(--theme-on-primary) 16%,transparent);
  --hero-ink:var(--public-hero-ink);
  --hero-muted:var(--public-hero-muted);
  --hero-accent:var(--public-hero-accent);
  --hero-panel:var(--public-hero-panel);
  --hero-panel-strong:var(--public-hero-panel-strong);
  --hero-line:var(--public-hero-line);
}

body.frontend-theme-sunrise_gold .theme-atmosphere .shape-one{
  width:min(54vw,760px);
  inset:-19vw auto auto -13vw;
  opacity:.42;
  background:radial-gradient(circle,color-mix(in srgb,var(--primary) 34%,transparent) 0 35%,transparent 36% 46%,color-mix(in srgb,var(--primary) 15%,transparent) 47% 49%,transparent 50%);
}
body.frontend-theme-sunrise_gold .theme-atmosphere .shape-two{
  width:min(42vw,610px);
  inset:24vh -14vw auto auto;
  opacity:.34;
  background:repeating-conic-gradient(from 18deg,color-mix(in srgb,var(--primary) 17%,transparent) 0 7deg,transparent 7deg 18deg);
  filter:blur(2px);
}
body.frontend-theme-sunrise_gold .theme-atmosphere .shape-three{
  width:min(38vw,520px);
  inset:auto auto -17vw 24vw;
  border-radius:44% 56% 66% 34% / 58% 35% 65% 42%;
  background:color-mix(in srgb,var(--primary-soft) 56%,transparent);
}
body.frontend-theme-sunrise_gold .theme-atmosphere-grid{
  opacity:.13;
  background-image:radial-gradient(circle,color-mix(in srgb,var(--primary-strong) 24%,transparent) 1.1px,transparent 1.2px);
  background-size:30px 30px;
  mask-image:linear-gradient(180deg,#000,transparent 76%);
}
body.frontend-theme-sunrise_gold .theme-atmosphere .line-one,
body.frontend-theme-sunrise_gold .theme-atmosphere .line-two{
  height:2px;
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--primary) 24%,transparent),transparent);
}

body.guest-shell.frontend-theme-sunrise_gold .public-header{
  border-bottom:1px solid color-mix(in srgb,var(--primary) 24%,var(--border));
  background:color-mix(in srgb,var(--surface) 90%,transparent);
  box-shadow:0 14px 42px rgba(106,71,0,.075);
  backdrop-filter:blur(19px) saturate(135%);
}
body.guest-shell.frontend-theme-sunrise_gold .public-nav{
  position:relative;
}
body.guest-shell.frontend-theme-sunrise_gold .public-nav::after{
  content:"";
  position:absolute;
  inset:auto 0 -1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,var(--primary),color-mix(in srgb,var(--primary) 48%,#fff7a7),transparent);
  opacity:.62;
}
body.guest-shell.frontend-theme-sunrise_gold .public-brand-mark,
body.guest-shell.frontend-theme-sunrise_gold .public-brand>img{
  filter:drop-shadow(0 7px 15px color-mix(in srgb,var(--primary-strong) 18%,transparent));
}
body.guest-shell.frontend-theme-sunrise_gold .public-links a{
  border:1px solid transparent;
}
body.guest-shell.frontend-theme-sunrise_gold .public-links a:hover{
  border-color:color-mix(in srgb,var(--primary) 22%,transparent);
  background:color-mix(in srgb,var(--primary-soft) 72%,var(--surface));
}
body.guest-shell.frontend-theme-sunrise_gold .public-links a:is(.active,[aria-current="page"],[aria-current="location"]){
  border-color:var(--theme-selected-menu-bg,#f8d549);
  background:var(--theme-selected-menu-bg,#f8d549);
  color:#e8002a!important;
  box-shadow:0 7px 18px color-mix(in srgb,var(--primary) 18%,transparent);
}
body.guest-shell.frontend-theme-sunrise_gold .public-links a:is(.active,[aria-current="page"],[aria-current="location"]) :where(.ui-icon,svg){
  color:#e8002a!important;
}
body.guest-shell.frontend-theme-sunrise_gold .public-links a:is(.active,[aria-current="page"],[aria-current="location"])::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:3px;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#e8002a;
  transform:translateX(-50%);
}
body.guest-shell.frontend-theme-sunrise_gold .public-trust-bar{
  border-bottom:1px solid color-mix(in srgb,var(--theme-trust-bar-text) 17%,transparent);
  background:
    radial-gradient(circle at 12% 50%,color-mix(in srgb,var(--primary) 25%,transparent),transparent 25%),
    var(--theme-trust-bar-bg);
  color:var(--theme-trust-bar-text);
}
body.guest-shell.frontend-theme-sunrise_gold .public-trust-bar,
body.guest-shell.frontend-theme-sunrise_gold .public-trust-bar span,
body.guest-shell.frontend-theme-sunrise_gold .public-trust-bar .ui-icon{
  color:#000!important;
}

body.guest-shell.frontend-theme-sunrise_gold .public-trust-badge{
  border-color:var(--theme-trust-badge-border);
  background:var(--theme-trust-badge-bg);
  color:var(--theme-trust-badge-text);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--theme-trust-badge-bg) 15%,transparent);
}

body.frontend-theme-sunrise_gold :where(.product-hero,.public-theme-hero,.directory-provider-hero.public-theme-hero-directory,.marketplace-hero-grid){
  background:
    radial-gradient(circle at 78% 24%,color-mix(in srgb,#fff 24%,transparent) 0 5%,transparent 5.5% 11%,color-mix(in srgb,#fff 13%,transparent) 11.5% 12%,transparent 12.5%),
    repeating-conic-gradient(from 214deg at 82% 32%,color-mix(in srgb,#fff 7%,transparent) 0 7deg,transparent 7deg 19deg),
    var(--public-hero-bg)!important;
  color:var(--public-hero-ink)!important;
}
body.frontend-theme-sunrise_gold :where(.product-hero,.public-theme-hero,.directory-provider-hero.public-theme-hero-directory,.marketplace-hero-grid)::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:auto -8% -32% 27%;
  height:56%;
  border:1px solid color-mix(in srgb,#fff 18%,transparent);
  border-radius:50% 50% 0 0;
  background:linear-gradient(180deg,color-mix(in srgb,#fff 7%,transparent),transparent);
  transform:rotate(-3deg);
  pointer-events:none;
}
body.frontend-theme-sunrise_gold :where(.product-hero-copy,.directory-provider-hero-copy,.marketplace-hero-copy){
  position:relative;
  z-index:2;
}
body.frontend-theme-sunrise_gold :where(.product-hero-copy,.directory-provider-hero-copy,.marketplace-hero-copy) h1 em{
  color:var(--public-hero-accent)!important;
  text-shadow:0 7px 28px color-mix(in srgb,var(--primary) 28%,transparent);
}

body.frontend-theme-sunrise_gold .home-theme-mode-sunburst{
  border:1px solid color-mix(in srgb,#fff 28%,transparent)!important;
  border-radius:42px 42px 84px 42px!important;
  background:
    radial-gradient(circle at 50% 48%,color-mix(in srgb,var(--primary) 30%,transparent) 0 17%,transparent 18% 26%,color-mix(in srgb,#fff 11%,transparent) 27% 28%,transparent 29%),
    color-mix(in srgb,var(--theme-hero-a) 74%,transparent)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 24%,transparent),0 30px 72px rgba(168,135,0,.18)!important;
}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .decor-one{
  width:330px;
  height:330px;
  border:0;
  background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--public-hero-accent) 26%,transparent) 0 8deg,transparent 8deg 20deg);
  opacity:.56;
}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .decor-two{
  border:1px dashed color-mix(in srgb,#fff 35%,transparent);
  box-shadow:0 0 0 22px color-mix(in srgb,var(--primary) 7%,transparent),0 0 0 44px color-mix(in srgb,var(--primary) 5%,transparent);
}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .home-theme-core{
  width:188px;
  height:188px;
  border:1px solid color-mix(in srgb,#fff 42%,transparent);
  background:radial-gradient(circle at 35% 25%,color-mix(in srgb,#fff 25%,transparent),transparent 36%),linear-gradient(145deg,color-mix(in srgb,var(--primary) 52%,#fff4a3),color-mix(in srgb,var(--primary-strong) 74%,var(--theme-hero-a)));
  color:var(--theme-on-primary);
  box-shadow:0 0 0 12px color-mix(in srgb,var(--primary) 13%,transparent),0 24px 52px rgba(168,135,0,.18);
}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .home-theme-core img{
  padding:7px;
  border-radius:14px;
  background:color-mix(in srgb,#fff 88%,transparent);
}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .home-theme-node{
  border-color:color-mix(in srgb,#fff 25%,transparent);
  border-radius:18px 18px 34px 18px;
  background:linear-gradient(145deg,color-mix(in srgb,#fff 17%,transparent),color-mix(in srgb,var(--primary) 9%,transparent));
}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .node-a{transform:rotate(-2deg)}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .node-b{transform:rotate(2deg)}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .node-c{transform:rotate(1deg)}
body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .home-theme-connector{
  height:2px;
  background:linear-gradient(90deg,transparent,var(--public-hero-accent),transparent);
}

body.guest-shell.frontend-theme-sunrise_gold .home-hero-title-below-inner{
  border:1px solid color-mix(in srgb,var(--primary) 25%,var(--border));
  border-radius:0 0 36px 36px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 95%,transparent),color-mix(in srgb,var(--primary-soft) 34%,var(--surface)));
  box-shadow:0 24px 60px rgba(111,75,0,.09);
}
body.guest-shell.frontend-theme-sunrise_gold .home-hero-title-below-inner::before{
  background:linear-gradient(90deg,var(--primary-strong),var(--primary),color-mix(in srgb,var(--primary) 38%,#fff7a8));
}

body.guest-shell.frontend-theme-sunrise_gold :where(
  .home-provider-finder-panel,
  .home-doctor-specialties-panel,
  .marketplace-home-panel,
  .product-cta-panel,
  .signup-directory-hero
){
  border-color:color-mix(in srgb,var(--primary) 22%,var(--border));
  background:
    radial-gradient(circle at 92% 8%,color-mix(in srgb,var(--primary) 12%,transparent),transparent 24%),
    linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 30%,var(--surface)));
  box-shadow:0 25px 68px rgba(111,75,0,.10);
}
body.guest-shell.frontend-theme-sunrise_gold :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice,
  .faq-item
){
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--primary) 22%,var(--border));
  background:linear-gradient(150deg,var(--surface),color-mix(in srgb,var(--primary-soft) 32%,var(--surface)));
  box-shadow:0 12px 32px rgba(111,75,0,.07);
}
body.guest-shell.frontend-theme-sunrise_gold :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice,
  .faq-item
)::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,var(--primary-strong),var(--primary),color-mix(in srgb,var(--primary) 34%,#fff6a5));
  opacity:.88;
}
body.guest-shell.frontend-theme-sunrise_gold :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice
):hover{
  border-color:color-mix(in srgb,var(--primary) 48%,var(--border));
  transform:translateY(-4px);
  box-shadow:0 20px 44px rgba(111,75,0,.13);
}
body.guest-shell.frontend-theme-sunrise_gold :where(
  .home-provider-finder-icon,
  .home-doctor-specialty-icon,
  .home-doctor-condition-icon,
  .feature-icon,
  .signup-choice-icon,
  .temporary-summary-icon,
  .temporary-capability-icon
){
  border:1px solid color-mix(in srgb,var(--primary) 29%,var(--border));
  background:linear-gradient(145deg,#fff8c7,var(--primary-soft));
  color:var(--primary-strong);
  box-shadow:0 9px 22px color-mix(in srgb,var(--primary) 13%,transparent);
}

body.guest-shell.frontend-theme-sunrise_gold :where(
  .provider-directory-search,
  .provider-directory-results-toolbar,
  .marketplace-directory-filter-bar,
  .marketplace-results-heading-standard,
  .provider-directory-row,
  .pharmacy-listing-row,
  .pharmacy-product-row,
  .provider-showcase-stage,
  .provider-info-card,
  .provider-service-card,
  .provider-test-card,
  .provider-review-card
){
  border-color:color-mix(in srgb,var(--primary) 20%,var(--border));
  background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 25%,var(--surface)));
  box-shadow:0 13px 34px rgba(111,75,0,.07);
}
body.guest-shell.frontend-theme-sunrise_gold :where(.provider-directory-row,.pharmacy-listing-row,.pharmacy-product-row){
  position:relative;
  overflow:hidden;
}
body.guest-shell.frontend-theme-sunrise_gold :where(.provider-directory-row,.pharmacy-listing-row,.pharmacy-product-row)::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--primary),var(--primary-strong));
}
html[dir="rtl"] body.guest-shell.frontend-theme-sunrise_gold :where(.provider-directory-row,.pharmacy-listing-row,.pharmacy-product-row)::after{
  inset:0 0 0 auto;
}
body.guest-shell.frontend-theme-sunrise_gold :where(.provider-directory-status--active,.pharmacy-listing-open,.pharmacy-product-availability){
  border-color:color-mix(in srgb,var(--primary) 32%,var(--border));
  background:var(--primary-soft);
  color:var(--primary-strong);
}

body.frontend-theme-sunrise_gold .public-footer{
  background:
    radial-gradient(circle at 12% 0,color-mix(in srgb,var(--primary) 20%,transparent),transparent 27%),
    linear-gradient(145deg,var(--theme-footer),color-mix(in srgb,var(--theme-footer) 70%,var(--theme-sidebar-2)));
}
body.frontend-theme-sunrise_gold .public-footer::before{
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--primary) 75%,#fff6a1),transparent);
}
body.frontend-theme-sunrise_gold .public-footer,
body.frontend-theme-sunrise_gold .public-footer :where(a,strong,p,span,.brand,.brand-copy,.brand-copy small){
  color:#000!important;
}
body.frontend-theme-sunrise_gold .public-footer .public-footer-grid a:hover{
  color:#e8002a!important;
}
body.frontend-theme-sunrise_gold .public-footer .footer-bottom{
  border-top-color:rgba(0,0,0,.16)!important;
}

/* Sunrise Gold provider + auth cleanup — no dark cards anywhere */
body.frontend-theme-sunrise_gold:not(.role-admin){
  --sunrise-card-flat:#fed501;
  --sunrise-card-flat-2:#f8d549;
  --sunrise-card-soft:#fff4aa;
  --sunrise-card-soft-2:#fff8cf;
  --sunrise-card-border:#f2c400;
  --sunrise-card-red:#e8002a;
  --sunrise-card-ink:#000000;
  --sunrise-card-muted:#6a5600;
  --provider-stage-a:#fed501;
  --provider-stage-b:#f8d549;
  --provider-stage-c:#fff4aa;
  --provider-highlight:#e8002a;
  --theme-auth-bg:radial-gradient(circle at 84% 14%,rgba(255,255,255,.32),transparent 24%),linear-gradient(180deg,#fed501,#f8d549);
  --theme-auth-heading:#000000;
  --theme-auth-body:#6a5600;
  --theme-auth-accent:#e8002a;
  --theme-auth-feature:#000000;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-showcase-stage,.provider-story-card,.provider-schedule-note,.provider-credential-card--metric),
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro[class*="provider-intro--"],.marketplace-registration-intro-card){
  border-color:color-mix(in srgb,var(--sunrise-card-red) 16%,var(--sunrise-card-border))!important;
  background:radial-gradient(circle at 86% 12%,rgba(255,255,255,.22),transparent 24%),linear-gradient(180deg,var(--sunrise-card-flat),var(--sunrise-card-flat-2))!important;
  color:var(--sunrise-card-ink)!important;
  box-shadow:0 18px 46px rgba(232,0,42,.08),0 14px 34px rgba(248,213,73,.28)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-stage::before,
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro[class*="provider-intro--"],.marketplace-registration-intro-card)::before{
  background:linear-gradient(115deg,rgba(255,255,255,.18),transparent 28%,transparent 66%,rgba(232,0,42,.08))!important;
  mix-blend-mode:normal!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-showcase-stage,.provider-schedule-note)::after,
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-showcase-stage,.provider-schedule-note)::before{
  border-color:rgba(232,0,42,.16)!important;
  box-shadow:0 0 0 34px rgba(255,255,255,.14)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-story-card::before{
  background:color-mix(in srgb,var(--sunrise-card-red) 8%,transparent)!important;
  box-shadow:0 0 0 50px color-mix(in srgb,var(--sunrise-card-red) 4%,transparent)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-story-card::after{
  background:linear-gradient(var(--sunrise-card-red),color-mix(in srgb,var(--sunrise-card-red) 36%,#ffffff))!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-showcase-emblem,.provider-showcase-copy,.provider-showcase-insights,.provider-story-card,.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-emblem *, .provider-showcase-copy *, .provider-showcase-insights *, .provider-story-card *, .provider-schedule-note *, .provider-credential-card--metric *, .provider-intro[class*="provider-intro--"], .provider-intro[class*="provider-intro--"] *, .marketplace-registration-intro-card, .marketplace-registration-intro-card *){
  text-shadow:none!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-showcase-role,.provider-card-icon),
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.auth-brand-mark,.provider-intro-icon,.provider-intro-eyebrow,.provider-intro-step-marker,.provider-intro-steps article,.provider-intro-checklist,.provider-intro-note,.registration-benefits article,.provider-intro-login,.doctor-signup .signup-section-number,.laboratory-signup .signup-section-number,.hospital-signup .signup-section-number,.marketplace-signup .signup-section-number){
  border-color:color-mix(in srgb,var(--sunrise-card-red) 24%,var(--sunrise-card-border))!important;
  background:rgba(255,248,190,.88)!important;
  color:var(--sunrise-card-red)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-card-icon svg,.provider-showcase-role svg),
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro-icon svg,.auth-brand-mark img){
  color:var(--sunrise-card-red)!important;
  stroke:currentColor!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-card-index,.provider-showcase-role,.provider-schedule-day,.provider-credential-card--metric>small),
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro-kicker,.provider-intro-step-marker,.provider-intro-login,.auth-overline){
  color:var(--sunrise-card-red)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-showcase-summary,.provider-showcase-qualifications,.provider-showcase-identity .public-provider-address,.provider-story-copy,.provider-story-signature small,.provider-schedule-note p,.provider-credential-card--metric p),
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro p,.provider-intro-checklist li,.provider-intro-note,.registration-benefits article,.auth-visual-content>p,.auth-trust-list span){
  color:var(--sunrise-card-muted)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :where(.provider-showcase-identity .public-provider-name-en,.provider-showcase-identity .public-provider-name-ar,.provider-story-card h3,.provider-story-signature span,.provider-schedule-note h3,.provider-credential-card--metric>strong),
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro h1,.provider-intro h2,.provider-intro h3,.auth-visual-content h1,.auth-card-modern h1,.auth-card-modern h2,.auth-card-modern .form-label,.auth-card-modern .intro,.auth-card-modern p,.auth-card-modern .forgot,.auth-card-modern .remember,.auth-card-modern .helper,.auth-card-modern .text-muted){
  color:var(--sunrise-card-ink)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-avatar{
  border-color:rgba(232,0,42,.28)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.42),rgba(255,245,161,.7))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 20px 42px rgba(232,0,42,.12)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-avatar::after{
  background:rgba(232,0,42,.76)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .btn,
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro-login,.auth-card-modern .btn-primary,.auth-card-modern button[type="submit"],.auth-card-modern input[type="submit"]){
  border-color:color-mix(in srgb,var(--sunrise-card-red) 22%,var(--sunrise-card-border))!important;
  background:linear-gradient(180deg,#ffef7a,#fed501)!important;
  color:#000!important;
  box-shadow:none!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .btn{
  width:100%;
  justify-content:space-between;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .btn .ui-icon,
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .btn svg,
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.auth-card-modern .btn-primary svg,.auth-card-modern button[type="submit"] svg,.provider-intro-login svg){
  color:var(--sunrise-card-red)!important;
  stroke:currentColor!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .btn:hover,
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.provider-intro-login:hover,.auth-card-modern .btn-primary:hover,.auth-card-modern button[type="submit"]:hover,.auth-card-modern input[type="submit"]:hover){
  border-color:var(--sunrise-card-red)!important;
  background:linear-gradient(180deg,#fff3a4,#f8d549)!important;
  color:#000!important;
}

/* Sunrise Gold auth screens — remove all dark panels */
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-experience,
body.frontend-theme-sunrise_gold:not(.role-admin) .auth-form-panel{
  background:linear-gradient(180deg,#fffdf0,#fff8cf)!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-visual-panel{
  min-width:0;
  padding:clamp(44px,5.5vw,86px);
  background:radial-gradient(circle at 84% 14%,rgba(255,255,255,.32),transparent 24%),linear-gradient(180deg,#fed501,#f8d549)!important;
  color:#000!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-visual-panel::before,
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-visual-panel::after{
  border-color:rgba(232,0,42,.16)!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-brand-mark{
  background:rgba(255,248,190,.88)!important;
  border:1px solid color-mix(in srgb,var(--sunrise-card-red) 24%,var(--sunrise-card-border))!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-card-modern{
  border-color:color-mix(in srgb,var(--sunrise-card-red) 12%,var(--sunrise-card-border))!important;
  background:linear-gradient(180deg,#ffffff,#fff8cf)!important;
  box-shadow:0 18px 40px rgba(248,213,73,.22)!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-input-shell{
  border-color:color-mix(in srgb,var(--sunrise-card-border) 82%,#f4df73)!important;
  background:#fffdf0!important;
  color:#000!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.66)!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-input-shell:hover,
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-input-shell:focus-within{
  border-color:var(--sunrise-card-red)!important;
  background:#ffffff!important;
  box-shadow:0 0 0 3px rgba(232,0,42,.12)!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-input-icon,
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-trust-list svg,
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-card-modern a{
  color:var(--sunrise-card-red)!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-input-control,
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-input-control::placeholder{
  color:#000!important;
  opacity:1!important;
}
body.frontend-theme-sunrise_gold.route-login:not(.role-admin) .auth-input-control::placeholder{
  color:#7a6300!important;
}

body.frontend-theme-sunrise_gold:not(.role-admin){
  --sunrise-btn-bg:linear-gradient(180deg,#ffef7a,#fed501);
  --sunrise-btn-bg-hover:linear-gradient(180deg,#fff3a4,#f8d549);
  --sunrise-btn-border:color-mix(in srgb,var(--sunrise-card-red) 22%,var(--sunrise-card-border));
  --sunrise-btn-shadow:0 10px 22px rgba(248,213,73,.18);
}
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.btn,.button,.auth-submit,.auth-secondary,button[type="submit"],input[type="submit"],input[type="button"]){
  border-radius:14px!important;
  font-weight:800!important;
  letter-spacing:-.01em;
}
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.btn-primary,.btn-secondary,.btn-light,.btn-success,.btn-danger,.auth-submit,button[type="submit"],input[type="submit"],input[type="button"]){
  border:1px solid var(--sunrise-btn-border)!important;
  background:var(--sunrise-btn-bg)!important;
  color:#000!important;
  box-shadow:var(--sunrise-btn-shadow)!important;
}
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.btn-outline,.btn-ghost,.auth-secondary){
  border:1px solid var(--sunrise-btn-border)!important;
  background:linear-gradient(180deg,#fff8cf,#fff0a6)!important;
  color:#000!important;
  box-shadow:var(--sunrise-btn-shadow)!important;
}
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.btn-primary:hover,.btn-secondary:hover,.btn-light:hover,.btn-success:hover,.btn-danger:hover,.btn-outline:hover,.btn-ghost:hover,.auth-submit:hover,.auth-secondary:hover,button[type="submit"]:hover,input[type="submit"]:hover,input[type="button"]:hover){
  border-color:var(--sunrise-card-red)!important;
  background:var(--sunrise-btn-bg-hover)!important;
  color:#000!important;
  box-shadow:0 12px 24px rgba(248,213,73,.22)!important;
  transform:translateY(-1px);
}
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.btn-primary:focus-visible,.btn-secondary:focus-visible,.btn-light:focus-visible,.btn-success:focus-visible,.btn-danger:focus-visible,.btn-outline:focus-visible,.btn-ghost:focus-visible,.auth-submit:focus-visible,.auth-secondary:focus-visible,button[type="submit"]:focus-visible,input[type="submit"]:focus-visible,input[type="button"]:focus-visible){
  outline:none!important;
  box-shadow:0 0 0 3px rgba(232,0,42,.14),var(--sunrise-btn-shadow)!important;
}
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.btn .ui-icon,.btn svg,button[type="submit"] .ui-icon,button[type="submit"] svg,input[type="submit"] + .ui-icon){
  color:var(--sunrise-card-red)!important;
  stroke:currentColor!important;
}
body.frontend-theme-sunrise_gold:not(.role-admin) :where(.btn[disabled],button[disabled],input[disabled],.btn.disabled){
  opacity:.68;
  box-shadow:none!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note{
  justify-content:flex-start;
  padding:118px 28px 28px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .provider-card-icon{
  top:30px;
  left:30px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .provider-card-index{
  top:28px;
  right:24px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note h3{
  margin:0 0 8px!important;
  padding-inline-end:54px;
  font-size:clamp(1.32rem,1.4vw,1.62rem);
  line-height:1.08;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note p{
  margin:0 0 22px!important;
  font-size:.84rem;
  line-height:1.55;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-schedule-note .btn{
  margin-top:auto;
}


/* Sunrise Gold provider showcase rebuild — light surfaces, black text, improved structure */
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-stage{
  grid-template-columns:minmax(158px,.55fr) minmax(0,2.15fr) minmax(298px,.98fr);
  gap:24px;
  padding:24px;
  border-color:color-mix(in srgb,var(--sunrise-card-red) 14%,var(--sunrise-card-border))!important;
  background:radial-gradient(circle at 88% 14%,rgba(255,255,255,.22),transparent 24%),linear-gradient(180deg,#f7d100,#f6d742)!important;
  box-shadow:0 18px 48px rgba(248,213,73,.26),0 8px 22px rgba(232,0,42,.08)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-stage::before{
  background:linear-gradient(120deg,rgba(255,255,255,.10),transparent 28%,transparent 72%,rgba(232,0,42,.06))!important;
  mix-blend-mode:normal!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-stage::after{
  width:240px;
  height:240px;
  right:-20px;
  bottom:-112px;
  border-color:rgba(232,0,42,.10)!important;
  box-shadow:0 0 0 34px rgba(255,255,255,.14),0 0 0 78px rgba(255,255,255,.08)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-emblem{
  padding:26px 16px;
  border:1px solid color-mix(in srgb,var(--sunrise-card-red) 18%,var(--sunrise-card-border));
  border-radius:30px;
  background:linear-gradient(180deg,#fffbe2,#fff6bf);
  color:#000;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 16px 34px rgba(248,213,73,.18);
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-emblem-glow{
  background:rgba(232,0,42,.08);
  filter:blur(26px);
  opacity:.78;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-avatar{
  width:138px;
  height:174px;
  border:1px solid rgba(239,171,155,.9)!important;
  border-radius:36px;
  background:linear-gradient(180deg,#fffdf0,#fff5b6)!important;
  color:#000!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 18px 34px rgba(248,213,73,.20)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-avatar>span{
  color:#e0b200!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-avatar::after{
  background:#f08e79!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-role{
  border-color:color-mix(in srgb,var(--sunrise-card-red) 24%,var(--sunrise-card-border))!important;
  background:#fff8cf!important;
  color:var(--sunrise-card-red)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-copy{
  justify-content:flex-start;
  gap:0;
  padding:clamp(28px,4vw,50px);
  border-color:color-mix(in srgb,var(--sunrise-card-red) 12%,var(--sunrise-card-border))!important;
  border-radius:34px!important;
  background:linear-gradient(180deg,#ffffff,#fffdf5)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 18px 42px rgba(248,213,73,.16)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-trust-row{
  margin-bottom:18px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :is(.provider-trust-row .portal-badge,.provider-trust-chip,.provider-showcase-tags>span,.provider-discovery-tags>span,.provider-specialty-cloud span){
  border-color:color-mix(in srgb,var(--sunrise-card-red) 16%,var(--sunrise-card-border))!important;
  background:linear-gradient(180deg,#fff8cf,#fff1a8)!important;
  color:#000!important;
  box-shadow:none!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :is(.provider-trust-row .portal-badge-icon,.provider-trust-chip svg,.provider-showcase-tags svg,.provider-discovery-tags svg){
  color:var(--sunrise-card-red)!important;
  stroke:currentColor!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-identity{
  gap:12px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-qualifications{
  gap:8px;
  margin-top:18px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-practice-name,
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-fact-list a,
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-fact-list dd,
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-specialty-cloud span{
  color:#000!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-tags{
  gap:9px;
  margin-top:22px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-actions{
  gap:11px;
  margin-top:26px;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-showcase-insights{
  border-color:color-mix(in srgb,var(--sunrise-card-red) 12%,var(--sunrise-card-border))!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,#fffdf0,#fff7ca)!important;
  color:#000!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 18px 38px rgba(248,213,73,.14)!important;
  backdrop-filter:none!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-insights-heading{
  border-bottom:1px solid color-mix(in srgb,var(--sunrise-card-border) 82%,transparent)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :is(.provider-insights-heading span,.provider-insight-grid strong,.provider-availability-signal span){
  color:#000!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :is(.provider-insights-heading small,.provider-insight-grid small,.provider-insight-grid em){
  color:var(--sunrise-card-muted)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-insight-grid>div{
  border-color:color-mix(in srgb,var(--sunrise-card-red) 10%,var(--sunrise-card-border))!important;
  background:linear-gradient(180deg,#fffef2,#fff8d7)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-insight-icon{
  background:#fff1a8!important;
  color:var(--sunrise-card-red)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-availability-signal{
  color:#000!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-availability-signal i{
  box-shadow:0 0 0 5px rgba(52,211,153,.15)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience :is(.provider-info-card,.provider-story-card,.provider-credential-card,.provider-specialty-showcase>article){
  border-color:color-mix(in srgb,var(--sunrise-card-red) 10%,var(--sunrise-card-border))!important;
  background:linear-gradient(180deg,#fffdf2,#fff9d7)!important;
}
body.guest-shell.frontend-theme-sunrise_gold:not(.role-admin) .provider-experience .provider-card-icon{
  border-color:color-mix(in srgb,var(--sunrise-card-red) 16%,var(--sunrise-card-border))!important;
  background:#fff5bc!important;
  color:var(--sunrise-card-red)!important;
}
/* --------------------------------------------------------------------------
   Crimson Pulse: focused public identity
   -------------------------------------------------------------------------- */
body.frontend-theme-crimson_pulse:not(.role-admin){
  --public-hero-bg:linear-gradient(128deg,var(--theme-hero-a) 0%,color-mix(in srgb,var(--theme-hero-b) 86%,var(--theme-hero-a)) 58%,var(--primary) 100%);
  --public-hero-ink:#fff7f8;
  --public-hero-muted:color-mix(in srgb,#fff 76%,var(--primary-soft));
  --public-hero-accent:color-mix(in srgb,var(--primary) 46%,#ffd0d7);
  --public-hero-panel:color-mix(in srgb,#fff 9%,transparent);
  --public-hero-panel-strong:color-mix(in srgb,#fff 15%,transparent);
  --public-hero-line:color-mix(in srgb,#fff 22%,transparent);
  --hero-ink:var(--public-hero-ink);
  --hero-muted:var(--public-hero-muted);
  --hero-accent:var(--public-hero-accent);
  --hero-panel:var(--public-hero-panel);
  --hero-panel-strong:var(--public-hero-panel-strong);
  --hero-line:var(--public-hero-line);
}

body.frontend-theme-crimson_pulse .theme-atmosphere .shape-one{
  width:min(50vw,720px);
  inset:-17vw auto auto -14vw;
  border-radius:50%;
  opacity:.36;
  background:radial-gradient(circle,transparent 0 29%,color-mix(in srgb,var(--primary) 22%,transparent) 30% 31%,transparent 32% 42%,color-mix(in srgb,var(--primary) 13%,transparent) 43% 44%,transparent 45%);
}
body.frontend-theme-crimson_pulse .theme-atmosphere .shape-two{
  width:min(47vw,690px);
  inset:19vh -17vw auto auto;
  border-radius:50%;
  opacity:.36;
  background:repeating-radial-gradient(circle,transparent 0 28px,color-mix(in srgb,var(--primary) 12%,transparent) 29px 31px,transparent 32px 55px);
}
body.frontend-theme-crimson_pulse .theme-atmosphere .shape-three{
  width:min(34vw,480px);
  inset:auto auto -13vw 31vw;
  border-radius:14px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 12%,transparent),transparent 62%);
  transform:rotate(19deg);
}
body.frontend-theme-crimson_pulse .theme-atmosphere-grid{
  opacity:.10;
  background-image:
    linear-gradient(115deg,transparent 0 47%,color-mix(in srgb,var(--primary) 22%,transparent) 48% 49%,transparent 50%),
    linear-gradient(color-mix(in srgb,var(--primary) 8%,transparent) 1px,transparent 1px);
  background-size:170px 72px,100% 36px;
  mask-image:linear-gradient(180deg,#000,transparent 78%);
}
body.frontend-theme-crimson_pulse .theme-atmosphere .line-one,
body.frontend-theme-crimson_pulse .theme-atmosphere .line-two{
  height:2px;
  background:linear-gradient(90deg,transparent,var(--primary),transparent);
  opacity:.19;
}

body.guest-shell.frontend-theme-crimson_pulse .public-header{
  border-top:4px solid var(--primary);
  border-bottom:1px solid color-mix(in srgb,var(--primary) 22%,var(--border));
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  box-shadow:0 15px 44px rgba(126,18,43,.08);
  backdrop-filter:blur(18px) saturate(132%);
}
body.guest-shell.frontend-theme-crimson_pulse .public-nav{
  position:relative;
}
body.guest-shell.frontend-theme-crimson_pulse .public-nav::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:42px;
  height:42px;
  border:1px solid color-mix(in srgb,var(--primary) 20%,transparent);
  border-radius:50%;
  transform:translate(-72%,-50%);
  box-shadow:0 0 0 9px color-mix(in srgb,var(--primary) 5%,transparent),0 0 0 18px color-mix(in srgb,var(--primary) 3%,transparent);
  pointer-events:none;
}
html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse .public-nav::before{
  left:auto;
  right:0;
  transform:translate(72%,-50%);
}
body.guest-shell.frontend-theme-crimson_pulse .public-links a{
  border-radius:9px;
  border-inline-start:3px solid transparent;
}
body.guest-shell.frontend-theme-crimson_pulse .public-links a:hover{
  border-inline-start-color:color-mix(in srgb,var(--primary) 48%,transparent);
  background:color-mix(in srgb,var(--primary-soft) 70%,var(--surface));
}
body.guest-shell.frontend-theme-crimson_pulse .public-links a.active{
  border-inline-start-color:var(--primary);
  background:linear-gradient(90deg,var(--primary-soft),color-mix(in srgb,var(--surface) 92%,transparent));
  color:var(--primary-strong);
  box-shadow:0 8px 20px color-mix(in srgb,var(--primary) 12%,transparent);
}
body.guest-shell.frontend-theme-crimson_pulse .public-trust-bar{
  border-bottom:1px solid color-mix(in srgb,var(--theme-trust-bar-text) 16%,transparent);
  background:
    linear-gradient(110deg,transparent 0 54%,color-mix(in srgb,var(--primary) 18%,transparent) 54% 56%,transparent 56% 61%,color-mix(in srgb,var(--primary) 10%,transparent) 61% 62%,transparent 62%),
    var(--theme-trust-bar-bg);
  color:var(--theme-trust-bar-text);
}
body.guest-shell.frontend-theme-crimson_pulse .public-trust-badge{
  border-color:var(--theme-trust-badge-border);
  border-radius:6px;
  background:var(--theme-trust-badge-bg);
  color:var(--theme-trust-badge-text);
  box-shadow:5px 5px 0 color-mix(in srgb,var(--primary) 18%,transparent);
}

body.frontend-theme-crimson_pulse :where(.product-hero,.public-theme-hero,.directory-provider-hero.public-theme-hero-directory,.marketplace-hero-grid){
  background:
    radial-gradient(circle at 83% 29%,transparent 0 9%,color-mix(in srgb,#fff 13%,transparent) 9.3% 9.8%,transparent 10.1% 15%,color-mix(in srgb,#fff 10%,transparent) 15.3% 15.8%,transparent 16.1%),
    linear-gradient(115deg,transparent 0 59%,color-mix(in srgb,#fff 9%,transparent) 59% 60%,transparent 60% 65%,color-mix(in srgb,#fff 6%,transparent) 65% 66%,transparent 66%),
    var(--public-hero-bg)!important;
  color:var(--public-hero-ink)!important;
}
body.frontend-theme-crimson_pulse :where(.product-hero,.public-theme-hero,.directory-provider-hero.public-theme-hero-directory,.marketplace-hero-grid)::after{
  content:"";
  position:absolute;
  z-index:0;
  right:-7%;
  top:18%;
  width:46%;
  height:64%;
  border:1px solid color-mix(in srgb,#fff 14%,transparent);
  border-radius:50%;
  box-shadow:0 0 0 35px color-mix(in srgb,#fff 3%,transparent),0 0 0 70px color-mix(in srgb,#fff 2%,transparent);
  pointer-events:none;
}
html[dir="rtl"] body.frontend-theme-crimson_pulse :where(.product-hero,.public-theme-hero,.directory-provider-hero.public-theme-hero-directory,.marketplace-hero-grid)::after{
  right:auto;
  left:-7%;
}
body.frontend-theme-crimson_pulse :where(.product-hero-copy,.directory-provider-hero-copy,.marketplace-hero-copy){
  position:relative;
  z-index:2;
}
body.frontend-theme-crimson_pulse :where(.product-hero-copy,.directory-provider-hero-copy,.marketplace-hero-copy) h1 em{
  color:var(--public-hero-accent)!important;
}

body.frontend-theme-crimson_pulse .home-theme-mode-pulse{
  border:1px solid color-mix(in srgb,#fff 24%,transparent)!important;
  border-radius:16px!important;
  clip-path:polygon(0 0,95% 0,100% 9%,100% 100%,5% 100%,0 91%);
  background:
    radial-gradient(circle at 50% 50%,transparent 0 24%,color-mix(in srgb,#fff 11%,transparent) 25% 25.8%,transparent 26.5% 36%,color-mix(in srgb,#fff 7%,transparent) 37% 37.8%,transparent 38.5%),
    color-mix(in srgb,var(--theme-hero-a) 76%,transparent)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 18%,transparent),0 38px 92px rgba(62,4,18,.38)!important;
}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .decor-one{
  width:390px;
  height:390px;
  right:-160px;
  top:-125px;
  border:1px solid color-mix(in srgb,var(--public-hero-accent) 40%,transparent);
  box-shadow:0 0 0 25px color-mix(in srgb,var(--public-hero-accent) 5%,transparent),0 0 0 52px color-mix(in srgb,var(--public-hero-accent) 3%,transparent);
}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .decor-two{
  width:220px;
  height:90px;
  left:-48px;
  bottom:24px;
  border:0;
  border-radius:0;
  background:linear-gradient(90deg,transparent 0 9%,var(--public-hero-accent) 9% 11%,transparent 11% 29%,var(--public-hero-accent) 29% 31%,transparent 31% 42%,var(--public-hero-accent) 42% 44%,transparent 44%);
  opacity:.3;
}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core{
  width:172px;
  height:172px;
  border:1px solid color-mix(in srgb,#fff 35%,transparent);
  border-radius:50%;
  background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 58%,#fff),color-mix(in srgb,var(--primary-strong) 86%,var(--theme-hero-a)));
  color:#fff;
  box-shadow:0 0 0 10px color-mix(in srgb,var(--primary) 11%,transparent),0 26px 58px rgba(53,2,15,.34);
}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core::before,
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core::after{
  content:"";
  position:absolute;
  top:50%;
  width:74px;
  height:20px;
  background:linear-gradient(90deg,transparent 0 8%,#fff 8% 13%,transparent 13% 28%,#fff 28% 33%,transparent 33% 45%,#fff 45% 50%,transparent 50%);
  opacity:.3;
}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core::before{right:100%}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core::after{left:100%;transform:scaleX(-1)}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core img{
  padding:7px;
  border-radius:50%;
  background:color-mix(in srgb,#fff 88%,transparent);
}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-node{
  border-inline-start:4px solid var(--public-hero-accent);
  border-radius:9px;
  background:linear-gradient(145deg,color-mix(in srgb,#fff 13%,transparent),color-mix(in srgb,var(--primary) 7%,transparent));
}
body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-connector{
  height:2px;
  background:linear-gradient(90deg,transparent,var(--public-hero-accent),transparent);
}

body.guest-shell.frontend-theme-crimson_pulse .home-hero-title-below-inner{
  position:relative;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--border));
  border-radius:0 0 16px 16px;
  background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 27%,var(--surface)));
  box-shadow:0 24px 62px rgba(126,18,43,.09);
}
body.guest-shell.frontend-theme-crimson_pulse .home-hero-title-below-inner::before{
  background:linear-gradient(90deg,var(--primary-strong),var(--primary));
}
body.guest-shell.frontend-theme-crimson_pulse .home-hero-title-below-inner::after{
  content:"";
  position:absolute;
  right:-48px;
  top:50%;
  width:150px;
  height:150px;
  border:1px solid color-mix(in srgb,var(--primary) 15%,transparent);
  border-radius:50%;
  transform:translateY(-50%);
  box-shadow:0 0 0 21px color-mix(in srgb,var(--primary) 4%,transparent);
}
html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse .home-hero-title-below-inner::after{
  right:auto;
  left:-48px;
}


/* Crimson Pulse targeted fixes */
body.guest-shell.frontend-theme-crimson_pulse .directory-hero-title-below .home-hero-title-below-inner{
  overflow:visible;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.guest-shell.frontend-theme-crimson_pulse .directory-hero-title-below .home-hero-title-below-inner::before,
body.guest-shell.frontend-theme-crimson_pulse .directory-hero-title-below .home-hero-title-below-inner::after{
  display:none!important;
}
body.guest-shell.frontend-theme-crimson_pulse .directory-hero-title-below .home-hero-title-below-inner :is(h1,p){
  text-shadow:none;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note{
  gap:10px;
  padding:104px 28px 28px;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note .provider-card-icon{
  top:26px;
  left:26px;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note .provider-card-index{
  top:28px;
  right:28px;
}
html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note .provider-card-index{
  right:auto;
  left:28px;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note h3{
  max-width:250px;
  margin:0;
  padding-right:34px;
  font-size:clamp(1.2rem,1.95vw,1.62rem);
  line-height:1.08;
  letter-spacing:-.045em;
  text-wrap:balance;
}
html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note h3{
  padding-right:0;
  padding-left:34px;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note p{
  margin:2px 0 18px;
  max-width:260px;
  color:rgba(255,244,248,.88)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-schedule-note .provider-card-index{
  color:rgba(255,228,235,.78)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :where(
  .provider-showcase-summary,
  .provider-showcase-qualifications,
  .provider-story-copy,
  .provider-story-signature small,
  .provider-credential-card--metric>small,
  .provider-credential-card--metric p
){
  color:rgba(255,244,248,.84)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :where(
  .provider-schedule-note h3,
  .provider-story-card h3,
  .provider-story-signature span,
  .provider-credential-card--metric>strong,
  .provider-showcase-identity .public-provider-name-en,
  .provider-showcase-identity .public-provider-name-ar
){
  color:#fff!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :where(
  .provider-schedule-note .provider-card-icon,
  .provider-credential-card--metric>.provider-card-icon,
  .provider-showcase-role
){
  border-color:rgba(255,255,255,.24)!important;
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :where(
  .provider-schedule-note .provider-card-icon svg,
  .provider-credential-card--metric>.provider-card-icon svg,
  .provider-showcase-role svg
){
  color:#fff!important;
  stroke:currentColor!important;
}


/* Crimson Pulse full contrast + consistency audit */
body.frontend-theme-crimson_pulse:not(.role-admin){
  --crimson-red:#e8002a;
  --crimson-red-deep:#b00022;
  --crimson-red-mid:#d10027;
  --crimson-ink:#7a0b20;
  --crimson-muted:#8f3245;
  --crimson-on-red:#ffffff;
  --primary-strong:#b00022;
  --theme-sidebar:#e8002a;
  --theme-sidebar-2:#d10027;
  --theme-hero-a:#e8002a;
  --theme-hero-b:#d10027;
  --theme-footer:#e8002a;
  --theme-auth-heading:#ffffff;
  --theme-auth-body:#ffffff;
  --theme-auth-accent:#ffffff;
  --theme-auth-feature:#ffffff;
  --provider-accent-strong:#a80020;
  --public-hero-bg:linear-gradient(128deg,var(--crimson-red) 0%,var(--crimson-red-mid) 58%,var(--crimson-red-deep) 100%);
}
body.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .eyebrow,
  .section-overline,
  .section-kicker,
  .provider-section-kicker,
  .provider-card-eyebrow,
  .provider-directory-results-eyebrow,
  .signup-guide-kicker,
  .provider-schedule-day
){
  color:var(--crimson-red-deep)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .public-links a.active{
  color:var(--crimson-red-deep)!important;
}
body.frontend-theme-crimson_pulse:not(.role-admin) :where(.btn-primary,.auth-submit){
  border-color:var(--crimson-red-mid)!important;
  background:var(--crimson-red)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(176,0,34,.18)!important;
}
body.frontend-theme-crimson_pulse:not(.role-admin) :where(.btn-primary,.auth-submit):hover{
  border-color:var(--crimson-red-deep)!important;
  background:var(--crimson-red-mid)!important;
  color:#fff!important;
  box-shadow:0 16px 34px rgba(176,0,34,.22)!important;
}

/* Provider showcase: red identity rail + clean copy + high-contrast snapshot. */
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-stage{
  border-color:color-mix(in srgb,var(--crimson-red) 20%,var(--border))!important;
  background:linear-gradient(145deg,#fff7f9,#ffe5eb)!important;
  box-shadow:0 24px 64px rgba(176,0,34,.12)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-emblem{
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:22px!important;
  background:linear-gradient(160deg,var(--crimson-red),var(--crimson-red-deep))!important;
  color:#fff!important;
  box-shadow:0 18px 40px rgba(176,0,34,.18)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-emblem :where(span,strong,small){
  color:#fff!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-avatar{
  border-color:rgba(255,255,255,.44)!important;
  background:linear-gradient(145deg,#fff7f9,#ffe4ea)!important;
  color:var(--crimson-red-deep)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 18px 36px rgba(80,0,18,.16)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-avatar>span{
  color:var(--crimson-red-deep)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-avatar::after{
  background:var(--crimson-red)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-role{
  border-color:rgba(255,255,255,.34)!important;
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-copy{
  border-color:color-mix(in srgb,var(--crimson-red) 15%,var(--border))!important;
  background:linear-gradient(180deg,#fff,#fff7f9)!important;
  color:var(--crimson-ink)!important;
  box-shadow:0 18px 42px rgba(176,0,34,.09)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-copy :where(h1,h2,h3,h4,strong){
  color:var(--crimson-ink)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-showcase-copy :where(p,small,em,.public-provider-address,.provider-showcase-qualifications){
  color:var(--crimson-muted)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-practice-name{
  color:var(--crimson-red-deep)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-trust-row .portal-badge,.provider-trust-chip,.provider-showcase-tags>span,.provider-discovery-tags>span,.provider-specialty-cloud span){
  border-color:color-mix(in srgb,var(--crimson-red) 24%,var(--border))!important;
  background:#fff0f3!important;
  color:var(--crimson-red-deep)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-trust-row .portal-badge-icon,.provider-trust-chip svg,.provider-showcase-tags svg,.provider-discovery-tags svg){
  color:var(--crimson-red-deep)!important;
  stroke:currentColor!important;
}

/* Dark red provider cards: all text layers are deliberately high contrast. */
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-insights){
  border-color:rgba(255,255,255,.22)!important;
  background:linear-gradient(150deg,var(--crimson-red),var(--crimson-red-deep))!important;
  color:#fff!important;
  box-shadow:0 20px 46px rgba(176,0,34,.18)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-insights) :where(h1,h2,h3,h4,strong,p,span,small,em,dt,dd,a){
  color:#fff!important;
  text-shadow:none!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-insights) .provider-card-index{
  color:#fff!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-insights) :where(.provider-card-icon,.provider-insight-icon){
  border-color:rgba(255,255,255,.28)!important;
  background:rgba(255,255,255,.15)!important;
  color:#fff!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-insights-heading{
  border-bottom-color:rgba(255,255,255,.25)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-insight-grid>div{
  border-color:rgba(255,255,255,.22)!important;
  background:rgba(255,255,255,.11)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-availability-signal{
  color:#fff!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-insights) .btn{
  border-color:#fff!important;
  background:#fff!important;
  color:var(--crimson-red-deep)!important;
  box-shadow:none!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-insights) .btn :where(svg,.ui-icon){
  color:var(--crimson-red)!important;
  stroke:currentColor!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(.provider-schedule-note,.provider-credential-card--metric,.provider-showcase-insights) .btn:hover{
  border-color:#fff!important;
  background:#fff0f3!important;
  color:var(--crimson-red-deep)!important;
}

/* Light provider cards must never inherit white text from dark-card treatments. */
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(
  .provider-story-card,
  .provider-info-card,
  .provider-schedule-card,
  .provider-credential-card:not(.provider-credential-card--metric),
  .provider-review-card,
  .provider-specialty-showcase>article,
  .provider-service-card,
  .provider-test-card,
  .provider-product-card
){
  color:var(--crimson-ink)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(
  .provider-story-card,
  .provider-info-card,
  .provider-schedule-card,
  .provider-credential-card:not(.provider-credential-card--metric),
  .provider-review-card,
  .provider-specialty-showcase>article,
  .provider-service-card,
  .provider-test-card,
  .provider-product-card
) :where(h1,h2,h3,h4,strong,dd){
  color:var(--crimson-ink)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :is(
  .provider-story-card,
  .provider-info-card,
  .provider-schedule-card,
  .provider-credential-card:not(.provider-credential-card--metric),
  .provider-review-card,
  .provider-specialty-showcase>article,
  .provider-service-card,
  .provider-test-card,
  .provider-product-card
) :where(p,small,em,dt){
  color:var(--crimson-muted)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience :where(.provider-fact-list a,.provider-story-card a,.provider-info-card a){
  color:var(--crimson-red-deep)!important;
}
body.guest-shell.frontend-theme-crimson_pulse .provider-experience .provider-card-icon{
  border-color:color-mix(in srgb,var(--crimson-red) 22%,var(--border))!important;
  background:#ffe7ec!important;
  color:var(--crimson-red-deep)!important;
}

/* Public footer: red background always uses white readable copy. */
body.frontend-theme-crimson_pulse .public-footer,
body.frontend-theme-crimson_pulse .public-footer :where(a,strong,p,span,small,.brand,.brand-copy,.brand-copy small){
  color:#fff!important;
}
body.frontend-theme-crimson_pulse .public-footer .footer-bottom{
  border-top-color:rgba(255,255,255,.24)!important;
}
body.frontend-theme-crimson_pulse .public-footer .public-footer-grid a:hover{
  color:#fff!important;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Auth/signup/temporary dark-red surfaces use a contrast-safe red range. */
body.frontend-theme-crimson_pulse.route-login:not(.role-admin) .auth-visual-panel,
body.frontend-theme-crimson_pulse:not(.role-admin) :where(.signup-directory-guide,.provider-intro,.registration-aside,.marketplace-registration-intro-card,.patient-signup-story),
body.frontend-theme-crimson_pulse.temporary-frontend-body .temporary-frontend-hero{
  background:radial-gradient(circle at 82% 18%,rgba(255,255,255,.11),transparent 29%),linear-gradient(145deg,var(--crimson-red),var(--crimson-red-deep))!important;
  color:#fff!important;
}
body.frontend-theme-crimson_pulse.route-login:not(.role-admin) .auth-visual-panel :where(h1,h2,h3,p,span,small,strong,.auth-overline),
body.frontend-theme-crimson_pulse:not(.role-admin) :where(.signup-directory-guide,.provider-intro,.registration-aside,.marketplace-registration-intro-card,.patient-signup-story) :where(h1,h2,h3,h4,p,span,small,strong,b,li),
body.frontend-theme-crimson_pulse.temporary-frontend-body .temporary-frontend-hero :where(h1,h2,h3,p,span,small,strong){
  color:#fff!important;
}
body.frontend-theme-crimson_pulse.route-login:not(.role-admin) .auth-trust-list span,
body.frontend-theme-crimson_pulse:not(.role-admin) :where(.signup-directory-guide li,.provider-intro-steps article,.provider-intro-checklist,.marketplace-registration-steps li,.patient-benefits li){
  border-color:rgba(255,255,255,.24)!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
}

/* Portal red surfaces: remove bright-pink/low-contrast combinations. */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .sidebar{
  background:radial-gradient(circle at 18% 0,rgba(255,255,255,.08),transparent 19rem),linear-gradient(180deg,var(--crimson-red),var(--crimson-red-deep))!important;
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a{
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero){
  background:radial-gradient(circle at 88% 16%,rgba(255,255,255,.10),transparent 30%),linear-gradient(135deg,var(--crimson-red),var(--crimson-red-deep))!important;
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero) :where(h1,h2,h3,h4,p,span,strong,small){
  color:#fff!important;
}

body.guest-shell.frontend-theme-crimson_pulse :where(
  .home-provider-finder-panel,
  .home-doctor-specialties-panel,
  .marketplace-home-panel,
  .product-cta-panel,
  .signup-directory-hero
){
  border-color:color-mix(in srgb,var(--primary) 22%,var(--border));
  background:
    linear-gradient(110deg,transparent 0 71%,color-mix(in srgb,var(--primary) 7%,transparent) 71% 72%,transparent 72%),
    linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 25%,var(--surface)));
  box-shadow:0 25px 70px rgba(126,18,43,.10);
}
body.guest-shell.frontend-theme-crimson_pulse :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice,
  .faq-item
){
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--primary) 21%,var(--border));
  border-radius:var(--theme-card-radius,20px);
  background:linear-gradient(150deg,var(--surface),color-mix(in srgb,var(--primary-soft) 27%,var(--surface)));
  box-shadow:0 12px 32px rgba(126,18,43,.07);
}
body.guest-shell.frontend-theme-crimson_pulse :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice,
  .faq-item
)::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  height:auto;
  background:linear-gradient(180deg,var(--primary),var(--primary-strong));
  opacity:.9;
}
html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice,
  .faq-item
)::before{
  inset:0 0 0 auto;
}
body.guest-shell.frontend-theme-crimson_pulse :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice
):hover{
  border-color:color-mix(in srgb,var(--primary) 46%,var(--border));
  transform:translateY(-3px) translateX(2px);
  box-shadow:0 20px 44px rgba(126,18,43,.14);
}
html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse :where(
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice
):hover{
  transform:translateY(-3px) translateX(-2px);
}
body.guest-shell.frontend-theme-crimson_pulse :where(
  .home-provider-finder-icon,
  .home-doctor-specialty-icon,
  .home-doctor-condition-icon,
  .feature-icon,
  .signup-choice-icon,
  .temporary-summary-icon,
  .temporary-capability-icon
){
  border:1px solid color-mix(in srgb,var(--primary) 28%,var(--border));
  border-radius:10px;
  background:linear-gradient(145deg,#fff0f2,var(--primary-soft));
  color:var(--primary-strong);
  box-shadow:5px 5px 0 color-mix(in srgb,var(--primary) 9%,transparent);
}

body.guest-shell.frontend-theme-crimson_pulse :where(
  .provider-directory-search,
  .provider-directory-results-toolbar,
  .marketplace-directory-filter-bar,
  .marketplace-results-heading-standard,
  .provider-directory-row,
  .pharmacy-listing-row,
  .pharmacy-product-row,
  .provider-showcase-stage,
  .provider-info-card,
  .provider-service-card,
  .provider-test-card,
  .provider-review-card
){
  border-color:color-mix(in srgb,var(--primary) 20%,var(--border));
  background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 23%,var(--surface)));
  box-shadow:0 13px 34px rgba(126,18,43,.07);
}
body.guest-shell.frontend-theme-crimson_pulse :where(.provider-directory-row,.pharmacy-listing-row,.pharmacy-product-row){
  position:relative;
  overflow:hidden;
}
body.guest-shell.frontend-theme-crimson_pulse :where(.provider-directory-row,.pharmacy-listing-row,.pharmacy-product-row)::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,var(--primary),var(--primary-strong));
}
html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse :where(.provider-directory-row,.pharmacy-listing-row,.pharmacy-product-row)::after{
  inset:0 0 0 auto;
}
body.guest-shell.frontend-theme-crimson_pulse :where(.provider-directory-status--active,.pharmacy-listing-open,.pharmacy-product-availability){
  border-color:color-mix(in srgb,var(--primary) 32%,var(--border));
  background:var(--primary-soft);
  color:var(--primary-strong);
}

body.frontend-theme-crimson_pulse .public-footer{
  background:
    radial-gradient(circle at 88% 0,color-mix(in srgb,var(--primary) 18%,transparent),transparent 28%),
    linear-gradient(145deg,var(--theme-footer),color-mix(in srgb,var(--theme-footer) 68%,var(--theme-sidebar-2)));
}
body.frontend-theme-crimson_pulse .public-footer::before{
  background:linear-gradient(90deg,transparent,var(--primary),transparent);
}

/* --------------------------------------------------------------------------
   Authentication and all dedicated signup pages
   -------------------------------------------------------------------------- */
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-experience{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid var(--new-theme-line);
  border-radius:clamp(22px,3vw,38px);
  background:var(--surface);
  box-shadow:var(--shadow);
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-visual-panel{
  color:#fff;
  background:
    radial-gradient(circle at 78% 18%,var(--theme-panel-glow),transparent 29%),
    linear-gradient(145deg,var(--theme-hero-a),var(--theme-hero-b));
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-visual-panel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}
body.frontend-theme-sunrise_gold .auth-visual-panel::before{
  background:repeating-conic-gradient(from 210deg at 85% 28%,color-mix(in srgb,#fff 8%,transparent) 0 7deg,transparent 7deg 19deg);
}
body.frontend-theme-crimson_pulse .auth-visual-panel::before{
  background:radial-gradient(circle at 82% 28%,transparent 0 14%,color-mix(in srgb,#fff 13%,transparent) 14.5% 15%,transparent 15.5% 23%,color-mix(in srgb,#fff 8%,transparent) 23.5% 24%,transparent 24.5%);
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-visual-content{
  position:relative;
  z-index:2;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-visual-content h1{
  color:var(--theme-auth-heading,#fff);
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-visual-content>p{
  color:var(--theme-auth-body,rgba(255,255,255,.78));
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-overline{
  color:var(--theme-auth-accent,#fff);
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-trust-list span{
  border-color:color-mix(in srgb,#fff 18%,transparent);
  background:color-mix(in srgb,#fff 8%,transparent);
  color:var(--theme-auth-feature,#fff);
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-form-panel{
  background:
    radial-gradient(circle at 95% 5%,color-mix(in srgb,var(--primary) 9%,transparent),transparent 30%),
    var(--surface);
}
body.frontend-theme-sunrise_gold .auth-card-modern{
  border-radius:28px 28px 54px 28px;
}
body.frontend-theme-crimson_pulse .auth-card-modern{
  position:relative;
  overflow:hidden;
  border-radius:14px;
}
body.frontend-theme-crimson_pulse .auth-card-modern::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:6px;
  background:linear-gradient(180deg,var(--primary),var(--primary-strong));
}
html[dir="rtl"] body.frontend-theme-crimson_pulse .auth-card-modern::before{
  inset:0 0 0 auto;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-input-shell{
  border-color:color-mix(in srgb,var(--primary) 19%,var(--border));
  background:color-mix(in srgb,var(--surface) 95%,var(--primary-soft));
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-input-shell:focus-within{
  border-color:var(--primary);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 14%,transparent);
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-input-icon{
  color:var(--primary-strong);
}

body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .signup-directory,
  .dedicated-signup,
  .registration-page,
  .marketplace-registration-page
){
  color:var(--text);
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .signup-directory-guide,
  .provider-intro,
  .registration-aside,
  .marketplace-registration-intro-card,
  .patient-signup-story
){
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--primary) 34%,var(--border));
  background:
    radial-gradient(circle at 88% 10%,var(--theme-panel-glow),transparent 29%),
    linear-gradient(145deg,var(--theme-sidebar),var(--theme-sidebar-2))!important;
  color:#fff;
  box-shadow:var(--theme-raised-shadow,var(--shadow));
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .signup-directory-guide,
  .provider-intro,
  .registration-aside,
  .marketplace-registration-intro-card,
  .patient-signup-story
) :where(h1,h2,h3,strong,b){
  color:var(--theme-auth-heading,#fff)!important;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .signup-directory-guide,
  .provider-intro,
  .registration-aside,
  .marketplace-registration-intro-card,
  .patient-signup-story
) :where(p,small,li,span:not(.badge)){
  color:var(--theme-auth-body,rgba(255,255,255,.76))!important;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .signup-directory-guide li,
  .provider-intro-steps article,
  .provider-intro-checklist,
  .marketplace-registration-steps li,
  .patient-benefits li
){
  border-color:color-mix(in srgb,#fff 17%,transparent)!important;
  background:color-mix(in srgb,#fff 8%,transparent)!important;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .signup-directory-guide li>b,
  .provider-intro-step-marker b,
  .signup-section-number
){
  border-color:color-mix(in srgb,#fff 38%,transparent)!important;
  background:var(--primary)!important;
  color:var(--theme-on-primary,#fff)!important;
}
body.frontend-theme-sunrise_gold :where(.signup-form-surface,.registration-form-card,.marketplace-registration-panel){
  border-radius:28px 28px 54px 28px;
}
body.frontend-theme-crimson_pulse :where(.signup-form-surface,.registration-form-card,.marketplace-registration-panel){
  position:relative;
  overflow:hidden;
  border-radius:14px;
}
body.frontend-theme-crimson_pulse :where(.signup-form-surface,.registration-form-card,.marketplace-registration-panel)::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,var(--primary),var(--primary-strong));
}
html[dir="rtl"] body.frontend-theme-crimson_pulse :where(.signup-form-surface,.registration-form-card,.marketplace-registration-panel)::before{
  inset:0 0 0 auto;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.signup-section,.form-section-heading){
  border-color:color-mix(in srgb,var(--primary) 19%,var(--border));
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .signup-choice-number{
  color:color-mix(in srgb,var(--primary) 54%,var(--muted));
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .signup-choice-arrow{
  border-color:color-mix(in srgb,var(--primary) 26%,var(--border));
  background:var(--primary-soft);
  color:var(--primary-strong);
}

/* --------------------------------------------------------------------------
   Temporary public links, error pages, and secondary public surfaces
   -------------------------------------------------------------------------- */
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse).temporary-frontend-body .temporary-frontend-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 86% 16%,var(--theme-panel-glow),transparent 29%),
    linear-gradient(145deg,var(--theme-hero-a),var(--theme-hero-b));
  color:#fff;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse).temporary-frontend-body .temporary-frontend-copy :where(h1,p,.section-kicker){
  color:inherit;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse).temporary-frontend-body :where(
  .temporary-frontend-summary article,
  .temporary-frontend-status span,
  .temporary-capability-card
){
  border-color:color-mix(in srgb,#fff 18%,transparent);
  background:color-mix(in srgb,#fff 9%,transparent);
  color:#fff;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse).temporary-frontend-body .temporary-capability-item{
  border-color:color-mix(in srgb,#fff 14%,transparent);
  color:#fff;
}
body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse).temporary-frontend-body .temporary-capability-item:hover{
  background:color-mix(in srgb,#fff 9%,transparent);
}
body.frontend-theme-sunrise_gold .error-card{
  border-radius:30px 30px 68px 30px;
  background:
    radial-gradient(circle at 88% 10%,color-mix(in srgb,var(--primary) 16%,transparent),transparent 30%),
    var(--theme-panel-bg,var(--surface));
}
body.frontend-theme-crimson_pulse .error-card{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:
    radial-gradient(circle at 88% 12%,color-mix(in srgb,var(--primary) 12%,transparent),transparent 31%),
    var(--theme-panel-bg,var(--surface));
}
body.frontend-theme-crimson_pulse .error-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  background:linear-gradient(180deg,var(--primary),var(--primary-strong));
}
html[dir="rtl"] body.frontend-theme-crimson_pulse .error-card::before{
  inset:0 0 0 auto;
}

/* --------------------------------------------------------------------------
   Authenticated portals: patient, doctor, laboratory, hospital, pharmacy
   -------------------------------------------------------------------------- */
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin){
  --portal-menu-accent:var(--portal-role-accent);
  --theme-sidebar-text:#fff8eb;
  --theme-sidebar-muted:color-mix(in srgb,#fff 62%,var(--primary-soft));
  background:var(--theme-page-wash,var(--bg));
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin){
  --theme-sidebar-text:var(--theme-on-primary);
  --theme-sidebar-muted:color-mix(in srgb,var(--theme-on-primary) 68%,#fff4ad);
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse).role-patient{--portal-role-accent:var(--primary)}
body.portal-experience.frontend-theme-sunrise_gold.role-doctor{--portal-role-accent:color-mix(in srgb,var(--primary) 82%,#ffe16a)}
body.portal-experience.frontend-theme-sunrise_gold.role-laboratory{--portal-role-accent:color-mix(in srgb,var(--primary-strong) 74%,#f4b929)}
body.portal-experience.frontend-theme-sunrise_gold.role-hospital{--portal-role-accent:color-mix(in srgb,var(--primary) 78%,#ffca42)}
body.portal-experience.frontend-theme-sunrise_gold:is(.role-marketplace,.role-pharmacy){--portal-role-accent:color-mix(in srgb,var(--primary-strong) 78%,#d98000)}
body.portal-experience.frontend-theme-crimson_pulse.role-doctor{--portal-role-accent:color-mix(in srgb,var(--primary) 84%,#ff8a9b)}
body.portal-experience.frontend-theme-crimson_pulse.role-laboratory{--portal-role-accent:color-mix(in srgb,var(--primary-strong) 76%,#ef4460)}
body.portal-experience.frontend-theme-crimson_pulse.role-hospital{--portal-role-accent:color-mix(in srgb,var(--primary) 76%,#be123c)}
body.portal-experience.frontend-theme-crimson_pulse:is(.role-marketplace,.role-pharmacy){--portal-role-accent:color-mix(in srgb,var(--primary-strong) 82%,#e11d48)}

body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar{
  border-inline-end:1px solid color-mix(in srgb,#fff 11%,transparent)!important;
  background:
    radial-gradient(circle at 18% 0,color-mix(in srgb,var(--portal-role-accent) 25%,transparent),transparent 19rem),
    linear-gradient(180deg,var(--theme-sidebar),var(--theme-sidebar-2))!important;
  color:#fff;
  box-shadow:18px 0 55px color-mix(in srgb,var(--theme-sidebar) 22%,transparent)!important;
}
html[dir="rtl"] body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar{
  box-shadow:-18px 0 55px color-mix(in srgb,var(--theme-sidebar) 22%,transparent)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:repeating-conic-gradient(from 220deg at 96% 6%,color-mix(in srgb,#fff 4%,transparent) 0 6deg,transparent 6deg 18deg);
  opacity:.48;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 100% 9%,transparent 0 62px,color-mix(in srgb,#fff 7%,transparent) 63px 65px,transparent 66px 98px,color-mix(in srgb,#fff 4%,transparent) 99px 101px,transparent 102px);
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar>*{
  position:relative;
  z-index:1;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.workspace-chip,.sidebar-user-card){
  border-color:color-mix(in srgb,#fff 12%,transparent)!important;
  background:color-mix(in srgb,#fff 7%,transparent)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 5%,transparent)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .workspace-chip-dot{
  background:var(--portal-role-accent)!important;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--portal-role-accent) 20%,transparent)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .side-nav a{
  border:1px solid transparent!important;
  color:color-mix(in srgb,#fff 76%,var(--primary-soft))!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a{
  border-radius:12px 12px 22px 12px!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a{
  border-radius:8px!important;
  border-inline-start:3px solid transparent!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .side-nav a:hover{
  border-color:color-mix(in srgb,var(--portal-role-accent) 24%,rgba(255,255,255,.08))!important;
  background:color-mix(in srgb,#fff 8%,transparent)!important;
  color:#fff!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active{
  border-color:color-mix(in srgb,var(--portal-role-accent) 46%,rgba(255,255,255,.11))!important;
  background:linear-gradient(100deg,color-mix(in srgb,var(--portal-role-accent) 34%,transparent),color-mix(in srgb,#fff 5%,transparent))!important;
  color:#fff!important;
  box-shadow:inset 4px 0 0 var(--portal-role-accent),0 10px 24px rgba(0,0,0,.12)!important;
}
html[dir="rtl"] body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active{
  box-shadow:inset -4px 0 0 var(--portal-role-accent),0 10px 24px rgba(0,0,0,.12)!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a.active{
  border-color:color-mix(in srgb,var(--portal-role-accent) 50%,rgba(255,255,255,.10))!important;
  border-inline-start-color:var(--portal-role-accent)!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--portal-role-accent) 32%,transparent),color-mix(in srgb,#fff 4%,transparent))!important;
  color:#fff!important;
  box-shadow:0 11px 25px rgba(0,0,0,.13)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.side-nav a.active .nav-icon,.side-nav a.active svg){
  color:color-mix(in srgb,var(--portal-role-accent) 56%,#fff)!important;
}

body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar{
  color:var(--theme-sidebar-text)!important;
  border-inline-end:1px solid color-mix(in srgb,var(--theme-on-primary) 10%,transparent)!important;
  box-shadow:18px 0 48px rgba(168,135,0,.16)!important;
}
html[dir="rtl"] body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar{
  box-shadow:-18px 0 48px rgba(168,135,0,.16)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.workspace-chip,.sidebar-user-card){
  border-color:color-mix(in srgb,var(--theme-on-primary) 12%,transparent)!important;
  background:color-mix(in srgb,#fff 36%,transparent)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 40%,transparent)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a{
  color:color-mix(in srgb,var(--theme-on-primary) 82%,#fff)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a:hover{
  background:color-mix(in srgb,#fff 30%,transparent)!important;
  color:var(--theme-on-primary)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active{
  border-color:color-mix(in srgb,var(--portal-role-accent) 42%,rgba(255,255,255,.28))!important;
  background:linear-gradient(100deg,color-mix(in srgb,#fff 40%,transparent),color-mix(in srgb,var(--portal-role-accent) 18%,transparent))!important;
  color:var(--theme-on-primary)!important;
  box-shadow:inset 4px 0 0 var(--portal-role-accent),0 10px 24px rgba(168,135,0,.12)!important;
}
html[dir="rtl"] body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active{
  box-shadow:inset -4px 0 0 var(--portal-role-accent),0 10px 24px rgba(168,135,0,.12)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.side-nav a.active .nav-icon,.side-nav a.active svg){
  color:color-mix(in srgb,var(--primary-strong) 74%,var(--theme-on-primary))!important;
}

body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .topbar{
  border-bottom:1px solid color-mix(in srgb,var(--primary) 19%,var(--border))!important;
  background:color-mix(in srgb,var(--surface) 91%,transparent)!important;
  color:var(--text)!important;
  box-shadow:0 12px 36px color-mix(in srgb,var(--primary-strong) 8%,transparent)!important;
  backdrop-filter:blur(20px) saturate(135%);
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .topbar{
  border-radius:0 0 26px 26px!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .topbar{
  border-top:3px solid var(--portal-role-accent)!important;
  border-radius:0 0 12px 12px!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .provider-topbar-context,
  .command-trigger,
  .icon-button,
  .topbar-profile,
  .provider-topbar-create>summary
){
  border-color:color-mix(in srgb,var(--primary) 20%,var(--border))!important;
  background:color-mix(in srgb,var(--surface) 95%,var(--primary-soft))!important;
  color:var(--text)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .page-content{
  background:transparent;
}

body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero){
  position:relative;
  overflow:hidden;
  border:1px solid color-mix(in srgb,#fff 13%,transparent)!important;
  background:
    radial-gradient(circle at 88% 16%,var(--theme-panel-glow),transparent 30%),
    linear-gradient(135deg,var(--theme-hero-a),var(--theme-hero-b))!important;
  color:#fff!important;
  box-shadow:0 30px 72px color-mix(in srgb,var(--theme-sidebar) 24%,transparent)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero){
  border-radius:28px 28px 62px 28px!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero)::before{
  content:"";
  position:absolute;
  inset:-35% -12% auto auto;
  width:440px;
  height:440px;
  border-radius:50%;
  background:repeating-conic-gradient(from 0deg,color-mix(in srgb,#fff 8%,transparent) 0 7deg,transparent 7deg 19deg);
  pointer-events:none;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero){
  border-radius:15px!important;
  clip-path:polygon(0 0,97% 0,100% 15%,100% 100%,3% 100%,0 85%);
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero)::before{
  content:"";
  position:absolute;
  right:-95px;
  top:50%;
  width:300px;
  height:300px;
  border:1px solid color-mix(in srgb,#fff 15%,transparent);
  border-radius:50%;
  transform:translateY(-50%);
  box-shadow:0 0 0 34px color-mix(in srgb,#fff 3%,transparent),0 0 0 68px color-mix(in srgb,#fff 2%,transparent);
  pointer-events:none;
}
html[dir="rtl"] body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero)::before{
  right:auto;
  left:-95px;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.dashboard-hero-copy,.doctor-dashboard-hero__copy,.dashboard-hero-visual,.doctor-dashboard-hero__actions){
  position:relative;
  z-index:2;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero) :where(h1,h2,h3,p,span,strong,small){
  color:inherit;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.hero-float-card,.doctor-dashboard-status,.doctor-dashboard-trust-row span){
  border-color:color-mix(in srgb,#fff 18%,transparent)!important;
  background:color-mix(in srgb,#fff 9%,transparent)!important;
  color:#fff!important;
  backdrop-filter:blur(12px);
}

body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .metric-card-pro,
  .doctor-dashboard-metric,
  .quick-action-pro,
  .doctor-command-card,
  .subscription-panel,
  .doctor-plan-panel,
  .doctor-command-panel,
  .doctor-practice-panel,
  .doctor-queue-panel,
  .dashboard-lower-grid>* ,
  .doctor-dashboard-lower-grid>* ,
  .provider-resource-hub,
  .doctor-dashboard-clinic-gateway,
  .card
){
  border-color:color-mix(in srgb,var(--portal-role-accent) 19%,var(--border));
  background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--portal-role-soft) 30%,var(--surface)));
  color:var(--text);
  box-shadow:0 13px 34px color-mix(in srgb,var(--portal-role-accent) 8%,transparent);
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(
  .metric-card-pro,
  .doctor-dashboard-metric,
  .quick-action-pro,
  .doctor-command-card,
  .subscription-panel,
  .doctor-plan-panel,
  .doctor-command-panel,
  .doctor-practice-panel,
  .doctor-queue-panel,
  .dashboard-lower-grid>* ,
  .doctor-dashboard-lower-grid>* ,
  .provider-resource-hub,
  .doctor-dashboard-clinic-gateway,
  .card
){
  border-radius:22px 22px 36px 22px;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .metric-card-pro,
  .doctor-dashboard-metric,
  .quick-action-pro,
  .doctor-command-card,
  .subscription-panel,
  .doctor-plan-panel,
  .doctor-command-panel,
  .doctor-practice-panel,
  .doctor-queue-panel,
  .dashboard-lower-grid>* ,
  .doctor-dashboard-lower-grid>* ,
  .provider-resource-hub,
  .doctor-dashboard-clinic-gateway,
  .card
){
  border-radius:12px;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.metric-card-pro,.doctor-dashboard-metric){
  position:relative;
  overflow:hidden;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.metric-card-pro,.doctor-dashboard-metric)::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,var(--portal-role-accent),color-mix(in srgb,var(--portal-role-accent) 34%,#fff6a5));
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.metric-card-pro,.doctor-dashboard-metric)::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,var(--portal-role-accent),var(--primary-strong));
}
html[dir="rtl"] body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.metric-card-pro,.doctor-dashboard-metric)::before{
  inset:0 0 0 auto;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .metric-icon,
  .doctor-dashboard-metric>span:first-child,
  .quick-action-icon,
  .doctor-command-card>span:first-child,
  .usage-icon,
  .provider-resource-icon,
  .provider-page-context-icon
){
  border-color:color-mix(in srgb,var(--portal-role-accent) 27%,var(--border));
  background:color-mix(in srgb,var(--portal-role-soft) 82%,var(--surface));
  color:color-mix(in srgb,var(--portal-role-accent) 84%,var(--text));
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.quick-action-pro,.doctor-command-card,.provider-resource-hub a){
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
@media (hover:hover) and (pointer:fine){
  body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.quick-action-pro,.doctor-command-card,.provider-resource-hub a):hover{
    transform:translateY(-4px) rotate(-.2deg);
    border-color:color-mix(in srgb,var(--portal-role-accent) 46%,var(--border));
    box-shadow:0 20px 44px color-mix(in srgb,var(--portal-role-accent) 13%,transparent);
  }
  body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.quick-action-pro,.doctor-command-card,.provider-resource-hub a):hover{
    transform:translateY(-3px) translateX(2px);
    border-color:color-mix(in srgb,var(--portal-role-accent) 46%,var(--border));
    box-shadow:0 20px 44px color-mix(in srgb,var(--portal-role-accent) 14%,transparent);
  }
  html[dir="rtl"] body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.quick-action-pro,.doctor-command-card,.provider-resource-hub a):hover{
    transform:translateY(-3px) translateX(-2px);
  }
}

body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .table-wrap,
  .data-table,
  .table,
  .filter-bar,
  .marketplace-filter,
  .conference-filter-form,
  .clinical-summary-layout,
  .appointment-overview-grid
){
  border-color:color-mix(in srgb,var(--portal-role-accent) 18%,var(--border));
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.data-table th,.table th){
  background:color-mix(in srgb,var(--portal-role-soft) 68%,var(--surface));
  color:color-mix(in srgb,var(--text) 70%,var(--portal-role-accent));
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.data-table tr:hover td,.table tr:hover td){
  background:color-mix(in srgb,var(--portal-role-soft) 42%,var(--surface));
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .page-header,
  .page-heading,
  .provider-page-toolbar,
  .provider-page-context,
  .section-heading-row
){
  border-color:color-mix(in srgb,var(--portal-role-accent) 18%,var(--border));
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.page-header,.page-heading,.provider-page-toolbar){
  border-radius:20px 20px 34px 20px;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.page-header,.page-heading,.provider-page-toolbar){
  border-inline-start:4px solid var(--portal-role-accent);
  border-radius:10px;
}

/* Provider portal hard-coded light surfaces are normalized to theme tokens. */
body.provider-portal:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .provider-topbar-context,
  .provider-topbar-create-menu,
  .provider-quick-launcher-menu,
  .provider-page-context,
  .provider-page-shortcuts,
  .provider-resource-hub,
  .provider-overview-layout>*,
  .provider-profile-content>*,
  .provider-schedule-card,
  .provider-story-card,
  .doctor-professional-panel,
  .lab-open-request-card,
  .lab-open-request-banner,
  .marketplace-workspace-grid>*
){
  border-color:color-mix(in srgb,var(--portal-role-accent) 19%,var(--border))!important;
  background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--portal-role-soft) 26%,var(--surface)))!important;
  color:var(--text)!important;
  box-shadow:0 13px 34px color-mix(in srgb,var(--portal-role-accent) 8%,transparent)!important;
}
body.provider-portal:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .provider-topbar-context,
  .provider-topbar-create-menu,
  .provider-quick-launcher-menu,
  .provider-page-context,
  .provider-page-shortcuts,
  .provider-resource-hub,
  .provider-overview-layout>*,
  .provider-profile-content>*,
  .provider-schedule-card,
  .provider-story-card,
  .doctor-professional-panel,
  .lab-open-request-card,
  .lab-open-request-banner,
  .marketplace-workspace-grid>*
) :where(h1,h2,h3,h4,strong,p,span,small,a){
  color:inherit;
}
body.provider-portal:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.provider-side-nav,.provider-nav-tools){
  border-color:color-mix(in srgb,#fff 11%,transparent)!important;
  background:color-mix(in srgb,#fff 5%,transparent)!important;
}

/* --------------------------------------------------------------------------
   Dark mode refinements
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin){
  --new-theme-surface:color-mix(in srgb,var(--surface) 96%,transparent);
  --new-theme-raised:color-mix(in srgb,var(--surface) 91%,var(--primary-soft));
  --new-theme-line:color-mix(in srgb,var(--primary) 24%,var(--border));
}
html[data-theme="dark"] body.guest-shell:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse) .public-header,
html[data-theme="dark"] body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .topbar{
  background:color-mix(in srgb,var(--surface) 92%,transparent)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .home-provider-finder-panel,
  .home-doctor-specialties-panel,
  .marketplace-home-panel,
  .product-cta-panel,
  .home-provider-finder-card,
  .home-doctor-specialty-card,
  .home-doctor-condition-card,
  .feature-card-premium,
  .signup-choice,
  .provider-directory-row,
  .pharmacy-listing-row,
  .pharmacy-product-row,
  .provider-directory-search,
  .marketplace-directory-filter-bar,
  .auth-card,
  .signup-form-surface,
  .registration-form-card,
  .marketplace-registration-panel,
  .card
){
  border-color:var(--new-theme-line);
  background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 23%,var(--surface)));
  color:var(--text);
}
html[data-theme="dark"] body.frontend-theme-sunrise_gold .home-theme-mode-sunburst,
html[data-theme="dark"] body.frontend-theme-crimson_pulse .home-theme-mode-pulse{
  border-color:color-mix(in srgb,#fff 18%,transparent)!important;
}
html[data-theme="dark"] body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .input,
  .select,
  .textarea,
  .auth-input-shell,
  .auth-input-control,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
){
  background:color-mix(in srgb,var(--surface-2) 90%,var(--surface));
  color:var(--text);
}
html[data-theme="dark"] body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
  .home-provider-finder-icon,
  .home-doctor-specialty-icon,
  .home-doctor-condition-icon,
  .feature-icon,
  .signup-choice-icon,
  .metric-icon,
  .usage-icon,
  .provider-resource-icon
){
  background:color-mix(in srgb,var(--primary-soft) 76%,var(--surface));
  color:var(--primary-strong);
}

/* --------------------------------------------------------------------------
   Desktop composition details
   -------------------------------------------------------------------------- */
@media (min-width:1100px){
  body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar{
    inset:14px auto 14px 14px!important;
    height:calc(100vh - 28px)!important;
    border-radius:28px 28px 52px 28px!important;
  }
  html[dir="rtl"] body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar{
    inset:14px 14px 14px auto!important;
    border-radius:28px 28px 28px 52px!important;
  }
  body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin):not(.patient-portal) .app-shell{
    padding:14px 14px 14px 0;
  }
  html[dir="rtl"] body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin):not(.patient-portal) .app-shell{
    padding:14px 0 14px 14px;
  }
  body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin):not(.patient-portal) .topbar{
    margin:0 16px;
  }
  body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .sidebar{
    border-radius:0 18px 18px 0!important;
    border-inline-end:4px solid color-mix(in srgb,var(--portal-role-accent) 70%,#fff)!important;
  }
  html[dir="rtl"] body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .sidebar{
    border-radius:18px 0 0 18px!important;
  }
  body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin):not(.patient-portal) .topbar{
    margin:12px 18px 0;
  }
  body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin):not(.patient-portal) .page-content{
    padding-top:24px;
  }
}

/* Patient portal owns fixed desktop geometry; retain it while applying theme detail. */
@media (min-width:901px){
  body.patient-portal.frontend-theme-sunrise_gold.ui-v2 .sidebar{
    inset:0 auto 0 0!important;
    height:100vh!important;
    border-radius:0 0 44px 0!important;
  }
  html[dir="rtl"] body.patient-portal.frontend-theme-sunrise_gold.ui-v2 .sidebar{
    inset:0 0 0 auto!important;
    border-radius:0 0 0 44px!important;
  }
  body.patient-portal.frontend-theme-crimson_pulse.ui-v2 .sidebar{
    border-inline-end:4px solid color-mix(in srgb,var(--portal-role-accent) 70%,#fff)!important;
    border-radius:0!important;
  }
  body.patient-portal.frontend-theme-sunrise_gold.ui-v2 .topbar,
  body.patient-portal.frontend-theme-crimson_pulse.ui-v2 .topbar{
    margin:0!important;
    border-radius:0!important;
  }
}

/* --------------------------------------------------------------------------
   Responsive and RTL guardrails
   -------------------------------------------------------------------------- */
@media (max-width:1099px){
  body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(
    .home-theme-mode-sunburst,
    .home-theme-mode-pulse,
    .dashboard-hero,
    .doctor-dashboard-hero
  ){
    clip-path:none!important;
    transform:none!important;
  }
  body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar{
    border-radius:0!important;
  }
  body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .topbar{
    margin:0!important;
    border-radius:0!important;
  }
  body.guest-shell.frontend-theme-crimson_pulse .public-nav::before{
    display:none;
  }
}

@media (max-width:900px){
  body.guest-shell.frontend-theme-crimson_pulse .public-header{
    border-top-width:3px;
  }
  body.guest-shell:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse) .public-links{
    border-color:color-mix(in srgb,var(--primary) 22%,var(--border))!important;
    background:color-mix(in srgb,var(--surface) 98%,transparent)!important;
    box-shadow:0 22px 58px color-mix(in srgb,var(--primary-strong) 13%,transparent)!important;
  }
  body.guest-shell.frontend-theme-sunrise_gold .public-links a.active::after{
    left:auto;
    right:11px;
    top:50%;
    bottom:auto;
    width:3px;
    height:20px;
    transform:translateY(-50%);
  }
  html[dir="rtl"] body.guest-shell.frontend-theme-sunrise_gold .public-links a.active::after{
    right:auto;
    left:11px;
  }
  body.guest-shell.frontend-theme-crimson_pulse :where(
    .home-provider-finder-card,
    .home-doctor-specialty-card,
    .home-doctor-condition-card,
    .feature-card-premium,
    .signup-choice
  ):hover,
  html[dir="rtl"] body.guest-shell.frontend-theme-crimson_pulse :where(
    .home-provider-finder-card,
    .home-doctor-specialty-card,
    .home-doctor-condition-card,
    .feature-card-premium,
    .signup-choice
  ):hover{
    transform:none;
  }
}

@media (max-width:720px){
  body.frontend-theme-sunrise_gold .home-theme-mode-sunburst,
  body.frontend-theme-crimson_pulse .home-theme-mode-pulse{
    border-radius:20px!important;
  }
  body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .home-theme-core,
  body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core{
    width:142px;
    height:142px;
  }
  body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core::before,
  body.frontend-theme-crimson_pulse .home-theme-mode-pulse .home-theme-core::after{
    display:none;
  }
  body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .auth-experience{
    border-radius:20px;
  }
  body.frontend-theme-sunrise_gold :where(.auth-card-modern,.signup-form-surface,.registration-form-card,.marketplace-registration-panel),
  body.frontend-theme-crimson_pulse :where(.auth-card-modern,.signup-form-surface,.registration-form-card,.marketplace-registration-panel){
    border-radius:16px;
  }
  body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero),
  body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero){
    border-radius:20px!important;
  }
}

html[dir="rtl"] body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .node-a,
html[dir="rtl"] body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .node-b,
html[dir="rtl"] body.frontend-theme-sunrise_gold .home-theme-mode-sunburst .node-c{
  transform:rotate(0);
}

@media (prefers-reduced-motion:reduce){
  body:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.btn,.signup-choice,.feature-card-premium,.home-provider-finder-card,.quick-action-pro,.doctor-command-card){
    transform:none!important;
  }
}

/* --------------------------------------------------------------------------
   Authenticated portal readability audit — all patient/provider roles
   -------------------------------------------------------------------------- */
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin){
  --portal-shell-bg:#fed501;
  --portal-shell-ink:#000000;
  --portal-shell-muted:#5a4700;
  --portal-shell-soft:#fff8cf;
  --portal-shell-soft-2:#fff3a4;
  --portal-shell-line:#e6bd00;
  --portal-shell-accent:#e8002a;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin){
  --portal-shell-bg:#e8002a;
  --portal-shell-ink:#7a0b20;
  --portal-shell-muted:#8f3245;
  --portal-shell-soft:#fff5f7;
  --portal-shell-soft-2:#ffe1e7;
  --portal-shell-line:#f3a3b1;
  --portal-shell-accent:#e8002a;
}

/* Flat, contrast-safe sidebars: yellow uses black; red uses white. */
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar{
  background:#fed501!important;
  color:#000!important;
  border-inline-end-color:rgba(0,0,0,.12)!important;
  scrollbar-color:rgba(0,0,0,.28) transparent!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .sidebar{
  background:#e8002a!important;
  color:#fff!important;
  border-inline-end-color:rgba(255,255,255,.24)!important;
  scrollbar-color:rgba(255,255,255,.42) transparent!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar::before{
  opacity:.08!important;
}

body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar :where(.app-brand,.brand-copy,.brand-copy strong){
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar .brand-copy small{
  color:#5a4700!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .sidebar :where(.app-brand,.brand-copy,.brand-copy strong,.brand-copy small){
  color:#fff!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .sidebar-close{color:#000!important}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .sidebar-close{color:#fff!important}

/* Workspace and account cards use light surfaces so every role label is legible. */
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) :where(.workspace-chip,.sidebar-user-card){
  border:1px solid var(--portal-shell-line)!important;
  background:var(--portal-shell-soft)!important;
  color:var(--portal-shell-ink)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 10px 22px rgba(0,0,0,.04)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .workspace-chip-dot{
  background:var(--portal-shell-accent)!important;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--portal-shell-accent) 14%,transparent)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .workspace-chip :where(small,strong),
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar-user-copy :where(strong,small){
  color:var(--portal-shell-ink)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .workspace-chip small,
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar-user-copy small{
  color:var(--portal-shell-muted)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .workspace-chip-status{
  border:1px solid color-mix(in srgb,var(--portal-shell-accent) 24%,transparent)!important;
  background:var(--portal-shell-accent)!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar-user-action{
  color:var(--portal-shell-accent)!important;
}

/* Provider tool filter: one clean row, no exposed sr-only label, no wrapping collision. */
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-tools{
  margin:11px 3px 7px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-search{
  grid-template-columns:18px minmax(0,1fr) 26px!important;
  gap:9px!important;
  min-height:46px!important;
  padding:0 11px!important;
  border:1px solid var(--portal-shell-line)!important;
  border-radius:14px!important;
  background:var(--portal-shell-soft)!important;
  color:var(--portal-shell-ink)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-search:focus-within{
  border-color:var(--portal-shell-accent)!important;
  background:#fff!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--portal-shell-accent) 12%,transparent)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-search .ui-icon{
  color:var(--portal-shell-accent)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-search input{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  color:var(--portal-shell-ink)!important;
  font-size:.75rem!important;
  font-weight:700!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-search input::placeholder{
  color:var(--portal-shell-muted)!important;
  opacity:1!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-search kbd{
  min-width:24px!important;
  border-color:color-mix(in srgb,var(--portal-shell-accent) 20%,var(--portal-shell-line))!important;
  background:#fff!important;
  color:var(--portal-shell-ink)!important;
}

/* Quick action launcher follows the same readable card language. */
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-quick-launcher>summary{
  min-height:46px!important;
  border:1px solid var(--portal-shell-line)!important;
  border-radius:14px!important;
  background:var(--portal-shell-soft-2)!important;
  color:var(--portal-shell-ink)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.04)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-quick-launcher>summary .ui-icon{
  color:var(--portal-shell-accent)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-quick-launcher-menu{
  border:1px solid var(--portal-shell-line)!important;
  background:var(--portal-shell-soft)!important;
  box-shadow:0 18px 38px rgba(0,0,0,.12)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-quick-launcher-menu a{
  color:var(--portal-shell-ink)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-quick-launcher-menu a:hover{
  background:#fff!important;
  color:var(--portal-shell-ink)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-quick-launcher-menu :where(.ui-icon,strong){
  color:var(--portal-shell-accent)!important;
}
body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-quick-launcher-menu small{
  color:var(--portal-shell-muted)!important;
}

/* Sidebar navigation contrast, including descriptions and patient navigation. */
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .nav-section-title{
  color:#000!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .nav-section-title{
  color:#fff!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a{
  border-color:transparent!important;
  background:transparent!important;
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a :where(.nav-icon,.provider-nav-copy strong){
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .provider-nav-copy small{
  color:#5a4700!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a:hover{
  border-color:color-mix(in srgb,#e8002a 24%,#e6bd00)!important;
  background:#fff8cf!important;
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active{
  border-color:color-mix(in srgb,#e8002a 34%,#e6bd00)!important;
  background:#fff3a4!important;
  color:#000!important;
  box-shadow:inset 4px 0 0 #e8002a,0 8px 18px rgba(168,135,0,.10)!important;
}
html[dir="rtl"] body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active{
  box-shadow:inset -4px 0 0 #e8002a,0 8px 18px rgba(168,135,0,.10)!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active :where(.nav-icon,.provider-nav-copy strong){
  color:#e8002a!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .side-nav a.active .provider-nav-copy small{
  color:#5a4700!important;
}

body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a{
  border-color:transparent!important;
  background:transparent!important;
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a :where(.nav-icon,.provider-nav-copy strong,.provider-nav-copy small){
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a:hover{
  border-color:rgba(255,255,255,.34)!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a.active{
  border-color:#f3a3b1!important;
  border-inline-start-color:#fff!important;
  background:#fff5f7!important;
  color:#7a0b20!important;
  box-shadow:inset 4px 0 0 #fff,0 8px 18px rgba(122,11,32,.12)!important;
}
html[dir="rtl"] body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a.active{
  box-shadow:inset -4px 0 0 #fff,0 8px 18px rgba(122,11,32,.12)!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .side-nav a.active :where(.nav-icon,.provider-nav-copy strong,.provider-nav-copy small){
  color:#7a0b20!important;
}

/* Account footer and sign-out are explicit high-contrast controls. */
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar-signout{
  min-height:44px!important;
  border:1px solid var(--portal-shell-line)!important;
  background:var(--portal-shell-soft-2)!important;
  color:var(--portal-shell-ink)!important;
  box-shadow:none!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar-signout .nav-icon{
  color:var(--portal-shell-accent)!important;
}
body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar-signout:hover{
  border-color:var(--portal-shell-accent)!important;
  background:#fff!important;
  color:var(--portal-shell-ink)!important;
}

/* Top bar and page chrome stay light with readable role colors. */
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .topbar :where(.topbar-title>span,.topbar-profile-copy strong){
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) .topbar :where(.topbar-title>small,.topbar-profile-copy small){
  color:#5a4700!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .topbar :where(.topbar-title>span,.topbar-profile-copy strong){
  color:#7a0b20!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .topbar :where(.topbar-title>small,.topbar-profile-copy small){
  color:#8f3245!important;
}

/* Dashboard/clinic hero contrast follows each pure theme color. */
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero,.doctor-clinic-hero){
  border-color:#e6bd00!important;
  background:radial-gradient(circle at 88% 14%,rgba(255,255,255,.26),transparent 28%),#fed501!important;
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero,.doctor-clinic-hero) :where(h1,h2,h3,h4,p,span,strong,small,a){
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.dashboard-kicker,.doctor-dashboard-eyebrow,.doctor-clinic-hero__meta svg){
  color:#e8002a!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.hero-float-card,.doctor-dashboard-status,.doctor-dashboard-trust-row span,.doctor-dashboard-today,.doctor-dashboard-focus-list a,.doctor-clinic-hero__meta span,.doctor-clinic-hero__mark){
  border-color:rgba(0,0,0,.14)!important;
  background:#fff8cf!important;
  color:#000!important;
  box-shadow:none!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.hero-float-card,.doctor-dashboard-status,.doctor-dashboard-trust-row span,.doctor-dashboard-today,.doctor-dashboard-focus-list a,.doctor-clinic-hero__meta span,.doctor-clinic-hero__mark) :where(h1,h2,h3,h4,p,span,strong,small,a){
  color:#000!important;
}

body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero,.doctor-clinic-hero){
  border-color:rgba(255,255,255,.24)!important;
  background:radial-gradient(circle at 88% 14%,rgba(255,255,255,.10),transparent 28%),#e8002a!important;
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.dashboard-hero,.doctor-dashboard-hero,.doctor-clinic-hero) :where(h1,h2,h3,h4,p,span,strong,small,a){
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.hero-float-card,.doctor-dashboard-status,.doctor-dashboard-trust-row span,.doctor-dashboard-today,.doctor-dashboard-focus-list a,.doctor-clinic-hero__meta span,.doctor-clinic-hero__mark){
  border-color:rgba(255,255,255,.28)!important;
  background:rgba(122,11,32,.20)!important;
  color:#fff!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.hero-float-card,.doctor-dashboard-status,.doctor-dashboard-trust-row span,.doctor-dashboard-today,.doctor-dashboard-focus-list a,.doctor-clinic-hero__meta span,.doctor-clinic-hero__mark) :where(h1,h2,h3,h4,p,span,strong,small,a){
  color:#fff!important;
}

/* Common light portal cards: readable headings and supporting text across all roles. */
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.card,.metric-card-pro,.doctor-dashboard-metric,.quick-action-pro,.doctor-command-card,.subscription-panel,.doctor-plan-panel,.doctor-command-panel,.doctor-practice-panel,.doctor-queue-panel,.dashboard-lower-grid>*,.doctor-dashboard-lower-grid>*,.provider-resource-hub,.provider-page-context,.provider-page-shortcuts){
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.card,.metric-card-pro,.doctor-dashboard-metric,.quick-action-pro,.doctor-command-card,.subscription-panel,.doctor-plan-panel,.doctor-command-panel,.doctor-practice-panel,.doctor-queue-panel,.dashboard-lower-grid>*,.doctor-dashboard-lower-grid>*,.provider-resource-hub,.provider-page-context,.provider-page-shortcuts) :where(h1,h2,h3,h4,strong){
  color:#000!important;
}
body.portal-experience.frontend-theme-sunrise_gold:not(.role-admin) :where(.card,.metric-card-pro,.doctor-dashboard-metric,.quick-action-pro,.doctor-command-card,.subscription-panel,.doctor-plan-panel,.doctor-command-panel,.doctor-practice-panel,.doctor-queue-panel,.dashboard-lower-grid>*,.doctor-dashboard-lower-grid>*,.provider-resource-hub,.provider-page-context,.provider-page-shortcuts) :where(p,small,.muted,.card-subtitle){
  color:#5a4700!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.card,.metric-card-pro,.doctor-dashboard-metric,.quick-action-pro,.doctor-command-card,.subscription-panel,.doctor-plan-panel,.doctor-command-panel,.doctor-practice-panel,.doctor-queue-panel,.dashboard-lower-grid>*,.doctor-dashboard-lower-grid>*,.provider-resource-hub,.provider-page-context,.provider-page-shortcuts) :where(h1,h2,h3,h4,strong){
  color:#7a0b20!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.card,.metric-card-pro,.doctor-dashboard-metric,.quick-action-pro,.doctor-command-card,.subscription-panel,.doctor-plan-panel,.doctor-command-panel,.doctor-practice-panel,.doctor-queue-panel,.dashboard-lower-grid>*,.doctor-dashboard-lower-grid>*,.provider-resource-hub,.provider-page-context,.provider-page-shortcuts) :where(p,small,.muted,.card-subtitle){
  color:#8f3245!important;
}

@media(max-width:900px){
  body.provider-portal.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .provider-nav-search{
    min-height:48px!important;
  }
  body.portal-experience:is(.frontend-theme-sunrise_gold,.frontend-theme-crimson_pulse):not(.role-admin) .sidebar-signout{
    min-height:48px!important;
  }
}

/* --------------------------------------------------------------------------
   Crimson Pulse portal button contrast audit — all authenticated user roles
   -------------------------------------------------------------------------- */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin){
  --crimson-portal-button-ink:#7a0b20;
  --crimson-portal-button-muted:#8f3245;
  --crimson-portal-button-surface:#fff5f7;
  --crimson-portal-button-surface-hover:#ffe1e7;
  --crimson-portal-button-border:#f3a3b1;
  --crimson-portal-button-primary:#b00022;
  --crimson-portal-button-primary-hover:#8f001b;
}

/* Light button variants must always carry dark readable text on every portal page. */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .btn-outline,
  .btn-light,
  .btn-secondary,
  .auth-secondary,
  .icon-button,
  .command-trigger,
  .provider-topbar-context
){
  border-color:var(--crimson-portal-button-border)!important;
  background:var(--crimson-portal-button-surface)!important;
  color:var(--crimson-portal-button-ink)!important;
  box-shadow:0 8px 20px rgba(122,11,32,.07)!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .btn-outline,
  .btn-light,
  .btn-secondary,
  .auth-secondary,
  .icon-button,
  .command-trigger,
  .provider-topbar-context
):hover{
  border-color:#df6f83!important;
  background:var(--crimson-portal-button-surface-hover)!important;
  color:var(--crimson-portal-button-ink)!important;
  box-shadow:0 10px 24px rgba(122,11,32,.10)!important;
}

/* Primary actions use a deeper red so they remain distinct on a pure-red hero. */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.btn-primary,.auth-submit){
  border-color:var(--crimson-portal-button-primary)!important;
  background:var(--crimson-portal-button-primary)!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(122,11,32,.20)!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.btn-primary,.auth-submit):hover{
  border-color:var(--crimson-portal-button-primary-hover)!important;
  background:var(--crimson-portal-button-primary-hover)!important;
  color:#fff!important;
  box-shadow:0 13px 28px rgba(122,11,32,.24)!important;
}

/* Ghost actions are dark on light surfaces. */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .btn-ghost{
  border-color:transparent!important;
  background:transparent!important;
  color:var(--crimson-portal-button-ink)!important;
  box-shadow:none!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) .btn-ghost:hover{
  border-color:var(--crimson-portal-button-border)!important;
  background:var(--crimson-portal-button-surface-hover)!important;
  color:var(--crimson-portal-button-ink)!important;
}

/* Hero descendants previously inherited white text indiscriminately. Reassert each button's own contrast. */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .dashboard-hero,
  .doctor-dashboard-hero,
  .doctor-clinic-hero,
  .provider-profile-hero,
  .conference-hero
) :where(.btn-outline,.btn-light,.btn-secondary,.auth-secondary){
  border-color:var(--crimson-portal-button-border)!important;
  background:#fff5f7!important;
  color:var(--crimson-portal-button-ink)!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .dashboard-hero,
  .doctor-dashboard-hero,
  .doctor-clinic-hero,
  .provider-profile-hero,
  .conference-hero
) :where(.btn-outline,.btn-light,.btn-secondary,.auth-secondary):hover{
  border-color:#df6f83!important;
  background:#ffe1e7!important;
  color:var(--crimson-portal-button-ink)!important;
}
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .dashboard-hero,
  .doctor-dashboard-hero,
  .doctor-clinic-hero,
  .provider-profile-hero,
  .conference-hero
) .btn-ghost{
  border-color:rgba(255,255,255,.34)!important;
  background:rgba(122,11,32,.18)!important;
  color:#fff!important;
}

/* Icons always follow the resolved button text color instead of a parent hero rule. */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(
  .btn,
  .icon-button,
  .command-trigger,
  .provider-topbar-context
) :where(svg,.ui-icon){
  color:inherit!important;
  stroke:currentColor!important;
}

/* Disabled light controls stay readable instead of fading to white-on-white. */
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.btn-outline,.btn-light,.btn-secondary)[disabled],
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.btn-outline,.btn-light,.btn-secondary).disabled,
body.portal-experience.frontend-theme-crimson_pulse:not(.role-admin) :where(.btn-outline,.btn-light,.btn-secondary)[aria-disabled="true"]{
  background:#fff0f3!important;
  color:var(--crimson-portal-button-muted)!important;
  border-color:#efb4bf!important;
  opacity:.78!important;
}
