/*
 * css/fixeo-hero-flagship-v1.css
 * FIXEO Hero Flagship V1
 *
 * Namespace: fxhf-* only
 *
 * State 1 — NEED
 * Visual system prepared, takeover still disabled.
 */

:root {
  --fxhf-bg: #070816;
  --fxhf-surface: rgba(255, 255, 255, 0.045);
  --fxhf-surface-strong: rgba(255, 255, 255, 0.065);

  --fxhf-text: rgba(255, 255, 255, 0.96);
  --fxhf-muted: rgba(255, 255, 255, 0.58);
  --fxhf-soft: rgba(255, 255, 255, 0.36);

  --fxhf-border: rgba(255, 255, 255, 0.09);
  --fxhf-border-strong: rgba(111, 220, 255, 0.22);

  --fxhf-cyan: #6fdcff;
  --fxhf-indigo: #4864ff;
  --fxhf-pink: #e1306c;
  --fxhf-green: #20c997;

  --fxhf-radius-lg: 22px;
  --fxhf-radius-md: 16px;
  --fxhf-radius-sm: 12px;
}

/* ══════════════════════════════════════════════════════════════
   PASSIVE SAFETY GATE

   IMPORTANT:
   The Flagship remains invisible until we deliberately activate
   visual takeover in a later checkpoint.
══════════════════════════════════════════════════════════════ */

.fxhf-root {
  display: block;
}


/* ══════════════════════════════════════════════════════════════
   ROOT + STATE
══════════════════════════════════════════════════════════════ */

.fxhf-root[data-fxhf-state="need"] {
  width: 100%;
}

.fxhf-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.fxhf-shell--need {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  padding: clamp(42px, 6vw, 84px) 24px clamp(52px, 7vw, 96px);
}


/* ══════════════════════════════════════════════════════════════
   LEFT — CLIENT INTERACTION
══════════════════════════════════════════════════════════════ */

.fxhf-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fxhf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 16px;

  color: rgba(111, 220, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fxhf-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;

  background: var(--fxhf-cyan);
  box-shadow: 0 0 12px rgba(111, 220, 255, 0.55);
}

.fxhf-title {
  margin: 0;

  color: var(--fxhf-text);
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.fxhf-subtitle {
  max-width: 620px;

  margin: 20px 0 28px;

  color: var(--fxhf-muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
  font-weight: 400;
}


/* ══════════════════════════════════════════════════════════════
   NEED FIELD
══════════════════════════════════════════════════════════════ */

.fxhf-need-field {
  width: 100%;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.032)
    );

  border: 1px solid var(--fxhf-border);
  border-radius: var(--fxhf-radius-lg);

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  overflow: hidden;

  transition:
    border-color 0.20s ease,
    box-shadow 0.20s ease,
    transform 0.20s ease;
}

.fxhf-need-field:focus-within {
  border-color: rgba(111, 220, 255, 0.32);

  box-shadow:
    0 0 0 4px rgba(111, 220, 255, 0.055),
    0 24px 70px rgba(0, 0, 0, 0.22),
    0 0 46px rgba(72, 100, 255, 0.07);
}

.fxhf-need-input {
  display: block;
  width: 100%;
  min-height: 132px;

  box-sizing: border-box;

  padding: 22px 22px 12px;

  resize: vertical;

  border: 0;
  outline: 0;
  background: transparent;

  color: var(--fxhf-text);
  caret-color: var(--fxhf-cyan);

  font: inherit;
  font-size: 1rem;
  line-height: 1.58;
}

.fxhf-need-input::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

.fxhf-field-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  padding: 12px 14px 14px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.fxhf-example {
  min-width: 0;

  color: var(--fxhf-soft);
  font-size: 0.75rem;
  line-height: 1.4;
}

.fxhf-mic {
  flex-shrink: 0;

  min-height: 42px;
  padding: 9px 13px;

  border: 1px solid rgba(111, 220, 255, 0.14);
  border-radius: 999px;

  background: rgba(111, 220, 255, 0.055);

  color: rgba(215, 246, 255, 0.90);

  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.fxhf-mic:hover {
  background: rgba(111, 220, 255, 0.095);
  border-color: rgba(111, 220, 255, 0.25);
}

.fxhf-mic:active {
  transform: scale(0.98);
}


/* ══════════════════════════════════════════════════════════════
   LOCATION
══════════════════════════════════════════════════════════════ */

.fxhf-location {
  margin-top: 14px;

  min-height: 44px;
  padding: 10px 14px;

  border: 1px solid var(--fxhf-border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.035);

  color: rgba(255, 255, 255, 0.76);

  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.fxhf-location:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}


/* ══════════════════════════════════════════════════════════════
   MAIN CTA
══════════════════════════════════════════════════════════════ */

.fxhf-submit {
  width: 100%;
  min-height: 56px;

  margin-top: 20px;
  padding: 15px 22px;

  border: 0;
  border-radius: 15px;

  background:
    linear-gradient(
      110deg,
      #f05a2a 0%,
      #e1306c 48%,
      #8a3ffc 100%
    );

  color: #fff;

  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;

  cursor: pointer;

  box-shadow:
    0 14px 34px rgba(225, 48, 108, 0.24),
    0 4px 14px rgba(0, 0, 0, 0.20);

  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.fxhf-submit:hover {
  filter: brightness(1.055);

  box-shadow:
    0 18px 42px rgba(225, 48, 108, 0.30),
    0 5px 16px rgba(0, 0, 0, 0.20);
}

.fxhf-submit:active {
  transform: translateY(1px) scale(0.995);
}


/* ══════════════════════════════════════════════════════════════
   TRUST + SECONDARY PATH
══════════════════════════════════════════════════════════════ */

.fxhf-trust {
  width: 100%;

  margin: 12px 0 0;

  color: rgba(255, 255, 255, 0.38);

  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
}

.fxhf-directory-link {
  align-self: center;

  margin-top: 22px;
  padding: 7px 4px;

  border: 0;
  background: transparent;

  color: rgba(255, 255, 255, 0.42);

  font: inherit;
  font-size: 0.78rem;
  line-height: 1.4;

  cursor: pointer;

  transition: color 0.15s ease;
}

.fxhf-directory-link:hover {
  color: rgba(255, 255, 255, 0.72);
}


/* ══════════════════════════════════════════════════════════════
   RIGHT — RAFI VISUAL
══════════════════════════════════════════════════════════════ */

.fxhf-visual {
  min-height: 440px;

  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  isolation: isolate;
}

.fxhf-visual::before {
  content: '';

  position: absolute;
  inset: 12% 5%;

  z-index: -2;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(72, 100, 255, 0.12) 0%,
      rgba(65, 92, 210, 0.055) 38%,
      transparent 70%
    );

  filter: blur(28px);
}

.fxhf-rafi-sphere {
  position: relative;

  width: clamp(250px, 29vw, 360px);
  aspect-ratio: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   RAFI — FIXEO SIGNATURE LIGHT
   Pure luminous breathing
   ============================================================ */

.fxhf-rafi-halo {
  position: absolute;
  inset: -18%;

  border-radius: 50%;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(185, 245, 255, 0.34) 0%,
      rgba(111, 220, 255, 0.28) 16%,
      rgba(72, 130, 255, 0.20) 34%,
      rgba(88, 82, 255, 0.12) 50%,
      rgba(180, 72, 220, 0.055) 64%,
      transparent 78%
    );

  filter: blur(14px);

  transform-origin: center center;
  will-change: transform, opacity;

  animation:
    fxhf-rafi-breathe
    4.2s
    cubic-bezier(0.45, 0, 0.55, 1)
    infinite;
}

.fxhf-rafi-core {
  position: relative;

  width: 58%;
  aspect-ratio: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 36% 30%,
      rgba(141, 226, 255, 0.18),
      rgba(72, 100, 255, 0.075) 40%,
      rgba(10, 14, 45, 0.86) 72%
    );

  border: 1px solid rgba(111, 220, 255, 0.19);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 12px rgba(72, 100, 255, 0.025),
    0 20px 60px rgba(72, 100, 255, 0.14);

  animation:
    fxhf-rafi-float 8.5s ease-in-out infinite;
}

.fxhf-rafi-core::before {
  content: '';

  position: absolute;
  inset: -20%;

  border-radius: 50%;

  border: 1px solid rgba(111, 220, 255, 0.065);

  box-shadow:
    0 0 42px rgba(111, 220, 255, 0.045);

  pointer-events: none;
}

.fxhf-rafi-core::after {
  content: '';

  position: absolute;
  inset: -42%;

  border-radius: 50%;

  border: 1px solid rgba(72, 100, 255, 0.035);

  pointer-events: none;
}

.fxhf-rafi-image {
  display: block;

  width: 82%;
  height: 82%;

  object-fit: contain;

  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 14px rgba(111, 220, 255, 0.08));

  user-select: none;
}

.fxhf-visual-label {
  margin-top: 20px;

  color: rgba(111, 220, 255, 0.68);

  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.20em;
}


/* ══════════════════════════════════════════════════════════════
   RAFI MOTION
══════════════════════════════════════════════════════════════ */
@keyframes fxhf-rafi-breathe {

  0%,
  100% {
    transform: scale(0.90);
    opacity: 0.64;
  }

  42% {
    transform: scale(1.16);
    opacity: 0.96;
  }

  58% {
    transform: scale(1.12);
    opacity: 0.90;
  }
}


@keyframes fxhf-rafi-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .fxhf-shell--need {
    grid-template-columns: 1fr;
    gap: 32px;

    padding:
      clamp(34px, 6vw, 56px)
      20px
      clamp(46px, 7vw, 68px);
  }

  .fxhf-content {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .fxhf-visual {
    order: -1;

    min-height: 230px;
  }

  .fxhf-rafi-sphere {
    width: min(235px, 58vw);
  }

  .fxhf-title,
  .fxhf-subtitle,
  .fxhf-eyebrow {
    text-align: center;
  }

  .fxhf-content {
    align-items: center;
  }

  .fxhf-title {
    width: 100%;
  }

  .fxhf-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .fxhf-need-field,
  .fxhf-submit {
    width: 100%;
  }
}

.fxhf-shell--need {
  gap: 4px;
  padding: 0 12px 10px;
}

  .fxhf-visual {
    min-height: 190px;
  }

  .fxhf-rafi-sphere {
    width: min(190px, 52vw);
  }

  .fxhf-visual-label {
    margin-top: 8px;
    font-size: 0.62rem;
  }

  .fxhf-eyebrow {
    margin-bottom: 12px;
    font-size: 0.65rem;
  }

  .fxhf-title {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .fxhf-subtitle {
    margin-top: 14px;
    margin-bottom: 22px;

    max-width: 360px;

    font-size: 0.93rem;
    line-height: 1.55;
  }

  .fxhf-need-input {
    min-height: 118px;

    padding:
      18px
      16px
      10px;

    font-size: 0.95rem;
  }

  .fxhf-field-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;

    padding:
      10px
      12px
      12px
      16px;
  }

  .fxhf-mic {
    width: 100%;
    justify-content: center;
  }

  .fxhf-example {
    font-size: 0.69rem;
  }

  .fxhf-location {
    align-self: flex-start;
  }

  .fxhf-submit {
    min-height: 54px;
    margin-top: 16px;
  }

  .fxhf-directory-link {
    max-width: 310px;
    text-align: center;
  }
}


/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .fxhf-rafi-halo,
  .fxhf-rafi-core {
    animation: none;
  }

  .fxhf-submit,
  .fxhf-mic,
  .fxhf-location,
  .fxhf-directory-link,
  .fxhf-need-field {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   STATE 3 — DISPATCHING
══════════════════════════════════════════════════════════════ */

.fxhf-shell--dispatching {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1180px, 100%);
  gap: 18px;
  padding: clamp(28px, 4vw, 48px) 24px clamp(44px, 6vw, 72px);
}

.fxhf-dispatch-progress {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.92;
}

.fxhf-dispatch-count {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 800;
}

.fxhf-dispatch-candidates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-width: 440px;
}

.fxhf-dispatch-candidate {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.fxhf-dispatch-candidate-photo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.fxhf-dispatch-candidate-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fxhf-dispatch-candidate-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.fxhf-dispatch-candidate-status {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.68;
}

.fxhf-dispatch-continuation {
  margin-top: 16px;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.72;
}

.fxhf-visual--dispatching {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fxhf-rafi-sphere--dispatching {
  transform: scale(1.02);
}

@media (max-width: 820px) {
  .fxhf-shell--dispatching {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 18px 48px;
  }

  .fxhf-dispatch-candidates {
    max-width: none;
  }

  .fxhf-visual--dispatching {
    min-height: 220px;
  }
}

/* ══════════════════════════════════════════════════════════════
   STATE 2 — RAFI ANALYSIS
══════════════════════════════════════════════════════════════ */

.fxhf-root[data-fxhf-state="analysis"] {
  width: 100%;
}

.fxhf-shell--analysis {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;

  width: min(1180px, 100%);
  min-height: 620px;

  gap: clamp(48px, 7vw, 96px);

  padding:
    clamp(56px, 7vw, 92px)
    24px
    clamp(64px, 8vw, 104px);
}

/* subtle RAFI intelligence atmosphere */
.fxhf-shell--analysis::before {
  content: '';

  position: absolute;
  inset: 8% 34% 10% 42%;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 58% 45%,
      rgba(111, 220, 255, 0.075),
      rgba(72, 100, 255, 0.035) 42%,
      transparent 72%
    );

  filter: blur(36px);
}

/* ── Request understood card ─────────────────────────────── */

.fxhf-analysis-summary {
  position: relative;

  width: min(100%, 580px);

  margin-top: 4px;
  padding: 20px 22px;

  border: 1px solid rgba(111, 220, 255, 0.13);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.024)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 24px 70px rgba(0, 0, 0, 0.16);

  overflow: hidden;
}

.fxhf-analysis-summary::before {
  content: '';

  position: absolute;
  top: 0;
  left: -45%;

  width: 36%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(111, 220, 255, 0.88),
      transparent
    );

  box-shadow:
    0 0 16px rgba(111, 220, 255, 0.45);

  animation: fxhf-analysis-scan 3.4s ease-in-out infinite;
}

.fxhf-analysis-quote {
  margin: 0;

  color: rgba(255, 255, 255, 0.88);

  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  font-weight: 600;
}

.fxhf-analysis-facts {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;

  margin-top: 17px;
}

.fxhf-analysis-fact {
  display: inline-flex;
  align-items: center;

  min-height: 34px;

  padding: 7px 11px;

  border: 1px solid rgba(111, 220, 255, 0.12);
  border-radius: 999px;

  background: rgba(111, 220, 255, 0.045);

  color: rgba(218, 248, 255, 0.83);

  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 700;
}

/* ── Real analysis progression ───────────────────────────── */

.fxhf-analysis-status {
  position: relative;

  display: flex;
  align-items: center;

  gap: 12px;

  margin-top: 22px;

  color: rgba(255, 255, 255, 0.66);

  font-size: 0.82rem;
  font-weight: 700;
}

.fxhf-analysis-status::before {
  content: '';

  width: 9px;
  height: 9px;

  flex: 0 0 9px;

  border-radius: 50%;

  background: var(--fxhf-cyan);

  box-shadow:
    0 0 0 5px rgba(111, 220, 255, 0.055),
    0 0 18px rgba(111, 220, 255, 0.55);

  animation: fxhf-analysis-dot 1.7s ease-in-out infinite;
}

.fxhf-analysis-status::after {
  content: '';

  position: absolute;

  left: 4px;
  top: 22px;

  width: 1px;
  height: 48px;

  background:
    linear-gradient(
      180deg,
      rgba(111, 220, 255, 0.34),
      transparent
    );
}

/* ── RAFI active analysis visual ─────────────────────────── */

.fxhf-visual--analysis {
  position: relative;

  min-height: 500px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.fxhf-visual--analysis::before,
.fxhf-visual--analysis::after {
  content: '';

  position: absolute;

  left: 50%;
  top: 50%;

  border-radius: 50%;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

.fxhf-visual--analysis::before {
  width: min(420px, 88%);
  aspect-ratio: 1;

  border: 1px solid rgba(111, 220, 255, 0.075);

  box-shadow:
    0 0 60px rgba(72, 100, 255, 0.08);

  animation: fxhf-analysis-orbit 7s linear infinite;
}

.fxhf-visual--analysis::after {
  width: min(330px, 70%);
  aspect-ratio: 1;

  border: 1px dashed rgba(111, 220, 255, 0.07);

  animation: fxhf-analysis-orbit-reverse 11s linear infinite;
}

.fxhf-rafi-sphere--analysis {
  width: clamp(290px, 32vw, 390px);

  filter:
    drop-shadow(0 0 36px rgba(111, 220, 255, 0.10));
}

.fxhf-rafi-sphere--analysis .fxhf-rafi-halo {
  opacity: 1;

  background:
    radial-gradient(
      circle,
      rgba(111, 220, 255, 0.24) 0%,
      rgba(72, 100, 255, 0.14) 34%,
      rgba(72, 100, 255, 0.045) 56%,
      transparent 73%
    );

  animation:
    fxhf-analysis-breathe 2.6s ease-in-out infinite;
}

.fxhf-rafi-sphere--analysis .fxhf-rafi-core {
  border-color: rgba(111, 220, 255, 0.30);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 12px rgba(72, 100, 255, 0.028),
    0 0 54px rgba(111, 220, 255, 0.12),
    0 24px 70px rgba(72, 100, 255, 0.17);
}

/* ── State 2 motion ──────────────────────────────────────── */

@keyframes fxhf-analysis-scan {
  0% {
    left: -45%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  78% {
    opacity: 1;
  }

  100% {
    left: 110%;
    opacity: 0;
  }
}

@keyframes fxhf-analysis-dot {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.58;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes fxhf-analysis-breathe {
  0%,
  100% {
    transform: scale(0.985);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.055);
    opacity: 1;
  }
}

@keyframes fxhf-analysis-orbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes fxhf-analysis-orbit-reverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* ── State 2 responsive ──────────────────────────────────── */

@media (max-width: 960px) {
  .fxhf-shell--analysis {
    grid-template-columns: 1fr;

    min-height: auto;

    gap: 18px;

    padding:
      32px
      18px
      52px;
  }

  .fxhf-shell--analysis .fxhf-content {
    order: 2;

    width: 100%;
    max-width: 680px;

    margin: 0 auto;
  }

  .fxhf-visual--analysis {
    order: 1;

    min-height: 245px;
  }

  .fxhf-rafi-sphere--analysis {
    width: min(230px, 58vw);
  }

  .fxhf-analysis-summary {
    width: 100%;
  }

  .fxhf-analysis-status {
    align-self: center;
  }

  .fxhf-analysis-status::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .fxhf-shell--analysis {
    padding:
      22px
      14px
      44px;
  }

  .fxhf-visual--analysis {
    min-height: 205px;
  }

  .fxhf-rafi-sphere--analysis {
    width: min(190px, 54vw);
  }

  .fxhf-analysis-summary {
    padding: 16px;

    border-radius: 17px;
  }

  .fxhf-analysis-facts {
    flex-direction: column;
    align-items: stretch;
  }

  .fxhf-analysis-fact {
    justify-content: center;
  }

  .fxhf-analysis-status {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fxhf-analysis-summary::before,
  .fxhf-analysis-status::before,
  .fxhf-visual--analysis::before,
  .fxhf-visual--analysis::after,
  .fxhf-rafi-sphere--analysis .fxhf-rafi-halo {
    animation: none;
  }
}
/* Hide legacy RAFI hero whenever Flagship is present */
.fxhf-root ~ .rfos-stage-wrap,
.fxhf-root ~ #hero-quick-search,
.fxhf-root ~ .rfos-fallback-band {
  display: none !important;
}
/* ══════════════════════════════════════════════════════════════
   STATE 3 — DISPATCHING / REAL RAFI NETWORK
══════════════════════════════════════════════════════════════ */

.fxhf-root[data-fxhf-state="dispatching"] {
  width: 100%;
}

.fxhf-shell--dispatching {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;

  width: min(1180px, 100%);
  min-height: 650px;

  gap: clamp(36px, 5vw, 72px);

  padding:
    clamp(52px, 7vw, 86px)
    24px
    clamp(64px, 8vw, 104px);
}

.fxhf-shell--dispatching::before {
  content: '';

  position: absolute;
  inset: 10% 28% 8% 38%;

  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(111, 220, 255, 0.07) 0%,
      rgba(72, 100, 255, 0.035) 40%,
      transparent 72%
    );

  filter: blur(42px);
}


/* ── LEFT / NARRATIVE ────────────────────────────────────── */

.fxhf-content--dispatching {
  position: relative;
  z-index: 2;
}

.fxhf-shell--dispatching .fxhf-title {
  max-width: 590px;

  font-size: clamp(2.75rem, 5.2vw, 5rem);
  line-height: 0.96;
}

.fxhf-shell--dispatching .fxhf-subtitle {
  max-width: 500px;

  margin-top: 18px;
  margin-bottom: 22px;
}

.fxhf-dispatch-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 4px;

  font-size: 0.76rem;
  font-weight: 800;
}

.fxhf-dispatch-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 32px;

  padding: 6px 10px;

  border-radius: 999px;
}

.fxhf-dispatch-step--done {
  color: rgba(255, 255, 255, 0.58);

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.055);
}

.fxhf-dispatch-step--active {
  color: rgba(215, 247, 255, 0.96);

  background:
    linear-gradient(
      135deg,
      rgba(111, 220, 255, 0.10),
      rgba(72, 100, 255, 0.07)
    );

  border: 1px solid rgba(111, 220, 255, 0.18);

  box-shadow:
    0 0 18px rgba(111, 220, 255, 0.055);
}

.fxhf-dispatch-arrow {
  color: rgba(255, 255, 255, 0.22);
}

.fxhf-dispatch-live-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--fxhf-cyan);

  box-shadow:
    0 0 0 4px rgba(111, 220, 255, 0.06),
    0 0 14px rgba(111, 220, 255, 0.55);

  animation: fxhf-dispatch-live 1.7s ease-in-out infinite;
}

.fxhf-dispatch-count {
  display: flex;
  align-items: baseline;

  gap: 8px;

  margin-top: 22px;
}

.fxhf-dispatch-count-number {
  color: #fff;

  font-size: 1.7rem;
  line-height: 1;
  font-weight: 850;
}

.fxhf-dispatch-count-label {
  color: rgba(255, 255, 255, 0.62);

  font-size: 0.86rem;
  font-weight: 700;
}

.fxhf-dispatch-continuation {
  max-width: 510px;

  margin-top: 16px;

  color: rgba(255, 255, 255, 0.42);

  font-size: 0.78rem;
  line-height: 1.55;
}


/* ── RIGHT / RAFI NETWORK ────────────────────────────────── */

.fxhf-visual--dispatching {
  position: relative;

  min-height: 540px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.fxhf-dispatch-network {
  position: relative;

  width: min(560px, 100%);
  aspect-ratio: 1.12 / 1;

  margin: 0 auto;
}

.fxhf-dispatch-network::before {
  content: '';

  position: absolute;
  left: 50%;
  top: 50%;

  width: 74%;
  aspect-ratio: 1;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  border: 1px solid rgba(111, 220, 255, 0.045);

  box-shadow:
    0 0 70px rgba(72, 100, 255, 0.05);

  pointer-events: none;
}


/* ── RAFI CENTER ─────────────────────────────────────────── */

.fxhf-dispatch-network .fxhf-rafi-sphere {
  position: absolute;

  left: 50%;
  top: 50%;

  width: clamp(220px, 24vw, 300px);

  transform: translate(-50%, -50%);

  z-index: 4;
}

.fxhf-rafi-sphere--dispatching .fxhf-rafi-halo {
  background:
    radial-gradient(
      circle,
      rgba(111, 220, 255, 0.22) 0%,
      rgba(72, 100, 255, 0.13) 35%,
      rgba(72, 100, 255, 0.035) 58%,
      transparent 74%
    );

  filter: blur(12px);

  animation:
    fxhf-dispatch-rafi-breathe 3.4s ease-in-out infinite;
}

.fxhf-rafi-sphere--dispatching .fxhf-rafi-core {
  border-color: rgba(111, 220, 255, 0.28);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 10px rgba(72, 100, 255, 0.025),
    0 0 52px rgba(111, 220, 255, 0.11),
    0 22px 65px rgba(72, 100, 255, 0.15);
}


/* ── REAL CANDIDATE NODES ────────────────────────────────── */

.fxhf-dispatch-node {
  position: absolute;

  z-index: 6;

  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 150px;
  max-width: 190px;

  padding: 9px 11px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.070),
      rgba(255, 255, 255, 0.035)
    );

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  backdrop-filter: blur(12px);

  transform: translateZ(0);
}

.fxhf-dispatch-node--1 {
  left: 2%;
  top: 15%;
}

.fxhf-dispatch-node--2 {
  right: 1%;
  top: 18%;
}

.fxhf-dispatch-node--3 {
  left: 50%;
  bottom: 2%;

  transform: translateX(-50%);
}

.fxhf-dispatch-node-avatar {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 50%;

  border: 1px solid rgba(111, 220, 255, 0.18);

  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(111, 220, 255, 0.13),
      rgba(72, 100, 255, 0.08)
    );

  box-shadow:
    0 0 18px rgba(111, 220, 255, 0.055);
}

.fxhf-dispatch-node-photo {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.fxhf-dispatch-node-fallback {
  color: rgba(225, 249, 255, 0.88);

  font-size: 0.92rem;
  font-weight: 850;
}

.fxhf-dispatch-node-identity {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.fxhf-dispatch-node-name {
  overflow: hidden;

  color: rgba(255, 255, 255, 0.91);

  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.fxhf-dispatch-node-status {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  margin-top: 4px;

  color: rgba(255, 255, 255, 0.46);

  font-size: 0.65rem;
  font-weight: 700;
}

.fxhf-dispatch-node-status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: rgba(111, 220, 255, 0.78);

  box-shadow:
    0 0 9px rgba(111, 220, 255, 0.38);

  animation:
    fxhf-dispatch-waiting 2.2s ease-in-out infinite;
}


/* ── CONNECTIONS ─────────────────────────────────────────── */

.fxhf-dispatch-connection {
  position: absolute;

  z-index: 2;

  height: 1px;

  overflow: visible;

  transform-origin: 0 50%;

  background:
    linear-gradient(
      90deg,
      rgba(111, 220, 255, 0.03),
      rgba(111, 220, 255, 0.42),
      rgba(111, 220, 255, 0.10)
    );

  box-shadow:
    0 0 8px rgba(111, 220, 255, 0.11);

  opacity: 0.74;

  pointer-events: none;
}

.fxhf-dispatch-connection--1 {
  left: 30%;
  top: 45%;

  width: 27%;

  transform: rotate(-147deg);
}

.fxhf-dispatch-connection--2 {
  left: 70%;
  top: 45%;

  width: 27%;

  transform: rotate(-33deg);
}

.fxhf-dispatch-connection--3 {
  left: 50%;
  top: 66%;

  width: 25%;

  transform: rotate(90deg);
}

.fxhf-dispatch-connection-flow {
  position: absolute;

  left: 0;
  top: 50%;

  width: 20px;
  height: 2px;

  transform: translateY(-50%);

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(202, 246, 255, 0.92),
      transparent
    );

  box-shadow:
    0 0 10px rgba(111, 220, 255, 0.45);

  animation:
    fxhf-dispatch-flow 2.1s ease-in-out infinite;
}

.fxhf-dispatch-connection--2 .fxhf-dispatch-connection-flow {
  animation-delay: 0.35s;
}

.fxhf-dispatch-connection--3 .fxhf-dispatch-connection-flow {
  animation-delay: 0.7s;
}


/* ── NETWORK LABEL ───────────────────────────────────────── */

.fxhf-dispatch-network-label {
  position: absolute;

  left: 50%;
  bottom: -26px;

  transform: translateX(-50%);

  color: rgba(111, 220, 255, 0.46);

  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.20em;

  white-space: nowrap;
}


/* ── MOTION ──────────────────────────────────────────────── */

@keyframes fxhf-dispatch-live {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.48;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes fxhf-dispatch-waiting {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes fxhf-dispatch-flow {
  0% {
    left: 0;
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  82% {
    opacity: 0.9;
  }

  100% {
    left: calc(100% - 20px);
    opacity: 0;
  }
}

@keyframes fxhf-dispatch-rafi-breathe {
  0%,
  100% {
    transform: scale(0.985);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.045);
    opacity: 1;
  }
}


/* ── TABLET ──────────────────────────────────────────────── */

@media (max-width: 960px) {
  .fxhf-shell--dispatching {
    grid-template-columns: 1fr;

    min-height: auto;

    gap: 24px;

    padding:
      34px
      18px
      58px;
  }

  .fxhf-content--dispatching {
    width: 100%;
    max-width: 680px;

    margin: 0 auto;

    align-items: center;

    text-align: center;
  }

  .fxhf-shell--dispatching .fxhf-title,
  .fxhf-shell--dispatching .fxhf-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .fxhf-dispatch-progress {
    justify-content: center;
  }

  .fxhf-dispatch-count {
    justify-content: center;
  }

  .fxhf-dispatch-continuation {
    text-align: center;
  }

  .fxhf-visual--dispatching {
    min-height: 440px;
  }

  .fxhf-dispatch-network {
    width: min(520px, 94vw);
  }
}


/* ── MOBILE ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  .fxhf-shell--dispatching {
    gap: 12px;

    padding:
      24px
      14px
      54px;
  }

  .fxhf-shell--dispatching .fxhf-title {
    max-width: 360px;

    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  .fxhf-shell--dispatching .fxhf-subtitle {
    margin-top: 14px;
    margin-bottom: 16px;

    font-size: 0.9rem;
    line-height: 1.5;
  }

  .fxhf-dispatch-progress {
    gap: 5px;

    font-size: 0.68rem;
  }

  .fxhf-dispatch-step {
    min-height: 29px;

    padding: 5px 8px;
  }

  .fxhf-dispatch-count {
    margin-top: 16px;
  }

  .fxhf-dispatch-count-number {
    font-size: 1.45rem;
  }

  .fxhf-dispatch-count-label {
    font-size: 0.78rem;
  }

  .fxhf-dispatch-continuation {
    max-width: 340px;

    margin-top: 11px;

    font-size: 0.72rem;
  }

  .fxhf-visual--dispatching {
    min-height: 400px;
  }

  .fxhf-dispatch-network {
    width: min(390px, 96vw);

    aspect-ratio: 1 / 1.08;
  }

  .fxhf-dispatch-network .fxhf-rafi-sphere {
    width: min(180px, 48vw);
  }

  .fxhf-dispatch-node {
    min-width: 122px;
    max-width: 145px;

    gap: 7px;

    padding: 7px 8px;

    border-radius: 13px;
  }

  .fxhf-dispatch-node-avatar {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }

  .fxhf-dispatch-node-name {
    font-size: 0.68rem;
  }

  .fxhf-dispatch-node-status {
    font-size: 0.60rem;
  }

  .fxhf-dispatch-node--1 {
    left: 0;
    top: 11%;
  }

  .fxhf-dispatch-node--2 {
    right: 0;
    top: 13%;
  }

  .fxhf-dispatch-node--3 {
    bottom: 1%;
  }

  .fxhf-dispatch-connection--1 {
    left: 31%;
    top: 43%;

    width: 24%;

    transform: rotate(-147deg);
  }

  .fxhf-dispatch-connection--2 {
    left: 69%;
    top: 43%;

    width: 24%;

    transform: rotate(-33deg);
  }

  .fxhf-dispatch-connection--3 {
    left: 50%;
    top: 64%;

    width: 23%;

    transform: rotate(90deg);
  }

  .fxhf-dispatch-network-label {
    bottom: -18px;

    font-size: 0.56rem;
  }
}


/* ── REDUCED MOTION ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .fxhf-dispatch-live-dot,
  .fxhf-dispatch-node-status-dot,
  .fxhf-dispatch-connection-flow,
  .fxhf-rafi-sphere--dispatching .fxhf-rafi-halo {
    animation: none;
  }
}

@media (min-width: 1024px) {
  .fxhf-root[data-fxhf-state="dispatching"] {
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-shell--dispatching {
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-content--dispatching {
    align-items: center;
    gap: 32px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-network {
    transform: scale(0.92);
    transform-origin: center center;
    margin-top: -18px;
    margin-bottom: -18px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-progress {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-count {
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-network-label {
    margin-top: 6px;
  }
}

/* ══════════════════════════════════════════════════════════════
   RAFI — AMBIENT MESSAGE TRANSITION
══════════════════════════════════════════════════════════════ */

.fxhf-rafi-message {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.fxhf-rafi-message.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

@media (prefers-reduced-motion: reduce) {
  .fxhf-rafi-message {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   FLAGSHIP — COMPACT DESKTOP / LOW HEIGHT VIEWPORT
   Keeps NEED, ANALYSIS and DISPATCHING visible on laptop screens
══════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) and (max-height: 850px) {

  /* ── STATE 1 / NEED ───────────────────────────────────── */

  .fxhf-shell--need {
  gap: 32px;
  padding: 4px 24px 16px;
  transform: translateY(-10px);
}

  .fxhf-root[data-fxhf-state="need"] {
  margin-top: -12px;
}
  
  .fxhf-shell--need .fxhf-eyebrow {
    margin-bottom: 10px;
  }

  .fxhf-shell--need .fxhf-title {
    font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  }

  .fxhf-shell--need .fxhf-subtitle {
    margin-top: 10px;
    margin-bottom: 14px;
    line-height: 1.45;
  }

  .fxhf-shell--need .fxhf-need-input {
    min-height: 96px;
    padding-top: 16px;
  }

  .fxhf-shell--need .fxhf-location {
    margin-top: 10px;
  }

  .fxhf-shell--need .fxhf-submit {
    min-height: 48px;
    margin-top: 12px;
    padding: 12px 18px;
  }

  .fxhf-shell--need .fxhf-trust {
    margin-top: 8px;
  }

  .fxhf-shell--need .fxhf-directory-link {
  display: none;
}

  .fxhf-shell--need .fxhf-visual {
    min-height: 320px;
  }

  .fxhf-shell--need .fxhf-rafi-sphere {
    width: clamp(220px, 24vw, 300px);
  }

  .fxhf-shell--need .fxhf-visual-label {
    margin-top: 10px;
  }


  /* ── STATE 2 / ANALYSIS ───────────────────────────────── */

  .fxhf-shell--analysis {
    min-height: auto;
    gap: 32px;
    padding: 18px 24px 24px;
  }

  .fxhf-shell--analysis .fxhf-title {
    font-size: clamp(2.35rem, 4.3vw, 4.35rem);
  }

  .fxhf-shell--analysis .fxhf-subtitle {
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .fxhf-analysis-summary {
    padding: 15px 18px;
  }

  .fxhf-analysis-facts {
    margin-top: 12px;
  }

  .fxhf-analysis-status {
    margin-top: 14px;
  }

  .fxhf-visual--analysis {
    min-height: 330px;
  }

  .fxhf-rafi-sphere--analysis {
    width: clamp(230px, 25vw, 310px);
  }


  /* ── STATE 3 / DISPATCHING ────────────────────────────── */

  .fxhf-root[data-fxhf-state="dispatching"] {
    padding-top: 0;
    padding-bottom: 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-shell--dispatching {
    min-height: auto;
    gap: 28px;
    padding: 12px 24px 18px;
  }

  .fxhf-shell--dispatching .fxhf-title {
    font-size: clamp(2.4rem, 4.5vw, 4.35rem);
  }

  .fxhf-shell--dispatching .fxhf-subtitle {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-progress {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-count {
    margin-top: 8px;
    margin-bottom: 4px;
  }

  .fxhf-dispatch-continuation {
    margin-top: 8px;
  }

  .fxhf-visual--dispatching {
    min-height: 360px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-network {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  transform: none;
  margin: 0;
  gap: 18px;
}
  
.fxhf-location-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.fxhf-location-row .fxhf-location {
  width: auto;
  flex: 0 1 auto;
}

.fxhf-location-detected-badge {
  display: inline-flex;
  align-items: center;

  min-height: 28px;
  padding: 5px 9px;

  border: 1px solid rgba(111, 220, 255, 0.16);
  border-radius: 999px;

  background: rgba(111, 220, 255, 0.055);

  color: rgba(200, 245, 255, 0.82);

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;

  white-space: nowrap;
}

.fxhf-location-detected-badge[hidden] 
  {
  display: none;
}
}
/* 
  ══════════════════════════════════════════════════════════════
   FLAGSHIP — NEED / COMPACT MOBILE FIRST SCREEN
   Goal: keep the useful State 1 flow visible without scrolling
══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"] {
    margin-top: 0;
  }

.fxhf-shell--need {
  gap: 4px;
  padding: 0 12px 10px;
}

.fxhf-shell--need .fxhf-visual {
  min-height: 64px;
  margin-top: -56px;
  margin-bottom: -24px;
}

.fxhf-shell--need .fxhf-rafi-sphere {
  width: min(96px, 26vw);
}
  
.fxhf-shell--need .fxhf-rafi-image {
  width: 118%;
  height: 118%;
  transform: scale(1.08);
}
.fxhf-shell--need .fxhf-visual-label {
  margin-top: 0;
  font-size: 0.56rem;
}

.fxhf-shell--need .fxhf-rafi-message {
  margin: 2px 0 0;
  min-height: 16px;
  font-size: 0.74rem;
  line-height: 1.2;
  text-align: center;

}

  .fxhf-shell--need .fxhf-eyebrow {
    margin-bottom: 7px;
  }

  .fxhf-shell--need .fxhf-title {
    font-size: clamp(2rem, 9.5vw, 2.7rem);
    line-height: 0.96;
  }

  .fxhf-shell--need .fxhf-subtitle {
    margin-top: 9px;
    margin-bottom: 12px;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .fxhf-shell--need .fxhf-need-input {
  height: 88px !important;
  min-height: 88px !important;
  padding: 6px 14px 3px;
}

 .fxhf-shell--need .fxhf-field-footer {
  gap: 6px;
  padding: 5px 10px 6px 14px;
}
  
/* RAFI live understanding — compact feedback inside need field */
.fxhf-shell--need .fxhf-rafi-understanding {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 2px 14px 0;
  font-size: 0.68rem;
  line-height: 1.2;
}

.fxhf-shell--need .fxhf-rafi-understanding[hidden] {
  display: none;
}

.fxhf-shell--need .fxhf-rafi-understanding-status {
  flex-shrink: 0;
  color: #8fe3a0;
  font-weight: 700;
}

.fxhf-shell--need .fxhf-rafi-understanding-trade {
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}
  
.fxhf-shell--need .fxhf-mic {
  min-height: 38px;
  padding: 7px 12px;
}

  .fxhf-shell--need .fxhf-location-row {
    margin-top: 2px;
    gap: 8px;
  }

  .fxhf-shell--need .fxhf-location {
    min-height: 42px;
    margin-top: 0;
    padding: 8px 12px;
  }

  .fxhf-shell--need .fxhf-location-detected-badge {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  .fxhf-shell--need .fxhf-submit {
    min-height: 48px;
    margin-top: 10px;
    padding: 12px 16px;
  }

  .fxhf-shell--need .fxhf-trust {
    margin-top: 7px;
    font-size: 0.68rem;
  }

  .fxhf-shell--need .fxhf-directory-link {
    display: none;
  }
}
  .fxhf-dispatch-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.fxhf-dispatch-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 640px) {
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card {
    width: 100%;
  }
}

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"] {
  min-height: 0;
  height: auto;
  display: block;
}

.fxhf-root[data-fxhf-state="need"] .fxhf-shell--need {
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 12px 10px;
}

.fxhf-root[data-fxhf-state="need"] .fxhf-visual {
  height: auto !important;
  min-height: 64px !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  margin-top: -56px !important;
  margin-bottom: -10px !important;
}

.fxhf-root[data-fxhf-state="need"] .fxhf-rafi-sphere {
  width: min(96px, 26vw);
}

  .fxhf-root[data-fxhf-state="need"] .fxhf-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-location-row {
    margin-top: 0;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-subtitle {
    margin-top: 4px;
    margin-bottom: 6px;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-submit {
    margin-top: 6px;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-trust {
    margin-top: 4px;
    margin-bottom: 0;
  }
}
/* =========================================================
   FLAGSHIP — ANALYSIS / COMPACT MOBILE FIRST SCREEN
   Goal: keep the complete State 2 flow inside the viewport
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="analysis"] .fxhf-shell--analysis {
    min-height: calc(100svh - var(--navbar-h, 70px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px 12px;
  }
.fxhf-root[data-fxhf-state="analysis"] .fxhf-visual {
  min-height: 150px;
  margin-bottom: -12px;
}
}
/* =========================================================
   FLAGSHIP — DISPATCH / COMPACT MOBILE CANDIDATE CARDS
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 10px;
    padding: 10px 12px;
    width: 100%;
    min-height: 0;
    text-align: left;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-avatar {
    width: 58px;
    height: 58px;
    align-self: center;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-photo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-fallback {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 640px) {

  .fxhf-dispatch-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 12px;
    row-gap: 5px;
    align-items: center;
    padding: 12px 14px;
    min-height: 0;
  }

  .fxhf-dispatch-card-avatar {
    grid-column: 1;
    grid-row: 1 / span 5;
    align-self: start;
    width: 52px;
    height: 52px;
  }

  .fxhf-dispatch-card-name,
  .fxhf-dispatch-card-meta,
  .fxhf-dispatch-card-services,
  .fxhf-dispatch-card-price,
  .fxhf-dispatch-card-status {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
  }

  .fxhf-dispatch-card-name {
    font-size: .9rem;
    line-height: 1.2;
  }

  .fxhf-dispatch-card-meta {
    font-size: .75rem;
    line-height: 1.25;
  }

  .fxhf-dispatch-card-services {
    font-size: .72rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .fxhf-dispatch-card-price {
    font-size: .76rem;
    line-height: 1.25;
  }

  .fxhf-dispatch-card-status {
    font-size: .72rem;
    line-height: 1.2;
  }
}

@media (max-width: 640px) {

  .fxhf-dispatch-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .fxhf-dispatch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    min-height: 0;
    padding: 10px 5px;
    text-align: center;
  }

  .fxhf-dispatch-card-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    margin: 0 auto 2px;
  }

  .fxhf-dispatch-card-name,
  .fxhf-dispatch-card-meta,
  .fxhf-dispatch-card-price,
  .fxhf-dispatch-card-status {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .fxhf-dispatch-card-name {
  font-size: 0.68rem;
  line-height: 1.15;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fxhf-dispatch-card-meta {
  font-size: 0.56rem;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fxhf-dispatch-card-status {
  font-size: 0.58rem;
  line-height: 1.15;
  white-space: nowrap;
}

  .fxhf-dispatch-card-services,
  .fxhf-dispatch-card-price {
    display: none;
  }

  .fxhf-dispatch-card-status {
    font-size: .6rem;
    line-height: 1.15;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 9px 4px;
    text-align: center;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0 auto 3px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-photo,
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-fallback {
    width: 44px;
    height: 44px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-name,
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-meta,
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-status {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   FLAGSHIP — STATE 3 / COMPLETE MOBILE HERO
   Goal: keep the complete dispatch experience in viewport
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"] {
    min-height: calc(100svh - var(--navbar-h, 70px));
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-shell--dispatching {
    min-height: calc(100svh - var(--navbar-h, 70px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 10px 10px;
  }

  /* RAFI compact at top */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-visual--dispatching {
    min-height: 108px;
    height: 108px;
    margin: 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-network {
    gap: 0;
    margin: 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching {
    width: 92px;
    height: 92px;
  }

  /* Narrative */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-content--dispatching {
    gap: 6px;
    width: 100%;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-eyebrow {
    margin: 0;
    font-size: 0.62rem;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-title {
    margin: 0;
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 0.96;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-subtitle {
    margin: 2px 0 6px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  /* Candidate rail */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-cards {
    margin-top: 4px;
    gap: 6px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card {
    padding: 7px 3px;
  }

  /* Dispatch progress */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-progress {
    margin: 2px 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-count {
    margin: 3px 0 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-continuation {
    margin: 2px auto 0;
    max-width: 330px;
    font-size: 0.66rem;
    line-height: 1.3;
  }
}
/* =========================================================
   FLAGSHIP — STATE 3 / FINAL MOBILE BALANCE
   Goal: stronger RAFI presence + premium compact dispatch
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"] {
    min-height: calc(100svh - var(--navbar-h, 70px));
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-shell--dispatching {
    min-height: calc(100svh - var(--navbar-h, 70px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    padding: 6px 10px 10px;
  }

  /* RAFI */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-visual--dispatching {
    min-height: 132px;
    height: 132px;
    margin: 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-network {
    gap: 0;
    margin: 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching {
    width: 118px;
    height: 118px;
  }

  /* Narrative */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-content--dispatching {
    width: 100%;
    gap: 6px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-eyebrow {
    margin: 0;
    font-size: 0.64rem;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-title {
    margin: 0;
    font-size: clamp(2.05rem, 8.8vw, 2.5rem);
    line-height: 0.98;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-subtitle {
    margin: 2px 0 7px;
    font-size: 0.76rem;
    line-height: 1.28;
  }

  /* Candidate cards */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px;
    width: 100%;
    margin-top: 5px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    min-height: 132px;
    padding: 9px 4px;
    border-radius: 15px;
    text-align: center;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin: 0 auto 4px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-photo,
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-fallback {
    width: 48px;
    height: 48px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-name {
    width: 100%;
    min-height: 2.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.15;
    text-align: center;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-meta {
    width: 100%;
    margin: 0;
    font-size: 0.57rem;
    line-height: 1.18;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-services,
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-price {
    display: none;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-card-status {
    width: 100%;
    margin: 0;
    font-size: 0.59rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  /* Dispatch status */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-progress {
    margin: 4px 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-count {
    margin: 4px 0 0;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-count-number {
    font-size: 1.4rem;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-count-label {
    font-size: 0.76rem;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-dispatch-continuation {
    margin: 4px auto 0;
    max-width: 330px;
    font-size: 0.68rem;
    line-height: 1.32;
  }
}
@media (max-width: 640px) {

  /* =========================================================
     STATE 3 — RAFI SOLUTION MODE
     Bigger sphere + stronger internal RAFI + success halo
     ========================================================= */

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-visual--dispatching {
    min-height: 158px;
    height: 158px;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching {
    width: 142px;
    height: 142px;
    position: relative;
    filter:
      drop-shadow(0 0 18px rgba(108, 92, 255, 0.40))
      drop-shadow(0 0 34px rgba(49, 214, 255, 0.22));
  }

  /* RAFI itself becomes more visible inside the sphere */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching .fxhf-rafi-image {
    width: 132%;
    height: 132%;
    transform: scale(1.12);
  }

  /* Main halo — solution found */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching .fxhf-rafi-halo {
    opacity: 1;
    transform: scale(1.14);
    background:
      radial-gradient(
        circle,
        rgba(72, 255, 214, 0.28) 0%,
        rgba(87, 188, 255, 0.20) 34%,
        rgba(121, 92, 255, 0.16) 56%,
        rgba(121, 92, 255, 0) 76%
      );
    box-shadow:
      0 0 22px rgba(72, 255, 214, 0.55),
      0 0 42px rgba(87, 188, 255, 0.38),
      0 0 70px rgba(121, 92, 255, 0.24);
    animation: fxhf-rafi-solution-pulse 2.4s ease-in-out infinite;
  }

  /* Extra luminous ring */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching::before {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1px solid rgba(88, 255, 218, 0.55);
    box-shadow:
      0 0 16px rgba(88, 255, 218, 0.38),
      inset 0 0 14px rgba(88, 255, 218, 0.14);
    pointer-events: none;
    animation: fxhf-rafi-solution-ring 2.4s ease-in-out infinite;
  }

  /* Outer atmospheric glow */
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching::after {
    content: "";
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    background:
      radial-gradient(
        circle,
        rgba(70, 255, 215, 0.15) 0%,
        rgba(62, 190, 255, 0.10) 42%,
        rgba(98, 76, 255, 0.06) 58%,
        transparent 74%
      );
    filter: blur(7px);
    pointer-events: none;
    animation: fxhf-rafi-solution-breathe 3s ease-in-out infinite;
  }
}

@keyframes fxhf-rafi-solution-pulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1.08);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes fxhf-rafi-solution-ring {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes fxhf-rafi-solution-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}
@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching {
    width: 142px;
    height: 142px;
    aspect-ratio: 1 / 1;
    flex: 0 0 142px;
    border-radius: 50%;
  }

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching::before,
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching::after,
  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-rafi-sphere--dispatching .fxhf-rafi-halo {
    border-radius: 50%;
  }
}
/* =========================================================
   STATE 3 — RAFI CORE FINAL GEOMETRY
   Perfect circular core + stronger RAFI presence
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-rafi-sphere--dispatching
  .fxhf-rafi-core {
    width: 64%;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50% !important;
  }

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-rafi-sphere--dispatching
  .fxhf-rafi-core
  .fxhf-rafi-image {
    width: 175%;
    height: 175%;
    max-width: none;
    max-height: none;

    object-fit: contain;
    transform: scale(1.32);
    transform-origin: center center;
  }
}

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"] .fxhf-title {
    font-size: clamp(1.75rem, 7.3vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.035em;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-rafi-sphere--dispatching
  .fxhf-rafi-core
  .fxhf-rafi-image {
    width: 145%;
    height: 145%;
    transform: scale(1.12);
  }
}
/* =========================================================
   STATE 3 — RAFI CORE TRUE CIRCLE
   Explicit dimensions for Safari
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-rafi-sphere--dispatching
  .fxhf-rafi-core {
    width: 64% !important;
    height: 64% !important;

    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;

    border-radius: 50% !important;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-rafi-sphere--dispatching
  .fxhf-rafi-core
  .fxhf-rafi-image {
    width: 145%;
    height: 145%;
    max-width: none;
    max-height: none;

    object-fit: contain;
    transform: scale(1.12);
    transform-origin: center center;
  }
}

/* =========================================================
   STATE 3 — RAFI HALO TIGHTENING
   Bring solution halo closer to RAFI sphere
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-rafi-sphere--dispatching
  .fxhf-rafi-halo {
    inset: 9% !important;
    transform: scale(1.04);

    background:
      radial-gradient(
        circle at 50% 50%,
        rgba(72, 255, 214, 0.30) 0%,
        rgba(87, 188, 255, 0.22) 34%,
        rgba(121, 92, 255, 0.14) 55%,
        rgba(121, 92, 255, 0) 72%
      );

    box-shadow:
      0 0 18px rgba(72, 255, 214, 0.50),
      0 0 34px rgba(87, 188, 255, 0.30),
      0 0 52px rgba(121, 92, 255, 0.18);
  }
}
/* =========================================================
   STATE 1 — RAFI HALO ENHANCEMENT
   Stronger presence without touching geometry
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere
  .fxhf-rafi-halo {
    inset: 5%;

    background:
      radial-gradient(
        circle at 50% 50%,
        rgba(111, 220, 255, 0.24) 0%,
        rgba(87, 188, 255, 0.18) 32%,
        rgba(104, 88, 255, 0.12) 54%,
        rgba(104, 88, 255, 0) 72%
      );

    filter: blur(10px);

    box-shadow:
      0 0 16px rgba(111, 220, 255, 0.34),
      0 0 30px rgba(87, 188, 255, 0.22),
      0 0 46px rgba(104, 88, 255, 0.14);
  }

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere {
    filter:
      drop-shadow(0 0 12px rgba(111, 220, 255, 0.22))
      drop-shadow(0 0 24px rgba(87, 188, 255, 0.12));
  }
}

/* =========================================================
   STATE 1 — RAFI DYNAMIC HALO
   Animated idle / ready energy
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere
  .fxhf-rafi-halo {
    animation:
      fxhf-state1-halo-pulse 2.8s ease-in-out infinite;
    transform-origin: center center;
  }

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;

    background:
      radial-gradient(
        circle,
        rgba(111, 220, 255, 0.12) 0%,
        rgba(87, 188, 255, 0.08) 42%,
        rgba(104, 88, 255, 0.04) 60%,
        transparent 74%
      );

    filter: blur(6px);
    pointer-events: none;

    animation:
      fxhf-state1-atmosphere 3.4s ease-in-out infinite;
  }
}

@keyframes fxhf-state1-halo-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1.00);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes fxhf-state1-atmosphere {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}
/* =========================================================
   STATE 1 — RAFI CHARACTER SCALE
   Bigger RAFI inside the existing sphere
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere
  .fxhf-rafi-core
  .fxhf-rafi-image {
    width: 150%;
    height: 150%;
    max-width: none;
    max-height: none;

    object-fit: contain;
    transform: scale(1.18);
    transform-origin: center center;
  }
}

/* =========================================================
   STATE 1 — RAFI SPHERE TRUE CIRCLE
   Lock mobile geometry without touching halo animation
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere {
    width: 118px;
    height: 118px;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 118px !important;
    border-radius: 50% !important;
  }

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere::before,

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere::after,

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere
  .fxhf-rafi-halo {
    border-radius: 50% !important;
  }
}

/* =========================================================
   STATE 1 — RAFI CORE TRUE CIRCLE
   Explicit dimensions for Safari mobile
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere
  .fxhf-rafi-core {
    width: 64% !important;
    height: 64% !important;

    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;

    border-radius: 50% !important;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fxhf-root[data-fxhf-state="need"]
  .fxhf-rafi-sphere
  .fxhf-rafi-core
  .fxhf-rafi-image {
    width: 150%;
    height: 150%;
    max-width: none;
    max-height: none;

    object-fit: contain;
    transform: scale(1.18);
    transform-origin: center center;
  }
}
/* =========================================================
   STATE 3 — ARTISAN CARDS / ACTIVE DISPATCH
   Trade avatar + waiting pulse
   ========================================================= */

@media (max-width: 640px) {

  /* Trade avatar when no artisan photo exists */
  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-dispatch-card-trade-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    font-size: 1.25rem;
    line-height: 1;

    background:
      radial-gradient(
        circle at 35% 30%,
        rgba(111, 220, 255, 0.24),
        rgba(72, 100, 255, 0.14) 55%,
        rgba(25, 32, 72, 0.38) 100%
      );

    border: 1px solid rgba(123, 202, 255, 0.34);

    box-shadow:
      inset 0 0 14px rgba(111, 220, 255, 0.10),
      0 0 14px rgba(87, 188, 255, 0.12);
  }

  /* Active waiting state */
  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-dispatch-card-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: auto;
    min-height: 18px;
    padding: 2px 7px;

    border-radius: 999px;

    color: rgba(210, 239, 255, 0.96);
    background: rgba(61, 159, 255, 0.08);
    border: 1px solid rgba(91, 196, 255, 0.16);

    animation:
      fxhf-dispatch-waiting-text 1.8s ease-in-out infinite;
  }

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-dispatch-card-status::before {
    content: "";

    width: 5px;
    height: 5px;
    flex: 0 0 5px;

    border-radius: 50%;

    background: #66e7ff;

    box-shadow:
      0 0 6px rgba(102, 231, 255, 0.85),
      0 0 11px rgba(102, 231, 255, 0.42);

    animation:
      fxhf-dispatch-waiting-dot 1.15s ease-in-out infinite;
  }
}

@keyframes fxhf-dispatch-waiting-dot {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.72);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes fxhf-dispatch-waiting-text {

  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .fxhf-dispatch-card-status,
  .fxhf-dispatch-card-status::before {
    animation: none !important;
  }
}

/* =========================================================
   STATE 1 — PREMIUM PHONE FIELD
   Compact, mobile-first, CTA-safe
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"] .fxhf-phone-wrap {
    width: 100%;
    margin: 6px 0 2px;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-phone-label {
    display: block;
    margin: 0 0 5px 2px;

    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;

    color: rgba(226, 238, 255, 0.88);
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-phone {
    width: 100%;
    min-height: 42px;
    padding: 9px 13px;

    border-radius: 13px;
    border: 1px solid rgba(125, 184, 255, 0.26);

    background:
      linear-gradient(
        135deg,
        rgba(37, 45, 86, 0.72),
        rgba(52, 60, 112, 0.56)
      );

    color: #ffffff;

    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;

    outline: none;

    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.02),
      0 0 14px rgba(73, 155, 255, 0.08);

    transition:
      border-color 160ms ease,
      box-shadow 160ms ease,
      background 160ms ease;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-phone::placeholder {
    color: rgba(218, 229, 255, 0.52);
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-phone:focus {
    border-color: rgba(102, 211, 255, 0.58);

    background:
      linear-gradient(
        135deg,
        rgba(40, 50, 95, 0.88),
        rgba(59, 67, 127, 0.70)
      );

    box-shadow:
      0 0 0 2px rgba(91, 195, 255, 0.08),
      0 0 18px rgba(91, 195, 255, 0.14);
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-phone-hint {
    display: block;
    margin: 4px 0 0 2px;

    font-size: 0.58rem;
    line-height: 1.2;

    color: rgba(189, 204, 228, 0.62);
  }

  /* Preserve CTA visibility */
  .fxhf-root[data-fxhf-state="need"] .fxhf-submit {
    margin-top: 8px;
  }
}
/* =========================================================
   STATE 1 — PREMIUM RAFI MICRO BUTTON
   Soft halo + subtle active presence
   ========================================================= */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"] .fxhf-mic {
    position: relative;

    border-color: rgba(111, 220, 255, 0.34);

    background:
      linear-gradient(
        135deg,
        rgba(43, 55, 104, 0.86),
        rgba(52, 67, 128, 0.72)
      );

    box-shadow:
      inset 0 0 12px rgba(111, 220, 255, 0.07),
      0 0 10px rgba(87, 188, 255, 0.10),
      0 0 20px rgba(87, 188, 255, 0.08);

    transition:
      border-color 160ms ease,
      box-shadow 160ms ease,
      transform 160ms ease;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-mic::after {
    content: "";
    position: absolute;
    inset: -3px;

    border-radius: inherit;
    pointer-events: none;

    box-shadow:
      0 0 10px rgba(111, 220, 255, 0.16),
      0 0 18px rgba(87, 188, 255, 0.10);

    opacity: 0.75;

    animation:
      fxhf-mic-soft-glow 2.8s ease-in-out infinite;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-mic:active {
    transform: scale(0.985);

    border-color: rgba(111, 220, 255, 0.58);

    box-shadow:
      inset 0 0 14px rgba(111, 220, 255, 0.12),
      0 0 14px rgba(87, 188, 255, 0.18),
      0 0 24px rgba(87, 188, 255, 0.12);
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-mic:disabled::after {
    animation: none;
    opacity: 0;
  }
}

@keyframes fxhf-mic-soft-glow {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.95;
  }
}

/* RAFI Voice Bar — premium split controls */
.fxhf-voice-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.fxhf-voice-bar .fxhf-mic {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding-left: 18px;
  padding-right: 18px;
}

.fxhf-voice-bar .fxhf-speech-lang {
  position: static;
  flex: 0 0 72px;

  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: auto;
  margin: 0;
  padding: 0 20px 0 12px;

  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;

  background: rgba(8, 18, 40, 0.58);
  color: #fff;

  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
}
}
/* ── FIXEO coordination — request reference ─────────────── */

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-coordination-reference {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  width: fit-content;
  max-width: 100%;

  margin: 20px auto 0;
  padding: 12px 18px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.045);
}

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-coordination-reference-label {
  display: block;

  color: rgba(255, 255, 255, 0.58);

  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-coordination-reference-value {
  display: block;

  color: #fff;

  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* ==========================================================
   FLAGSHIP — FIXEO COORDINATION CONFIRMATION
   Premium success state — presentation only
   ========================================================== */

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination {
  position: relative;
}

/* Calm success RAFI presence */
.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-rafi-sphere--dispatching {
  filter:
    drop-shadow(0 0 18px rgba(86, 215, 255, 0.28))
    drop-shadow(0 0 38px rgba(123, 92, 255, 0.18));
}

/* Confirmation badge */
.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  padding: 7px 12px;

  border: 1px solid rgba(119, 232, 194, 0.22);
  border-radius: 999px;

  background: rgba(70, 190, 155, 0.08);

  color: rgba(220, 255, 244, 0.92);

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;

  box-shadow:
    inset 0 0 16px rgba(104, 240, 201, 0.035),
    0 0 22px rgba(91, 226, 189, 0.055);
}

/* Main confirmation */
.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-title {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;

  text-align: center;
}

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;

  text-align: center;

  color: rgba(255, 255, 255, 0.72);
}

/* Premium reservation reference card */
.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-coordination-reference {
  position: relative;

  gap: 7px;

  margin-top: 22px;
  padding: 14px 22px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 34px rgba(0, 0, 0, 0.13);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-coordination-reference-label {
  color: rgba(255, 255, 255, 0.55);

  font-size: 0.68rem;
  letter-spacing: 0.025em;
}

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-coordination-reference-value {
  font-size: 1.08rem;
  letter-spacing: 0.065em;

  text-shadow:
    0 0 18px rgba(112, 193, 255, 0.16);
}

/* Client reassurance */
.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-coordination-follow-up {
  max-width: 520px;

  margin: 18px auto 0;
  padding: 11px 16px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.035);

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

/* Mobile refinement */
@media (max-width: 640px) {
  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-shell--coordination
  .fxhf-coordination-reference {
    width: min(290px, 88vw);
    box-sizing: border-box;

    margin-top: 18px;
    padding: 12px 16px;
  }

  .fxhf-root[data-fxhf-state="dispatching"]
  .fxhf-shell--coordination
  .fxhf-coordination-follow-up {
    max-width: 330px;

    margin-top: 14px;
    padding: 10px 13px;

    font-size: 0.74rem;
  }
}

/* ── Coordination spacing + premium badge halo ─────────── */

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-eyebrow {
  margin-top: 10px;
  margin-bottom: 18px;

  box-shadow:
    inset 0 0 18px rgba(104, 240, 201, 0.06),
    0 0 18px rgba(91, 226, 189, 0.16),
    0 0 34px rgba(83, 163, 255, 0.11);
}

.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-title {
  margin-top: 0;
}

/* Confirmation — remove generic eyebrow dot */
.fxhf-root[data-fxhf-state="dispatching"]
.fxhf-shell--coordination
.fxhf-eyebrow::before {
  display: none;
}

/* ============================================================
   RAFI — SIGNATURE LIGHT / MOBILE
   Explicit geometric centering for Safari mobile
   ============================================================ */

@media (max-width: 640px) {

  .fxhf-root[data-fxhf-state="need"] .fxhf-rafi-halo {
    inset: auto !important;

    left: 50% !important;
    top: 50% !important;

    width: 244% !important;
    height: 244% !important;

    border-radius: 50% !important;

    background:
      radial-gradient(
        circle at 50% 50%,
        rgba(205, 248, 255, 0.46) 0%,
        rgba(111, 220, 255, 0.34) 17%,
        rgba(72, 130, 255, 0.22) 35%,
        rgba(88, 82, 255, 0.14) 49%,
        rgba(225, 48, 108, 0.065) 62%,
        transparent 78%
      ) !important;

    filter: blur(18px) !important;

    transform-origin: center center !important;

    animation:
      fxhf-rafi-breathe-mobile
      4.2s
      cubic-bezier(0.45, 0, 0.55, 1)
      infinite !important;

    pointer-events: none;
    z-index: 0;
  }

  .fxhf-root[data-fxhf-state="need"] .fxhf-rafi-core {
    position: relative;
    z-index: 2;
  }
}

@keyframes fxhf-rafi-breathe-mobile {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.90);
    opacity: 0.64;
  }

  42% {
    transform: translate(-50%, -50%) scale(1.16);
    opacity: 0.96;
  }

  58% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.90;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fxhf-root[data-fxhf-state="need"] .fxhf-rafi-halo {
    animation: none !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }
}
