
  .page-hero,
  .messaging-app-hero {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid var(--public-panel-border, rgba(148, 163, 184, 0.18));
    background: var(--public-panel-bg, rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
  }

  .page-hero::after,
  .messaging-app-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none;
  }

  .page-hero-breadcrumbs {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: rgb(100, 116, 139);
    font-size: 0.9rem;
  }

  .page-hero-breadcrumbs a {
    color: inherit;
    transition: color 180ms ease;
  }

  .page-hero-breadcrumbs a:hover {
    color: rgb(15, 23, 42);
  }

  .page-hero-eyebrow,
  .messaging-app-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 18%, var(--public-card-bg, white));
    background: color-mix(in srgb, var(--primary-color, #2563eb) 9%, var(--public-card-bg, white));
    color: var(--primary-color, #2563eb);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .page-hero-title-row,
  .messaging-app-title-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1rem;
  }

  .page-hero-title-icon,
  .messaging-app-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--primary-color-dark, #1d4ed8));
    color: white;
    box-shadow: 0 18px 32px color-mix(in srgb, var(--primary-color, #2563eb) 28%, transparent);
    flex-shrink: 0;
  }

  .page-hero-title,
  .messaging-app-title {
    margin: 0;
    color: var(--public-text-strong, rgb(15, 23, 42));
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .page-hero-subtitle,
  .messaging-app-subtitle {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin-top: 0.85rem;
    color: var(--public-text-muted, rgb(71, 85, 105));
    font-size: 1rem;
    line-height: 1.65;
  }

  .page-hero-title,
  .messaging-app-title,
  .page-hero-subtitle,
  .messaging-app-subtitle {
    background: transparent !important;
    box-shadow: none !important;
  }

  .page-hero-stat,
  .messaging-app-stat {
    position: relative;
    z-index: 1;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: color-mix(in srgb, var(--public-subcard-bg, rgba(255,255,255,0.92)) 84%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
  }

  .page-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }

  .page-hero-button-primary,
  .page-hero-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 0.95rem;
    padding: 0.82rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
  }

  .page-hero-button-primary:hover,
  .page-hero-button-secondary:hover {
    transform: translateY(-1px);
  }

  .page-hero-button-primary {
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--primary-color-dark, #1d4ed8));
    color: var(--public-on-accent, #ffffff);
    box-shadow: 0 14px 26px color-mix(in srgb, var(--primary-color, #2563eb) 22%, transparent);
  }

  .page-hero-button-secondary {
    background: color-mix(in srgb, var(--public-control-bg, rgba(255,255,255,0.9)) 90%, transparent);
    color: var(--public-control-text, var(--public-text-strong, rgb(15, 23, 42)));
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  }

  .page-hero-search {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
  }

  .page-hero-search-input {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--public-input-bg, rgba(255, 255, 255, 0.96));
    padding: 0.95rem 1.25rem 0.95rem 3rem;
    color: var(--public-input-text, rgb(15, 23, 42));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  .page-hero-search-input::placeholder {
    color: var(--public-text-soft, rgb(148, 163, 184));
  }

  .page-hero-search-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--primary-color, #2563eb) 26%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color, #2563eb) 10%, transparent), 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .page-hero-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(148, 163, 184);
    pointer-events: none;
  }

  body.layout-profile-editorial-flow .page-hero,
  body.layout-profile-editorial-flow .messaging-app-hero {
    border-radius: 2rem;
  }

  body.layout-profile-editorial-flow .page-hero-title,
  body.layout-profile-editorial-flow .messaging-app-title {
    max-width: 18ch;
  }

  body.layout-profile-product-grid .page-hero,
  body.layout-profile-product-grid .messaging-app-hero {
    border-radius: 1.2rem;
    border-color: color-mix(in srgb, var(--primary-color, #2563eb) 20%, rgba(148, 163, 184, 0.22));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  body.layout-profile-product-grid .page-hero-title,
  body.layout-profile-product-grid .messaging-app-title {
    font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  }

  body.layout-profile-immersive-story .page-hero,
  body.layout-profile-immersive-story .messaging-app-hero {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  body.layout-profile-immersive-story .page-hero-title,
  body.layout-profile-immersive-story .messaging-app-title {
    font-size: clamp(2rem, 4.8vw, 3rem);
    line-height: 1.02;
  }

  body.layout-profile-immersive-story .page-hero-title-row,
  body.layout-profile-immersive-story .messaging-app-title-row {
    align-items: flex-start;
  }

  body.theme-dark .page-hero,
  body.ui-mode-dark .page-hero,
  body.theme-dark .messaging-app-hero,
  body.ui-mode-dark .messaging-app-hero,
  body.public-site-body.preset-mode-dark .page-hero,
  body.public-site-body.preset-mode-dark .messaging-app-hero,
  body.public-site-body.ui-mode-dark .page-hero,
  body.public-site-body.ui-mode-dark .messaging-app-hero {
    background: var(--public-panel-bg, rgba(10, 16, 28, 0.96));
    border-color: var(--public-panel-border, rgba(71, 85, 105, 0.7));
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.28);
  }

  body.theme-dark .page-hero-breadcrumbs,
  body.ui-mode-dark .page-hero-breadcrumbs,
  body.public-site-body.preset-mode-dark .page-hero-breadcrumbs,
  body.public-site-body.ui-mode-dark .page-hero-breadcrumbs {
    color: rgba(226, 232, 240, 0.72);
  }

  body.theme-dark .page-hero-breadcrumbs a:hover,
  body.ui-mode-dark .page-hero-breadcrumbs a:hover,
  body.public-site-body.preset-mode-dark .page-hero-breadcrumbs a:hover,
  body.public-site-body.ui-mode-dark .page-hero-breadcrumbs a:hover {
    color: white;
  }

  body.theme-dark .page-hero-title,
  body.ui-mode-dark .page-hero-title,
  body.public-site-body.preset-mode-dark .page-hero-title,
  body.public-site-body.ui-mode-dark .page-hero-title,
  body.theme-dark .messaging-app-title,
  body.ui-mode-dark .messaging-app-title,
  body.public-site-body.preset-mode-dark .messaging-app-title,
  body.public-site-body.ui-mode-dark .messaging-app-title {
    color: rgb(248, 250, 252);
  }

  body.theme-dark .page-hero-eyebrow,
  body.ui-mode-dark .page-hero-eyebrow,
  body.public-site-body.preset-mode-dark .page-hero-eyebrow,
  body.public-site-body.ui-mode-dark .page-hero-eyebrow,
  body.theme-dark .messaging-app-eyebrow,
  body.ui-mode-dark .messaging-app-eyebrow,
  body.public-site-body.preset-mode-dark .messaging-app-eyebrow,
  body.public-site-body.ui-mode-dark .messaging-app-eyebrow {
    background: color-mix(in srgb, var(--primary-color, #60a5fa) 14%, var(--public-panel-bg, rgba(15, 23, 42, 0.9)));
    border-color: color-mix(in srgb, var(--primary-color, #60a5fa) 28%, rgba(71, 85, 105, 0.4));
    color: var(--primary-color, #60a5fa);
  }

  body.theme-dark .page-hero-subtitle,
  body.ui-mode-dark .page-hero-subtitle,
  body.public-site-body.preset-mode-dark .page-hero-subtitle,
  body.public-site-body.ui-mode-dark .page-hero-subtitle,
  body.theme-dark .messaging-app-subtitle,
  body.ui-mode-dark .messaging-app-subtitle,
  body.public-site-body.preset-mode-dark .messaging-app-subtitle,
  body.public-site-body.ui-mode-dark .messaging-app-subtitle {
    color: rgba(226, 232, 240, 0.82);
  }

  body.theme-dark .page-hero-button-secondary,
  body.ui-mode-dark .page-hero-button-secondary,
  body.public-site-body.preset-mode-dark .page-hero-button-secondary,
  body.public-site-body.ui-mode-dark .page-hero-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgb(248, 250, 252);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
  }

  body.theme-dark .page-hero-search-input,
  body.ui-mode-dark .page-hero-search-input,
  body.public-site-body.preset-mode-dark .page-hero-search-input,
  body.public-site-body.ui-mode-dark .page-hero-search-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(71, 85, 105, 0.7);
    color: rgb(248, 250, 252);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
  }

  @media (max-width: 639px) {
    .page-hero,
    .messaging-app-hero {
      border-radius: 1.5rem;
    }

    .page-hero-title-row,
    .messaging-app-title-row {
      align-items: flex-start;
      gap: 0.75rem;
    }

    .page-hero-title-icon,
    .messaging-app-title-icon {
      width: 2.65rem;
      height: 2.65rem;
      border-radius: 1rem;
    }
  }
