/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════ */
:root {
  /* Brand Colors */
  --purple: #4B0082;
  --blue: #00BFFF;
  --white: #ffffff;
  --accent: #8716d9;

  /* Derived */
  --purple-rgb: 75, 0, 130;
  --blue-rgb: 0, 191, 255;
  --accent-rgb: 135, 22, 217;

  --glass-bg: rgba(var(--purple-rgb), 0.18);
  --glass-border: rgba(var(--blue-rgb), 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 48px rgba(var(--purple-rgb), 0.45), 0 2px 16px rgba(0, 0, 0, 0.4);

  /* Spacing (8-grid) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;

  /* Typography */
  --font-display: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-micro: 150ms ease-out;
  --ease-standard: 450ms var(--ease-out-expo);
  --ease-slow: 700ms var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: #07010f;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  color: inherit;
}

/* ═══════════════════════════════════════════════════════
   BACKGROUND — CINEMATIC GRADIENT + ORBS
   ═══════════════════════════════════════════════════════ */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(var(--purple-rgb), 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 85% 100%, rgba(0, 50, 120, 0.45) 0%, transparent 55%),
    linear-gradient(160deg, #07010f 0%, #0d0320 40%, #060118 100%);
  overflow: hidden;
}

/* Animated orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.orb-1 {
  width: 680px;
  height: 680px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(var(--purple-rgb), 0.38) 0%, transparent 70%);
  animation: orbFloat1 22s ease-in-out infinite;
}

.orb-2 {
  width: 520px;
  height: 520px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.22) 0%, transparent 70%);
  animation: orbFloat2 28s ease-in-out infinite;
}

.orb-3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.20) 0%, transparent 70%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, -40px) scale(1.06);
  }

  66% {
    transform: translate(-30px, 50px) scale(0.96);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  40% {
    transform: translate(-80px, 40px) scale(1.1);
  }

  70% {
    transform: translate(40px, -60px) scale(0.92);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50px, 30px) scale(1.12);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════
   CONSTELLATION BACKGROUND THREADS
   ═══════════════════════════════════════════════════════ */
.constellation-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.thread {
  stroke: rgba(var(--blue-rgb), 0.12);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: threadDraw 3s var(--ease-out-expo) forwards;
}

.thread-1 {
  animation-delay: 0.3s;
}

.thread-2 {
  animation-delay: 0.7s;
}

.thread-3 {
  animation-delay: 1.1s;
}

.thread-4 {
  animation-delay: 1.5s;
}

.star {
  fill: rgba(var(--blue-rgb), 0.4);
  animation: starPulse 4s ease-in-out infinite alternate;
}

@keyframes threadDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes starPulse {
  from {
    opacity: 0.3;
    r: 2;
  }

  to {
    opacity: 0.9;
    r: 3;
  }
}

/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 10;
  padding: var(--s3) var(--s4);
  display: flex;
  justify-content: center;
  animation: fadeSlideDown 0.8s var(--ease-out-expo) both;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(var(--blue-rgb), 0.9);
  text-transform: uppercase;
}

.header-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
}

.app-main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s3) var(--s3) var(--s6);
  gap: var(--s4);
  min-height: calc(100vh - 80px);
}

/* ═══════════════════════════════════════════════════════
   HERO TEXT
   ═══════════════════════════════════════════════════════ */
.hero-text {
  text-align: center;
  max-width: 680px;
  animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.1s both;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, rgba(var(--blue-rgb), 0.9) 55%, rgba(var(--accent-rgb), 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--s2);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 58ch;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   GLASS CARD FOUNDATION
   ═══════════════════════════════════════════════════════ */
.card {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: var(--s5) var(--s5);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  animation: fadeSlideUp 0.7s var(--ease-out-expo) 0.2s both;
}

/* Blur support */
@supports (backdrop-filter: blur(1px)) {
  .card {
    backdrop-filter: blur(22px) saturate(180%);
  }
}

/* Fallback: no blur */
@supports not (backdrop-filter: blur(1px)) {
  .card {
    background: rgba(var(--purple-rgb), 0.55);
    box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

/* Inner highlight (top edge shimmer) */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--glass-highlight) 0%, transparent 40%);
  pointer-events: none;
}

/* Noise/grain texture */
.card-noise {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ═══════════════════════════════════════════════════════
   CARD HEADER (FORM STATE)
   ═══════════════════════════════════════════════════════ */
.card-header {
  margin-bottom: var(--s4);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--s2);
}

.card-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 56ch;
}

/* ═══════════════════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════════════════ */
.form-row {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.form-row--three {
  grid-template-columns: repeat(3, 1fr);
}

.form-row--two {
  grid-template-columns: repeat(2, 1fr);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.field-label .req {
  color: rgba(var(--blue-rgb), 0.9);
  margin-left: 2px;
}

.field-label .opt {
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.38);
}

.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(var(--blue-rgb), 0.18);
  border-radius: 12px;
  padding: 14px var(--s2);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--white);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.field-input::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.5);
  cursor: pointer;
}

.field-input:hover {
  border-color: rgba(var(--blue-rgb), 0.35);
}

.field-input:focus {
  border-color: rgba(var(--blue-rgb), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.14), 0 0 16px rgba(var(--blue-rgb), 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.field-input.is-error {
  border-color: rgba(255, 90, 90, 0.8);
}

.field-input.is-error:focus {
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.15);
}

.field-helper {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.field-error {
  font-size: 0.78rem;
  color: #ff8080;
  min-height: 1.1em;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  margin-top: var(--s3);
  padding: 18px var(--s4);
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, #4B0082 50%, #00BFFF 100%);
  background-size: 200% auto;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform var(--ease-micro), box-shadow var(--ease-micro), background-position 400ms ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 200ms ease;
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(var(--accent-rgb), 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  background-position: right center;
}

.btn-primary:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 3px 16px rgba(var(--accent-rgb), 0.4);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(var(--blue-rgb), 0.7);
  outline-offset: 3px;
}

.btn-icon {
  font-size: 1.1rem;
}

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s2) var(--s3);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color var(--ease-micro), border-color var(--ease-micro), background var(--ease-micro);
}

.btn-ghost:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:focus-visible {
  outline: 2px solid rgba(var(--blue-rgb), 0.6);
  outline-offset: 3px;
}

/* Pay button */
.btn-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  padding: 17px var(--s4);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.5);
  transition: transform var(--ease-micro), box-shadow var(--ease-micro), background var(--ease-micro);
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.7);
  background: #9e22f0;
}

.btn-pay:active {
  transform: scale(0.98);
}

.btn-pay:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.7);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════ */
.card--loading {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) 0;
}

/* Premium spinner */
.spinner-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: var(--s2);
}

.spinner-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.spinner-ring--outer {
  inset: 0;
  border-top-color: rgba(var(--blue-rgb), 0.9);
  border-right-color: rgba(var(--blue-rgb), 0.3);
  animation: spinCW 1.2s linear infinite;
}

.spinner-ring--inner {
  inset: 10px;
  border-bottom-color: rgba(var(--accent-rgb), 0.8);
  border-left-color: rgba(var(--accent-rgb), 0.2);
  animation: spinCCW 1.8s linear infinite;
}

.spinner-halo {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.15) 0%, transparent 70%);
  animation: haloPulse 2s ease-in-out infinite alternate;
}

@keyframes spinCW {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinCCW {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes haloPulse {
  from {
    opacity: 0.5;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.loading-status {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  max-width: 36ch;
  transition: opacity 0.3s ease;
}

/* Signal shimmer bars */
.signal-shimmer {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 28px;
}

.signal-shimmer span {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(var(--blue-rgb), 0.4), rgba(var(--blue-rgb), 0.9));
  animation: signalBar 1.2s ease-in-out infinite;
}

.signal-shimmer span:nth-child(1) {
  height: 14px;
  animation-delay: 0.0s;
}

.signal-shimmer span:nth-child(2) {
  height: 20px;
  animation-delay: 0.15s;
}

.signal-shimmer span:nth-child(3) {
  height: 26px;
  animation-delay: 0.3s;
}

.signal-shimmer span:nth-child(4) {
  height: 20px;
  animation-delay: 0.45s;
}

.signal-shimmer span:nth-child(5) {
  height: 14px;
  animation-delay: 0.6s;
}

@keyframes signalBar {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ═══════════════════════════════════════════════════════
   RESULTS STATE
   ═══════════════════════════════════════════════════════ */
.card--results {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.results-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  text-align: center;
}

.results-greeting {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.03em;
}

/* ── Halo Ring ───────────────────────────────────────── */
.halo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
}

.halo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(7, 1, 15, 0), rgba(7, 1, 15, 0)) padding-box,
    conic-gradient(from 0deg,
      rgba(var(--blue-rgb), 0.9) 0%,
      rgba(var(--accent-rgb), 0.7) 35%,
      rgba(var(--purple-rgb), 0.3) 65%,
      rgba(var(--blue-rgb), 0.9) 100%) border-box;
  animation: haloSpin 8s linear infinite;
  box-shadow:
    0 0 28px rgba(var(--blue-rgb), 0.3),
    inset 0 0 28px rgba(var(--blue-rgb), 0.12);
}

.halo-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
  animation: haloPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.py-number {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--white) 0%, rgba(var(--blue-rgb), 0.9) 50%, rgba(var(--accent-rgb), 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 24px rgba(var(--blue-rgb), 0.5));
  position: relative;
  z-index: 2;
}

.py-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes haloSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Results Body / Typewriter ────────────────────────── */
.results-body {
  position: relative;
  max-height: 480px;
  overflow-y: auto;
  padding-right: var(--s2);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--blue-rgb), 0.3) transparent;
}

.results-body::-webkit-scrollbar {
  width: 4px;
}

.results-body::-webkit-scrollbar-track {
  background: transparent;
}

.results-body::-webkit-scrollbar-thumb {
  background: rgba(var(--blue-rgb), 0.3);
  border-radius: 4px;
}

/* Constellation thread that draws during typewriter */
.thread-results {
  width: 100%;
  height: 4px;
  margin-bottom: var(--s3);
  display: block;
}

.thread-draw {
  stroke: rgba(var(--blue-rgb), 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.typewriter-container {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
  max-width: 68ch;
  margin: 0 auto;
  min-height: 80px;
}

.typewriter-text p {
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.72;
}

.typewriter-text p:last-child {
  margin-bottom: 0;
}

.cursor {
  display: inline-block;
  color: rgba(var(--blue-rgb), 0.9);
  font-weight: 100;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 1px;
}

.cursor.hidden-cursor {
  display: none;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   SALES SECTION
   ═══════════════════════════════════════════════════════ */
.sales-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), 0.3), rgba(var(--accent-rgb), 0.3), transparent);
  margin-bottom: var(--s4);
}

.sales-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--s3);
}

.sales-copy {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  max-width: 64ch;
  margin-bottom: var(--s2);
}

.sales-copy:last-of-type {
  margin-bottom: var(--s4);
}

.sales-copy strong {
  color: var(--white);
  font-weight: 600;
}

.sales-copy em {
  color: rgba(var(--blue-rgb), 0.9);
  font-style: normal;
  font-weight: 500;
}

/* Product Card */
.product-card {
  position: relative;
  background: rgba(var(--purple-rgb), 0.25);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-bottom: var(--s4);
}

@supports (backdrop-filter: blur(1px)) {
  .product-card {
    backdrop-filter: blur(12px);
  }
}

.product-card-noise {
  position: absolute;
  inset: 0;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.product-img-wrap {
  overflow: hidden;
  background: rgba(var(--purple-rgb), 0.4);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.product-img:hover {
  opacity: 1;
  transform: scale(1.02);
}

.product-details {
  padding: var(--s4) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.product-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.price-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: var(--s1);
}

.price-now {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.price-was {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.price-badge {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--blue-rgb), 0.2));
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(var(--blue-rgb), 0.95);
  text-transform: uppercase;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--s1);
}

/* QR Code */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

.qr-inner {
  background: var(--white);
  border-radius: 14px;
  padding: var(--s2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  display: inline-block;
}

.qr-img {
  width: 140px;
  height: 140px;
  display: block;
  border-radius: 6px;
}

.qr-caption {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

/* Restart */
.restart-wrap {
  display: flex;
  justify-content: center;
  padding-top: var(--s2);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: var(--s3);
}

/* ═══════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--s3) var(--s3) var(--s4);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════
   TRANSITIONS & ANIMATION UTILITIES
   ═══════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

/* Entrance animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

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

/* Card state transitions */
.card-exit {
  animation: cardExit var(--ease-standard) forwards;
}

.card-enter {
  animation: cardEnter var(--ease-standard) forwards;
}

@keyframes cardExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

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

/* Sales section fade-up */
.sales-section {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) both;
}

/* ═══════════════════════════════════════════════════════
   MONTHLY ACCORDION
   ═══════════════════════════════════════════════════════ */
.monthly-accordion {
  border-top: 1px solid rgba(var(--blue-rgb), 0.15);
  padding-top: var(--s4);
  animation: fadeSlideUp 0.65s var(--ease-out-expo) both;
}

.monthly-accordion__header {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
  flex-wrap: wrap;
}

.monthly-accordion__icon {
  font-size: 1.3rem;
  line-height: 1;
}

.monthly-accordion__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.monthly-accordion__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* Scrollable list wrapper */
.monthly-accordion__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 4px;
}

@media (max-width: 700px) {
  .monthly-accordion__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .monthly-accordion__list {
    grid-template-columns: 1fr;
  }
}

/* Individual month button */
.month-item {
  border: 1px solid rgba(var(--blue-rgb), 0.18);
  border-radius: 14px;
  background: rgba(var(--purple-rgb), 0.15);
  overflow: hidden;
  transition: border-color 250ms ease, background 250ms ease, transform 200ms ease, box-shadow 250ms ease;
  cursor: pointer;
}

.month-item:hover {
  border-color: rgba(var(--blue-rgb), 0.55);
  background: rgba(var(--purple-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(var(--blue-rgb), 0.2), 0 0 12px rgba(var(--blue-rgb), 0.1);
}

.month-item:active {
  transform: translateY(0px) scale(0.98);
}

/* Month trigger button */
.month-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.month-trigger:focus-visible {
  outline: 2px solid rgba(var(--blue-rgb), 0.7);
  outline-offset: -2px;
  border-radius: 13px;
}

.month-trigger__label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.month-trigger__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .18);
  border: 1px solid rgba(var(--accent-rgb), .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(var(--blue-rgb), 0.9);
  flex-shrink: 0;
  font-family: var(--font-display);
}

.month-trigger__arrow {
  color: rgba(var(--blue-rgb), 0.5);
  flex-shrink: 0;
  transition: transform 200ms ease, color 200ms ease;
}

.month-item:hover .month-trigger__arrow {
  transform: translateX(3px);
  color: rgba(var(--blue-rgb), 0.9);
}

/* ═══════════════════════════════════════════════════════
   MONTH MODAL
   ═══════════════════════════════════════════════════════ */
.month-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
  background: rgba(7, 1, 15, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: overlayIn 250ms ease both;
}

.month-modal-overlay.is-closing {
  animation: overlayOut 250ms ease both;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes overlayOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.month-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(14, 3, 35, 0.92);
  border: 1px solid rgba(var(--blue-rgb), 0.55);
  box-shadow:
    0 0 0 1px rgba(var(--blue-rgb), 0.15),
    0 0 32px rgba(var(--blue-rgb), 0.4),
    0 0 80px rgba(var(--blue-rgb), 0.18),
    0 24px 64px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: modalIn 350ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.month-modal-overlay.is-closing .month-modal {
  animation: modalOut 250ms cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

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

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

/* Animated glow pulse around modal border */
.month-modal__glow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: transparent;
  box-shadow:
    0 0 20px rgba(var(--blue-rgb), 0.5),
    0 0 60px rgba(var(--blue-rgb), 0.2);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glowPulse {
  from {
    box-shadow: 0 0 20px rgba(var(--blue-rgb), 0.4), 0 0 60px rgba(var(--blue-rgb), 0.15);
  }

  to {
    box-shadow: 0 0 35px rgba(var(--blue-rgb), 0.75), 0 0 90px rgba(var(--blue-rgb), 0.3), 0 0 120px rgba(var(--accent-rgb), 0.1);
  }
}

.month-modal__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid rgba(var(--blue-rgb), 0.18);
  background: rgba(var(--purple-rgb), 0.25);
  flex-shrink: 0;
}

.month-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.month-modal__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--blue-rgb), 0.2));
  border: 1px solid rgba(var(--blue-rgb), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(var(--blue-rgb), 1);
  font-family: var(--font-display);
  box-shadow: 0 0 12px rgba(var(--blue-rgb), 0.3);
}

.month-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff 0%, rgba(var(--blue-rgb), 0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.month-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease;
  flex-shrink: 0;
}

.month-modal__close:hover {
  background: rgba(var(--blue-rgb), 0.15);
  border-color: rgba(var(--blue-rgb), 0.4);
  color: rgba(var(--blue-rgb), 0.95);
  transform: scale(1.08);
}

.month-modal__close:active {
  transform: scale(0.95);
}

.month-modal__close:focus-visible {
  outline: 2px solid rgba(var(--blue-rgb), 0.7);
  outline-offset: 3px;
}

.month-modal__body {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  padding: var(--s4);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--blue-rgb), 0.4) transparent;
  flex: 1;
}

.month-modal__body::-webkit-scrollbar {
  width: 5px;
}

.month-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.month-modal__body::-webkit-scrollbar-thumb {
  background: rgba(var(--blue-rgb), 0.35);
  border-radius: 4px;
}

.month-modal__body p {
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.1em;
}

.month-modal__body p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  .orb,
  .thread,
  .star,
  .halo-ring,
  .halo-glow,
  .spinner-ring--outer,
  .spinner-ring--inner,
  .spinner-halo,
  .signal-shimmer span,
  .cursor {
    animation: none !important;
  }

  .spinner-ring--outer {
    border-top-color: rgba(var(--blue-rgb), 0.9);
  }

  .spinner-ring--inner {
    border-bottom-color: rgba(var(--accent-rgb), 0.8);
  }

  .spinner-halo {
    opacity: 0.4;
  }

  .card-exit,
  .card-enter,
  .hero-text,
  .site-header,
  .card,
  .sales-section {
    animation: none !important;
  }

  .thread {
    stroke-dashoffset: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .card {
    padding: var(--s4) var(--s3);
  }

  .form-row--three {
    grid-template-columns: 1fr;
  }

  .form-row--two {
    grid-template-columns: 1fr;
  }

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

  .product-img {
    max-height: 180px;
  }

  .py-number {
    font-size: 4rem;
  }

  .halo-wrap {
    width: 140px;
    height: 140px;
  }

  .header-tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2rem;
  }

  .card {
    border-radius: 16px;
  }
}

/* ═══════════════════════════════════════════════════════
   NAV TABS
   ═══════════════════════════════════════════════════════ */
.site-header {
  flex-direction: column;
  gap: 0;
}

.site-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: var(--s1) var(--s3) 0;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 40px 40px 0 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(var(--purple-rgb), 0.1);
  border: 1px solid rgba(var(--blue-rgb), 0.12);
  border-bottom: none;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
  position: relative;
}

.nav-tab:hover {
  color: rgba(var(--blue-rgb), 0.9);
  background: rgba(var(--purple-rgb), 0.22);
  border-color: rgba(var(--blue-rgb), 0.28);
}

.nav-tab--active {
  color: var(--white);
  background: rgba(var(--purple-rgb), 0.35);
  border-color: rgba(var(--blue-rgb), 0.4);
}

.nav-tab--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), 0.8), transparent);
}

/* ═══════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
.services-section {
  margin-top: var(--s4);
  padding-top: var(--s4);
  animation: fadeSlideUp 0.7s var(--ease-out-expo) both;
}

.services-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), 0.35), transparent);
  margin-bottom: var(--s4);
}

.services-header {
  text-align: center;
  margin-bottom: var(--s4);
}

.services-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--s1);
  filter: drop-shadow(0 0 12px rgba(var(--blue-rgb), 0.5));
}

.services-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--white) 0%, rgba(var(--blue-rgb), 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--s1);
}

.services-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s3);
}

.service-card {
  position: relative;
  background: rgba(var(--purple-rgb), 0.14);
  border: 1px solid rgba(var(--blue-rgb), 0.15);
  border-radius: 16px;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: transform 300ms var(--ease-out-expo),
    border-color 300ms ease,
    box-shadow 300ms ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--blue-rgb), 0.45);
  box-shadow: 0 8px 32px rgba(var(--blue-rgb), 0.15),
    0 0 0 1px rgba(var(--blue-rgb), 0.12);
}

.service-card--featured {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(135deg,
      rgba(var(--purple-rgb), 0.25) 0%,
      rgba(var(--accent-rgb), 0.12) 100%);
  grid-column: span 2;
}

.service-card--featured:hover {
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.22),
    0 0 0 1px rgba(var(--accent-rgb), 0.18);
}

.service-card__icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(var(--blue-rgb), 0.4));
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
  flex: 1;
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(var(--blue-rgb), 0.9);
  border: 1px solid rgba(var(--blue-rgb), 0.3);
  background: rgba(var(--blue-rgb), 0.07);
  transition: background 200ms ease, border-color 200ms ease,
    color 200ms ease, transform 150ms ease;
  align-self: flex-start;
  cursor: pointer;
}

.service-card__btn:hover {
  background: rgba(var(--blue-rgb), 0.18);
  border-color: rgba(var(--blue-rgb), 0.6);
  color: var(--white);
  transform: translateX(3px);
}

.service-card--featured .service-card__btn {
  color: rgba(var(--accent-rgb), 0.9);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
}

.service-card--featured .service-card__btn:hover {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: rgba(var(--accent-rgb), 0.65);
  color: var(--white);
}

@media (max-width: 600px) {
  .service-card--featured {
    grid-column: span 1;
  }


  .services-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 2px;
  }

  .nav-tab {
    padding: 7px 14px;
    font-size: 0.72rem;
  }
}

/* ═══════════════════════════════════════════════════════
   FIRST NAME INSIGHT MODAL
   ═══════════════════════════════════════════════════════ */
.fn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 1, 15, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
  animation: fadeIn 250ms ease both;
}

.fn-modal-overlay.hidden {
  display: none;
}

.fn-modal {
  position: relative;
  background: linear-gradient(160deg, #0f0328 0%, #07010f 100%);
  border: 1px solid rgba(var(--blue-rgb), 0.28);
  border-radius: 24px;
  padding: var(--s5);
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow:
    0 0 0 1px rgba(var(--blue-rgb), 0.08),
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(var(--accent-rgb), 0.12);
  animation: modalIn 320ms var(--ease-out-expo) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--blue-rgb), 0.2) transparent;
}

.fn-modal::-webkit-scrollbar {
  width: 4px;
}

.fn-modal::-webkit-scrollbar-thumb {
  background: rgba(var(--blue-rgb), 0.2);
  border-radius: 4px;
}

.fn-modal__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Header */
.fn-modal__header {
  text-align: center;
  margin-bottom: var(--s4);
}

.fn-modal__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--s2);
}

.fn-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: var(--s1);
}

.fn-modal__sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.fn-modal__sub strong {
  color: rgba(var(--blue-rgb), 0.9);
}

/* Close button */
.fn-modal__close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.fn-modal__close:hover {
  color: var(--white);
  background: rgba(var(--blue-rgb), 0.15);
  border-color: rgba(var(--blue-rgb), 0.4);
}

/* Input step */
.fn-field-wrap {
  margin-bottom: var(--s3);
}

.fn-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--s1);
}

.fn-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(var(--blue-rgb), 0.2);
  border-radius: 12px;
  padding: 14px var(--s2);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.fn-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.fn-input:focus {
  border-color: rgba(var(--blue-rgb), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.14);
}

.fn-error {
  display: block;
  font-size: 0.78rem;
  color: #ff8080;
  min-height: 1.1em;
  margin-top: 6px;
}

/* Submit button */
.fn-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  padding: 16px var(--s4);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, #4B0082 60%, #00BFFF 100%);
  background-size: 200% auto;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
  transition: transform 150ms ease, box-shadow 150ms ease, background-position 350ms ease;
}

.fn-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.6);
  background-position: right center;
}

/* Results step */
.fn-results-body {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.fn-result-block {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.fn-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--blue-rgb), 0.85);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(var(--blue-rgb), 0.18);
}

.fn-result-text {
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.fn-result-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-rgb), 0.35), rgba(var(--blue-rgb), 0.25), transparent);
  margin: var(--s1) 0;
}

/* Footer buttons */
.fn-modal__footer {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.fn-back-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.fn-back-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.fn-close-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(var(--accent-rgb), 0.25);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.fn-close-btn:hover {
  background: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-1px);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

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

@media (max-width: 480px) {
  .fn-modal {
    padding: var(--s4) var(--s3);
  }

  .fn-modal__footer {
    flex-direction: column;
  }
}

/* ── Love Match extras ──────────────────── */
.lm-modal {
  max-width: 580px;
}

.lm-mode-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

.lm-mode-option {
  cursor: pointer;
  display: block;
}

.lm-mode-option input[type="radio"] {
  display: none;
}

.lm-mode-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--s2) var(--s2);
  border-radius: 12px;
  border: 1px solid rgba(var(--blue-rgb), 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.4;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.lm-mode-option input:checked+.lm-mode-label {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--white);
}

.lm-mode-icon {
  font-size: 1.4rem;
}

.lm-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.lm-swap-btn {
  flex: 0 0 auto;
  padding: 12px var(--s2);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(var(--blue-rgb), 0.9);
  border: 1px solid rgba(var(--blue-rgb), 0.3);
  background: rgba(var(--blue-rgb), 0.08);
  transition: background 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.lm-swap-btn:hover {
  background: rgba(var(--blue-rgb), 0.18);
  transform: rotate(180deg);
}

@media (max-width: 480px) {
  .lm-mode-wrap {
    grid-template-columns: 1fr;
  }

  .fn-modal__footer {
    gap: var(--s1);
  }

  .lm-swap-btn {
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════════════
   YEAR ESS MODAL
   ═══════════════════════════════════════════════════════════ */
.ye-modal {
  max-width: 600px;
}

.ye-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.ye-year-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

/* ── Big Number Display ─────────────────────────────────── */
.ye-number-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) 0;
}

.ye-number-ring {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(7, 1, 15, 0), rgba(7, 1, 15, 0)) padding-box,
    conic-gradient(from 0deg,
      rgba(var(--blue-rgb), .9) 0%,
      rgba(var(--accent-rgb), .7) 40%,
      rgba(var(--purple-rgb), .4) 70%,
      rgba(var(--blue-rgb), .9) 100%) border-box;
  box-shadow:
    0 0 30px rgba(var(--blue-rgb), .25),
    0 0 60px rgba(var(--accent-rgb), .12);
  animation: haloSpin 10s linear infinite;
}

.ye-number-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .15) 0%, transparent 70%);
}

.ye-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(var(--blue-rgb), .9) 60%, rgba(var(--accent-rgb), .8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}

.ye-number-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* Pop animation when result shows */
@keyframes yePop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

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

  100% {
    transform: scale(1);
  }
}

.ye-number-ring.ye-pop {
  animation: yePop 0.5s var(--ease-out-expo) both, haloSpin 10s linear 0.5s infinite;
}

/* number input styling */
.ye-modal input[type="number"] {
  -moz-appearance: textfield;
}

.ye-modal input[type="number"]::-webkit-outer-spin-button,
.ye-modal input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 520px) {
  .ye-name-row {
    grid-template-columns: 1fr;
  }

  .ye-year-row {
    grid-template-columns: 1fr;
  }
}