/**
 * GetFitPlans V9 — Futuristic / advanced UI layer
 */

/* ── Global ambient ── */
.gfp-site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.5), rgba(59, 130, 246, 0.5), transparent);
  pointer-events: none;
}
.gfp-cta--primary {
  position: relative;
  overflow: hidden;
}
.gfp-cta--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.gfp-cta--primary:hover::after {
  transform: translateX(120%);
}

/* ── Hero futuristic ── */
.gfp-home-hero {
  position: relative;
}
.gfp-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  opacity: 0.2;
}
@keyframes gfp-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(48px); }
}
.gfp-home-hero__pill {
  position: relative;
  overflow: hidden;
}
.gfp-home-hero__pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: gfp-pill-shine 4s ease-in-out infinite;
}
.gfp-home-hero__pill:nth-child(2)::before { animation-delay: 0.8s; }
.gfp-home-hero__pill:nth-child(3)::before { animation-delay: 1.6s; }
.gfp-home-hero__pill:nth-child(4)::before { animation-delay: 2.4s; }
@keyframes gfp-pill-shine {
  0%, 80%, 100% { transform: translateX(-100%); }
  40% { transform: translateX(100%); }
}

.gfp-fcard {
  transform-style: preserve-3d;
  will-change: transform;
}
.gfp-fcard__badge {
  animation: gfp-badge-pulse 2.2s ease-in-out infinite;
}
@keyframes gfp-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

/* Glass modules with animated border */
.gfp-module,
.gfp-flow-card,
.gfp-bento-card {
  position: relative;
  isolation: isolate;
}
.gfp-module::after,
.gfp-flow-card::after,
.gfp-bento-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--gfp-angle, 0deg), transparent, rgba(249, 115, 22, 0.45), rgba(59, 130, 246, 0.45), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.gfp-module:hover::after,
.gfp-flow-card:hover::after,
.gfp-bento-card:hover::after {
  opacity: 1;
  animation: gfp-border-spin 3s linear infinite;
}
@keyframes gfp-border-spin {
  to { --gfp-angle: 360deg; }
}
@property --gfp-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.gfp-home-stat {
  position: relative;
}
.gfp-home-stat::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(59, 130, 246, 0.25));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.gfp-home-stat:hover::before { opacity: 1; }

.gfp-faq__item {
  backdrop-filter: blur(8px);
}

/* Section divider glow */
.gfp-home-section--glow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), rgba(59, 130, 246, 0.4), transparent);
}

/* ══════════════════════════════════════
   BUILDER — futuristic protocol lab
   ══════════════════════════════════════ */
.gfp--futuristic {
  position: relative;
}
.gfp__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.gfp__fxGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}
.gfp__fxOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  transition: transform 0.15s ease-out;
}
.gfp__fxOrb--a {
  width: 380px;
  height: 380px;
  top: -120px;
  right: 5%;
  background: rgba(249, 115, 22, 0.25);
}
.gfp__fxOrb--b {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: 0;
  background: rgba(59, 130, 246, 0.2);
}
.gfp__fxScan {
  display: none;
}

.gfp__wrap { position: relative; z-index: 1; }

/* Status chip — intro */
.gfp__statusChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}
.gfp__statusDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: gfp-live-pulse 1.8s ease-in-out infinite;
}
@keyframes gfp-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Quiz panel glass */
.gfp__quizPanel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-gfp-theme="light"] .gfp__quizPanel {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(28, 25, 23, 0.08);
  box-shadow: 0 24px 50px -28px rgba(28, 25, 23, 0.12);
}

/* Progress — advanced */
.gfp__progress {
  flex-wrap: wrap;
  gap: 10px 14px;
}
.gfp__progressMeta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 4px;
}
.gfp__progressLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
}
[data-gfp-theme="light"] .gfp__progressLabel { color: rgba(28, 25, 23, 0.45); }
.gfp__progressPct {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fb923c;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.45);
}
.gfp__track {
  position: relative;
  overflow: visible;
}
.gfp__fill {
  position: relative;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.45);
}


/* Step enter animation */
.gfp__step--enter {
  animation: gfp-step-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes gfp-step-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Option cards — holographic hover */
.gfp__opt {
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.gfp__opt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gfp-ripple-x, 50%) var(--gfp-ripple-y, 50%), rgba(249, 115, 22, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.gfp__opt.is-selected::after {
  opacity: 1;
}
.gfp__opt.is-selected {
  animation: gfp-opt-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes gfp-opt-pop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Results gauge glow */
.gfp__gauge {
  filter: drop-shadow(0 0 24px rgba(249, 115, 22, 0.2));
}
.gfp__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gfp__card:hover {
  transform: translateY(-2px);
}
.gfp__mealBlock,
.gfp__trainDay {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gfp__reportHead h2 {
  background: linear-gradient(120deg, currentColor 0%, currentColor 60%, rgba(251, 146, 60, 0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Ripple click */
.gfp__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.35);
  transform: scale(0);
  animation: gfp-ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes gfp-ripple {
  to { transform: scale(2.8); opacity: 0; }
}

/* ── Header glass + nav glow ── */
.gfp-site-header {
  position: relative;
}
.gfp-nav a {
  position: relative;
}
.gfp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
  opacity: 0.85;
}
.gfp-nav a:hover::after,
.gfp-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

/* ── Hero ticker ── */
.gfp-home-hero__ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.42);
}
.gfp-home-hero__ticker span {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.08);
  font-variant-numeric: tabular-nums;
}
.gfp-home-hero__ticker span:first-child {
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.08);
}

/* ── Flow connector pulse ── */
.gfp-flow {
  position: relative;
}

.gfp-flow-card__n {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}

/* ── Split cards holographic edge ── */
.gfp-split-card {
  position: relative;
  overflow: hidden;
}
.gfp-split-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.06), transparent);
  pointer-events: none;
  transition: left 0.6s ease;
}
.gfp-split-card:hover::before {
  left: 140%;
}

/* ── Footer status ── */
.gfp-site-footer {
  position: relative;
}
.gfp-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.45);
}
.gfp-footer-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: gfp-live-pulse 1.8s ease-in-out infinite;
}

/* ══════════════════════════════════════
   BUILDER — step nodes & compute lab
   ══════════════════════════════════════ */
.gfp__stepNodes {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.gfp__stepNode {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
[data-gfp-theme="light"] .gfp__stepNode {
  background: rgba(28, 25, 23, 0.08);
}
.gfp__stepNode.is-done {
  background: linear-gradient(90deg, #f97316, #fb923c);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}
.gfp__stepNode.is-active {
  background: rgba(248, 250, 252, 0.15);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.45);
}
.gfp__stepNode.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f97316, #3b82f6);
  animation: gfp-node-fill 0.5s ease forwards;
  border-radius: inherit;
}
@keyframes gfp-node-fill {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Compute panel */
.gfp__computePanel {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px -40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-gfp-theme="light"] .gfp__computePanel {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(28, 25, 23, 0.08);
}
.gfp__computeRing {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}
.gfp__computeRing span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #f97316;
  border-right-color: rgba(59, 130, 246, 0.5);
  animation: gfp-ring-spin 1.2s linear infinite;
}
.gfp__computeRing span:nth-child(2) {
  inset: 10px;
  animation-duration: 1.6s;
  animation-direction: reverse;
  border-top-color: #3b82f6;
  border-right-color: rgba(249, 115, 22, 0.4);
}
.gfp__computeRing span:nth-child(3) {
  inset: 20px;
  animation-duration: 2s;
  border-top-color: #fb923c;
  opacity: 0.6;
}
@keyframes gfp-ring-spin {
  to { transform: rotate(360deg); }
}
.gfp__computeLabel {
  font-family: var(--gfp-display, inherit);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  background: linear-gradient(120deg, currentColor 0%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.gfp__computeSub {
  font-size: 13px;
  color: rgba(248, 250, 252, 0.5);
  margin: 0 0 24px;
}
[data-gfp-theme="light"] .gfp__computeSub { color: rgba(28, 25, 23, 0.45); }
.gfp__computeLog {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 8px;
}
.gfp__computeLine {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(248, 250, 252, 0.7);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.04);
  border-left: 3px solid #f97316;
}
[data-gfp-theme="light"] .gfp__computeLine {
  color: rgba(28, 25, 23, 0.65);
  background: rgba(28, 25, 23, 0.03);
}
.gfp__computeLine--enter {
  animation: gfp-compute-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes gfp-compute-in {
  from { opacity: 0; transform: translateX(-12px); filter: blur(3px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* Chips — neon select */
.gfp__chip.is-selected {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
  animation: gfp-chip-glow 0.4s ease;
}
@keyframes gfp-chip-glow {
  0% { box-shadow: 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: 0 0 24px rgba(249, 115, 22, 0.5); }
  100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.35); }
}

/* Input focus halo */
.gfp__inputwrap:focus-within {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15), 0 0 24px rgba(59, 130, 246, 0.12);
}

/* Results stagger reveal */
.gfp__card--reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.gfp__card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.gfp__report--fx .gfp__reportHead {
  animation: gfp-step-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Primary button pulse on intro */
.gfp__btn--primary[data-action="start"] {
  position: relative;
  overflow: hidden;
}


/* FAQ terminal accent */
.gfp-faq__item {
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gfp-faq__item:hover,
.gfp-faq__item:focus-within {
  border-left-color: #f97316;
}

@media (prefers-reduced-motion: reduce) {
  .gfp-home-hero::after,
  .gfp-home-hero__pill::before,
  .gfp-fcard__badge,
  .gfp__fxGrid,
  .gfp__fxOrb,
  .gfp__fxScan,
  .gfp__statusDot,
  .gfp__fill::after,
  .gfp-module:hover::after,
  .gfp-flow-card:hover::after,
  .gfp-bento-card:hover::after,
  .gfp-flow::before,
  .gfp-footer-status i,
  .gfp__computeRing span,
  .gfp__stepNode.is-active::after {
    animation: none !important;
  }
  .gfp__step--enter,
  .gfp__computeLine--enter { animation: none; filter: none; }
  .gfp__card--reveal { opacity: 1; transform: none; transition: none; }
}