@font-face {
  font-family: "Sora";
  src: url("fonts/sora-normal-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Extended";
  src: url("fonts/MonumentExtended-Regular.woff2") format("woff2"),
       url("fonts/MonumentExtended-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Extended";
  src: url("fonts/MonumentExtended-Ultrabold.woff2") format("woff2"),
       url("fonts/MonumentExtended-Regular.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   HENNA FOGUETE PRO — ÁREA PÚBLICA & ÁREA DA PARCEIRA
   Design tokens & interface alinhados estritamente ao .looper/design.md
   ========================================================================== */

:root {
  --hfp-navy-950: #030b18;
  --hfp-navy-900: #071426;
  --hfp-navy-800: #0b1f3a;
  --hfp-navy-700: #12345c;
  --hfp-blue-700: #1554b8;
  --hfp-blue-600: #1d6fe8;
  --hfp-blue-500: #2f8cff;
  --hfp-cyan-400: #55ddf2;
  --hfp-accent: #1e3aff;
  --hfp-accent-sky: #38b2f8;
  --hfp-accent-light: #4d7cff;
  --hfp-gradient-brand: linear-gradient(135deg, #1e3aff 0%, #38b2f8 100%);
  --hfp-surface-raised: #131929;
  --hfp-border-subtle: rgba(91, 157, 230, 0.18);
  --hfp-border-strong: rgba(255, 255, 255, 0.14);
  --hfp-border-active: #2f8cff;
  --hfp-border-focus: #55ddf2;
  --hfp-overlay: rgba(255, 255, 255, 0.05);
  --hfp-card-bg: rgba(7, 20, 38, 0.85);
  --hfp-radius-xs: 6px;
  --hfp-radius-sm: 10px;
  --hfp-radius-md: 16px;
  --hfp-radius-lg: 24px;
  --hfp-motion-fast: 150ms;
  --hfp-motion-base: 240ms;
  --hfp-ease-out: cubic-bezier(0.2, 0, 0, 1);
  --hfp-text-primary: #f4f8ff;
  --hfp-text-secondary: #b5c7dd;
  --hfp-text-muted: #7890aa;
  --hfp-font: 'Sora', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hfp-font-display: "Monument Extended", "Helvetica Neue", Arial, sans-serif;
}

/* Títulos globais da Área da Parceira — Contrato Tipográfico: Monument Extended Itálico e Maiúsculo */
.hfp-public-site h1,
.hfp-public-site h2,
.hfp-public-site h3,
.hfp-public-site h4,
.hfp-public-site .hfp-panel-heading h2,
.hfp-public-site .hfp-member-dashboard-title-group h1,
.hfp-public-site .hfp-login-intro h1,
.hfp-public-site .hfp-login-card-heading h2,
.hfp-public-site .hfp-mission-card-title,
.hfp-public-site .hfp-mission-card-subtitle,
.hfp-public-site .hfp-mission-detail-header h2,
.hfp-public-site .hfp-mission-section-title h3,
.hfp-public-site .hfp-mission-route h3,
.hfp-public-site .hfp-profile-info h2,
.hfp-public-site .hfp-profile-section-heading h3,
.hfp-public-site .hfp-profile-tier-panel strong,
.hfp-public-site .hfp-profile-tier-title,
.hfp-public-site .hfp-progress-score-value strong,
.hfp-public-site .hfp-stat-box strong,
.hfp-public-site .hfp-progress-next-step strong,
.hfp-public-site .hfp-missions-progress-info strong,
.hfp-public-site .hfp-member-tier-status strong {
  font-family: var(--hfp-font-display) !important;
  font-style: italic !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
}

/* Eyebrows, Badges, Abas e Botões em Monument Extended */
.hfp-public-site .hfp-public-eyebrow,
.hfp-public-site .hfp-mission-sequence,
.hfp-public-site .hfp-mission-type-badge,
.hfp-public-site .hfp-dashboard-nav-link,
.hfp-public-site .hfp-tier-reference,
.hfp-public-site .hfp-button,
.hfp-public-site .hfp-public-button {
  font-family: var(--hfp-font-display) !important;
  font-style: italic !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* Base Standalone Shell */
.hfp-public-standalone {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--hfp-navy-950);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(29, 111, 232, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(18, 52, 92, 0.22) 0%, transparent 45%);
  color: var(--hfp-text-primary);
  font-family: var(--hfp-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hfp-public-standalone .hfp-public-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  box-sizing: border-box;
}

.hfp-public-standalone .hfp-public-site {
  width: min(100%, 1200px);
  margin: 0 auto;
}

/* Global Quick Entry Navigation */
.hfp-public-entry {
  position: relative;
  z-index: 999;
  padding: 10px 20px;
  background: var(--hfp-navy-900);
  color: var(--hfp-text-secondary);
  font: 500 13px/1.4 var(--hfp-font);
  text-align: right;
  border-bottom: 1px solid var(--hfp-border-subtle);
}

.hfp-public-entry a {
  color: var(--hfp-cyan-400);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hfp-public-entry a:hover,
.hfp-public-entry a:focus-visible {
  color: var(--hfp-text-primary);
  text-decoration: underline;
}

.hfp-public-entry-footer {
  margin-top: 32px;
  text-align: center;
  border-bottom: 0;
  border-top: 1px solid var(--hfp-border-subtle);
}

/* Main Container Card */
.hfp-public-site {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1200px;
  margin: 24px auto;
  padding: 40px 48px;
  color: var(--hfp-text-primary);
  background: var(--hfp-card-bg);
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font: 400 15px/1.6 var(--hfp-font);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.hfp-public-site::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 157, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 157, 230, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 85% 10%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 85% 10%, black 20%, transparent 75%);
}

/* Typography & Eyebrows */
.hfp-public-eyebrow {
  display: inline-block;
  color: var(--hfp-cyan-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hfp-public-hero {
  max-width: 680px;
}

.hfp-auth-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.hfp-public-hero h2 {
  margin: 8px 0 12px;
  color: var(--hfp-text-primary);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hfp-public-hero p {
  color: var(--hfp-text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* Buttons — Design System Specification: Monument Extended Italic Uppercase + Cosmic Brand */
.hfp-button,
.hfp-public-button {
  display: inline-flex !important;
  min-height: 44px;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border: 1px solid transparent !important;
  border-radius: var(--hfp-radius-sm, 10px) !important;
  color: #ffffff !important;
  font-family: var(--hfp-font-display) !important;
  font-style: italic !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  user-select: none !important;
  transition: all var(--hfp-motion-base, 240ms) var(--hfp-ease-out, cubic-bezier(0.2, 0, 0, 1)) !important;
}

.hfp-button-primary,
.hfp-public-button:not(.hfp-public-button-secondary),
.hfp-button:not(.hfp-button-secondary):not(.hfp-mission-btn):not(.hfp-progress-next-action) {
  background: var(--hfp-gradient-brand) !important;
  background-size: 200% auto !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(30, 58, 255, 0.35) !important;
}

.hfp-button-primary:hover,
.hfp-button-primary:focus-visible,
.hfp-public-button:not(.hfp-public-button-secondary):hover,
.hfp-public-button:not(.hfp-public-button-secondary):focus-visible,
.hfp-button:not(.hfp-button-secondary):not(.hfp-mission-btn):not(.hfp-progress-next-action):hover,
.hfp-button:not(.hfp-button-secondary):not(.hfp-mission-btn):not(.hfp-progress-next-action):focus-visible {
  background-position: right center !important;
  box-shadow: 0 8px 30px rgba(56, 178, 248, 0.45) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.hfp-button-primary:active,
.hfp-public-button:not(.hfp-public-button-secondary):active,
.hfp-button:not(.hfp-button-secondary):not(.hfp-mission-btn):not(.hfp-progress-next-action):active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(30, 58, 255, 0.4) !important;
}

.hfp-button-secondary,
.hfp-public-button-secondary,
.hfp-mission-btn,
.hfp-progress-next-action {
  background: var(--hfp-surface-raised, #131929) !important;
  border: 1px solid var(--hfp-border-strong, rgba(255, 255, 255, 0.14)) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.hfp-button-secondary:hover,
.hfp-button-secondary:focus-visible,
.hfp-public-button-secondary:hover,
.hfp-public-button-secondary:focus-visible,
.hfp-mission-btn:hover,
.hfp-mission-btn:focus-visible,
.hfp-progress-next-action:hover,
.hfp-progress-next-action:focus-visible {
  border-color: var(--hfp-accent-sky, #38b2f8) !important;
  background: rgba(56, 178, 248, 0.14) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 20px rgba(56, 178, 248, 0.25) !important;
}

.hfp-button-secondary:active,
.hfp-public-button-secondary:active,
.hfp-mission-btn:active,
.hfp-progress-next-action:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

.hfp-button:focus-visible,
.hfp-public-button:focus-visible,
.hfp-profile-link:focus-visible,
.hfp-public-entry a:focus-visible {
  outline: 2px solid var(--hfp-cyan-400);
  outline-offset: 2px;
}

/* Forms & Inputs */
.hfp-public-auth-form {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin-top: 24px;
}

.hfp-form-group {
  display: grid;
  gap: 6px;
  text-align: left;
}

.hfp-form-group label,
.hfp-public-auth-form label {
  color: var(--hfp-text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hfp-public-auth-form input,
.hfp-public-auth-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--hfp-navy-900);
  color: var(--hfp-text-primary);
  font: 400 14px/1.5 var(--hfp-font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hfp-public-auth-form input::placeholder,
.hfp-public-auth-form textarea::placeholder {
  color: var(--hfp-text-muted);
  font-weight: 400;
}

.hfp-public-auth-form input:focus-visible,
.hfp-public-auth-form textarea:focus-visible {
  outline: 2px solid var(--hfp-cyan-400);
  outline-offset: 2px;
  border-color: var(--hfp-border-active);
  background: #091a32;
  box-shadow: 0 0 16px rgba(47, 140, 255, 0.2);
}

.hfp-public-auth-form textarea {
  min-height: 100px;
  resize: vertical;
}

.hfp-public-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
}

/* State Notifications */
.hfp-public-state {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 12px;
  background: rgba(11, 31, 58, 0.85);
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hfp-state-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(85, 221, 242, 0.12);
  border: 1px solid rgba(85, 221, 242, 0.35);
  color: var(--hfp-cyan-400);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.hfp-state-content {
  display: grid;
  gap: 4px;
  text-align: left;
}

.hfp-state-content strong {
  color: var(--hfp-text-primary);
  font-size: 14px;
  font-weight: 700;
}

.hfp-state-content span {
  color: var(--hfp-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.hfp-public-state-error {
  border-left: 4px solid var(--hfp-blue-500);
  background: rgba(11, 31, 58, 0.95);
}

.hfp-public-state-error .hfp-state-icon {
  border-color: rgba(47, 140, 255, 0.5);
  background: rgba(47, 140, 255, 0.15);
  color: var(--hfp-blue-500);
}

.hfp-public-state-success {
  border-left: 4px solid var(--hfp-cyan-400);
  background: rgba(11, 31, 58, 0.95);
}

.hfp-public-state-success .hfp-state-icon {
  border-color: rgba(85, 221, 242, 0.5);
  background: rgba(85, 221, 242, 0.15);
  color: var(--hfp-cyan-400);
}

.hfp-public-site[data-hfp-state="loading"] .hfp-public-state {
  background: linear-gradient(100deg, #0b1f3a 35%, #12345c 50%, #0b1f3a 65%);
  background-size: 220% 100%;
  animation: hfp-public-loading 1.8s ease-in-out infinite;
}

/* Member Dashboard Layout */
.hfp-member-dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--hfp-border-subtle);
}

.hfp-member-dashboard-title-group h1 {
  margin: 6px 0 4px;
  color: var(--hfp-text-primary);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hfp-member-dashboard-title-group p {
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 14px;
}

.hfp-member-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hfp-member-dashboard-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(85, 221, 242, 0.35);
  border-radius: 999px;
  background: rgba(85, 221, 242, 0.08);
  color: var(--hfp-cyan-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hfp-member-dashboard-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hfp-cyan-400);
  box-shadow: 0 0 0 4px rgba(85, 221, 242, 0.18);
  animation: hfp-pulse 2s infinite ease-in-out;
}

/* Authenticated Grid Structure */
.hfp-partner-auth[data-hfp-state="authenticated"] {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-member-dashboard-header {
  grid-column: 1 / -1;
}

.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-public-site {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 32px;
}

.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-partner-profile {
  grid-column: 1;
}

.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-partner-progress {
  grid-column: 2;
}

.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-partner-missions {
  grid-column: 1 / -1;
}

.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-mission-detail,
.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-proof-form,
.hfp-partner-auth[data-hfp-state="authenticated"] > .hfp-partner-result {
  grid-column: 1 / -1;
}

/* Partner Profile Card */
.hfp-profile-header {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hfp-border-subtle);
  text-align: left;
}

.hfp-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hfp-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hfp-cyan-400);
  box-shadow: 0 0 20px rgba(85, 221, 242, 0.25);
  background: var(--hfp-navy-800);
}

.hfp-profile-avatar-empty {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--hfp-cyan-400);
  background: rgba(18, 52, 92, 0.6);
  color: var(--hfp-cyan-400);
  font-size: 32px;
  box-shadow: 0 0 20px rgba(85, 221, 242, 0.25);
}

.hfp-profile-info h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hfp-text-primary);
}

.hfp-profile-tier {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(85, 221, 242, 0.35);
  border-radius: 999px;
  background: rgba(29, 111, 232, 0.15);
  color: var(--hfp-cyan-400) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hfp-profile-details {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hfp-profile-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 10px;
  background: rgba(7, 20, 38, 0.6);
}

.hfp-profile-detail-item dt {
  color: var(--hfp-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.hfp-profile-detail-item dd {
  margin: 0;
  font-weight: 600;
  font-size: 13.5px;
}

.hfp-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hfp-cyan-400);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.hfp-profile-link:hover,
.hfp-profile-link:focus-visible {
  color: var(--hfp-text-primary);
  text-decoration: underline;
}

.hfp-profile-note {
  margin: 16px 0 0;
  color: var(--hfp-text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.hfp-text-muted {
  color: var(--hfp-text-muted);
}

/* Partner Progress Card */
.hfp-progress-heading h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hfp-text-primary);
}

.hfp-progress-heading p {
  margin: 0 0 16px;
  color: var(--hfp-text-secondary);
  font-size: 13.5px;
}

.hfp-progress-meter-wrapper {
  margin: 18px 0 20px;
}

.hfp-progress-meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--hfp-navy-900);
  border: 1px solid rgba(56, 178, 248, 0.3);
  overflow: visible;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  margin: 14px 0 16px;
}

.hfp-progress-meter span,
.hfp-progress-meter .hfp-progress-fill {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hfp-blue-700) 0%, var(--hfp-blue-600) 50%, var(--hfp-cyan-400) 100%);
  box-shadow: 0 0 16px rgba(85, 221, 242, 0.55);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

.hfp-progress-star {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 178, 248, 0.35) 0%, #071426 75%);
  border: 1.5px solid #38b2f8;
  box-shadow: 0 0 16px rgba(56, 178, 248, 0.8), 0 0 28px rgba(30, 58, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  animation: hfp-star-pulse 2.5s infinite ease-in-out;
}

.hfp-progress-star .hfp-star-icon {
  width: 15px;
  height: 15px;
  color: #ffd700;
  fill: #ffd700;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.85));
}

@keyframes hfp-star-pulse {
  0%, 100% {
    transform: translate(50%, -50%) scale(1);
    box-shadow: 0 0 14px rgba(56, 178, 248, 0.7), 0 0 24px rgba(30, 58, 255, 0.4);
  }
  50% {
    transform: translate(50%, -50%) scale(1.12);
    box-shadow: 0 0 22px rgba(56, 178, 248, 1), 0 0 32px rgba(255, 215, 0, 0.7);
  }
}

.hfp-progress-meter-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.hfp-progress-summary {
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 13px;
}

.hfp-progress-summary strong {
  color: var(--hfp-text-primary);
  font-weight: 700;
}

.hfp-progress-percent-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--hfp-cyan-400);
  font-feature-settings: 'tnum';
}

.hfp-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 20px;
}

.hfp-stat-box {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 12px;
  background: rgba(7, 20, 38, 0.7);
}

.hfp-stat-box strong {
  color: var(--hfp-blue-500);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  font-feature-settings: 'tnum';
}

.hfp-stat-box span {
  color: var(--hfp-text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hfp-progress-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hfp-progress-item {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 12px;
  background: rgba(7, 20, 38, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hfp-progress-item:hover {
  border-color: rgba(47, 140, 255, 0.4);
  background: rgba(11, 31, 58, 0.75);
}

.hfp-progress-item-details {
  display: grid;
  gap: 4px;
  text-align: left;
}

.hfp-progress-item-details strong {
  color: var(--hfp-text-primary);
  font-size: 14px;
  font-weight: 600;
}

.hfp-mission-due,
.hfp-mission-note {
  font-size: 12px;
  color: var(--hfp-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hfp-mission-note {
  color: var(--hfp-cyan-400);
}

/* Status Badges */
.hfp-progress-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.hfp-progress-status-pending {
  border: 1px solid rgba(91, 157, 230, 0.35);
  background: rgba(18, 52, 92, 0.45);
  color: var(--hfp-text-secondary);
}

.hfp-progress-status-submitted {
  border: 1px solid rgba(47, 140, 255, 0.5);
  background: rgba(29, 111, 232, 0.2);
  color: var(--hfp-cyan-400);
}

.hfp-progress-status-accepted {
  border: 1px solid rgba(85, 221, 242, 0.55);
  background: rgba(85, 221, 242, 0.15);
  color: var(--hfp-cyan-400);
}

.hfp-progress-status-rejected {
  border: 1px solid rgba(21, 84, 184, 0.55);
  background: rgba(11, 31, 58, 0.85);
  color: var(--hfp-text-secondary);
}

/* Missions Grid Section */
.hfp-missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.hfp-mission-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 14px;
  background: rgba(7, 20, 38, 0.75);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.hfp-mission-card:hover {
  border-color: rgba(47, 140, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hfp-mission-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hfp-mission-card-title {
  color: var(--hfp-text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: block;
}

.hfp-mission-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 157, 230, 0.14);
  display: flex;
  justify-content: flex-end;
}

.hfp-mission-btn {
  width: 100%;
}

/* Mission Detail & Proof Card */
.hfp-mission-detail-card,
.hfp-proof-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.hfp-mission-detail-card h2,
.hfp-proof-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--hfp-text-primary);
  letter-spacing: -0.03em;
}

.hfp-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hfp-public-proof-summary,
.hfp-public-decision-note {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(91, 157, 230, 0.2);
  border-left: 3px solid var(--hfp-blue-500);
  border-radius: 0 10px 10px 0;
  background: rgba(7, 20, 38, 0.58);
}

.hfp-public-proof-summary .hfp-public-eyebrow,
.hfp-public-decision-note strong {
  color: var(--hfp-cyan-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hfp-public-proof-text,
.hfp-public-decision-note p {
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hfp-public-readonly-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(47, 140, 255, 0.38);
  border-radius: 8px;
  background: rgba(29, 111, 232, 0.1);
  color: var(--hfp-cyan-400);
  font-size: 12px;
  font-weight: 700;
}

.hfp-proof-mission-title {
  margin: 20px 0 0;
  color: var(--hfp-text-primary);
  font-size: 15px;
}

/* Partner Result Banner */
.hfp-partner-result {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hfp-result-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 18px;
  border: 2px solid var(--hfp-cyan-400);
  border-radius: 50%;
  color: var(--hfp-cyan-400);
  font-size: 28px;
  font-weight: 800;
  background: rgba(85, 221, 242, 0.1);
  box-shadow: 0 0 24px rgba(85, 221, 242, 0.25);
}

.hfp-partner-result h2 {
  margin: 8px 0;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hfp-partner-result p {
  color: var(--hfp-text-secondary);
}

.hfp-result-note {
  max-width: 540px;
  margin: 16px auto;
  padding: 14px 18px;
  border-left: 3px solid var(--hfp-blue-500);
  background: rgba(29, 111, 232, 0.1);
  border-radius: 0 10px 10px 0;
  color: var(--hfp-text-secondary);
  font-size: 13.5px;
  text-align: left;
}

.hfp-partner-result .hfp-result-actions {
  justify-content: center;
}

/* Animations */
@keyframes hfp-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}

@keyframes hfp-public-loading {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -20% 0;
  }
}

/* Responsive Styles */
@media (max-width: 860px) {
  .hfp-partner-auth[data-hfp-state="authenticated"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hfp-public-site {
    padding: 32px 24px;
    margin: 16px auto;
  }

  .hfp-member-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hfp-member-dashboard-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .hfp-public-site {
    padding: 24px 16px;
    margin: 12px;
    border-radius: 16px;
  }

  .hfp-public-standalone .hfp-public-shell {
    padding: 24px 12px;
  }

  .hfp-profile-header {
    flex-direction: column;
    text-align: center;
  }

  .hfp-profile-info {
    text-align: center;
  }

  .hfp-progress-stats {
    grid-template-columns: 1fr;
  }

  .hfp-missions-grid {
    grid-template-columns: 1fr;
  }

  .hfp-progress-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .hfp-result-actions {
    flex-direction: column;
  }

  .hfp-button,
  .hfp-public-button {
    width: 100%;
    justify-content: center;
  }

  .hfp-public-entry {
    text-align: center;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hfp-member-dashboard-status i,
  .hfp-public-site[data-hfp-state="loading"] .hfp-public-state {
    animation: none;
  }

  .hfp-button,
  .hfp-public-button,
  .hfp-mission-card,
  .hfp-dashboard-nav-link,
  .hfp-progress-meter span {
    transition: none;
  }
}

/* ========================================================================
   DASHBOARD DA PARCEIRA — reconstrução operacional
   ======================================================================== */
:root {
  --hfp-dashboard-gap: 16px;
  --hfp-dashboard-surface: rgba(7, 20, 38, 0.88);
  --hfp-dashboard-surface-soft: rgba(11, 31, 58, 0.72);
}

.hfp-public-standalone .hfp-public-shell:has(.hfp-partner-auth[data-hfp-state="authenticated"]) {
  justify-content: flex-start;
  padding-block: 32px 48px;
}

.hfp-partner-auth[data-hfp-state="authenticated"] {
  container-type: inline-size;
  display: block;
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hfp-partner-auth[data-hfp-state="authenticated"]::before {
  display: none;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin: 0;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--hfp-border-subtle);
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-title-group {
  min-width: 0;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-title-group h1 {
  max-width: 16ch;
  margin: 6px 0 10px;
  font-size: clamp(2rem, 1.35rem + 2.5cqi, 3.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-title-group p {
  max-width: 58ch;
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-public-auth-actions {
  margin: 0;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-status {
  min-block-size: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-status i {
  animation: none;
}

.hfp-dashboard-nav {
  display: flex;
  min-block-size: 56px;
  align-items: center;
  padding: 4px;
  border-bottom: 1px solid var(--hfp-border-subtle);
  border-radius: 12px;
  background: var(--hfp-dashboard-surface-soft);
}

.hfp-dashboard-tablist {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.hfp-dashboard-nav-link {
  display: flex;
  width: 100%;
  min-block-size: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--hfp-text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.hfp-dashboard-nav-link:hover,
.hfp-dashboard-nav-link.is-active,
.hfp-dashboard-nav-link[aria-selected="true"] {
  border-color: rgba(47, 140, 255, 0.28);
  background: rgba(29, 111, 232, 0.16);
  color: var(--hfp-text-primary);
  box-shadow: 0 8px 20px rgba(3, 11, 24, 0.18);
}

.hfp-dashboard-nav-link:hover {
  color: var(--hfp-text-primary);
}

.hfp-dashboard-nav-link:focus-visible {
  outline: 2px solid var(--hfp-border-focus);
  outline-offset: 2px;
}

.hfp-dashboard-grid [role="tabpanel"][hidden] {
  display: none;
}

.hfp-dashboard-grid [data-hfp-tab-section][hidden] {
  display: none;
}

.hfp-dashboard-grid [role="tabpanel"]:focus-visible {
  outline: 2px solid var(--hfp-border-focus);
  outline-offset: 4px;
}

.hfp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(17rem, 0.68fr);
  gap: var(--hfp-dashboard-gap);
  align-items: start;
  padding-block-start: 20px;
}

.hfp-dashboard-grid[data-hfp-active-tab="progress"],
.hfp-dashboard-grid[data-hfp-active-tab="missions"],
.hfp-dashboard-grid[data-hfp-active-tab="profile"] {
  grid-template-columns: minmax(0, 1fr);
}

.hfp-dashboard-grid > .hfp-public-site {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--hfp-dashboard-surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hfp-dashboard-grid > .hfp-public-site::before {
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 100% 0%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, black 0%, transparent 72%);
}

.hfp-dashboard-grid > .hfp-partner-progress {
  grid-column: 1;
  grid-row: 1;
}

.hfp-dashboard-grid > .hfp-partner-profile {
  grid-column: 2;
  grid-row: 1;
}

.hfp-dashboard-grid > .hfp-partner-missions {
  grid-column: 1 / -1;
  grid-row: 2;
}

.hfp-dashboard-grid[data-hfp-active-tab="progress"] > .hfp-partner-progress,
.hfp-dashboard-grid[data-hfp-active-tab="missions"] > .hfp-partner-missions,
.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile {
  grid-column: 1 / -1;
  grid-row: auto;
}

.hfp-dashboard-grid > .hfp-mission-detail,
.hfp-dashboard-grid > .hfp-proof-form,
.hfp-dashboard-grid > .hfp-partner-result {
  grid-column: 1 / -1;
}

.hfp-dashboard-grid .hfp-progress-heading h2,
.hfp-dashboard-grid .hfp-profile-info h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4cqi, 2.125rem);
  line-height: 1.15;
  text-wrap: balance;
}

.hfp-dashboard-grid .hfp-progress-heading p {
  max-width: 58ch;
  margin-block-end: 20px;
  text-wrap: pretty;
}

.hfp-dashboard-grid .hfp-progress-meter-wrapper {
  margin-block: 24px 20px;
}

.hfp-dashboard-grid .hfp-progress-meter {
  block-size: 12px;
}

.hfp-dashboard-grid .hfp-progress-stats {
  margin-block: 20px 0;
}

.hfp-dashboard-grid .hfp-stat-box {
  min-block-size: 76px;
  align-content: center;
}

.hfp-progress-next-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-block-start: 20px;
  padding: 14px;
  border: 1px solid rgba(47, 140, 255, 0.28);
  border-radius: 10px;
  background: rgba(29, 111, 232, 0.09);
}

.hfp-progress-next-step-icon {
  display: grid;
  inline-size: 28px;
  block-size: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 140, 255, 0.18);
  color: var(--hfp-blue-500);
  font-weight: 700;
}

.hfp-progress-next-step div {
  display: grid;
  gap: 3px;
}

.hfp-progress-next-step strong {
  color: var(--hfp-text-primary);
  font-size: 0.8125rem;
}

.hfp-progress-next-step span:not(.hfp-progress-next-step-icon) {
  color: var(--hfp-text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

.hfp-dashboard-grid .hfp-profile-header {
  min-block-size: auto;
  gap: 16px;
  padding-block-end: 14px;
}

.hfp-dashboard-grid > .hfp-partner-profile {
  padding: 20px;
}

.hfp-dashboard-grid .hfp-profile-avatar-wrap {
  --hfp-avatar-ring-size: 2px;
  position: relative;
  display: grid;
  inline-size: 78px;
  block-size: 78px;
  flex: 0 0 78px;
  place-items: center;
  padding: var(--hfp-avatar-ring-size);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hfp-blue-700), var(--hfp-blue-500));
  box-shadow: 0 8px 24px rgba(21, 84, 184, 0.24);
  isolation: isolate;
}

.hfp-dashboard-grid .hfp-profile-avatar-wrap::before {
  position: absolute;
  z-index: -1;
  inset: -4px;
  border: 1px solid rgba(47, 140, 255, 0.24);
  border-radius: inherit;
  content: '';
  pointer-events: none;
}

.hfp-dashboard-grid .hfp-profile-avatar,
.hfp-dashboard-grid .hfp-profile-avatar-empty {
  inline-size: 100%;
  block-size: 100%;
  border: 3px solid var(--hfp-navy-900);
  box-shadow: none;
}

.hfp-dashboard-grid .hfp-profile-avatar-empty {
  font-size: 1.5rem;
}

.hfp-dashboard-grid .hfp-profile-avatar-tier-astro_master {
  --hfp-avatar-ring-size: 3px;
  background: conic-gradient(from 135deg, var(--hfp-blue-600), var(--hfp-cyan-400), var(--hfp-blue-500), var(--hfp-blue-600));
  box-shadow: 0 0 0 1px rgba(85, 221, 242, 0.24), 0 10px 28px rgba(47, 140, 255, 0.28);
}

.hfp-dashboard-grid .hfp-profile-avatar-tier-astro_master::before {
  border-color: rgba(85, 221, 242, 0.42);
}

.hfp-dashboard-grid .hfp-profile-avatar-tier-supremo_celestial {
  --hfp-avatar-ring-size: 4px;
  background: conic-gradient(from 90deg, var(--hfp-cyan-400), var(--hfp-blue-500) 28%, var(--hfp-blue-700) 58%, var(--hfp-cyan-400));
  box-shadow: 0 0 0 1px rgba(85, 221, 242, 0.34), 0 0 24px rgba(47, 140, 255, 0.34), 0 12px 32px rgba(3, 11, 24, 0.4);
}

.hfp-dashboard-grid .hfp-profile-avatar-tier-supremo_celestial::before {
  inset: -6px;
  border-color: rgba(85, 221, 242, 0.54);
  box-shadow: 0 0 18px rgba(85, 221, 242, 0.18);
}

.hfp-dashboard-grid .hfp-profile-info h2 {
  margin-block: 4px 8px;
}

.hfp-dashboard-grid .hfp-profile-details {
  gap: 8px;
  margin-block-start: 12px;
}

.hfp-dashboard-grid .hfp-profile-detail-item {
  min-block-size: 48px;
  padding: 8px 12px;
}

.hfp-dashboard-grid .hfp-profile-link {
  min-block-size: 28px;
}

.hfp-dashboard-grid .hfp-partner-profile .hfp-profile-note {
  margin-block-start: 12px;
}

.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
  column-gap: clamp(20px, 4cqi, 48px);
  align-items: center;
}

.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile .hfp-profile-header {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  min-block-size: 0;
  padding-block-end: 0;
  border-block-end: 0;
}

.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile .hfp-profile-details,
.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile .hfp-profile-note {
  grid-column: 2;
}

.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile .hfp-profile-details {
  margin-block-start: 0;
}

.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile .hfp-profile-note {
  margin-block-start: 8px;
}

.hfp-section-heading-row {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.hfp-section-count {
  display: inline-flex;
  min-block-size: 28px;
  align-items: center;
  padding-inline: 10px;
  border: 1px solid rgba(47, 140, 255, 0.32);
  border-radius: 999px;
  background: rgba(29, 111, 232, 0.12);
  color: var(--hfp-blue-500);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hfp-dashboard-grid .hfp-missions-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 12px;
  margin-block-start: 18px;
}

.hfp-dashboard-grid .hfp-mission-card {
  min-block-size: 182px;
  padding: 18px;
  border-radius: 12px;
  background: var(--hfp-dashboard-surface-soft);
}

.hfp-dashboard-grid .hfp-mission-card-meta {
  align-items: start;
  margin-block-end: 18px;
}

.hfp-dashboard-grid .hfp-mission-card-title {
  margin-block-end: 0;
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}

.hfp-dashboard-grid .hfp-mission-card-footer {
  margin-block-start: 20px;
  padding-block-start: 12px;
}

.hfp-dashboard-grid .hfp-mission-btn {
  inline-size: auto;
  min-inline-size: 9rem;
}

.hfp-dashboard-grid :where(a, button):focus-visible {
  outline: 2px solid var(--hfp-border-focus);
  outline-offset: 3px;
}

@container (max-width: 760px) {
  .hfp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hfp-dashboard-grid > .hfp-partner-progress,
  .hfp-dashboard-grid > .hfp-partner-profile,
  .hfp-dashboard-grid > .hfp-partner-missions {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .hfp-public-standalone .hfp-public-shell:has(.hfp-partner-auth[data-hfp-state="authenticated"]) {
    padding: 24px 16px 40px;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-title-group h1 {
    max-width: 24ch;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-actions {
    justify-content: space-between;
  }

  .hfp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hfp-dashboard-grid > .hfp-partner-progress,
  .hfp-dashboard-grid > .hfp-partner-profile,
  .hfp-dashboard-grid > .hfp-partner-missions {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-public-auth-actions,
  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-public-auth-actions .hfp-button {
    inline-size: 100%;
  }

  .hfp-dashboard-grid > .hfp-public-site {
    padding: 20px 16px;
  }

  .hfp-dashboard-nav-link {
    min-block-size: 48px;
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .hfp-dashboard-grid .hfp-profile-header {
    align-items: center;
  }

  .hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile {
    display: block;
  }

  .hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile .hfp-profile-header {
    padding-block-end: 14px;
    border-block-end: 1px solid var(--hfp-border-subtle);
  }

  .hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile .hfp-profile-details {
    margin-block-start: 12px;
  }

  .hfp-section-heading-row {
    flex-direction: column;
    gap: 8px;
  }

  .hfp-dashboard-grid .hfp-mission-btn {
    inline-size: 100%;
  }
}

@media (pointer: coarse) {
  .hfp-dashboard-nav-link,
  .hfp-dashboard-grid .hfp-mission-btn,
  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-actions .hfp-button {
    min-block-size: 44px;
  }
}

@media (forced-colors: active) {
  .hfp-dashboard-nav-link:focus-visible,
  .hfp-dashboard-grid :where(a, button):focus-visible {
    outline: 2px solid Highlight;
  }

  .hfp-dashboard-grid > .hfp-public-site,
  .hfp-dashboard-grid .hfp-mission-card,
  .hfp-progress-next-step {
    border-color: CanvasText;
  }
}

/* ========================================================================
   CENTRAL PÚBLICA DE MISSÕES — sistema visual completo
   ======================================================================== */
.hfp-public-standalone {
  color-scheme: dark;
  background-image:
    radial-gradient(circle at 88% 4%, rgba(29, 111, 232, 0.2), transparent 34rem),
    radial-gradient(circle at 3% 92%, rgba(18, 52, 92, 0.32), transparent 30rem),
    linear-gradient(rgba(91, 157, 230, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 157, 230, 0.022) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}

.hfp-skip-link {
  position: fixed;
  z-index: 10000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  translate: 0 -160%;
  padding: 10px 14px;
  border: 2px solid var(--hfp-cyan-400);
  border-radius: 8px;
  background: var(--hfp-navy-900);
  color: var(--hfp-text-primary);
  font: 600 0.8125rem/1.3 var(--hfp-font);
  text-decoration: none;
}

.hfp-skip-link:focus {
  translate: 0;
  outline: none;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-header {
  position: relative;
  align-items: center;
  margin-block-end: 12px;
  padding: clamp(22px, 3cqi, 34px);
  overflow: clip;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 10%, var(--hfp-tier-glow), transparent 34%),
    linear-gradient(135deg, rgba(11, 31, 58, 0.94), rgba(7, 20, 38, 0.88));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-header::before {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--hfp-tier-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--hfp-tier-border) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 20%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, black 100%);
  content: '';
  pointer-events: none;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-header > * {
  position: relative;
  z-index: 1;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-title-group h1 {
  max-width: none;
  margin-block: 5px 9px;
  font-size: clamp(2rem, 1.35rem + 2.3cqi, 3rem);
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-actions .hfp-button svg {
  inline-size: 16px;
  block-size: 16px;
}

.hfp-dashboard-nav {
  min-block-size: 68px;
  padding: 7px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 16px;
  background: rgba(7, 20, 38, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hfp-dashboard-nav-link {
  position: relative;
  min-block-size: 52px;
  gap: 9px;
  overflow: clip;
  border-radius: 11px;
  font-size: 0.8125rem;
}

.hfp-dashboard-nav-link > svg {
  inline-size: 18px;
  block-size: 18px;
  color: var(--hfp-text-muted);
  stroke-width: 2;
  transition: color 160ms ease;
}

.hfp-dashboard-nav-link::after {
  position: absolute;
  inset-inline: 18%;
  inset-block-end: 0;
  block-size: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--hfp-tier-accent);
  scale: 0 1;
  content: '';
}

.hfp-dashboard-nav-link:is(.is-active, [aria-selected="true"]) {
  border-color: var(--hfp-tier-border);
  background: linear-gradient(135deg, var(--hfp-tier-surface), rgba(29, 111, 232, 0.12));
  box-shadow: inset 0 1px 0 rgba(244, 248, 255, 0.04), 0 8px 22px rgba(3, 11, 24, 0.25);
}

.hfp-dashboard-nav-link:is(.is-active, [aria-selected="true"]) > svg {
  color: var(--hfp-tier-accent);
}

.hfp-dashboard-nav-link:is(.is-active, [aria-selected="true"])::after {
  scale: 1;
}

.hfp-dashboard-grid {
  padding-block-start: 14px;
}

.hfp-dashboard-grid > .hfp-public-site {
  border-color: rgba(91, 157, 230, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 111, 232, 0.1), transparent 30rem),
    rgba(7, 20, 38, 0.9);
}

.hfp-dashboard-grid > :is(.hfp-partner-progress, .hfp-partner-missions, .hfp-mission-detail, .hfp-partner-result) {
  padding: clamp(24px, 4cqi, 44px);
}

.hfp-panel-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-block-end: 24px;
  border-block-end: 1px solid var(--hfp-border-subtle);
}

.hfp-panel-heading-icon,
.hfp-mission-section-title > span {
  display: grid;
  inline-size: 48px;
  block-size: 48px;
  place-items: center;
  border: 1px solid var(--hfp-tier-border);
  border-radius: 14px;
  background: var(--hfp-tier-surface);
  color: var(--hfp-tier-accent);
  box-shadow: 0 10px 26px var(--hfp-tier-glow);
}

.hfp-panel-heading-icon svg,
.hfp-mission-section-title > span svg {
  inline-size: 23px;
  block-size: 23px;
}

.hfp-panel-heading h2 {
  margin: 3px 0 7px;
  color: var(--hfp-text-primary);
  font-size: clamp(1.55rem, 1.2rem + 1.5cqi, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.hfp-panel-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Login público */
.hfp-partner-auth:not([data-hfp-state="authenticated"]) {
  width: min(100%, 1120px);
  padding: 0;
  overflow: clip;
  border-color: rgba(91, 157, 230, 0.24);
  background: rgba(7, 20, 38, 0.93);
}

.hfp-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(21rem, 0.92fr);
  min-block-size: 620px;
}

.hfp-login-intro,
.hfp-login-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6cqi, 68px);
}

.hfp-login-intro {
  position: relative;
  overflow: clip;
  border-inline-end: 1px solid var(--hfp-border-subtle);
  background:
    radial-gradient(circle at 18% 12%, rgba(85, 221, 242, 0.11), transparent 32%),
    radial-gradient(circle at 90% 82%, rgba(29, 111, 232, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(11, 31, 58, 0.86), rgba(3, 11, 24, 0.94));
}

.hfp-login-intro::before {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(91, 157, 230, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 157, 230, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 60%, black, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 70% 60%, black, transparent 74%);
  content: '';
  pointer-events: none;
}

.hfp-login-intro > * {
  position: relative;
  z-index: 1;
}

.hfp-login-mark {
  display: grid;
  inline-size: 64px;
  block-size: 64px;
  place-items: center;
  margin-block-end: 28px;
  border: 1px solid rgba(85, 221, 242, 0.4);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29, 111, 232, 0.26), rgba(85, 221, 242, 0.1));
  color: var(--hfp-cyan-400);
  box-shadow: 0 0 34px rgba(47, 140, 255, 0.24);
}

.hfp-login-mark svg {
  inline-size: 30px;
  block-size: 30px;
}

.hfp-login-intro h1 {
  max-width: 10ch;
  margin: 8px 0 18px;
  color: var(--hfp-text-primary);
  font-size: clamp(2.4rem, 1.5rem + 3.4cqi, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-wrap: balance;
}

.hfp-login-intro > p {
  max-width: 48ch;
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hfp-login-benefits {
  display: grid;
  gap: 13px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hfp-login-benefits li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--hfp-text-secondary);
  font-size: 0.8125rem;
}

.hfp-login-benefits svg {
  inline-size: 18px;
  block-size: 18px;
  color: var(--hfp-cyan-400);
}

.hfp-login-card {
  background: rgba(3, 11, 24, 0.46);
}

.hfp-login-card-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hfp-login-card-heading h2 {
  margin: 3px 0 0;
  color: var(--hfp-text-primary);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hfp-login-card-icon {
  display: grid;
  inline-size: 46px;
  block-size: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(47, 140, 255, 0.34);
  border-radius: 13px;
  background: rgba(29, 111, 232, 0.12);
  color: var(--hfp-blue-500);
}

.hfp-login-card-icon svg {
  inline-size: 22px;
  block-size: 22px;
}

.hfp-login-card > p {
  margin: 20px 0 0;
  color: var(--hfp-text-secondary);
  font-size: 0.8125rem;
}

.hfp-login-card .hfp-public-auth-form {
  max-width: none;
  margin-block-start: 24px;
  gap: 18px;
}

.hfp-login-card .hfp-public-auth-form label {
  color: var(--hfp-text-primary);
  font-weight: 600;
}

.hfp-login-card .hfp-public-auth-form input {
  min-block-size: 52px;
  padding-inline: 16px;
  font-size: 1rem;
}

.hfp-login-card .hfp-public-auth-form .hfp-button {
  min-block-size: 52px;
  justify-content: space-between;
  margin-block-start: 4px;
}

.hfp-login-card .hfp-public-auth-form .hfp-button svg {
  inline-size: 18px;
  block-size: 18px;
}

.hfp-login-support {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-block-start: 20px;
  color: var(--hfp-text-muted);
  font-size: 0.6875rem;
}

.hfp-login-support svg {
  inline-size: 15px;
  block-size: 15px;
  color: var(--hfp-cyan-400);
}

/* Resumo da jornada */
.hfp-progress-overview {
  display: grid;
  grid-template-columns: minmax(16rem, 0.68fr) minmax(0, 1.32fr);
  gap: 16px;
  margin-block-start: 24px;
}

.hfp-progress-score-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3cqi, 30px);
  border: 1px solid var(--hfp-tier-border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 8%, var(--hfp-tier-glow), transparent 38%),
    rgba(3, 11, 24, 0.54);
}

.hfp-progress-score-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--hfp-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.hfp-progress-score-topline svg {
  inline-size: 19px;
  block-size: 19px;
  color: var(--hfp-tier-accent);
}

.hfp-progress-score-value {
  display: flex;
  align-items: baseline;
  margin-block: 18px 16px;
  color: var(--hfp-text-primary);
}

.hfp-progress-score-value strong {
  font-size: clamp(3.5rem, 2.3rem + 4cqi, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.hfp-progress-score-value span {
  color: var(--hfp-tier-accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.hfp-progress-score-card .hfp-progress-meter {
  block-size: 9px;
}

.hfp-progress-score-card .hfp-progress-summary {
  margin-block-start: 10px;
}

.hfp-partner-progress .hfp-progress-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hfp-partner-progress .hfp-stat-box {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-block-size: 104px;
  padding: 18px;
  text-align: start;
  background: rgba(3, 11, 24, 0.46);
}

.hfp-stat-icon {
  display: grid;
  inline-size: 42px;
  block-size: 42px;
  place-items: center;
  border: 1px solid rgba(47, 140, 255, 0.24);
  border-radius: 12px;
  background: rgba(29, 111, 232, 0.1);
  color: var(--hfp-blue-500);
}

.hfp-stat-icon svg {
  inline-size: 20px;
  block-size: 20px;
}

.hfp-stat-box-submitted .hfp-stat-icon,
.hfp-stat-box-accepted .hfp-stat-icon {
  border-color: rgba(85, 221, 242, 0.28);
  background: rgba(85, 221, 242, 0.08);
  color: var(--hfp-cyan-400);
}

.hfp-stat-box-rejected .hfp-stat-icon {
  border-style: dashed;
}

.hfp-partner-progress .hfp-stat-box > div {
  display: grid;
  gap: 3px;
}

.hfp-partner-progress .hfp-stat-box strong {
  color: var(--hfp-text-primary);
  font-size: 1.65rem;
}

.hfp-partner-progress .hfp-stat-box span:not(.hfp-stat-icon) {
  color: var(--hfp-text-muted);
  font-size: 0.6875rem;
}

.hfp-partner-progress .hfp-progress-next-step {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-block-start: 16px;
  padding: 18px;
  border-color: var(--hfp-tier-border);
  border-radius: 14px;
  background: linear-gradient(100deg, var(--hfp-tier-surface), rgba(3, 11, 24, 0.46));
}

.hfp-partner-progress .hfp-progress-next-step-icon {
  inline-size: 42px;
  block-size: 42px;
  border: 1px solid var(--hfp-tier-border);
  border-radius: 12px;
  color: var(--hfp-tier-accent);
}

.hfp-partner-progress .hfp-progress-next-step-icon svg {
  inline-size: 20px;
  block-size: 20px;
}

.hfp-partner-progress .hfp-progress-next-step > div {
  gap: 2px;
}

.hfp-partner-progress .hfp-progress-next-step .hfp-public-eyebrow {
  margin: 0;
  font-size: 0.625rem;
}

.hfp-partner-progress .hfp-progress-next-step strong {
  font-size: 0.875rem;
}

.hfp-progress-next-action {
  white-space: nowrap;
}

.hfp-progress-next-action svg {
  inline-size: 16px;
  block-size: 16px;
}

/* Lista de missões */
.hfp-missions-heading {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.hfp-missions-heading-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.hfp-missions-heading-meta .hfp-tier-reference,
.hfp-missions-heading-meta .hfp-section-count {
  min-block-size: 30px;
  padding-inline: 10px;
  border: 1px solid var(--hfp-tier-border);
  border-radius: 999px;
  background: var(--hfp-tier-surface);
}

.hfp-missions-heading-meta .hfp-tier-reference {
  color: var(--hfp-tier-accent);
  font-size: 0.6875rem;
}

.hfp-partner-missions .hfp-missions-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 16px;
  margin-block-start: 24px;
}

.hfp-partner-missions .hfp-mission-card {
  position: relative;
  min-block-size: 286px;
  padding: 22px;
  overflow: clip;
  border-color: rgba(91, 157, 230, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 140, 255, 0.09), transparent 46%),
    rgba(3, 11, 24, 0.5);
}

.hfp-partner-missions .hfp-mission-card::before {
  position: absolute;
  inset-block: 20px;
  inset-inline-start: 0;
  inline-size: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--hfp-blue-600);
  content: '';
}

.hfp-partner-missions .hfp-item-status-submitted::before,
.hfp-partner-missions .hfp-item-status-accepted::before {
  background: var(--hfp-cyan-400);
}

.hfp-partner-missions .hfp-item-status-rejected::before {
  background: repeating-linear-gradient(to bottom, var(--hfp-blue-500) 0 5px, transparent 5px 9px);
}

.hfp-mission-card-topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.hfp-mission-sequence {
  color: var(--hfp-text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hfp-progress-status {
  gap: 6px;
}

.hfp-progress-status svg {
  inline-size: 13px;
  block-size: 13px;
}

.hfp-partner-missions .hfp-mission-card-title {
  margin: 26px 0 18px;
  color: var(--hfp-text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
  text-wrap: balance;
}

.hfp-partner-missions .hfp-mission-card-meta {
  display: flex;
  min-block-size: 44px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 10px;
  background: rgba(7, 20, 38, 0.68);
}

.hfp-partner-missions .hfp-mission-card-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hfp-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hfp-partner-missions .hfp-mission-card-meta svg {
  inline-size: 15px;
  block-size: 15px;
}

.hfp-partner-missions .hfp-mission-due {
  margin-inline-start: auto;
  color: var(--hfp-text-secondary);
  text-align: end;
}

.hfp-partner-missions .hfp-mission-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin-block-start: 12px;
  padding: 12px;
  border: 1px dashed rgba(47, 140, 255, 0.34);
  border-radius: 10px;
  background: rgba(29, 111, 232, 0.08);
  color: var(--hfp-text-secondary);
}

.hfp-partner-missions .hfp-mission-note > svg {
  inline-size: 17px;
  block-size: 17px;
  color: var(--hfp-blue-500);
}

.hfp-partner-missions .hfp-mission-note span {
  display: grid;
  gap: 2px;
  line-height: 1.5;
}

.hfp-partner-missions .hfp-mission-note strong {
  color: var(--hfp-blue-500);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hfp-partner-missions .hfp-mission-card-footer {
  justify-content: stretch;
  margin-block-start: 18px;
}

.hfp-partner-missions .hfp-mission-btn {
  inline-size: 100%;
  justify-content: space-between;
}

.hfp-partner-missions .hfp-mission-btn svg {
  inline-size: 16px;
  block-size: 16px;
}

/* ── Gamificação de Missões & Barra Estelar com Estrela na Ponta ── */
.hfp-missions-progress-banner {
  background: radial-gradient(ellipse at 50% 0%, rgba(30, 58, 255, 0.25) 0%, rgba(7, 20, 38, 0.75) 75%);
  border: 1px solid rgba(56, 178, 248, 0.3);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 24px 0 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hfp-missions-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hfp-missions-progress-info strong {
  display: block;
  font-size: 15px;
  color: var(--hfp-text-primary);
  margin-top: 4px;
}

.hfp-missions-stars-summary {
  display: flex;
  align-items: center;
}

.hfp-stars-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  color: #ffd700;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.15);
}

.hfp-stars-counter .hfp-star-icon {
  color: #ffd700;
  fill: #ffd700;
}

/* Badges e Grupos no Card de Missão */
.hfp-mission-badges-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hfp-mission-type-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.hfp-badge-type-direta {
  background: rgba(30, 58, 255, 0.25);
  border: 1px solid rgba(56, 178, 248, 0.4);
  color: #38b2f8;
}

.hfp-badge-type-basica {
  background: rgba(85, 221, 242, 0.12);
  border: 1px solid rgba(85, 221, 242, 0.3);
  color: #a5f3fc;
}

.hfp-badge-type-especial {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.25) 0%, rgba(30, 58, 255, 0.2) 100%);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.hfp-badge-type-bonus {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
}

.hfp-mission-stars-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 999px;
  padding: 3px 9px;
}

.hfp-mission-stars-reward .hfp-star-icon {
  color: #ffd700;
  fill: #ffd700;
}

.hfp-mission-card-subtitle {
  font-family: var(--hfp-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--hfp-cyan-400);
  letter-spacing: 0.02em;
  margin: -10px 0 16px;
  line-height: 1.4;
}

.hfp-mission-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hfp-mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--hfp-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
}

.hfp-tag-collab {
  color: var(--hfp-cyan-400);
  background: rgba(56, 178, 248, 0.1);
  border-color: rgba(56, 178, 248, 0.25);
}

.hfp-mission-directives-box {
  background: rgba(7, 20, 38, 0.75);
  border: 1px solid rgba(56, 178, 248, 0.25);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.hfp-mission-directives-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--hfp-text-primary);
  margin-top: 12px;
}

.hfp-progress-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hfp-progress-stars-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  color: #ffd700;
  font-size: 12.5px;
}

.hfp-progress-stars-badge .hfp-star-icon {
  color: #ffd700;
  fill: #ffd700;
}

/* Detalhe da missão */
.hfp-mission-detail .hfp-mission-detail-card {
  max-width: 1060px;
}

.hfp-detail-back {
  display: inline-flex;
  min-block-size: 40px;
  align-items: center;
  gap: 8px;
  margin-block-end: 20px;
  color: var(--hfp-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.hfp-detail-back:hover {
  color: var(--hfp-cyan-400);
}

.hfp-detail-back:focus-visible {
  outline: 2px solid var(--hfp-border-focus);
  outline-offset: 3px;
}

.hfp-detail-back svg {
  inline-size: 16px;
  block-size: 16px;
}

.hfp-mission-detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-block-end: 26px;
  border-block-end: 1px solid var(--hfp-border-subtle);
}

.hfp-mission-detail-header > div {
  min-width: 0;
}

.hfp-mission-detail-header h2 {
  max-width: 20ch;
  margin: 5px 0 10px;
  font-size: clamp(1.8rem, 1.25rem + 2cqi, 2.8rem);
  line-height: 1.1;
}

.hfp-mission-detail-header p {
  max-width: 62ch;
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.hfp-mission-detail-header > .hfp-progress-status {
  min-block-size: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}

.hfp-mission-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  gap: 18px;
  align-items: start;
  margin-block-start: 22px;
}

.hfp-mission-detail-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.hfp-mission-brief,
.hfp-mission-route,
.hfp-mission-detail .hfp-public-proof-summary,
.hfp-mission-detail .hfp-public-decision-note {
  padding: 22px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 15px;
  background: rgba(3, 11, 24, 0.48);
}

.hfp-mission-section-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hfp-mission-section-title > span {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 11px;
}

.hfp-mission-section-title > span svg {
  inline-size: 19px;
  block-size: 19px;
}

.hfp-mission-section-title h3,
.hfp-mission-route h3 {
  margin: 1px 0 0;
  color: var(--hfp-text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.hfp-mission-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
}

.hfp-mission-facts > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 11px;
  background: rgba(7, 20, 38, 0.7);
}

.hfp-mission-facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--hfp-text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hfp-mission-facts dt svg {
  inline-size: 14px;
  block-size: 14px;
}

.hfp-mission-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--hfp-text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hfp-mission-detail .hfp-public-proof-summary {
  display: block;
  margin: 0;
  border-inline-start: 1px solid var(--hfp-border-subtle);
}

.hfp-mission-detail .hfp-public-proof-text {
  margin-block-start: 18px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(7, 20, 38, 0.68);
  color: var(--hfp-text-secondary);
}

.hfp-proof-file-link {
  min-block-size: 42px;
  margin-block-start: 12px;
  padding-inline: 12px;
  border: 1px solid rgba(85, 221, 242, 0.26);
  border-radius: 9px;
  background: rgba(85, 221, 242, 0.06);
}

.hfp-mission-detail .hfp-public-decision-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  border-inline-start: 3px dashed var(--hfp-blue-500);
}

.hfp-mission-detail .hfp-public-decision-note > span {
  color: var(--hfp-blue-500);
}

.hfp-mission-detail .hfp-public-decision-note > span svg {
  inline-size: 20px;
  block-size: 20px;
}

.hfp-mission-detail .hfp-public-decision-note div {
  display: grid;
  gap: 6px;
}

.hfp-mission-route {
  position: sticky;
  inset-block-start: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 111, 232, 0.14), transparent 44%),
    rgba(3, 11, 24, 0.56);
}

.hfp-mission-route ol {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hfp-mission-route li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  min-block-size: 66px;
  color: var(--hfp-text-muted);
}

.hfp-mission-route li:not(:last-child)::after {
  position: absolute;
  inset-block-start: 28px;
  inset-block-end: 0;
  inset-inline-start: 13px;
  inline-size: 1px;
  background: var(--hfp-border-subtle);
  content: '';
}

.hfp-mission-route li > span {
  z-index: 1;
  display: grid;
  inline-size: 27px;
  block-size: 27px;
  place-items: center;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 50%;
  background: var(--hfp-navy-900);
}

.hfp-mission-route li > span svg {
  inline-size: 13px;
  block-size: 13px;
}

.hfp-mission-route li > div {
  display: grid;
  align-content: start;
  gap: 3px;
  padding-block-start: 3px;
}

.hfp-mission-route li strong {
  color: var(--hfp-text-secondary);
  font-size: 0.75rem;
}

.hfp-mission-route li small {
  font-size: 0.6875rem;
  line-height: 1.4;
}

.hfp-mission-route li.is-done > span {
  border-color: rgba(85, 221, 242, 0.42);
  background: rgba(85, 221, 242, 0.12);
  color: var(--hfp-cyan-400);
}

.hfp-mission-route li.is-done:not(:last-child)::after {
  background: rgba(85, 221, 242, 0.35);
}

.hfp-mission-route li.is-current > span,
.hfp-mission-route li.is-attention > span {
  border-color: var(--hfp-blue-500);
  color: var(--hfp-blue-500);
  box-shadow: 0 0 14px rgba(47, 140, 255, 0.24);
}

.hfp-mission-route li:is(.is-current, .is-attention) strong {
  color: var(--hfp-text-primary);
}

.hfp-mission-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-block-start: 18px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--hfp-border-subtle);
}

.hfp-mission-detail-actions .hfp-button svg,
.hfp-public-readonly-status svg {
  inline-size: 16px;
  block-size: 16px;
}

/* Resultado */
.hfp-dashboard-grid:has(> .hfp-partner-result:not([hidden])) > .hfp-partner-missions {
  display: none;
}

.hfp-partner-result {
  max-width: none;
  text-align: start;
}

.hfp-result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4cqi, 38px);
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(26px, 5cqi, 52px);
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 140, 255, 0.16), transparent 42%),
    rgba(3, 11, 24, 0.54);
}

.hfp-result-card .hfp-result-icon {
  inline-size: 74px;
  block-size: 74px;
  margin: 0;
}

.hfp-result-card .hfp-result-icon svg {
  inline-size: 34px;
  block-size: 34px;
}

.hfp-result-card-pending .hfp-result-icon,
.hfp-result-card-rejected .hfp-result-icon,
.hfp-result-card-error .hfp-result-icon {
  border-color: var(--hfp-blue-500);
  color: var(--hfp-blue-500);
  background: rgba(29, 111, 232, 0.1);
}

.hfp-result-content h2 {
  margin: 4px 0 8px;
  color: var(--hfp-text-primary);
  font-size: clamp(1.8rem, 1.3rem + 2cqi, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hfp-result-content > p {
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 0.9375rem;
}

.hfp-result-content .hfp-result-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  max-width: none;
  margin: 18px 0 0;
  border-inline-start-style: dashed;
}

.hfp-result-content .hfp-result-note svg {
  inline-size: 18px;
  block-size: 18px;
  color: var(--hfp-blue-500);
}

.hfp-result-content .hfp-result-actions {
  justify-content: flex-start;
}

.hfp-result-content .hfp-button svg {
  inline-size: 16px;
  block-size: 16px;
}

@container (max-width: 780px) {
  .hfp-progress-overview,
  .hfp-mission-detail-layout {
    grid-template-columns: 1fr;
  }

  .hfp-mission-route {
    position: static;
  }
}

@media (max-width: 900px) {
  .hfp-login-layout {
    grid-template-columns: 1fr;
  }

  .hfp-login-intro {
    border-inline-end: 0;
    border-block-end: 1px solid var(--hfp-border-subtle);
  }

  .hfp-login-intro h1 {
    max-width: 16ch;
  }

  .hfp-missions-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hfp-missions-heading-meta {
    grid-column: 2;
    justify-items: start;
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 680px) {
  .hfp-dashboard-grid > :is(.hfp-partner-progress, .hfp-partner-missions, .hfp-mission-detail, .hfp-partner-result) {
    padding: 22px 16px;
  }

  .hfp-panel-heading,
  .hfp-missions-heading {
    grid-template-columns: 1fr;
  }

  .hfp-panel-heading-icon {
    inline-size: 42px;
    block-size: 42px;
  }

  .hfp-missions-heading-meta {
    grid-column: 1;
  }

  .hfp-partner-progress .hfp-progress-stats,
  .hfp-mission-facts {
    grid-template-columns: 1fr;
  }

  .hfp-partner-progress .hfp-progress-next-step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hfp-progress-next-action {
    grid-column: 1 / -1;
    inline-size: 100%;
  }

  .hfp-mission-detail-header {
    flex-direction: column;
  }

  .hfp-result-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-header {
    padding: 22px 18px;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-tier-status {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding-inline: 9px;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-tier-status > span {
    display: none;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-member-dashboard-status {
    justify-content: center;
    padding-inline: 8px;
  }

  .hfp-partner-auth[data-hfp-state="authenticated"] .hfp-public-auth-actions {
    grid-column: 1 / -1;
  }

  .hfp-dashboard-nav {
    padding: 5px;
  }

  .hfp-dashboard-nav-link {
    min-block-size: 56px;
    flex-direction: column;
    gap: 4px;
    padding-inline: 4px;
    font-size: 0.6875rem;
  }

  .hfp-dashboard-nav-link > svg {
    inline-size: 17px;
    block-size: 17px;
  }

  .hfp-login-intro,
  .hfp-login-card {
    padding: 30px 22px;
  }

  .hfp-login-layout {
    min-block-size: 0;
  }

  .hfp-login-intro h1 {
    font-size: 2.35rem;
  }

  .hfp-partner-progress .hfp-stat-box {
    min-block-size: 86px;
  }

  .hfp-missions-heading-meta {
    grid-template-columns: 1fr;
  }

  .hfp-partner-missions .hfp-mission-card {
    min-block-size: 0;
    padding: 20px 18px;
  }

  .hfp-partner-missions .hfp-mission-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hfp-partner-missions .hfp-mission-due {
    margin-inline-start: 0;
    text-align: start;
  }

  .hfp-mission-brief,
  .hfp-mission-route,
  .hfp-mission-detail .hfp-public-proof-summary,
  .hfp-mission-detail .hfp-public-decision-note {
    padding: 18px;
  }

  .hfp-mission-detail-actions,
  .hfp-mission-detail-actions .hfp-button,
  .hfp-mission-detail-actions .hfp-public-readonly-status,
  .hfp-result-content .hfp-button {
    inline-size: 100%;
  }

  .hfp-result-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hfp-dashboard-nav-link::after {
    transition: scale 180ms ease;
  }
}

@media (forced-colors: active) {
  .hfp-member-dashboard-header,
  .hfp-dashboard-nav,
  .hfp-login-intro,
  .hfp-progress-score-card,
  .hfp-mission-card,
  .hfp-mission-brief,
  .hfp-mission-route,
  .hfp-result-card {
    border-color: CanvasText;
  }
}

.hfp-tier-reference {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--hfp-cyan-400);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hfp-tier-reference > .hfp-tier-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  line-height: 18px;
}

.hfp-tier-reference > svg.hfp-tier-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hfp-tier-reference > .hfp-tier-icon-rocket {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M14.5 3.5c3.2-.8 5.4-.5 6-.1.4.6.7 2.8-.1 6-1.1 4.2-4.2 7.3-8.4 8.4l-2.2-2.2c1.1-4.2 4.2-7.3 8.4-8.4zM8.1 14.4l-2.8 2.8-1.8-.2.2-1.8 2.8-2.8m3.4 5.1-1.2 3.5 1.5 1.5 2.1-4.4M8.3 10.7 4.7 12 3.2 10.5l4.4-2.1m8.9 1.1a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M14.5 3.5c3.2-.8 5.4-.5 6-.1.4.6.7 2.8-.1 6-1.1 4.2-4.2 7.3-8.4 8.4l-2.2-2.2c1.1-4.2 4.2-7.3 8.4-8.4zM8.1 14.4l-2.8 2.8-1.8-.2.2-1.8 2.8-2.8m3.4 5.1-1.2 3.5 1.5 1.5 2.1-4.4M8.3 10.7 4.7 12 3.2 10.5l4.4-2.1m8.9 1.1a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hfp-tier-reference > .hfp-tier-icon-rocket::before {
  display: none;
}

.hfp-tier-reference-nova_estrela {
  color: var(--hfp-blue-500);
}

.hfp-tier-reference-astro_master {
  color: var(--hfp-cyan-400);
}

.hfp-tier-reference-supremo_celestial {
  color: var(--hfp-blue-600);
}


@media (max-width: 520px) {
  .hfp-tier-reference {
    white-space: normal;
  }
}

/* ========================================================================
   PERFIL PÚBLICO POR NÍVEL & ENVIO DE PROVAS
   ======================================================================== */
.hfp-partner-auth[data-hfp-state="authenticated"] {
  --hfp-tier-accent: var(--hfp-blue-500);
  --hfp-tier-accent-strong: var(--hfp-blue-600);
  --hfp-tier-surface: rgba(29, 111, 232, 0.09);
  --hfp-tier-border: rgba(47, 140, 255, 0.32);
  --hfp-tier-glow: rgba(47, 140, 255, 0.18);
}

.hfp-partner-auth[data-hfp-tier="astro_master"] {
  --hfp-tier-accent: var(--hfp-cyan-400);
  --hfp-tier-accent-strong: var(--hfp-blue-500);
  --hfp-tier-surface: rgba(85, 221, 242, 0.08);
  --hfp-tier-border: rgba(85, 221, 242, 0.4);
  --hfp-tier-glow: rgba(85, 221, 242, 0.2);
}

.hfp-partner-auth[data-hfp-tier="supremo_celestial"] {
  --hfp-tier-accent: var(--hfp-cyan-400);
  --hfp-tier-accent-strong: var(--hfp-text-primary);
  --hfp-tier-surface: rgba(47, 140, 255, 0.14);
  --hfp-tier-border: rgba(85, 221, 242, 0.58);
  --hfp-tier-glow: rgba(85, 221, 242, 0.3);
}

.hfp-member-tier-status {
  display: inline-flex;
  min-block-size: 38px;
  align-items: center;
  gap: 7px;
  padding-inline: 12px;
  border: 1px solid var(--hfp-tier-border);
  border-radius: 10px;
  background: var(--hfp-tier-surface);
  color: var(--hfp-tier-accent);
  box-shadow: 0 8px 22px var(--hfp-tier-glow);
  font-size: 0.6875rem;
  line-height: 1;
  white-space: nowrap;
}

.hfp-member-tier-status > svg {
  inline-size: 17px;
  block-size: 17px;
  stroke-width: 2;
}

.hfp-member-tier-status > span {
  color: var(--hfp-text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hfp-member-tier-status > strong {
  color: var(--hfp-text-primary);
  font-weight: 700;
}

.hfp-partner-auth[data-hfp-tier="supremo_celestial"] .hfp-member-tier-status {
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(85, 221, 242, 0.13), rgba(29, 111, 232, 0.2)),
    var(--hfp-navy-900);
  box-shadow: 0 0 0 1px rgba(85, 221, 242, 0.08), 0 8px 28px var(--hfp-tier-glow);
}

.hfp-dashboard-grid[data-hfp-active-tab="profile"] > .hfp-partner-profile {
  container-type: inline-size;
  display: block;
  padding: 0;
  border-color: var(--hfp-tier-border);
  background: var(--hfp-dashboard-surface);
}

.hfp-partner-profile[data-hfp-tier="supremo_celestial"] {
  box-shadow: 0 0 0 1px rgba(85, 221, 242, 0.08), 0 24px 72px rgba(29, 111, 232, 0.22);
}

.hfp-profile-identity {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.58fr);
  gap: clamp(24px, 4cqi, 52px);
  align-items: center;
  min-block-size: 230px;
  padding: clamp(24px, 4cqi, 48px);
  overflow: hidden;
  border-block-end: 1px solid var(--hfp-tier-border);
  background:
    radial-gradient(circle at 78% 18%, var(--hfp-tier-glow), transparent 36%),
    linear-gradient(135deg, var(--hfp-tier-surface), transparent 55%);
  isolation: isolate;
}

.hfp-profile-identity::before,
.hfp-profile-identity::after {
  position: absolute;
  z-index: -1;
  content: '';
  pointer-events: none;
}

.hfp-profile-identity::before {
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--hfp-tier-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--hfp-tier-border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 25%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, black 100%);
}

.hfp-profile-identity::after {
  inline-size: 180px;
  block-size: 180px;
  inset-block-start: -112px;
  inset-inline-end: -72px;
  border: 1px solid var(--hfp-tier-border);
  border-radius: 50%;
  box-shadow: 0 0 42px var(--hfp-tier-glow);
}

.hfp-partner-profile[data-hfp-tier="astro_master"] .hfp-profile-identity::before {
  opacity: 0.42;
  background-image: repeating-linear-gradient(118deg, transparent 0 34px, var(--hfp-tier-border) 35px, transparent 36px 68px);
  background-size: auto;
}

.hfp-partner-profile[data-hfp-tier="supremo_celestial"] .hfp-profile-identity::before {
  opacity: 0.72;
  background-image:
    radial-gradient(circle, var(--hfp-tier-accent) 0 1px, transparent 2px),
    linear-gradient(125deg, transparent 42%, var(--hfp-tier-border) 42.5%, transparent 43%);
  background-position: 0 0, 20px 8px;
  background-size: 52px 52px, 104px 104px;
}

.hfp-profile-person {
  display: flex;
  min-width: 0;
  gap: clamp(18px, 3cqi, 28px);
  align-items: center;
}

.hfp-dashboard-grid .hfp-profile-person .hfp-profile-avatar-wrap {
  --hfp-avatar-ring-size: 3px;
  inline-size: clamp(92px, 13cqi, 124px);
  block-size: clamp(92px, 13cqi, 124px);
  flex-basis: clamp(92px, 13cqi, 124px);
}

.hfp-dashboard-grid .hfp-profile-avatar-empty > svg {
  inline-size: 42%;
  block-size: 42%;
  color: var(--hfp-text-secondary);
}

.hfp-profile-level-emblem {
  position: absolute;
  z-index: 2;
  inset-inline-end: -3px;
  inset-block-end: 1px;
  display: grid;
  inline-size: 34px;
  block-size: 34px;
  place-items: center;
  border: 3px solid var(--hfp-navy-900);
  border-radius: 50%;
  background: var(--hfp-tier-accent-strong);
  color: var(--hfp-text-primary);
  box-shadow: 0 5px 16px var(--hfp-tier-glow);
}

.hfp-profile-level-emblem > svg {
  inline-size: 16px;
  block-size: 16px;
  stroke-width: 2.3;
}

.hfp-partner-profile[data-hfp-tier="supremo_celestial"] .hfp-profile-level-emblem {
  background: var(--hfp-cyan-400);
  color: var(--hfp-navy-950);
}

.hfp-profile-info {
  min-width: 0;
  text-align: start;
}

.hfp-dashboard-grid .hfp-profile-info h2 {
  margin: 5px 0 10px;
  font-size: clamp(1.75rem, 1.2rem + 2cqi, 2.75rem);
  overflow-wrap: anywhere;
}

.hfp-profile-info > p {
  max-width: 42ch;
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hfp-profile-tier-panel {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--hfp-tier-border);
  border-radius: 16px;
  background: rgba(3, 11, 24, 0.64);
  box-shadow: inset 0 1px 0 rgba(244, 248, 255, 0.04), 0 14px 34px rgba(3, 11, 24, 0.28);
}

.hfp-profile-tier-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--hfp-tier-accent);
}

.hfp-profile-tier-panel-heading span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hfp-profile-tier-panel-heading svg {
  inline-size: 22px;
  block-size: 22px;
}

.hfp-profile-tier-panel > strong {
  margin-block-start: 8px;
  color: var(--hfp-text-primary);
  font-size: clamp(1.35rem, 1.1rem + 1cqi, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.hfp-profile-tier-title {
  color: var(--hfp-tier-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hfp-profile-tier-panel > p {
  margin: 7px 0 0;
  color: var(--hfp-text-secondary);
  font-size: 0.75rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hfp-partner-profile[data-hfp-tier="supremo_celestial"] .hfp-profile-tier-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 221, 242, 0.17), transparent 44%),
    rgba(3, 11, 24, 0.78);
  box-shadow: inset 0 1px 0 rgba(244, 248, 255, 0.08), 0 0 30px var(--hfp-tier-glow);
}

.hfp-profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr);
  gap: 16px;
  padding: clamp(20px, 3cqi, 32px) clamp(24px, 4cqi, 48px) clamp(24px, 4cqi, 40px);
}

.hfp-profile-public-data,
.hfp-profile-visibility-note {
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 14px;
  background: rgba(3, 11, 24, 0.42);
}

.hfp-profile-public-data {
  padding: 20px;
}

.hfp-profile-section-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.hfp-profile-section-heading h3 {
  margin: 2px 0 0;
  color: var(--hfp-text-primary);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.hfp-profile-sync-status {
  display: inline-flex;
  min-block-size: 30px;
  align-items: center;
  gap: 6px;
  padding-inline: 9px;
  border: 1px solid rgba(85, 221, 242, 0.28);
  border-radius: 999px;
  color: var(--hfp-cyan-400);
  font-size: 0.6875rem;
  font-weight: 700;
}

.hfp-profile-sync-status svg,
.hfp-profile-detail-item dt svg,
.hfp-profile-link svg {
  inline-size: 15px;
  block-size: 15px;
  flex: 0 0 15px;
}

.hfp-dashboard-grid .hfp-profile-public-data .hfp-profile-details {
  margin-block-start: 16px;
}

.hfp-profile-public-data .hfp-profile-detail-item {
  min-block-size: 58px;
  padding: 12px 14px;
}

.hfp-profile-public-data .hfp-profile-detail-item dt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hfp-profile-visibility-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  padding: 20px;
}

.hfp-profile-visibility-note > svg {
  inline-size: 22px;
  block-size: 22px;
  color: var(--hfp-tier-accent);
}

.hfp-profile-visibility-note div {
  display: grid;
  gap: 5px;
}

.hfp-profile-visibility-note strong {
  color: var(--hfp-text-primary);
  font-size: 0.8125rem;
}

.hfp-profile-visibility-note p {
  margin: 0;
  color: var(--hfp-text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hfp-dashboard-grid > .hfp-proof-form {
  padding: clamp(22px, 4cqi, 42px);
}

.hfp-dashboard-grid:has(> :is(.hfp-proof-form, .hfp-mission-detail):not([hidden])) > .hfp-partner-missions {
  display: none;
}

.hfp-proof-form .hfp-proof-card {
  max-width: 980px;
}

.hfp-proof-header {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  padding-block-end: 22px;
  border-block-end: 1px solid var(--hfp-border-subtle);
}

.hfp-proof-header > div {
  min-width: 0;
}

.hfp-proof-header h2 {
  margin-block: 5px 8px;
}

.hfp-proof-header p {
  max-width: 58ch;
  margin: 0;
  color: var(--hfp-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hfp-proof-state {
  display: inline-flex;
  min-block-size: 36px;
  align-items: center;
  gap: 7px;
  padding-inline: 11px;
  border: 1px solid rgba(85, 221, 242, 0.34);
  border-radius: 999px;
  background: rgba(85, 221, 242, 0.08);
  color: var(--hfp-cyan-400);
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.hfp-proof-state-correction {
  border-style: dashed;
  border-color: rgba(47, 140, 255, 0.52);
  background: rgba(29, 111, 232, 0.12);
  color: var(--hfp-blue-500);
}

.hfp-proof-state svg {
  inline-size: 16px;
  block-size: 16px;
}

.hfp-proof-mission-context {
  display: grid;
  gap: 7px;
  margin-block: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(47, 140, 255, 0.28);
  border-inline-start: 3px solid var(--hfp-blue-500);
  border-radius: 4px 12px 12px 4px;
  background: rgba(29, 111, 232, 0.08);
}

.hfp-proof-mission-context span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hfp-blue-500);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hfp-proof-mission-context span svg {
  inline-size: 15px;
  block-size: 15px;
}

.hfp-proof-mission-context strong {
  color: var(--hfp-text-primary);
  font-size: 1rem;
  line-height: 1.45;
  text-wrap: balance;
}

.hfp-proof-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.42fr);
  gap: 20px;
  align-items: start;
  margin-block-start: 22px;
}

.hfp-proof-submit-form {
  max-width: none;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--hfp-border-subtle);
  border-radius: 14px;
  background: rgba(3, 11, 24, 0.45);
}

.hfp-proof-submit-form fieldset {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 48px 0 0;
  border: 0;
}

.hfp-proof-submit-form legend {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  padding: 0;
  color: var(--hfp-text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.hfp-proof-fieldset-help {
  margin: 0 0 18px;
  color: var(--hfp-text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.hfp-proof-submit-form .hfp-form-group + .hfp-form-group {
  margin-block-start: 18px;
}

.hfp-proof-submit-form .hfp-form-group {
  gap: 8px;
}

.hfp-proof-submit-form .hfp-form-group label {
  color: var(--hfp-text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hfp-proof-submit-form .hfp-form-group label span {
  margin-inline-start: 5px;
  color: var(--hfp-text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
}

.hfp-proof-submit-form .hfp-form-group small {
  color: var(--hfp-text-muted);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.hfp-proof-submit-form input,
.hfp-proof-submit-form textarea {
  min-block-size: 48px;
  font-size: 1rem;
}

.hfp-proof-submit-form textarea {
  min-block-size: 142px;
  field-sizing: content;
}

.hfp-proof-submit-form .hfp-result-actions {
  margin-block-start: 2px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--hfp-border-subtle);
}

.hfp-proof-submit-form .hfp-button svg {
  inline-size: 16px;
  block-size: 16px;
}

.hfp-proof-checklist {
  padding: 22px;
  border: 1px solid rgba(47, 140, 255, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 140, 255, 0.15), transparent 40%),
    rgba(11, 31, 58, 0.62);
}

.hfp-proof-checklist-icon {
  display: grid;
  inline-size: 38px;
  block-size: 38px;
  place-items: center;
  margin-block-end: 14px;
  border: 1px solid rgba(85, 221, 242, 0.3);
  border-radius: 10px;
  background: rgba(85, 221, 242, 0.08);
  color: var(--hfp-cyan-400);
}

.hfp-proof-checklist-icon svg {
  inline-size: 20px;
  block-size: 20px;
}

.hfp-proof-checklist h3 {
  margin: 0;
  color: var(--hfp-text-primary);
  font-size: 0.9375rem;
}

.hfp-proof-checklist ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hfp-proof-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  color: var(--hfp-text-secondary);
  font-size: 0.75rem;
  line-height: 1.55;
}

.hfp-proof-checklist li svg {
  inline-size: 15px;
  block-size: 15px;
  margin-block-start: 2px;
  color: var(--hfp-cyan-400);
  stroke-width: 2.5;
}

@container (max-width: 760px) {
  .hfp-profile-identity,
  .hfp-profile-content-grid {
    grid-template-columns: 1fr;
  }

  .hfp-profile-tier-panel {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .hfp-proof-workspace {
    grid-template-columns: 1fr;
  }

  .hfp-proof-checklist {
    order: -1;
  }
}

@media (max-width: 620px) {
  .hfp-profile-identity,
  .hfp-profile-content-grid {
    padding: 22px 18px;
  }

  .hfp-profile-person {
    align-items: flex-start;
    flex-direction: column;
  }

  .hfp-profile-info {
    text-align: start;
  }

  .hfp-profile-section-heading,
  .hfp-proof-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hfp-profile-sync-status,
  .hfp-proof-state {
    align-self: flex-start;
  }

  .hfp-profile-public-data .hfp-profile-detail-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .hfp-profile-public-data .hfp-profile-detail-item dd,
  .hfp-profile-link {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .hfp-proof-submit-form,
  .hfp-proof-checklist {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .hfp-member-tier-status {
    width: 100%;
    justify-content: center;
  }
}

@media (forced-colors: active) {
  .hfp-member-tier-status,
  .hfp-profile-tier-panel,
  .hfp-profile-public-data,
  .hfp-profile-visibility-note,
  .hfp-proof-submit-form,
  .hfp-proof-checklist {
    border-color: CanvasText;
  }
}
