/**
 * FITOX GYM - ULTRA-LUXURY 3D & ADVANCED ANIMATION ENGINE
 * High-performance, GPU-accelerated 3D perspectives, glassmorphism, glowing border beams,
 * interactive biometric BMI visualizer, and luxury micro-interactions.
 */

:root {
  --fx-red: #e31e24;
  --fx-red-bright: #ff2a31;
  --fx-red-glow: rgba(227, 30, 36, 0.45);
  --fx-red-subtle: rgba(227, 30, 36, 0.12);
  --fx-dark-glass: rgba(18, 18, 22, 0.72);
  --fx-dark-glass-border: rgba(255, 255, 255, 0.08);
  --fx-card-surface: #141416;
  --fx-card-surface-hover: #19191d;
  --fx-gold: #e5a93b;
}

/* ==========================================================================
   1. 3D CARD TILT & DEPTH SYSTEM
   ========================================================================== */
.fx-3d-wrap {
  perspective: 1200px;
}

.fx-3d-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  background: var(--fx-card-surface);
  border: 1px solid var(--fx-dark-glass-border);
  border-radius: 8px;
  overflow: hidden;
}

/* 3D Depth Layers inside cards */
.fx-3d-layer {
  transform: translateZ(0px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.fx-3d-layer-lg {
  transform: translateZ(0px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Dynamic Specular Glare Overlay */
.fx-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 10;
  mix-blend-mode: overlay;
  background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.28) 0%, rgba(227, 30, 36, 0.12) 45%, transparent 80%);
}

.fx-3d-card:hover .fx-glare {
  opacity: 1;
}

.fx-3d-card:hover {
  border-color: rgba(227, 30, 36, 0.45);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px -8px rgba(227, 30, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.fx-3d-card.is-tilting .fx-3d-layer {
  transform: translateZ(28px);
}

.fx-3d-card.is-tilting .fx-3d-layer-lg {
  transform: translateZ(48px);
}

/* ==========================================================================
   2. GLOWING BORDER BEAM ANIMATION
   ========================================================================== */
.fx-beam-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.fx-beam-card::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 300deg, var(--fx-red-bright) 340deg, #fff 360deg);
  animation: fx-beam-spin 6s linear infinite;
  z-index: -2;
  opacity: 0.65;
}

.fx-beam-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #141416;
  border-radius: inherit;
  z-index: -1;
}

@keyframes fx-beam-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   3. LUXURY GLASSMORPHISM & ELEVATED SHADOWS
   ========================================================================== */
.fx-glass-panel {
  background: linear-gradient(135deg, rgba(24, 24, 28, 0.85) 0%, rgba(13, 13, 15, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Ambient Radial Backlights */
.fx-glow-aura {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.25;
  background: radial-gradient(circle, var(--fx-red) 0%, transparent 70%);
}

/* ==========================================================================
   4. HOMEPAGE PROGRAMS SECTION UPGRADES
   ========================================================================== */
.fx-programs {
  position: relative;
  overflow: hidden;
}

.fx-programs .fx-program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  perspective: 1200px;
}

.fx-program {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  height: 440px;
}

.fx-program::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--fx-red), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.fx-program:hover::before {
  opacity: 1;
}

.fx-program-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 14, 16, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateZ(30px);
  transition: transform 0.35s ease, background 0.3s ease;
}

.fx-program-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fx-red);
  box-shadow: 0 0 8px var(--fx-red);
}

.fx-program-copy {
  transform: translateZ(35px);
  bottom: 28px;
  left: 24px;
  right: 24px;
}

.fx-program-arrow {
  position: absolute;
  bottom: 28px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 4;
  transition: all 0.3s ease;
  transform: translateZ(40px);
}

.fx-program:hover .fx-program-arrow {
  background: var(--fx-red);
  border-color: var(--fx-red);
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.6);
  transform: translateZ(50px) rotate(45deg);
}

/* ==========================================================================
   5. MEMBERSHIP CARDS - 3D LUXURY TIERS
   ========================================================================== */
.fx-membership {
  position: relative;
  isolation: isolate;
  padding-block: 130px 140px;
}

.fx-membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  perspective: 1200px;
}

.fx-plan {
  background: linear-gradient(180deg, #18181b 0%, #111113 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 42px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.fx-plan:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.9), 0 0 25px rgba(227, 30, 36, 0.15);
}

/* Featured Standard Plan - Elevated Luxury Centerpiece */
.fx-plan.featured {
  background: linear-gradient(180deg, #221818 0%, #171112 100%);
  border: 2px solid var(--fx-red);
  transform: scale(1.04) translateZ(20px);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.9), 0 0 45px rgba(227, 30, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.fx-plan.featured:hover {
  transform: scale(1.05) translateY(-8px) translateZ(30px);
  box-shadow: 0 40px 90px -10px rgba(0, 0, 0, 0.95), 0 0 60px rgba(227, 30, 36, 0.45);
}

.fx-plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  background: linear-gradient(90deg, #ff2a31, #c70d18);
  color: #fff;
  font: 700 11px/1 Inter, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(227, 30, 36, 0.5);
  white-space: nowrap;
}

.fx-plan-price {
  font: 800 clamp(44px, 4.5vw, 68px)/1 Poppins, Arial, sans-serif !important;
  color: #fff;
  margin: 24px 0 !important;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.fx-plan-price .fx-currency {
  font: 700 18px Inter, sans-serif !important;
  color: var(--fx-red);
  vertical-align: super;
  margin-right: 6px;
}

.fx-plan-price small {
  font: 400 14px Inter, sans-serif !important;
  color: #888;
}

.fx-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  flex-grow: 1;
}

.fx-plan li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #ccc;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fx-plan-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.15);
  border: 1px solid var(--fx-red);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  flex-shrink: 0;
}

.fx-plan .fx-button {
  width: 100%;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 18px 24px;
  transform: translateZ(20px);
}

/* ==========================================================================
   6. 3D BIOMETRIC BMI GAUGE & CALCULATOR
   ========================================================================== */
.fx-bmi {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 22, 26, 0.8) 0%, rgba(14, 14, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 48px;
  margin-top: 60px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.fx-bmi::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fx-bmi-form-wrap {
  position: relative;
  z-index: 2;
}

.fx-bmi-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.fx-bmi-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fx-bmi-form input {
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 14px 18px;
  color: #fff;
  font-size: 16px;
  transition: all 0.25s ease;
}

.fx-bmi-form input:focus {
  outline: none;
  border-color: var(--fx-red);
  box-shadow: 0 0 16px rgba(227, 30, 36, 0.35);
  background: rgba(14, 14, 18, 0.95);
}

.fx-bmi-form button {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #e31e24, #b51016);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(227, 30, 36, 0.4);
}

.fx-bmi-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(227, 30, 36, 0.6);
  background: linear-gradient(90deg, #ff2a31, #c70d18);
}

/* 3D Biometric Visualizer Dial */
.fx-bmi-dial-box {
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.fx-bmi-gauge-svg {
  width: 220px;
  height: 125px;
  margin: 0 auto 10px;
  overflow: visible;
}

.fx-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
  stroke-linecap: round;
}

.fx-gauge-track {
  fill: none;
  stroke: url(#bmiGaugeGradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fx-gauge-needle {
  transform-origin: 100px 95px;
  transform: rotate(-90deg);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px rgba(227, 30, 36, 0.7));
}

.fx-bmi-digital-value {
  font: 800 52px/1 Poppins, sans-serif;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 4px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.fx-bmi-status-tag {
  display: inline-block;
  font: 700 12px/1 Inter, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.fx-bmi-status-tag[data-cat="normal"] {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.fx-bmi-status-tag[data-cat="underweight"] {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid #3b82f6;
  color: #60a5fa;
}

.fx-bmi-status-tag[data-cat="overweight"] {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid #f97316;
  color: #fb923c;
}

.fx-bmi-status-tag[data-cat="obese"] {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

.fx-bmi-advice {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  margin-top: 14px;
  min-height: 38px;
}

/* ==========================================================================
   7. INTERACTIVE SCHEDULE EXPLORER
   ========================================================================== */
.fx-schedule-explorer {
  margin-top: 40px;
  background: #131316;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.fx-day-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fx-day-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #aaa;
  padding: 10px 20px;
  border-radius: 30px;
  font: 700 13px/1 Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.fx-day-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.fx-day-pill.active {
  background: var(--fx-red);
  border-color: var(--fx-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.45);
}

.fx-schedule-grid-live {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fx-class-card {
  background: rgba(20, 20, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.fx-class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--fx-red);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fx-class-card:hover {
  background: rgba(28, 28, 34, 0.95);
  border-color: rgba(227, 30, 36, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(227, 30, 36, 0.15);
}

.fx-class-card:hover::before {
  opacity: 1;
}

.fx-class-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fx-class-time {
  font: 700 13px Inter, sans-serif;
  color: var(--fx-red);
  letter-spacing: 0.08em;
}

.fx-class-intensity {
  font: 600 11px Inter, sans-serif;
  color: #888;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 12px;
}

.fx-class-title {
  font: 700 20px/1.2 Poppins, sans-serif;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.fx-class-trainer {
  font-size: 13px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fx-class-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 12px Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.fx-class-action span {
  color: var(--fx-red);
  transition: transform 0.25s ease;
}

.fx-class-card:hover .fx-class-action span {
  transform: translateX(4px);
}

/* ==========================================================================
   8. STEPPED 3D PROCESS ROADMAP (#first-visit)
   ========================================================================== */
.fx-visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  perspective: 1200px;
}

.fx-visit-step {
  background: linear-gradient(180deg, #18181c 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 38px 30px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.fx-visit-step:hover {
  transform: translateY(-8px) rotateX(3deg);
  border-color: rgba(227, 30, 36, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(227, 30, 36, 0.2);
}

.fx-step-badge {
  font: 800 38px/1 Poppins, sans-serif;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateZ(25px);
  transition: color 0.3s ease;
}

.fx-step-badge::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--fx-red);
}

.fx-visit-step:hover .fx-step-badge {
  color: var(--fx-red);
}

.fx-visit-step h3 {
  font: 700 24px/1.25 Poppins, sans-serif !important;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 14px 0 !important;
  transform: translateZ(30px);
}

.fx-visit-step p {
  color: #aaa;
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
  transform: translateZ(20px);
}

/* ==========================================================================
   9. LUXURY ACCORDION FAQ
   ========================================================================== */
.fx-faq details {
  background: rgba(18, 18, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.fx-faq details:hover {
  background: rgba(24, 24, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.fx-faq details[open] {
  background: rgba(24, 24, 30, 0.95);
  border-color: rgba(227, 30, 36, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(227, 30, 36, 0.15);
}

.fx-faq summary {
  font: 700 18px Poppins, sans-serif;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.fx-faq summary::-webkit-details-marker {
  display: none;
}

.fx-faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--fx-red);
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.fx-faq details[open] .fx-faq-icon {
  background: var(--fx-red);
  color: #fff;
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(227, 30, 36, 0.6);
}

.fx-faq details p {
  padding-top: 16px;
  color: #bbb;
  font-size: 15px;
  line-height: 1.8;
}

/* ==========================================================================
   10. HIGH-ENERGY 3D BILLBOARD CTA
   ========================================================================== */
.fx-cta {
  background: linear-gradient(135deg, #1b1617 0%, #111012 50%, #161214 100%);
  border: 1px solid rgba(227, 30, 36, 0.35);
  border-radius: 12px;
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(227, 30, 36, 0.2);
}

.fx-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2a31, transparent);
}

.fx-cta .fx-button {
  background: linear-gradient(90deg, #e31e24, #b51016);
  border-radius: 6px;
  padding: 20px 36px;
  font-size: 14px;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(227, 30, 36, 0.5);
  position: relative;
  overflow: hidden;
}

.fx-cta .fx-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: fx-cta-shine 4s infinite;
}

@keyframes fx-cta-shine {
  0% { left: -100%; }
  25%, 100% { left: 200%; }
}

/* ==========================================================================
   11. DYNAMIC CONTACT PAGE 3D REDESIGN STYLES
   ========================================================================== */
.fx-contact-hero {
  min-height: 480px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  background: #0d0d0f;
  padding: 120px 0 60px;
  overflow: hidden;
}

.fx-contact-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.fx-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
  perspective: 1200px;
}

.fx-contact-card {
  background: linear-gradient(180deg, #18181c 0%, #111114 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 32px 26px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.fx-contact-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  border-color: rgba(227, 30, 36, 0.45);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.9), 0 0 30px rgba(227, 30, 36, 0.2);
}

.fx-contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(227, 30, 36, 0.12);
  border: 1px solid rgba(227, 30, 36, 0.3);
  display: grid;
  place-items: center;
  color: var(--fx-red);
  margin-bottom: 22px;
  font-size: 22px;
  transform: translateZ(25px);
  transition: all 0.3s ease;
}

.fx-contact-card:hover .fx-contact-icon-box {
  background: var(--fx-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.6);
}

.fx-contact-card h3 {
  font: 700 20px Poppins, sans-serif;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  transform: translateZ(30px);
}

.fx-contact-card p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px 0;
  transform: translateZ(20px);
}

.fx-contact-card a.fx-contact-link {
  color: #fff;
  font: 600 13px Inter, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
  width: fit-content;
  transition: all 0.25s ease;
  transform: translateZ(25px);
}

.fx-contact-card a.fx-contact-link:hover {
  color: var(--fx-red);
  border-color: var(--fx-red);
}

/* 3D Lounge Form Layout */
.fx-contact-lounge {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  margin-top: 70px;
  padding-bottom: 110px;
}

.fx-lounge-form {
  background: linear-gradient(135deg, #18181c 0%, #101012 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 44px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

.fx-form-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.fx-form-fields-grid .col-span-2 {
  grid-column: 1 / -1;
}

.fx-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-field-group label {
  font: 600 12px Inter, sans-serif;
  color: #bbb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-field-group input,
.fx-field-group select,
.fx-field-group textarea {
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 14px 16px;
  color: #fff;
  font: 400 15px Inter, sans-serif;
  transition: all 0.25s ease;
}

.fx-field-group select option {
  background: #18181c;
  color: #fff;
}

.fx-field-group input:focus,
.fx-field-group select:focus,
.fx-field-group textarea:focus {
  outline: none;
  border-color: var(--fx-red);
  box-shadow: 0 0 18px rgba(227, 30, 36, 0.35);
  background: #111114;
}

.fx-field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.fx-lounge-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  background: linear-gradient(90deg, #e31e24, #b51016);
  border: none;
  border-radius: 6px;
  color: #fff;
  font: 700 13px Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(227, 30, 36, 0.4);
}

.fx-lounge-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(227, 30, 36, 0.6);
  background: linear-gradient(90deg, #ff2a31, #c70d18);
}

.fx-lounge-submit span {
  font-size: 18px;
}

/* Branch Switcher & Map Card */
.fx-map-preview-card {
  background: linear-gradient(135deg, #18181c 0%, #101012 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.fx-branch-toggle-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.fx-branch-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  padding: 12px 16px;
  border-radius: 6px;
  font: 700 12px Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.fx-branch-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.fx-branch-tab.active {
  background: var(--fx-red);
  border-color: var(--fx-red);
  color: #fff;
  box-shadow: 0 0 18px rgba(227, 30, 36, 0.45);
}

.fx-map-frame-wrap {
  width: 100%;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 22px;
}

.fx-map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.85) contrast(1.1) invert(0.9) hue-rotate(180deg);
}

.fx-branch-detail-box {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 13.5px;
  color: #bbb;
  line-height: 1.7;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .fx-programs .fx-program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fx-membership-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
  .fx-plan.featured {
    transform: none;
  }
  .fx-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fx-contact-lounge {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .fx-bmi {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }
  .fx-schedule-grid-live {
    grid-template-columns: 1fr;
  }
  .fx-visit-grid {
    grid-template-columns: 1fr;
  }
  .fx-cta {
    padding: 38px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .fx-programs .fx-program-grid {
    grid-template-columns: 1fr;
  }
  .fx-contact-grid {
    grid-template-columns: 1fr;
  }
  .fx-form-fields-grid {
    grid-template-columns: 1fr;
  }
  .fx-lounge-form {
    padding: 28px 20px;
  }
  .fx-map-preview-card {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-3d-card, .fx-visit-step, .fx-plan, .fx-program {
    transform: none !important;
    transition: none !important;
  }
  .fx-beam-card::before, .fx-cta .fx-button::after {
    animation: none !important;
  }
}
