/* ==========================================================================
   Dalia Theme System — depth, light, and motion layers.
   ========================================================================== */

.dalia-theme {
  --dl-violet: #7c3aed;
  --dl-violet-soft: rgba(124, 58, 237, 0.35);
  --dl-violet-faint: rgba(124, 58, 237, 0.14);
  --dl-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dl-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Type: Playfair Display -> Fraunces ---------- */

.dalia-theme :is(
  h1, h2, .font-display,
  .affirm-title, .confirm-stat, .confirm-title, .display, .exit-save-title,
  .face-progress-pct, .modal-title, .secret-title, .sketch-name,
  .v11-upsell-headline, .v16e-rcard-body h3, .v16ref .faq h3,
  .v16ref .framing h3, .v16ref .holistic h3, .v16ref .live-num,
  .v16ref .report .num, .v16ref .report h2, .v16ref .save-callout b,
  .v16ref .section-title, .v16ref .stack h3, .v16ref .total-line b, .v16ref h1
):not(.dv-root *) {
  font-family: "Fraunces", "Playfair Display", Georgia, serif !important;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.015em;
}

.dalia-theme :is(.qtitle, .qsub, .opt-label, .opt-sub, .cta, .v9-body-text, .section-label, .font-sans) {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Depth: a fixed sky behind every screen ---------- */

.dalia-theme {
  position: relative;
  isolation: isolate;
}

/* Far stars: two tiling layers drifting at different speeds = parallax. */
.dalia-theme::before,
.dalia-theme::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
}

/* Avoid duplicate starfield when dalia-theme is on both body and container */
.dalia-theme .dalia-theme::before,
.dalia-theme .dalia-theme::after {
  display: none !important;
}

.dalia-theme::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 68% 42%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.2px 1.2px at 38% 76%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 88% 88%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 52% 8%, rgba(255, 255, 255, 0.45), transparent 60%);
  background-size: 340px 340px;
  opacity: 0.55;
  animation: dl-drift 140s linear infinite;
}

.dalia-theme::after {
  background-image:
    radial-gradient(1.6px 1.6px at 24% 60%, rgba(214, 196, 255, 0.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 80% 22%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(60% 40% at 50% 0%, var(--dl-violet-faint), transparent 70%);
  background-size: 520px 520px, 520px 520px, 100% 100%;
  background-repeat: repeat, repeat, no-repeat;
  opacity: 0.7;
  animation: dl-drift 90s linear infinite reverse, dl-twinkle 6s ease-in-out infinite;
}

.dalia-theme .screen { z-index: 1; }
.dalia-theme .screen.active { z-index: 10; }

@keyframes dl-drift {
  from { translate: 0 0; }
  to { translate: -340px -170px; }
}

@keyframes dl-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

/* ---------- Centered Astronomical Halo & Astrolabe Dial on Interstitial Screens ---------- */

.dalia-theme .screen-bg-illus {
  perspective: 900px;
  overflow: hidden;
}

/* Soft top aura only; the halo + ring now live on the emblem itself (.dl-emblem)
   so they stay concentric with the constellation on every screen. */
.dalia-theme .screen-bg-illus::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  width: 140%;
  height: 70%;
  translate: -50% 0;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(139, 92, 246, 0.10), transparent 70%);
}

.dalia-theme .screen-bg-illus::after { content: none; }

.dalia-theme .dl-emblem {
  position: relative;
  isolation: isolate;
}

.dalia-theme .dl-emblem::before,
.dalia-theme .dl-emblem::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Celestial aura behind the instrument */
.dalia-theme .dl-emblem::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.11) 0%, rgba(139, 92, 246, 0.20) 38%, rgba(12, 8, 28, 0) 70%);
  filter: blur(6px);
  animation: dl-halo-breathe 7s ease-in-out infinite;
}

/* Hairline horizon ring */
.dalia-theme .dl-emblem::after {
  width: 226px;
  height: 226px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  box-shadow: 0 0 0 22px rgba(196, 181, 253, 0.03), inset 0 0 40px rgba(139, 92, 246, 0.10);
  animation: dl-astrolabe-pulse 9s ease-in-out infinite;
}

@keyframes dl-halo-breathe {
  0%, 100% { scale: 0.96; opacity: 0.82; }
  50% { scale: 1.05; opacity: 1; }
}

@keyframes dl-astrolabe-pulse {
  0%, 100% { scale: 1; opacity: 0.65; }
  50% { scale: 1.025; opacity: 0.95; }
}

/* ---------- Astronomical Constellation Instrument & Live Draw-On ---------- */

.dalia-theme .affirm-center {
  position: relative;
  z-index: 2;
  max-width: 346px;
  margin: 0 auto;
}

.dalia-theme :is(.screen-bg-illus, .affirm-center) svg {
  filter:
    drop-shadow(0 0 10px rgba(196, 181, 253, 0.28))
    drop-shadow(0 0 24px rgba(139, 92, 246, 0.32));
  overflow: visible;
}

/* Unified Violet + Lavender + Soft Rose-Aurora palette on constellation paths and vertices */
.dalia-theme .affirm-center svg :is(path[fill="none"], line:not([stroke="white"])) {
  stroke: #e9d5ff !important;
  stroke-opacity: 0.88;
}

.dalia-theme .affirm-center svg circle[stroke-dasharray] {
  stroke: rgba(196, 181, 253, 0.26) !important;
  transform-box: fill-box;
  transform-origin: center;
}

.dalia-theme .affirm-center svg circle[stroke-dasharray]:nth-of-type(odd) {
  animation: dl-ring-spin 72s linear infinite;
}

.dalia-theme .affirm-center svg circle[stroke-dasharray]:nth-of-type(even) {
  stroke: rgba(244, 114, 182, 0.24) !important;
  animation: dl-ring-spin 54s linear infinite reverse;
}

@keyframes dl-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Self-drawing constellation stroke animation triggered when screen activates */
.dalia-theme .screen.active .affirm-center svg .dl-draw-path {
  stroke-dasharray: var(--dl-path-len, 260);
  stroke-dashoffset: var(--dl-path-len, 260);
  animation: dl-trace-line 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

@keyframes dl-trace-line {
  to { stroke-dashoffset: 0; }
}

/* Star vertices ignite sequentially along the constellation */
.dalia-theme .screen.active .affirm-center svg .dl-star-vertex {
  transform-box: fill-box;
  transform-origin: center;
  fill: #f5f3ff !important;
  animation: dl-vertex-ignite 0.55s var(--dl-spring) both, dl-vertex-pulse 3.4s ease-in-out 0.8s infinite;
}

@keyframes dl-vertex-ignite {
  0% { scale: 0; opacity: 0; }
  70% { scale: 1.35; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}

@keyframes dl-vertex-pulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

/* Central polaris starburst gentle shimmer */
.dalia-theme .screen.active .affirm-center svg g[transform*="translate"] {
  animation: dl-starburst-bloom 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

@keyframes dl-starburst-bloom {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ---------- Eyebrow Stage Pill & Editorial Affirmation Typography ---------- */

.dalia-theme .dl-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(196, 181, 253, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 4px 16px rgba(0, 0, 0, 0.28);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 2.2px !important;
  text-transform: uppercase;
  color: #ddd6fe !important;
  margin-bottom: 18px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dalia-theme .dl-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 8px rgba(196, 181, 253, 0.95);
  animation: dl-twinkle 2.4s ease-in-out infinite;
}

.dalia-theme .dl-eyebrow-step {
  color: rgba(196, 181, 253, 0.78);
  font-weight: 500;
  letter-spacing: 1.5px;
}

.dalia-theme .affirm-title {
  color: #f5f3ff !important;
  font-size: clamp(26px, 6.8vw, 32px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 24px rgba(139, 92, 246, 0.32);
  margin-bottom: 16px !important;
}

.dalia-theme .affirm-body {
  color: rgba(235, 230, 245, 0.80) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  letter-spacing: -0.005em;
}

/* Captured user-signal tokens: luminous lavender-aurora pills that stagger in */
.dalia-theme .dl-signal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 14px;
}

.dalia-theme .dl-signal-row em {
  margin: 0;
  padding: 5px 11px;
  font-size: 13px;
}

.dalia-theme .dl-signal-chip,
.dalia-theme .affirm-body em {
  font-style: normal !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  margin: 2px 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(244, 114, 182, 0.10) 100%);
  border: 1px solid rgba(196, 181, 253, 0.34);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #f5f3ff !important;
  font-family: "Instrument Sans", -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  vertical-align: middle;
}

.dalia-theme .dl-signal-chip::before,
.dalia-theme .affirm-body em::before {
  content: "✦";
  font-size: 10px;
  color: #c4b5fd;
  opacity: 0.95;
}

.dalia-theme .screen.active .affirm-body :is(em, .dl-signal-chip) {
  animation: dl-chip-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dalia-theme .screen.active .affirm-body :is(em, .dl-signal-chip):nth-of-type(1) { animation-delay: 0.14s; }
.dalia-theme .screen.active .affirm-body :is(em, .dl-signal-chip):nth-of-type(2) { animation-delay: 0.26s; }
.dalia-theme .screen.active .affirm-body :is(em, .dl-signal-chip):nth-of-type(3) { animation-delay: 0.38s; }

.dalia-theme .dl-insight-copy {
  display: block;
  margin-top: 6px;
  color: rgba(240, 236, 248, 0.82);
  font-size: 16.5px;
  line-height: 1.62;
  animation: dl-rise 0.55s var(--dl-ease-out) 0.46s both;
}

@keyframes dl-chip-in {
  0% { opacity: 0; translate: 0 10px; scale: 0.94; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}

/* ---------- Screen Transition & Option Physics (1:1 TryAstro Parity) ----------
   TryAstro does NOT run any CSS keyframe animations on .screen, .qtitle, or .option.
   In TryAstro (`2f4bd7f9e75b48f3.css`):
     .screen { opacity: 0; transition: opacity .36s cubic-bezier(.4,0,.2,1); }
     .screen.active { opacity: 1; z-index: 10; }
     .screen.exit { opacity: 0; }
   When goTo() runs, the new screen renders immediately at opacity: 1 with zero delay
   while the old screen (.exit) fades out over 350ms, and .option.selected uses
   TryAstro's crisp white radio fill (#fff) and subtle #ffffff0f surface highlight. */

.dalia-theme .option:active {
  transform: scale(0.98);
}

.dalia-theme .option.selected {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.dalia-theme .option.selected .opt-icon,
.dalia-theme .option.selected .oicon {
  background: rgba(255, 255, 255, 0.15);
}

.dalia-theme .option.selected .opt-radio,
.dalia-theme .option.selected .ocheck {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.dalia-theme .option.selected .opt-radio::after,
.dalia-theme .option.selected .ocheck::after {
  content: "✓";
  color: #000000;
  font-size: 11px;
  font-weight: 700;
}

@keyframes dl-rise {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

/* White CTA: a slow sheen and a lift, same size and color. */
.dalia-theme .cta {
  background-image: linear-gradient(110deg, transparent 35%, rgba(124, 58, 237, 0.10) 50%, transparent 65%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.35);
  transition: scale 0.18s var(--dl-spring), opacity 0.15s, box-shadow 0.2s;
  animation: dl-sheen 3.6s ease-in-out infinite;
}
.dalia-theme .cta:active { scale: 0.97; }

@keyframes dl-sheen {
  0%, 55% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* Progress bar: a soft light on the leading edge. */
.dalia-theme :is(.progress-fill, .v9-progress-fill) {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45), 0 0 24px var(--dl-violet-soft);
  transition: width 0.45s var(--dl-ease-out);
}

/* ---------- Screen 35 Micro-Validation Overlay (#confirm-overlay) ---------- */

.dalia-theme #confirm-overlay {
  background: radial-gradient(80% 50% at 50% 28%, rgba(139, 92, 246, 0.16) 0%, rgba(244, 114, 182, 0.08) 42%, rgba(7, 9, 18, 0.96) 76%), #070912 !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dalia-theme #confirm-overlay .confirm-content {
  max-width: 356px;
  margin: 0 auto;
  padding: 32px 26px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 18, 44, 0.84) 0%, rgba(11, 10, 24, 0.92) 100%);
  border: 1px solid rgba(196, 181, 253, 0.28);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  animation: dl-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dalia-theme #confirm-overlay .confirm-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px !important;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22) 0%, rgba(124, 58, 237, 0.14) 100%);
  border: 1px solid rgba(196, 181, 253, 0.34);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.28);
}

.dalia-theme #confirm-overlay .confirm-title {
  font-size: 13px !important;
  font-family: "Instrument Sans", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 2.2px !important;
  text-transform: uppercase;
  color: #c4b5fd !important;
  margin-bottom: 12px !important;
}

.dalia-theme #confirm-overlay .confirm-stat {
  font-family: "Fraunces", Georgia, serif !important;
  font-size: clamp(21px, 5.4vw, 25px) !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
  color: #f5f3ff !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 14px !important;
}

.dalia-theme #confirm-overlay .confirm-body {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: rgba(226, 222, 240, 0.76) !important;
}

/* ---------- Screen 51, 52, 53 & #pay-modal: Unified Violet + Lavender + Rose-Aurora Paywall ---------- */

/* Top celestial aurora glow on Screen 52 Hero */
.dalia-theme #screen-52 #pw-original-scroll > div:first-child {
  background:
    radial-gradient(85% 65% at 50% 0%, rgba(139, 92, 246, 0.28) 0%, rgba(244, 114, 182, 0.12) 44%, rgba(8, 8, 16, 0) 82%),
    var(--grad-6) !important;
}

/* Crimson-Rose Translucent Urgency Pill (#pw-original-countdown) */
.dalia-theme #pw-original-countdown {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.88) 0%, rgba(190, 18, 60, 0.84) 100%) !important;
  border: 1px solid rgba(251, 113, 133, 0.42) !important;
  border-radius: 999px !important;
  padding: 6px 13px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 24px -6px rgba(225, 29, 72, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.dalia-theme #pw-original-countdown #pw-countdown {
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.3px !important;
}

/* 22px Specular Violet-Rim Locked Portrait Card (Screen 51 & Screen 52) */
.dalia-theme #screen-51 .sketch-card,
.dalia-theme #screen-52 #pw-original-scroll div[style*="width:160px"][style*="height:210px"] {
  border-radius: 22px !important;
  border: 1.5px solid rgba(196, 181, 253, 0.56) !important;
  box-shadow:
    0 18px 46px -12px rgba(124, 58, 237, 0.46),
    0 0 24px rgba(167, 139, 250, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

/* Special Offer Price Card on Screen 52 */
.dalia-theme #screen-52 #pw-original-scroll div[style*="background:var(--bgc-0f0f1a)"] {
  border-radius: 22px !important;
  border: 1.5px solid rgba(167, 139, 250, 0.48) !important;
  background: linear-gradient(180deg, rgba(22, 16, 42, 0.90) 0%, rgba(12, 10, 24, 0.95) 100%) !important;
  box-shadow:
    0 18px 42px -14px rgba(124, 58, 237, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.dalia-theme #screen-52 #pw-original-scroll div[style*="background:var(--bgc-0f0f1a)"] > div:first-child {
  background: linear-gradient(90deg, #7c3aed 0%, #6d28d9 52%, #8b5cf6 100%) !important;
  border-bottom: 1px solid rgba(196, 181, 253, 0.24) !important;
}

.dalia-theme #screen-52 #price-card-amount {
  color: #c4b5fd !important;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.45);
}

/* "What you'll discover" rows & icon squircles on Screen 52 — unify gold icon into Violet/Rose-Aurora */
.dalia-theme #screen-52 #pw-original-scroll div[style*="border-radius:14px"][style*="padding:14px"] {
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(139, 92, 246, 0.05) 100%) !important;
  border: 1px solid rgba(196, 181, 253, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.dalia-theme #screen-52 #pw-original-scroll div[style*="background:rgba(200,140,30,0.15)"] {
  background: rgba(244, 114, 182, 0.14) !important;
  border: 1px solid rgba(244, 114, 182, 0.26) !important;
}

/* Pearl-White + Violet Outer Glow Primary CTAs on Paywall & Card Sheet */
.dalia-theme #screen-51 button.cta,
.dalia-theme #screen-52 #pw-original-footer button.cta,
.dalia-theme #screen-53 .floating-btn-dock button.cta,
.dalia-theme #pay-modal #modal-pay-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%) !important;
  color: #090812 !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 12px 34px -8px rgba(139, 92, 246, 0.48),
    0 4px 14px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 #ffffff !important;
}

/* Card Checkout Sheet (#pay-modal .pay-sheet) Violet-Aurora Elevation */
.dalia-theme #pay-modal .pay-sheet {
  border-top: 1.5px solid rgba(196, 181, 253, 0.38) !important;
  box-shadow: 0 -20px 60px rgba(124, 58, 237, 0.28) !important;
}

/* ---------- Exit-Intent Spin Modal & 99% Off Private Grant Paywall ---------- */

.dalia-theme #spin-modal > div {
  background: radial-gradient(75% 45% at 50% 22%, rgba(167, 139, 250, 0.14) 0%, rgba(244, 114, 182, 0.08) 45%, rgba(7, 9, 18, 0.98) 100%), #070912 !important;
}

.dalia-theme #spin-wheel {
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 24px rgba(139, 92, 246, 0.28));
}

.dalia-theme #spin-btn {
  background: linear-gradient(180deg, #ffffff 0%, #ede9fe 100%) !important;
  color: #090b14 !important;
  font-family: "Instrument Sans", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.52), inset 0 1px 0 #ffffff !important;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease !important;
}

.dalia-theme #spin-btn:active {
  transform: scale(0.97);
}

/* Elevated Minimalist 99% OFF Downsell Ledger (#spin-win-paywall) */
.dalia-theme #spin-win-paywall > div {
  background: #070912 !important;
}

.dalia-theme #spin-win-paywall > div > div:nth-child(3) > div:first-child {
  background: radial-gradient(90% 70% at 50% 0%, rgba(167, 139, 250, 0.22) 0%, rgba(124, 58, 237, 0.16) 52%, rgba(9, 12, 24, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(196, 181, 253, 0.22) !important;
  padding: 28px 24px 24px !important;
}

.dalia-theme #spin-win-paywall #sw-paywall-countdown {
  font-variant-numeric: tabular-nums;
  color: #f5f3ff !important;
}

.dalia-theme #spin-win-paywall button.cta {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%) !important;
  color: #080a12 !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 36px -10px rgba(139, 92, 246, 0.45) !important;
}

/* ---------- Screen 54 Member Countdown Portal & Expedite Modal ---------- */

.dalia-theme #screen-54 {
  background: #070912 !important;
}

.dalia-theme #screen-54 #s54-portrait-card {
  background: linear-gradient(180deg, rgba(17, 22, 40, 0.88) 0%, rgba(9, 12, 22, 0.95) 100%) !important;
  border: 1px solid rgba(196, 181, 253, 0.24) !important;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.dalia-theme #screen-54 #s54-timer-24 {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: #f5f3ff !important;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(167, 139, 250, 0.35);
}

.dalia-theme #expedite-modal > div {
  background: #070912 !important;
}

.dalia-theme #expedite-pay-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%) !important;
  color: #080a12 !important;
  box-shadow: 0 14px 34px -10px rgba(139, 92, 246, 0.45) !important;
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .dalia-theme::before,
  .dalia-theme::after,
  .dalia-theme .screen-bg-illus::before,
  .dalia-theme .screen-bg-illus::after,
  .dalia-theme .dl-emblem::before,
  .dalia-theme .dl-emblem::after,
  .dalia-theme .cta,
  .dalia-theme .screen.active > *,
  .dalia-theme .screen.active .option,
  .dalia-theme .option.selected .opt-radio {
    animation: none !important;
  }
  .dalia-theme .affirm-center svg *,
  .dalia-theme .affirm-body :is(em, .dl-signal-chip),
  .dalia-theme .dl-insight-copy,
  .dalia-theme .dl-eyebrow-dot {
    animation: none !important;
  }
  .dalia-theme .affirm-center svg .dl-draw-path {
    stroke-dashoffset: 0 !important;
  }
}

/* Lite mode (?lite=1, in-app webviews): keep the look, drop the moving sky. */
html[data-lite="1"] .dalia-theme::before,
html[data-lite="1"] .dalia-theme::after { animation: none; }
