/* ==========================================================================
   Ergoterapist Miray Esen — Sayfa Bazlı Soft & Canlı Renk Kimliği + Animasyonlar
   - .theme-home     : Güneşli Sıcak Krem / Mercan (#E07A5F) & Bal Sarısı (#F4B942)
   - .theme-services : Soft Lavanta / Zarif Mor (#6D5BD0) & Pastel Şeftali
   - .theme-guide    : Ferah Mint / Zümrüt Doğa Yeşili (#2A8565)
   - .theme-about    : Sıcak Kayısı & Terracotta (#D96B4F / #3B2820)
   - .theme-contact  : Bebe Mavisi (#3A7CA5 / #7EC4E8) & Pastel Pembe (#E87A9F)
   ========================================================================== */

:root {
  --theme-primary: #E07A5F;
  --theme-primary-dark: #C96247;
  --theme-primary-tint: #FCEAE4;
  --theme-heading: #3B2820;
  --theme-accent: #F4B942;
  --theme-glow-rgb: 244, 185, 66;
  --ink: #2C2928;
  --ink-muted: #5F5B58;
  --ink-light: #87827E;
}

/* 1. Ana Sayfa — Sıcak Krem, Mercan & Bal Sarısı */
body.theme-home {
  --theme-primary: #E07A5F;
  --theme-primary-dark: #C96247;
  --theme-primary-tint: #FCEAE4;
  --theme-heading: #3B2820;
  --theme-accent: #F4B942;
  --theme-glow-rgb: 244, 185, 66;
  --ink: #3B2820;
  --ink-muted: #6B554B;
  --ink-light: #967D72;
}

/* 2. Uzmanlık Alanları — Soft Lavanta & Zarif Mor */
body.theme-services {
  --theme-primary: #6D5BD0;
  --theme-primary-dark: #5846B8;
  --theme-primary-tint: #EDE9FE;
  --theme-heading: #362B66;
  --theme-accent: #F4A28C;
  --theme-glow-rgb: 147, 130, 232;
  --ink: #2B2542;
  --ink-muted: #5C5574;
  --ink-light: #867FA0;
}

/* 3. Ebeveyn Rehberi — Ferah Mint & Canlı Zümrüt */
body.theme-guide {
  --theme-primary: #2A8565;
  --theme-primary-dark: #1F6B50;
  --theme-primary-tint: #E2F5EC;
  --theme-heading: #194A39;
  --theme-accent: #F4B942;
  --theme-glow-rgb: 77, 184, 145;
  --ink: #1B382E;
  --ink-muted: #4D6B60;
  --ink-light: #769388;
}

/* 4. Hakkımda — Sıcak Kayısı & Terracotta (Miray Esen Fotoğrafıyla Bütünleşik) */
body.theme-about {
  --theme-primary: #D96B4F;
  --theme-primary-dark: #BE553A;
  --theme-primary-tint: #FDE8D7;
  --theme-heading: #3B2820;
  --theme-accent: #F4B942;
  --theme-glow-rgb: 244, 185, 66;
  --ink: #3B2820;
  --ink-muted: #6E564B;
  --ink-light: #9A8075;
}

/* 5. İletişim — Cana Yakın Bebe Mavisi & Pastel Pembe */
body.theme-contact {
  --theme-primary: #3A7CA5;
  --theme-primary-dark: #2E678B;
  --theme-primary-tint: #EAF6FF;
  --theme-heading: #3A7CA5;
  --theme-accent: #E87A9F;
  --theme-glow-rgb: 232, 122, 159;
  --ink: #2B4557;
  --ink-muted: #5C7385;
  --ink-light: #859BAE;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html,
body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

main,
main > section {
  overflow-x: clip;
}

body {
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: 'Quicksand', ui-rounded, sans-serif;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   Theme-Aware Utility Helpers & Kesin Dairesel Logo Koruması
   -------------------------------------------------------------------------- */
.brand-logo-circle {
  border-radius: 50% !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.theme-logo-badge {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--theme-primary) 42%, transparent);
}

body.theme-contact .theme-logo-badge {
  background: linear-gradient(135deg, #5DA9D6, #E87A9F);
  box-shadow: 0 10px 24px -8px rgba(232, 122, 159, 0.42);
}

.theme-brand-sub {
  color: var(--theme-primary);
}

body.theme-contact .theme-brand-sub {
  color: #E87A9F;
}

.theme-primary-btn {
  background-color: var(--theme-primary);
  color: #FFFFFF;
  box-shadow: 0 12px 26px -6px color-mix(in srgb, var(--theme-primary) 38%, transparent);
}

.theme-primary-btn:hover {
  background-color: var(--theme-primary-dark);
}

body.theme-contact .theme-primary-btn {
  background-color: #E87A9F;
  color: #FFFFFF;
  box-shadow: 0 12px 26px -6px rgba(232, 122, 159, 0.42);
}

body.theme-contact .theme-primary-btn:hover {
  background-color: #D46288;
}

.nav-link {
  position: relative;
  color: var(--ink-muted);
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-link:hover {
  color: var(--theme-primary);
  background-color: var(--theme-primary-tint);
}

.nav-link.is-active {
  background-color: var(--theme-primary-tint);
  color: var(--theme-primary);
  font-weight: 700;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--theme-primary);
}

body.theme-contact .nav-link.is-active::after {
  background: linear-gradient(90deg, #5DA9D6, #E87A9F);
}

.mobile-nav-link {
  color: var(--ink);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background-color: var(--theme-primary-tint);
  color: var(--theme-primary);
}

.mobile-nav-link.is-active {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Soft Shadows & Organic Frames
   -------------------------------------------------------------------------- */
.shadow-soft {
  box-shadow: 0 12px 32px -12px rgba(30, 41, 59, 0.08),
              0 4px 12px -4px rgba(30, 41, 59, 0.04);
}

.shadow-soft-lg {
  box-shadow: 0 24px 52px -16px rgba(30, 41, 59, 0.13),
              0 8px 22px -8px rgba(30, 41, 59, 0.06);
}

.organic-hero-frame {
  border-radius: 2.75rem 4.5rem 2.75rem 4rem;
}

.organic-portrait-frame {
  border-radius: 3.75rem 2.25rem 3.75rem 2.25rem;
}

/* --------------------------------------------------------------------------
   Organic Wave Dividers
   -------------------------------------------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  user-select: none;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 2px);
  margin-left: -1px;
  height: 46px;
}

@media (min-width: 768px) {
  .wave-divider svg {
    height: 70px;
  }
}

/* --------------------------------------------------------------------------
   Sweet Floating & Ambient Animations
   -------------------------------------------------------------------------- */
@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -11px, 0) rotate(2.2deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, 9px, 0) rotate(-2.2deg); }
}

@keyframes floatGentle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.88; }
  50% { transform: scale(1.14) rotate(8deg); opacity: 1; }
}

@keyframes breatheSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes blobMorph {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 56% 44% 46% 54% / 52% 48% 52% 48%;
  }
  50% {
    transform: translate3d(10px, -10px, 0) scale(1.04);
    border-radius: 44% 56% 58% 42% / 48% 56% 44% 52%;
  }
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  75% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.animate-float-slow { animation: floatSlow 7.2s ease-in-out infinite; }
.animate-float-reverse { animation: floatReverse 8.2s ease-in-out infinite; }
.animate-float-gentle { animation: floatGentle 5.4s ease-in-out infinite; }
.animate-float-gentle-delayed { animation: floatGentle 6.3s ease-in-out 1.4s infinite; }
.animate-twinkle { animation: twinkle 4.2s ease-in-out infinite; }
.animate-blob { animation: blobMorph 14s ease-in-out infinite; }
.animate-wa-pulse { animation: waPulse 2.6s cubic-bezier(0.24, 0, 0.38, 1) infinite; }

.card-lift {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-6px);
}

/* --------------------------------------------------------------------------
   1. HERO & ETKİLEŞİMLİ GÖKKUŞAĞI ÇİZİLME + PARILTI ANİMASYONU
   -------------------------------------------------------------------------- */
@keyframes rainbowArcDraw {
  0% {
    stroke-dashoffset: 104;
    opacity: 0.25;
  }
  20% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes rainbowGlowAura {
  0% {
    filter: drop-shadow(0 4px 10px rgba(244, 185, 66, 0.14));
  }
  45% {
    filter: drop-shadow(0 0 18px rgba(244, 185, 66, 0.58))
            drop-shadow(0 0 28px rgba(224, 122, 95, 0.36));
  }
  100% {
    filter: drop-shadow(0 6px 14px rgba(244, 185, 66, 0.2));
  }
}

@keyframes rainbowTwinklePop {
  0% {
    transform: scale(0.35) rotate(-25deg);
    opacity: 0;
  }
  55% {
    transform: scale(1.24) rotate(12deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.95;
  }
}

.rainbow-arc {
  stroke-dasharray: 104;
  stroke-dashoffset: 0;
}

.hero-rainbow-intro .rainbow-arc,
.interactive-rainbow.is-drawing .rainbow-arc {
  stroke-dasharray: 104;
  stroke-dashoffset: 104;
  animation: rainbowArcDraw 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-rainbow-intro .rainbow-arc-1,
.interactive-rainbow.is-drawing .rainbow-arc-1 { animation-delay: 0.08s; }
.hero-rainbow-intro .rainbow-arc-2,
.interactive-rainbow.is-drawing .rainbow-arc-2 { animation-delay: 0.18s; }
.hero-rainbow-intro .rainbow-arc-3,
.interactive-rainbow.is-drawing .rainbow-arc-3 { animation-delay: 0.28s; }
.hero-rainbow-intro .rainbow-arc-4,
.interactive-rainbow.is-drawing .rainbow-arc-4 { animation-delay: 0.38s; }
.hero-rainbow-intro .rainbow-arc-5,
.interactive-rainbow.is-drawing .rainbow-arc-5 { animation-delay: 0.48s; }

.hero-rainbow-intro .figure-svg,
.interactive-rainbow.is-drawing .figure-svg {
  animation: rainbowGlowAura 1.5s ease-out forwards;
}

.hero-rainbow-intro .rainbow-sparkle,
.interactive-rainbow.is-drawing .rainbow-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: rainbowTwinklePop 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both,
             twinkle 3.4s ease-in-out 1.5s infinite;
}

.hero-rainbow-intro .rainbow-sparkle-2,
.interactive-rainbow.is-drawing .rainbow-sparkle-2 {
  animation-delay: 0.82s, 1.75s;
}

.hero-rainbow-intro .rainbow-sparkle-3,
.interactive-rainbow.is-drawing .rainbow-sparkle-3 {
  animation-delay: 0.96s, 2.05s;
}

/* --------------------------------------------------------------------------
   2. SCROLL REVEAL + PARLAYARAK AÇILAN YAZILAR (.reveal & .reveal-glow)
   -------------------------------------------------------------------------- */
.js-enabled .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-glow {
  position: relative;
}

.js-enabled .reveal-glow {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .reveal-glow.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: textWarmGlowPulse 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.js-enabled .reveal-glow::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border-radius: 1rem;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    112deg,
    transparent 18%,
    rgba(255, 250, 232, 0.78) 44%,
    rgba(var(--theme-glow-rgb), 0.28) 52%,
    transparent 76%
  );
  transform: translate3d(-45%, 0, 0);
}

.js-enabled .reveal-glow.is-visible::after {
  animation: textShimmerSweep 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

@keyframes textWarmGlowPulse {
  0% {
    text-shadow: 0 0 0 rgba(var(--theme-glow-rgb), 0);
  }
  42% {
    text-shadow: 0 0 18px rgba(var(--theme-glow-rgb), 0.42),
                 0 0 32px rgba(255, 245, 214, 0.55);
  }
  100% {
    text-shadow: 0 0 0 rgba(var(--theme-glow-rgb), 0);
  }
}

@keyframes textShimmerSweep {
  0% {
    opacity: 0;
    transform: translate3d(-42%, 0, 0);
  }
  30% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translate3d(42%, 0, 0);
  }
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* --------------------------------------------------------------------------
   3. ETKİLEŞİMLİ (TIKLANABİLİR) ŞİRİN FİGÜRLER
   -------------------------------------------------------------------------- */
.interactive-figure {
  pointer-events: auto !important;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  outline: none;
}

/* Mobil ekranlarda arka plan etkileşimli figürlerinin metinlerle çakışmasını önle */
@media (max-width: 639px) {
  .interactive-figure:not(.hero-rainbow-intro) {
    transform-origin: center;
    opacity: 0.88;
  }
}

.interactive-figure:focus-visible {
  outline: 2px dashed var(--theme-accent);
  outline-offset: 4px;
  border-radius: 999px;
}

.interactive-figure .figure-svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.28s ease;
  will-change: transform, filter;
}

.interactive-figure:hover .figure-svg {
  transform: scale(1.11);
  filter: drop-shadow(0 6px 14px rgba(244, 185, 66, 0.34));
}

.interactive-figure:active .figure-svg {
  transform: scale(0.96);
}

/* Güneş Tıklama Efekti (.interactive-sun) */
@keyframes sunShineBurst {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(244, 185, 66, 0));
  }
  38% {
    transform: scale(1.28) rotate(26deg);
    filter: drop-shadow(0 0 18px rgba(244, 185, 66, 0.95))
            drop-shadow(0 0 38px rgba(255, 206, 84, 0.72));
  }
  68% {
    transform: scale(1.14) rotate(-8deg);
    filter: drop-shadow(0 0 12px rgba(244, 185, 66, 0.65));
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 2px 6px rgba(244, 185, 66, 0.22));
  }
}

.interactive-sun.is-shining .figure-svg {
  animation: sunShineBurst 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sunHaloExpand {
  0% {
    transform: scale(0.65);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.95);
    opacity: 0;
  }
}

.sun-halo-ring {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  pointer-events: none;
  border: 3px solid rgba(244, 185, 66, 0.75);
  background: radial-gradient(circle, rgba(255, 224, 122, 0.36), transparent 68%);
  animation: sunHaloExpand 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Bulut Tıklama + Yağmur Damlaları Efekti (.interactive-cloud) */
@keyframes cloudBounceWiggle {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  22%  { transform: translate3d(0, -9px, 0) scale(1.12) rotate(-5deg); }
  46%  { transform: translate3d(0, -3px, 0) scale(1.06) rotate(5deg); }
  70%  { transform: translate3d(0, -6px, 0) scale(1.08) rotate(-3deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

.interactive-cloud.is-raining .figure-svg {
  animation: cloudBounceWiggle 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 6px 14px rgba(126, 196, 232, 0.45));
}

@keyframes raindropFall {
  0% {
    transform: translate3d(0, 0, 0) scale(0.55);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
    transform: translate3d(0, 9px, 0) scale(1);
  }
  100% {
    transform: translate3d(-4px, 54px, 0) scale(0.85);
    opacity: 0;
  }
}

.cloud-raindrop {
  position: absolute;
  top: 76%;
  width: 9px;
  height: 13px;
  pointer-events: none;
  opacity: 0;
  animation: raindropFall 0.82s cubic-bezier(0.32, 0, 0.67, 1) forwards;
  will-change: transform, opacity;
}

/* Yıldız Tıklama 360° Dönüş + Zıplama Efekti (.interactive-star) */
@keyframes starSpinHop {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(244, 185, 66, 0));
  }
  45% {
    transform: translate3d(0, -12px, 0) scale(1.34) rotate(210deg);
    filter: drop-shadow(0 0 16px rgba(244, 185, 66, 0.95))
            drop-shadow(0 0 28px rgba(255, 224, 122, 0.75));
  }
  80% {
    transform: translate3d(0, -3px, 0) scale(1.1) rotate(360deg);
    filter: drop-shadow(0 0 10px rgba(244, 185, 66, 0.55));
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(360deg);
    filter: drop-shadow(0 0 0 rgba(244, 185, 66, 0));
  }
}

.interactive-star.is-spinning .figure-svg {
  animation: starSpinHop 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Gökkuşağı Tıklandığında Etrafında Parlayan Minik Yıldızlar */
@keyframes rainbowStarBurst {
  0% {
    transform: translate3d(0, 0, 0) scale(0.2) rotate(0deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
    transform: translate3d(var(--tx, 0px), var(--ty, -14px), 0) scale(1.15) rotate(90deg);
  }
  100% {
    transform: translate3d(calc(var(--tx, 0px) * 1.45), calc(var(--ty, -14px) * 1.45), 0) scale(0.4) rotate(200deg);
    opacity: 0;
  }
}

.rainbow-burst-star {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  animation: rainbowStarBurst 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   Wizard & Accordion Transitions
   -------------------------------------------------------------------------- */
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wizard-animate {
  animation: stepSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-item[data-open="true"] .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

.accordion-icon {
  background-color: var(--theme-primary-tint);
  color: var(--theme-primary);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.25s ease,
              color 0.25s ease;
}

.accordion-item[data-open="true"] .accordion-icon {
  transform: rotate(45deg);
  background-color: var(--theme-primary);
  color: #FFFFFF;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --------------------------------------------------------------------------
   4. UZMANLIK ALANLARI PARILTILI & GÖKKUŞAKLI DETAY MODALI
   -------------------------------------------------------------------------- */
body.modal-open {
  overflow: hidden;
}

.therapy-modal-backdrop {
  background: rgba(39, 32, 72, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.therapy-modal-backdrop.is-open {
  opacity: 1;
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

.therapy-modal-panel {
  box-shadow: 0 32px 72px -18px rgba(39, 32, 72, 0.34),
              0 0 0 1px rgba(109, 91, 208, 0.14),
              0 0 42px -8px rgba(244, 185, 66, 0.28);
  will-change: transform, opacity;
}

.therapy-modal-backdrop.is-open .therapy-modal-panel {
  animation: modalPopIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalSparkleFloat {
  0% {
    opacity: 0;
    transform: scale(0.25) translate3d(0, 8px, 0) rotate(-35deg);
    filter: drop-shadow(0 0 0 rgba(244, 185, 66, 0));
  }
  38% {
    opacity: 1;
    transform: scale(1.26) translate3d(0, -5px, 0) rotate(18deg);
    filter: drop-shadow(0 0 12px rgba(244, 185, 66, 0.92));
  }
  75% {
    opacity: 0.9;
    transform: scale(0.96) translate3d(0, -10px, 0) rotate(36deg);
    filter: drop-shadow(0 0 6px rgba(244, 185, 66, 0.55));
  }
  100% {
    opacity: 0.25;
    transform: scale(0.82) translate3d(0, -13px, 0) rotate(48deg);
    filter: drop-shadow(0 0 0 rgba(244, 185, 66, 0));
  }
}

.modal-rainbow-wrap.is-animating .rainbow-arc {
  stroke-dasharray: 104;
  stroke-dashoffset: 104;
  animation: rainbowArcDraw 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal-rainbow-wrap.is-animating .rainbow-arc-1 { animation-delay: 0.08s; }
.modal-rainbow-wrap.is-animating .rainbow-arc-2 { animation-delay: 0.18s; }
.modal-rainbow-wrap.is-animating .rainbow-arc-3 { animation-delay: 0.28s; }
.modal-rainbow-wrap.is-animating .rainbow-arc-4 { animation-delay: 0.38s; }
.modal-rainbow-wrap.is-animating .rainbow-arc-5 { animation-delay: 0.48s; }

.modal-rainbow-wrap.is-animating .modal-rainbow-svg {
  animation: rainbowGlowAura 1.5s ease-out forwards;
}

.modal-rainbow-wrap .modal-sparkle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.modal-rainbow-wrap.is-animating .modal-sparkle {
  animation: modalSparkleFloat 1.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal-rainbow-wrap.is-animating .modal-sparkle-1 { animation-delay: 0.22s; }
.modal-rainbow-wrap.is-animating .modal-sparkle-2 { animation-delay: 0.38s; }
.modal-rainbow-wrap.is-animating .modal-sparkle-3 { animation-delay: 0.52s; }
.modal-rainbow-wrap.is-animating .modal-sparkle-4 { animation-delay: 0.66s; }
.modal-rainbow-wrap.is-animating .modal-sparkle-5 { animation-delay: 0.8s; }

.therapy-modal-scroll::-webkit-scrollbar {
  width: 7px;
}

.therapy-modal-scroll::-webkit-scrollbar-track {
  background: #F5F3FF;
  border-radius: 999px;
}

.therapy-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(109, 91, 208, 0.32);
  border-radius: 999px;
}

.therapy-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(109, 91, 208, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-enabled .reveal,
  .js-enabled .reveal-glow {
    opacity: 1;
    transform: none;
  }
  .rainbow-arc {
    stroke-dashoffset: 0 !important;
  }
}
