/* Patrick Hub — Adaptive Experience Prototype
   Isolated layer. Does not modify existing Hub components. */

.phx-launcher,
.phx-experience {
  font-family: inherit;
}

.phx-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 12px 18px 12px 13px;
  background: rgba(8, 18, 31, .92);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.phx-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  border-color: rgba(255,255,255,.32);
}

.phx-launcher-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #92ffd4, transparent 35%),
    linear-gradient(135deg, #25a975, #1f5fff);
  box-shadow: 0 0 0 5px rgba(52, 203, 145, .09);
}

.phx-launcher-dot::after {
  content: "↗";
  font-size: 14px;
  font-weight: 700;
}

.phx-launcher-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.05;
}

.phx-launcher-copy strong {
  font-size: 13px;
  font-weight: 700;
}

.phx-launcher-copy span {
  margin-top: 4px;
  font-size: 10px;
  opacity: .64;
  letter-spacing: .02em;
}

.phx-experience[hidden] {
  display: none !important;
}

.phx-experience {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.phx-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, .66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .3s ease;
}

.phx-shell {
  --phx-x: 0px;
  --phx-y: 0px;

  position: absolute;
  left: 50%;
  top: 50%;
  width: min(940px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  transform:
    translate(
      calc(-50% + var(--phx-x)),
      calc(-48% + var(--phx-y))
    )
    scale(.97);
  opacity: 0;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(32, 117, 255, .16), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 130, .13), transparent 35%),
    #07111e;
  color: #fff;
  box-shadow: 0 40px 120px rgba(0,0,0,.48);
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    opacity .3s ease;
}

.phx-experience.is-open .phx-backdrop {
  opacity: 1;
}

.phx-experience.is-open .phx-shell {
  transform:
    translate(
      calc(-50% + var(--phx-x)),
      calc(-50% + var(--phx-y))
    )
    scale(1);
  opacity: 1;
}

.phx-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px 14px;
  background: linear-gradient(to bottom, #07111e 65%, rgba(7,17,30,0));
}

.phx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}

.phx-brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3bd596;
  box-shadow: 0 0 22px rgba(59,213,150,.8);
}

.phx-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.phx-content {
  padding: 16px 7% 46px;
}

.phx-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.phx-progress span {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
}

.phx-progress span::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #36ce90, #4b7cff);
  transition: width .35s ease;
}

.phx-progress span.is-done::after,
.phx-progress span.is-active::after {
  width: 100%;
}

.phx-eyebrow {
  margin: 0 0 10px;
  color: #6fe1b0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phx-question {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}

.phx-description {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.64);
  font-size: 15px;
  line-height: 1.55;
}

.phx-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 34px;
}

.phx-option {
  position: relative;
  min-height: 108px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.phx-option::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 16px;
  opacity: .32;
  transition: transform .2s ease, opacity .2s ease;
}

.phx-option:hover,
.phx-option:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(93,219,164,.48);
  background: rgba(255,255,255,.065);
}

.phx-option:hover::after,
.phx-option:focus-visible::after {
  opacity: 1;
  transform: translateX(4px);
}

.phx-option strong {
  display: block;
  padding-right: 25px;
  font-size: 16px;
}

.phx-option span {
  display: block;
  margin-top: 7px;
  padding-right: 30px;
  color: rgba(255,255,255,.51);
  font-size: 12px;
  line-height: 1.4;
}

.phx-back {
  margin-top: 22px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  cursor: pointer;
}

.phx-result-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: end;
}

.phx-result-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: .93;
  letter-spacing: -.05em;
}

.phx-result-summary {
  margin: 0;
  color: rgba(255,255,255,.63);
  line-height: 1.6;
}

.phx-path {
  position: relative;
  margin-top: 42px;
  display: grid;
  gap: 12px;
}

.phx-path::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(#3bd596, rgba(76,124,255,.2));
}

.phx-recommendation {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 17px;
  align-items: center;
  padding: 18px 18px 18px 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}

.phx-recommendation.is-primary {
  border-color: rgba(58,213,150,.30);
  background:
    linear-gradient(115deg, rgba(58,213,150,.09), rgba(255,255,255,.03));
}

.phx-node {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a1726;
  border: 1px solid rgba(255,255,255,.13);
  font-size: 12px;
  font-weight: 700;
}

.phx-recommendation.is-primary .phx-node {
  background: #2fc587;
  color: #032316;
  border-color: transparent;
}

.phx-rec-copy strong {
  display: block;
  font-size: 17px;
}

.phx-rec-copy small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.52);
  line-height: 1.45;
}

.phx-rec-link {
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.phx-recommendation.is-primary .phx-rec-link {
  background: #fff;
  color: #07111e !important;
}

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

.phx-restart {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 10px 0;
}

body.phx-lock {
  overflow: hidden;
}

@media (max-width: 700px) {
  .phx-launcher {
    right: 14px;
    bottom: 14px;
  }

  .phx-launcher-copy span {
    display: none;
  }

  .phx-shell {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
    border-radius: 23px;
  }

  .phx-topbar {
    padding: 16px 18px 10px;
  }

  .phx-content {
    padding: 15px 20px 34px;
  }

  .phx-options {
    grid-template-columns: 1fr;
  }

  .phx-option {
    min-height: 88px;
  }

  .phx-result-head {
    grid-template-columns: 1fr;
  }

  .phx-recommendation {
    grid-template-columns: 42px 1fr;
  }

  .phx-rec-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phx-launcher,
  .phx-shell,
  .phx-backdrop,
  .phx-option,
  .phx-option::after {
    transition: none !important;
  }
}

/* Adaptive page state */

.phx-apply {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: #fff;
  color: #07111e;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.phx-apply span {
  margin-left: 8px;
}

.phx-personalized-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(100, 220, 205, .18);
  border-bottom: 1px solid rgba(100, 220, 205, .18);
  background:
    radial-gradient(circle at 15% 30%, rgba(53, 209, 151, .10), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(70, 115, 255, .10), transparent 36%),
    #09121d;
  color: #fff;
}

.phx-personalized-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 7vw, 100px);
  padding-top: clamp(58px, 8vw, 110px);
  padding-bottom: 46px;
}

.phx-personalized-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #6fe1b0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phx-personalized-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3bd596;
  box-shadow: 0 0 22px rgba(59,213,150,.65);
}

.phx-personalized-copy h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .96;
  letter-spacing: -.05em;
}

.phx-personalized-copy > p:last-child {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.61);
  font-size: 15px;
  line-height: 1.65;
}

.phx-personalized-primary {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(66,213,157,.32);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}

.phx-personalized-primary > span {
  display: block;
  margin-bottom: 11px;
  color: #69dcae;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.phx-personalized-primary strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.025em;
}

.phx-personalized-primary p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.58);
  line-height: 1.55;
}

.phx-personalized-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.phx-personalized-actions a,
.phx-personalized-actions button {
  border-radius: 999px;
  padding: 11px 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.phx-personalized-actions a {
  background: #fff;
  color: #07111e !important;
  text-decoration: none !important;
}

.phx-personalized-actions button {
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: rgba(255,255,255,.70);
}

.phx-personalized-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: clamp(55px, 7vw, 90px);
}

.phx-personalized-path button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(255,255,255,.54);
  text-align: left;
  cursor: pointer;
}

.phx-personalized-path button::after {
  content: "↓";
  margin-left: auto;
  opacity: .35;
}

.phx-personalized-path button + button {
  margin-left: 28px;
}

.phx-personalized-path button.is-primary {
  border-color: #3bd596;
  color: #fff;
}

.phx-personalized-path small {
  font-size: 10px;
  opacity: .55;
}

.phx-personalized-path span {
  font-size: 13px;
  font-weight: 700;
}

.phx-page-recommendation {
  position: relative;
}

.phx-page-primary::before,
.phx-page-secondary::before {
  content: "";
  position: absolute;
  z-index: 5;
  pointer-events: none;
  border-radius: 999px;
}

.phx-page-primary::before {
  top: 18px;
  right: 22px;
  width: 10px;
  height: 10px;
  background: #3bd596;
  box-shadow: 0 0 0 6px rgba(59,213,150,.10), 0 0 25px rgba(59,213,150,.45);
}

.phx-page-secondary::before {
  top: 18px;
  right: 22px;
  width: 7px;
  height: 7px;
  background: rgba(117,169,255,.75);
  box-shadow: 0 0 0 5px rgba(117,169,255,.08);
}

@media (max-width: 800px) {
  .phx-personalized-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phx-personalized-path {
    grid-template-columns: 1fr;
  }

  .phx-personalized-path button + button {
    margin-left: 0;
  }
}

/* =========================================================
   V5 — Live adaptive page experience
   ========================================================= */

.phx-hero-context {
  position: relative;
  max-width: 560px;
  margin-top: 28px;
  padding: 16px 18px 17px;
  border: 1px solid rgba(77, 215, 166, .24);
  border-radius: 18px;
  background:
    linear-gradient(
      120deg,
      rgba(57, 206, 150, .075),
      rgba(74, 113, 255, .045)
    );
  overflow: hidden;
  animation: phx-context-in .55s cubic-bezier(.2,.8,.2,1) both;
}

.phx-hero-context::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(64, 125, 255, .08);
  filter: blur(12px);
  pointer-events: none;
}

.phx-hero-context-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.phx-hero-context-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.phx-hero-context-label i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #3bd596;
  box-shadow:
    0 0 0 5px rgba(59,213,150,.07),
    0 0 18px rgba(59,213,150,.45);
}

.phx-hero-context-top button {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: rgba(255,255,255,.48);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: color .2s ease;
}

.phx-hero-context-top button:hover {
  color: #fff;
}

.phx-hero-context-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 15px;
}

.phx-hero-context-main small {
  display: block;
  margin-bottom: 5px;
  color: #67dcae;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.phx-hero-context-main strong {
  display: block;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.phx-hero-context-main > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding: 7px 0;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
}

.phx-hero-context-main > a span {
  transition: transform .2s ease;
}

.phx-hero-context-main > a:hover span {
  transform: translateX(4px);
}


/* Recommended sections */

.phx-page-recommendation[data-phx-adaptive-rank] {
  position: relative;
}

.phx-page-recommendation[data-phx-adaptive-rank]::after {
  content:
    attr(data-phx-adaptive-rank)
    " · "
    attr(data-phx-adaptive-label);

  position: absolute;
  z-index: 8;
  top: 20px;
  right: 45px;

  max-width: calc(100% - 90px);
  border: 1px solid rgba(98, 217, 173, .20);
  border-radius: 999px;
  padding: 7px 11px;

  background: rgba(6, 18, 29, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .075em;
  text-transform: uppercase;

  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  pointer-events: none;
}

.phx-page-primary[data-phx-adaptive-rank]::after {
  border-color: rgba(59, 213, 150, .35);
  color: #79e5b9;
}


/* Ecosystem subtly reacts without hiding anything */

[data-ecosystem][data-phx-adaptive="products"] .i-eco-product {
  border-color: rgba(59, 213, 150, .28);
  box-shadow:
    inset 0 0 0 1px rgba(59, 213, 150, .035),
    0 24px 80px rgba(0,0,0,.08);
}


/* Page-state transition */

body.phx-live-adaptive .i-hero-lead {
  transition:
    color .35s ease,
    opacity .35s ease;
}


/* Entrance */

@keyframes phx-context-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 720px) {
  .phx-hero-context {
    margin-top: 22px;
  }

  .phx-hero-context-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .phx-page-recommendation[data-phx-adaptive-rank]::after {
    top: 12px;
    right: 14px;
    max-width: calc(100% - 28px);
    font-size: 8px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .phx-hero-context {
    animation: none;
  }
}

/* =========================================================
   V6 — Consolidated adaptive experience
   The hero owns the recommendation.
   The former large result section becomes a compact route.
   ========================================================= */

body.phx-live-adaptive .phx-personalized-strip {
  border-top: 1px solid rgba(91, 220, 174, .18);
  border-bottom: 1px solid rgba(91, 220, 174, .14);
  background:
    linear-gradient(
      90deg,
      rgba(57, 206, 150, .035),
      rgba(74, 113, 255, .025)
    ),
    #08121d;
}

/* The full duplicated recommendation is no longer needed.
   The personalized hero now owns that role. */

body.phx-live-adaptive .phx-personalized-inner {
  display: none;
}

/* Compact route directly after the hero */

body.phx-live-adaptive .phx-personalized-path {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
  padding-bottom: 0;
}

body.phx-live-adaptive .phx-personalized-path button {
  min-height: 76px;
  border-top: 0;
  padding: 0 18px;
  color: rgba(255,255,255,.56);
  transition:
    background .2s ease,
    color .2s ease;
}

body.phx-live-adaptive .phx-personalized-path button + button {
  margin-left: 0;
  border-left: 1px solid rgba(255,255,255,.08);
}

body.phx-live-adaptive .phx-personalized-path button:hover {
  background: rgba(255,255,255,.025);
  color: #fff;
}

body.phx-live-adaptive .phx-personalized-path button.is-primary {
  background:
    linear-gradient(
      90deg,
      rgba(57,206,150,.065),
      transparent
    );
  color: #fff;
}

body.phx-live-adaptive .phx-personalized-path button.is-primary::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: calc(100% - 36px);
  height: 2px;
  border-radius: 999px;
  background: #3bd596;
}

body.phx-live-adaptive .phx-personalized-path small {
  color: #70deb3;
  opacity: 1;
}

body.phx-live-adaptive .phx-personalized-path span {
  font-size: 12px;
}


/* Floating control becomes an edit control after personalization */

.phx-launcher.is-personalized .phx-launcher-dot::after {
  content: "↺";
}

.phx-launcher.is-personalized {
  border-color: rgba(59,213,150,.22);
}

.phx-launcher.is-personalized .phx-launcher-dot {
  background:
    radial-gradient(
      circle at 30% 25%,
      #92ffd4,
      transparent 35%
    ),
    linear-gradient(135deg, #25a975, #2460db);
}


/* Prevent the personalized hero from becoming visually oversized */

body.phx-live-adaptive .i-hero-copy .phx-hero-context {
  margin-bottom: 4px;
}


/* Mobile: keep the route horizontal instead of creating
   another large vertical section. */

@media (max-width: 800px) {
  body.phx-live-adaptive .phx-personalized-path {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.phx-live-adaptive .phx-personalized-path::-webkit-scrollbar {
    display: none;
  }

  body.phx-live-adaptive .phx-personalized-path button {
    flex: 0 0 76%;
    min-width: 230px;
    min-height: 68px;
  }

  body.phx-live-adaptive .phx-personalized-path button + button {
    border-left: 1px solid rgba(255,255,255,.08);
  }
}

/* =========================================================
   V7 — Cross-page continuity
   ========================================================= */

.phx-continuity {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(79, 215, 164, .15);
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(55, 206, 150, .07),
      transparent 32%
    ),
    rgba(7, 18, 29, .97);
  color: #fff;
}

.phx-continuity-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  min-height: 104px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.phx-continuity-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.phx-continuity-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: #3bd596;
  box-shadow:
    0 0 0 5px rgba(59,213,150,.07),
    0 0 20px rgba(59,213,150,.38);
}

.phx-continuity-status small,
.phx-continuity-next small {
  display: block;
  margin-bottom: 5px;
  color: #69dcae;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.phx-continuity-status strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.phx-continuity-status p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  line-height: 1.4;
}

.phx-continuity-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.phx-continuity-next {
  display: block;
  min-width: 180px;
  color: #fff !important;
  text-decoration: none !important;
}

.phx-continuity-next strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.phx-continuity-next strong span {
  transition: transform .2s ease;
}

.phx-continuity-next:hover strong span {
  transform: translateX(4px);
}

.phx-continuity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phx-continuity-controls a,
.phx-continuity-controls button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: rgba(255,255,255,.66) !important;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.phx-continuity-controls a:hover,
.phx-continuity-controls button:hover {
  border-color: rgba(255,255,255,.25);
  color: #fff !important;
}


/* Interest form context */

.phx-interest-context-note {
  display: inline-flex;
  align-items: center;
  margin: 7px 0 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(59,213,150,.08);
  color: #287c5d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}


/* Keep inner-page continuity compact */

body.phx-continuity-active .phx-launcher {
  border-color: rgba(59,213,150,.20);
}


@media (max-width: 850px) {
  .phx-continuity-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .phx-continuity-actions {
    justify-content: space-between;
    gap: 16px;
  }
}


@media (max-width: 580px) {
  .phx-continuity-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .phx-continuity-controls {
    width: 100%;
  }

  .phx-continuity-controls a,
  .phx-continuity-controls button {
    flex: 1;
    text-align: center;
  }
}


/* =========================================================
   V7_COMPLETE_CROSS_PAGE
   Cross-page adaptive continuity
   ========================================================= */

.phx-continuity {
  position: relative;
  z-index: 20;

  border-bottom:
    1px solid rgba(67, 205, 157, .16);

  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(52, 205, 150, .08),
      transparent 32%
    ),
    radial-gradient(
      circle at 92% 20%,
      rgba(65, 112, 255, .055),
      transparent 30%
    ),
    #08131f;

  color: #fff;
}

.phx-continuity-inner {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 44px;

  align-items: center;

  min-height: 106px;

  padding-top: 19px;
  padding-bottom: 19px;
}

.phx-continuity-current {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  min-width: 0;
}

.phx-continuity-dot {
  width: 9px;
  height: 9px;

  flex: 0 0 auto;

  margin-top: 7px;

  border-radius: 50%;

  background: #38cf92;

  box-shadow:
    0 0 0 5px
      rgba(56, 207, 146, .07),
    0 0 22px
      rgba(56, 207, 146, .42);
}

.phx-continuity-current-copy {
  min-width: 0;
}

.phx-continuity-current small,
.phx-continuity-next small {
  display: block;

  margin-bottom: 5px;

  color: #68ddb0;

  font-size: 9px;

  font-weight: 750;

  line-height: 1;

  letter-spacing: .095em;

  text-transform: uppercase;
}

.phx-continuity-current strong {
  display: block;

  color: #fff;

  font-size: 16px;

  font-weight: 700;

  line-height: 1.2;
}

.phx-continuity-current p {
  margin:
    6px 0 0;

  color:
    rgba(255, 255, 255, .48);

  font-size: 11px;

  line-height: 1.45;
}

.phx-continuity-side {
  display: flex;

  align-items: center;

  gap: 30px;
}

.phx-continuity-next {
  display: block;

  min-width: 190px;

  color: #fff !important;

  text-decoration: none !important;
}

.phx-continuity-next strong {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 16px;

  color: #fff;

  font-size: 13px;

  line-height: 1.2;
}

.phx-continuity-next span {
  transition:
    transform .2s ease;
}

.phx-continuity-next:hover span {
  transform:
    translateX(4px);
}

.phx-continuity-controls {
  display: flex;

  gap: 8px;

  align-items: center;
}

.phx-continuity-controls a {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 34px;

  border:
    1px solid
    rgba(255, 255, 255, .13);

  border-radius: 999px;

  padding:
    8px 12px;

  color:
    rgba(255, 255, 255, .65)
    !important;

  background:
    rgba(255, 255, 255, .015);

  text-decoration:
    none !important;

  font-size: 10px;

  font-weight: 700;

  white-space: nowrap;

  transition:
    border-color .2s ease,
    color .2s ease,
    background .2s ease;
}

.phx-continuity-controls a:hover {
  border-color:
    rgba(255, 255, 255, .28);

  background:
    rgba(255, 255, 255, .035);

  color:
    #fff !important;
}


/* Interest-form context */

.phx-interest-context-note {
  display: inline-flex;

  align-items: center;

  margin-left: 9px;

  border-radius: 999px;

  padding:
    5px 8px;

  background:
    rgba(48, 184, 129, .08);

  color:
    #347961;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: .025em;
}


/* Existing floating control stays visually secondary */

body.phx-continuity-active
.phx-launcher {
  border-color:
    rgba(58, 210, 150, .19);
}


/* Tablet */

@media (max-width: 900px) {
  .phx-continuity-inner {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .phx-continuity-side {
    justify-content:
      space-between;
  }
}


/* Mobile */

@media (max-width: 600px) {
  .phx-continuity-inner {
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .phx-continuity-side {
    align-items:
      flex-start;

    flex-direction:
      column;

    gap: 15px;
  }

  .phx-continuity-next {
    width: 100%;
  }

  .phx-continuity-controls {
    width: 100%;
  }

  .phx-continuity-controls a {
    flex: 1;
  }
}

/* =========================================================
   V7.1 fixes
   ========================================================= */

/*
 * The modal receives programmatic focus for accessibility.
 * Do not draw a browser-default blue rectangle around
 * the entire dialog surface.
 */
.phx-shell:focus {
  outline: none;
}

.phx-shell:focus-visible {
  outline: none;
}


/* Last step of a path */

.phx-continuity-finished small {
  display: block;

  color: rgba(255,255,255,.46);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;

  white-space: nowrap;
}
