@charset "UTF-8";
:root {
  --color-primary: #6a3093;
  --color-primary-light: #a044ff;
  --color-primary-dark: #4a1d6a;
  --color-secondary: #f7b733;
  --color-secondary-light: #ffcf5c;
  --color-secondary-dark: #d99b1c;
  --color-dark: #1a1a2e;
  --color-light: #f8f9fa;
  --color-gray: #6c757d;
  --color-gray-light: #e9ecef;
  --color-accent: #f56565;
  --color-accent-light: rgb(246, 116.4, 116.4);
  --color-accent-dark: rgb(242.8902439024, 68.5097560976, 68.5097560976);
  --color-accent-darker: rgb(241.8353658537, 52.2646341463, 52.2646341463);
  --color-accent-darkest: rgb(240.7804878049, 36.0195121951, 36.0195121951);
  --color-primary-rgb: 106, 48, 147;
  --color-primary-light-rgb: 160, 68, 255;
  --color-primary-dark-rgb: 74, 29, 106;
  --color-secondary-rgb: 247, 183, 51;
  --color-secondary-light-rgb: 255, 207, 92;
  --color-secondary-dark-rgb: 217, 155, 28;
  --color-dark-rgb: 26, 26, 46;
  --color-light-rgb: 248, 249, 250;
  --color-gray-rgb: 108, 117, 125;
  --color-gray-light-rgb: 233, 236, 239;
  --color-accent-rgb: 245, 101, 101;
  --color-gold: #d4af37;
  --color-gold-light: #f9e076;
  --color-gold-dark: #a67c00;
  --color-mystic-purple: #563d7c;
  --color-ethereal-blue: #38618c;
  --color-midnight: #0f172a;
  --color-velvet: #33103e;
  --color-amethyst: #9b55d3;
  --color-emerald: #3c9d78;
  --color-blush: #e07a5f;
  --color-gold-rgb: 212, 175, 55;
  --color-gold-light-rgb: 249, 224, 118;
  --color-gold-dark-rgb: 166, 124, 0;
  --color-mystic-purple-rgb: 86, 61, 124;
  --color-ethereal-blue-rgb: 56, 97, 140;
  --color-midnight-rgb: 15, 23, 42;
  --color-velvet-rgb: 51, 16, 62;
  --color-amethyst-rgb: 155, 85, 211;
  --color-emerald-rgb: 60, 157, 120;
  --color-blush-rgb: 224, 122, 95;
  --color-success: #38a169;
  --color-success-rgb: 56, 161, 105;
  --color-warning: #f6ad55;
  --color-warning-rgb: 246, 173, 85;
  --color-danger: #f56565;
  --color-danger-rgb: 245, 101, 101;
  --color-info: #63b3ed;
  --color-info-rgb: 99, 179, 237;
  --color-warning-bg: rgba(246, 173, 85, 0.1);
  --color-error-bg: rgba(245, 101, 101, 0.1);
  --color-info-bg: rgba(99, 179, 237, 0.1);
  --color-success-bg: rgba(56, 161, 105, 0.1);
  --color-text-primary: #f8f9fa;
  --color-text-secondary: rgba(248, 249, 250, 0.8);
  --color-text-muted: rgba(248, 249, 250, 0.6);
  --color-text-light: #f8f9fa;
  --color-text-dark: #1a1a2e;
  --color-bg-dark: #0f172a;
  --color-bg-darker: rgb(14.25, 21.85, 39.9);
  --color-bg-primary: #4a1d6a;
  --color-bg-secondary: #d99b1c;
  --font-heading: Cinzel, serif;
  --font-body: Raleway, sans-serif;
  --font-display: Cinzel, serif;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-xxl: 4rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 28px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-sharp: 0 1px 1px rgba(0, 0, 0, 0.25), 0 2px 2px rgba(0, 0, 0, 0.2), 0 4px 4px rgba(0, 0, 0, 0.15), 0 8px 8px rgba(0, 0, 0, 0.1);
  --shadow-diffuse: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07);
  --shadow-ethereal: 0 0 20px rgba(160, 68, 255, 0.2), 0 0 40px rgba(160, 68, 255, 0.1);
  --glow: 0 0 15px #a044ff;
  --glow-soft: 0 0 20px rgba(160, 68, 255, 0.3);
  --glow-gold: 0 0 15px rgba(247, 183, 51, 0.6);
  --glow-intense: 0 0 30px rgba(160, 68, 255, 0.6), 0 0 60px rgba(160, 68, 255, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elegant: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  --border-radius-xs: 2px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-pill: 9999px;
  --gradient-mystic: linear-gradient(135deg, #4a1d6a 0%, #6a3093 100%);
  --gradient-golden: linear-gradient(135deg, #d99b1c 0%, #ffcf5c 100%);
  --gradient-royal: linear-gradient(135deg, #1a1a2e 0%, #563d7c 100%);
  --gradient-twilight: linear-gradient(135deg, #0f172a 0%, #6a3093 100%);
  --gradient-ethereal: linear-gradient(135deg, #33103e 0%, #9b55d3 70%, #a044ff 100%);
  --gradient-cosmic: linear-gradient(to right, #0f172a, #563d7c, #4a1d6a);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes typingDot {
  0%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-1px);
  }
}
@keyframes mysticalPulse {
  0% {
    opacity: 0.7;
    transform: scale(0.99);
    filter: brightness(0.95);
    box-shadow: 0 0 8px rgba(247, 183, 51, 0.2);
  }
  50% {
    opacity: 0.9;
    transform: scale(1);
    filter: brightness(1.05);
    box-shadow: 0 0 15px rgba(247, 183, 51, 0.4);
  }
  100% {
    opacity: 0.7;
    transform: scale(0.99);
    filter: brightness(0.95);
    box-shadow: 0 0 8px rgba(247, 183, 51, 0.2);
  }
}
@keyframes floatStars {
  0% {
    transform: rotate(0deg);
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.6;
  }
}
@keyframes mysticalShimmer {
  0% {
    background-position: -220% 0;
    opacity: 0.3;
  }
  75% {
    background-position: 220% 0;
    opacity: 0.5;
  }
  100% {
    background-position: 260% 0;
    opacity: 0.3;
  }
}
@keyframes gradientShine {
  0% {
    background-position: -220% center;
  }
  80% {
    background-position: 220% center;
  }
  100% {
    background-position: 260% center;
  }
}
@keyframes buttonShine {
  0% {
    left: -140%;
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  75% {
    left: 140%;
    opacity: 0.8;
  }
  100% {
    left: 170%;
    opacity: 0;
  }
}
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  80% {
    background-position: 200% 0;
  }
  100% {
    background-position: 240% 0;
  }
}
@keyframes floatOrb {
  0% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 0 10px rgba(160, 68, 255, 0.2));
  }
  25% {
    transform: translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
    filter: drop-shadow(0 0 15px rgba(160, 68, 255, 0.3));
  }
  75% {
    transform: translateY(-3px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 0 10px rgba(160, 68, 255, 0.2));
  }
}
@keyframes floatParticle {
  0% {
    transform: translate(0, 0);
    opacity: 0.15;
  }
  50% {
    transform: translate(5px, -5px);
    opacity: 0.25;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0.15;
  }
}
@keyframes luxuryTwinkle {
  0%, 100% {
    opacity: 0.1;
    transform: scale(0.8);
  }
  30% {
    opacity: 0.9;
    transform: scale(1.2);
  }
  70% {
    opacity: 0.2;
    transform: scale(0.9);
  }
}
@keyframes cosmicDrift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}
@keyframes etherealBorderGlow {
  0% {
    box-shadow: 0 0 5px rgba(247, 183, 51, 0.3), 0 0 10px rgba(247, 183, 51, 0.2), inset 0 0 5px rgba(247, 183, 51, 0.1);
    border-color: rgba(247, 183, 51, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(247, 183, 51, 0.6), 0 0 30px rgba(247, 183, 51, 0.3), inset 0 0 10px rgba(247, 183, 51, 0.2);
    border-color: rgba(247, 183, 51, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(247, 183, 51, 0.3), 0 0 10px rgba(247, 183, 51, 0.2), inset 0 0 5px rgba(247, 183, 51, 0.1);
    border-color: rgba(247, 183, 51, 0.5);
  }
}
@keyframes cosmicPortalRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
    opacity: 0.2;
  }
}
@keyframes goldenRay {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  20% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
  }
}
@keyframes mysticalTextReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    letter-spacing: 0.2em;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  80% {
    opacity: 0.8;
    filter: blur(1px);
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }
}
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}
@keyframes luxuryButtonGlow {
  0% {
    box-shadow: 0 0 5px rgba(247, 183, 51, 0.3), 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 5px rgba(247, 183, 51, 0.3) inset;
  }
  50% {
    box-shadow: 0 0 15px rgba(247, 183, 51, 0.6), 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(247, 183, 51, 0.6) inset;
  }
  100% {
    box-shadow: 0 0 5px rgba(247, 183, 51, 0.3), 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 5px rgba(247, 183, 51, 0.3) inset;
  }
}
@keyframes elegantCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

.slide-in-right {
  animation: slideInRight var(--transition-normal) forwards;
}

.slide-in-left {
  animation: slideInLeft var(--transition-normal) forwards;
}

.slide-in-up {
  animation: slideInUp var(--transition-normal) forwards;
}

.pulse {
  animation: pulse 3s infinite;
}

.mystical-pulse {
  animation: mysticalPulse 6s infinite ease-in-out;
}

.mystical-shimmer {
  position: relative;
  overflow: hidden;
}
.mystical-shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  animation: mysticalShimmer 6s infinite linear;
}

.float-orb {
  animation: floatOrb 10s infinite ease-in-out;
}

.float-particle {
  animation: floatParticle 15s infinite ease-in-out;
}

.luxury-twinkle {
  animation: luxuryTwinkle 4s infinite ease-in-out;
}

.cosmic-drift {
  animation: cosmicDrift 120s infinite linear;
}

.ethereal-border-glow {
  animation: etherealBorderGlow 4s infinite ease-in-out;
}

.cosmic-portal-rotate {
  animation: cosmicPortalRotate 60s infinite linear;
}

.golden-ray {
  animation: goldenRay 8s infinite ease-in-out;
}

.mystical-text-reveal {
  animation: mysticalTextReveal 1.5s var(--transition-elegant) forwards;
}

.luxury-button-glow {
  animation: luxuryButtonGlow 3s infinite ease-in-out;
}

.elegant-card-entrance {
  animation: elegantCardEntrance 1.2s var(--transition-bounce) forwards;
}

.aos-init[data-aos=fade-up] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.aos-init[data-aos=fade-up].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
.aos-init[data-aos=fade-down] {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.aos-init[data-aos=fade-down].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
.aos-init[data-aos=fade-right] {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.aos-init[data-aos=fade-right].aos-animate {
  opacity: 1;
  transform: translateX(0);
}
.aos-init[data-aos=fade-left] {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.aos-init[data-aos=fade-left].aos-animate {
  opacity: 1;
  transform: translateX(0);
}
.aos-init[data-aos=zoom-in] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.aos-init[data-aos=zoom-in].aos-animate {
  opacity: 1;
  transform: scale(1);
}

@keyframes messageAppear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateY(180deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateY(180deg) scale(1);
  }
}
@keyframes cardReveal {
  0% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}
@keyframes mysticalGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes rotateHue {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
@keyframes slideFromPortal {
  0% {
    transform: translateY(-50px) scale(0.8);
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes fadeGlowIn {
  0% {
    opacity: 0;
    filter: blur(5px) brightness(2);
  }
  50% {
    filter: blur(2px) brightness(1.5);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
  }
}
@keyframes energyPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}
@keyframes revealRune {
  0%, 10% {
    opacity: 0;
    filter: blur(10px);
  }
  20%, 80% {
    opacity: 0.8;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    filter: blur(5px);
  }
}
@keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 183, 51, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(247, 183, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 183, 51, 0);
  }
}
@keyframes expandingRing {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes energyOrbScatter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + (var(--x, 50%) - 50%) * 2), calc(-50% + (var(--y, 50%) - 50%) * 2)) scale(0.5);
  }
}
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-grid {
  display: grid !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-nowrap {
  flex-wrap: nowrap !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-around {
  justify-content: space-around !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-baseline {
  align-items: baseline !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
}

.w-100 {
  width: 100% !important;
}

.w-75 {
  width: 75% !important;
}

.w-50 {
  width: 50% !important;
}

.w-25 {
  width: 25% !important;
}

.w-auto {
  width: auto !important;
}

.h-100 {
  height: 100% !important;
}

.h-75 {
  height: 75% !important;
}

.h-50 {
  height: 50% !important;
}

.h-25 {
  height: 25% !important;
}

.h-auto {
  height: auto !important;
}

.visible {
  visibility: visible !important;
}

.invisible {
  visibility: hidden !important;
}

.overflow-auto {
  overflow: auto !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-visible {
  overflow: visible !important;
}

.overflow-scroll {
  overflow: scroll !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.border {
  border: 1px solid var(--color-gray-light) !important;
}

.border-0 {
  border: 0 !important;
}

.rounded {
  border-radius: var(--border-radius-sm) !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-0 {
  border-radius: 0 !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-secondary {
  background-color: var(--color-secondary) !important;
}

.bg-light {
  background-color: var(--color-light) !important;
}

.bg-dark {
  background-color: var(--color-dark) !important;
}

.bg-white {
  background-color: white !important;
}

.bg-transparent {
  background-color: transparent !important;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: middle;
}

.material-symbols-rounded.md-18 {
  font-size: 18px;
}

.material-symbols-rounded.md-24 {
  font-size: 24px;
}

.material-symbols-rounded.md-36 {
  font-size: 36px;
}

.material-symbols-rounded.md-48 {
  font-size: 48px;
}

.material-symbols-rounded.filled {
  font-variation-settings: "FILL" 1;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--color-light);
  background-color: var(--color-dark);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(106, 48, 147, 0.2) 0%, rgba(26, 26, 46, 0.95) 70%);
  z-index: -1;
  pointer-events: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Remove animations for people who've turned them off */
@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;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-dark);
}

h1 {
  font-size: 2.5rem;
}
@media (max-width: 599px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 2rem;
}
@media (max-width: 599px) {
  h2 {
    font-size: 1.75rem;
  }
}

h3 {
  font-size: 1.75rem;
}
@media (max-width: 599px) {
  h3 {
    font-size: 1.5rem;
  }
}

h4 {
  font-size: 1.5rem;
}
@media (max-width: 599px) {
  h4 {
    font-size: 1.25rem;
  }
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
  font-family: var(--font-body);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-light {
  color: var(--color-light);
}

.text-dark {
  color: var(--color-dark);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: 700;
}

.text-italic {
  font-style: italic;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

::-webkit-scrollbar {
  width: 4px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110, 27, 146, 0.7) 0%, rgba(212, 175, 55, 0.7) 100%);
  border-radius: 4px;
  min-height: 40px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(110, 27, 146, 0.95) 0%, rgba(212, 175, 55, 0.95) 100%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.7) transparent;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: var(--hybrid-viewport-height, calc(var(--vh, 1vh) * 100));
  min-height: var(--hybrid-viewport-height, calc(var(--vh, 1vh) * 100));
  position: relative;
  overflow: hidden;
}
.app-container .main-content, .app-container .mud-main-content, .app-container .mud-content {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-container .premium-footer {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  animation: fadeInFooter 0.4s ease-out 0.3s 1 forwards;
}
.app-container.footerless-active .premium-footer {
  display: none !important;
  animation: none;
}

@keyframes fadeInFooter {
  to {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.premium-footer {
  flex-shrink: 0;
  width: 100%;
  background: rgba(26, 32, 44, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 50;
  position: relative;
  padding-bottom: var(--hybrid-safe-area-bottom, 0px);
  box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.3), 0 -1px 3px rgba(0, 0, 0, 0.5);
}
.premium-footer .footer-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(247, 183, 51, 0.08) 0%, transparent 50%), radial-gradient(circle at 90% 20%, rgba(106, 48, 147, 0.08) 0%, transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}
.premium-footer .footer-gradient-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(212, 175, 55, 0.2) 10%, rgba(212, 175, 55, 0.6) 20%, rgba(212, 175, 55, 0.8) 50%, rgba(212, 175, 55, 0.6) 80%, rgba(212, 175, 55, 0.2) 90%, transparent 100%);
  opacity: 0.9;
  z-index: 2;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}
.premium-footer .footer-nav-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 3;
}
.premium-footer .footer-nav-items .footer-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.7);
  height: 100%;
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
  position: relative;
  max-width: 20%;
}
.premium-footer .footer-nav-items .footer-nav-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.4));
  transform: translateX(-50%);
  transition: width 0.3s var(--transition-elegant);
  opacity: 0;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}
.premium-footer .footer-nav-items .footer-nav-item.is-active::before {
  width: 24px;
  opacity: 1;
}
.premium-footer .footer-nav-items .footer-nav-item .nav-icon-container {
  position: relative;
  margin-bottom: 4px;
}
.premium-footer .footer-nav-items .footer-nav-item .nav-icon-container i {
  font-size: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
}
.premium-footer .footer-nav-items .footer-nav-item .nav-icon-container .icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.1) 60%, transparent 80%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}
.premium-footer .footer-nav-items .footer-nav-item .nav-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}
.premium-footer .footer-nav-items .footer-nav-item:hover .nav-icon-container i {
  transform: translateY(-2px);
  color: rgba(255, 255, 255, 0.95);
}
.premium-footer .footer-nav-items .footer-nav-item:hover .nav-icon-container .icon-glow {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1);
}
.premium-footer .footer-nav-items .footer-nav-item:hover .nav-text {
  color: rgba(255, 255, 255, 0.9);
}
.premium-footer .footer-nav-items .footer-nav-item.is-active .nav-icon-container i {
  color: #d4af37;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
.premium-footer .footer-nav-items .footer-nav-item.is-active .nav-icon-container .icon-glow {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1.2);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0.2) 60%, transparent 80%);
}
.premium-footer .footer-nav-items .footer-nav-item.is-active .nav-text {
  color: #d4af37;
  font-weight: 600;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--spacing-sm);
}

.col {
  flex: 1;
  padding: 0 var(--spacing-sm);
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 600px) and (max-width: 959px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 960px) and (max-width: 1279px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 600px) and (max-width: 959px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: white;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
}
.card:hover {
  box-shadow: var(--shadow-lg);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.p-1 {
  padding: var(--spacing-xs);
}

.p-2 {
  padding: var(--spacing-sm);
}

.p-3 {
  padding: var(--spacing-md);
}

.p-4 {
  padding: var(--spacing-lg);
}

.p-5 {
  padding: var(--spacing-xl);
}

.d-flex {
  display: flex;
}

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

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.flex-grow-1 {
  flex-grow: 1;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* overflow: hidden; */
  /* position: fixed; */
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

body.no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

.empty-layout {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  max-height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  position: relative;
}

html.fullscreen-mode body {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.scrollable-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: auto;
  flex: 1;
  position: relative;
}

body.dialog-open .scrollable-content {
  overscroll-behavior: contain !important;
}

.navbar {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav {
  display: flex;
  gap: var(--spacing-lg);
}
@media (max-width: 599px) {
  .navbar-nav {
    display: none;
  }
}

.nav-item {
  position: relative;
}
.nav-item:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}
.nav-item:hover:after, .nav-item.active:after {
  width: 100%;
}

.nav-link {
  color: var(--color-light);
  transition: color var(--transition-fast);
}
.nav-link:hover {
  color: var(--color-secondary-light);
}
.nav-link.active {
  color: var(--color-secondary);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
}
@media (max-width: 599px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: var(--color-primary-dark);
  color: var(--color-light);
  padding: var(--spacing-lg);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: 1000;
}
.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.sidebar-close {
  color: var(--color-light);
  font-size: 1.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal);
  z-index: 999;
}
.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e, #4a266a);
  z-index: 9999;
}
.initial-loader .initial-loader-logo {
  width: 180px;
  margin-bottom: 2rem;
}
.initial-loader .pulse-text {
  font-family: "Cinzel", serif;
  color: white;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-top: 1rem;
  animation: pulse-animation 2s infinite;
}
.initial-loader .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}
.initial-loader .update-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 325px;
}
.initial-loader .update-required p {
  color: white;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.initial-loader .update-required .mystical-button {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.9) 0%, rgba(var(--color-gold-dark-rgb), 1) 100%);
  color: rgba(var(--color-dark-rgb), 0.9);
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.8px;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: button-pulse 4s infinite alternate ease-in-out;
}
.initial-loader .update-required .mystical-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.initial-loader .update-required .mystical-button i {
  margin-right: 8px;
}
.initial-loader .update-required .mystical-button span {
  font-family: "Cinzel", serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.initial-loader .error-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-error, #e74c3c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.initial-loader .initial-loader-retry {
  margin-top: 1rem;
}

.critical-error-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(10, 8, 25, 0.95), rgba(44, 18, 68, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.critical-error-screen .critical-error-card {
  width: 100%;
  max-width: 460px;
  background: rgba(14, 11, 27, 0.9);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(150, 80, 200, 0.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.critical-error-screen .critical-error-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--color-error-rgb, 239, 83, 80), 0.15);
  border: 1px solid rgba(var(--color-error-rgb, 239, 83, 80), 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--color-error-rgb, 239, 83, 80), 0.95);
  margin: 0 auto 0.5rem;
  font-size: 1.75rem;
}
.critical-error-screen h2 {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  margin: 0;
}
.critical-error-screen .critical-error-title {
  font-weight: 600;
  opacity: 0.9;
  margin: 0;
}
.critical-error-screen .critical-error-message {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
}
.critical-error-screen .critical-error-stack {
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}
.critical-error-screen .critical-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.critical-error-screen .critical-error-actions .mystical-button {
  min-width: 160px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes pulse-animation {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
@keyframes button-pulse {
  0%, 70% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--color-gold-rgb, 212, 175, 55), 0.6);
  }
}
.agent-card-deck__container {
  width: 100%;
  height: min(64vh, 560px);
  position: relative;
  z-index: 1200;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(0);
  perspective-origin: center 40%;
  overflow: visible;
  pointer-events: none;
  touch-action: none;
}
.agent-card-deck__card {
  justify-self: center;
  aspect-ratio: 7/10;
  width: min(84vw, 520px);
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  contain: layout style;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #171129 0%, #2f1550 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.28);
  transform-origin: center bottom;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: auto;
  cursor: default;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transform-style: preserve-3d;
  z-index: 180;
  filter: none;
}
.agent-card-deck__card .card-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  z-index: 2;
}
.agent-card-deck__card .card-avatar-container {
  position: relative;
  flex: 0 0 auto;
  height: 54%;
  min-height: 0;
  max-height: 65%;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  background: transparent;
}
.agent-card-deck__card .card-avatar-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}
.agent-card-deck__card .card-avatar-container .card-avatar-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  background-color: #1d142f;
  transition: opacity 0.2s ease;
}
.agent-card-deck__card .card-avatar-container .card-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(7, 3, 12, 0.55) 80%, rgba(11, 6, 18, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}
.agent-card-deck__card .card-avatar-container .card-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  z-index: 3;
  background: linear-gradient(to top, rgba(22, 17, 36, 0.9), transparent);
  text-align: center;
  color: var(--color-light);
  transition: opacity 0.3s ease;
}
.agent-card-deck__card .card-info {
  flex: 1;
  min-height: 0;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #120b1f 0%, #1e142f 100%);
  border-bottom-left-radius: var(--border-radius-lg);
  border-bottom-right-radius: var(--border-radius-lg);
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}
.agent-card-deck__card .card-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(106, 48, 147, 0.08), transparent 55%), linear-gradient(-135deg, rgba(106, 48, 147, 0.06), transparent 60%);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.agent-card-deck__card .card-info__name {
  display: none;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-family-heading);
  color: var(--color-gold-light);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  padding-top: var(--spacing-xs);
}
.agent-card-deck__card .agent-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-heading);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}
.agent-card-deck__card .agent-name::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  border-radius: 2px;
}
.agent-card-deck__card .agent-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  gap: 2px;
}
.agent-card-deck__card .agent-rating .star {
  color: var(--color-gold);
  font-size: 18px;
  text-shadow: 0 0 5px rgba(var(--color-gold-rgb), 0.3);
}
.agent-card-deck__card .agent-rating .star.empty {
  opacity: 0.5;
}
.agent-card-deck__card .agent-rating .partial-star-container {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.agent-card-deck__card .agent-rating .partial-star-container .star.empty {
  vertical-align: middle;
}
.agent-card-deck__card .agent-rating .partial-star-container .partial-star-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  display: inline-block;
  line-height: 1;
}
.agent-card-deck__card .agent-rating .partial-star-container .partial-star-wrapper .star.partial {
  position: relative;
  vertical-align: middle;
  display: inline-block;
}
.agent-card-deck__card .agent-specializations {
  width: 100%;
  margin: var(--spacing-sm) 0;
  overflow: hidden;
}
.agent-card-deck__card .agent-specializations .specialization-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 6px;
  justify-content: center;
}
.agent-card-deck__card .agent-specializations .specialization-pills::-webkit-scrollbar {
  display: none;
}
.agent-card-deck__card .specialization-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(var(--color-gold-rgb), 0.18), rgba(var(--color-gold-rgb), 0.32));
  border: 1px solid rgba(var(--color-gold-rgb), 0.32);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--color-gold);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
  position: relative;
}
.agent-card-deck__card .specialization-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.agent-card-deck__card .specialization-pill .specialization-icon {
  font-size: 12px;
  margin-right: 4px;
}
.agent-card-deck__card .specialization-pill.more-indicator {
  background: linear-gradient(145deg, rgba(var(--color-primary-rgb), 0.2), rgba(var(--color-primary-rgb), 0.35));
  border: 1px solid rgba(var(--color-primary-rgb), 0.35);
  color: var(--color-primary);
}
.agent-card-deck__card .agent-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: var(--spacing-sm);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.agent-card-deck__card .agent-bio .bio-text {
  flex: 1 1 auto;
  min-height: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(var(--color-light-rgb), 0.85);
  margin: 0;
  padding-bottom: var(--spacing-md);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
  mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 75%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 75%, rgba(0, 0, 0, 0));
}
.agent-card-deck__card .agent-bio.expanded {
  max-height: none;
}
.agent-card-deck__card .agent-bio.expanded .bio-text {
  -webkit-line-clamp: unset;
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}
.agent-card-deck__card .agent-bio .bio-toggle {
  margin-top: auto;
  align-self: flex-start;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-gold-light);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.2s;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.agent-card-deck__card .agent-bio .bio-toggle:hover {
  color: var(--color-gold);
}
.agent-card-deck__card .agent-languages-row {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.agent-card-deck__card .agent-languages-row .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(var(--color-light-rgb), 0.65);
}
.agent-card-deck__card .agent-languages-row .label.language-label {
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(var(--color-light-rgb), 0.85);
}
.agent-card-deck__card .agent-languages-row .language-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agent-card-deck__card .agent-languages-row .language-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(var(--color-light-rgb), 0.85);
  font-weight: 600;
  letter-spacing: 0.015em;
}
.agent-card-deck__card .agent-languages-row .language-pill.more, .agent-card-deck__card .agent-languages-row .language-pill.language-pill--more {
  background: transparent;
  border-style: dashed;
  color: rgba(var(--color-light-rgb), 0.7);
}
.agent-card-deck__card .agent-badge {
  position: absolute;
  top: 12px;
  left: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 32px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: rgba(var(--color-light-rgb), 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  background: rgba(3, 0, 12, 0.78);
  border: 1px solid rgba(var(--color-primary-rgb), 0.45);
  pointer-events: none;
  z-index: 20;
}
.agent-card-deck__card .agent-badge i {
  font-size: 14px;
}
.agent-card-deck__card .agent-badge--premium {
  left: 12px;
  right: auto;
  border-color: rgba(var(--color-gold-rgb), 0.5);
}
.agent-card-deck__card .agent-badge--premium i {
  color: var(--color-gold);
  text-shadow: 0 0 5px rgba(var(--color-gold-rgb), 0.4);
}
.agent-card-deck__card .agent-badge--offer {
  left: auto;
  right: 12px;
  background: rgba(5, 2, 10, 0.9);
  border-color: rgba(var(--color-primary-rgb), 0.35);
  text-align: right;
}
.agent-card-deck__card .agent-badge--free {
  border-color: rgba(46, 204, 113, 0.45);
  color: #78f0b4;
  text-transform: none;
}
.agent-card-deck__card .agent-badge--free i {
  color: #2ecc71;
  text-shadow: 0 0 6px rgba(46, 204, 113, 0.4);
}
.agent-card-deck__card .agent-badge--rate {
  border-color: rgba(var(--color-gold-rgb), 0.35);
  color: var(--color-gold-light);
  text-transform: none;
  font-size: 0.72rem;
  letter-spacing: 0.25px;
}
.agent-card-deck__card .agent-badge--rate i {
  color: var(--color-gold);
  text-shadow: 0 0 6px rgba(var(--color-gold-rgb), 0.35);
  font-size: 13px;
}
.agent-card-deck__card .agent-badge--rate span {
  font-variant-numeric: tabular-nums;
}
.agent-card-deck__card .agent-status {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  pointer-events: none;
  transform: translateZ(0);
}
.agent-card-deck__card .agent-status--online {
  background-color: #2ecc71; /* Bright green */
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}
.agent-card-deck__card .agent-status--online .status-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: #2ecc71;
  opacity: 0.6;
  animation: pulse 2s infinite;
  transform: scale(1);
}
.agent-card-deck__card .agent-status--offline {
  background-color: #95a5a6; /* Gray */
  border-color: rgba(149, 165, 166, 0.4);
  box-shadow: 0 0 5px rgba(149, 165, 166, 0.2);
}
.agent-card-deck__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(var(--color-light-rgb), 0.03) 1px, transparent 2px), radial-gradient(circle at 30% 40%, rgba(var(--color-light-rgb), 0.02) 1px, transparent 2px), radial-gradient(circle at 50% 60%, rgba(var(--color-light-rgb), 0.03) 1px, transparent 1px), radial-gradient(circle at 70% 80%, rgba(var(--color-light-rgb), 0.02) 1px, transparent 2px);
  background-size: 20px 20px, 25px 25px, 30px 30px, 15px 15px;
  opacity: 0.2;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}
.agent-card-deck__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(var(--color-primary-rgb), 0.3);
  z-index: 1;
  pointer-events: none;
}
.agent-card-deck__card {
  /* --- CARD STATES & INTERACTIONS --- */
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease-out;
  will-change: unset;
}
.agent-card-deck__card.is-active {
  z-index: 1280;
  pointer-events: auto;
  will-change: transform, opacity;
  transform: translateY(0) rotate(0deg) scale(1);
  cursor: grab;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42), 0 0 14px rgba(var(--color-primary-rgb), 0.32), 0 0 8px rgba(var(--color-gold-rgb), 0.24);
}
.agent-card-deck__card.is-dragging {
  z-index: 1320;
  pointer-events: auto;
  will-change: transform, opacity;
  transition: none;
  cursor: grabbing;
}
.agent-card-deck__card.is-next {
  z-index: 1220;
  pointer-events: auto;
  will-change: unset;
  transform: translate3d(0, 10px, 0) scale(0.95);
  opacity: 1;
}
.agent-card-deck__card.is-third {
  z-index: 1180;
  pointer-events: auto;
  will-change: unset;
  transform: translate3d(0, 20px, 0) scale(0.9);
  opacity: 1;
}
.agent-card-deck__card.is-peek {
  z-index: 1160;
  pointer-events: none;
  transform: translate3d(0, 32px, 0) scale(0.86);
  opacity: 0.65;
  filter: none;
}
.agent-card-deck__card.is-hidden {
  z-index: 1040;
  pointer-events: none;
  will-change: unset;
  transform: translate3d(0, 50px, 0) scale(0.8);
  opacity: 0;
}
.agent-card-deck__card {
  /* Transitioning to active state - smooth movement from next to active position */
}
.agent-card-deck__card.transitioning-to-active {
  filter: blur(0);
  position: absolute;
}
.agent-card-deck__card {
  /* Card being visually recycled */
}
.agent-card-deck__card.is-recycled-visual {
  transform: translate3d(0, 100px, 0) scale(0.7);
  opacity: 0;
  z-index: -5; /* Force lowest z-index */
}
.agent-card-deck__card {
  /* Card resetting to original position */
}
.agent-card-deck__card.is-resetting {
  transition: transform 0.4s var(--transition-bounce);
}
.agent-card-deck__card {
  /* Visual indicator during swipe */
}
.agent-card-deck__card.swiping-left::before, .agent-card-deck__card.swiping-right::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.65;
  pointer-events: none;
  z-index: 10;
}
.agent-card-deck__card.swiping-left::before {
  background: linear-gradient(to right, rgba(var(--color-error-light-rgb), 0.35), transparent 55%);
}
.agent-card-deck__card.swiping-right::before {
  background: linear-gradient(to left, rgba(var(--color-gold-rgb), 0.35), transparent 55%);
}
.agent-card-deck__card {
  /* Card bio expanded state animation */
}
.agent-card-deck__card.bio-expanded .card-avatar-container {
  height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.agent-card-deck__card.bio-expanded .card-avatar-container .card-info-overlay,
.agent-card-deck__card.bio-expanded .card-avatar-container .agent-badge,
.agent-card-deck__card.bio-expanded .card-avatar-container .agent-status {
  opacity: 0;
  pointer-events: none;
}
.agent-card-deck__card.bio-expanded .card-info {
  padding-top: var(--spacing-lg);
  justify-content: flex-start;
  flex: 1 1 auto;
}
.agent-card-deck__card.bio-expanded .card-info__name {
  display: block;
}
.agent-card-deck__card.bio-expanded .agent-specializations,
.agent-card-deck__card.bio-expanded .agent-languages-row {
  opacity: 0;
}
.agent-card-deck__card.bio-expanded .agent-bio {
  flex: 1;
  max-height: none;
  min-height: 0;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
}
.agent-card-deck__card.bio-expanded .agent-bio .bio-text {
  -webkit-line-clamp: unset;
  max-height: none;
}
.agent-card-deck__card.is-throwing-left, .agent-card-deck__card.is-throwing-right {
  transition: transform 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.2s ease-in;
  z-index: 330;
  will-change: transform, opacity;
}
.agent-card-deck__card.is-throwing-left {
  transform: translate3d(-120vw, 30px, 0) rotate(-35deg);
  opacity: 0;
  z-index: 330;
}
.agent-card-deck__card.is-throwing-right {
  transform: translate3d(120vw, 30px, 0) rotate(35deg);
  opacity: 0;
  z-index: 330;
}

body.dragging-card {
  cursor: grabbing;
  overflow: hidden;
}

.hybrid-mobile .agent-card-deck__container {
  contain: layout paint style;
  transform-style: flat;
  perspective: none;
}
.hybrid-mobile .agent-card-deck__card {
  background: linear-gradient(135deg, #181026 0%, #261337 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  transform-style: flat;
  transition-duration: 0.65s;
}
.hybrid-mobile .agent-card-deck__card::before, .hybrid-mobile .agent-card-deck__card::after {
  display: none;
}
.hybrid-mobile .agent-card-deck__card .card-avatar-container {
  background: transparent;
}
.hybrid-mobile .agent-card-deck__card .card-avatar-container::before {
  background: transparent;
  opacity: 0;
}
.hybrid-mobile .agent-card-deck__card .card-avatar-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(7, 3, 12, 0.55) 80%, rgba(11, 6, 18, 0.8) 100%);
}
.hybrid-mobile .agent-card-deck__card .card-info {
  background: linear-gradient(180deg, #120b1f 0%, #1a0f2c 100%);
}
.hybrid-mobile .agent-card-deck__card .card-info::before {
  opacity: 0.15;
}
.hybrid-mobile .agent-card-deck__card::before, .hybrid-mobile .agent-card-deck__card::after {
  opacity: 0.25;
}
.hybrid-mobile .agent-card-deck__card .agent-status {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.hybrid-mobile .agent-card-deck__card .agent-status--online .status-pulse {
  animation-duration: 2.8s;
}
.hybrid-mobile .agent-card-deck__card.is-next, .hybrid-mobile .agent-card-deck__card.is-third {
  box-shadow: none;
}
.hybrid-mobile .agent-card-deck__card.is-peek, .hybrid-mobile .agent-card-deck__card.is-hidden {
  content-visibility: auto;
  contain-intrinsic-size: 520px 720px;
  box-shadow: none;
}

@keyframes swipeHandAnimation {
  0% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(-3px);
  }
}
@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes borderPulse {
  0% {
    filter: blur(0.5px);
    opacity: 0.7;
  }
  100% {
    filter: blur(1px);
    opacity: 1;
  }
}
@keyframes floatingParticles {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  100% {
    background-position: 100% 100%, 50% 50%, -50% 50%, 100% -100%, -100% 100%;
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(2.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes pulseFade {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}
.message {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  position: relative;
  width: 100%;
  max-width: 90%;
  transform-origin: top;
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: transform, opacity;
}
.message .message-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.5);
  position: relative;
  z-index: 2;
}
.message .message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message .message-avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.5), rgba(106, 48, 147, 0.5));
  z-index: -1;
  opacity: 0.7;
  animation: rotateHue 10s linear infinite;
}
.message .message-avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  position: relative;
}
.message .message-avatar.user-avatar {
  border: 2px solid rgba(247, 183, 51, 0.4);
  background: linear-gradient(135deg, #6a3093, #4a1d6a);
}
.message .message-avatar.user-avatar::after {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.7), rgba(106, 48, 147, 0.3));
}
.message .message-bubble {
  flex: 1;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  user-select: text;
  cursor: text;
  backdrop-filter: blur(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
@media (max-width: 480px) {
  .message .message-bubble {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.95rem;
  }
}
.message .message-bubble p {
  margin: 0 0 var(--spacing-xs);
  user-select: text;
  white-space: pre-wrap;
}
.message .message-bubble p:last-child {
  margin-bottom: 0;
}
.message .message-bubble .translation-badge {
  margin-top: var(--spacing-xxs);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  justify-content: flex-start;
}
.message .message-bubble a {
  color: #f7b733;
  text-decoration: underline;
  transition: all 0.2s ease;
}
.message .message-bubble a:hover {
  color: rgb(248.9245283019, 200.320754717, 100.0754716981);
  text-shadow: 0 0 8px rgba(247, 183, 51, 0.5);
}
.message .message-bubble strong, .message .message-bubble em {
  color: #ffcf5c;
}
.message.message-enter-animation {
  animation: message-appear 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.message.scroll-highlight {
  animation: highlight-pulse 1s ease-out;
}
.message.system-info-message {
  max-width: 100%;
  margin: var(--spacing-sm) auto;
  justify-content: center;
}
.message.system-info-message .system-info-content {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(4px);
  width: auto;
  max-width: 85%;
  display: inline-block;
  line-height: 1.3;
}
.message.system-info-message .system-info-content span {
  white-space: pre-wrap;
  word-break: break-word;
}
.message.system-info-message .system-info-content span a {
  color: #f7b733;
  text-decoration: underline;
}
.message.system-info-message .system-info-content span a:hover {
  color: rgb(248.9245283019, 200.320754717, 100.0754716981);
  text-shadow: 0 0 4px rgba(247, 183, 51, 0.3);
}
@media (max-width: 480px) {
  .message.system-info-message .system-info-content {
    font-size: 0.7rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    max-width: 90%;
  }
}
.message.user-message {
  justify-content: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;
  text-align: right;
  width: auto;
  max-width: 85%;
}
.message.user-message .message-avatar {
  margin-left: var(--spacing-sm);
}
.message.user-message .message-bubble {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8) 0%, rgba(60, 157, 120, 0.8) 100%);
  border-top-right-radius: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.15);
  width: auto;
  max-width: 100%;
}
.message.user-message .message-bubble .message-content {
  display: inline-block;
  max-width: 100%;
  white-space: pre-line;
}
.message.user-message .message-bubble .message-content p {
  text-align: right;
  display: inline;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
.message.user-message.message-enter-animation {
  animation-name: message-appear-user;
}
.message.user-message:not(.interactive-message) {
  min-width: auto;
}
.message.user-message:not(.interactive-message) .message-bubble {
  min-width: auto;
  max-width: 100%;
}
.message.user-message:not(.interactive-message) .message-bubble .message-content {
  max-width: 100%;
}
.message.user-message:not(.interactive-message) .message-bubble .message-content p {
  max-width: 75vw;
}
@media (min-width: 768px) {
  .message.user-message:not(.interactive-message) .message-bubble .message-content p {
    max-width: 500px;
  }
}
.message.agent-message {
  justify-content: flex-start;
  margin-right: auto;
  text-align: left;
}
.message.agent-message .message-avatar {
  margin-right: var(--spacing-sm);
}
.message.agent-message .message-bubble {
  background: linear-gradient(135deg, rgba(51, 16, 62, 0.8) 0%, rgba(74, 29, 106, 0.8) 100%);
  border-top-left-radius: 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 183, 51, 0.1);
}
.message.interactive-message {
  max-width: 100%;
  padding-bottom: var(--spacing-xs);
  padding-top: var(--spacing-xs);
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
}
.message.interactive-message .message-avatar {
  position: absolute;
  left: var(--spacing-xs);
  top: var(--spacing-md);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-width: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: content-box;
}
@media (max-width: 480px) {
  .message.interactive-message .message-avatar {
    left: 10px;
    top: 10px;
  }
}
.message.interactive-message .message-bubble {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, rgba(33, 20, 50, 0.9) 0%, rgba(23, 15, 38, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--border-radius-md);
}
.message.interactive-message .message-bubble .message-bubble__text-content {
  padding-left: calc(40px + var(--spacing-sm) + var(--spacing-md));
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 480px) {
  .message.interactive-message .message-bubble .message-bubble__text-content {
    padding-left: calc(40px + var(--spacing-sm) + var(--spacing-sm));
  }
}
.message.interactive-message .interactive-elements {
  margin: var(--spacing-sm) 0 0 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.message.interactive-message .interactive-elements > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.message-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: var(--spacing-xs);
  padding: 0 var(--spacing-sm) 0 var(--spacing-sm);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
@media (max-width: 480px) {
  .message-time {
    font-size: 0.7rem;
    margin-top: 0.1rem;
  }
}
.message-time .message-status {
  display: flex;
  align-items: center;
  position: relative;
}
.message-time .message-status i {
  font-size: 0.85rem;
  font-weight: 100;
  font-variation-settings: "FILL" 0, "wght" 300;
  line-height: 1;
}
.message-time .message-status .message-error-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(245, 101, 101, 0.9);
  color: white;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.message-time .message-status .message-error-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 6px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(245, 101, 101, 0.9) transparent transparent transparent;
}
.message-time .message-status:hover .message-error-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.message-time.status-sending .message-status i {
  color: rgba(212, 175, 55, 0.7);
  animation: pulse 1.5s infinite ease-in-out;
}
.message-time.status-failed .message-status i {
  color: rgba(245, 101, 101, 0.9);
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}
@keyframes typingFade {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes message-appear {
  0% {
    opacity: 0;
    transform: translateX(-20px) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}
@keyframes message-appear-user {
  0% {
    opacity: 0;
    transform: translateX(20px) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}
@keyframes highlight-pulse {
  0% {
    background-color: rgba(247, 183, 51, 0.05);
  }
  50% {
    background-color: rgba(247, 183, 51, 0.1);
  }
  100% {
    background-color: transparent;
  }
}
.system-message {
  width: 100%;
  margin: var(--spacing-xs) 0;
  display: flex;
  justify-content: center;
  max-width: 100%;
}
.system-message .message-content {
  max-width: 85%;
  transform: translateZ(0);
}
.system-message .message-content .message-text {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 24px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: all 0.2s ease;
}
.system-message .message-content .message-text .system-warning {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-sm);
  width: 100%;
}
.system-message .message-content .message-text .system-warning .message-icon {
  font-size: 1.1rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.system-message .message-content .message-text .system-warning .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}
.system-message .message-content .message-text .system-warning .mystical-button {
  font-size: 0.85rem;
  min-height: unset;
  padding: 0.45rem 1.2rem;
  margin-top: var(--spacing-sm);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.9) 0%, rgba(226, 161, 31, 0.9) 100%);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 15px rgba(247, 183, 51, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  animation: none !important;
}
.system-message .message-content .message-text .system-warning .mystical-button i {
  color: rgba(255, 255, 255, 0.95);
  margin-right: 0.3rem;
}
.system-message .message-content .message-text .system-warning .mystical-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgb(247, 183, 51) 0%, rgb(226, 161, 31) 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(247, 183, 51, 0.4), 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  animation: none !important;
}
.system-message .message-content .message-text .system-warning .mystical-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 10px rgba(247, 183, 51, 0.2), 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 -1px 0 rgba(0, 0, 0, 0.1) inset;
}
.system-message .message-content .message-text .system-warning span, .system-message .message-content .message-text .system-warning p {
  text-align: center;
  margin-bottom: var(--spacing-xs);
}
.system-message.info-message .message-text {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.system-message.info-message .message-text .message-icon {
  color: var(--color-info);
  opacity: 0.8;
}
.system-message.session-ended-message .message-text {
  background: linear-gradient(90deg, transparent, rgba(var(--color-info-raw), 0.08), rgba(var(--color-info-raw), 0.15), rgba(var(--color-info-raw), 0.08), transparent);
  border: none;
  color: rgba(255, 255, 255, 0.7);
}
.system-message.session-ended-message .message-text .message-icon {
  color: var(--color-info);
}
.system-message.warning-message .message-text {
  background: none;
  border: none;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}
.system-message.warning-message .message-text::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 10%;
  width: 80%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(var(--color-warning-raw), 0.25) 0%, rgba(var(--color-warning-raw), 0.08) 60%, transparent 80%);
  filter: blur(4px);
  border-radius: 60% 40% 70% 30%/40% 50% 60% 50%;
  z-index: -1;
  transform: rotate(-5deg);
  opacity: 0.9;
}
.system-message.warning-message .message-text .message-icon {
  color: var(--color-warning);
  text-shadow: 0 0 8px rgba(var(--color-warning-raw), 0.5);
}
.system-message.error-message .message-text {
  background: none;
  border: none;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}
.system-message.error-message .message-text::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -5%;
  width: 110%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(var(--color-error-raw), 0.25) 0%, rgba(var(--color-error-raw), 0.12) 50%, transparent 80%);
  filter: blur(5px);
  border-radius: 30% 70% 40% 60%/60% 30% 70% 40%;
  z-index: -1;
  transform: rotate(3deg);
  opacity: 0.95;
}
.system-message.error-message .message-text .message-icon {
  color: var(--color-error);
  text-shadow: 0 0 8px rgba(var(--color-error-raw), 0.5);
}

@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.message-appear {
  animation: messageAppear 0.3s ease-out forwards;
}

.system-info-message {
  animation: none;
}

.chat-payment-prompt {
  width: 100%;
  padding: 1rem;
  animation: fadeIn 0.4s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
}
.chat-payment-prompt .payment-card {
  position: relative;
  background: linear-gradient(135deg, rgba(33, 15, 43, 0.9) 0%, rgba(17, 8, 26, 0.95) 100%);
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.45), 0 0 15px rgba(106, 48, 147, 0.15), 0 0 30px rgba(212, 175, 55, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform: translateZ(0);
}
.chat-payment-prompt .payment-card__particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 15% 15%, rgba(255, 255, 255, 0.9) 50%, transparent 100%), radial-gradient(1.5px 1.5px at 35% 75%, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(2px 2px at 55% 25%, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1.5px 1.5px at 70% 85%, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(2px 2px at 90% 10%, rgba(212, 175, 55, 0.8) 50%, transparent 100%), radial-gradient(1.5px 1.5px at 25% 60%, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1.5px 1.5px at 65% 45%, rgba(212, 175, 55, 0.7) 50%, transparent 100%), radial-gradient(2px 2px at 85% 65%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  opacity: 0.15;
  z-index: 0;
  animation: floatParticles 15s ease-in-out infinite alternate;
}
.chat-payment-prompt .payment-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 70%), radial-gradient(ellipse at 70% 60%, rgba(106, 48, 147, 0.12) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}
.chat-payment-prompt .payment-card__content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.25rem 1rem;
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card__content {
    padding: 1rem 0.75rem 0.75rem;
  }
}
.chat-payment-prompt .payment-card__balance {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.15) inset;
  z-index: 5;
}
.chat-payment-prompt .payment-card__balance i {
  color: #d4af37;
  font-size: 1rem;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.6));
}
.chat-payment-prompt .payment-card__balance span {
  color: #f9e076;
  font-size: 0.9rem;
  font-weight: 600;
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card__balance {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  .chat-payment-prompt .payment-card__balance i {
    font-size: 0.9rem;
  }
  .chat-payment-prompt .payment-card__balance span {
    font-size: 0.8rem;
  }
}
.chat-payment-prompt .payment-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-right: 3.5rem;
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card__header {
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
  }
}
.chat-payment-prompt .payment-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: rgba(106, 48, 147, 0.3);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), 0 0 20px rgba(212, 175, 55, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.2) inset;
  flex-shrink: 0;
}
.chat-payment-prompt .payment-card__icon i {
  font-size: 1.7rem;
  color: #d4af37;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
}
.chat-payment-prompt .payment-card__icon .shine-effect {
  position: relative;
}
.chat-payment-prompt .payment-card__icon .shine-effect::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, transparent 30%);
  opacity: 0.7;
  z-index: 2;
  animation: moveShineDiamond 3s infinite ease-in-out;
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .chat-payment-prompt .payment-card__icon i {
    font-size: 1.5rem;
  }
}
.chat-payment-prompt .payment-card__title {
  flex: 1;
}
.chat-payment-prompt .payment-card__title h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #f9e076;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}
.chat-payment-prompt .payment-card__title p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  max-width: 90%;
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card__title h3 {
    font-size: 1.1rem;
  }
  .chat-payment-prompt .payment-card__title p {
    font-size: 0.75rem;
  }
}
.chat-payment-prompt .payment-card__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(106, 48, 147, 0.2);
}
.chat-payment-prompt .payment-card__timer i {
  color: #d4af37;
  font-size: 1.1rem;
  margin-right: 0.5rem;
  animation: pulse 2s infinite ease-in-out;
}
.chat-payment-prompt .payment-card__timer span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}
.chat-payment-prompt .payment-card__packages {
  margin-bottom: 1rem;
}
.chat-payment-prompt .payment-card__packages .loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}
.chat-payment-prompt .payment-card__packages .loading-indicator .mystical-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(212, 175, 55, 0.1);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.chat-payment-prompt .payment-card__packages .loading-indicator span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-style: italic;
}
.chat-payment-prompt .payment-card .package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card .package-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
}
.chat-payment-prompt .payment-card .package {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.1s ease-out;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: linear-gradient(135deg, rgba(30, 18, 40, 0.6), rgba(20, 12, 28, 0.6));
}
.chat-payment-prompt .payment-card .package::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.chat-payment-prompt .payment-card .package__content {
  position: relative;
  padding: 0.75rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card .package__content {
    padding: 0.6rem 0.3rem;
  }
}
.chat-payment-prompt .payment-card .package__gems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}
.chat-payment-prompt .payment-card .package__gems i {
  color: #d4af37;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4));
}
.chat-payment-prompt .payment-card .package__gems span {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card .package__gems i {
    font-size: 0.9rem;
  }
  .chat-payment-prompt .payment-card .package__gems span {
    font-size: 1rem;
  }
}
.chat-payment-prompt .payment-card .package__price {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card .package__price {
    font-size: 0.7rem;
  }
}
.chat-payment-prompt .payment-card .package__bonus {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(45deg, #6a3093, #a044ff);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 0 10px 0 6px;
  box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.25);
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card .package__bonus {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }
}
.chat-payment-prompt .payment-card .package__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, #d4af37, #f9e076);
  color: #1a1a2e;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.2rem 0.4rem;
  border-radius: 10px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card .package__badge {
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
  }
}
.chat-payment-prompt .payment-card .package__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  z-index: 5;
}
.chat-payment-prompt .payment-card .package:hover {
  transform: translateY(-3px) scale(1.05);
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(212, 175, 55, 0.2), 0 0 0 1px rgba(212, 175, 55, 0.4);
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, rgba(40, 25, 55, 0.7), rgba(30, 18, 42, 0.7));
}
.chat-payment-prompt .payment-card .package:hover::after {
  opacity: 1;
}
.chat-payment-prompt .payment-card .package:hover .package__price {
  color: #f9e076;
}
.chat-payment-prompt .payment-card .package:active {
  transform: translateY(0px) scale(1.02);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 8px rgba(212, 175, 55, 0.2), 0 0 0 1px rgba(212, 175, 55, 0.5);
  transition: all 0.08s ease-out;
}
.chat-payment-prompt .payment-card .package--disabled {
  opacity: 0.6;
  pointer-events: none;
}
.chat-payment-prompt .payment-card .package--selected {
  border: 1px solid #d4af37;
  background: linear-gradient(135deg, rgba(40, 25, 55, 0.85), rgba(30, 18, 42, 0.85));
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4), 0 5px 15px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.chat-payment-prompt .payment-card .package--selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}
.chat-payment-prompt .payment-card .package--selected .package__gems i {
  animation: pulse 1.5s infinite ease-in-out;
}
.chat-payment-prompt .payment-card .package--popular {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(74, 29, 106, 0.6) 100%);
  transform: scale(1.05);
  border-color: rgba(212, 175, 55, 0.35);
  z-index: 1;
}
.chat-payment-prompt .payment-card .package--popular:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: rgba(212, 175, 55, 0.6);
}
.chat-payment-prompt .payment-card .package--popular .package__gems i {
  color: #f9e076;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.6));
}
.chat-payment-prompt .payment-card__secondary-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.chat-payment-prompt .payment-card__secondary-actions .text-action {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.chat-payment-prompt .payment-card__secondary-actions .text-action i {
  font-size: 1rem;
}
.chat-payment-prompt .payment-card__secondary-actions .text-action:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}
.chat-payment-prompt .payment-card__secondary-actions .text-action.skip-action {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease, background-color 0.2s ease;
}
.chat-payment-prompt .payment-card__secondary-actions .text-action.skip-action.visible {
  opacity: 0.7;
  transform: translateY(0);
}
.chat-payment-prompt .payment-card__secondary-actions .text-action.shop-action {
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.4rem 0.8rem;
}
.chat-payment-prompt .payment-card__secondary-actions .text-action.shop-action:hover {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.1);
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card__secondary-actions .text-action {
    font-size: 0.7rem;
  }
  .chat-payment-prompt .payment-card__secondary-actions .text-action i {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .chat-payment-prompt .payment-card__secondary-actions {
    gap: 0.8rem;
  }
}

@keyframes floatParticles {
  0%, 100% {
    opacity: 0.15;
    transform: translateY(0);
  }
  50% {
    opacity: 0.2;
    transform: translateY(-5px);
  }
}
@keyframes moveShineDiamond {
  0%, 100% {
    top: -6px;
    left: -6px;
    opacity: 0.7;
  }
  50% {
    top: 50%;
    left: 50%;
    opacity: 0.3;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
  }
}
@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.message-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-sm);
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.2s ease;
  z-index: 2;
}
@media (max-width: 600px) {
  .message-input-wrapper {
    position: relative;
    left: 0;
    width: 100%;
    z-index: 100;
    transform: translateY(0);
    transition: transform 0.2s ease;
  }
}
.message-input-wrapper .input-area {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.message-input-wrapper .input-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.message-input-wrapper .input-area:focus-within {
  transform: translateY(-1px);
  border-color: rgba(106, 48, 147, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(106, 48, 147, 0.25);
}
.message-input-wrapper .input-area textarea.message-input {
  width: 100%;
  min-height: 42px;
  height: 42px;
  max-height: 150px;
  padding: 10px var(--spacing-md);
  background: transparent;
  border: none;
  border-radius: var(--border-radius-lg);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  overflow-y: auto;
  box-sizing: border-box;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  transition: height 0.1s ease;
}
.message-input-wrapper .input-area textarea.message-input {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.message-input-wrapper .input-area textarea.message-input::-webkit-scrollbar {
  width: 4px;
}
.message-input-wrapper .input-area textarea.message-input::-webkit-scrollbar-track {
  background: transparent;
}
.message-input-wrapper .input-area textarea.message-input::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
@media screen and (max-width: 767px) {
  .message-input-wrapper .input-area textarea.message-input {
    font-size: 16px;
  }
}
.message-input-wrapper .input-area textarea.message-input:empty {
  overflow: hidden;
}
.message-input-wrapper .input-area textarea.message-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.message-input-wrapper .input-area textarea.message-input:focus {
  outline: none;
  background: transparent;
}
.message-input-wrapper .input-area textarea.message-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.1);
}
.message-input-wrapper .send-button {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a3093 0%, rgb(64.4153846154, 29.1692307692, 89.3307692308) 100%);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 15px rgba(106, 48, 147, 0.25);
  transform: translateZ(0);
  will-change: transform;
}
.message-input-wrapper .send-button:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.05);
  background: linear-gradient(135deg, rgb(119.8615384615, 54.2769230769, 166.2230769231) 0%, #6a3093 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(106, 48, 147, 0.35);
}
.message-input-wrapper .send-button:active:not(:disabled) {
  transform: translateY(0) scale(1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.message-input-wrapper .send-button.send-button--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgb(97.6287878788, 96.75, 98.25) 0%, rgb(59.3282634033, 58.7942307692, 59.7057692308) 100%);
  box-shadow: none;
}
.message-input-wrapper .send-button i {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.message-input-wrapper .send-button:hover:not(:disabled) i {
  transform: rotate(-15deg);
}

.message-input__disabled-message {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(245, 101, 101, 0.8);
  color: white;
  padding: var(--spacing-xs) var(--spacing-lg);
  font-size: 0.85rem;
  text-align: center;
  z-index: 5;
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  animation: fadeSlideDown 0.3s ease forwards;
}

@media (max-width: 599px) {
  .message-input-wrapper {
    gap: var(--spacing-xs);
  }
  .message-input-wrapper .input-area textarea.message-input {
    min-height: 36px;
    height: 36px;
    max-height: 120px;
    padding: 8px var(--spacing-sm);
    font-size: 16px;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
  }
  .message-input-wrapper .send-button {
    width: 36px;
    height: 36px;
  }
  .message-input-wrapper .send-button i {
    font-size: 1.2rem;
  }
}
@keyframes fadeSlideDown {
  from {
    transform: translateY(-5px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes shimmerGradient {
  0% {
    background-position: -150% 50%;
  }
  75% {
    background-position: 150% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes pulseGlow {
  0% {
    opacity: 0.4;
    filter: blur(12px);
  }
  100% {
    opacity: 0.8;
    filter: blur(15px);
  }
}
@keyframes floatParticles {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}
.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  position: relative;
  z-index: 10;
  gap: var(--spacing-sm);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.agent-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(212, 175, 55, 0.4) 20%, rgba(212, 175, 55, 0.6) 50%, rgba(212, 175, 55, 0.4) 80%, transparent 100%);
  opacity: 0.8;
}
.agent-header__info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding-left: var(--spacing-xs);
}
.agent-header__avatar-container {
  position: relative;
  margin-right: 2px;
}
.agent-header__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  position: relative;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.4);
  overflow: hidden;
  background: linear-gradient(135deg, #4a1d6a, #0f172a);
}
.agent-header__avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.5), rgba(106, 48, 147, 0.5));
  z-index: -1;
  opacity: 0.7;
  animation: rotateHue 10s linear infinite;
}
.agent-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agent-header__avatar.pulse-highlight {
  animation: pulseHighlight 2s ease;
}
.agent-header__avatar.pulse-highlight::after {
  animation: expandingRing 2s ease;
}
.agent-header__status {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(26, 26, 46, 0.8);
  z-index: 3;
}
.agent-header__status--online {
  background-color: #3c9d78;
}
.agent-header__status--offline {
  background-color: #6c757d;
}
.agent-header__status-pulse {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #3c9d78;
  opacity: 0.6;
  animation: pulse 2s infinite;
}
.agent-header__details {
  display: flex;
  flex-direction: column;
}
.agent-header__name {
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: white;
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.agent-header__specialization {
  font-size: 0.8rem;
  color: #f7b733;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}
.agent-header__buttons {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-width: fit-content;
}
.agent-header__end-button.r-button {
  background: linear-gradient(135deg, rgba(245, 101, 101, 0.4), rgba(241.8353658537, 52.2646341463, 52.2646341463, 0.4));
  border: 1px solid rgba(245, 101, 101, 0.25);
  padding: var(--spacing-xs) var(--spacing-sm);
}
.agent-header__end-button.r-button:hover {
  background: linear-gradient(135deg, rgba(245, 101, 101, 0.5), rgba(241.8353658537, 52.2646341463, 52.2646341463, 0.5));
  border-color: rgba(245, 101, 101, 0.35);
}
.agent-header__end-button.r-button__text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
}
.agent-header__end-button.r-button i {
  color: rgba(255, 255, 255, 0.95);
}
.agent-header__change-button.r-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  margin-right: var(--spacing-xs);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4), rgba(74, 29, 106, 0.4));
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.agent-header__change-button.r-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(247, 183, 51, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.agent-header__change-button.r-button i {
  font-size: 1.2rem;
  color: #f7b733;
  margin-right: 2px;
  transition: transform 0.3s ease;
}
.agent-header__change-button.r-button__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.agent-header__change-button.r-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5), rgba(74, 29, 106, 0.5));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 10px rgba(247, 183, 51, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}
.agent-header__change-button.r-button:hover::before {
  opacity: 1;
}
.agent-header__change-button.r-button:hover i {
  transform: rotate(180deg);
}
.agent-header__change-button.r-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.agent-header .badge-container {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-header .badge-container.has-both-badges .premium-badge, .agent-header .badge-container.has-both-badges .free-question-badge {
  margin: 0;
  transform-origin: left center;
}
.agent-header .badge-container.has-both-badges .premium-badge {
  z-index: 2;
}
.agent-header .badge-container.has-both-badges .free-question-badge {
  margin-left: -10px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  padding-left: 16px;
  z-index: 1;
}
.agent-header .premium-badge, .agent-header .free-question-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  height: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: badge-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.agent-header .premium-badge i, .agent-header .free-question-badge i {
  flex-shrink: 0;
  z-index: 2;
}
.agent-header .premium-badge span, .agent-header .free-question-badge span {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.agent-header .premium-badge::before, .agent-header .free-question-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.3), transparent 70%);
  z-index: 1;
}
.agent-header .premium-badge::after, .agent-header .free-question-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  transform: skewX(-25deg) translateX(-160%);
  pointer-events: none;
  left: -100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: agentHeaderBadgeShimmer 3s infinite;
  z-index: 1;
}
.agent-header .premium-badge:hover, .agent-header .free-question-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}
.agent-header .premium-badge {
  background: linear-gradient(135deg, rgba(40, 0, 60, 0.85) 0%, rgba(80, 30, 120, 0.85) 100%);
  border: 1px solid rgba(247, 183, 51, 0.7);
  padding: 0 12px;
}
.agent-header .premium-badge i {
  font-size: 16px;
  margin-right: 6px;
  color: #d4af37;
  text-shadow: 0 0 8px rgba(247, 183, 51, 0.8);
  animation: gold-pulse 3s infinite alternate;
}
.agent-header .premium-badge span {
  color: #f9e076;
  background: linear-gradient(to right, #f9e076, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.agent-header .free-question-badge {
  background: linear-gradient(135deg, rgba(0, 40, 20, 0.85) 0%, rgba(0, 80, 60, 0.85) 100%);
  border: 1px solid rgba(60, 219, 120, 0.7);
  padding: 0 12px;
}
.agent-header .free-question-badge i {
  font-size: 16px;
  margin-right: 6px;
  color: #4ddbba;
  text-shadow: 0 0 8px rgba(20, 250, 160, 0.6);
  animation: green-pulse 3s infinite alternate;
}
.agent-header .free-question-badge span {
  color: #5eed9e;
  background: linear-gradient(to right, #5eed9e, #3bcd99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.agent-header__info.clickable {
  cursor: pointer;
  position: relative;
  border-radius: 18px;
  outline: none;
  background: rgba(106, 48, 147, 0.04);
  box-shadow: 0 0 0 1.5px rgba(212, 175, 55, 0.1), 0 1px 6px 0 rgba(106, 48, 147, 0.04);
  transition: box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1), background 0.14s cubic-bezier(0.4, 0, 0.2, 1), transform 0.14s cubic-bezier(0.4, 0, 0.2, 1);
}
.agent-header__info.clickable:hover, .agent-header__info.clickable:focus-visible {
  box-shadow: 0 0 0 2.5px rgba(212, 175, 55, 0.18), 0 2px 12px 0 rgba(106, 48, 147, 0.1);
  background: rgba(106, 48, 147, 0.07);
  transform: scale(1.025);
}
.agent-header__avatar {
  transition: box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.14s cubic-bezier(0.4, 0, 0.2, 1);
}
.agent-header__avatar:hover, .agent-header__info.clickable:hover .agent-header__avatar, .agent-header__avatar:focus, .agent-header__info.clickable:focus-visible .agent-header__avatar {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22), 0 4px 16px 0 rgba(106, 48, 147, 0.18);
  transform: scale(1.06);
}
.agent-header__avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.agent-header__info.clickable:hover .agent-header__avatar::before, .agent-header__info.clickable:focus-visible .agent-header__avatar::before {
  opacity: 1;
  animation: agent-avatar-pulse 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.agent-header__chevron {
  font-size: 1.5rem;
  color: #f9e076;
  margin-left: 8px;
  align-self: center;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.18s;
  opacity: 0.85;
}
.agent-header__info.clickable:hover .agent-header__chevron, .agent-header__info.clickable:focus-visible .agent-header__chevron {
  transform: translateX(2px) scale(1.12);
  color: #d4af37;
  opacity: 1;
}
@keyframes agent-avatar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.18);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.18);
  }
}
@media (max-width: 600px) {
  .agent-header__info.clickable {
    border-radius: 14px;
    padding: 2px 4px;
    background: rgba(106, 48, 147, 0.03);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.07), 0 1px 3px 0 rgba(106, 48, 147, 0.02);
  }
  .agent-header__info.clickable:hover, .agent-header__info.clickable:focus-visible {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.13), 0 1px 6px 0 rgba(106, 48, 147, 0.07);
    background: rgba(106, 48, 147, 0.04);
    transform: scale(1.01);
  }
  .agent-header__chevron {
    font-size: 1.2rem;
    margin-left: 4px;
  }
  .agent-header__avatar {
    width: 38px;
    height: 38px;
  }
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 183, 51, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(247, 183, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 183, 51, 0);
  }
}
@keyframes expandingRing {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }
}
@keyframes badge-appear {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes agentHeaderBadgeShimmer {
  0% {
    left: -120%;
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  75% {
    left: 120%;
    opacity: 0.7;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}
@keyframes gold-pulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(247, 183, 51, 0.8);
  }
  50% {
    text-shadow: 0 0 16px rgb(247, 183, 51);
  }
}
@keyframes green-pulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(20, 250, 160, 0.6);
  }
  50% {
    text-shadow: 0 0 16px rgba(20, 250, 160, 0.9);
  }
}
@media (max-width: 599px) {
  .agent-header {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  .agent-header__avatar {
    width: 38px;
    height: 38px;
  }
  .agent-header__name {
    font-size: 0.95rem;
  }
  .agent-header__specialization {
    font-size: 0.75rem;
  }
  .agent-header__buttons {
    gap: var(--spacing-xs);
  }
  .agent-header__end-button.r-button {
    padding: var(--spacing-xs) var(--spacing-xs);
  }
  .agent-header__end-button.r-button__text {
    font-size: 0.8rem;
  }
  .agent-header__end-button.r-button i {
    font-size: 1rem;
  }
  .agent-header__change-button.r-button {
    padding: var(--spacing-xs) var(--spacing-xs);
  }
  .agent-header__change-button.r-button__text {
    font-size: 0.8rem;
  }
  .agent-header__change-button.r-button i {
    font-size: 1rem;
  }
  .agent-header .badge-container {
    top: 8px;
    left: 8px;
    gap: 6px;
  }
  .agent-header .badge-container.has-both-badges .free-question-badge {
    margin-left: -8px;
    padding-left: 12px;
  }
  .agent-header .premium-badge, .agent-header .free-question-badge {
    height: 24px;
  }
  .agent-header .premium-badge i, .agent-header .free-question-badge i {
    font-size: 14px;
    margin-right: 4px;
  }
  .agent-header .premium-badge span, .agent-header .free-question-badge span {
    font-size: 0.7rem;
  }
}
.chakra-button.active::after {
  background-image: linear-gradient(to bottom, rgba(245, 101, 101, 0.8), rgba(240.7804878049, 36.0195121951, 36.0195121951, 0.8));
}
.chakra-button:hover::after {
  background-image: linear-gradient(to bottom, rgba(245, 101, 101, 0.85), rgba(239.7256097561, 19.7743902439, 19.7743902439, 0.85));
}

@keyframes agent-avatar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.18);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.18);
  }
}
@media (max-width: 600px) {
  .agent-header__info.clickable {
    border-radius: 14px;
    padding: 2px 4px;
    background: rgba(106, 48, 147, 0.03);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.07), 0 1px 3px 0 rgba(106, 48, 147, 0.02);
  }
  .agent-header__info.clickable:hover, .agent-header__info.clickable:focus-visible {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.13), 0 1px 6px 0 rgba(106, 48, 147, 0.07);
    background: rgba(106, 48, 147, 0.04);
    transform: scale(1.01);
  }
  .agent-header__chevron {
    font-size: 1.2rem;
    margin-left: 4px;
  }
  .agent-header__avatar {
    width: 38px;
    height: 38px;
  }
}
.agent-list-card {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(26, 32, 44, 0.7) 0%, rgba(26, 32, 44, 0.85) 100%);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-diffuse), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(15px);
  animation: agent-card-appear 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.05s * var(--card-index, 0));
  will-change: transform, opacity;
}
.agent-list-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5), rgba(247, 183, 51, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.agent-list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(106, 48, 147, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.agent-list-card:hover::before {
  opacity: 0.8;
}
.agent-list-card:hover .agent-action {
  opacity: 1;
  transform: translateX(0);
}
.agent-list-card:hover .agent-list-card__avatar {
  transform: scale(1.03);
}
.agent-list-card--previously-selected {
  border-color: rgba(var(--color-gold-rgb), 0.3);
  background: linear-gradient(135deg, rgba(51, 16, 62, 0.7) 0%, rgba(51, 16, 62, 0.85) 100%);
}
.agent-list-card--previously-selected::before {
  opacity: 0.4;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.4), rgba(106, 48, 147, 0.4));
}
.agent-list-card__avatar-container {
  position: relative;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
  flex-basis: 70px;
}
.agent-list-card__avatar-container .premium-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(30, 20, 40, 0.85);
  border: 1.5px solid rgba(247, 183, 51, 0.6);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 10;
}
.agent-list-card__avatar-container .premium-badge .premium-icon {
  font-size: 16px;
  color: var(--color-gold);
  filter: drop-shadow(0 0 2px rgba(247, 183, 51, 0.6));
}
.agent-list-card__avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-normal);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  z-index: 1;
  will-change: transform;
  background-color: var(--color-bg-medium);
}
.agent-list-card__avatar-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
}
.agent-list-card__avatar-symbol {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-mystic);
}
.agent-list-card__avatar-symbol .avatar-icon {
  font-size: 32px;
  color: var(--color-gold);
}
.agent-list-card__status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-bg-dark);
  z-index: 2;
  transition: background-color 0.3s ease;
}
.agent-list-card__status--online {
  background-color: var(--color-success);
}
.agent-list-card__status--online .status-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--color-success);
  opacity: 0;
  transform: scale(1);
  animation: pulse-status 2s ease-out infinite;
  pointer-events: none;
}
.agent-list-card__status--offline {
  background-color: var(--color-text-muted);
}
.agent-list-card__status--offline .status-pulse {
  display: none;
}
.agent-list-card .history-indicator {
  position: absolute;
  top: -4px;
  left: -4px;
  background: rgba(var(--color-accent-rgb), 0.2);
  border: 1px solid rgba(var(--color-accent-rgb), 0.6);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.agent-list-card .history-indicator .history-icon {
  font-size: 14px;
  color: var(--color-accent);
  filter: drop-shadow(0 0 2px rgba(var(--color-accent-rgb), 0.6));
}
.agent-list-card__details {
  flex: 1;
  min-width: 0;
  margin-right: var(--spacing-sm);
}
.agent-list-card__name-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: 2px;
}
.agent-list-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-family-heading);
}
.agent-list-card .current-badge {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-gold);
}
.agent-list-card .current-badge .current-icon {
  font-size: 16px;
  margin-right: 2px;
  filter: drop-shadow(0 0 3px rgba(247, 183, 51, 0.5));
}
.agent-list-card__specialization {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-bottom: 4px;
  max-height: 24px;
  overflow: hidden;
}
.agent-list-card__specialization .specialization-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-medium);
  white-space: nowrap;
}
.agent-list-card__specialization .specialization-tag .specialization-icon {
  font-size: 12px;
  margin-right: 3px;
  opacity: 0.8;
}
.agent-list-card__specialization .specialization-more {
  font-size: 0.7rem;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-medium);
  margin-left: 2px;
}
.agent-list-card__languages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.agent-list-card__languages .language-chip {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.agent-list-card__languages .language-chip--more {
  background: transparent;
  border-style: dashed;
}
.agent-list-card__stats {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.75rem;
  color: var(--color-text-light);
  opacity: 0.8;
  flex-wrap: wrap;
}
.agent-list-card__stats .stat-rating, .agent-list-card__stats .stat-consultations, .agent-list-card__stats .stat-rate {
  display: flex;
  align-items: center;
  gap: 3px;
}
.agent-list-card__stats .stat-rating i.material-symbols-rounded.filled, .agent-list-card__stats .stat-consultations i.material-symbols-rounded.filled, .agent-list-card__stats .stat-rate i.material-symbols-rounded.filled {
  font-size: 14px;
  position: relative;
  top: -1px;
}
.agent-list-card__stats .star {
  color: var(--color-gold);
}
.agent-list-card__stats .stat-rate {
  position: relative;
}
.agent-list-card__action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.agent-list-card__action .arrow-icon {
  color: var(--color-text-light);
  opacity: 0.6;
  transition: all var(--transition-normal);
}
.agent-list-card .free-question-badge {
  position: absolute;
  right: -32px;
  top: -12px;
  background: var(--color-success);
  color: white;
  padding: 2px 4px;
  font-size: 0.6rem;
  font-weight: bold;
  transform: rotate(30deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}
.agent-list-card .free-question-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.agent-list-card .agent-action {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.4) 0%, rgba(var(--color-primary-dark-rgb), 0.4) 100%);
  color: var(--color-gold-light);
  transition: all 0.3s ease;
  margin-left: var(--spacing-sm);
  opacity: 0.7;
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  transform: translateY(5px);
}
.agent-list-card .agent-action i {
  font-size: 1.2rem;
}
.agent-list-card .agent-action:hover {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.6) 0%, rgba(var(--color-primary-dark-rgb), 0.6) 100%);
  transform: scale(1.05) translateY(0);
}
.agent-list-card--has-history {
  border-left: 3px solid var(--color-accent);
}
.agent-list-card--has-history::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}
.agent-list-card.has-history {
  border-left: 3px solid var(--color-accent);
}
.agent-list-card.has-history::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}
.agent-list-card--skeleton {
  pointer-events: none;
  background: linear-gradient(135deg, rgba(40, 30, 50, 0.7) 0%, rgba(40, 30, 50, 0.85) 100%);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: none;
  opacity: 1;
}
.agent-list-card--skeleton .agent-list-card__avatar-image,
.agent-list-card--skeleton .agent-list-card__avatar-symbol,
.agent-list-card--skeleton .agent-list-card__name,
.agent-list-card--skeleton .agent-list-card__specialization,
.agent-list-card--skeleton .agent-list-card__stats,
.agent-list-card--skeleton .agent-list-card__action {
  background: linear-gradient(90deg, rgba(60, 50, 80, 0.2) 25%, rgba(80, 70, 110, 0.3) 50%, rgba(60, 50, 80, 0.2) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s infinite linear;
  color: transparent !important;
  border-radius: 6px;
  min-height: 1em;
}
.agent-list-card--skeleton .agent-list-card__avatar-image img {
  display: none;
}
.agent-list-card--skeleton .premium-badge, .agent-list-card--skeleton .history-indicator, .agent-list-card--skeleton .current-badge, .agent-list-card--skeleton .free-question-badge {
  display: none;
}

@keyframes pulse-status {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
.agent-list-card.highlight-flash {
  animation: highlight-flash 1.5s ease-out;
}

@keyframes highlight-flash {
  0% {
    box-shadow: 0 0 0 rgba(247, 183, 51, 0);
    background: rgba(247, 183, 51, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(247, 183, 51, 0.5);
    background: rgba(247, 183, 51, 0.1);
  }
  100% {
    box-shadow: 0 0 0 rgba(247, 183, 51, 0);
    background: rgba(40, 30, 50, 0.4);
  }
}
@keyframes agent-card-appear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.agent-filter-header {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: var(--spacing-lg);
  padding: 0.75rem 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-bottom: 1px solid rgba(106, 48, 147, 0.2);
  position: relative;
  z-index: 5;
}
@media (max-width: 768px) {
  .agent-filter-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: var(--spacing-md);
  }
  .agent-filter-header__left {
    order: 2;
    width: 100%;
    margin-top: 0.5rem;
  }
  .agent-filter-header__center {
    order: 1;
    width: 100%;
  }
  .agent-filter-header__center .specialization-filter {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .agent-filter-header__center .specialization-filter .specialization-chips {
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
  .agent-filter-header__right {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }
}
.agent-filter-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 183, 51, 0) 0%, rgba(247, 183, 51, 0.2) 50%, rgba(247, 183, 51, 0) 100%);
}
.custom-tabs .agent-filter-header {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
}
.agent-filter-header__dropdown {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  padding: var(--spacing-sm);
  z-index: 30;
  box-shadow: var(--shadow-md), inset 0 0 15px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.agent-filter-header__dropdown::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(106, 48, 147, 0.3) 30%, rgba(106, 48, 147, 0.4) 50%, rgba(106, 48, 147, 0.3) 70%, transparent 100%);
}
.agent-filter-header__dropdown.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.agent-filter-header__left, .agent-filter-header__center, .agent-filter-header__right {
  display: flex;
  align-items: center;
}
.agent-filter-header__left {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.agent-filter-header__center {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 150px;
}
.agent-filter-header__center .specialization-filter {
  width: 100%;
}
.agent-filter-header__center .specialization-filter .specialization-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
}
.agent-filter-header__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}
.agent-filter-header__filter-button {
  height: 38px;
  min-width: 150px;
  width: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(60, 30, 80, 0.5) 0%, rgba(40, 20, 60, 0.5) 100%);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-gold-light);
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  min-width: auto;
  font-size: 14px;
  white-space: nowrap;
}
.agent-filter-header__filter-button i {
  margin-right: 4px;
  font-size: 18px;
  color: var(--color-gold);
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
  transition: transform 0.2s ease-out;
}
.agent-filter-header__filter-button span {
  display: inline-block;
}
@media (max-width: 600px) {
  .agent-filter-header__filter-button {
    min-width: auto;
    width: 42px;
    padding: 8px;
  }
  .agent-filter-header__filter-button span {
    display: none;
  }
}
.agent-filter-header__filter-button:hover {
  background: linear-gradient(135deg, rgba(80, 40, 100, 0.6) 0%, rgba(60, 30, 80, 0.6) 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(106, 48, 147, 0.2);
}
.agent-filter-header__filter-button:hover i {
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}
.agent-filter-header__filter-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.agent-filter-header__filter-button.has-active-filters {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(76, 29, 92, 0.5) 100%);
  border-color: rgba(247, 183, 51, 0.2);
  box-shadow: 0 0 12px rgba(106, 48, 147, 0.3), 0 0 8px rgba(247, 183, 51, 0.1);
}
.agent-filter-header__filter-button.has-active-filters i {
  color: var(--color-gold);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}
.agent-filter-header__filter-button.has-active-filters:hover {
  background: linear-gradient(135deg, rgba(126, 58, 167, 0.6) 0%, rgba(96, 39, 132, 0.6) 100%);
}
.agent-filter-header__filter-button .filter-notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 5px rgba(247, 183, 51, 0.5);
}
.agent-filter-header .sort-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.agent-filter-header .sort-selector__label {
  font-size: 12px;
  color: var(--color-gold-light);
  opacity: 0.8;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.agent-filter-header .sort-selector__options {
  display: flex;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.agent-filter-header .sort-selector .sort-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: none;
  background: transparent;
  color: var(--color-light);
  font-size: 11px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex: 0 0 auto;
  gap: 4px;
  min-width: 70px;
}
.agent-filter-header .sort-selector .sort-option i {
  font-size: 14px;
  color: var(--color-light);
  opacity: 0.8;
  transition: all var(--transition-fast);
}
.agent-filter-header .sort-selector .sort-option .sort-direction-icon {
  font-size: 16px;
  opacity: 0.9;
  margin-left: 2px;
}
.agent-filter-header .sort-selector .sort-option:hover {
  background: rgba(255, 255, 255, 0.05);
}
.agent-filter-header .sort-selector .sort-option:hover i {
  color: var(--color-gold);
  opacity: 1;
  transform: scale(1.1);
}
.agent-filter-header .sort-selector .sort-option.active {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(76, 29, 92, 0.4) 100%);
  color: var(--color-gold-light);
}
.agent-filter-header .sort-selector .sort-option.active i {
  color: var(--color-gold);
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4));
}
.agent-filter-header .sort-selector .sort-option.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(247, 183, 51, 0.3), rgba(247, 183, 51, 0.8), rgba(247, 183, 51, 0.3));
  box-shadow: 0 0 5px rgba(247, 183, 51, 0.4);
}
.agent-filter-header .sort-selector .sort-option:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.agent-filter-header .filter-select {
  width: 100%;
  min-width: 120px;
  max-width: 180px;
}
.agent-filter-header .filter-select :deep(.mud-input) {
  color: var(--color-light);
  height: 40px;
  transition: all var(--transition-normal);
}
.agent-filter-header .filter-select :deep(.mud-input):hover, .agent-filter-header .filter-select :deep(.mud-input):focus {
  transform: translateY(-1px);
}
.agent-filter-header .filter-select :deep(.mud-input-label) {
  color: var(--color-gold-light);
  opacity: 0.8;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
}
.agent-filter-header .filter-select :deep(.mud-input-slot) {
  color: var(--color-light);
}
.agent-filter-header .filter-select :deep(.mud-input-outlined-border) {
  border-color: rgba(255, 255, 255, 0.15);
  transition: all var(--transition-normal);
}
.agent-filter-header .filter-select:hover :deep(.mud-input-outlined-border) {
  border-color: rgba(247, 183, 51, 0.3);
  box-shadow: 0 0 8px rgba(247, 183, 51, 0.1);
}
.agent-filter-header .filter-select :deep(.mud-input-adornment) {
  color: var(--color-gold);
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.2));
}
.agent-filter-header .filter-select :deep(.mud-popover-paper) {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(106, 48, 147, 0.2);
}
.agent-filter-header .filter-select :deep(.mud-popover-paper) .mud-list {
  background: transparent;
}
.agent-filter-header .filter-select :deep(.mud-popover-paper) .mud-list .mud-list-item {
  color: var(--color-light);
  transition: all var(--transition-fast);
}
.agent-filter-header .filter-select :deep(.mud-popover-paper) .mud-list .mud-list-item:hover {
  background: rgba(106, 48, 147, 0.2);
}
.agent-filter-header .filter-select :deep(.mud-popover-paper) .mud-list .mud-list-item.mud-selected-item {
  background: rgba(247, 183, 51, 0.15);
  color: var(--color-gold-light);
}
.agent-filter-header .filter-select :deep(.mud-popover-paper) .mud-list .mud-list-item.mud-selected-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(247, 183, 51, 0.5);
}
.agent-filter-header :deep(.mud-switch) {
  margin: 0;
}
.agent-filter-header :deep(.mud-switch) .mud-switch-label {
  color: var(--color-light);
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: color var(--transition-normal);
}
.agent-filter-header :deep(.mud-switch) .mud-switch-span {
  color: var(--color-light);
}
.agent-filter-header :deep(.mud-switch) .mud-switch-track {
  opacity: 0.3;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}
.agent-filter-header :deep(.mud-switch) .mud-checked .mud-switch-thumb {
  background-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(247, 183, 51, 0.4);
}
.agent-filter-header :deep(.mud-switch) .mud-checked .mud-switch-track {
  opacity: 0.5;
  background-color: rgba(106, 48, 147, 0.5);
}
.agent-filter-header :deep(.mud-switch) .mud-checked + .mud-switch-label {
  color: var(--color-gold-light);
}
.agent-filter-header :deep(.mud-switch):hover .mud-switch-track {
  opacity: 0.4;
}
.agent-filter-header :deep(.mud-switch):hover .mud-switch-thumb {
  transform: scale(1.05);
}
.agent-filter-header .dropdown-section {
  margin-bottom: var(--spacing-sm);
}
.agent-filter-header .dropdown-section:last-child {
  margin-bottom: 0;
}
.agent-filter-header .dropdown-section__header {
  font-size: 13px;
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xxs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}
.agent-filter-header .dropdown-section__content {
  padding: var(--spacing-xs) 0;
}
.agent-filter-header .specialization-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}
.agent-filter-header .specialization-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  color: var(--color-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.agent-filter-header .specialization-button i {
  font-size: 16px;
  color: var(--color-light);
  opacity: 0.9;
  transition: all var(--transition-fast);
}
.agent-filter-header .specialization-button:hover {
  background: rgba(106, 48, 147, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.agent-filter-header .specialization-button:hover i {
  color: var(--color-gold);
  transform: scale(1.1);
}
.agent-filter-header .specialization-button.active {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.6) 0%, rgba(76, 29, 92, 0.6) 100%);
  border-color: rgba(247, 183, 51, 0.2);
  color: var(--color-gold-light);
  box-shadow: 0 0 15px rgba(106, 48, 147, 0.3);
}
.agent-filter-header .specialization-button.active i {
  color: var(--color-gold);
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4));
}
@media (max-width: 768px) {
  .agent-filter-header.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
  }
}
.agent-filter-header.expanded .agent-filter-header__dropdown {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .agent-filter-header {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .agent-filter-header__left {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }
  .agent-filter-header__center {
    display: none;
    order: 2;
  }
  .agent-filter-header__right {
    display: flex;
    flex: 0 0 auto;
    order: 3;
  }
  .agent-filter-header__filter-button {
    display: flex;
  }
  .agent-filter-header.expanded {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    border-bottom: none;
  }
  .agent-filter-header.expanded::after {
    display: none;
  }
  .agent-filter-header.expanded .agent-filter-header__dropdown {
    display: block !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .agent-filter-header__dropdown .filter-select {
    max-width: none;
    margin-bottom: var(--spacing-sm);
  }
  .agent-filter-header__dropdown .mud-switch-label {
    justify-content: flex-start;
  }
  .agent-filter-header__left .sort-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .agent-filter-header__left .sort-selector__options {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .agent-filter-header__left {
    order: 1;
    width: auto;
    flex: 1 1 auto;
    margin-top: 0;
  }
  .agent-filter-header__center {
    order: 2;
  }
  .agent-filter-header__right {
    order: 3;
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
  }
  .agent-filter-header__filter-button {
    padding: var(--spacing-xs);
  }
  .agent-filter-header__filter-button span {
    display: none;
  }
  .agent-filter-header__filter-button i {
    margin-right: 0;
  }
  .agent-filter-header .sort-buttons, .agent-filter-header .specialization-buttons {
    flex-direction: column;
  }
  .agent-filter-header .dropdown-section .sort-buttons, .agent-filter-header .dropdown-section .specialization-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
.filter-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-action-btn {
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  min-width: 100px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.filter-action-btn.clear-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-light);
}
.filter-action-btn.clear-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}
.filter-action-btn.clear-btn:active {
  transform: translateY(1px);
}
.filter-action-btn.apply-btn {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8) 0%, rgba(76, 29, 112, 0.8) 100%);
  color: var(--color-gold-light);
  border: 1px solid rgba(247, 183, 51, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(106, 48, 147, 0.3);
}
.filter-action-btn.apply-btn:hover {
  background: linear-gradient(135deg, rgba(126, 58, 167, 0.8) 0%, rgba(96, 39, 132, 0.8) 100%);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), 0 0 18px rgba(106, 48, 147, 0.4);
  transform: translateY(-1px);
}
.filter-action-btn.apply-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(106, 48, 147, 0.2);
}

.profile-page__auth-section {
  background-color: rgba(30, 30, 48, 0.5);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.75rem 0;
  overflow: hidden;
}

.profile-page__auth-container {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.profile-page__auth-info {
  flex: 1;
}
.profile-page__auth-info p {
  color: var(--color-text-secondary);
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.2;
}

.profile-page__auth-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.profile-page__auth-title h4 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--color-text-primary);
}
.profile-page__auth-title i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.profile-page__auth-welcome {
  color: var(--color-text-secondary);
}

.profile-page__auth-name {
  color: var(--color-text-primary);
  font-weight: 500;
}

.profile-page__auth-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  position: relative;
  width: 100%;
}

.profile-page__auth-title-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profile-page__auth-title-area i {
  color: var(--color-error);
  font-size: 1.2rem;
}
.profile-page__auth-title-area h4 {
  margin: 0;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  letter-spacing: 0.05rem;
}

.profile-page__auth-buttons-area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 500px) {
  .profile-page__auth-buttons-area {
    flex-direction: row;
  }
}
@media (max-width: 420px) {
  .profile-page__auth-buttons-area {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.profile-page__gem-bonus {
  position: absolute;
  top: -12px;
  right: 0;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.7), rgba(45, 20, 65, 0.8));
  border-radius: 12px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 6px rgba(247, 183, 51, 0.5);
  z-index: 10;
  animation: gemPulse 2s infinite;
}
.profile-page__gem-bonus i {
  color: var(--color-gold);
  font-size: 0.85rem;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.7));
  animation: gemSpin 3s ease-in-out infinite alternate;
}
.profile-page__gem-bonus span {
  color: var(--color-gold-light);
  font-size: 0.7rem;
  font-weight: 700;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #131314;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #e3e3e3;
  cursor: pointer;
  font-family: "Roboto", arial, sans-serif;
  font-size: 13px;
  height: 36px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: 100%;
  max-width: 240px;
}
@media (max-width: 420px) {
  .gsi-material-button {
    max-width: 100%;
  }
}
.gsi-material-button--light {
  background-color: #fff;
  color: #1f1f1f;
  border-color: #dbdbdb;
}
.gsi-material-button--light .gsi-material-button-contents {
  color: #1f1f1f;
  font-weight: 500;
}

.gsi-material-button .gsi-material-button-icon {
  height: 18px;
  margin-right: 8px;
  min-width: 18px;
  width: 18px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 0;
  font-family: "Roboto", arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity 0.218s;
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: rgba(19, 19, 20, 0.3803921569);
  border-color: rgba(142, 145, 143, 0.1215686275);
}

.gsi-material-button:disabled .gsi-material-button-state {
  background-color: rgba(227, 227, 227, 0.1215686275);
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: rgba(0, 0, 0, 0.12);
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: rgba(0, 0, 0, 0.08);
  opacity: 8%;
}

.apple-auth-button {
  background-color: #000;
  color: #fff;
  border-radius: 20px;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  min-width: 200px;
  max-width: 240px;
  width: 100%;
}
@media (max-width: 420px) {
  .apple-auth-button {
    max-width: 100%;
  }
}
.apple-auth-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.2s ease;
}
.apple-auth-button:hover::after {
  background-color: rgba(255, 255, 255, 0.1);
}
.apple-auth-button:active {
  transform: scale(0.98);
}
.apple-auth-button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.apple-auth-logo {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #fff;
}

.profile-page__logout-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  background: transparent;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-page__logout-link i {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
}
.profile-page__logout-link:hover {
  background-color: rgba(220, 0, 0, 0.08);
  color: var(--color-error);
}
.profile-page__logout-link:hover i {
  color: var(--color-error);
}
.profile-page__logout-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 0, 0, 0.2);
}

@media (max-width: 420px) {
  .profile-page__auth-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .profile-page__auth-buttons-area {
    width: 100%;
  }
  .profile-page__gem-bonus {
    top: -12px;
    right: 10px;
  }
}
@keyframes gemPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 4px rgba(247, 183, 51, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 8px rgba(247, 183, 51, 0.6);
  }
}
@keyframes gemSpin {
  0%, 100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}
.gem-package-card {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, rgba(45, 20, 65, 0.7), rgba(15, 5, 35, 0.95));
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 0;
  isolation: isolate;
  transform-style: preserve-3d;
  transform: perspective(1000px) translateZ(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}
.gem-package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 215, 0, 0.1) 50%, rgba(255, 215, 0, 0.5)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.gem-package-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.9) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 40% 70%, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1.5px 1.5px at 80% 10%, rgba(247, 183, 51, 0.8) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 30% 50%, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 70% 40%, rgba(247, 183, 51, 0.7) 50%, transparent 100%), radial-gradient(1.3px 1.3px at 10% 60%, rgba(255, 255, 255, 0.75) 50%, transparent 100%), radial-gradient(1.4px 1.4px at 50% 90%, rgba(247, 183, 51, 0.8) 50%, transparent 100%);
  opacity: 0.25;
  z-index: -1;
  transition: opacity 0.5s ease;
  animation: floatParticle 10s ease-in-out infinite alternate;
}
.gem-package-card:hover {
  transform: perspective(1000px) translateZ(10px) scale(1.08);
  z-index: 10;
}
.gem-package-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0.4) 50%, rgba(255, 215, 0, 0.8)) border-box;
}
.gem-package-card:hover::after {
  opacity: 0.4;
  animation: floatParticle 5s ease-in-out infinite alternate;
}
.gem-package-card:hover .gem-package-card__inner-glow {
  opacity: 0.6;
}
.gem-package-card:hover .gem-package-card__title h3 {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}
.gem-package-card:hover .gem-package-card__icon {
  transform: scale(1.15) translateY(-5px);
}
.gem-package-card:hover .gem-package-card__icon .gem-icon {
  animation-duration: 1.5s;
}
.gem-package-card:hover .gem-package-card__amount-display {
  transform: scale(1.08);
}
.gem-package-card:hover .gem-package-card__amount-display span {
  background-position: 200% center;
}
.gem-package-card:hover .gem-package-card__bonus-ribbon span {
  box-shadow: 0 3px 15px rgba(180, 20, 40, 0.6);
}
.gem-package-card:hover .gem-package-card__price {
  color: white;
  transform: scale(1.05);
}
.gem-package-card:hover .gem-package-card__tap-hint {
  transform: scale(1.2);
  opacity: 1;
}
.gem-package-card:active {
  transform: perspective(1000px) translateZ(5px) scale(1.04);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gem-package-card:active .gem-package-card__inner-glow {
  opacity: 0.8;
}
.gem-package-card:active .gem-package-card__tap-hint {
  transform: scale(0.8);
  opacity: 0.8;
}
.gem-package-card--popular {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.6), rgba(45, 20, 65, 0.9));
  z-index: 2;
  transform: perspective(1000px) translateZ(5px) scale(1.05);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(106, 48, 147, 0.2), 0 0 10px rgba(247, 183, 51, 0.2);
}
.gem-package-card--popular::before {
  opacity: 0.9;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 140, 0, 0.4) 50%, rgba(255, 215, 0, 0.8)) border-box;
  animation: pulseBorder 2.5s ease-in-out infinite;
}
.gem-package-card--popular .gem-package-card__inner-glow {
  opacity: 0.4;
}
.gem-package-card--popular .gem-package-card__content {
  padding-top: 26px;
}
.gem-package-card--popular .gem-package-card__title {
  margin-bottom: 8px;
}
.gem-package-card--popular .gem-package-card__title h3 {
  font-size: 17px;
}
.gem-package-card--popular .gem-package-card__footer {
  margin-top: -14px;
}
.gem-package-card--popular .gem-package-card__bonus-ribbon {
  top: -5px;
  right: -5px;
}
.gem-package-card--popular .gem-package-card__amount-display span {
  font-size: 36px;
}
.gem-package-card__inner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.gem-package-card__popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 5px 0;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  color: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 53% 70%, 50% 100%, 47% 70%, 0 70%);
  height: 36px;
}
.gem-package-card__bonus-ribbon {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 80px;
  height: 80px;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
}
.gem-package-card__bonus-ribbon::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(150, 20, 30, 0.8);
  z-index: 6;
  top: 0;
  right: 0;
  box-shadow: -12px 12px 12px rgba(0, 0, 0, 0.3);
  transform: skew(-45deg, -45deg);
}
.gem-package-card__bonus-ribbon span {
  position: absolute;
  display: block;
  width: 120px;
  padding: 5px 0;
  background: linear-gradient(135deg, rgba(190, 20, 40, 0.95) 0%, rgba(220, 30, 50, 0.98) 25%, rgb(255, 40, 60) 50%, rgba(220, 30, 50, 0.98) 75%, rgba(190, 20, 40, 0.95) 100%), linear-gradient(45deg, rgba(20, 0, 0, 0.8) 0%, rgba(80, 0, 0, 0.4) 50%, rgba(20, 0, 0, 0.8) 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  transform: rotate(45deg);
  right: -35px;
  top: 14px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.gem-package-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 15px 12px 12px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}
.gem-package-card__header {
  width: 100%;
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5px;
}
.gem-package-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 6px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gem-package-card__icon .gem-icon {
  position: relative;
  font-size: 38px;
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(247, 183, 51, 0.5));
  animation: shineDiamond 3s infinite ease-in-out;
  transform-style: preserve-3d;
}
.gem-package-card__icon .gem-icon::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 20%);
  opacity: 0.7;
  pointer-events: none;
  animation: moveShineSpot 3s infinite ease-in-out;
}
.gem-package-card__title {
  margin: 0 0 5px;
}
.gem-package-card__title h3 {
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.gem-package-card__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  margin: 0 0 4px;
  max-width: 90%;
  max-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.gem-package-card__footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4px;
}
.gem-package-card__amount-display {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gem-package-card__amount-display span {
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold) 50%, var(--color-gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShine 3s linear infinite;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  display: block;
}
.gem-package-card__price {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  position: relative;
  z-index: 2;
  line-height: 1;
}
.gem-package-card__tap-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transform: scale(0.9);
  transition: all 0.3s ease;
}
.gem-package-card__tap-hint i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.gem-package-card.loading {
  pointer-events: none;
}
.gem-package-card.loading::after {
  opacity: 0.15;
  animation: none;
}
.gem-package-card.loading .gem-package-card__inner-glow {
  opacity: 0.1;
}
.gem-package-card.loading .gem-package-card__content {
  opacity: 0.6;
  filter: blur(1px);
}
.gem-package-card__loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.gem-package-card__loading-overlay .spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.gem-package-card__loading-overlay .spinner-container span {
  color: #f9e076;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.gem-package-card__loading-overlay .loading-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.gem-package-card__loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes shineDiamond {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(247, 183, 51, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(247, 183, 51, 0.8));
  }
}
@keyframes moveShineSpot {
  0%, 100% {
    top: -4px;
    left: -4px;
    opacity: 0.7;
  }
  50% {
    top: 60%;
    left: 60%;
    opacity: 0.4;
  }
}
@keyframes pulseBorder {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes pulsateFaster {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 15px rgba(0, 201, 167, 0.6);
  }
}
@keyframes floatParticle {
  0%, 100% {
    opacity: 0.15;
    transform: translateY(0);
  }
  50% {
    opacity: 0.25;
    transform: translateY(-10px);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.subscription-tier-card {
  background: linear-gradient(135deg, rgba(45, 20, 65, 0.7), rgba(15, 5, 35, 0.95));
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 26px 24px;
  gap: 20px;
  isolation: isolate;
  transform-style: preserve-3d;
  transform: perspective(1500px) translateZ(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  margin-bottom: 0;
  height: 100%;
}
.subscription-tier-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 215, 0, 0.1) 50%, rgba(255, 215, 0, 0.5)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.subscription-tier-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.9) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 40% 70%, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1.5px 1.5px at 80% 10%, rgba(247, 183, 51, 0.8) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 30% 50%, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 70% 40%, rgba(247, 183, 51, 0.7) 50%, transparent 100%), radial-gradient(1.3px 1.3px at 10% 60%, rgba(255, 255, 255, 0.75) 50%, transparent 100%), radial-gradient(1.4px 1.4px at 50% 90%, rgba(247, 183, 51, 0.8) 50%, transparent 100%);
  opacity: 0.25;
  z-index: -1;
  transition: opacity 0.5s ease;
  animation: floatParticle 10s ease-in-out infinite alternate;
}
.subscription-tier-card__inner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.subscription-tier-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.subscription-tier-card__info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.subscription-tier-card:hover {
  transform: perspective(1500px) translateZ(4px) scale(1.02);
  z-index: 10;
}
.subscription-tier-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0.4) 50%, rgba(255, 215, 0, 0.8)) border-box;
}
.subscription-tier-card:hover::after {
  opacity: 0.4;
  animation: floatParticle 5s ease-in-out infinite alternate;
}
.subscription-tier-card:hover .subscription-tier-card__inner-glow {
  opacity: 0.2;
  filter: blur(0);
}
.subscription-tier-card:hover .subscription-tier-card__icon i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(247, 183, 51, 0.8));
}
.subscription-tier-card:hover .subscription-tier-card__details h3 {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}
.subscription-tier-card:hover .subscription-tier-card__price {
  transform: scale(1.05);
  background-position: 200% center;
}
.subscription-tier-card:hover .subscription-tier-card__button {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  color: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 183, 51, 0.5);
}
.subscription-tier-card:active {
  transform: perspective(1500px) translateZ(2px) scale(1.01);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.subscription-tier-card:active .subscription-tier-card__inner-glow {
  opacity: 0.8;
}
.subscription-tier-card:active .subscription-tier-card__button {
  transform: scale(0.98);
}
.subscription-tier-card--popular {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8), rgba(45, 20, 65, 0.95));
  z-index: 2;
  transform: perspective(1500px) translateZ(2px) scale(1.02);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(106, 48, 147, 0.2), 0 0 10px rgba(247, 183, 51, 0.2);
}
.subscription-tier-card--popular .subscription-tier-card__details,
.subscription-tier-card--popular .subscription-tier-card__action {
  position: relative;
  z-index: 3;
  background: rgba(20, 5, 32, 0.35);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.subscription-tier-card--popular::before {
  opacity: 0.9;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 140, 0, 0.4) 50%, rgba(255, 215, 0, 0.8)) border-box;
  animation: pulseBorder 2.5s ease-in-out infinite;
}
.subscription-tier-card--popular .subscription-tier-card__inner-glow {
  opacity: 0.3;
}
.subscription-tier-card--popular .subscription-tier-card__title,
.subscription-tier-card--popular .subscription-tier-card__details h3 {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.subscription-tier-card--popular .subscription-tier-card__description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.subscription-tier-card__popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 5px 0;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  color: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 53% 70%, 50% 100%, 47% 70%, 0 70%);
  height: 30px;
  text-align: center;
}
.subscription-tier-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 15px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.subscription-tier-card__icon i {
  font-size: 32px;
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(247, 183, 51, 0.5));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: shineDiamond 3s infinite ease-in-out;
}
.subscription-tier-card__details {
  flex: 1;
  min-width: 0;
}
.subscription-tier-card__details h3 {
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px 0;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.subscription-tier-card__details h3 .tier-name {
  display: inline-block;
  letter-spacing: 0.5px;
}
@supports (-webkit-background-clip: text) {
  .subscription-tier-card__details h3 .tier-name:global(.uppercase), .subscription-tier-card__details h3 .tier-name:global([style*="text-transform: uppercase"]) {
    background: linear-gradient(90deg, #ffffff, #f0f0f0 50%, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: none;
  }
}
.subscription-tier-card__description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
  max-width: 620px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.subscription-tier-card__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  width: 100%;
  backdrop-filter: none;
}
.subscription-tier-card__price {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 0;
  text-align: center;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold) 50%, var(--color-gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShine 3s linear infinite;
  width: 100%;
}
.subscription-tier-card__comparison-price {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
  text-transform: none;
}
.subscription-tier-card__savings-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.subscription-tier-card__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.subscription-tier-card__perks li {
  position: relative;
  padding-left: 18px;
  text-align: left;
}
.subscription-tier-card__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 0 6px rgba(247, 183, 51, 0.6);
}
.subscription-tier-card__button {
  width: 100%;
  height: 44px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: linear-gradient(135deg, rgba(80, 40, 120, 0.9), rgba(120, 50, 140, 0.9));
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-family-body);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.subscription-tier-card__button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  animation: buttonShine 3s infinite;
  pointer-events: none;
}
.subscription-tier-card__button.loading {
  background: rgba(80, 40, 120, 0.6);
  padding-left: 8px;
}
.subscription-tier-card__button.loading .button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}
.subscription-tier-card__button.loading span {
  font-size: 13px;
}
.subscription-tier-card__button.loading::after {
  display: none;
}
@media (max-width: 600px) {
  .subscription-tier-card {
    padding: 26px 20px 22px;
  }
  .subscription-tier-card__info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .subscription-tier-card__details {
    width: 100%;
  }
  .subscription-tier-card__details h3 {
    font-size: 20px;
  }
  .subscription-tier-card__action {
    padding: 16px;
  }
  .subscription-tier-card__comparison-price, .subscription-tier-card__savings-badge {
    text-align: center;
  }
  .subscription-tier-card__perks {
    width: 100%;
  }
}
.subscription-tier-card.loading {
  pointer-events: none;
}
.subscription-tier-card.loading::after {
  opacity: 0.15;
  animation: none;
}
.subscription-tier-card.loading .subscription-tier-card__inner-glow {
  opacity: 0.1;
}
.subscription-tier-card.loading .subscription-tier-card__details {
  opacity: 0.6;
}
.subscription-tier-card.loading .subscription-tier-card__action {
  position: relative;
}
.subscription-tier-card.loading .subscription-tier-card__price {
  opacity: 0.7;
}
.subscription-tier-card__loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(3px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.subscription-tier-card__loading-overlay .spinner-container {
  position: relative;
}
.subscription-tier-card__loading-overlay .spinner-container .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes shineDiamond {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(247, 183, 51, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(247, 183, 51, 0.8));
  }
}
@keyframes pulseBorder {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes floatParticle {
  0%, 100% {
    opacity: 0.15;
    transform: translateY(0);
  }
  50% {
    opacity: 0.25;
    transform: translateY(-10px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.typing-container {
  display: flex;
  align-items: center;
  margin: var(--spacing-xs) 0;
  padding-left: var(--spacing-sm);
  width: 100%;
  position: relative;
}
.typing-container .agent-avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: var(--spacing-sm);
  border: 2px solid rgba(51, 16, 62, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 183, 51, 0.2);
  position: relative;
  z-index: 2;
}
.typing-container .agent-avatar-small::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: conic-gradient(from 0deg at 50% 50%, rgba(247, 183, 51, 0.1), rgba(247, 183, 51, 0.3), rgba(247, 183, 51, 0.1), rgba(247, 183, 51, 0));
  border-radius: 50%;
  z-index: -1;
  animation: rotateAura 4s linear infinite;
  opacity: 0.5;
}
.typing-container .agent-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(51, 16, 62, 0.7) 0%, rgba(74, 29, 106, 0.7) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 183, 51, 0.1);
  backdrop-filter: blur(5px);
  position: relative;
  transform: translateZ(0);
  max-width: 90px;
  min-width: 60px;
  height: 36px;
  will-change: opacity, transform;
  border-top-left-radius: 0;
}
.typing-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top left, rgba(247, 183, 51, 0.15) 0%, transparent 70%);
  border-radius: inherit;
  border-top-left-radius: 0;
  z-index: -1;
  opacity: 0.8;
  mask-image: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.2) 100%);
}
.typing-indicator.animate-in {
  animation: typingFadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.typing-indicator .typing-dots {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
}
.typing-indicator .typing-dots span {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #f7b733, rgba(247, 183, 51, 0.7));
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(247, 183, 51, 0.5);
  transform-origin: center;
  position: relative;
}
.typing-indicator .typing-dots span::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(247, 183, 51, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
}
.typing-indicator .typing-dots span:nth-child(1) {
  animation: typingDotPulse 1.3s infinite 0s;
}
.typing-indicator .typing-dots span:nth-child(2) {
  animation: typingDotPulse 1.3s infinite 0.2s;
}
.typing-indicator .typing-dots span:nth-child(3) {
  animation: typingDotPulse 1.3s infinite 0.4s;
}

@keyframes typingDotPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.7) translateY(0);
    box-shadow: 0 0 8px rgba(247, 183, 51, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) translateY(-2px);
    box-shadow: 0 0 12px rgba(247, 183, 51, 0.6);
  }
}
@keyframes typingFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-10px) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}
@keyframes rotateAura {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.interactive-element {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  margin: 0;
  transition: all 0.3s ease;
}
.interactive-element.active {
  opacity: 1;
}
.interactive-element.inactive {
  opacity: 0.7;
  pointer-events: none;
}
.interactive-element .interactive-header,
.interactive-element .element-header {
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .interactive-element .interactive-header,
  .interactive-element .element-header {
    padding: 0.75rem;
  }
}
.interactive-element .interactive-header h3, .interactive-element .interactive-header .element-title,
.interactive-element .element-header h3,
.interactive-element .element-header .element-title {
  display: flex;
  align-items: center;
  color: #f9e076;
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.interactive-element .interactive-header h3 i, .interactive-element .interactive-header .element-title i,
.interactive-element .element-header h3 i,
.interactive-element .element-header .element-title i {
  color: #d4af37;
  margin-right: 0.5rem;
  font-size: 1.25rem;
}
.interactive-element .interactive-header h3 span, .interactive-element .interactive-header .element-title span,
.interactive-element .element-header h3 span,
.interactive-element .element-header .element-title span {
  font-weight: 500;
}
.interactive-element .interactive-header p, .interactive-element .interactive-header .element-description p,
.interactive-element .element-header p,
.interactive-element .element-header .element-description p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.25rem 0 0;
}
.interactive-element .interactive-content {
  padding: 0.5rem 1rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .interactive-element .interactive-content {
    padding: 0.5rem 0.75rem 0.75rem;
  }
}
.interactive-element .interactive-footer {
  padding: 0.75rem 1rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .interactive-element .interactive-footer {
    padding: 0.5rem 0.75rem 0.75rem;
  }
}

.interactive-button-element {
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
}
.interactive-button-element .mystical-button {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.7) 0%, rgba(106, 48, 147, 0.7) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 2rem;
  color: white;
  font-family: var(--font-family-heading);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 rgba(247, 183, 51, 0);
}
.interactive-button-element .mystical-button i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  color: #f9e076;
}
.interactive-button-element .mystical-button .button-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.interactive-button-element .mystical-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(247, 183, 51, 0.3);
  border-color: rgba(212, 175, 55, 0.6);
}
.interactive-button-element .mystical-button:hover .button-glow {
  opacity: 0.7;
}
.interactive-button-element .mystical-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tarot-spread-title {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  justify-content: center;
}
.tarot-spread-title i {
  color: #d4af37;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}
.tarot-spread-title span {
  color: #f9e076;
  font-family: var(--font-family-heading);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .interactive-element {
    padding: 1rem;
  }
  .interactive-element .element-header .element-title span {
    font-size: 1.1rem;
  }
  .tarot-element .tarot-cards {
    gap: 1rem;
  }
  .tarot-element .tarot-cards .tarot-card {
    width: 90px;
    height: 157.5px;
  }
  .zodiac-element .zodiac-wheel {
    width: 250px;
    height: 250px;
  }
  .zodiac-element .zodiac-wheel .zodiac-center {
    width: 80px;
    height: 80px;
  }
  .palmistry-element .palm-diagram {
    width: 250px;
    height: 333px;
  }
  .voodoo-element .ritual-items .items-container {
    grid-template-columns: 1fr;
  }
}
.gem-purchase-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gem-purchase-modal.show {
  opacity: 1;
}
.gem-purchase-modal.show .gem-purchase-container {
  transform: scale(1);
}
.gem-purchase-modal.closing {
  opacity: 0;
}
.gem-purchase-modal.closing .gem-purchase-container {
  transform: scale(0.9);
}
.gem-purchase-modal .gem-purchase-container {
  background: linear-gradient(135deg, #1b0c2e 0%, #2d1a47 100%);
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  padding: 1.5rem;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
@media (min-width: 576px) {
  .gem-purchase-modal .gem-purchase-container {
    padding: 2rem;
  }
}
.gem-purchase-modal .gem-purchase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.gem-purchase-modal .gem-purchase-header h3 {
  font-family: var(--font-family-heading);
  color: #f9e076;
  font-size: 1.25rem;
  margin: 0;
}
.gem-purchase-modal .gem-purchase-header .close-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
}
.gem-purchase-modal .gem-purchase-header .close-button:hover {
  color: white;
}
.gem-purchase-modal .gem-purchase-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .gem-purchase-modal .gem-purchase-options {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gem-purchase-modal .gem-package {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gem-purchase-modal .gem-package:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.gem-purchase-modal .gem-package.best-value {
  border-color: rgba(212, 175, 55, 0.5);
  background-color: rgba(51, 25, 87, 0.6);
}
.gem-purchase-modal .best-value-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4af37;
  color: #000;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.gem-purchase-modal .gem-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 0.5rem;
}
.gem-purchase-modal .gem-amount i {
  font-size: 1.6rem;
  color: #d4af37;
  margin-right: 0.4rem;
}
.gem-purchase-modal .gem-price {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.gem-purchase-modal .buy-button {
  background: linear-gradient(135deg, #d4af37 0%, rgb(156.7901234568, 127.7839506173, 33.7098765432) 100%);
  color: #000;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gem-purchase-modal .buy-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}
.gem-purchase-modal .buy-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.divination-element {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: var(--spacing-xs);
  margin: 0;
  border-radius: var(--border-radius-md);
}
.divination-element .element-header {
  padding: var(--spacing-sm);
  width: 100%;
  box-sizing: border-box;
}
.divination-element .element-header .element-title {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.divination-element .element-header .element-title i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  color: #d4af37;
}
.divination-element .element-header .element-title span {
  font-family: var(--font-family-heading);
  font-size: 1rem;
  color: #f9e076;
  font-weight: 500;
}
@media (min-width: 576px) {
  .divination-element .element-header .element-title span {
    font-size: 1.1rem;
  }
}
.divination-element .element-header .element-description p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}
@media (min-width: 576px) {
  .divination-element .element-header .element-description p {
    font-size: 0.9rem;
  }
}
.divination-element__content {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  position: relative;
}
.divination-element__content .tarot-element__card-container,
.divination-element__content .tarot-element__spread-container,
.divination-element__content .tarot-element__three-card-wrapper,
.divination-element__content .tarot-element__single-card-wrapper,
.divination-element__content .zodiac-element__wheel,
.divination-element__content .palmistry-element__diagram,
.divination-element__content .voodoo-element__doll-area {
  width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  margin: 0 auto;
}
.divination-element__full-reading {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(5px);
  transition: grid-template-rows 0.6s ease-in-out, opacity 0.4s ease-out, transform 0.4s ease-out, margin-top 0.6s ease-in-out, padding-top 0.6s ease-in-out, border-top-color 0.6s ease-in-out;
  margin-top: 0;
  padding: 0 var(--spacing-sm);
  border-top: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}
.divination-element__full-reading > * {
  overflow: hidden;
}
.divination-element.revealed .divination-element__full-reading {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-sm) 0;
  border-top-color: rgba(212, 175, 55, 0.2);
}
.divination-element__full-reading-header {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.divination-element__full-reading-header i {
  color: #d4af37;
  font-size: 1.2rem;
}
.divination-element__full-reading-header h3 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  margin: 0;
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.divination-element__full-reading-header.premium-header {
  position: relative;
  margin: 0 0 0.8rem;
  padding: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  flex-wrap: wrap;
}
.divination-element__full-reading-header.premium-header .header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 0.5rem 0.8rem;
  flex: 1;
  min-width: 0;
}
.divination-element__full-reading-header.premium-header .header-content i {
  margin: 0 0 0.4rem 0;
  font-size: 1.5rem;
  color: rgba(255, 236, 179, 0.95);
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
  flex-shrink: 0;
}
.divination-element__full-reading-header.premium-header .header-content h3 {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, rgb(255, 236, 179), rgba(255, 215, 0, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: 0;
  line-height: 1.3;
  text-align: center;
}
@media (min-width: 480px) {
  .divination-element__full-reading-header.premium-header .header-content h3 {
    font-size: 1.25rem;
  }
}
.divination-element__full-reading-header.premium-header .header-ornament {
  height: 1px;
  flex: 0 0 20px;
  position: relative;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 179, 0.6) 50%, rgba(255, 215, 0, 0.6) 100%);
}
@media (max-width: 359px) {
  .divination-element__full-reading-header.premium-header .header-ornament {
    flex: 0 0 10px;
  }
}
.divination-element__full-reading-header.premium-header .header-ornament.left {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 236, 179, 0.6) 50%, transparent 100%);
}
.divination-element__full-reading-header.premium-header .header-ornament.left::before {
  content: "✧";
  position: absolute;
  right: 0;
  top: -10px;
  color: rgba(255, 236, 179, 0.9);
  font-size: 1.1rem;
}
@media (max-width: 359px) {
  .divination-element__full-reading-header.premium-header .header-ornament.left::before {
    display: none;
  }
}
.divination-element__full-reading-header.premium-header .header-ornament.right::before {
  content: "✧";
  position: absolute;
  left: 0;
  top: -10px;
  color: rgba(255, 236, 179, 0.9);
  font-size: 1.1rem;
}
@media (max-width: 359px) {
  .divination-element__full-reading-header.premium-header .header-ornament.right::before {
    display: none;
  }
}
.divination-element__reveal-action {
  margin-top: var(--spacing-md);
  text-align: center;
}
.divination-element.loading {
  pointer-events: none;
  opacity: 0.8;
}
.divination-element.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
.divination-element.locked .element-header {
  opacity: 0.8;
}
.divination-element__revealed-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.divination-element__revealed-content h1, .divination-element__revealed-content h2, .divination-element__revealed-content h3, .divination-element__revealed-content h4, .divination-element__revealed-content h5, .divination-element__revealed-content h6 {
  font-family: var(--font-family-heading);
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--spacing-sm);
}
.divination-element__revealed-content h1:not(:first-child), .divination-element__revealed-content h2:not(:first-child), .divination-element__revealed-content h3:not(:first-child), .divination-element__revealed-content h4:not(:first-child), .divination-element__revealed-content h5:not(:first-child), .divination-element__revealed-content h6:not(:first-child) {
  margin-top: var(--spacing-md);
}
.divination-element__revealed-content h2 {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.divination-element__revealed-content h3 {
  font-size: 1.1rem;
}
.divination-element__revealed-content h4 {
  font-size: 1rem;
}
.divination-element__revealed-content p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
  font-size: 0.85rem;
}
.divination-element__revealed-content p:last-child {
  margin-bottom: 0;
}
.divination-element__revealed-content strong, .divination-element__revealed-content em, .divination-element__revealed-content b {
  color: #f9e076;
  font-weight: 600;
}
.divination-element__revealed-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3) 15%, rgba(212, 175, 55, 0.5) 50%, rgba(212, 175, 55, 0.3) 85%, transparent);
  margin: 1.5rem 0;
}
.divination-element__revealed-content hr.section-divider {
  margin: 1.8rem 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5) 20%, rgba(212, 175, 55, 0.7) 50%, rgba(212, 175, 55, 0.5) 80%, transparent);
}
.divination-element__revealed-content .section-title {
  text-align: center;
  margin: 1.5rem 0;
}
.divination-element__revealed-content .section-title h1, .divination-element__revealed-content .section-title h2, .divination-element__revealed-content .section-title h3, .divination-element__revealed-content .section-title h4, .divination-element__revealed-content .section-title h5, .divination-element__revealed-content .section-title h6 {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  display: inline-block;
}
.divination-element__revealed-content .section-title h1::before, .divination-element__revealed-content .section-title h2::before, .divination-element__revealed-content .section-title h3::before, .divination-element__revealed-content .section-title h4::before, .divination-element__revealed-content .section-title h5::before, .divination-element__revealed-content .section-title h6::before {
  content: "✧ ";
  opacity: 0.8;
}
.divination-element__revealed-content .section-title h1::after, .divination-element__revealed-content .section-title h2::after, .divination-element__revealed-content .section-title h3::after, .divination-element__revealed-content .section-title h4::after, .divination-element__revealed-content .section-title h5::after, .divination-element__revealed-content .section-title h6::after {
  content: " ✧";
  opacity: 0.8;
}
.divination-element__revealed-content .section-label {
  font-family: var(--font-family-heading);
  font-size: 1rem;
  color: #d4af37;
  font-weight: 600;
  display: block;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}
.divination-element__revealed-content blockquote {
  border-left: 3px solid #d4af37;
  margin: 0.8rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  background-color: rgba(212, 175, 55, 0.08);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}
.divination-element__revealed-content blockquote p {
  font-style: italic;
  margin-bottom: 0.5rem;
}
.divination-element__revealed-content ul, .divination-element__revealed-content ol {
  margin: 0.5rem 0 1rem 1.2rem;
}
.divination-element__revealed-content ul li, .divination-element__revealed-content ol li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.divination-element__revealed-content .emoji {
  display: inline;
  height: 1em;
  width: 1em;
  margin: 0 0.1em;
  vertical-align: -0.1em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.divination-element__revealed-content > * {
  animation: staggerFadeIn 0.5s ease-out forwards;
  opacity: 0;
}
.divination-element__revealed-content > *:nth-child(-n+7):nth-child(1) {
  animation-delay: 0.08s;
}
.divination-element__revealed-content > *:nth-child(-n+7):nth-child(2) {
  animation-delay: 0.16s;
}
.divination-element__revealed-content > *:nth-child(-n+7):nth-child(3) {
  animation-delay: 0.24s;
}
.divination-element__revealed-content > *:nth-child(-n+7):nth-child(4) {
  animation-delay: 0.32s;
}
.divination-element__revealed-content > *:nth-child(-n+7):nth-child(5) {
  animation-delay: 0.4s;
}
.divination-element__revealed-content > *:nth-child(-n+7):nth-child(6) {
  animation-delay: 0.48s;
}
.divination-element__revealed-content > *:nth-child(-n+7):nth-child(7) {
  animation-delay: 0.56s;
}
.divination-element__revealed-content > *:nth-child(n+8) {
  animation-delay: 0.6s;
}

.reveal-button {
  background: linear-gradient(135deg, #9167ff 0%, #6741c5 100%);
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-top: var(--spacing-sm);
}
@media (max-width: 480px) {
  .reveal-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}
.reveal-button i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}
@media (max-width: 480px) {
  .reveal-button i {
    font-size: 1.1rem;
  }
}
.reveal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(103, 58, 183, 0.4);
}
.reveal-button:active {
  transform: translateY(0);
}

.compact-reading .divination-element__full-reading {
  margin-top: 0 !important;
}
.compact-reading .divination-element__full-reading-header.premium-header {
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.compact-reading .divination-element__revealed-content > * {
  margin-bottom: 0.8rem;
}
.compact-reading .divination-element__revealed-content > *:last-child {
  margin-bottom: 0;
}
.compact-reading .divination-element__revealed-content h2, .compact-reading .divination-element__revealed-content h3, .compact-reading .divination-element__revealed-content h4 {
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
}
.compact-reading .divination-element__revealed-content p {
  margin-bottom: 0.6rem;
}

.divination-element__reveal-action {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  pointer-events: none;
}
.divination-element__reveal-action.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.divination-element__reveal-action .reveal-button {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.7) 0%, rgba(106, 48, 147, 0.7) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 2rem;
  color: white;
  font-family: var(--font-family-heading);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 rgba(247, 183, 51, 0);
  min-width: 200px;
  cursor: pointer;
}
.divination-element__reveal-action .reveal-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.divination-element__reveal-action .reveal-button i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  color: #f9e076;
}
.divination-element__reveal-action .reveal-button i.gem-icon {
  font-size: 1rem;
  margin-right: 0.25rem;
  margin-left: -0.25rem;
}
.divination-element__reveal-action .reveal-button .button-separator {
  margin: 0 0.25rem;
  opacity: 0.7;
}
.divination-element__reveal-action .reveal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(247, 183, 51, 0.3);
  border-color: rgba(212, 175, 55, 0.6);
}
.divination-element__reveal-action .reveal-button:hover::before {
  opacity: 0.7;
}
.divination-element__reveal-action .reveal-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.divination-element__reveal-action .reveal-button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.divination-element__reveal-action .reveal-button.loading {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.5) 0%, rgba(106, 48, 147, 0.5) 100%);
  cursor: default;
}
.divination-element__reveal-action .reveal-button.loading .loading-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
  margin-right: 0.5em;
  vertical-align: text-bottom;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 480px) {
  .divination-element__reveal-action .reveal-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    min-width: 180px;
  }
  .divination-element__reveal-action .reveal-button i {
    font-size: 1.1rem;
  }
  .divination-element__reveal-action .reveal-button i.gem-icon {
    font-size: 0.9rem;
  }
}
.gem-payment-prompt {
  background: linear-gradient(135deg, rgba(145, 103, 255, 0.2), rgba(40, 20, 80, 0.35));
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 1rem 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 100%;
  color: #f8f9fa;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
.gem-payment-prompt__balance {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #d4af37;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.gem-payment-prompt__balance .gem-icon {
  font-size: 0.9rem;
  color: #d4af37;
}
.gem-payment-prompt__content {
  position: relative;
  z-index: 1;
}
.gem-payment-prompt__title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d4af37;
  text-align: center;
  padding: 0 3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gem-payment-prompt__loading, .gem-payment-prompt__empty {
  text-align: center;
  padding: 0.75rem;
  color: rgba(248, 249, 250, 0.8);
  font-size: 0.9rem;
}
.gem-payment-prompt__packages {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.gem-payment-prompt__packages.two-column {
  grid-template-columns: repeat(2, 1fr);
}
.gem-payment-prompt__packages.three-column {
  grid-template-columns: repeat(3, 1fr);
}
.gem-payment-prompt .gem-package {
  background: rgb(17.6538461538, 5.5384615385, 21.4615384615);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  padding: 0.5rem 0.4rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: #f8f9fa;
}
.gem-payment-prompt .gem-package:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 6px rgba(212, 175, 55, 0.3);
  border-color: rgba(212, 175, 55, 0.6);
}
.gem-payment-prompt .gem-package:active:not(:disabled) {
  transform: translateY(1px);
}
.gem-payment-prompt .gem-package:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.gem-payment-prompt .gem-package.popular {
  background: #33103e;
  border-color: #d4af37;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.gem-payment-prompt .gem-package.popular:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35), 0 0 10px rgba(212, 175, 55, 0.35);
}
.gem-payment-prompt .gem-package__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #d4af37;
  color: #1a1a2e;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 0 4px 0 2px;
}
.gem-payment-prompt .gem-package__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.gem-payment-prompt .gem-package__amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #d4af37;
}
.gem-payment-prompt .gem-package__amount i {
  color: #d4af37;
  font-size: 1rem;
}
.gem-payment-prompt .gem-package__price {
  font-size: 0.8rem;
  color: rgba(248, 249, 250, 0.95);
  font-weight: 500;
}
.gem-payment-prompt .gem-package__loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gem-payment-prompt__actions {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.gem-payment-prompt__actions .text-button {
  background: transparent;
  color: rgba(248, 249, 250, 0.8);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  border: none;
  text-align: center;
  transition: all 0.2s ease;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.gem-payment-prompt__actions .text-button:hover {
  color: #f8f9fa;
  background: rgba(248, 249, 250, 0.1);
}
.gem-payment-prompt__actions .text-button i {
  font-size: 0.9rem;
}
.gem-payment-prompt__actions .text-button.visible {
  opacity: 0.9;
}

.button-options-element {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  width: 100%;
  justify-content: center;
  margin: var(--spacing-sm) 0;
}
.button-options-element .r-button.option-button {
  position: relative;
  background: linear-gradient(135deg, rgba(145, 103, 255, 0.3), rgba(103, 65, 197, 0.3));
  border: 1px solid rgba(145, 103, 255, 0.4);
  color: white;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin: 0;
  overflow: hidden;
}
.button-options-element .r-button.option-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(145, 103, 255, 0), rgba(103, 65, 197, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.button-options-element .r-button.option-button:hover:not(.disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(103, 58, 183, 0.3) !important;
  border-color: rgba(145, 103, 255, 0.6) !important;
}
.button-options-element .r-button.option-button:hover:not(.disabled)::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(145, 103, 255, 0.2), rgba(103, 65, 197, 0.2));
}
.button-options-element .r-button.option-button:active:not(.disabled) {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.button-options-element .r-button.option-button i.material-symbols-rounded {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: #f9e076;
}
.button-options-element .r-button.option-button .r-button__text {
  color: white;
  font-weight: 500;
}
.button-options-element .r-button.option-button.selected {
  background: linear-gradient(135deg, rgba(145, 103, 255, 0.5), rgba(103, 65, 197, 0.5)) !important;
  border-color: rgba(145, 103, 255, 0.8) !important;
  box-shadow: 0 0 8px rgba(103, 58, 183, 0.4) !important;
}
.button-options-element .r-button.option-button.selected i.material-symbols-rounded {
  color: #d4af37;
}
.button-options-element .r-button.option-button.disabled:not(.selected) {
  opacity: 0.6;
  cursor: not-allowed !important;
  transform: none !important;
  background: linear-gradient(135deg, rgba(128, 128, 128, 0.3), rgba(80, 80, 80, 0.3)) !important;
  border-color: rgba(128, 128, 128, 0.4) !important;
  box-shadow: none !important;
}
.button-options-element .r-button.option-button.disabled:not(.selected) i.material-symbols-rounded {
  color: rgba(255, 255, 255, 0.7);
}
.button-options-element .r-button.option-button.disabled:not(.selected) .r-button__text {
  color: rgba(255, 255, 255, 0.7);
}
.button-options-element .r-button.option-button.disabled:not(.selected)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: inherit;
}
@media (max-width: 480px) {
  .button-options-element .r-button.option-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
  .button-options-element .r-button.option-button i.material-symbols-rounded {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  .button-options-element {
    gap: var(--spacing-xs);
  }
}

.divination-element.with-transitions {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.divination-element.with-transitions .divination-element__content {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.divination-element.with-transitions .full-reading-display {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.divination-element.with-transitions .loading-pulsate {
  animation: loading-pulse 1.5s infinite ease-in-out;
}
.divination-element.revealed .full-reading-display {
  opacity: 1;
  transform: translateY(0);
}
.divination-element.revealed .divination-element__interpretation {
  opacity: 0.8;
}
.divination-element.loading {
  pointer-events: none;
}
.divination-element.loading .reveal-button {
  position: relative;
  overflow: hidden;
}
.divination-element.loading .reveal-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading-shine 1.5s infinite;
}

@keyframes loading-pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}
@keyframes loading-shine {
  0% {
    left: -130%;
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  80% {
    left: 130%;
    opacity: 0.7;
  }
  100% {
    left: 160%;
    opacity: 0;
  }
}
.fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tarot-element {
  position: relative;
}
.tarot-element__single-card-container {
  justify-items: center;
}
.tarot-element__card-container, .tarot-element__spread-container, .tarot-element__three-card-wrapper, .tarot-element__single-card-wrapper, .tarot-element__celtic-cross-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}
.tarot-element__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.tarot-element__header span {
  font-family: var(--font-family-heading);
  color: #f9e076;
  font-size: 1rem;
}
.tarot-element__header .expand-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.tarot-element__header .expand-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.tarot-element__header .expand-button i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.tarot-element__card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1rem;
  perspective: 1000px;
  transform-style: preserve-3d;
}
@media (max-width: 480px) {
  .tarot-element__card-container {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 160px;
  }
}
.tarot-element__reading {
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.5s ease-out 0.3s forwards;
}
.tarot-element__reading-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.tarot-element__reading-header i {
  color: #d4af37;
  margin-right: 0.5rem;
  font-size: 1.25rem;
}
.tarot-element__reading-header span {
  font-family: var(--font-family-heading);
  color: #f9e076;
  font-size: 1rem;
}
.tarot-element__reading-content {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-size: 0.9rem;
}
.tarot-element__reading-content p {
  margin-bottom: 0.5rem;
}
.tarot-element__reading-content p:last-child {
  margin-bottom: 0;
}
.tarot-element__reading-content strong {
  color: #f9e076;
}
.tarot-element__card {
  width: 100px;
  height: 178px;
  position: relative;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
@media (min-width: 380px) {
  .tarot-element__card {
    width: 110px;
    height: 196px;
  }
}
@media (min-width: 480px) {
  .tarot-element__card {
    width: 120px;
    height: 213px;
  }
}
@media (min-width: 768px) {
  .tarot-element__card {
    width: 130px;
    height: 231px;
  }
}
@media (max-width: 360px) {
  .tarot-element__card {
    width: 85px;
    height: 151px;
  }
}
.tarot-element__celtic-cross-container .tarot-element__card {
  width: 90%;
  height: auto;
  aspect-ratio: 100/178;
  max-width: 130px;
}
@media (max-width: 480px) {
  .tarot-element__celtic-cross-container .tarot-element__card {
    width: 95%;
    max-width: 110px;
  }
}
@media (max-width: 360px) {
  .tarot-element__celtic-cross-container .tarot-element__card {
    max-width: 90px;
  }
}
.tarot-element__card.flipped {
  transform: rotateY(180deg);
}
.tarot-element__card.revealed {
  z-index: 10;
}
.tarot-element__card.selected {
  z-index: 20;
}
.tarot-element__card.selected::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #d4af37;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  animation: pulse-selected 1.5s infinite ease-in-out;
  z-index: -1;
  pointer-events: none;
}
@keyframes pulse-selected {
  0%, 100% {
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  }
}
.tarot-element__card.reversed .tarot-element__card-face--back img {
  transform: rotate(180deg);
}
.tarot-element__card:hover:not(.flipped):not(.revealed) {
  transform: translateY(-8px);
}
@media (min-width: 768px) {
  .tarot-element__card:hover:not(.flipped):not(.revealed) {
    transform: translateY(-12px);
  }
}
.tarot-element__card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.tarot-element__card-face--front {
  background: none;
}
.tarot-element__card-face--back {
  transform: rotateY(180deg);
  background: #1a0c26;
}
.tarot-element__card-face--back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tarot-element__card-back {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, #1b0c2e 0%, #2d1a47 100%);
  border-radius: 0.75rem;
  overflow: hidden;
}
.tarot-element__card-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 128, 0.3) 10%, transparent 40%), linear-gradient(45deg, transparent 48%, rgba(255, 215, 128, 0.4) 50%, transparent 52%), linear-gradient(-45deg, transparent 48%, rgba(255, 215, 128, 0.4) 50%, transparent 52%);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  background-repeat: no-repeat, repeat, repeat;
  opacity: 0.6;
}
.tarot-element__card-back::after {
  content: "★";
  font-size: 2rem;
  color: rgba(255, 215, 128, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 10px rgba(255, 215, 128, 0.5);
}
@media (min-width: 380px) {
  .tarot-element__card-back::after {
    font-size: 2.25rem;
  }
}
@media (min-width: 480px) {
  .tarot-element__card-back::after {
    font-size: 2.5rem;
  }
}
.tarot-element__card-back .card-border {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 2px solid rgba(255, 215, 128, 0.4);
  border-radius: 0.6rem;
  box-shadow: inset 0 0 10px rgba(255, 215, 128, 0.2);
  pointer-events: none;
}
.tarot-element__card-back .card-border::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(255, 215, 128, 0.2);
  border-radius: 0.4rem;
}
@media (min-width: 380px) {
  .tarot-element__card-back .card-border {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
  }
}
@media (min-width: 480px) {
  .tarot-element__card-back .card-border {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
}
@media (min-width: 768px) {
  .tarot-element__card-back .card-border {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
}
.tarot-element__card-title {
  text-align: center;
  font-family: var(--font-family-heading);
  color: #f9e076;
  padding: 0.25rem;
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.6);
}
@media (min-width: 380px) {
  .tarot-element__card-title {
    font-size: 0.7rem;
  }
}
@media (min-width: 480px) {
  .tarot-element__card-title {
    padding: 0.4rem;
    font-size: 0.75rem;
  }
}
@media (min-width: 768px) {
  .tarot-element__card-title {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}
.tarot-element__interpretation {
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  margin-bottom: var(--spacing-md);
  pointer-events: none;
}
.tarot-element__interpretation.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tarot-element__interpretation.revealed {
  opacity: 1;
  transform: translateY(0);
}
.tarot-element__interpretation-header {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tarot-element__interpretation-header h3 {
  font-family: var(--font-family-heading);
  color: #f9e076;
  font-size: 1.1rem;
  margin-bottom: 0;
  flex: 1;
}
.tarot-element__interpretation-header .tarot-element__info-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(249, 224, 118, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #f9e076;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.tarot-element__interpretation-header .tarot-element__info-button:hover {
  background: rgba(249, 224, 118, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
}
.tarot-element__interpretation-header .tarot-element__info-button i {
  font-size: 1.2rem;
  color: inherit;
}
.tarot-element__interpretation-content {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-size: 0.85rem;
}
.tarot-element__interpretation-content p {
  margin-bottom: 0.5rem;
}
.tarot-element__interpretation.small {
  margin-top: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.1);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tarot-element__interpretation.small .tarot-element__interpretation-content {
  font-size: 0.75rem;
  line-height: 1.3;
}
.tarot-element__interpretation.small .tarot-element__interpretation-content p {
  margin-bottom: 0.2rem;
}
.tarot-element__interpretation.small .tarot-element__interpretation-content strong {
  font-weight: 500;
}
.tarot-element__position-indicator {
  font-size: 0.65rem;
  color: #d4af37;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (min-width: 480px) {
  .tarot-element__position-indicator {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }
}
@media (min-width: 768px) {
  .tarot-element__position-indicator {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}
.tarot-element__three-card-wrapper, .tarot-element__single-card-wrapper {
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
}
.tarot-element__spread-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1rem;
  gap: 1rem;
  width: 100%;
  padding: 0 var(--spacing-xs);
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .tarot-element__spread-container {
    min-height: 160px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    justify-content: center;
    padding: 0;
  }
}
@media (min-width: 576px) {
  .tarot-element__spread-container {
    flex-direction: row;
    justify-content: center;
    min-height: 200px;
    gap: 1rem;
  }
}
@media (min-width: 768px) {
  .tarot-element__spread-container {
    gap: 1.5rem;
  }
}
.tarot-element__position-wrapper {
  position: relative;
  transition: transform 0.3s ease;
}
.tarot-element__position-wrapper:hover {
  transform: scale(1.02);
}
@media (min-width: 576px) {
  .tarot-element__position-wrapper {
    margin: 0;
  }
}
.tarot-element__single-card-wrapper {
  padding: 0.5rem 0;
}
@media (min-width: 576px) {
  .tarot-element__single-card-wrapper {
    padding: 1rem 0;
  }
}
.tarot-element__celtic-cross-wrapper {
  padding: 0.5rem 0;
}
@media (min-width: 576px) {
  .tarot-element__celtic-cross-wrapper {
    padding: 1rem 0;
  }
}
.tarot-element__reveal-action {
  margin-top: 1.5rem;
  text-align: center;
}
@media (max-width: 480px) {
  .tarot-element__reveal-action {
    margin-top: 1rem;
  }
}
.tarot-element__reveal-action .reveal-button {
  background: linear-gradient(135deg, #9167ff 0%, #6741c5 100%);
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
@media (max-width: 480px) {
  .tarot-element__reveal-action .reveal-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}
.tarot-element__reveal-action .reveal-button i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}
@media (max-width: 480px) {
  .tarot-element__reveal-action .reveal-button i {
    font-size: 1.1rem;
  }
}
.tarot-element__reveal-action .reveal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(103, 58, 183, 0.4);
}
.tarot-element__reveal-action .reveal-button:active {
  transform: translateY(0);
}
.tarot-element.expanded .tarot-element__card-container {
  height: auto;
}
.tarot-element.expanded .expand-button i {
  transform: rotate(180deg);
}

@keyframes dealCard {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tarot-spread-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
@media (max-width: 480px) {
  .tarot-spread-title {
    margin-bottom: 2rem;
  }
}
.tarot-spread-title i {
  color: #d4af37;
  margin-right: 0.5rem;
  font-size: 1.25rem;
}
.tarot-spread-title span {
  font-family: var(--font-family-heading);
  color: #f9e076;
  font-weight: 500;
}

.tarot-spread-guide {
  max-width: 600px;
  margin: 1rem auto;
  padding: 1rem;
  background: rgba(43, 25, 64, 0.5);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}
@media (max-width: 480px) {
  .tarot-spread-guide {
    padding: 0.75rem;
    margin: 0.5rem auto;
  }
}
.tarot-spread-guide .position-labels {
  display: grid;
  grid-template-areas: ".  crown   .      staff1" "past center future staff2" ".  below   .      staff3" ".    .     .      staff4";
  grid-template-columns: 120px 120px 120px 120px;
  grid-template-rows: auto auto auto auto;
  gap: 1rem;
}
@media (max-width: 480px) {
  .tarot-spread-guide .position-labels {
    grid-template-areas: "past center future" ".    below  ." "staff1 staff2 staff3" "staff4 .     .";
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 0.5rem;
  }
}
.tarot-spread-guide .position-labels .position-label {
  text-align: center;
  font-size: 0.75rem;
  color: #d4af37;
  font-family: var(--font-family-heading);
  padding: 0.25rem;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(212, 175, 55, 0.4);
}
@media (max-width: 480px) {
  .tarot-spread-guide .position-labels .position-label {
    font-size: 0.65rem;
    padding: 0.15rem;
  }
}
.tarot-spread-guide .position-labels .position-label.position-0 {
  grid-area: center;
  z-index: 10;
  background: rgba(247, 183, 51, 0.2);
  border-color: rgba(247, 183, 51, 0.5);
}
.tarot-spread-guide .position-labels .position-label.position-1 {
  grid-area: center;
  z-index: 9;
  margin-top: 1.5rem;
  background: rgba(247, 183, 51, 0.2);
  border-color: rgba(247, 183, 51, 0.5);
}
@media (max-width: 480px) {
  .tarot-spread-guide .position-labels .position-label.position-1 {
    margin-top: 1.25rem;
  }
}
.tarot-spread-guide .position-labels .position-label.position-2 {
  grid-area: below;
}
.tarot-spread-guide .position-labels .position-label.position-3 {
  grid-area: past;
}
.tarot-spread-guide .position-labels .position-label.position-4 {
  grid-area: crown;
}
.tarot-spread-guide .position-labels .position-label.position-5 {
  grid-area: future;
}
.tarot-spread-guide .position-labels .position-label.position-6 {
  grid-area: staff1;
}
.tarot-spread-guide .position-labels .position-label.position-7 {
  grid-area: staff2;
}
.tarot-spread-guide .position-labels .position-label.position-8 {
  grid-area: staff3;
}
.tarot-spread-guide .position-labels .position-label.position-9 {
  grid-area: staff4;
}

.tarot-element .tarot-element__position-wrapper > .tarot-element__position-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.75rem;
  color: #d4af37;
  font-family: var(--font-family-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .tarot-element .tarot-element__position-wrapper > .tarot-element__position-label {
    top: -18px;
    font-size: 0.6rem;
  }
}
@media (max-width: 360px) {
  .tarot-element .tarot-element__position-wrapper > .tarot-element__position-label {
    top: -16px;
    font-size: 0.55rem;
  }
}
.tarot-element .tarot-element__position-wrapper {
  transition: transform 0.2s ease-out;
}
.tarot-element__celtic-cross-container {
  display: grid;
  grid-template-areas: ".        crown    ." "past     center   future" ".        below    revealed-spot" ".         .       ." "self     external hopes" ".        outcome  .";
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto 1.25rem auto auto;
  row-gap: 1.5rem;
  column-gap: 0.25rem;
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  position: relative;
  padding: 0 var(--spacing-xs);
  box-sizing: border-box;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-0 {
  grid-area: center;
  z-index: 10;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1 {
  grid-area: center;
  z-index: 11;
  transform: rotate(90deg);
  transition: grid-area 0.6s ease-in-out, transform 0.6s ease-in-out;
  margin-top: -5px;
  margin-bottom: -5px;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1 > .tarot-element__position-label {
  transform: rotate(-90deg) translateX(-50%) translateY(-100%);
  transform-origin: center;
  position: absolute;
  top: 50%;
  left: -20px;
  white-space: normal;
}
@media (max-width: 480px) {
  .tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1 > .tarot-element__position-label { /* Position handled by common style */ }
}
@media (max-width: 360px) {
  .tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1 > .tarot-element__position-label { /* Position handled by common style */ }
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1.challenge-revealed {
  grid-area: revealed-spot !important;
  transform: none;
  z-index: 30;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1.challenge-revealed > .tarot-element__position-label {
  transform: none;
  position: absolute;
  white-space: nowrap;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
}
@media (max-width: 480px) {
  .tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1.challenge-revealed > .tarot-element__position-label { /* Position handled by common style */ }
}
@media (max-width: 360px) {
  .tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-1.challenge-revealed > .tarot-element__position-label { /* Position handled by common style */ }
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-2 {
  grid-area: below;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-3 {
  grid-area: past;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-4 {
  grid-area: crown;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-5 {
  grid-area: future;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-6 {
  grid-area: self;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-7 {
  grid-area: external;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-8 {
  grid-area: hopes;
}
.tarot-element__celtic-cross-container > .tarot-element__position-wrapper.position-9 {
  grid-area: outcome;
}
.tarot-element__celtic-cross-container .revealed-challenge-placeholder {
  grid-area: revealed-spot;
  visibility: hidden;
  pointer-events: none;
  min-height: 100px;
}

.zodiac-element {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding-top: var(--spacing-md);
  box-shadow: var(--shadow-sharp);
  position: relative;
  overflow: visible;
  transition: all 0.3s var(--transition-elegant);
}
.zodiac-element::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 20%, rgba(106, 48, 147, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%), radial-gradient(1px at 30% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 50%), radial-gradient(1px at 70% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  background-size: 100% 100%, 100% 100%, 40px 40px, 30px 30px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}
.zodiac-element.premium {
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.zodiac-element.premium::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.6) 0%, transparent 60%);
  z-index: 0;
}
.zodiac-element__wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
  transition: all 0.3s var(--transition-elegant);
}
.zodiac-element__wrapper.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.zodiac-element__title, .zodiac-element .element-title {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.zodiac-element__title i, .zodiac-element .element-title i {
  color: #d4af37;
  font-size: 1.8rem;
}
.zodiac-element__title span, .zodiac-element .element-title span {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.zodiac-element__description, .zodiac-element .element-description {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}
.zodiac-element__description p, .zodiac-element .element-description p {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.zodiac-element__wheel-container {
  position: relative;
  width: 100%;
  width: clamp(300px, 85vw, 650px);
  margin: 0 auto 2rem;
  padding: 2rem 0;
}
.zodiac-element__wheel {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  margin: 0 auto;
}
.zodiac-element__wheel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40, 30, 55, 0.4) 0%, rgba(30, 20, 40, 0.4) 100%);
  box-shadow: inset 0 0 30px 5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.3);
  backdrop-filter: blur(5px);
  z-index: 0;
}
.zodiac-element__wheel::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: radial-gradient(circle at center, rgba(40, 30, 55, 0.3) 0%, rgba(30, 20, 40, 0.1) 100%);
  z-index: 0;
}
.zodiac-element__sign {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24%;
  height: 24%;
  z-index: 2;
  cursor: pointer;
  border-radius: 50%;
  opacity: 1;
  transform-origin: center center;
  transform: translate(-50%, -50%);
}
.zodiac-element__sign:nth-child(1) {
  transform: translate(-50%, -50%) rotate(-15deg) translateY(calc(-1 * 42% / 0.24)) rotate(15deg);
}
.zodiac-element__sign:nth-child(2) {
  transform: translate(-50%, -50%) rotate(15deg) translateY(calc(-1 * 42% / 0.24)) rotate(-15deg);
}
.zodiac-element__sign:nth-child(3) {
  transform: translate(-50%, -50%) rotate(45deg) translateY(calc(-1 * 42% / 0.24)) rotate(-45deg);
}
.zodiac-element__sign:nth-child(4) {
  transform: translate(-50%, -50%) rotate(75deg) translateY(calc(-1 * 42% / 0.24)) rotate(-75deg);
}
.zodiac-element__sign:nth-child(5) {
  transform: translate(-50%, -50%) rotate(105deg) translateY(calc(-1 * 42% / 0.24)) rotate(-105deg);
}
.zodiac-element__sign:nth-child(6) {
  transform: translate(-50%, -50%) rotate(135deg) translateY(calc(-1 * 42% / 0.24)) rotate(-135deg);
}
.zodiac-element__sign:nth-child(7) {
  transform: translate(-50%, -50%) rotate(165deg) translateY(calc(-1 * 42% / 0.24)) rotate(-165deg);
}
.zodiac-element__sign:nth-child(8) {
  transform: translate(-50%, -50%) rotate(195deg) translateY(calc(-1 * 42% / 0.24)) rotate(-195deg);
}
.zodiac-element__sign:nth-child(9) {
  transform: translate(-50%, -50%) rotate(225deg) translateY(calc(-1 * 42% / 0.24)) rotate(-225deg);
}
.zodiac-element__sign:nth-child(10) {
  transform: translate(-50%, -50%) rotate(255deg) translateY(calc(-1 * 42% / 0.24)) rotate(-255deg);
}
.zodiac-element__sign:nth-child(11) {
  transform: translate(-50%, -50%) rotate(285deg) translateY(calc(-1 * 42% / 0.24)) rotate(-285deg);
}
.zodiac-element__sign:nth-child(12) {
  transform: translate(-50%, -50%) rotate(315deg) translateY(calc(-1 * 42% / 0.24)) rotate(-315deg);
}
.zodiac-element__sign {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.zodiac-element__sign.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.zodiac-element__sign.disabled .zodiac-element__sign-content {
  filter: grayscale(0.7);
}
.zodiac-element__sign-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(40, 30, 55, 0.6) 0%, rgba(30, 20, 40, 0.6) 100%);
  border-radius: 50%;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.zodiac-element__sign-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0) 100%);
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}
.zodiac-element__sign-symbol {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zodiac-element__sign-symbol img {
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.zodiac-element__sign-symbol i, .zodiac-element__sign-symbol span {
  font-size: clamp(1.5rem, 4vmin, 2.2rem);
  color: #d4af37;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
}
.zodiac-element__sign-name {
  font-weight: 600;
  position: absolute;
  font-size: clamp(0.6rem, 1.8vmin, 1rem);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0.15rem;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8), 0px 1px 1px rgba(0, 0, 0, 0.9);
  z-index: 3;
}
@media (max-width: 599px) {
  .zodiac-element__sign-name {
    font-size: 0.65rem;
  }
}
.zodiac-element__sign:hover:not(.selected) {
  z-index: 9;
}
.zodiac-element__sign:hover:not(.selected) .zodiac-element__sign-content {
  background: linear-gradient(135deg, rgba(50, 35, 65, 0.8) 0%, rgba(40, 30, 55, 0.8) 100%);
  box-shadow: 0 0 15px rgba(106, 48, 147, 0.5);
}
.zodiac-element__sign:hover:not(.selected) .zodiac-element__sign-content::before {
  opacity: 0.3;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.1) 100%);
}
.zodiac-element__sign:hover:not(.selected) .zodiac-element__sign-symbol img, .zodiac-element__sign:hover:not(.selected) .zodiac-element__sign-symbol span, .zodiac-element__sign:hover:not(.selected) .zodiac-element__sign-symbol i {
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
}
.zodiac-element__sign:hover:not(.selected) .zodiac-element__sign-name {
  color: white;
  font-weight: 700;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.9);
}
.zodiac-element__sign.selected-border, .zodiac-element__sign.selected {
  z-index: 9;
}
.zodiac-element__sign.selected-border .zodiac-element__sign-content, .zodiac-element__sign.selected .zodiac-element__sign-content {
  background: linear-gradient(135deg, rgba(60, 40, 80, 0.9) 0%, rgba(50, 35, 65, 0.9) 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(106, 48, 147, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.15);
}
.zodiac-element__sign.selected-border .zodiac-element__sign-content::before, .zodiac-element__sign.selected .zodiac-element__sign-content::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.1) 100%);
  animation: mysticalPulse 6s infinite ease-in-out;
}
.zodiac-element__sign.selected-border .zodiac-element__sign-symbol img, .zodiac-element__sign.selected-border .zodiac-element__sign-symbol span, .zodiac-element__sign.selected-border .zodiac-element__sign-symbol i, .zodiac-element__sign.selected .zodiac-element__sign-symbol img, .zodiac-element__sign.selected .zodiac-element__sign-symbol span, .zodiac-element__sign.selected .zodiac-element__sign-symbol i {
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
}
.zodiac-element__sign.selected-border .zodiac-element__sign-symbol i, .zodiac-element__sign.selected-border .zodiac-element__sign-symbol span, .zodiac-element__sign.selected .zodiac-element__sign-symbol i, .zodiac-element__sign.selected .zodiac-element__sign-symbol span {
  color: #d4af37;
}
.zodiac-element__sign.selected-border .zodiac-element__sign-name, .zodiac-element__sign.selected .zodiac-element__sign-name {
  color: #f9e076;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.zodiac-element__sign.selected-border.secondary, .zodiac-element__sign.selected.secondary {
  z-index: 8;
}
.zodiac-element__sign.selected-border.secondary .zodiac-element__sign-content, .zodiac-element__sign.selected.secondary .zodiac-element__sign-content {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.9) 0%, rgba(74, 29, 106, 0.9) 100%);
  border: 2px solid #a044ff;
  box-shadow: 0 0 8px rgba(160, 68, 255, 0.2), inset 0 0 8px rgba(106, 48, 147, 0.1);
}
.zodiac-element__sign.selected-border.secondary .zodiac-element__sign-content::before, .zodiac-element__sign.selected.secondary .zodiac-element__sign-content::before {
  opacity: 0.8;
  background: linear-gradient(135deg, rgba(160, 68, 255, 0.3) 0%, rgba(106, 48, 147, 0.1) 100%);
  animation: mysticalPulse 7s infinite ease-in-out 0.5s;
}
.zodiac-element__sign.selected-border.secondary .zodiac-element__sign-symbol img, .zodiac-element__sign.selected-border.secondary .zodiac-element__sign-symbol span, .zodiac-element__sign.selected-border.secondary .zodiac-element__sign-symbol i, .zodiac-element__sign.selected.secondary .zodiac-element__sign-symbol img, .zodiac-element__sign.selected.secondary .zodiac-element__sign-symbol span, .zodiac-element__sign.selected.secondary .zodiac-element__sign-symbol i {
  filter: drop-shadow(0 0 3px rgba(160, 68, 255, 0.5));
}
.zodiac-element__sign.selected-border.secondary .zodiac-element__sign-symbol i, .zodiac-element__sign.selected-border.secondary .zodiac-element__sign-symbol span, .zodiac-element__sign.selected.secondary .zodiac-element__sign-symbol i, .zodiac-element__sign.selected.secondary .zodiac-element__sign-symbol span {
  color: #a044ff;
}
.zodiac-element__sign.selected-border.selected.self-compatibility, .zodiac-element__sign.selected.selected.self-compatibility {
  z-index: 10;
}
.zodiac-element__sign.selected-border.selected.self-compatibility .zodiac-element__sign-content, .zodiac-element__sign.selected.selected.self-compatibility .zodiac-element__sign-content {
  border: 3px solid #f9e076;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(106, 48, 147, 0.8) 70%);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5), inset 0 0 15px rgba(249, 224, 118, 0.2);
}
.zodiac-element__sign.selected-border.selected.self-compatibility .zodiac-element__sign-content::before, .zodiac-element__sign.selected.selected.self-compatibility .zodiac-element__sign-content::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0), rgba(249, 224, 118, 0.7), rgba(212, 175, 55, 0)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: subtleShine 4s infinite linear;
}
.zodiac-element__sign.selected-border.selected.self-compatibility .zodiac-element__sign-name, .zodiac-element__sign.selected.selected.self-compatibility .zodiac-element__sign-name {
  color: #f9e076;
  font-weight: 700;
}
.zodiac-element__sign.animate-pulse-primary .zodiac-element__sign-content {
  animation: pulseSelectedSign 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.zodiac-element__sign.animate-pulse-secondary .zodiac-element__sign-content {
  animation: pulseSelectedSignSecondary 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.zodiac-element__center-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  width: 70%;
  aspect-ratio: 1/1;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.7) 0%, rgba(74, 29, 106, 0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  text-align: center;
  box-shadow: 0 0 15px rgba(106, 48, 147, 0.4);
  animation: pulsate 3s infinite alternate;
  transition: opacity 0.2s ease-out, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, background 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  padding: 0;
  overflow: hidden;
}
.zodiac-element__center-piece > i {
  color: rgba(212, 175, 55, 0.7);
  font-size: clamp(28px, 6vmin, 40px);
  animation: rotateSlow 10s linear infinite;
  line-height: 1;
}
.zodiac-element__center-piece.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
  transition-delay: 0s;
}
.zodiac-element__center-piece.has-sign {
  background: none;
  box-shadow: none;
  animation: none;
  padding: 0;
  border: none;
  cursor: pointer;
}
.zodiac-element__center-piece.has-sign .zodiac-element__sign-content {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  position: relative;
  background: linear-gradient(135deg, rgba(60, 40, 80, 0.9) 0%, rgba(50, 35, 65, 0.9) 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(106, 48, 147, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.15);
  transition: all 0.3s var(--transition-elegant);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.zodiac-element__center-piece.has-sign .zodiac-element__sign-content:hover {
  box-shadow: 0 0 15px rgba(106, 48, 147, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.25);
  border-color: #f9e076;
}
.zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol img, .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol i, .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol span {
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
}
.zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol i, .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol span {
  color: #d4af37;
  font-size: clamp(1.8rem, 5vmin, 2.5rem);
}
.zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.zodiac-element__center-piece.has-sign .zodiac-element__sign-name {
  margin-top: 0.1rem;
}
.zodiac-element__center-piece.self-compatibility-center {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8) 0%, rgba(74, 29, 106, 0.8) 100%);
  border: 2px solid #d4af37;
  animation: pulsateSelfCompat 3s infinite alternate;
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  width: 100%;
  margin-bottom: 0.2rem;
}
.zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol img, .zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol i, .zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol span {
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.6));
}
.zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol i, .zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol span {
  color: #d4af37;
  font-size: clamp(1.8rem, 5vmin, 2.5rem);
}
.zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-piece-self .zodiac-element__sign-symbol.self-secondary {
  opacity: 0.8;
}
.zodiac-element__center-piece.self-compatibility-center .zodiac-element__center-plus {
  font-size: clamp(2.5rem, 6vmin, 3.5rem);
  color: #d4af37;
  font-weight: 300;
  line-height: 0.5;
  margin-top: -0.2em;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}
.zodiac-element__connection-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.zodiac-element__connection-line.active {
  opacity: 1;
}
.zodiac-element__connection-line svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.zodiac-element__connection-line svg path {
  fill: none;
  stroke: rgba(212, 175, 55, 0.6);
  stroke-width: 2;
  stroke-dasharray: 5;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
  animation: connectionPulse 2.5s infinite ease-out;
}
.zodiac-element__mode-indicator {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8) 0%, rgba(74, 29, 106, 0.8) 100%);
  border-radius: var(--border-radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: white;
  border: 1px solid rgba(212, 175, 55, 0.3);
  z-index: 6;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.zodiac-element__mode-indicator.matching {
  background: linear-gradient(135deg, rgba(160, 68, 255, 0.8) 0%, rgba(106, 48, 147, 0.8) 100%);
}
.zodiac-element__details-area {
  margin-top: 1.5rem;
  width: 100%;
  transform: translateY(20px);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--transition-elegant), transform 0.5s var(--transition-elegant), max-height 0.6s var(--transition-elegant), margin-top 0.5s var(--transition-elegant);
}
.zodiac-element.single-mode.has-selection .zodiac-element__details-area, .zodiac-element.compatibility-mode.has-secondary-selection .zodiac-element__details-area, .zodiac-element.compatibility-mode.self-compatibility-active .zodiac-element__details-area {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.zodiac-element__details-area .zodiac-element__result-container {
  padding: 1.5rem;
  margin: 0;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(74, 29, 106, 0.4) 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.zodiac-element__details-area .zodiac-element__result-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(212, 175, 55, 0.1) 25%, transparent 25%), linear-gradient(-45deg, rgba(212, 175, 55, 0.1) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.1) 75%), linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.zodiac-element__sign-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
@media (max-width: 599px) {
  .zodiac-element__sign-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.zodiac-element__sign-header h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.zodiac-element__sign-header h3 span.emoji {
  color: initial;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.zodiac-element__sign-dates {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  position: relative;
  z-index: 1;
}
.zodiac-element__sign-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.zodiac-element__sign-attributes div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.zodiac-element__sign-attributes div span:first-child {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.zodiac-element__sign-attributes div span:last-child {
  font-size: 0.95rem;
  color: #f9e076;
  font-weight: 500;
}
.zodiac-element__sign-description {
  position: relative;
  z-index: 1;
}
.zodiac-element__sign-description p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.zodiac-element__reading-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  width: 100%;
}
.zodiac-element__reading-action > * {
  margin-bottom: 0.5rem;
}
.zodiac-element__reading-action > *:last-child {
  margin-bottom: 0;
}
.zodiac-element__reading-action.mt-3 {
  margin-top: 1.5rem;
}
.zodiac-element__reading-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.6), rgba(74, 29, 106, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 10px rgba(247, 183, 51, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.zodiac-element__reading-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(247, 183, 51, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.zodiac-element__reading-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 183, 51, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}
.zodiac-element__reading-button:hover::before {
  opacity: 1;
}
.zodiac-element__reading-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.zodiac-element__reading-button:disabled {
  opacity: 0.6;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4), rgba(74, 29, 106, 0.4));
  cursor: not-allowed;
}
.zodiac-element__reading-button:disabled:hover {
  transform: none;
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 10px rgba(247, 183, 51, 0.1);
}
.zodiac-element__reading-button:disabled:hover::before {
  opacity: 0;
}
.zodiac-element__reading-button {
  min-width: 240px;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.zodiac-element__reading-button.primary {
  background: linear-gradient(135deg, rgba(160, 68, 255, 0.8) 0%, rgba(106, 48, 147, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.zodiac-element__reading-button.primary i {
  color: #d4af37;
}
.zodiac-element__reading-button.primary .loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.zodiac-element__reading-button-link {
  background: none;
  border: none;
  color: rgba(212, 175, 55, 0.7);
  font-size: 0.9rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(212, 175, 55, 0.3);
  margin-top: 0.5rem;
}
.zodiac-element__reading-button-link:hover {
  color: #d4af37;
  text-decoration-color: #d4af37;
}
.zodiac-element__reading-button-link:focus {
  outline: none;
  color: #d4af37;
  text-decoration-color: #d4af37;
}
.zodiac-element__reading-button-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.zodiac-element__revealed-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.zodiac-element__revealed-content p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
}
.zodiac-element__revealed-content p:last-child {
  margin-bottom: 0;
}
.zodiac-element__revealed-content strong, .zodiac-element__revealed-content em {
  color: #f9e076;
  font-weight: 600;
}
.zodiac-element__revealed-content .compatibility-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.zodiac-element__revealed-content .compatibility-score-value {
  font-size: 2.5rem;
  font-family: "Cinzel", serif;
  color: #d4af37;
}
.zodiac-element__revealed-content .compatibility-score-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}
.zodiac-element__revealed-content .compatibility-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.zodiac-element__revealed-content .compatibility-areas .area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.zodiac-element__revealed-content .compatibility-areas .area i {
  font-size: 1.5rem;
  color: #f9e076;
  margin-bottom: 0.5rem;
}
.zodiac-element__revealed-content .compatibility-areas .area .area-name {
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}
.zodiac-element__revealed-content .compatibility-areas .area .area-score {
  font-size: 0.9rem;
  color: #f9e076;
}
.zodiac-element__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: rgba(255, 255, 255, 0.7);
  gap: 1rem;
}
.zodiac-element__prompt i {
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.7);
  animation: floatOrb 4s infinite ease-in-out;
}
.zodiac-element__prompt span {
  font-size: 1.1rem;
  text-align: center;
}
.zodiac-element.single-mode .zodiac-element__center-piece.has-sign:hover .zodiac-element__sign-content {
  box-shadow: 0 0 18px rgba(106, 48, 147, 0.6), inset 0 0 18px rgba(212, 175, 55, 0.3);
  border-color: #f9e076;
}
.zodiac-element.single-mode .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol {
  height: 70%;
}
.zodiac-element.single-mode .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol img, .zodiac-element.single-mode .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol i, .zodiac-element.single-mode .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol span {
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
}
.zodiac-element.single-mode .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol i, .zodiac-element.single-mode .zodiac-element__center-piece.has-sign .zodiac-element__sign-symbol span {
  font-size: clamp(1.8rem, 5vmin, 2.5rem);
}
.zodiac-element.single-mode .zodiac-element__sign.selected {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out 0.1s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulsate {
  0% {
    box-shadow: 0 0 15px rgba(106, 48, 147, 0.5);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    box-shadow: 0 0 25px rgba(106, 48, 147, 0.7);
    transform: translate(-50%, -50%) scale(1.05);
  }
}
@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes connectionPulse {
  0% {
    stroke-dashoffset: 0;
    stroke: rgba(212, 175, 55, 0.6);
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
  }
  50% {
    stroke-dashoffset: -25;
    stroke: rgba(249, 224, 118, 0.9);
    stroke-width: 3;
    filter: drop-shadow(0 0 6px rgba(249, 224, 118, 0.7));
  }
  100% {
    stroke-dashoffset: -50;
    stroke: rgba(212, 175, 55, 0.6);
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
  }
}
@keyframes subtleShine {
  0% {
    background-position: -200% 0;
  }
  75% {
    background-position: 200% 0;
  }
  100% {
    background-position: 240% 0;
  }
}
@keyframes mysticalPulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}
@keyframes pulseSelectedSign {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.15);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.15);
  }
}
@keyframes pulseSelectedSignSecondary {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(160, 68, 255, 0.2), inset 0 0 8px rgba(106, 48, 147, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(160, 68, 255, 0.4), inset 0 0 12px rgba(106, 48, 147, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(160, 68, 255, 0.2), inset 0 0 8px rgba(106, 48, 147, 0.1);
  }
}
@keyframes pulsateSelfCompat {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
    transform: translate(-50%, -50%) scale(1.05);
  }
}
.palmistry-element {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
}
.palmistry-element__title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  color: #f9e076;
  margin-bottom: 0.5rem;
  text-align: center;
}
.palmistry-element__title span {
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.palmistry-element__description {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}
.palmistry-element__description p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}
.palmistry-element__upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 90%;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(20, 15, 35, 0.9) 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.palmistry-element__upload-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.palmistry-element__instructions {
  text-align: center;
  margin-bottom: 1.5rem;
}
.palmistry-element__instructions i {
  font-size: 3rem;
  color: #d4af37;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}
.palmistry-element__instructions h3 {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  color: #f9e076;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.palmistry-element__instructions p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}
.palmistry-element__upload-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 350px;
}
.palmistry-element__file-input {
  display: none;
}
.palmistry-element__upload-button, .palmistry-element__camera-button, .palmistry-element__retake-button {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.palmistry-element__upload-button i, .palmistry-element__camera-button i, .palmistry-element__retake-button i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.palmistry-element__upload-button:disabled, .palmistry-element__camera-button:disabled, .palmistry-element__retake-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.palmistry-element__upload-button::after, .palmistry-element__camera-button::after, .palmistry-element__retake-button::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease;
}
.palmistry-element__upload-button:hover:not(:disabled), .palmistry-element__camera-button:hover:not(:disabled), .palmistry-element__retake-button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.palmistry-element__upload-button:hover:not(:disabled) i, .palmistry-element__camera-button:hover:not(:disabled) i, .palmistry-element__retake-button:hover:not(:disabled) i {
  transform: scale(1.2);
}
.palmistry-element__upload-button:hover:not(:disabled)::after, .palmistry-element__camera-button:hover:not(:disabled)::after, .palmistry-element__retake-button:hover:not(:disabled)::after {
  opacity: 0.5;
  transform: scale(1);
}
.palmistry-element__upload-button {
  background: linear-gradient(135deg, rgba(51, 26, 69, 0.8) 0%, rgba(33, 18, 44, 0.9) 100%);
  color: rgba(255, 255, 255, 0.9);
}
.palmistry-element__upload-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(61, 36, 79, 0.8) 0%, rgba(43, 28, 54, 0.9) 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.palmistry-element__upload-button i {
  color: #d4af37;
}
.palmistry-element__camera-button {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.7) 0%, rgba(106, 48, 147, 0.7) 100%);
  color: white;
}
.palmistry-element__camera-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.8) 0%, rgba(106, 48, 147, 0.8) 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.palmistry-element__retake-button {
  background: rgba(20, 15, 30, 0.7);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
}
.palmistry-element__retake-button:hover:not(:disabled) {
  background: rgba(30, 20, 40, 0.8);
}
.palmistry-element__divider {
  width: 100%;
  text-align: center;
  position: relative;
  margin: 0.5rem 0 1rem;
}
.palmistry-element__divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 45%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.palmistry-element__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 45%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.palmistry-element__divider span {
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.9) 0%, rgb(20, 15, 35) 100%);
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.palmistry-element__palm-container {
  margin: 1.5rem auto;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.palmistry-element__palm-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.palmistry-element__palm-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, transparent 80%);
  z-index: 1;
  pointer-events: none;
}
.palmistry-element__palm-image {
  width: 100%;
  display: block;
  transform: scale(1.01);
}
.palmistry-element__controls {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 350px;
}
.palmistry-element__annotations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.palmistry-element__annotation {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}
.palmistry-element__annotation-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  position: relative;
  z-index: 2;
}
.palmistry-element__annotation-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  animation: pulse 2s infinite;
}
.palmistry-element__annotation-label {
  position: absolute;
  background: rgba(20, 15, 30, 0.8);
  color: #f9e076;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateY(10px);
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
.palmistry-element__annotation:hover .palmistry-element__annotation-label {
  opacity: 1;
  transform: translateY(0);
}
.palmistry-element__annotation.line-heart {
  top: 30%;
  left: 25%;
}
.palmistry-element__annotation.line-heart .palmistry-element__annotation-label {
  top: -25px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}
.palmistry-element__annotation.line-heart .palmistry-element__annotation-label:hover {
  transform: translateX(-50%) translateY(0);
}
.palmistry-element__annotation.line-head {
  top: 45%;
  left: 40%;
}
.palmistry-element__annotation.line-head .palmistry-element__annotation-label {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}
.palmistry-element__annotation.line-head .palmistry-element__annotation-label:hover {
  transform: translateX(-50%) translateY(0);
}
.palmistry-element__annotation.line-life {
  top: 55%;
  left: 30%;
}
.palmistry-element__annotation.line-life .palmistry-element__annotation-label {
  top: 50%;
  right: 100%;
  margin-right: 10px;
  transform: translateY(-50%) translateX(10px);
}
.palmistry-element__annotation.line-life .palmistry-element__annotation-label:hover {
  transform: translateY(-50%) translateX(0);
}
.palmistry-element__annotation.line-fate {
  top: 40%;
  left: 60%;
}
.palmistry-element__annotation.line-fate .palmistry-element__annotation-label {
  top: 50%;
  left: 100%;
  margin-left: 10px;
  transform: translateY(-50%) translateX(-10px);
}
.palmistry-element__annotation.line-fate .palmistry-element__annotation-label:hover {
  transform: translateY(-50%) translateX(0);
}
.palmistry-element__annotation.line-sun {
  top: 35%;
  left: 70%;
}
.palmistry-element__annotation.line-sun .palmistry-element__annotation-label {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}
.palmistry-element__annotation.line-sun .palmistry-element__annotation-label:hover {
  transform: translateX(-50%) translateY(0);
}
.palmistry-element__annotation.line-marriage {
  top: 25%;
  left: 55%;
}
.palmistry-element__annotation.line-marriage .palmistry-element__annotation-label {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}
.palmistry-element__annotation.line-marriage .palmistry-element__annotation-label:hover {
  transform: translateX(-50%) translateY(0);
}
.palmistry-element__scanning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 15, 30, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(2px);
}
.palmistry-element__scanning-animation {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.palmistry-element__scanning-animation .scanning-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.7), transparent);
  animation: scanning 2s infinite;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.palmistry-element__scanning-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 15, 30, 0.8);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.palmistry-element__scanning-text .scanning-icon {
  color: #d4af37;
  font-size: 2rem;
  animation: pulse 1.5s infinite;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
}
.palmistry-element__scanning-text span {
  color: white;
  font-size: 0.95rem;
}
.palmistry-element.premium {
  position: relative;
}
.palmistry-element.premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 15, 30, 0.7);
  backdrop-filter: blur(3px);
  border-radius: 1rem;
  z-index: 2;
}
.palmistry-element.premium .palmistry-element__upload-container {
  filter: blur(3px);
  opacity: 0.7;
}

@keyframes scanning {
  0% {
    top: 0;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.voodoo-element {
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(20, 15, 35, 0.9) 100%);
  border-radius: 1.25rem;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem;
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.voodoo-element.premium {
  position: relative;
  backdrop-filter: blur(5px);
}
.voodoo-element.premium::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.7) 0%, rgba(212, 175, 55, 0.2) 30%, rgba(106, 48, 147, 0.3) 70%, rgba(247, 183, 51, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.voodoo-element::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%), radial-gradient(1px at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  background-size: 20px 20px, 25px 25px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.voodoo-element__title {
  color: #f9e076;
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.voodoo-element__description {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}
.voodoo-element__description p {
  line-height: 1.5;
}
.voodoo-element__doll-selection {
  position: relative;
  z-index: 2;
}
.voodoo-element__doll-selection .voodoo-element__instructions {
  text-align: center;
  margin-bottom: 1.5rem;
}
.voodoo-element__doll-selection .voodoo-element__instructions i {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.voodoo-element__doll-selection .voodoo-element__instructions h3 {
  font-family: var(--font-family-heading);
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.voodoo-element__doll-selection .voodoo-element__instructions p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  max-width: 80%;
  margin: 0 auto;
}
.voodoo-element__doll-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 767px) {
  .voodoo-element__doll-options {
    flex-direction: column;
    align-items: center;
  }
}
.voodoo-element__doll-option {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  padding: 1rem;
  width: 160px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.voodoo-element__doll-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.3);
}
.voodoo-element__doll-option:hover .voodoo-element__doll-image img {
  transform: scale(1.1);
}
.voodoo-element__doll-option.selected {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.4) 0%, rgba(106, 48, 147, 0.4) 100%);
  border-color: #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 10px 20px rgba(0, 0, 0, 0.3);
}
.voodoo-element__doll-option.selected::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  background: #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222' width='14' height='14'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.voodoo-element__doll-image {
  width: 100px;
  height: 100px;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
}
.voodoo-element__doll-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.voodoo-element__doll-info {
  text-align: center;
}
.voodoo-element__doll-info h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.voodoo-element__doll-info p {
  color: rgba(212, 175, 55, 0.8);
  font-size: 0.8rem;
  margin: 0;
}
.voodoo-element__ritual-container {
  position: relative;
  z-index: 2;
}
.voodoo-element__doll-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.voodoo-element__doll-image-container {
  width: 220px;
  height: 300px;
  position: relative;
  margin: 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.voodoo-element__doll-image-container:hover {
  transform: scale(1.02);
}
.voodoo-element__doll-image-large {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}
.voodoo-element__pin {
  position: absolute;
  width: 16px;
  height: 30px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform-origin: center top;
  z-index: 10;
}
.voodoo-element__pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: #222;
  z-index: 1;
}
.voodoo-element__pin::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(2px);
  z-index: 0;
}
.voodoo-element__pin-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
  z-index: 2;
}
.voodoo-element .pin-placing {
  animation: pin-placing 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
@keyframes pin-placing {
  0% {
    transform: scale(1.5) translateY(-30px);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.voodoo-element__pin-counter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  color: white;
  font-size: 0.9rem;
}
.voodoo-element__add-pin-button {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.9) 0%, rgba(106, 48, 147, 0.9) 100%);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.voodoo-element__add-pin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}
.voodoo-element__add-pin-button i {
  font-size: 1rem;
}
.voodoo-element__area-selection {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.voodoo-element__area-selection h4 {
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.voodoo-element__area-selection p {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.voodoo-element__area-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.voodoo-element__area-option {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.voodoo-element__area-option:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}
.voodoo-element__area-option.selected {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.8) 0%, rgba(106, 48, 147, 0.8) 100%);
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.voodoo-element__area-option__area-name {
  color: white;
  font-size: 0.9rem;
}
.voodoo-element__intention-form {
  margin-top: 1.5rem;
}
.voodoo-element__intention-form label {
  display: block;
  color: white;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.voodoo-element__intention-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}
.voodoo-element__intention-form input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.voodoo-element__intention-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.voodoo-element__intention-form small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-style: italic;
}
.voodoo-element__controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.voodoo-element__reset-button {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.voodoo-element__reset-button:hover {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.voodoo-element__reset-button i {
  font-size: 1.1rem;
}
.voodoo-element.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }
  30%, 50%, 70% {
    transform: translate3d(-3px, 0, 0);
  }
  40%, 60% {
    transform: translate3d(3px, 0, 0);
  }
}

.not-implemented-element {
  background: linear-gradient(135deg, rgba(51, 26, 69, 0.8) 0%, rgba(33, 18, 44, 0.9) 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.not-implemented-element::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.6) 0%, rgba(255, 122, 89, 0.6) 50%, rgba(247, 183, 51, 0.6) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.not-implemented-element .not-implemented-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.not-implemented-element .not-implemented-wrapper i {
  font-size: 2.5rem;
  color: rgba(247, 183, 51, 0.8);
  margin-bottom: 1rem;
}
.not-implemented-element .not-implemented-wrapper h3 {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.5rem 0;
}
.not-implemented-element .not-implemented-wrapper p {
  margin: 0 0 1.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  max-width: 80%;
}
.not-implemented-element .not-implemented-wrapper .element-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
}
.not-implemented-element .not-implemented-wrapper .element-details pre {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  white-space: pre-wrap;
}
.not-implemented-element .not-implemented-wrapper button {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.8) 0%, rgba(255, 122, 89, 0.8) 100%);
  border: none;
  color: rgba(20, 15, 35, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}
.not-implemented-element .not-implemented-wrapper button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.interactive-element-error {
  background: rgba(220, 53, 69, 0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(220, 53, 69, 0.4);
  margin: 1rem 0;
  font-size: 0.9rem;
}

.session-ended-prompt {
  width: 100%;
  padding: var(--spacing-xs);
  display: flex;
  justify-content: center;
}
.session-ended-prompt .prompt-container {
  width: 100%;
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(25, 15, 40, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  gap: var(--spacing-sm);
  position: relative;
}
.session-ended-prompt .prompt-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 40%, transparent 60%, rgba(212, 175, 55, 0.05) 100%);
  z-index: -1;
  border-radius: var(--border-radius-md);
  pointer-events: none;
}
.session-ended-prompt .prompt-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.session-ended-prompt .prompt-icon i {
  font-size: 20px;
  color: #f9e076;
}
.session-ended-prompt .prompt-content {
  flex: 1;
}
.session-ended-prompt .prompt-content h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(249, 224, 118, 0.9);
  line-height: 1.3;
}
.session-ended-prompt .prompt-actions {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}
.session-ended-prompt .prompt-actions .action-btn {
  min-width: 0;
  height: 36px;
  padding: 0 var(--spacing-sm);
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.session-ended-prompt .prompt-actions .action-btn i {
  font-size: 16px;
  margin-right: 4px;
}
.session-ended-prompt .prompt-actions .action-btn.primary-btn {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.9) 0%, rgba(226, 161, 31, 0.9) 100%);
  color: rgba(255, 255, 255, 0.95);
  border: none;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 15px rgba(247, 183, 51, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  position: relative;
  overflow: hidden;
}
.session-ended-prompt .prompt-actions .action-btn.primary-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.session-ended-prompt .prompt-actions .action-btn.primary-btn:hover {
  background: linear-gradient(135deg, rgb(247, 183, 51) 0%, rgb(226, 161, 31) 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(247, 183, 51, 0.4), 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 -1px 0 rgba(0, 0, 0, 0.3) inset;
}
.session-ended-prompt .prompt-actions .action-btn.primary-btn:hover::after {
  opacity: 0.8;
}
.session-ended-prompt .prompt-actions .action-btn.primary-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 10px rgba(247, 183, 51, 0.2), 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 -1px 0 rgba(0, 0, 0, 0.1) inset;
}
.session-ended-prompt .prompt-actions .action-btn.secondary-btn {
  background: rgba(74, 29, 106, 0.4);
  color: rgba(249, 224, 118, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.session-ended-prompt .prompt-actions .action-btn.secondary-btn:hover {
  background: rgba(74, 29, 106, 0.6);
  transform: translateY(-1px);
}
.session-ended-prompt .prompt-actions .action-btn.secondary-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .session-ended-prompt .prompt-container {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  .session-ended-prompt .prompt-content h4 {
    font-size: 0.85rem;
  }
  .session-ended-prompt .prompt-actions .action-btn {
    height: 32px;
    font-size: 0.8rem;
    padding: 0 var(--spacing-xs);
  }
  .session-ended-prompt .prompt-actions .action-btn i {
    font-size: 14px;
    margin-right: 2px;
  }
}
.agent-details-dialog, .mud-dialog .agent-details-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}
.agent-details-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3200;
  color: var(--color-light);
  pointer-events: auto;
}
.agent-details-dialog .agent-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
  z-index: 1;
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-backdrop {
    background-color: rgba(0, 0, 0, 0.3);
  }
}
.agent-details-dialog .agent-details-container {
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.95) 0%, rgba(22, 17, 36, 0.92) 100%);
  width: 90%;
  max-width: 700px;
  max-height: min(90vh, 960px);
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  position: relative;
  z-index: 2;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(106, 48, 147, 0.4), 0 0 20px rgba(247, 183, 51, 0.3), inset 0 0 20px rgba(106, 48, 147, 0.3);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: scale(0.9);
  opacity: 0;
  animation: dialog-reveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (min-width: 768px) {
  .agent-details-dialog .agent-details-container {
    max-width: 600px;
    max-height: 90vh;
  }
}
@media (min-width: 1200px) {
  .agent-details-dialog .agent-details-container {
    max-width: 700px;
  }
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-container {
    width: 100%;
    height: calc(100 * var(--vh, 1vh));
    max-height: none;
    border-radius: 0;
    margin: 0;
    animation: dialog-reveal-mobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}
.agent-details-dialog .agent-details-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.2) 0%, rgba(106, 48, 147, 0.2) 25%, rgba(247, 183, 51, 0.2) 50%, rgba(106, 48, 147, 0.2) 75%, rgba(247, 183, 51, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0.6;
  z-index: 0;
  animation: mystical-border 15s ease infinite;
  will-change: background-position;
}
.agent-details-dialog .agent-details-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 30px 100px, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 100px 300px, rgba(255, 255, 255, 0.6) 50%, transparent 100%), radial-gradient(1px 1px at 200px 120px, rgba(247, 183, 51, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 300px 80px, rgba(247, 183, 51, 0.8) 50%, transparent 100%);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  animation: floatParticle 20s ease-in-out infinite alternate;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-header .agent-info {
  margin-top: -60px;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-header .agent-info .agent-specializations-row {
  display: none;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-content .agent-bio {
  max-height: 80px;
  margin-bottom: 0.75rem;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-content .agent-languages {
  margin-bottom: 1rem;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-content .agent-languages__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.35rem;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-content .agent-languages__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-content .agent-languages .agent-language-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-content .agent-stats {
  margin-bottom: 0.75rem;
}
.agent-details-dialog .agent-details-container.payment-mode .agent-details-content .agent-payment-compact {
  margin-bottom: 1.5rem;
}
.agent-details-dialog .swipe-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
@media (min-width: 481px) {
  .agent-details-dialog .swipe-indicator {
    display: none;
  }
}
.agent-details-dialog .swipe-indicator-line {
  width: 36px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}
.agent-details-dialog .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
@media (max-width: 480px) {
  .agent-details-dialog .close-button {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}
.agent-details-dialog .close-button i {
  font-size: 20px;
}
.agent-details-dialog .close-button:hover, .agent-details-dialog .close-button:active {
  background: rgba(106, 48, 147, 0.6);
  transform: rotate(90deg);
}
.agent-details-dialog .agent-details-header {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 0;
  flex-shrink: 0;
}
.agent-details-dialog .agent-details-header__avatar-container {
  position: relative;
  width: 100%;
  height: 330px;
  flex-shrink: 0;
  margin-right: 0;
  overflow: hidden;
}
.agent-details-dialog .agent-details-header__avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}
.agent-details-dialog .agent-details-header__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(106, 48, 147, 0.7) 0%, rgba(247, 183, 51, 0.7) 50%, rgba(106, 48, 147, 0.7) 100%);
  z-index: -1;
  opacity: 0.8;
  animation: rotate-border 12s linear infinite;
}
.agent-details-dialog .agent-details-header__avatar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(11, 8, 20, 0.3) 50%, rgba(11, 8, 20, 0.7) 80%, rgba(11, 8, 20, 0.95) 100%);
  z-index: 1;
  box-shadow: inset 0 -10px 15px -10px rgba(106, 48, 147, 0.5);
}
.agent-details-dialog .agent-details-header__avatar-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  position: relative;
  z-index: 0;
  transition: transform 0.3s ease-out;
}
.agent-details-dialog .agent-details-header__avatar-image:hover {
  transform: translateY(-7%) scale(1.02);
}
.agent-details-dialog .agent-details-header__avatar-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(72, 32, 103) 0%, rgb(106, 48, 147) 50%, rgb(72, 32, 103) 100%);
}
.agent-details-dialog .agent-details-header__avatar-symbol .avatar-icon {
  font-size: 80px;
  color: var(--color-gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
}
.agent-details-dialog .agent-details-header__status {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-offline);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 5;
  border: 3px solid rgba(0, 0, 0, 0.5);
}
.agent-details-dialog .agent-details-header__status--online {
  background-color: var(--color-online);
}
.agent-details-dialog .badge-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 15;
  width: auto;
  max-width: 70%;
}
.agent-details-dialog .premium-badge, .agent-details-dialog .free-question-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid;
  transition: all 0.3s ease;
  transform-origin: left center;
  animation: badge-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.agent-details-dialog .premium-badge i, .agent-details-dialog .free-question-badge i {
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}
.agent-details-dialog .premium-badge:hover, .agent-details-dialog .free-question-badge:hover {
  transform: translateX(2px) scale(1.02);
}
.agent-details-dialog .premium-badge::after, .agent-details-dialog .free-question-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  transform: skewX(-20deg) translateX(-220%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  mix-blend-mode: lighten;
  animation: agentBadgeShimmer 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.agent-details-dialog .premium-badge {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(40, 30, 60, 0.85) 100%);
  border-color: rgba(247, 183, 51, 0.4);
  color: var(--color-gold-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
}
.agent-details-dialog .premium-badge i {
  color: var(--color-gold);
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
  animation: subtle-glow 3s ease-in-out infinite alternate;
}
.agent-details-dialog .free-question-badge {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 40, 35, 0.85) 100%);
  border-color: rgba(60, 157, 120, 0.4);
  color: var(--color-online-light, #5ed1a7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(60, 157, 120, 0.15);
}
.agent-details-dialog .free-question-badge--solo {
  animation-delay: 0.1s;
  top: 12px;
}
.agent-details-dialog .free-question-badge i {
  color: var(--color-online);
  text-shadow: 0 0 5px rgba(60, 157, 120, 0.4);
  animation: subtle-pulse 3s ease-in-out infinite alternate;
}
@keyframes badge-appear {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes agentBadgeShimmer {
  0% {
    transform: skewX(-20deg) translateX(-220%);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  75% {
    transform: skewX(-20deg) translateX(240%);
    opacity: 0.85;
  }
  100% {
    transform: skewX(-20deg) translateX(340%);
    opacity: 0;
  }
}
@keyframes subtle-glow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
  }
  50% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  }
}
@keyframes subtle-pulse {
  0%, 100% {
    text-shadow: 0 0 5px rgba(60, 157, 120, 0.4);
  }
  50% {
    text-shadow: 0 0 10px rgba(60, 157, 120, 0.8);
  }
}
.agent-details-dialog .agent-info {
  position: relative;
  margin-top: -80px;
  padding: 1.25rem 1.5rem 0.75rem;
  text-align: left;
  justify-items: center;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0) 0%, rgba(11, 8, 20, 0.6) 30%, rgba(11, 8, 20, 0.95) 100%);
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-info {
    margin-top: -70px;
    padding: 1rem 1rem 0.5rem;
  }
}
.agent-details-dialog .agent-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-heading);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-name {
    font-size: 1.4rem;
  }
}
.agent-details-dialog .agent-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.agent-details-dialog .agent-rating .star {
  color: var(--color-gold);
  font-size: 18px;
  margin-right: 2px;
}
.agent-details-dialog .agent-rating .star.empty {
  opacity: 0.5;
}
.agent-details-dialog .agent-rating .rating-value {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--color-gold);
}
.agent-details-dialog .agent-specializations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.agent-details-dialog .agent-specializations-row .specialization-tag {
  display: flex;
  align-items: center;
  background: rgba(106, 48, 147, 0.25);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(106, 48, 147, 0.5);
  border-radius: var(--border-radius-xs);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}
.agent-details-dialog .agent-specializations-row .specialization-tag.more {
  background: rgba(247, 183, 51, 0.15);
  border-color: rgba(247, 183, 51, 0.5);
  color: var(--color-gold);
}
.agent-details-dialog .agent-specializations-row .specialization-tag .specialization-icon {
  font-size: 14px;
  margin-right: 4px;
  color: var(--color-gold);
}
.agent-details-dialog .agent-details-content {
  padding: 0.75rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.98) 0%, rgba(22, 17, 36, 0.95) 50%, rgba(11, 8, 20, 0.98) 100%);
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.agent-details-dialog .agent-details-content::-webkit-scrollbar {
  width: 3px;
}
.agent-details-dialog .agent-details-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.agent-details-dialog .agent-details-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-gold-dark), var(--color-gold));
  border-radius: 3px;
}
.agent-details-dialog .agent-details-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-content {
    padding: 0 1rem 1rem;
  }
}
.agent-details-dialog .agent-details-content .agent-bio {
  color: var(--color-light);
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  margin-top: 0;
  border-left: 2px solid var(--color-gold);
  position: relative;
  overflow: hidden;
  max-height: 120px;
  overflow-y: auto;
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-content .agent-bio {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    max-height: 90px;
  }
}
.agent-details-dialog .agent-details-content .agent-bio .bio-text {
  font-style: italic;
  line-height: 1.6;
  position: relative;
  margin: 0;
  font-size: 0.9rem;
}
.agent-details-dialog .agent-details-content .agent-languages {
  margin-bottom: 1.25rem;
}
.agent-details-dialog .agent-details-content .agent-languages__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}
.agent-details-dialog .agent-details-content .agent-languages__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agent-details-dialog .agent-details-content .agent-languages .agent-language-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}
.agent-details-dialog .agent-details-content .agent-stats {
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-content .agent-stats {
    margin-bottom: 1rem;
  }
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-content .agent-stats .stats-grid {
    gap: 0.5rem;
  }
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid .stat-box {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(11, 8, 20, 0.6);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(106, 48, 147, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid .stat-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(106, 48, 147, 0.1), transparent);
  opacity: 0.5;
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid .stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid .stat-box:hover i {
  transform: scale(1.1);
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid .stat-box i {
  font-size: 20px;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid .stat-box .stat-value {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-family-heading);
  color: var(--color-light);
}
.agent-details-dialog .agent-details-content .agent-stats .stats-grid .stat-box .stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}
.agent-details-dialog .agent-details-content .tip-jar-section {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(11, 8, 20, 0.8) 0%, rgba(40, 10, 60, 0.9) 100%);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(106, 48, 147, 0.15);
  border: 1px solid rgba(247, 183, 51, 0.15);
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-content .tip-jar-section {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-jar-header {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-jar-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  text-shadow: 0 2px 8px rgba(247, 183, 51, 0.3);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-jar-header .tip-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-jar-header .tip-subtitle i {
  color: #f26565;
  font-size: 16px;
  animation: heartbeat 1.5s ease-in-out infinite;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button {
  height: 65px;
  background: linear-gradient(145deg, rgba(33, 12, 56, 0.9) 0%, rgba(20, 7, 34, 0.9) 100%);
  border: 1px solid rgba(247, 183, 51, 0.4);
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 48, 147, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  animation: subtle-glow-pulse 8s ease-in-out infinite alternate;
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button {
    height: 55px;
  }
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  animation: premiumButtonShine 3s linear infinite;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button .material-symbols-rounded {
  font-size: 20px;
  color: var(--color-gold);
  margin-right: 6px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button .button-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-gold);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(247, 183, 51, 0.9);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(106, 48, 147, 0.4), 0 0 10px rgba(247, 183, 51, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  animation: none;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:hover::before {
  opacity: 1;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:hover .material-symbols-rounded {
  transform: scale(1.1);
  color: var(--color-gold-light);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:hover .button-text {
  color: var(--color-gold-light);
  text-shadow: 0 0 8px rgba(247, 183, 51, 0.5);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(106, 48, 147, 0.3);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button[disabled] {
  background: linear-gradient(145deg, #2c1842 0%, #1c1028 100%);
  border-color: rgba(106, 48, 147, 0.3);
  box-shadow: none;
  opacity: 0.7;
  animation: none;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button[disabled]::after {
  opacity: 0.2;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button[disabled] .material-symbols-rounded, .agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button[disabled] .button-text {
  color: rgba(247, 183, 51, 0.5);
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button.is-loading {
  border-color: rgba(247, 183, 51, 0.7);
  background: linear-gradient(145deg, rgba(40, 15, 68, 0.9) 0%, rgba(25, 10, 42, 0.9) 100%);
  animation: none;
}
.agent-details-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button.is-loading .is-loading-icon {
  font-size: 28px;
  color: var(--color-gold);
  animation: spin 1s linear infinite;
  text-shadow: 0 0 10px rgba(247, 183, 51, 0.5);
}
.agent-details-dialog .agent-details-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-actions {
    margin-top: 1rem;
    gap: 0.75rem;
  }
}
.agent-details-dialog .agent-details-actions .mystical-button {
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  border: none;
}
@media (max-width: 480px) {
  .agent-details-dialog .agent-details-actions .mystical-button {
    min-height: 46px;
  }
}
.agent-details-dialog .agent-details-actions .mystical-button .material-symbols-rounded {
  margin-right: 8px;
  font-size: 20px;
  line-height: 1;
}
.agent-details-dialog .agent-details-actions .secondary-button {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.agent-details-dialog .agent-details-actions .secondary-button:hover:not(:disabled) {
  background: rgba(30, 20, 40, 0.6);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}
.agent-details-dialog .agent-details-actions .secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.agent-details-dialog .agent-details-actions .primary-button {
  flex: 2;
  background: linear-gradient(135deg, #d4af37 0%, #f2d265 50%, #d4af37 100%);
  color: rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
}
.agent-details-dialog .agent-details-actions .primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}
.agent-details-dialog .agent-details-actions .primary-button:disabled {
  background: linear-gradient(135deg, #555 0%, #777 50%, #555 100%);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes dialog-reveal {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes dialog-reveal-mobile {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
@keyframes premiumButtonShine {
  0% {
    transform: translateX(-160%) rotate(45deg);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  80% {
    transform: translateX(160%) rotate(45deg);
    opacity: 0.8;
  }
  100% {
    transform: translateX(200%) rotate(45deg);
    opacity: 0;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes subtle-glow-pulse {
  0% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 48, 147, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 25px rgba(106, 48, 147, 0.3), 0 0 5px rgba(247, 183, 51, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 48, 147, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  }
}
.mud-dialog.agent-details-chat-dialog {
  width: 90%;
  max-width: 400px;
  margin: 0;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.95) 0%, rgba(22, 17, 36, 0.92) 100%);
  border-radius: var(--border-radius-lg);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(106, 48, 147, 0.4), 0 0 20px rgba(247, 183, 51, 0.3), inset 0 0 20px rgba(106, 48, 147, 0.3);
  overflow: hidden;
  border: 1px solid rgba(247, 183, 51, 0.2);
  transform: scale(1);
  animation: dialog-reveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
@media (min-width: 768px) {
  .mud-dialog.agent-details-chat-dialog {
    max-width: 550px;
    max-height: 90vh;
  }
}
@media (min-width: 1200px) {
  .mud-dialog.agent-details-chat-dialog {
    max-width: 650px;
  }
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog {
    width: 95%;
    max-height: calc(100 * var(--vh, 1vh) - 40px);
  }
}
.mud-dialog.agent-details-chat-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.2) 0%, rgba(106, 48, 147, 0.2) 25%, rgba(247, 183, 51, 0.2) 50%, rgba(106, 48, 147, 0.2) 75%, rgba(247, 183, 51, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0.6;
  z-index: 0;
  animation: mystical-border 15s ease infinite;
  will-change: background-position;
}
.mud-dialog.agent-details-chat-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 30px 100px, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 100px 300px, rgba(255, 255, 255, 0.6) 50%, transparent 100%), radial-gradient(1px 1px at 200px 120px, rgba(247, 183, 51, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 300px 80px, rgba(247, 183, 51, 0.8) 50%, transparent 100%);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  animation: floatParticle 20s ease-in-out infinite alternate;
}
.mud-dialog.agent-details-chat-dialog .mud-dialog-title {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.mud-dialog.agent-details-chat-dialog .mud-dialog-content {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  flex: 1;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .mud-dialog-content {
    max-height: none;
  }
}
.mud-dialog.agent-details-chat-dialog .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .close-button {
    top: 10px;
    right: 10px;
  }
}
.mud-dialog.agent-details-chat-dialog .close-button i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}
.mud-dialog.agent-details-chat-dialog .close-button:hover {
  background: rgba(106, 48, 147, 0.5);
  transform: rotate(90deg);
}
.mud-dialog.agent-details-chat-dialog .close-button:hover i {
  color: white;
}
.mud-dialog.agent-details-chat-dialog .dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.95) 0%, rgba(22, 17, 36, 0.92) 100%);
  border-bottom: 1px solid rgba(106, 48, 147, 0.3);
  position: relative;
  z-index: 10;
}
.mud-dialog.agent-details-chat-dialog .dialog-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(247, 183, 51, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}
.mud-dialog.agent-details-chat-dialog .dialog-header .mud-typography {
  font-family: var(--font-family-heading);
  font-size: 1.3rem;
  margin: 0;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.mud-dialog.agent-details-chat-dialog .dialog-header .mud-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  min-width: auto;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  z-index: 20;
  margin-right: -8px;
}
.mud-dialog.agent-details-chat-dialog .dialog-header .mud-icon-button:hover {
  background: rgba(106, 48, 147, 0.5);
  transform: rotate(90deg);
  color: white;
}
.mud-dialog.agent-details-chat-dialog .dialog-header .mud-icon-button .mud-icon-root {
  font-size: 20px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-header {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 0;
  flex-shrink: 0;
}
.mud-dialog.agent-details-chat-dialog .agent-details-header__avatar-container {
  position: relative;
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  margin-right: 0;
  overflow: hidden;
}
@media (min-width: 768px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-header__avatar-container {
    height: 280px;
  }
}
@media (min-width: 1200px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-header__avatar-container {
    height: 320px;
  }
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-header__avatar-container {
    height: 180px;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-header__avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}
.mud-dialog.agent-details-chat-dialog .agent-details-header__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
}
.mud-dialog.agent-details-chat-dialog .agent-details-header__avatar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(11, 8, 20, 0.3) 50%, rgba(11, 8, 20, 0.7) 80%, rgba(11, 8, 20, 0.95) 100%);
  z-index: 1;
  box-shadow: inset 0 -10px 15px -10px rgba(106, 48, 147, 0.5);
}
.mud-dialog.agent-details-chat-dialog .agent-details-header__avatar-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  position: relative;
  z-index: 0;
}
.mud-dialog.agent-details-chat-dialog .agent-details-header__status {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-offline);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 5;
  border: 3px solid rgba(0, 0, 0, 0.5);
}
.mud-dialog.agent-details-chat-dialog .agent-details-header__status--online {
  background-color: var(--color-online);
}
.mud-dialog.agent-details-chat-dialog .premium-badge, .mud-dialog.agent-details-chat-dialog .free-question-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border-radius: 32px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  isolation: isolate;
}
.mud-dialog.agent-details-chat-dialog .premium-badge {
  left: 12px;
  color: var(--color-gold-light);
  border: 1px solid rgba(247, 183, 51, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.15);
}
.mud-dialog.agent-details-chat-dialog .premium-badge i {
  font-size: 14px;
  margin-right: 6px;
  color: var(--color-gold);
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
}
.mud-dialog.agent-details-chat-dialog .premium-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  transform: skewX(-20deg) translateX(-220%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
  opacity: 0;
  mix-blend-mode: lighten;
  animation: agentChatBadgeShimmer 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.mud-dialog.agent-details-chat-dialog .free-question-badge {
  left: 12px;
  top: 48px;
  color: var(--color-online);
  border: 1px solid rgba(60, 157, 120, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(60, 157, 120, 0.15);
}
.mud-dialog.agent-details-chat-dialog .free-question-badge i {
  font-size: 14px;
  margin-right: 6px;
  color: var(--color-online);
  text-shadow: 0 0 5px rgba(60, 157, 120, 0.4);
}
.mud-dialog.agent-details-chat-dialog .free-question-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  transform: skewX(-20deg) translateX(-220%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(60, 157, 120, 0.25), transparent);
  opacity: 0;
  mix-blend-mode: lighten;
  animation: agentChatBadgeShimmer 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes agentChatBadgeShimmer {
  0% {
    transform: skewX(-20deg) translateX(-220%);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  75% {
    transform: skewX(-20deg) translateX(240%);
    opacity: 0.85;
  }
  100% {
    transform: skewX(-20deg) translateX(340%);
    opacity: 0;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-info {
  position: relative;
  margin-top: -80px;
  padding: 1.25rem 1.5rem 0.75rem;
  text-align: left;
  justify-items: center;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0) 0%, rgba(11, 8, 20, 0.6) 30%, rgba(11, 8, 20, 0.95) 100%);
}
.mud-dialog.agent-details-chat-dialog .agent-info::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(106, 48, 147, 0.2) 0%, rgba(11, 8, 20, 0) 70%);
  opacity: 0.6;
  z-index: -1;
}
.mud-dialog.agent-details-chat-dialog .agent-info::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(106, 48, 147, 0) 0%, rgba(106, 48, 147, 0.3) 20%, rgba(106, 48, 147, 0.5) 50%, rgba(106, 48, 147, 0.3) 80%, rgba(106, 48, 147, 0) 100%);
  opacity: 0.6;
}
.mud-dialog.agent-details-chat-dialog .agent-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-heading);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.mud-dialog.agent-details-chat-dialog .agent-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  justify-content: center;
}
.mud-dialog.agent-details-chat-dialog .agent-rating .star {
  color: var(--color-gold);
  font-size: 18px;
  margin-right: 2px;
}
.mud-dialog.agent-details-chat-dialog .agent-rating .star.empty {
  opacity: 0.5;
}
.mud-dialog.agent-details-chat-dialog .agent-rating .rating-value {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--color-gold);
}
.mud-dialog.agent-details-chat-dialog .agent-specializations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mud-dialog.agent-details-chat-dialog .agent-specializations-row .specialization-tag {
  display: flex;
  align-items: center;
  background: rgba(106, 48, 147, 0.25);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(106, 48, 147, 0.5);
  border-radius: var(--border-radius-xs);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}
.mud-dialog.agent-details-chat-dialog .agent-specializations-row .specialization-tag.more {
  background: rgba(247, 183, 51, 0.15);
  border-color: rgba(247, 183, 51, 0.5);
  color: var(--color-gold);
}
.mud-dialog.agent-details-chat-dialog .agent-specializations-row .specialization-tag .specialization-icon {
  font-size: 14px;
  margin-right: 4px;
  color: var(--color-gold);
}
.mud-dialog.agent-details-chat-dialog .agent-stats {
  margin-bottom: 1.25rem;
}
.mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(106, 48, 147, 0.2);
}
.mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.1) 0%, rgba(0, 0, 0, 0) 50%, rgba(247, 183, 51, 0.1) 100%);
  opacity: 0.6;
  z-index: -1;
}
.mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box i {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--color-gold);
  text-shadow: 0 0 5px rgba(247, 183, 51, 0.3);
}
.mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box .stat-value {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: white;
}
.mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 350px) {
  .mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid {
    gap: 0.5rem;
  }
  .mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box {
    padding: 0.5rem 0.25rem;
  }
  .mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box i {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  .mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box .stat-value {
    font-size: 0.9rem;
  }
  .mud-dialog.agent-details-chat-dialog .agent-stats .stats-grid .stat-box .stat-label {
    font-size: 0.65rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content {
  padding: 0.75rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.98) 0%, rgba(22, 17, 36, 0.95) 50%, rgba(11, 8, 20, 0.98) 100%);
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content::-webkit-scrollbar {
  width: 3px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-gold-dark), var(--color-gold));
  border-radius: 3px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content {
    padding: 0.5rem 1rem 1rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236a3093' fill-opacity='0.08' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: -1;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio {
  color: var(--color-light);
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--color-gold);
  position: relative;
  overflow: hidden;
  max-height: 90px;
  transition: max-height 0.3s ease-out;
}
@media (min-width: 768px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio {
    max-height: 150px;
  }
}
@media (min-width: 1200px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio {
    max-height: 180px;
  }
}
@media (min-width: 768px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio.expanded {
    max-height: 350px;
  }
}
@media (min-width: 1200px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio.expanded {
    max-height: 400px;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio::-webkit-scrollbar {
  width: 3px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio::-webkit-scrollbar-thumb {
  background: var(--color-gold);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio .bio-text {
  font-style: italic;
  line-height: 1.6;
  position: relative;
  margin: 0;
  font-size: 0.9rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio .bio-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  color: var(--color-gold);
  cursor: pointer;
  font-size: 0.85rem;
  gap: 4px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio .bio-expand i {
  font-size: 18px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-bio .bio-expand:hover {
  text-decoration: underline;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-languages {
  margin-bottom: 1.25rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-languages__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-languages__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-languages .agent-language-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(11, 8, 20, 0.8) 0%, rgba(40, 10, 60, 0.9) 100%);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(106, 48, 147, 0.15);
  border: 1px solid rgba(247, 183, 51, 0.15);
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(247, 183, 51, 0.15) 0%, rgba(106, 48, 147, 0.15) 50%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  animation: tip-jar-glow 5s ease-in-out infinite alternate;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(247, 183, 51, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 50% 70%, rgba(247, 183, 51, 0.6) 50%, transparent 100%), radial-gradient(1px 1px at 80% 10%, rgba(247, 183, 51, 0.7) 50%, transparent 100%);
  opacity: 0.1;
  z-index: 0;
  animation: sparkle 10s ease-in-out infinite alternate;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-jar-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-jar-header {
    margin-bottom: 0.75rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-jar-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  text-shadow: 0 2px 8px rgba(247, 183, 51, 0.3);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-jar-header .tip-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-jar-header .tip-subtitle i {
  color: #f26565;
  font-size: 16px;
  animation: heartbeat 1.5s ease-in-out infinite;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons {
    gap: 0.5rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button {
  height: 65px !important;
  background: linear-gradient(145deg, rgba(33, 12, 56, 0.9) 0%, rgba(20, 7, 34, 0.9) 100%) !important;
  border: 1px solid rgba(247, 183, 51, 0.4) !important;
  border-radius: var(--border-radius-md) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 48, 147, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button {
    height: 55px !important;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button .material-symbols-rounded {
  font-size: 20px !important;
  color: var(--color-gold) !important;
  margin-right: 6px !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button .button-text {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  color: var(--color-gold) !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03) !important;
  border-color: rgba(247, 183, 51, 0.9) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(106, 48, 147, 0.4), 0 0 10px rgba(247, 183, 51, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:hover:not(:disabled) .material-symbols-rounded {
  transform: scale(1.1);
  color: var(--color-gold-light) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:hover:not(:disabled) .button-text {
  color: var(--color-gold-light) !important;
  text-shadow: 0 0 8px rgba(247, 183, 51, 0.5) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button:active {
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(106, 48, 147, 0.3) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button[disabled] {
  background: linear-gradient(145deg, #2c1842 0%, #1c1028 100%) !important;
  border-color: rgba(106, 48, 147, 0.3) !important;
  box-shadow: none !important;
  opacity: 0.7;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button[disabled] .material-symbols-rounded, .mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button[disabled] .button-text {
  color: rgba(247, 183, 51, 0.5) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button.is-loading {
  border-color: rgba(247, 183, 51, 0.7) !important;
  background: linear-gradient(145deg, rgba(40, 15, 68, 0.9) 0%, rgba(25, 10, 42, 0.9) 100%) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .tip-jar-section .tip-buttons .tip-button.is-loading .is-loading-icon {
  font-size: 28px !important;
  color: var(--color-gold) !important;
  animation: spin 1s linear infinite;
  text-shadow: 0 0 10px rgba(247, 183, 51, 0.5) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--color-gold);
  position: relative;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-status-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-gold);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-status-header .status-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 20px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-status-header .status-indicator i {
  font-size: 14px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-status-header .status-indicator.status-active {
  background: rgba(60, 157, 120, 0.2);
  color: var(--color-online);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-status-header .status-indicator.status-active i {
  color: var(--color-online);
  animation: pulse 2s infinite;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-status-header .status-indicator.status-inactive {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons {
    gap: 0.5rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons .new-session-button {
  flex: 1;
  background: linear-gradient(135deg, #d4af37 0%, #f2d265 50%, #d4af37 100%);
  color: rgba(0, 0, 0, 0.9);
  border: none;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: all 0.2s ease;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons .new-session-button i {
  margin-right: 8px;
  font-size: 18px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons .new-session-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons .new-session-button:disabled {
  opacity: 0.7;
  background: linear-gradient(135deg, #555 0%, #777 50%, #555 100%);
  cursor: not-allowed;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons .report-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons .report-button i {
  font-size: 18px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .session-status-section .session-action-buttons .report-button:hover {
  background: rgba(30, 20, 40, 0.6);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  border-left: 2px solid var(--color-danger);
  position: relative;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--color-danger-raw), 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: inherit;
  pointer-events: none;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-header {
  margin-bottom: 1rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-danger-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-header .report-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-header .report-subtitle i {
  color: var(--color-danger-light);
  font-size: 16px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field {
  margin-bottom: 1rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field .mud-input-control, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field .mud-input-control {
  margin-top: 0;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field .mud-input-control .mud-input, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field .mud-input-control .mud-input {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field .mud-input-control .mud-input:focus, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field .mud-input-control .mud-input:hover, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field .mud-input-control .mud-input:focus, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field .mud-input-control .mud-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field .mud-input-control .mud-input.valid.mud-input-outlined, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field .mud-input-control .mud-input.valid.mud-input-outlined {
  border-color: rgba(var(--color-secondary-raw), 0.7);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field .mud-input-control .mud-input-label, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field .mud-input-control .mud-input-label {
  color: rgba(255, 255, 255, 0.7);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-reason-field .mud-input-control .mud-input-slot, .mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field .mud-input-control .mud-input-slot {
  height: auto;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-details-field {
  margin-bottom: 1.5rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions .mystical-button {
  flex: 1;
  min-height: 44px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions .mystical-button.secondary-button {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions .mystical-button.secondary-button:hover {
  background: rgba(30, 20, 40, 0.6);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions .mystical-button.primary-button.report-button {
  background: linear-gradient(135deg, rgba(var(--color-danger-raw), 0.8) 0%, rgba(var(--color-danger-raw), 0.6) 100%);
  border: 1px solid rgba(var(--color-danger-raw), 0.4);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(var(--color-danger-raw), 0.2);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions .mystical-button.primary-button.report-button .material-symbols-rounded {
  color: white;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions .mystical-button.primary-button.report-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--color-danger-raw), 0.3);
  background: linear-gradient(135deg, rgba(var(--color-danger-raw), 0.9) 0%, rgba(var(--color-danger-raw), 0.7) 100%);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .report-abuse-section .report-actions .mystical-button.primary-button.report-button:disabled {
  background: linear-gradient(135deg, #555 0%, #777 50%, #555 100%);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.1);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions {
    margin-top: 1rem;
    gap: 0.75rem;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button, .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .primary-button {
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 46px;
}
@media (max-width: 480px) {
  .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button, .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .primary-button {
    min-height: 44px;
  }
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button i, .mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .primary-button i {
  margin-right: 8px;
  font-size: 18px;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .primary-button {
  flex: 2;
  background: linear-gradient(135deg, #d4af37 0%, #f2d265 50%, #d4af37 100%);
  color: rgba(0, 0, 0, 0.9);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .primary-button:disabled {
  opacity: 0.7;
  background: linear-gradient(135deg, #555 0%, #777 50%, #555 100%);
  cursor: not-allowed;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button:hover {
  background: rgba(30, 20, 40, 0.6);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button.report-button {
  background: rgba(0, 0, 0, 0.4) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button.report-button i {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-right: 8px !important;
}
.mud-dialog.agent-details-chat-dialog .agent-details-content .agent-details-actions .secondary-button.report-button:hover {
  background: rgba(30, 20, 40, 0.6) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.mud-dialog.agent-details-chat-dialog .primary-button {
  background: linear-gradient(135deg, #d4af37 0%, #f2d265 50%, #d4af37 100%);
  color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}
.mud-dialog.agent-details-chat-dialog .primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.4) 0%, rgba(212, 175, 55, 0.2) 50%, rgba(247, 183, 51, 0.4) 100%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  animation: buttonPulse 4s ease-in-out infinite;
}
.mud-dialog.agent-details-chat-dialog .primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}
.mud-dialog.agent-details-chat-dialog .primary-button:disabled {
  background: linear-gradient(135deg, #555 0%, #777 50%, #555 100%);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}
.mud-dialog.agent-details-chat-dialog .primary-button.report-button {
  background: linear-gradient(135deg, #d43737 0%, #f26565 50%, #d43737 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 75, 55, 0.2);
}
.mud-dialog.agent-details-chat-dialog .primary-button i {
  margin-right: 6px;
  font-size: 18px;
}
.mud-dialog.agent-details-chat-dialog .secondary-button {
  background: rgba(11, 8, 20, 0.6);
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}
.mud-dialog.agent-details-chat-dialog .secondary-button:hover {
  background: rgba(11, 8, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none !important;
  transform: none;
}
.mud-dialog.agent-details-chat-dialog .secondary-button.report-button i {
  color: var(--color-danger-light);
  margin-right: 6px;
  font-size: 18px;
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes buttonPulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
@keyframes dialog-reveal {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes floatParticle {
  0%, 100% {
    opacity: 0.1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px);
  }
}
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes tip-jar-glow {
  0% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}
@keyframes sparkle {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}
@keyframes tip-button-pulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
@keyframes pulse-gold {
  0%, 100% {
    opacity: 0.5;
    height: 3px;
  }
  50% {
    opacity: 1;
    height: 4px;
  }
}
@keyframes subtle-glow-pulse {
  0% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 48, 147, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 25px rgba(106, 48, 147, 0.3), 0 0 5px rgba(247, 183, 51, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 48, 147, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  }
}
.mud-dialog.ask-expert-dialog {
  color: var(--color-light);
  background: linear-gradient(180deg, rgba(18, 8, 30, 0.98) 0%, rgba(32, 15, 46, 0.94) 100%);
  border-radius: var(--border-radius-lg);
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid rgba(var(--color-gold-rgb), 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 18px rgba(247, 183, 51, 0.25);
  width: min(520px, 100vw - 1rem);
  max-height: min(82vh, 640px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: visible;
  transform: none;
  animation: ask-expert-dialog-reveal 0.35s ease-out forwards;
}
.mud-dialog.ask-expert-dialog .mud-dialog-content {
  background: transparent;
  border-radius: inherit;
  padding: 0;
  margin: 0;
  box-shadow: none;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
@supports (scrollbar-width: thin) {
  .mud-dialog.ask-expert-dialog .mud-dialog-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 183, 51, 0.4) transparent;
  }
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  background: var(--gradient-golden);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__header .header-copy p {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__header .icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__header .icon-button:hover {
  background: rgba(255, 255, 255, 0.16);
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__context-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
  align-items: center;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__context-card .context-image {
  width: 110px;
  height: 170px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__context-card .context-image.reversed {
  transform: rotate(180deg);
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__context-card .context-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__context-card .context-details h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-gold, #f7b733);
  font-weight: 700;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__context-card .context-details .context-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  align-self: flex-start;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__context-card .context-details .context-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.4;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .section-header {
  margin-bottom: 0.75rem;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .section-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-gold, #f7b733);
  font-weight: 700;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .section-header p {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .loading-state,
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .empty-state {
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .loading-state i,
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .empty-state i {
  font-size: 2rem;
  color: var(--color-gold, #f7b733);
}
.mud-dialog.ask-expert-dialog .ask-expert-dialog__agents .agent-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  overflow: visible;
}

.ask-expert-agent-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: left;
  color: inherit;
}
.ask-expert-agent-card:hover, .ask-expert-agent-card.selected {
  border-color: rgba(247, 183, 51, 0.6);
  background: rgba(247, 183, 51, 0.08);
  transform: translateY(-2px);
}
.ask-expert-agent-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.ask-expert-agent-card .agent-card__info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.ask-expert-agent-card .agent-card__avatar {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.ask-expert-agent-card .agent-card__avatar .avatar-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ask-expert-agent-card .agent-card__avatar .avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}
.ask-expert-agent-card .agent-card__avatar .status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(18, 8, 30, 0.98);
}
.ask-expert-agent-card .agent-card__avatar .status-dot.online {
  background: #4caf50;
}
.ask-expert-agent-card .agent-card__avatar .status-dot.offline {
  background: rgba(255, 255, 255, 0.35);
}
.ask-expert-agent-card .agent-card__name {
  font-weight: 600;
}
.ask-expert-agent-card .agent-card__price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.1rem;
}
.ask-expert-agent-card .agent-card__price .gem-icon {
  color: var(--color-gold, #f7b733);
  font-size: 1.05rem;
}
.ask-expert-agent-card .agent-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.mud-dialog-container .mud-dialog.ask-expert-dialog {
  transform: none;
  animation: ask-expert-dialog-reveal 0.35s ease-out forwards;
}

@media (max-width: 600px) {
  .ask-expert-dialog__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ask-expert-dialog__header .icon-button {
    align-self: flex-end;
  }
  .ask-expert-dialog__context-card {
    grid-template-columns: 1fr;
  }
  .ask-expert-dialog__context-card .context-image {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
  .mud-dialog.ask-expert-dialog {
    width: 100%;
    max-width: calc(100vw - 0.25rem);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-left: 0.125rem;
    margin-right: 0.125rem;
  }
  .ask-expert-dialog__agents .agent-card-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
@media (min-width: 720px) {
  .ask-expert-dialog__agents .agent-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@keyframes ask-expert-dialog-reveal {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
.ask-expert-dialog__payment {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ask-expert-dialog__payment .payment-card {
  width: min(420px, 100%);
  background: rgba(10, 6, 18, 0.95);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
}
.ask-expert-dialog__payment .payment-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ask-expert-dialog__payment .payment-card__header h3 {
  margin: 0.1rem 0 0;
}
.ask-expert-dialog__payment .payment-card__helper {
  margin: 0.35rem 0 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.mud-dialog.mud-dialog-width-sm.mud-dialog-width-full {
  min-height: 220px !important;
  max-height: 90vh !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(135deg, rgba(25, 20, 35, 0.95) 0%, rgba(15, 10, 30, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.mud-dialog.mud-dialog-width-sm.mud-dialog-width-full::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: var(--mud-default-borderradius) !important;
  padding: 1px !important;
  background: linear-gradient(to right, rgba(247, 183, 51, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3)) !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.mud-dialog.mud-dialog-width-sm.mud-dialog-width-full .mud-dialog-title {
  padding: 16px 24px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.mud-dialog.mud-dialog-width-sm.mud-dialog-width-full .mud-dialog-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.9) !important;
}
.mud-dialog.mud-dialog-width-sm.mud-dialog-width-full .mud-dialog-content p, .mud-dialog.mud-dialog-width-sm.mud-dialog-width-full .mud-dialog-content div {
  color: rgba(255, 255, 255, 0.9) !important;
}
.mud-dialog.mud-dialog-width-sm.mud-dialog-width-full .mud-dialog-actions {
  padding: 16px 24px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.mud-dialog-container.mud-dialog-center {
  align-items: center !important;
}
.mud-dialog-container.mud-dialog-center .mud-overlay.mud-overlay-dialog.mud-overlay-dark {
  backdrop-filter: blur(6px) !important;
  background-color: rgba(10, 5, 15, 0.8) !important;
}

.mud-dialog .confirmation-dialog-title {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
.mud-dialog .confirmation-dialog-title i {
  font-size: 1.25rem !important;
  color: var(--color-gold) !important;
}
.mud-dialog .confirmation-dialog-title h3, .mud-dialog .confirmation-dialog-title h6, .mud-dialog .confirmation-dialog-title .mud-typography {
  margin: 0 !important;
  font-family: var(--font-heading) !important;
  font-size: 1.1rem !important;
  color: var(--color-gold-light) !important;
  font-weight: 500 !important;
}

.mud-dialog .confirmation-dialog-content {
  color: rgba(255, 255, 255, 0.9) !important;
}
.mud-dialog .confirmation-dialog-content .agent-name {
  font-family: var(--font-heading) !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.75rem !important;
  color: var(--color-gold-light) !important;
  font-weight: 600 !important;
}
.mud-dialog .confirmation-dialog-content .content-text, .mud-dialog .confirmation-dialog-content .mud-typography {
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.custom-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 5, 15, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.custom-dialog {
  background: linear-gradient(135deg, rgba(25, 20, 35, 0.95) 0%, rgba(15, 10, 30, 0.95) 100%);
  border-radius: 0.75rem;
  width: 90%;
  max-width: 350px;
  min-height: 220px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  display: flex;
  flex-direction: column;
}
.custom-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 1px;
  background: linear-gradient(to right, rgba(247, 183, 51, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.custom-dialog-header {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.custom-dialog-body {
  padding: 1.5rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.custom-dialog-footer {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.custom-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.confirmation-dialog-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.confirmation-dialog-title i {
  font-size: 1.25rem;
  color: var(--color-gold);
}
.confirmation-dialog-title h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold-light);
  font-weight: 500;
}
.confirmation-dialog-content {
  color: rgba(255, 255, 255, 0.9);
}
.confirmation-dialog-content .agent-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold-light);
  font-weight: 600;
}
.confirmation-dialog-content .content-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}
.confirmation-dialog-confirm {
  background: #ff316a !important;
  color: white !important;
  border-radius: 0.4rem !important;
  padding: 0.5rem 1.25rem !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  font-size: 0.8rem !important;
  min-width: 100px !important;
}
.confirmation-dialog-confirm:hover {
  background: #ff4e7f !important;
  transform: translateY(-2px);
}
.confirmation-dialog-cancel {
  color: rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-weight: 500 !important;
}
.confirmation-dialog-cancel:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.no-scroll {
  overflow: hidden;
}

.mud-dialog.confirmation-dialog {
  width: 90%;
  margin: 0;
  max-width: 400px;
  height: auto;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(25, 20, 35, 0.95) 0%, rgba(15, 10, 30, 0.95) 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(106, 48, 147, 0.3), 0 0 10px rgba(247, 183, 51, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mud-dialog.confirmation-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(to right, rgba(247, 183, 51, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.mud-dialog.confirmation-dialog .mud-dialog-content {
  padding: 0;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-header {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.6), rgba(45, 20, 65, 0.8));
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(247, 183, 51, 0.2);
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 2;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(247, 183, 51, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}
.mud-dialog.confirmation-dialog .confirmation-dialog-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-title i {
  color: var(--color-gold);
  font-size: 24px;
  filter: drop-shadow(0 0 5px rgba(247, 183, 51, 0.7));
}
.mud-dialog.confirmation-dialog .confirmation-dialog-title h2 {
  font-family: var(--font-family-heading);
  font-size: 18px;
  margin: 0;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.mud-dialog.confirmation-dialog .confirmation-dialog-body {
  padding: 20px 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-content {
  width: 100%;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-content .agent-name {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-gold-light);
  font-weight: 600;
  text-align: center;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-content .content-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
  flex-shrink: 0;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-actions {
  display: flex;
  gap: 10px;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-confirm {
  background: rgba(255, 49, 106, 0.9) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 6px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  min-width: 120px !important;
  transition: all 0.2s ease !important;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-confirm:hover {
  background: rgb(255, 65, 120) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 49, 106, 0.4) !important;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-cancel {
  color: rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
  border-radius: 20px !important;
  padding: 6px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  min-width: 100px !important;
}
.mud-dialog.confirmation-dialog .confirmation-dialog-cancel:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.mud-overlay.mud-overlay-dialog.mud-overlay-dark {
  backdrop-filter: blur(6px);
  background-color: rgba(10, 5, 15, 0.8) !important;
}

@keyframes slideInDialog {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mud-dialog-container .mud-dialog {
  animation: slideInDialog 0.3s ease-out forwards;
}

.mud-dialog.game-shop-dialog {
  width: 90%;
  margin: 0;
  max-width: 750px;
  height: 80vh;
  min-height: 600px;
  background: linear-gradient(160deg, #16112b 0%, #0d0919 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(106, 48, 147, 0.4), 0 0 10px rgba(247, 183, 51, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mud-dialog.game-shop-dialog::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 30px 100px, rgba(255, 255, 255, 0.9) 50%, transparent 100%), radial-gradient(1.4px 1.4px at 70px 200px, rgba(255, 255, 255, 0.85) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 100px 300px, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1.5px 1.5px at 200px 120px, rgba(247, 183, 51, 0.9) 50%, transparent 100%), radial-gradient(1.3px 1.3px at 300px 80px, rgba(247, 183, 51, 0.9) 50%, transparent 100%), radial-gradient(1px 1px at 150px 250px, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1.4px 1.4px at 250px 350px, rgba(247, 183, 51, 0.85) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 50px 380px, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  opacity: 0.3;
  z-index: 0;
  animation: floatParticle 20s ease-in-out infinite alternate;
}
@media (max-width: 768px) {
  .mud-dialog.game-shop-dialog {
    width: 95%;
    height: 85vh;
  }
}
@media (max-width: 480px) {
  .mud-dialog.game-shop-dialog {
    width: 98%;
    height: 90vh;
  }
}
.mud-dialog.game-shop-dialog .mud-dialog-content {
  padding: 0;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8), rgba(45, 20, 65, 0.9));
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(247, 183, 51, 0.3);
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 10;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(247, 183, 51, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-title i {
  color: var(--color-gold);
  font-size: 24px;
  filter: drop-shadow(0 0 5px rgba(247, 183, 51, 0.7));
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-title h2 {
  font-family: var(--font-family-heading);
  font-size: 20px;
  margin: 0;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 5px rgba(247, 183, 51, 0.2);
  border: 1px solid rgba(247, 183, 51, 0.2);
  margin-right: 12px;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-balance i {
  color: var(--color-gold);
  font-size: 18px;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-balance span {
  color: var(--color-gold-light);
  font-weight: 700;
  font-size: 15px;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .close-button {
  width: 32px;
  height: 32px;
  padding: 0;
  min-width: auto;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  border-radius: 50%;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .close-button:hover {
  background: rgba(106, 48, 147, 0.5);
  transform: rotate(90deg);
  color: white;
}
.mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .close-button i {
  font-size: 18px;
}
@media (max-width: 600px) {
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header {
    padding: 8px 12px;
  }
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-title h2 {
    font-size: 18px;
  }
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-title i {
    font-size: 20px;
  }
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-balance {
    padding: 3px 8px;
    margin-right: 8px;
  }
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-balance i {
    font-size: 16px;
  }
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .shop-balance span {
    font-size: 14px;
  }
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .close-button {
    width: 28px;
    height: 28px;
  }
  .mud-dialog.game-shop-dialog .mud-dialog-content .game-shop-header .close-button i {
    font-size: 16px;
  }
}
.mud-dialog.game-shop-dialog .shop-section-header {
  flex-shrink: 0;
  padding: 15px 20px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mud-dialog.game-shop-dialog .shop-section-header .section-title {
  font-family: var(--font-family-heading);
  color: var(--color-gold-light);
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mud-dialog.game-shop-dialog .shop-provider-selector {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mud-dialog.game-shop-dialog .shop-provider-selector__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mud-dialog.game-shop-dialog .shop-provider-selector__label span {
  font-family: var(--font-family-heading);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mud-dialog.game-shop-dialog .shop-provider-selector__label small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.mud-dialog.game-shop-dialog .shop-provider-selector__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mud-dialog.game-shop-dialog .shop-provider-selector__option {
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-family-heading);
}
.mud-dialog.game-shop-dialog .shop-provider-selector__option .label {
  font-size: 14px;
  font-weight: 600;
}
.mud-dialog.game-shop-dialog .shop-provider-selector__option .caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.mud-dialog.game-shop-dialog .shop-provider-selector__option.active {
  border-color: var(--color-gold);
  background: rgba(247, 183, 51, 0.18);
  box-shadow: 0 8px 18px rgba(247, 183, 51, 0.25);
}
.mud-dialog.game-shop-dialog .shop-provider-selector__option:hover {
  border-color: rgba(247, 183, 51, 0.6);
}
.mud-dialog.game-shop-dialog .shop-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.mud-dialog.game-shop-dialog .shop-tabs .tab-button {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-family-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mud-dialog.game-shop-dialog .shop-tabs .tab-button i {
  font-size: 18px;
}
.mud-dialog.game-shop-dialog .shop-tabs .tab-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(106, 48, 147, 0.1);
}
.mud-dialog.game-shop-dialog .shop-tabs .tab-button.active {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}
.mud-dialog.game-shop-dialog .shop-tabs .tab-button.active i {
  color: var(--color-gold);
}
@media (max-width: 480px) {
  .mud-dialog.game-shop-dialog .shop-tabs .tab-button {
    padding: 8px;
    font-size: 13px;
  }
  .mud-dialog.game-shop-dialog .shop-tabs .tab-button i {
    font-size: 16px;
  }
}
.mud-dialog.game-shop-dialog .shop-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  position: relative;
  background: transparent;
  touch-action: pan-y;
}
.mud-dialog.game-shop-dialog .shop-content.scrollable-content {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
}
.mud-dialog.game-shop-dialog .shop-content::before, .mud-dialog.game-shop-dialog .shop-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 5;
  position: sticky;
}
.mud-dialog.game-shop-dialog .shop-content::before {
  top: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(22, 17, 43, 0.9) 0%, rgba(22, 17, 43, 0) 100%);
  position: sticky;
}
.mud-dialog.game-shop-dialog .shop-content::after {
  bottom: 0;
  height: 8px;
  background: linear-gradient(to top, rgba(22, 17, 43, 0.5) 0%, rgba(22, 17, 43, 0) 80%);
  position: sticky;
}
.mud-dialog.game-shop-dialog .shop-content::-webkit-scrollbar {
  width: 6px;
}
.mud-dialog.game-shop-dialog .shop-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.mud-dialog.game-shop-dialog .shop-content::-webkit-scrollbar-thumb {
  background: rgba(106, 48, 147, 0.6);
  border-radius: 3px;
}
.mud-dialog.game-shop-dialog .shop-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}
.mud-dialog.game-shop-dialog .shop-content .tab-panel {
  display: none;
}
.mud-dialog.game-shop-dialog .shop-content .tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}
@media (max-width: 480px) {
  .mud-dialog.game-shop-dialog .shop-content {
    padding: 15px 10px;
  }
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  animation: popIn 0.4s forwards ease-out;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(1) {
  animation-delay: 0.06s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(2) {
  animation-delay: 0.12s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(3) {
  animation-delay: 0.18s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(4) {
  animation-delay: 0.24s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(5) {
  animation-delay: 0.3s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(6) {
  animation-delay: 0.36s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(7) {
  animation-delay: 0.42s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(8) {
  animation-delay: 0.48s;
}
.mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(9) {
  animation-delay: 0.54s;
}
@media (max-width: 768px) {
  .mud-dialog.game-shop-dialog .shop-content .shop-grid {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .mud-dialog.game-shop-dialog .shop-content .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(1) {
    animation-delay: 0.08s;
  }
  .mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(2) {
    animation-delay: 0.16s;
  }
  .mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(3) {
    animation-delay: 0.24s;
  }
  .mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(4) {
    animation-delay: 0.32s;
  }
  .mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(5) {
    animation-delay: 0.4s;
  }
  .mud-dialog.game-shop-dialog .shop-content .shop-grid .gem-package-card:nth-child(6) {
    animation-delay: 0.48s;
  }
}
.mud-dialog.game-shop-dialog .shop-content .subscription-tier-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mud-dialog.game-shop-dialog .shop-content .subscription-tier-toolbar__label {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.mud-dialog.game-shop-dialog .shop-content .subscription-tier-toolbar__label small {
  margin-top: 4px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
  .mud-dialog.game-shop-dialog .shop-content .subscription-tier-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 4px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 32px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  min-width: 120px;
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 140, 0, 0.8));
  color: rgba(38, 11, 72, 0.95);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option__label {
  position: relative;
  z-index: 2;
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 78px;
  height: 78px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option__badge::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: rgba(190, 20, 40, 0.9);
  box-shadow: -10px 10px 14px rgba(0, 0, 0, 0.35);
  transform: skew(-45deg, -45deg);
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option__badge span {
  position: absolute;
  top: 18px;
  right: -34px;
  display: block;
  width: 120px;
  padding: 4px 0;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(190, 20, 40, 0.95) 0%, rgba(220, 30, 50, 0.98) 25%, rgb(255, 40, 60) 50%, rgba(220, 30, 50, 0.98) 75%, rgba(190, 20, 40, 0.95) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option--yearly {
  padding-right: 48px;
}
.mud-dialog.game-shop-dialog .shop-content .subscription-billing-toggle .toggle-option--monthly {
  min-width: 110px;
}
.mud-dialog.game-shop-dialog .shop-content .subscription-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 10px;
  align-items: stretch;
  padding: 4px 2px 20px;
}
@media (max-width: 768px) {
  .mud-dialog.game-shop-dialog .shop-content .subscription-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .mud-dialog.game-shop-dialog .shop-content .subscription-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.mud-dialog.game-shop-dialog .shop-content .loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  height: 100%;
}
.mud-dialog.game-shop-dialog .shop-content .loading .mud-progress-circular {
  color: var(--color-gold);
  margin-bottom: 15px;
}
.mud-dialog.game-shop-dialog .shop-content .loading p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}
.mud-dialog.game-shop-dialog .shop-content .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: var(--spacing-lg);
  text-align: center;
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content {
  max-width: 85%;
  background: linear-gradient(135deg, rgba(var(--color-primary-dark-raw), 0.6) 0%, rgba(var(--color-primary-raw), 0.3) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--color-secondary-raw), 0.15);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--color-secondary-raw), 0.1);
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content i.material-symbols-rounded {
  font-size: 50px;
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content i.material-symbols-rounded.pulse-effect {
  animation: float 3s ease-in-out infinite alternate;
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content h3 {
  font-family: var(--font-mystical);
  font-size: 1.6rem;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content p:last-of-type {
  margin-bottom: var(--spacing-md);
  font-style: italic;
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content .mystical-button {
  margin-top: var(--spacing-md);
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content .mystical-button:hover {
  transform: translateY(-2px);
}
.mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content .mystical-button:hover i {
  animation: rotate 1s linear infinite;
}
@media (max-width: 480px) {
  .mud-dialog.game-shop-dialog .shop-content .empty-state {
    min-height: 260px;
  }
  .mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content {
    max-width: 95%;
    padding: var(--spacing-md);
  }
  .mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content i.material-symbols-rounded {
    font-size: 40px;
  }
  .mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content h3 {
    font-size: 1.4rem;
  }
  .mud-dialog.game-shop-dialog .shop-content .empty-state .empty-state-content p {
    font-size: 0.9rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmerEffect {
  0% {
    background-position: -240% center;
  }
  75% {
    background-position: 240% center;
  }
  100% {
    background-position: 280% center;
  }
}
@keyframes floatParticle {
  0%, 100% {
    opacity: 0.1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px);
  }
}
@keyframes cosmic-pulse {
  0%, 100% {
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(var(--color-secondary-raw), 0.4);
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 30px rgba(var(--color-secondary-raw), 0.8);
    transform: scale(1.15) rotate(5deg);
  }
}
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}
@keyframes floatContent {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes buttonGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes spinRefresh {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes starryBackgroundFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}
.mud-dialog.article-view-dialog {
  width: 95%;
  max-width: 700px;
  margin: 0;
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.95) 0%, rgba(22, 17, 36, 0.92) 100%);
  border-radius: var(--border-radius-lg);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(106, 48, 147, 0.4), 0 0 20px rgba(247, 183, 51, 0.3), inset 0 0 20px rgba(106, 48, 147, 0.3);
  overflow: hidden;
  border: 1px solid rgba(247, 183, 51, 0.2);
  transform: scale(1);
  animation: dialog-reveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog {
    width: 98%;
    max-height: calc(100 * var(--vh, 1vh) - 40px);
  }
}
.mud-dialog.article-view-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.2) 0%, rgba(106, 48, 147, 0.2) 25%, rgba(247, 183, 51, 0.2) 50%, rgba(106, 48, 147, 0.2) 75%, rgba(247, 183, 51, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0.6;
  z-index: 0;
  animation: mystical-border 15s ease infinite;
  will-change: background-position;
}
.mud-dialog.article-view-dialog .mud-dialog-content {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  flex: 1;
}
.mud-dialog.article-view-dialog .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .close-btn {
    top: 10px;
    right: 10px;
  }
}
.mud-dialog.article-view-dialog .close-btn i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}
.mud-dialog.article-view-dialog .close-btn:hover {
  background: rgba(106, 48, 147, 0.5);
  transform: rotate(90deg);
}
.mud-dialog.article-view-dialog .close-btn:hover i {
  color: white;
}
.mud-dialog.article-view-dialog .scrollable-content {
  height: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .scrollable-content {
    max-height: calc(100 * var(--vh, 1vh) - 40px);
  }
}
.mud-dialog.article-view-dialog .scrollable-content::-webkit-scrollbar {
  width: 6px;
}
.mud-dialog.article-view-dialog .scrollable-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.mud-dialog.article-view-dialog .scrollable-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-gold-dark), var(--color-gold));
  border-radius: 3px;
}
.mud-dialog.article-view-dialog .scrollable-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}
.mud-dialog.article-view-dialog .article-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-image-container {
    height: 200px;
  }
}
.mud-dialog.article-view-dialog .article-image-container .article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.mud-dialog.article-view-dialog .article-image-container .article-image:hover {
  transform: scale(1.05);
}
.mud-dialog.article-view-dialog .article-image-container .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(11, 8, 20, 0) 0%, rgba(11, 8, 20, 0.7) 70%, rgba(11, 8, 20, 0.95) 100%);
  z-index: 2;
}
.mud-dialog.article-view-dialog .article-image-container .article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(106, 48, 147, 0.5);
  border-radius: var(--border-radius-md);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-gold);
  text-transform: capitalize;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.mud-dialog.article-view-dialog .article-image-container .article-read-time {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.mud-dialog.article-view-dialog .article-image-container .article-read-time i {
  font-size: 16px;
  color: var(--color-gold);
}
.mud-dialog.article-view-dialog .article-content-container {
  padding: 1.5rem;
  position: relative;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-content-container {
    padding: 1rem;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.mud-dialog.article-view-dialog .article-content-container .article-metadata .article-category {
  display: inline-block;
  background: rgba(106, 48, 147, 0.25);
  border: 1px solid rgba(106, 48, 147, 0.5);
  border-radius: var(--border-radius-md);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-light);
  text-transform: capitalize;
}
.mud-dialog.article-view-dialog .article-content-container .article-metadata .article-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.mud-dialog.article-view-dialog .article-content-container .article-metadata .article-read-time i {
  font-size: 16px;
}
.mud-dialog.article-view-dialog .article-content-container .article-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-heading);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-content-container .article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-light);
  word-break: break-word;
}
.mud-dialog.article-view-dialog .article-content-container .article-body h1, .mud-dialog.article-view-dialog .article-content-container .article-body h2, .mud-dialog.article-view-dialog .article-content-container .article-body h3, .mud-dialog.article-view-dialog .article-content-container .article-body h4, .mud-dialog.article-view-dialog .article-content-container .article-body h5, .mud-dialog.article-view-dialog .article-content-container .article-body h6 {
  font-family: var(--font-family-heading);
  color: var(--color-gold-light);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body h1:first-child, .mud-dialog.article-view-dialog .article-content-container .article-body h2:first-child, .mud-dialog.article-view-dialog .article-content-container .article-body h3:first-child, .mud-dialog.article-view-dialog .article-content-container .article-body h4:first-child, .mud-dialog.article-view-dialog .article-content-container .article-body h5:first-child, .mud-dialog.article-view-dialog .article-content-container .article-body h6:first-child {
  margin-top: 0;
}
.mud-dialog.article-view-dialog .article-content-container .article-body h1 {
  font-size: 1.8rem;
  font-weight: 700;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-content-container .article-body h1 {
    font-size: 1.4rem;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-content-container .article-body h2 {
    font-size: 1.3rem;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-content-container .article-body h3 {
    font-size: 1.2rem;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-body h4 {
  font-size: 1.2rem;
  font-weight: 600;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-content-container .article-body h4 {
    font-size: 1.1rem;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-body h5, .mud-dialog.article-view-dialog .article-content-container .article-body h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
@media (max-width: 480px) {
  .mud-dialog.article-view-dialog .article-content-container .article-body h5, .mud-dialog.article-view-dialog .article-content-container .article-body h6 {
    font-size: 1rem;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-body p {
  margin-bottom: 1.25em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body p:last-child {
  margin-bottom: 0;
}
.mud-dialog.article-view-dialog .article-content-container .article-body a {
  color: var(--color-gold);
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}
.mud-dialog.article-view-dialog .article-content-container .article-body a:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}
.mud-dialog.article-view-dialog .article-content-container .article-body a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mud-dialog.article-view-dialog .article-content-container .article-body a:hover::after {
  opacity: 1;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ul, .mud-dialog.article-view-dialog .article-content-container .article-body ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ul li, .mud-dialog.article-view-dialog .article-content-container .article-body ol li {
  margin-bottom: 0.5em;
  position: relative;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ul li:last-child, .mud-dialog.article-view-dialog .article-content-container .article-body ol li:last-child {
  margin-bottom: 0;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ul {
  list-style: none;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ul li::before {
  content: "•";
  color: var(--color-gold);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ol {
  counter-reset: item;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ol li {
  counter-increment: item;
}
.mud-dialog.article-view-dialog .article-content-container .article-body ol li::before {
  content: counter(item) ".";
  color: var(--color-gold);
  font-weight: bold;
  margin-right: 0.5em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-gold);
  background: rgba(106, 48, 147, 0.15);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
  position: relative;
}
.mud-dialog.article-view-dialog .article-content-container .article-body blockquote::before {
  content: '"';
  font-size: 3rem;
  color: rgba(247, 183, 51, 0.2);
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  font-family: Georgia, serif;
}
.mud-dialog.article-view-dialog .article-content-container .article-body blockquote p:last-child {
  margin-bottom: 0;
}
.mud-dialog.article-view-dialog .article-content-container .article-body code {
  font-family: "Courier New", monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: var(--border-radius-md);
  font-size: 0.85em;
  color: var(--color-gold-light);
}
.mud-dialog.article-view-dialog .article-content-container .article-body pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid rgba(106, 48, 147, 0.3);
}
.mud-dialog.article-view-dialog .article-content-container .article-body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--color-light);
  font-size: 0.9em;
  display: block;
  line-height: 1.5;
}
.mud-dialog.article-view-dialog .article-content-container .article-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(106, 48, 147, 0) 0%, rgba(106, 48, 147, 0.5) 50%, rgba(106, 48, 147, 0) 100%);
  margin: 2em 0;
}
.mud-dialog.article-view-dialog .article-content-container .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  overflow-x: auto;
  display: block;
}
@media (min-width: 768px) {
  .mud-dialog.article-view-dialog .article-content-container .article-body table {
    display: table;
  }
}
.mud-dialog.article-view-dialog .article-content-container .article-body table th, .mud-dialog.article-view-dialog .article-content-container .article-body table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(106, 48, 147, 0.3);
}
.mud-dialog.article-view-dialog .article-content-container .article-body table th {
  background: rgba(106, 48, 147, 0.2);
  color: var(--color-gold);
  font-weight: 600;
}
.mud-dialog.article-view-dialog .article-content-container .article-body table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.2);
}
.mud-dialog.article-view-dialog .article-content-container .article-body table tr:hover {
  background: rgba(106, 48, 147, 0.1);
}
.mud-dialog.article-view-dialog .article-content-container .article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  margin: 1.5em 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.mud-dialog.article-view-dialog .article-content-container .article-body .task-list-item {
  list-style-type: none;
  margin-left: -1.5em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body .task-list-item input[type=checkbox] {
  margin-right: 0.5em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body .footnote {
  font-size: 0.8em;
  color: var(--color-gold);
  vertical-align: super;
  text-decoration: none;
}
.mud-dialog.article-view-dialog .article-content-container .article-body .footnote:hover {
  text-decoration: underline;
}
.mud-dialog.article-view-dialog .article-content-container .article-body .footnotes {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid rgba(106, 48, 147, 0.3);
  font-size: 0.9em;
}
.mud-dialog.article-view-dialog .article-content-container .article-body .footnotes ol {
  margin-bottom: 0;
}

@keyframes dialog-reveal {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.layout-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.3s ease-out;
  background: radial-gradient(circle at 40% 30%, rgba(255, 216, 160, 0.32), transparent 68%), radial-gradient(circle at 60% 70%, rgba(174, 122, 255, 0.18), transparent 75%), rgba(5, 2, 12, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  will-change: opacity;
  --overlay-stay-duration: 1.8s;
  --overlay-stay-delay: 0.05s;
}
.layout-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
  animation: overlayActiveFadeIn 0.1s ease-out forwards, overlayStayActive var(--overlay-stay-duration) var(--overlay-stay-delay) linear forwards;
}
.layout-transition-overlay.fading-out, .layout-transition-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

@keyframes overlayActiveFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes overlayStayActive {
  from { /* No visual change, just keeps animation running */ }
  to { /* No visual change, just keeps animation running */ }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes scaleOut {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulseGlow {
  0% {
    opacity: 0.4;
    filter: blur(10px);
  }
  50% {
    opacity: 0.8;
    filter: blur(12px);
  }
  100% {
    opacity: 0.4;
    filter: blur(10px);
  }
}
.app-blur-content.is-blurred.portal-transition-type {
  filter: none;
  opacity: 0.55;
  transition: opacity 0.3s;
}

.app-blur-content.is-blurred.agent-details-transition-type {
  filter: none;
  opacity: 0.65;
  transition: opacity 0.3s;
}

.app-blur-content.is-blurred.default-transition-type {
  filter: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.layout-transition-overlay.active.portal-transition-type ~ .main-content,
.layout-transition-overlay.active.portal-transition-type ~ .mud-main-content,
.layout-transition-overlay.active.agent-details-transition-type ~ .main-content,
.layout-transition-overlay.active.agent-details-transition-type ~ .mud-main-content,
.layout-transition-overlay.active.default-transition-type ~ .main-content,
.layout-transition-overlay.active.default-transition-type ~ .mud-main-content {
  filter: none;
  opacity: 0.92;
  transition: opacity 0.3s ease-out;
}

.layout-transition-overlay.portal-transition-type {
  --overlay-stay-duration: 4.3s;
  --overlay-stay-delay: 0.05s;
}
.layout-transition-overlay.portal-transition-type.active::before {
  opacity: 0.95;
}
.layout-transition-overlay.portal-transition-type.fading-out {
  transition: opacity 0.5s ease-out;
}
.layout-transition-overlay.portal-transition-type.fading-out::before {
  opacity: 0;
  transition-duration: 0.35s;
}
.layout-transition-overlay.portal-transition-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(var(--color-gold-rgb), 0.35), transparent 70%), radial-gradient(circle at 60% 70%, rgba(var(--color-gold-rgb), 0.2), transparent 75%), rgba(var(--color-primary-dark-rgb), 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease-in;
  z-index: 0;
}
.layout-transition-overlay.portal-transition-type .portal-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  z-index: 10;
  animation: portalCenterAnimate 3.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.layout-transition-overlay.portal-transition-type .portal-center__inner-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--color-light-rgb), 0.9) 0%, rgba(var(--color-gold-rgb), 0.7) 40%, rgba(var(--color-gold-rgb), 0.2) 70%, transparent 90%);
  filter: blur(8px);
  z-index: 1;
  animation: portalCenterGlowAnimate 3.6s ease-in-out forwards;
}
.layout-transition-overlay.portal-transition-type .portal-center__rays {
  position: absolute;
  inset: -150%;
  background-image: repeating-conic-gradient(rgba(var(--color-gold-rgb), 0.4) 0deg 2deg, transparent 2deg 10deg);
  mask-image: radial-gradient(circle, black 10%, transparent 70%);
  opacity: 0;
  animation: portalCenterRaysAnimate 4s ease-out forwards;
  z-index: -1;
}
.layout-transition-overlay.portal-transition-type .portal-center__particles {
  position: absolute;
  inset: -300%;
  opacity: 0;
  background: radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.1) 90%), repeating-conic-gradient(rgba(var(--color-gold-rgb), 0.02) 0deg 1deg, rgba(var(--color-gold-rgb), 0.05) 1deg 2deg, transparent 2deg 9deg);
  border-radius: 50%;
  animation: portalOrbitalParticles 4s ease-out forwards;
  filter: blur(1px);
  transform: rotate(0deg);
  z-index: -2;
}
.layout-transition-overlay.portal-transition-type .portal-center__lens-flare {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle at center, rgba(var(--color-light-rgb), 0.9) 0%, transparent 25%), radial-gradient(circle at center, rgba(var(--color-gold-rgb), 0.7) 10%, transparent 40%);
  background-blend-mode: screen;
  filter: blur(2px);
  opacity: 0;
  z-index: 2;
  border-radius: 50%;
  animation: portalLensFlare 3s ease-out forwards;
  mix-blend-mode: screen;
}
.layout-transition-overlay.portal-transition-type .mystical-symbol {
  position: absolute;
  color: rgba(var(--color-light-rgb), 0.85);
  font-size: clamp(1rem, 4vw, 2rem);
  text-shadow: 0 0 10px rgba(var(--color-light-rgb), 0.5);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform-origin: center center;
}
.layout-transition-overlay.portal-transition-type .mystical-symbol.gold {
  color: rgba(var(--color-gold-rgb), 0.9);
  text-shadow: 0 0 12px rgba(var(--color-gold-rgb), 0.7), 0 0 20px rgba(var(--color-gold-rgb), 0.4);
}
.layout-transition-overlay.portal-transition-type .mystical-symbol.large {
  font-size: clamp(1.8rem, 7vw, 3.5rem);
}
.layout-transition-overlay.portal-transition-type .mystical-symbol.glow::before {
  content: "";
  position: absolute;
  inset: -5px;
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.6) 0%, transparent 80%);
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(5px);
  z-index: -1;
}
.layout-transition-overlay.portal-transition-type .premium-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  width: 2px;
  height: 2px;
  background-color: var(--color-gold);
  z-index: 4;
  box-shadow: 0 0 6px 1px rgba(var(--color-gold-rgb), 0.9), 0 0 10px 2px rgba(var(--color-light-rgb), 0.5);
  animation: particleMove var(--particle-duration, 2s) cubic-bezier(0.1, 0.7, 0.3, 1) var(--particle-delay, 0s) forwards;
}

.portal-lite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 55vw, 240px);
  height: clamp(180px, 55vw, 240px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
  will-change: transform, opacity;
}

.portal-lite__core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--color-gold-rgb), 0.75), transparent 70%), radial-gradient(circle at center, rgba(var(--color-light-rgb), 0.4), transparent 80%);
  animation: portalLiteCorePulse 3s ease-in-out forwards;
  will-change: transform, opacity;
}

.portal-lite__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--color-gold-rgb), 0.6);
  animation: portalLiteRing 2.6s ease-out forwards;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.portal-lite__sparks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}
.portal-lite__sparks::before, .portal-lite__sparks::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 5%, rgba(var(--color-gold-rgb), 0.55) 0%, transparent 45%), radial-gradient(circle at 85% 60%, rgba(var(--color-gold-rgb), 0.35) 0%, transparent 40%), radial-gradient(circle at 20% 70%, rgba(var(--color-gold-rgb), 0.45) 0%, transparent 35%);
  opacity: 0.75;
  animation: portalLiteSparks 2.6s ease-out forwards;
  will-change: transform, opacity;
}
.portal-lite__sparks::after {
  transform: rotate(45deg);
  opacity: 0.55;
  animation-delay: 0.1s;
}

@keyframes portalCenterAnimate {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  20% {
    opacity: 1;
    transform: scale(1.2);
  }
  60% {
    opacity: 1;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(30);
  }
}
@keyframes portalCenterGlowAnimate {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 0.8;
    transform: scale(1);
  }
  60% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(5);
  }
}
@keyframes portalCenterRaysAnimate {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(0deg);
  }
  25% {
    opacity: 0.6;
    transform: scale(0.5) rotate(45deg);
  }
  80% {
    opacity: 0.2;
    transform: scale(1.5) rotate(120deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.8) rotate(180deg);
  }
}
@keyframes portalLiteCorePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.4;
  }
}
@keyframes portalLiteRing {
  0% {
    transform: scale(0.45);
    opacity: 0.2;
  }
  40% {
    transform: scale(0.85);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
@keyframes portalLiteSparks {
  0% {
    transform: scale(0.4) rotate(0deg);
    opacity: 0.4;
  }
  60% {
    transform: scale(0.9) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(1.15) rotate(90deg);
    opacity: 0;
  }
}
@keyframes portalOrbitalParticles {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }
  20% {
    opacity: 0.8;
    transform: rotate(60deg);
  }
  80% {
    opacity: 0.4;
    transform: rotate(300deg);
  }
  100% {
    opacity: 0;
    transform: rotate(360deg);
  }
}
@keyframes portalLensFlare {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    filter: blur(5px);
  }
  20% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(2px);
  }
  80% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.9);
    filter: blur(3px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
    filter: blur(8px);
  }
}
@keyframes floatSymbolOut {
  0% {
    opacity: var(--start-opacity, 0);
    transform: translate(0, 0) scale(0.1) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--end-x) * 0.1 + var(--curve-x) * 0.3), calc(var(--end-y) * 0.1 + var(--curve-y) * 0.3)) scale(1.2) rotate(calc(var(--rotation) * 0.1));
  }
  90% {
    opacity: 0.8;
    transform: translate(calc(var(--end-x) * 0.9 + var(--curve-x) * 0.1), calc(var(--end-y) * 0.9 + var(--curve-y) * 0.1)) scale(calc(var(--end-scale) * 1.1)) rotate(calc(var(--rotation) * 0.9));
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(var(--end-scale)) rotate(var(--rotation));
  }
}
@keyframes particleMove {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--end-x) * 0.15), calc(var(--end-y) * 0.15)) scale(1.2);
  }
  90% {
    opacity: 0.7;
    transform: translate(calc(var(--end-x) * 0.9), calc(var(--end-y) * 0.9)) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(0.5);
  }
}
.portal-transition {
  width: 100%;
  height: 100%;
  position: relative;
}
.portal-transition .portal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(128, 0, 128, 0.3) 0%, rgba(75, 0, 130, 0.6) 50%, rgba(30, 0, 60, 0.8) 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(180, 70, 240, 0.6);
  animation: portalGrow 1.5s ease-in forwards;
}
.portal-transition .portal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 215, 0, 0.7);
  border-radius: 50%;
  opacity: 0;
  animation: portalRingExpand 2s ease-out forwards;
}
.portal-transition .portal-star {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.9);
  width: 3px;
  height: 3px;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7);
}
.portal-transition .portal-star:nth-child(odd) {
  animation: portalStarFloat 3s ease-in-out infinite alternate;
}
.portal-transition .portal-star:nth-child(even) {
  animation: portalStarFloat 2s ease-in-out infinite alternate-reverse;
}

.portal-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 4px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, #b88746, #faf6d2, #b88746);
  background-clip: padding-box;
  opacity: 0;
}
.portal-ring:before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(45deg, #471d0c, #8f5922, #fdf6cd);
}

.portal-center {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a1a47 0%, #0d0617 70%);
  box-shadow: 0 0 50px rgba(90, 40, 140, 0.8);
  opacity: 0;
}

.portal-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 40, 160, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0;
}

.portal-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #f3efd3, #b5953a);
  box-shadow: 0 0 10px rgba(255, 223, 148, 0.8);
}
.portal-particle:nth-child(1) {
  top: calc(50% + sin(30deg) * 120px);
  left: calc(50% + cos(30deg) * 120px);
  animation-delay: 0.2s;
}
.portal-particle:nth-child(2) {
  top: calc(50% + sin(60deg) * 120px);
  left: calc(50% + cos(60deg) * 120px);
  animation-delay: 0.4s;
}
.portal-particle:nth-child(3) {
  top: calc(50% + sin(90deg) * 120px);
  left: calc(50% + cos(90deg) * 120px);
  animation-delay: 0.6s;
}
.portal-particle:nth-child(4) {
  top: calc(50% + sin(120deg) * 120px);
  left: calc(50% + cos(120deg) * 120px);
  animation-delay: 0.8s;
}
.portal-particle:nth-child(5) {
  top: calc(50% + sin(150deg) * 120px);
  left: calc(50% + cos(150deg) * 120px);
  animation-delay: 1s;
}
.portal-particle:nth-child(6) {
  top: calc(50% + sin(180deg) * 120px);
  left: calc(50% + cos(180deg) * 120px);
  animation-delay: 1.2s;
}
.portal-particle:nth-child(7) {
  top: calc(50% + sin(210deg) * 120px);
  left: calc(50% + cos(210deg) * 120px);
  animation-delay: 1.4s;
}
.portal-particle:nth-child(8) {
  top: calc(50% + sin(240deg) * 120px);
  left: calc(50% + cos(240deg) * 120px);
  animation-delay: 1.6s;
}
.portal-particle:nth-child(9) {
  top: calc(50% + sin(270deg) * 120px);
  left: calc(50% + cos(270deg) * 120px);
  animation-delay: 1.8s;
}
.portal-particle:nth-child(10) {
  top: calc(50% + sin(300deg) * 120px);
  left: calc(50% + cos(300deg) * 120px);
  animation-delay: 2s;
}
.portal-particle:nth-child(11) {
  top: calc(50% + sin(330deg) * 120px);
  left: calc(50% + cos(330deg) * 120px);
  animation-delay: 2.2s;
}
.portal-particle:nth-child(12) {
  top: calc(50% + sin(360deg) * 120px);
  left: calc(50% + cos(360deg) * 120px);
  animation-delay: 2.4s;
}

@keyframes portalGrow {
  0% {
    width: 0;
    height: 0;
    opacity: 0.3;
  }
  60% {
    width: 300px;
    height: 300px;
    opacity: 0.8;
  }
  100% {
    width: 200vh;
    height: 200vh;
    opacity: 1;
  }
}
@keyframes portalRingExpand {
  0% {
    width: 30px;
    height: 30px;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}
@keyframes portalStarFloat {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translate(40px, -60px) rotate(45deg);
    opacity: 0;
  }
}
.layout-transition-overlay.agent-details-transition-type {
  --overlay-stay-duration: 3s;
  --overlay-stay-delay: 0s;
  background: none;
  backdrop-filter: none;
}
.layout-transition-overlay.agent-details-transition-type.agent-details-fast {
  --overlay-stay-duration: 1s;
  --overlay-stay-delay: 0s;
}
.layout-transition-overlay.agent-details-transition-type.agent-details-fast.active {
  animation-duration: 1.2s;
}
.layout-transition-overlay.agent-details-transition-type.agent-details-fast .agent-silhouette {
  animation-duration: 1s;
}
.layout-transition-overlay.agent-details-transition-type.agent-details-fast .agent-silhouette::before, .layout-transition-overlay.agent-details-transition-type.agent-details-fast .agent-silhouette::after,
.layout-transition-overlay.agent-details-transition-type.agent-details-fast .agent-silhouette .agent-aura {
  animation-duration: 1s;
}
.layout-transition-overlay.agent-details-transition-type.active {
  background: none;
  backdrop-filter: none;
  animation: agentDetailsBackgroundFadeIn 3.5s ease-out forwards;
}
.layout-transition-overlay.agent-details-transition-type.fading-out {
  background: none;
  backdrop-filter: none;
  transition: all 0.4s ease-out;
}
.layout-transition-overlay.agent-details-transition-type .agent-silhouette {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 300px;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.layout-transition-overlay.agent-details-transition-type .agent-silhouette::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
  border: 2px solid rgba(var(--color-gold-rgb), 0.3);
  box-shadow: 0 0 40px rgba(var(--color-gold-rgb), 0.15), inset 0 0 20px rgba(var(--color-gold-rgb), 0.15);
  opacity: 0;
  animation: agentSilhouetteFade 1.2s ease-out forwards;
}
.layout-transition-overlay.agent-details-transition-type .agent-silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, transparent 45%, rgba(var(--color-gold-rgb), 0.15) 50%, transparent 55%), linear-gradient(135deg, transparent 45%, rgba(var(--color-gold-rgb), 0.15) 50%, transparent 55%);
  filter: blur(3px);
  opacity: 0;
  animation: agentEnergyLines 1.4s ease-out forwards;
}
.layout-transition-overlay.agent-details-transition-type .agent-silhouette .agent-aura {
  position: absolute;
  inset: -20px;
  border-radius: 60% 40% 50% 50%/50% 60% 40% 50%;
  background: radial-gradient(ellipse at center, rgba(var(--color-gold-rgb), 0.08) 0%, rgba(var(--color-gold-rgb), 0.05) 40%, transparent 70%);
  opacity: 0;
  filter: blur(10px);
  animation: agentAuraExpand 1.6s ease-out forwards;
  transform: scale(0.5);
}
.layout-transition-overlay.agent-details-transition-type .wind-streamer {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--color-gold-rgb), 0) 0%, rgba(var(--color-gold-rgb), 0.5) 50%, rgba(var(--color-gold-rgb), 0) 100%);
  height: 1px;
  width: 60px;
  filter: blur(1px);
  transform-origin: center left;
  will-change: transform, opacity;
  animation: windStreamerFlow var(--streamer-duration, 2s) cubic-bezier(0.3, 0, 0.7, 1) var(--streamer-delay, 0s) forwards;
}
.layout-transition-overlay.agent-details-transition-type .wind-vortex {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  animation: vortexFadeIn 0.6s ease-out forwards 0.2s;
}
.layout-transition-overlay.agent-details-transition-type .wind-vortex::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(var(--color-gold-rgb), 0.1), rgba(var(--color-gold-rgb), 0), rgba(var(--color-light-rgb), 0.05), rgba(var(--color-gold-rgb), 0.1), rgba(var(--color-gold-rgb), 0));
  filter: blur(5px);
  animation: vortexRotate 5s linear infinite;
}
.layout-transition-overlay.agent-details-transition-type .wind-vortex::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(var(--color-light-rgb), 0), rgba(var(--color-light-rgb), 0.05), rgba(var(--color-gold-rgb), 0.05), rgba(var(--color-light-rgb), 0));
  filter: blur(3px);
  animation: vortexRotate 3s linear infinite reverse;
}
.layout-transition-overlay.agent-details-transition-type .light-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  background-color: rgba(var(--color-light-rgb), 0.9);
  z-index: 4;
  box-shadow: 0 0 4px 1px rgba(var(--color-light-rgb), 0.6);
  animation: lightParticleFloat var(--particle-duration, 1.5s) cubic-bezier(0.2, 0.8, 0.2, 1) var(--particle-delay, 0s) forwards;
}
.layout-transition-overlay.agent-details-transition-type .gold-spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 1px;
  z-index: 4;
  box-shadow: 0 0 6px 1px rgba(var(--color-gold-rgb), 0.7);
  transform: rotate(var(--spark-angle, 0deg));
  animation: goldSparkFloat var(--spark-duration, 1.2s) cubic-bezier(0.1, 0.9, 0.2, 1) var(--spark-delay, 0s) forwards;
}
.layout-transition-overlay.agent-details-transition-type .wind-wisp {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  width: 15px;
  height: 3px;
  border-radius: 50%;
  background-color: rgba(var(--color-light-rgb), 0.4);
  filter: blur(2px);
  z-index: 3;
  transform-origin: center;
  animation: windWispFloat var(--wisp-duration, 2.5s) cubic-bezier(0.3, 0, 0.7, 1) var(--wisp-delay, 0s) forwards;
}
.layout-transition-overlay.agent-details-transition-type .wind-rune {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  font-family: serif;
  font-size: 14px;
  color: rgba(var(--color-gold-rgb), 0.8);
  text-shadow: 0 0 5px rgba(var(--color-gold-rgb), 0.5);
  z-index: 5;
  animation: runeFloat var(--rune-duration, 3s) cubic-bezier(0.1, 0, 0.9, 1) var(--rune-delay, 0s) forwards;
}

@keyframes agentDetailsBackgroundFadeIn {
  0% {
    opacity: 1;
    background-color: rgba(var(--color-primary-dark-rgb), 0);
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 0.6;
    background-color: rgba(var(--color-primary-dark-rgb), 0.2);
    backdrop-filter: blur(8px);
  }
}
@keyframes agentSilhouetteFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  60% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}
@keyframes agentEnergyLines {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.05) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
  }
}
@keyframes agentAuraExpand {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  40% {
    opacity: 0.6;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes windStreamerFlow {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5) rotate(var(--wind-angle, 0deg));
    width: var(--streamer-length, 60px);
  }
  20% {
    opacity: var(--streamer-opacity, 0.9);
    width: var(--streamer-length, 60px);
    transform: translate(calc(var(--end-x) * 0.2), calc(var(--end-y) * 0.2)) scale(1) rotate(var(--wind-angle, 0deg));
  }
  100% {
    opacity: 0;
    width: calc(var(--streamer-length, 60px) * 0.6);
    transform: translate(var(--end-x), var(--end-y)) scale(0.6) rotate(calc(var(--wind-angle) + var(--wind-twist, 0deg)));
  }
}
@keyframes windWispFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scaleX(var(--wisp-scale, 0.8)) rotate(var(--wisp-angle, 0deg));
  }
  10% {
    opacity: 0.7;
    transform: translate(calc(var(--end-x) * 0.1), calc(var(--end-y) * 0.1)) scaleX(calc(var(--wisp-scale, 1) * 1.2)) rotate(var(--wisp-angle, 0deg));
  }
  80% {
    opacity: 0.5;
    transform: translate(calc(var(--end-x) * 0.8), calc(var(--end-y) * 0.8)) scaleX(calc(var(--wisp-scale, 1) * 0.9)) rotate(calc(var(--wisp-angle) + var(--wisp-twist, 40deg)));
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scaleX(calc(var(--wisp-scale, 1) * 0.5)) rotate(calc(var(--wisp-angle) + var(--wisp-twist, 60deg)));
  }
}
@keyframes runeFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(var(--rune-scale, 0.8));
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--end-x) * 0.2), calc(var(--end-y) * 0.2)) rotate(calc(var(--rune-rotate) * 0.3)) scale(var(--rune-scale, 1));
  }
  80% {
    opacity: 0.8;
    transform: translate(calc(var(--end-x) * 0.8), calc(var(--end-y) * 0.8)) rotate(calc(var(--rune-rotate) * 0.8)) scale(calc(var(--rune-scale, 1) * 0.9));
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) rotate(var(--rune-rotate)) scale(calc(var(--rune-scale, 1) * 0.6));
  }
}
@keyframes vortexFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes vortexRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes lightParticleFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  30% {
    opacity: 0.8;
    transform: translate(calc(var(--end-x) * 0.3), calc(var(--end-y) * 0.3)) scale(1.2);
  }
  90% {
    opacity: 0.5;
    transform: translate(calc(var(--end-x) * 0.9), calc(var(--end-y) * 0.9)) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(0.5);
  }
}
@keyframes goldSparkFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3) rotate(var(--spark-angle, 0deg));
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--end-x) * 0.2), calc(var(--end-y) * 0.2)) scale(1.2) rotate(calc(var(--spark-angle) + 20deg));
  }
  80% {
    opacity: 0.6;
    transform: translate(calc(var(--end-x) * 0.8), calc(var(--end-y) * 0.8)) scale(0.7) rotate(calc(var(--spark-angle) + 45deg));
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(0.4) rotate(calc(var(--spark-angle) + 90deg));
  }
}
.agent-details-transition {
  width: 100%;
  height: 100%;
  position: relative;
}
.agent-details-transition .agent-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 400px;
  background: linear-gradient(135deg, rgba(60, 10, 80, 0.9), rgba(30, 5, 40, 0.95));
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: cardExpand 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.agent-details-transition .agent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(180, 100, 220, 0.1) 0%, transparent 70%);
  opacity: 0;
  animation: glowPulse 2s ease-in-out forwards;
}
.agent-details-transition .card-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #e6c200, #ff9500);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
  animation: particleFloat 3s ease-out forwards;
}

.agent-aura {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--agent-color-rgb, 100, 50, 200), 0.3) 0%, transparent 70%);
  filter: blur(25px);
  opacity: 0;
}

.agent-symbol {
  position: absolute;
  width: 120px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
}
.agent-symbol:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(var(--agent-color-rgb, 100, 50, 200), 0.6);
  border-radius: 50%;
  box-sizing: border-box;
}
.agent-symbol:after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, rgba(var(--agent-color-rgb, 100, 50, 200), 0.1) 0%, transparent 70%);
}

.agent-rune {
  position: absolute;
  font-family: "RunicSymbols", sans-serif;
  color: var(--agent-color, #6432c8);
  font-size: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  text-shadow: 0 0 10px rgba(var(--agent-color-rgb, 100, 50, 200), 0.6);
}
.agent-rune:nth-child(1) {
  transition-delay: 0.1s;
}
.agent-rune:nth-child(2) {
  transition-delay: 0.2s;
}
.agent-rune:nth-child(3) {
  transition-delay: 0.3s;
}
.agent-rune:nth-child(4) {
  transition-delay: 0.4s;
}
.agent-rune:nth-child(5) {
  transition-delay: 0.5s;
}

.agent-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  width: 4px;
  height: 4px;
  background-color: var(--agent-color, #6432c8);
  box-shadow: 0 0 8px var(--agent-color, #6432c8);
}
.agent-particle:nth-child(1) {
  opacity: 0.7;
  animation-delay: 1.6s;
  animation-duration: 5s;
}
.agent-particle:nth-child(2) {
  opacity: 0.7;
  animation-delay: 1.6s;
  animation-duration: 7s;
}
.agent-particle:nth-child(3) {
  opacity: 0.3;
  animation-delay: 0.2s;
  animation-duration: 6s;
}
.agent-particle:nth-child(4) {
  opacity: 0.5;
  animation-delay: 0.2s;
  animation-duration: 8s;
}
.agent-particle:nth-child(5) {
  opacity: 0.7;
  animation-delay: 0.2s;
  animation-duration: 7s;
}
.agent-particle:nth-child(6) {
  opacity: 0.3;
  animation-delay: 1.2s;
  animation-duration: 6s;
}
.agent-particle:nth-child(7) {
  opacity: 0.3;
  animation-delay: 0.4s;
  animation-duration: 5s;
}
.agent-particle:nth-child(8) {
  opacity: 1;
  animation-delay: 2s;
  animation-duration: 7s;
}
.agent-particle:nth-child(9) {
  opacity: 0.8;
  animation-delay: 0.6s;
  animation-duration: 5s;
}
.agent-particle:nth-child(10) {
  opacity: 0.5;
  animation-delay: 0.8s;
  animation-duration: 6s;
}
.agent-particle:nth-child(11) {
  opacity: 0.4;
  animation-delay: 0.4s;
  animation-duration: 6s;
}
.agent-particle:nth-child(12) {
  opacity: 0.6;
  animation-delay: 1.2s;
  animation-duration: 7s;
}
.agent-particle:nth-child(13) {
  opacity: 0.5;
  animation-delay: 0.6s;
  animation-duration: 5s;
}
.agent-particle:nth-child(14) {
  opacity: 0.5;
  animation-delay: 2s;
  animation-duration: 6s;
}
.agent-particle:nth-child(15) {
  opacity: 0.5;
  animation-delay: 1.4s;
  animation-duration: 5s;
}

@keyframes auraGlow {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
}
@keyframes symbolRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes symbolPulse {
  0% {
    filter: brightness(0.8);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    filter: brightness(0.8);
  }
}
@keyframes agentParticleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-80px) translateX(35px);
    opacity: 0;
  }
}
@keyframes auraFade {
  from {
    opacity: 0.6;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes symbolFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}
@keyframes runeFade {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes cardExpand {
  0% {
    width: 280px;
    height: 400px;
    opacity: 1;
  }
  70% {
    opacity: 1;
    box-shadow: 0 0 60px rgba(160, 70, 220, 0.6);
  }
  100% {
    width: 200vw;
    height: 200vh;
    opacity: 0;
    border-radius: 0;
  }
}
@keyframes glowPulse {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes particleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translate(var(--x, 50px), var(--y, -70px)) scale(0);
    opacity: 0;
  }
}
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: #0f172a;
  --native-keyboard-height: 0px;
  --input-container-height: 87px;
  --chat-content-padding: clamp(var(--spacing-sm), 3vw, var(--spacing-xl));
}
.chat-page.portal-entry {
  animation: none;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}
.chat-page.portal-entry .chat-header {
  animation: slideFromPortal 0.8s ease 0.6s both;
  transform-origin: top center;
  will-change: transform, opacity;
}
.chat-page.portal-entry .chat-body {
  animation: fadeGlowIn 1s ease 0.8s both;
  will-change: opacity, filter;
}
.chat-page.portal-entry .mystical-rune {
  position: absolute;
  font-family: "Cinzel", serif;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 2.5rem);
  text-shadow: 0 0 10px #d4af37;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rotate, 0deg));
  animation: revealRune 2s var(--delay, 0s) both;
}
.chat-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.02) 1px, transparent 1px), radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.chat-page .chat-header {
  padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  min-height: 56px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.chat-page .chat-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}
.chat-page .message-list-container {
  min-height: 0;
  position: relative;
  overflow-y: auto;
  padding-bottom: calc(var(--input-container-height) + var(--native-keyboard-height, 0px) + var(--hybrid-safe-area-bottom, 0px) + var(--spacing-md));
  padding-inline: var(--chat-content-padding);
  padding-top: var(--spacing-sm);
  box-sizing: border-box;
  transform: translateY(0);
  transition: transform 0.2s ease;
  will-change: transform;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 27, 146, 0.5) transparent;
}
.chat-page .message-list-container::-webkit-scrollbar {
  width: 7px;
  background: transparent;
}
.chat-page .message-list-container::-webkit-scrollbar-track {
  background: transparent;
}
.chat-page .message-list-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110, 27, 146, 0.7) 0%, rgba(212, 175, 55, 0.7) 100%);
  border-radius: 4px;
  min-height: 40px;
  transition: background 0.2s;
}
.chat-page .message-list-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(110, 27, 146, 0.95) 0%, rgba(212, 175, 55, 0.95) 100%);
}
.chat-page .message-list-container.pull-refreshing {
  pointer-events: none;
}
.chat-page .message-list-container .chat-pull-indicator {
  position: absolute;
  top: -72px;
  left: var(--chat-content-padding);
  right: var(--chat-content-padding);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.chat-page .message-list-container .chat-pull-indicator__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-gold, #f7b733);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease;
}
.chat-page .message-list-container .chat-pull-indicator[data-state=refreshing] .chat-pull-indicator__icon {
  animation: chat-refresh-spin 0.9s linear infinite;
}
.chat-page .message-list-container .message-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--spacing-xl);
}
.chat-page .message-list-container .message-list-empty p {
  font-family: "Cinzel", serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1rem, 4vw, 1.2rem);
  text-align: center;
  max-width: 280px;
  padding: var(--spacing-lg);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}
.chat-page .message-list-container .message-list-empty p::before, .chat-page .message-list-container .message-list-empty p::after {
  content: "✧";
  position: absolute;
  font-size: 1.2em;
  color: #d4af37;
  opacity: 0.7;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.chat-page .message-list-container .message-list-empty p::before {
  top: -10px;
  left: 30px;
  transform: rotate(-10deg);
}
.chat-page .message-list-container .message-list-empty p::after {
  bottom: -10px;
  right: 30px;
  transform: rotate(15deg);
}
.chat-page .message-list-container .message-list-empty p {
  animation: gentlePulse 2s ease-in-out infinite alternate;
}
.chat-page .message-list-container .message-loading-more {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: var(--spacing-md) 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-page .message-list-container .message-loading-more.visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-page .message-list-container .message-loading-more .loading-indicator {
  display: flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 9999px;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.chat-page .message-list-container .message-loading-more .loading-indicator small {
  font-family: "Raleway", sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  letter-spacing: 0.02em;
}
.chat-page .message-list-container .message-virtualize-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 1;
  padding: var(--spacing-md) 0 0 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 27, 146, 0.5) transparent;
}
.chat-page .message-list-container .message-virtualize-wrapper::-webkit-scrollbar {
  width: 7px;
  background: transparent;
}
.chat-page .message-list-container .message-virtualize-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.chat-page .message-list-container .message-virtualize-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110, 27, 146, 0.7) 0%, rgba(212, 175, 55, 0.7) 100%);
  border-radius: 4px;
  min-height: 40px;
  transition: background 0.2s;
}
.chat-page .message-list-container .message-virtualize-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(110, 27, 146, 0.95) 0%, rgba(212, 175, 55, 0.95) 100%);
}
@media (max-width: 600px) {
  .chat-page .message-list-container .message-list-container,
  .chat-page .message-list-container .message-virtualize-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .chat-page .message-list-container .message-list-container::-webkit-scrollbar,
  .chat-page .message-list-container .message-virtualize-wrapper::-webkit-scrollbar {
    display: none;
  }
}
.chat-page .message-list-container .loading-indicator-top {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  position: sticky;
  top: 5px;
  margin: 0 auto;
  width: fit-content;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  z-index: 5;
}
.chat-page .message-list-container .message-item-container {
  padding-bottom: var(--spacing-xs);
  display: flex;
  width: 100%;
}
.chat-page .message-list-container .message-item-container.interactive-message-container {
  padding-left: 0;
  padding-right: 0;
}
.chat-page .message-list-container .message .interactive-elements {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.chat-page .message-list-container .message .interactive-elements .form-input-element,
.chat-page .message-list-container .message .interactive-elements .date-picker-element,
.chat-page .message-list-container .message .interactive-elements .location-picker-element {
  background: rgba(15, 11, 29, 0.85);
  border: 1px solid rgba(var(--color-gold-rgb), 0.25);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  position: relative;
}
.chat-page .message-list-container .message .interactive-elements .form-input-element::after,
.chat-page .message-list-container .message .interactive-elements .date-picker-element::after,
.chat-page .message-list-container .message .interactive-elements .location-picker-element::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(var(--color-gold-rgb), 0.1);
  pointer-events: none;
}
.chat-page .message-list-container .message .interactive-elements .onboarding-element-title {
  font-family: "Cinzel", serif;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin-bottom: var(--spacing-xs);
}
.chat-page .message-list-container .message .interactive-elements .onboarding-element-description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}
.chat-page .message-list-container .message .interactive-elements .onboarding-cta-button {
  width: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  background: linear-gradient(135deg, #d4af37 0%, #f2d265 50%, #d4af37 100%);
  color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-page .message-list-container .message .interactive-elements .onboarding-cta-button i {
  font-size: 1.6rem;
  color: rgba(0, 0, 0, 0.7);
}
.chat-page .message-list-container .message .interactive-elements .onboarding-cta-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}
.chat-page .message-list-container .message .interactive-elements .onboarding-cta-button:disabled, .chat-page .message-list-container .message .interactive-elements .onboarding-cta-button[disabled] {
  opacity: 0.7;
  background: linear-gradient(135deg, #555 0%, #777 50%, #555 100%);
  cursor: not-allowed;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}
.chat-page .message-list-container .message .interactive-elements .onboarding-input-field .mud-input-root {
  background: rgba(12, 7, 29, 0.95);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  color: rgba(255, 255, 255, 0.95);
  min-height: 54px;
  text-align: center;
}
.chat-page .message-list-container .message .interactive-elements .onboarding-input-field .mud-input-root .mud-input-slot input,
.chat-page .message-list-container .message .interactive-elements .onboarding-input-field .mud-input-root .mud-input-slot textarea {
  color: inherit;
  text-align: center;
  letter-spacing: 0.04em;
}
.chat-page .message-list-container .message .interactive-elements .onboarding-input-field .mud-input-root .mud-input-slot input::placeholder,
.chat-page .message-list-container .message .interactive-elements .onboarding-input-field .mud-input-root .mud-input-slot textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
.chat-page .message-list-container .message .interactive-elements .onboarding-input-field .mud-input-root.mud-disabled, .chat-page .message-list-container .message .interactive-elements .onboarding-input-field .mud-input-root.mud-input-disabled {
  border-color: rgba(var(--color-gold-rgb), 0.35);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.6);
}
.chat-page .message-list-container .message .interactive-elements .form-input-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
.chat-page .message-list-container .message .interactive-elements .form-input-options .onboarding-option {
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(var(--color-gold-rgb), 0.4);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chat-page .message-list-container .message .interactive-elements .form-input-options .onboarding-option.mud-button-filled {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.15), rgba(var(--color-gold-rgb), 0.05));
}
.chat-page .message-list-container .message .interactive-elements .form-input-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
}
.chat-page .message-list-container .message .interactive-elements .form-input-actions .onboarding-submit {
  flex: 1;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(var(--color-gold-rgb), 0.6);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 18px rgba(var(--color-gold-rgb), 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.chat-page .message-list-container .message .interactive-elements .form-input-actions .onboarding-submit:hover:not(:disabled) {
  border-color: rgba(var(--color-gold-rgb), 0.9);
  box-shadow: 0 10px 30px rgba(var(--color-gold-rgb), 0.25);
}
.chat-page .message-list-container .message .interactive-elements .form-input-actions .onboarding-submit:disabled {
  border-color: rgba(var(--color-gold-rgb), 0.2);
  color: rgba(255, 255, 255, 0.45);
}
.chat-page .message-list-container .message .interactive-elements .form-input-actions .onboarding-skip {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .date-wheel-picker {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-columns {
  display: flex;
  gap: var(--spacing-sm);
  width: 100%;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-columns.time {
  margin-top: var(--spacing-md);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-column.period-column {
  flex: 0 0 96px;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list {
  position: relative;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  background: rgba(7, 4, 19, 0.85);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45);
  height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-xs) 0;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::before,
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 2;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::before {
  top: 0;
  background: linear-gradient(180deg, rgba(6, 4, 12, 0.95), transparent);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(6, 4, 12, 0.95), transparent);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-option {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  padding: 0.35rem;
  width: 100%;
  text-align: center;
  cursor: pointer;
  opacity: 0.4;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-option.selected {
  color: var(--color-gold);
  font-weight: 600;
  opacity: 1;
  transform: scale(1.05);
  text-shadow: 0 0 12px rgba(var(--color-gold-rgb), 0.35);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-option:disabled {
  cursor: not-allowed;
  opacity: 0.2;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-columns.time.is-unknown {
  opacity: 0.65;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-columns.time.is-unknown .wheel-option {
  cursor: default;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-columns.time.is-unknown .wheel-list {
  border-color: rgba(var(--color-gold-rgb), 0.1);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .time-unknown-row {
  margin-top: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .time-unknown-toggle {
  color: var(--color-gold);
  border-color: rgba(var(--color-gold-rgb), 0.45);
  border-radius: var(--border-radius-pill);
  border-width: 1px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.35rem 1.35rem;
  background: transparent;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .time-unknown-toggle.mud-disabled {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(var(--color-gold-rgb), 0.2);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .time-unknown-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  text-align: center;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .date-wheel-picker {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-columns {
  display: flex;
  gap: var(--spacing-sm);
  width: 100%;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-columns.time {
  margin-top: var(--spacing-xs);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-column.period-column {
  flex: 0 0 96px;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list {
  position: relative;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  background: rgba(9, 7, 18, 0.65);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
  height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: var(--spacing-xs) 0;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::before, .chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  pointer-events: none;
  z-index: 2;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::before {
  top: 0;
  background: linear-gradient(180deg, rgba(6, 4, 12, 0.95), transparent);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-list::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(6, 4, 12, 0.95), transparent);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-option {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  padding: 0.35rem;
  text-align: center;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.45;
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-option.selected {
  color: var(--color-gold);
  font-weight: 600;
  opacity: 1;
  transform: scale(1.06);
  text-shadow: 0 0 15px rgba(var(--color-gold-rgb), 0.45);
}
.chat-page .message-list-container .message .interactive-elements .date-picker-element .wheel-option:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}
.chat-page .message-list-container .message .interactive-elements .location-picker-map {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  margin-top: var(--spacing-sm);
  height: 260px;
}
.chat-page .message-list-container .message .interactive-elements .location-input-wrapper {
  position: relative;
}
.chat-page .message-list-container .message .interactive-elements .location-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: rgba(12, 10, 23, 0.95);
  border: 1px solid rgba(var(--color-gold-rgb), 0.25);
  border-radius: var(--border-radius-md);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  z-index: 4;
  padding: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.chat-page .message-list-container .message .interactive-elements .location-suggestions.is-loading {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.65);
}
.chat-page .message-list-container .message .interactive-elements .location-suggestions.is-loading .loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-gold);
  margin-right: 0.5rem;
  animation: gentle-pulse 1.2s ease-in-out infinite;
}
.chat-page .message-list-container .message .interactive-elements .location-suggestions .location-suggestion {
  border: none;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-md);
  text-align: left;
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-page .message-list-container .message .interactive-elements .location-suggestions .location-suggestion .primary {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.chat-page .message-list-container .message .interactive-elements .location-suggestions .location-suggestion .secondary {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.chat-page .message-list-container .message .interactive-elements .location-suggestions .location-suggestion:hover {
  background: rgba(var(--color-gold-rgb), 0.12);
  transform: translateX(2px);
}
.chat-page .message-list-container .message .interactive-elements .location-actions {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-page .message-list-container .message .interactive-elements .location-actions.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-page .message-list-container .message .interactive-elements .onboarding-locked-alert {
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(var(--color-gold-rgb), 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
}
.chat-page .message-list-container .message .interactive-elements .onboarding-profile-hint {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}
.chat-page .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.8);
  gap: var(--spacing-md);
}
.chat-page .loading-container .loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #6a3093;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.chat-page .loading-container .mystical-pulse {
  position: relative;
}
.chat-page .loading-container p {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
}
.chat-page.new-session-transition {
  animation: fadeIn 0.5s ease-in-out;
}
.chat-page .floating-input-container {
  position: absolute;
  bottom: calc(var(--native-keyboard-height, 0px) + var(--hybrid-safe-area-bottom, 0px));
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  padding: var(--spacing-sm);
  padding-bottom: calc(var(--spacing-sm) + var(--hybrid-safe-area-bottom, 0px));
  transition: bottom 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: auto;
}
.chat-page .floating-input-container::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
  pointer-events: none;
  z-index: -2;
}
.chat-page .floating-input-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.chat-page .session-ended-prompt {
  width: 100%;
  z-index: 20;
  pointer-events: auto;
}
.chat-page .session-ended-prompt .prompt-container {
  background: rgba(25, 15, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes gentlePulse {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0 4px 25px rgba(247, 183, 51, 0.15);
  }
}
.agent-offline-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  text-align: center;
  height: 100%;
}
.agent-offline-prompt .offline-icon {
  font-size: clamp(3rem, 8vw, 5rem);
  color: #6c757d;
  margin-bottom: var(--spacing-md);
  opacity: 0.7;
  filter: drop-shadow(0 0 10px rgba(247, 183, 51, 0.3));
}
.agent-offline-prompt h3 {
  font-family: "Cinzel", serif;
  color: white;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  font-size: clamp(1.2rem, 5vw, 1.5rem);
}
.agent-offline-prompt p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
  font-size: clamp(0.9rem, 4vw, 1rem);
}
.agent-offline-prompt .change-agent-btn {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8), rgba(74, 29, 106, 0.8));
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: var(--border-radius-pill);
  padding: var(--spacing-xs) var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.agent-offline-prompt .change-agent-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(247, 183, 51, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.agent-offline-prompt .change-agent-btn:hover, .agent-offline-prompt .change-agent-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 183, 51, 0.2);
  border-color: rgba(247, 183, 51, 0.5);
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.9), rgba(74, 29, 106, 0.9));
}
.agent-offline-prompt .change-agent-btn:hover::before, .agent-offline-prompt .change-agent-btn:focus::before {
  opacity: 1;
}
.agent-offline-prompt .change-agent-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.agent-offline-prompt .change-agent-btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.3), rgba(74, 29, 106, 0.3));
}
.agent-offline-prompt .change-agent-btn--disabled:hover {
  transform: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-color: rgba(247, 183, 51, 0.3);
}
.agent-offline-prompt .change-agent-btn--disabled:hover::before {
  opacity: 0;
}
.agent-offline-prompt .change-agent-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes chat-refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes gentle-pulse {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}
@keyframes fadeInInput {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}
.onboarding {
  --onboarding-safe-area-top: 0px;
  position: fixed;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(var(--vh, 1vh) * 100);
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  top: 0;
  left: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: var(--onboarding-safe-area-top, 0px);
  touch-action: pan-y;
  overscroll-behavior: none;
  z-index: 10;
  background: linear-gradient(145deg, rgb(10, 9, 20) 0%, rgb(20, 18, 40) 40%, rgb(30, 25, 60) 80%, rgb(20, 18, 40) 100%);
}
.onboarding .version-tag {
  position: fixed;
  bottom: 8px;
  right: 8px;
  font-size: 0.5rem;
  font-family: var(--font-mono, monospace);
  color: rgba(var(--color-gold-rgb), 0.5);
  opacity: 0.6;
  z-index: 20;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  padding: 3px 5px;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  transition: opacity 0.3s ease;
}
.onboarding .version-tag:hover {
  opacity: 1;
  color: rgba(var(--color-gold-rgb), 0.8);
}
@media (max-width: 480px) {
  .onboarding .version-tag {
    font-size: 0.65rem;
    bottom: 6px;
    right: 6px;
    padding: 2px 4px;
  }
}
.onboarding::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 15% 15%, rgba(var(--color-gold-rgb), 0.05) 0%, transparent 35%), radial-gradient(circle at 85% 85%, rgba(var(--color-gold-rgb), 0.05) 0%, transparent 35%), radial-gradient(circle at 75% 25%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 30%), radial-gradient(circle at 25% 65%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 30%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -2;
}
.onboarding::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px circle at 25% 15%, rgba(var(--color-gold-rgb), 0.9), transparent), radial-gradient(1.5px circle at 50% 30%, rgba(var(--color-gold-rgb), 0.8), transparent), radial-gradient(2px circle at 75% 60%, rgba(var(--color-gold-rgb), 0.9), transparent), radial-gradient(2.5px circle at 20% 70%, rgba(var(--color-gold-rgb), 0.7), transparent), radial-gradient(1px circle at 85% 25%, rgba(var(--color-gold-rgb), 0.8), transparent), radial-gradient(1.5px circle at 35% 85%, rgba(var(--color-gold-rgb), 0.8), transparent), radial-gradient(2px circle at 65% 45%, rgba(var(--color-gold-rgb), 0.9), transparent), radial-gradient(0.5px circle at 45% 55%, rgba(var(--color-gold-rgb), 0.7), transparent), radial-gradient(1px circle at 15% 40%, rgba(var(--color-gold-rgb), 0.8), transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
.onboarding__container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.onboarding__container .agent-swipe-wrapper {
  position: relative;
  z-index: 2;
}
.onboarding__step {
  display: none;
  opacity: 0;
}
.onboarding__step.active {
  display: flex;
  opacity: 1;
}
.onboarding__header {
  padding: clamp(1rem, 4vh, 2rem) clamp(1rem, 5vw, 2rem) 0.5rem;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboarding__header--compact {
  padding-top: clamp(0.7rem, 2vh, 1.2rem);
  padding-bottom: 0.2rem;
}
.onboarding__header .header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
@media (max-height: 700px) {
  .onboarding__header {
    padding: 0.8rem clamp(1rem, 5vw, 2rem) 0.3rem;
  }
  .onboarding__header--compact {
    padding-top: 0.6rem;
    padding-bottom: 0.1rem;
  }
}
.onboarding__header .header-embellishment {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  opacity: 0.8;
}
.onboarding__header .header-embellishment::before, .onboarding__header .header-embellishment::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  transform: rotate(45deg);
  top: -3px;
}
.onboarding__header .header-embellishment--left {
  left: 0;
  transform: translateX(-30px);
}
.onboarding__header .header-embellishment--left::before {
  left: 0;
}
.onboarding__header .header-embellishment--left::after {
  left: 25px;
  width: 6px;
  height: 6px;
  top: -2px;
}
.onboarding__header .header-embellishment--right {
  right: 0;
  transform: translateX(30px);
}
.onboarding__header .header-embellishment--right::before {
  right: 0;
}
.onboarding__header .header-embellishment--right::after {
  right: 25px;
  width: 6px;
  height: 6px;
  top: -2px;
}
@media (max-width: 768px) {
  .onboarding__header .header-embellishment {
    width: 80px;
  }
  .onboarding__header .header-embellishment--left {
    transform: translateX(-20px);
  }
  .onboarding__header .header-embellishment--right {
    transform: translateX(20px);
  }
}
@media (max-width: 480px) {
  .onboarding__header .header-embellishment {
    width: 60px;
  }
  .onboarding__header .header-embellishment--left {
    transform: translateX(-10px);
  }
  .onboarding__header .header-embellishment--right {
    transform: translateX(10px);
  }
}
@media (max-height: 700px) {
  .onboarding__header .header-embellishment {
    width: 50px;
    height: 1px;
  }
  .onboarding__header .header-embellishment::before, .onboarding__header .header-embellishment::after {
    width: 5px;
    height: 5px;
    top: -2px;
  }
  .onboarding__header .header-embellishment--left {
    transform: translateX(-5px);
  }
  .onboarding__header .header-embellishment--left::after {
    left: 15px;
    width: 4px;
    height: 4px;
  }
  .onboarding__header .header-embellishment--right {
    transform: translateX(5px);
  }
  .onboarding__header .header-embellishment--right::after {
    right: 15px;
    width: 4px;
    height: 4px;
  }
}
.onboarding .title-divider {
  position: relative;
  height: 20px;
  margin: 0.4rem auto;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboarding .title-divider::before, .onboarding .title-divider::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 100px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  top: 50%;
}
.onboarding .title-divider::before {
  left: 0;
}
.onboarding .title-divider::after {
  right: 0;
}
.onboarding .title-divider .divider-ornament {
  position: relative;
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(var(--color-gold-rgb), 0.5);
}
.onboarding .title-divider .divider-ornament::before, .onboarding .title-divider .divider-ornament::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(var(--color-gold-rgb), 0.5);
}
.onboarding .title-divider .divider-ornament::before {
  left: -12px;
}
.onboarding .title-divider .divider-ornament::after {
  right: -12px;
}
@media (max-width: 480px) {
  .onboarding .title-divider {
    max-width: 220px;
    height: 15px;
    margin: 0.3rem auto;
  }
  .onboarding .title-divider::before, .onboarding .title-divider::after {
    width: 70px;
  }
  .onboarding .title-divider .divider-ornament {
    width: 30px;
    height: 1px;
  }
  .onboarding .title-divider .divider-ornament::before, .onboarding .title-divider .divider-ornament::after {
    width: 6px;
    height: 6px;
  }
}
@media (max-height: 700px) {
  .onboarding .title-divider {
    height: 12px;
    margin: 0.2rem auto;
    max-width: 200px;
  }
  .onboarding .title-divider::before, .onboarding .title-divider::after {
    width: 50px;
  }
  .onboarding .title-divider .divider-ornament {
    width: 25px;
    height: 1px;
  }
  .onboarding .title-divider .divider-ornament::before, .onboarding .title-divider .divider-ornament::after {
    width: 5px;
    height: 5px;
  }
  .onboarding .title-divider .divider-ornament::before::before, .onboarding .title-divider .divider-ornament::after::before {
    left: -8px;
  }
  .onboarding .title-divider .divider-ornament::before::after, .onboarding .title-divider .divider-ornament::after::after {
    right: -8px;
  }
}
.onboarding__title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: clamp(0.2rem, 1vh, 0.4rem);
  color: var(--color-gold-light);
  text-align: center;
  letter-spacing: 1.5px;
  background: linear-gradient(to right, var(--color-gold-dark) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  text-shadow: 0 0 10px rgba(var(--color-gold-rgb), 0.3);
  position: relative;
}
@media (max-height: 700px) {
  .onboarding__title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
  }
}
.onboarding__subtitle {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: rgba(var(--color-light-rgb), 0.85);
  text-align: center;
  max-width: 90%;
  margin: 0.4rem auto 0;
  line-height: 1.4;
  letter-spacing: 0.3px;
  font-weight: 300;
}
@media (max-height: 700px) {
  .onboarding__subtitle {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin: 0.2rem auto 0;
    line-height: 1.3;
    max-width: 95%;
  }
}
.onboarding__logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .onboarding__logo {
    max-width: 220px;
  }
}
.onboarding__progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}
.onboarding__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 5vw, 2rem);
  position: relative;
  overflow-y: auto;
  flex: 1;
  width: 100%;
  min-height: 0;
}
.onboarding__content.agent-swipe-content {
  padding: 0 clamp(1rem, 5vw, 2rem);
  overflow: visible;
  touch-action: none;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 200;
  isolation: isolate;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.onboarding__content.agent-swipe-content .agent-swipe-wrapper {
  width: 100%;
  max-width: min(84vw, 480px);
  margin: clamp(0.75rem, 3vh, 1.5rem) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow: visible;
}
@media (max-width: 360px) {
  .onboarding__content.agent-swipe-content {
    align-items: center;
    justify-content: flex-start;
  }
}
.onboarding__content.features-content {
  overflow-y: auto;
  padding: 1rem clamp(0.5rem, 5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.onboarding__bottom-container {
  padding: clamp(0.9rem, 2.6vh, 1.6rem) clamp(1rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  position: relative;
  z-index: 1;
  background-color: transparent;
  flex-shrink: 0;
}
.onboarding__bottom-container--compact {
  padding-top: clamp(0.9rem, 2.6vh, 1.6rem);
  padding-bottom: clamp(0.9rem, 2.6vh, 1.6rem);
}
@media (max-width: 480px), (orientation: portrait) and (max-height: 700px) {
  .onboarding__bottom-container {
    padding-top: 18px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .onboarding__bottom-container .mystical-button {
    min-height: 40px;
    font-size: 0.9rem;
    margin-top: 0;
    z-index: 30;
  }
}
.onboarding__error {
  margin-top: clamp(0.5rem, 2vh, 0.85rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(var(--color-warning-rgb), 0.95);
  font-size: clamp(0.85rem, 3vw, 1rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  font-weight: 500;
}
.onboarding__error-icon {
  font-size: 1.4rem;
  color: rgba(var(--color-warning-rgb), 0.95);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.onboarding__steps {
  width: 100%;
  height: 100%;
  position: relative;
}
.onboarding__step {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.onboarding__step.active {
  display: flex;
  animation: fadeIn 0.5s ease-out forwards;
}
.onboarding__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(var(--color-gold-rgb), 0.1) 0%, rgba(var(--color-primary-rgb), 0) 60%);
  pointer-events: none;
  z-index: -1;
  animation: pulsateGlow 10s infinite alternate ease-in-out;
}
.onboarding__lux-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(45deg, rgba(var(--color-gold-rgb), 0.03) 0px, rgba(var(--color-gold-rgb), 0.03) 2px, transparent 2px, transparent 12px), repeating-linear-gradient(-45deg, rgba(var(--color-gold-rgb), 0.03) 0px, rgba(var(--color-gold-rgb), 0.03) 2px, transparent 2px, transparent 12px), repeating-radial-gradient(circle at 40% 30%, rgba(var(--color-gold-rgb), 0.05) 0px, rgba(var(--color-gold-rgb), 0.05) 1px, transparent 1px, transparent 8px), repeating-radial-gradient(circle at 60% 70%, rgba(var(--color-gold-rgb), 0.05) 0px, rgba(var(--color-gold-rgb), 0.05) 1px, transparent 1px, transparent 8px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
  background-blend-mode: overlay;
}
.onboarding__mystical-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.onboarding__mystical-orbs::before, .onboarding__mystical-orbs::after {
  content: "";
  position: absolute;
  width: clamp(120px, 25vw, 350px);
  height: clamp(120px, 25vw, 350px);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  will-change: transform;
  transform: translate(0, 0);
}
.onboarding__mystical-orbs::before {
  top: 20%;
  left: 20%;
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.7), rgba(var(--color-primary-rgb), 0.3));
  animation: floatOrbSimple 20s infinite alternate ease-in-out;
}
.onboarding__mystical-orbs::after {
  bottom: 20%;
  right: 20%;
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.7), rgba(var(--color-primary-dark-rgb), 0.3));
  animation: floatOrb 25s 2s infinite alternate-reverse ease-in-out;
}
.onboarding__mystical-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(var(--color-gold-rgb), 0.03) 25%, transparent 25%), linear-gradient(-45deg, rgba(var(--color-gold-rgb), 0.03) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(var(--color-gold-rgb), 0.03) 75%), linear-gradient(-45deg, transparent 75%, rgba(var(--color-gold-rgb), 0.03) 75%);
  background-size: 80px 80px;
  background-position: 0 0, 0 40px, 40px -40px, -40px 0px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
.onboarding__image-container {
  position: relative;
  width: clamp(240px, 70vw, 400px);
  height: clamp(240px, 70vw, 400px);
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  flex: 1;
}
.onboarding__image-container .onboarding__breathing-loop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}
.onboarding__image-container .onboarding__breathing-loop::before, .onboarding__image-container .onboarding__breathing-loop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}
.onboarding__image-container .onboarding__breathing-loop::before {
  width: clamp(260px, 55vw, 360px);
  height: clamp(260px, 55vw, 360px);
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.35), rgba(var(--color-gold-rgb), 0) 60%);
  animation: onboardingBreathHalo 6s ease-in-out infinite;
}
.onboarding__image-container .onboarding__breathing-loop::after {
  width: clamp(220px, 45vw, 320px);
  height: clamp(220px, 45vw, 320px);
  border: 2px solid rgba(var(--color-gold-rgb), 0.45);
  box-shadow: 0 0 20px rgba(var(--color-gold-rgb), 0.35);
  animation: onboardingBreathRing 5.5s ease-in-out infinite;
}
.onboarding__image-container .onboarding__image {
  width: 85%;
  height: 85%;
  max-height: 100%;
  object-fit: contain;
  z-index: 2;
  animation: floatingLogo 6s infinite ease-in-out alternate, onboardingLogoPulse 10s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(var(--color-gold-rgb), 0.3));
}
.onboarding__image-container .image-aura {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.2) 0%, rgba(var(--color-primary-rgb), 0.1) 40%, transparent 70%);
  filter: blur(15px);
  z-index: -1;
  animation: pulseAura 8s infinite alternate ease-in-out;
}
.onboarding .progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(var(--color-light-rgb), 0.25);
  cursor: pointer;
  transition: all 0.3s var(--transition-elegant);
  position: relative;
  margin: 0 4px;
}
.onboarding .progress-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(var(--color-gold-rgb), 0);
  transition: all 0.3s var(--transition-elegant);
}
.onboarding .progress-dot.is-active {
  background-color: var(--color-gold);
  transform: scale(1);
  box-shadow: 0 0 10px rgba(var(--color-gold-rgb), 0.5);
}
.onboarding .progress-dot.is-active::after {
  inset: -4px;
  border-color: rgba(var(--color-gold-rgb), 0.3);
  animation: pulseRing 2s infinite;
}
.onboarding__progress {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
}
.onboarding .journey-features {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  gap: 0.8rem;
  flex: 1;
  justify-content: center;
}
@media (min-width: 768px) {
  .onboarding .journey-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}
@media (min-width: 1200px) {
  .onboarding .journey-features {
    max-width: 800px;
    gap: 1.5rem;
  }
}
@media (max-width: 767px) and (min-width: 500px) {
  .onboarding .journey-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}
.features-content .onboarding .journey-features {
  height: 100%;
  min-height: 300px;
}
.onboarding .journey-features .feature-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: rgba(var(--color-dark-rgb), 0.78);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--color-gold-rgb), 0.15);
  transition: all 0.3s var(--transition-elegant);
  overflow: hidden;
  min-height: 75px;
  flex: 1;
}
@media (min-width: 768px) {
  .onboarding .journey-features .feature-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    min-height: 160px;
    justify-content: center;
  }
}
@media (min-width: 1200px) {
  .onboarding .journey-features .feature-card {
    padding: 2rem 1.5rem;
    min-height: 200px;
  }
}
.onboarding .journey-features .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom right, rgba(var(--color-gold-rgb), 0.08), transparent 50%, rgba(var(--color-gold-rgb), 0.05));
  z-index: -1;
}
.onboarding .journey-features .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--color-gold-rgb), 0.3);
  border-color: rgba(var(--color-gold-rgb), 0.4);
}
.onboarding .journey-features .feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: radial-gradient(circle, var(--color-gold) 0%, var(--color-gold-dark) 100%);
}
.onboarding .journey-features .feature-card .feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--color-gold) 0%, var(--color-gold-dark) 80%);
  margin-right: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(var(--color-gold-rgb), 0.3);
}
@media (min-width: 768px) {
  .onboarding .journey-features .feature-card .feature-icon {
    margin: 0 auto 0.8rem;
    width: 60px;
    height: 60px;
  }
}
@media (min-width: 1200px) {
  .onboarding .journey-features .feature-card .feature-icon {
    margin: 0 auto 1rem;
    width: 70px;
    height: 70px;
  }
}
.onboarding .journey-features .feature-card .feature-icon i {
  font-size: 1.8rem;
  color: rgba(var(--color-dark-rgb), 0.9);
}
@media (min-width: 1200px) {
  .onboarding .journey-features .feature-card .feature-icon i {
    font-size: 2.2rem;
  }
}
.onboarding .journey-features .feature-card .feature-content {
  flex: 1;
  min-width: 0;
}
.onboarding .journey-features .feature-card .feature-title {
  font-size: 1rem;
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(var(--color-gold-rgb), 0.3), 0 0 15px rgba(var(--color-gold-rgb), 0.15);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
}
@media (min-width: 768px) {
  .onboarding .journey-features .feature-card .feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
}
@media (min-width: 1200px) {
  .onboarding .journey-features .feature-card .feature-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }
}
.onboarding .journey-features .feature-card .feature-description {
  font-size: 0.85rem;
  color: rgba(var(--color-light-rgb), 0.85);
  line-height: 1.3;
  margin: 0;
  white-space: normal;
  overflow: visible;
}
@media (min-width: 768px) {
  .onboarding .journey-features .feature-card .feature-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}
@media (min-width: 1200px) {
  .onboarding .journey-features .feature-card .feature-description {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}
@media (min-width: 1200px) {
  .onboarding .onboarding__content.features-content {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 499px) {
  .onboarding .onboarding__content.features-content {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .onboarding .journey-features {
    gap: 0.75rem;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .onboarding .journey-features .feature-card {
    flex: 1;
    min-height: 0;
    padding: 1rem 1rem;
  }
  .onboarding .journey-features .feature-card .feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin-right: 0.75rem;
  }
  .onboarding .journey-features .feature-card .feature-icon i {
    font-size: 1.5rem;
  }
  .onboarding .journey-features .feature-card .feature-title {
    font-size: 0.95rem;
    white-space: normal;
  }
  .onboarding .journey-features .feature-card .feature-description {
    font-size: 0.8rem;
    white-space: normal;
    display: block;
  }
}
@media (max-width: 359px) {
  .onboarding .journey-features {
    gap: 0.6rem;
  }
  .onboarding .journey-features .feature-card {
    padding: 0.75rem;
  }
  .onboarding .journey-features .feature-card .feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 0.6rem;
  }
  .onboarding .journey-features .feature-card .feature-icon i {
    font-size: 1.4rem;
  }
  .onboarding .journey-features .feature-card .feature-title {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  .onboarding .journey-features .feature-card .feature-description {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}
@media (max-height: 480px) {
  .onboarding .journey-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    max-width: 100%;
  }
  .onboarding .journey-features .feature-card {
    flex-direction: row;
    align-items: center;
    padding: 0.7rem;
    min-height: 0;
  }
  .onboarding .journey-features .feature-card .feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    margin-right: 0.7rem;
    margin-bottom: 0;
  }
  .onboarding .journey-features .feature-card .feature-icon i {
    font-size: 1.5rem;
  }
  .onboarding .journey-features .feature-card .feature-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }
  .onboarding .journey-features .feature-card .feature-description {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .onboarding .onboarding__content.features-content {
    padding: 0.5rem 0.8rem;
  }
  .onboarding .onboarding__header {
    padding-top: 0.5rem;
    padding-bottom: 0.1rem;
  }
  .onboarding .onboarding__bottom-container {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}
@media (max-height: 380px) {
  .onboarding .journey-features .feature-card {
    padding: 0.5rem 0.7rem;
  }
  .onboarding .journey-features .feature-card .feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin-right: 0.5rem;
  }
  .onboarding .journey-features .feature-card .feature-icon i {
    font-size: 1.2rem;
  }
  .onboarding .journey-features .feature-card .feature-title {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
  }
  .onboarding .journey-features .feature-card .feature-description {
    font-size: 0.75rem;
    line-height: 1.1;
    max-height: 2.2em;
    overflow: hidden;
  }
}
.onboarding .mystical-button {
  position: relative;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 600;
  padding: 14px min(32px, 8vw);
  min-width: min(240px, 80vw);
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.9) 0%, rgba(var(--color-gold-dark-rgb), 1) 100%);
  color: rgba(var(--color-dark-rgb), 0.9);
  border: none;
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--color-light-rgb), 0.15) inset, 0 1px 1px rgba(var(--color-light-rgb), 0.2) inset;
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out-quad);
  overflow: hidden;
  outline: none;
  text-decoration: none;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}
.onboarding .mystical-button::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(var(--color-light-rgb), 0.15), transparent);
  border-radius: var(--border-radius-pill) var(--border-radius-pill) 0 0;
  z-index: -1;
  top: 0;
}
.onboarding .mystical-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-pill);
  background: linear-gradient(135deg, var(--color-gold-light) 0%, transparent 80%);
  opacity: 0.6;
  z-index: -2;
  transition: opacity 0.3s ease;
}
.onboarding .mystical-button:hover, .onboarding .mystical-button:active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(var(--color-light-rgb), 0.2) inset, 0 1px 1px rgba(var(--color-light-rgb), 0.3) inset, 0 0 20px rgba(var(--color-gold-rgb), 0.2);
}
.onboarding .mystical-button:hover::after, .onboarding .mystical-button:active::after {
  opacity: 0.8;
}
.onboarding .mystical-button:hover .icon, .onboarding .mystical-button:active .icon {
  transform: translateX(3px);
}
.onboarding .mystical-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--color-light-rgb), 0.1) inset;
}
.onboarding .mystical-button.disabled, .onboarding .mystical-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.5) 0%, rgba(var(--color-gold-dark-rgb), 0.6) 100%);
}
.onboarding .mystical-button.disabled:hover, .onboarding .mystical-button:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--color-light-rgb), 0.1) inset, 0 1px 1px rgba(var(--color-light-rgb), 0.1) inset;
}
.onboarding .mystical-button.disabled:hover::after, .onboarding .mystical-button:disabled:hover::after {
  opacity: 0.5;
}
.onboarding .mystical-button.disabled:hover .icon, .onboarding .mystical-button:disabled:hover .icon {
  transform: none;
}
.onboarding .mystical-button .icon {
  transition: transform 0.3s ease;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
}
@media (max-width: 360px) {
  .onboarding .mystical-button {
    min-height: 44px;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }
  .onboarding .mystical-button .icon i {
    font-size: 18px;
  }
  .onboarding__step[data-step="3"] .onboarding .mystical-button {
    position: relative;
    z-index: 20;
  }
}
.onboarding .portal-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background-color: rgba(var(--color-primary-dark-rgb), 0);
  transition: opacity var(--portal-fade-out-duration, 0.5s) ease, background-color var(--portal-fade-out-duration, 0.5s) ease;
}
.onboarding .portal-transition-overlay.active {
  pointer-events: auto;
  opacity: 1;
  animation: portalBackgroundFadeIn 1s ease-in forwards;
}
.onboarding .portal-transition-overlay.fading-out {
  opacity: 0;
  background-color: rgba(var(--color-primary-dark-rgb), 0);
}
.onboarding .portal-transition-overlay .portal-center {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  z-index: 10;
  animation: portalCenterAnimate 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.onboarding .portal-transition-overlay .portal-center__inner-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--color-light-rgb), 0.9) 0%, rgba(var(--color-gold-rgb), 0.7) 40%, rgba(var(--color-gold-rgb), 0.2) 70%, transparent 90%);
  filter: blur(8px);
  z-index: 1;
  animation: portalCenterGlowAnimate 2.5s ease-in-out forwards;
}
.onboarding .portal-transition-overlay .portal-center__rays {
  position: absolute;
  inset: -150%;
  background-image: repeating-conic-gradient(rgba(var(--color-gold-rgb), 0.4) 0deg 2deg, transparent 2deg 10deg);
  mask-image: radial-gradient(circle, black 10%, transparent 70%);
  opacity: 0;
  animation: portalCenterRaysAnimate 2.8s ease-out forwards;
  z-index: -1;
}
.onboarding .portal-transition-overlay .portal-center__particles {
  position: absolute;
  inset: -300%;
  opacity: 0;
  background: radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.1) 90%), repeating-conic-gradient(rgba(var(--color-gold-rgb), 0.02) 0deg 1deg, rgba(var(--color-gold-rgb), 0.05) 1deg 2deg, transparent 2deg 9deg);
  border-radius: 50%;
  animation: portalOrbitalParticles 2.8s ease-out forwards;
  filter: blur(1px);
  transform: rotate(0deg);
  z-index: -2;
}
.onboarding .portal-transition-overlay .portal-center__lens-flare {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle at center, rgba(var(--color-light-rgb), 0.9) 0%, transparent 25%), radial-gradient(circle at center, rgba(var(--color-gold-rgb), 0.7) 10%, transparent 40%);
  background-blend-mode: screen;
  filter: blur(2px);
  opacity: 0;
  z-index: 2;
  border-radius: 50%;
  animation: portalLensFlare 1.8s ease-out forwards;
  mix-blend-mode: screen;
}
.onboarding .portal-transition-overlay .mystical-symbol {
  position: absolute;
  color: rgba(var(--color-light-rgb), 0.85);
  font-size: clamp(1rem, 4vw, 2rem);
  text-shadow: 0 0 10px rgba(var(--color-light-rgb), 0.5);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform-origin: center center;
  animation: floatSymbolOut var(--duration, 2s) cubic-bezier(0.1, 0.7, 0.3, 1) var(--delay, 0s) forwards;
}
.onboarding .portal-transition-overlay .mystical-symbol.gold {
  color: rgba(var(--color-gold-rgb), 0.9);
  text-shadow: 0 0 12px rgba(var(--color-gold-rgb), 0.7), 0 0 20px rgba(var(--color-gold-rgb), 0.4);
}
.onboarding .portal-transition-overlay .mystical-symbol.large {
  font-size: clamp(1.8rem, 7vw, 3.5rem);
}
.onboarding .portal-transition-overlay .mystical-symbol.glow {
  animation-name: floatGlowingSymbolOut;
}
.onboarding .portal-transition-overlay .mystical-symbol.glow::before {
  content: "";
  position: absolute;
  inset: -5px;
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.6) 0%, transparent 80%);
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(5px);
  z-index: -1;
}
.onboarding .portal-transition-overlay .mystical-symbol.trail::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  opacity: 0.4;
  filter: blur(3px);
  animation: trailFade 0.8s ease-out forwards;
}
.onboarding .portal-transition-overlay .premium-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  z-index: 4;
  box-shadow: 0 0 6px 1px rgba(var(--color-gold-rgb), 0.9), 0 0 10px 2px rgba(var(--color-light-rgb), 0.5);
  animation: particleMove var(--particle-duration, 2s) cubic-bezier(0.1, 0.7, 0.3, 1) var(--particle-delay, 0s) forwards;
}
@keyframes portalBackgroundFadeIn {
  from {
    opacity: 0;
    background-color: rgba(var(--color-primary-dark-rgb), 0);
  }
  to {
    opacity: 1;
    background-color: rgba(var(--color-primary-dark-rgb), 0.35);
  }
}
@keyframes portalCenterAnimate {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  20% {
    opacity: 1;
    transform: scale(1.2);
  }
  60% {
    opacity: 1;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(30);
  }
}
@keyframes portalCenterGlowAnimate {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 0.8;
    transform: scale(1);
  }
  60% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(5);
  }
}
@keyframes portalCenterRaysAnimate {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(0deg);
  }
  25% {
    opacity: 0.6;
    transform: scale(0.5) rotate(45deg);
  }
  80% {
    opacity: 0.2;
    transform: scale(1.5) rotate(120deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.8) rotate(180deg);
  }
}
@keyframes portalOrbitalParticles {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }
  20% {
    opacity: 0.8;
    transform: rotate(60deg);
  }
  80% {
    opacity: 0.4;
    transform: rotate(300deg);
  }
  100% {
    opacity: 0;
    transform: rotate(360deg);
  }
}
@keyframes portalLensFlare {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    filter: blur(5px);
  }
  20% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(2px);
  }
  80% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.9);
    filter: blur(3px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
    filter: blur(8px);
  }
}
@keyframes floatSymbolOut {
  0% {
    opacity: var(--start-opacity, 0);
    transform: translate(0, 0) scale(0.1) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--end-x) * 0.1 + var(--curve-x) * 0.3), calc(var(--end-y) * 0.1 + var(--curve-y) * 0.3)) scale(1.2) rotate(calc(var(--rotation) * 0.1));
  }
  90% {
    opacity: 0.8;
    transform: translate(calc(var(--end-x) * 0.9 + var(--curve-x) * 0.1), calc(var(--end-y) * 0.9 + var(--curve-y) * 0.1)) scale(calc(var(--end-scale) * 1.1)) rotate(calc(var(--rotation) * 0.9));
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(var(--end-scale)) rotate(var(--rotation));
  }
}
@keyframes floatGlowingSymbolOut {
  0% {
    opacity: var(--start-opacity, 0);
    transform: translate(0, 0) scale(0.1) rotate(0deg);
    filter: brightness(1);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--end-x) * 0.1 + var(--curve-x) * 0.4), calc(var(--end-y) * 0.1 + var(--curve-y) * 0.4)) scale(1.2) rotate(calc(var(--rotation) * 0.1));
    filter: brightness(1.4);
  }
  50% {
    filter: brightness(1.8);
  }
  90% {
    opacity: 0.8;
    transform: translate(calc(var(--end-x) * 0.9 + var(--curve-x) * 0.1), calc(var(--end-y) * 0.9 + var(--curve-y) * 0.1)) scale(calc(var(--end-scale) * 1.1)) rotate(calc(var(--rotation) * 0.9));
    filter: brightness(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(var(--end-scale)) rotate(var(--rotation));
    filter: brightness(1);
  }
}
@keyframes trailFade {
  0% {
    opacity: 0.5;
    transform: translate(-2px, -2px);
  }
  100% {
    opacity: 0;
    transform: translate(-6px, -6px);
  }
}
@keyframes particleMove {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--end-x) * 0.15), calc(var(--end-y) * 0.15)) scale(1.2);
  }
  90% {
    opacity: 0.7;
    transform: translate(calc(var(--end-x) * 0.9), calc(var(--end-y) * 0.9)) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(0.5);
  }
}
.onboarding .chat-page.portal-entry {
  animation: portalEntryFadeIn 0.8s ease-out forwards;
}
@keyframes portalEntryFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
.onboarding .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(300px, 50vh);
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  pointer-events: auto;
}
.onboarding .loading-container .loading-spinner {
  width: min(70px, 20vw);
  height: min(70px, 20vw);
  border: 3px solid rgba(var(--color-light-rgb), 0.1);
  border-radius: 50%;
  border-top-color: var(--color-gold);
  animation: spin 1s infinite linear, pulseShadow 2s infinite alternate;
  box-shadow: 0 0 30px rgba(var(--color-gold-rgb), 0.3);
  margin-bottom: max(3vh, 24px);
}
.onboarding .loading-container p {
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  color: rgba(var(--color-light-rgb), 0.9);
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.onboarding .error-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(4vh, 32px) 16px;
  background: rgba(var(--color-dark-rgb), 0.78);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--color-light-rgb), 0.1);
  box-shadow: var(--shadow-lg);
  max-width: min(450px, 90vw);
  width: 100%;
  z-index: 10;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.onboarding .error-container .error-icon {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  color: var(--color-gold);
  margin-bottom: max(2vh, 16px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
.onboarding .error-container p {
  text-align: center;
  color: rgba(var(--color-light-rgb), 0.9);
  margin-bottom: max(3vh, 24px);
  font-size: clamp(0.9rem, 3vw, 1rem);
  line-height: 1.5;
}
.onboarding .error-container .retry-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.8) 0%, rgba(var(--color-gold-dark-rgb), 0.9) 100%);
  color: rgba(var(--color-dark-rgb), 0.95);
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 12px 24px;
  font-size: clamp(0.9rem, 3vw, 1rem);
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 11;
}
.onboarding .error-container .retry-button i {
  font-size: clamp(1rem, 4vw, 1.2rem);
}
.onboarding .error-container .retry-button:hover, .onboarding .error-container .retry-button:active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(var(--color-gold-rgb), 0.4);
}
.onboarding .error-container .retry-button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.onboarding__content {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--color-gold-rgb), 0.3) rgba(var(--color-dark-rgb), 0.2);
  overflow: hidden;
}
.onboarding__content::-webkit-scrollbar {
  width: 6px;
}
.onboarding__content::-webkit-scrollbar-track {
  background: rgba(var(--color-dark-rgb), 0.2);
  border-radius: 10px;
}
.onboarding__content::-webkit-scrollbar-thumb {
  background: rgba(var(--color-gold-rgb), 0.3);
  border-radius: 10px;
}
.onboarding__content::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-gold-rgb), 0.5);
}
.onboarding__content.agent-swipe-content {
  overflow: visible;
}
.onboarding .agent-swipe-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 280;
}
.onboarding .agent-swipe-wrapper .agent-card-deck__swipe-controls {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  gap: var(--spacing-xxl);
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.onboarding .agent-swipe-wrapper .agent-card-deck__swipe-controls .swipe-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  background: rgba(var(--color-dark-rgb), 0.5);
  color: var(--color-light);
  border: 1px solid rgba(var(--color-light-rgb), 0.2);
}
.onboarding .agent-swipe-wrapper .agent-card-deck__swipe-controls .swipe-button i {
  font-size: 24px;
}
.onboarding .agent-swipe-wrapper .agent-card-deck__swipe-controls .swipe-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  background: rgba(var(--color-dark-rgb), 0.7);
}
.onboarding .agent-swipe-wrapper .agent-card-deck__swipe-controls .swipe-button:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.onboarding .agent-swipe-wrapper .agent-card-deck__swipe-controls .swipe-hint-text {
  display: flex;
  align-items: center;
  color: rgba(var(--color-light-rgb), 0.7);
  font-size: 0.9rem;
  pointer-events: none;
}
.onboarding .agent-swipe-wrapper .agent-card-deck__swipe-controls .swipe-hint-text i {
  margin-right: 5px;
  font-size: 20px;
  animation: swipeHandAnimation 2s ease-in-out infinite;
}
.onboarding .onboarding__step[data-step="3"] {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: radial-gradient(circle at 18% 12%, rgba(var(--color-gold-rgb), 0.08), transparent 36%), radial-gradient(circle at 84% 16%, rgba(var(--color-primary-rgb), 0.1), transparent 40%), linear-gradient(150deg, #0c0518 0%, #1e0d36 50%, #0c0518 100%);
}
.onboarding .onboarding__step[data-step="3"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(12, 6, 22, 0.7), transparent 45%), linear-gradient(180deg, rgba(7, 3, 12, 0.9) 0%, rgba(7, 3, 12, 0.55) 55%, rgba(7, 3, 12, 0.9) 100%);
  opacity: 0.82;
  pointer-events: none;
  z-index: 1;
}
.onboarding .onboarding__step[data-step="3"]::after {
  content: "";
  position: absolute;
  inset: -8% -12%;
  background: linear-gradient(120deg, transparent 24%, rgba(var(--color-gold-rgb), 0.08) 38%, transparent 52%, rgba(var(--color-primary-rgb), 0.1) 64%, transparent 78%);
  mix-blend-mode: screen;
  filter: blur(1px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
  animation: onboardingStep3Shimmer 12s linear infinite;
}
.onboarding .onboarding__step[data-step="3"] .onboarding__header {
  z-index: 6;
}
.onboarding .onboarding__step[data-step="3"] .onboarding__title {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.onboarding .onboarding__step[data-step="3"] .onboarding__title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 120%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(var(--color-gold-rgb), 0.14) 45%, rgba(var(--color-light-rgb), 0.22) 52%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: onboardingTitleSkimmer 10s ease-in-out infinite;
}
.onboarding .onboarding__step[data-step="3"] .onboarding__content.agent-swipe-content {
  position: relative;
  z-index: 12;
  padding-bottom: clamp(2.8rem, 8vh, 3.8rem);
  overflow: visible;
}
.onboarding .onboarding__step[data-step="3"] .agent-swipe-wrapper {
  max-width: min(96vw, 580px);
  margin: 0 auto;
  z-index: 680;
  transform: translateZ(0);
}
.onboarding .onboarding__step[data-step="3"] .onboarding__bottom-container {
  position: relative;
  z-index: 5;
}
.onboarding .onboarding__step[data-step="3"].card-dragging .agent-swipe-wrapper {
  z-index: 1400;
}
.onboarding .onboarding__step[data-step="3"].card-dragging .onboarding__header,
.onboarding .onboarding__step[data-step="3"].card-dragging .onboarding__bottom-container {
  filter: saturate(0.92);
}

html[data-platform=ios] .onboarding,
body[data-platform=ios] .onboarding {
  --onboarding-safe-area-top: constant(safe-area-inset-top);
  --onboarding-safe-area-top: env(safe-area-inset-top, 0px);
}

.hybrid-mobile .onboarding::before, .hybrid-mobile .onboarding::after {
  animation: none;
  will-change: auto;
  filter: none;
}
.hybrid-mobile .onboarding .onboarding__glow,
.hybrid-mobile .onboarding .onboarding__lux-pattern {
  animation: none;
  opacity: 0.4;
}
.hybrid-mobile .onboarding .onboarding__mystical-orbs {
  animation: none;
  opacity: 0.5;
}
.hybrid-mobile .onboarding .onboarding__mystical-orbs::before, .hybrid-mobile .onboarding .onboarding__mystical-orbs::after {
  animation: none;
  filter: blur(12px);
  opacity: 0.3;
}
.hybrid-mobile .onboarding .journey-features::before,
.hybrid-mobile .onboarding .journey-features::after {
  animation: none;
}
.hybrid-mobile .journey-features .feature-card {
  animation: none;
}
.hybrid-mobile .onboarding__step[data-step="3"] .agent-swipe-wrapper {
  z-index: 280;
}
.hybrid-mobile .hybrid-swipe-active .onboarding .onboarding__glow,
.hybrid-mobile .hybrid-swipe-active .onboarding .onboarding__lux-pattern,
.hybrid-mobile .hybrid-swipe-active .onboarding .onboarding__mystical-orbs,
.hybrid-mobile .hybrid-swipe-active .onboarding .onboarding__breathing-loop,
.hybrid-mobile .hybrid-swipe-active .onboarding .image-aura {
  animation-play-state: paused;
}

@keyframes onboardingStep3Shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes onboardingTitleSkimmer {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  6% {
    transform: translateX(40%);
    opacity: 0.8;
  }
  12% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: 0% center;
  }
}
@keyframes floatStars {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes rotateBackground {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes floatingLogo {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@keyframes onboardingBreathHalo {
  0% {
    transform: scale(0.65);
    opacity: 0.25;
  }
  35% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
@keyframes onboardingBreathRing {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  40% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
@keyframes onboardingLogoPulse {
  0% {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 15px 24px rgba(var(--color-gold-rgb), 0.3));
    transform: scale(1.04);
  }
  100% {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transform: scale(1);
  }
}
@keyframes pulseAura {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}
@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 10px rgba(var(--color-light-rgb), 0.3), 0 0 20px rgba(var(--color-gold-rgb), 0.2);
  }
  100% {
    text-shadow: 0 0 15px rgba(var(--color-light-rgb), 0.5), 0 0 30px rgba(var(--color-gold-rgb), 0.4);
  }
}
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes pulsateGlow {
  0% {
    opacity: 0.5;
    transform: scale(0.95) translate(-50%, -50%);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05) translate(-50%, -50%);
  }
}
@keyframes twinkleStars {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.7;
  }
}
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}
@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 15px rgba(var(--color-gold-rgb), 0.3);
  }
  100% {
    box-shadow: 0 0 30px rgba(var(--color-gold-rgb), 0.5);
  }
}
@keyframes floatSymbol {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: scale(var(--scale, 1.1)) rotate(calc(var(--rotate, 0deg) * 0.3));
  }
  80% {
    opacity: 0.9;
    transform: scale(var(--scale, 1)) translate(calc(var(--float-x, 0) * 0.8), calc(var(--float-y, 0) * 0.8)) rotate(calc(var(--rotate, 0deg) * 0.8));
  }
  100% {
    opacity: 0;
    transform: scale(0.5) translate(var(--float-x, 0), var(--float-y, 0)) rotate(var(--rotate, 0deg));
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotateRays {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
  }
}
@keyframes twinklePortalStar {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .onboarding__title {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }
  .onboarding__subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
    max-width: 90%;
  }
  .onboarding__content {
    padding: 0 clamp(0.8rem, 4vw, 1.2rem);
  }
  .onboarding__content.agent-swipe-content {
    padding: 0;
  }
  .onboarding__content.features-content {
    padding: 0.5rem clamp(0.5rem, 4vw, 1rem);
  }
  .onboarding__bottom-container {
    padding: clamp(1rem, 3vh, 1.5rem) clamp(0.8rem, 4vw, 1.5rem);
  }
  .journey-features {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .journey-features .feature-card {
    padding: 1rem;
  }
  .journey-features .feature-card .feature-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 0.8rem;
  }
  .journey-features .feature-card .feature-icon i {
    font-size: 1.4rem;
  }
  .journey-features .feature-card .feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .journey-features .feature-card .feature-description {
    font-size: 0.85rem;
  }
}
@media (max-width: 480px) {
  .onboarding__title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }
  .onboarding__subtitle {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    max-width: 95%;
  }
  .onboarding__content {
    padding: 0 clamp(0.6rem, 3vw, 1rem);
  }
  .onboarding__content.agent-swipe-content {
    padding: 0;
  }
  .onboarding__bottom-container {
    padding: clamp(0.8rem, 2vh, 1.2rem) clamp(0.6rem, 3vw, 1rem);
  }
  .onboarding__image-container {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }
  .journey-features {
    gap: 0.8rem;
  }
  .journey-features .feature-card {
    padding: 1rem 0.8rem;
  }
  .journey-features .feature-card .feature-icon {
    width: 40px;
    height: 40px;
  }
  .journey-features .feature-card .feature-icon i {
    font-size: 1.3rem;
  }
  .journey-features .feature-card .feature-title {
    font-size: 1rem;
  }
  .journey-features .feature-card .feature-description {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
.language-selector {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  transform: translateY(-0.5rem);
}
.language-selector__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(var(--color-dark-rgb), 0.4);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  border-radius: var(--border-radius-pill);
  padding: 0.5rem 1rem;
  min-width: 200px;
  box-shadow: var(--shadow-md), 0 0 15px rgba(var(--color-gold-rgb), 0.2);
  transition: all 0.3s ease;
}
.language-selector__wrapper:hover {
  border-color: rgba(var(--color-gold-rgb), 0.6);
  box-shadow: var(--shadow-md), 0 0 20px rgba(var(--color-gold-rgb), 0.3);
}
.language-selector__wrapper .language-icon {
  margin-right: 0.75rem;
  color: var(--color-gold);
  font-size: 1.2rem;
}
.language-selector__wrapper .dropdown-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold);
  font-size: 1.4rem;
  pointer-events: none;
}
.language-selector__wrapper .dropdown-loading-indicator {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}
.language-selector__wrapper .dropdown-loading-indicator .loading-spinner {
  width: 20px;
  height: 20px;
}
.language-selector .language-dropdown {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(var(--color-light-rgb), 0.9);
  font-size: 0.95rem;
  font-family: var(--font-family);
  width: 100%;
  cursor: pointer;
  outline: none;
  padding-right: 1.5rem;
}
.language-selector .language-dropdown option {
  background-color: rgba(var(--color-dark-rgb), 0.95);
  color: rgba(var(--color-light-rgb), 0.9);
  font-size: 0.95rem;
}
.language-selector .language-dropdown:focus {
  outline: none;
}
.language-selector.language-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.language-selector.language-loading .loading-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.language-selector.language-loading .language-loading-text {
  font-size: 0.9rem;
  color: rgba(var(--color-gold-rgb), 0.9);
  text-align: center;
  animation: pulseGlow 2s infinite alternate;
  margin-bottom: 0.75rem;
}
.language-selector.language-loading .language-loading-progress {
  width: 80%;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.language-selector.language-loading .language-loading-progress .loading-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(var(--color-light-rgb), 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.language-selector.language-loading .language-loading-progress .loading-progress-bar .loading-progress-fill {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  border-radius: 3px;
  transition: width 0.4s ease-out;
  box-shadow: 0 0 8px rgba(var(--color-gold-rgb), 0.4);
}
.language-selector.language-loading .language-loading-progress .loading-progress-text {
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 500;
}
@media (max-width: 480px) {
  .language-selector {
    margin-top: 0.75rem;
  }
  .language-selector__wrapper {
    min-width: 180px;
    padding: 0.4rem 0.8rem;
  }
  .language-selector .language-dropdown {
    font-size: 0.85rem;
  }
}
@media (max-height: 700px) {
  .language-selector {
    margin-top: 0.5rem;
    transform: translateY(-0.25rem);
  }
  .language-selector__wrapper {
    min-width: 160px;
    padding: 0.35rem 0.7rem;
  }
  .language-selector .language-dropdown {
    font-size: 0.8rem;
  }
  .language-selector.language-loading .loading-spinner {
    width: 25px;
    height: 25px;
  }
  .language-selector.language-loading .language-loading-text {
    font-size: 0.8rem;
  }
  .language-selector.language-loading .language-loading-progress .loading-progress-text {
    font-size: 0.7rem;
  }
}

.agent-list-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-dark);
}
.agent-list-page__container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  padding: 0;
}
.agent-list-page .custom-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-diffuse), 0 0 30px rgba(106, 48, 147, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}
.agent-list-page .custom-tabs__header {
  display: flex;
  position: relative;
  background: linear-gradient(to right, rgba(51, 16, 62, 0.8), rgba(76, 29, 92, 0.8), rgba(51, 16, 62, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  height: 60px;
}
.agent-list-page .custom-tabs__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(247, 183, 51, 0.3) 20%, rgba(247, 183, 51, 0.5) 50%, rgba(247, 183, 51, 0.3) 80%, transparent 100%);
}
.agent-list-page .custom-tabs__header .custom-tab-button {
  flex: 1;
  height: 100%;
  min-height: 60px;
  padding: var(--spacing-sm);
  background: transparent;
  border: none;
  color: var(--color-light);
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 500;
  opacity: 0.7;
  transition: color var(--transition-normal), opacity var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  z-index: 2;
}
.agent-list-page .custom-tabs__header .custom-tab-button i {
  font-size: 24px;
  opacity: 0.9;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
  transition: transform var(--transition-fast);
}
.agent-list-page .custom-tabs__header .custom-tab-button span {
  font-size: 16px;
}
.agent-list-page .custom-tabs__header .custom-tab-button:hover {
  opacity: 0.9;
  color: var(--color-gold-lighter);
}
.agent-list-page .custom-tabs__header .custom-tab-button:hover i {
  transform: translateY(-2px);
}
.agent-list-page .custom-tabs__header .custom-tab-button.active {
  color: var(--color-gold-light);
  opacity: 1;
}
.agent-list-page .custom-tabs__header .custom-tab-button.active i {
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  transform: translateY(0);
}
.agent-list-page .custom-tabs__header .tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right, rgba(247, 183, 51, 0.3), rgb(247, 183, 51), rgba(247, 183, 51, 0.3));
  box-shadow: 0 0 8px 1px rgba(247, 183, 51, 0.3);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.agent-list-page .custom-tabs__content {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.agent-list-page .custom-tabs .custom-tab-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  padding: 0 var(--spacing-sm);
  transition: opacity 0.3s ease, visibility 0.3s step-end;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.agent-list-page .custom-tabs .custom-tab-panel.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
  z-index: 1;
  pointer-events: auto;
  animation: panel-fade-in 0.4s ease-out forwards;
}
.agent-list-page .agent-list-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--spacing-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  margin-top: var(--spacing-sm);
  position: relative;
  transition: opacity 0.3s ease-out;
}
.agent-list-page .agent-list-container::-webkit-scrollbar {
  width: 4px;
}
.agent-list-page .agent-list-container::-webkit-scrollbar-track {
  background: transparent;
}
.agent-list-page .agent-list-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.agent-list-page .agent-list-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.agent-list-page .agent-list-container.is-updating {
  opacity: 0.6;
}
.agent-list-page .agent-list-container.is-updating .agent-list-card {
  animation: none;
}
.agent-list-page .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--color-light);
  gap: var(--spacing-md);
  animation: component-fade-in 0.5s ease-out;
  position: relative;
}
.agent-list-page .loading-container .loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1.2s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2), inset 0 0 6px rgba(212, 175, 55, 0.1);
}
.agent-list-page .loading-container p {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  opacity: 0.8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  color: var(--color-gold-light);
  font-size: 0.9rem;
}
.agent-list-page .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--color-light);
  gap: var(--spacing-md);
  text-align: center;
  padding: var(--spacing-lg);
  animation: component-fade-in 0.5s ease-out;
  background: rgba(26, 26, 46, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}
.agent-list-page .empty-state i.material-symbols-rounded.filled {
  font-size: 50px;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  animation: float-subtle 3s ease-in-out infinite alternate;
}
.agent-list-page .empty-state p {
  margin-bottom: var(--spacing-md);
  opacity: 0.8;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
}
.agent-list-page .mystical-button {
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8) 0%, rgba(76, 29, 92, 0.8) 100%);
  color: var(--color-gold-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.4);
  transition: all var(--transition-normal);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.agent-list-page .mystical-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(106, 48, 147, 0.5);
  background: linear-gradient(135deg, rgba(126, 58, 177, 0.9) 0%, rgba(96, 39, 122, 0.9) 100%);
}
.agent-list-page .mystical-button:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(106, 48, 147, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes float-subtle {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}
@keyframes component-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes panel-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .agent-list-page__container {
    padding: 0;
  }
}
.profile-page__container {
  padding: 0;
  height: 100%;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.profile-page__container.scrollable-content {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.profile-page__container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 20%, rgba(106, 48, 147, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(247, 183, 51, 0.05) 0%, transparent 50%), radial-gradient(1px at 30% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 50%), radial-gradient(1px at 70% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  background-size: 100% 100%, 100% 100%, 40px 40px, 30px 30px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}
.profile-page__container .content-wrapper {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeUpIn 0.8s ease-out forwards;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .profile-page__container .content-wrapper {
    padding: 2rem;
  }
}
.profile-page__container .content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
.profile-page__container .content-wrapper [class*=col-] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (min-width: 768px) {
  .profile-page__container .content-wrapper [class*=col-] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
.profile-page__header {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.85) 0%, rgba(20, 15, 35, 0.95) 100%);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 2;
  transition: all 0.3s ease;
  padding: 0.15rem 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .profile-page__header {
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 0;
  }
}
.profile-page__header:hover .profile-page__avatar-frame {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}
.profile-page__header:hover .profile-page__user-details h2 {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.profile-page__header:hover .profile-page__membership,
.profile-page__header:hover .profile-page__balance-display i,
.profile-page__header:hover .profile-page__balance-display span {
  color: rgb(250.0699300699, 229.527972028, 142.4300699301);
}
.profile-page__header:hover .profile-page__add-crystals {
  background: rgb(216.512345679, 183.3950617284, 75.987654321);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.profile-page__header:hover::before {
  background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.8) 0%, rgba(212, 175, 55, 0.3) 30%, rgba(106, 48, 147, 0.4) 70%, rgba(247, 183, 51, 0.5) 100%);
}
.profile-page__header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.7) 0%, rgba(212, 175, 55, 0.2) 30%, rgba(106, 48, 147, 0.3) 70%, rgba(247, 183, 51, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.profile-page__header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  position: relative;
  z-index: 3;
}
@media (max-width: 767px) {
  .profile-page__header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.75rem;
  }
}
.profile-page__header-mystical-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.profile-page__header-mystical-bg .mystical-symbol {
  position: absolute;
  color: rgba(212, 175, 55, 0.15);
  opacity: 0.8;
}
.profile-page__header-mystical-bg .mystical-symbol.sm {
  top: 15%;
  left: 5%;
  font-size: 1.2rem;
  transform: rotate(-15deg);
}
.profile-page__header-mystical-bg .mystical-symbol.md {
  top: 60%;
  right: 10%;
  font-size: 1.4rem;
  transform: rotate(25deg);
}
.profile-page__header-mystical-bg .mystical-symbol.lg {
  bottom: 10%;
  left: 25%;
  font-size: 1.6rem;
  transform: rotate(10deg);
}
.profile-page__header-mystical-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%), radial-gradient(1px at 70% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(1px at 40% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 50%), radial-gradient(1px at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  background-size: 150px 150px;
  opacity: 0.6;
}
.profile-page__header-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 767px) {
  .profile-page__header-identity {
    width: 100%;
    justify-content: center;
  }
}
.profile-page__header .profile-page__avatar-frame {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.profile-page__header .profile-page__avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-page__header .profile-page__avatar-frame::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: conic-gradient(transparent 0%, rgba(212, 175, 55, 0.1) 25%, rgba(212, 175, 55, 0.2) 50%, rgba(212, 175, 55, 0.1) 75%, transparent 100%);
  animation: rotateGlow 8s linear infinite;
  pointer-events: none;
  z-index: -1;
}
.profile-page__header .profile-page__avatar-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.profile-page__header .profile-page__avatar-edit-overlay i {
  color: white;
  font-size: 1.2rem;
}
.profile-page__header .profile-page__user-details h2 {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  color: white;
  margin: 0 0 0.2rem 0;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.profile-page__header .profile-page__user-status {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.profile-page__header .profile-page__user-status span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.profile-page__header .profile-page__membership {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f9e076;
}
.profile-page__header .profile-page__membership i {
  font-size: 0.9rem;
}
.profile-page__header-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
@media (max-width: 767px) {
  .profile-page__header-stats {
    width: 100%;
    align-items: center;
  }
}
.profile-page__header .profile-page__join-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.profile-page__header .profile-page__join-date i {
  font-size: 0.95rem;
}
.profile-page__header .profile-page__crystal-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.profile-page__header .profile-page__balance-display {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 5rem;
  position: relative;
  overflow: hidden;
}
.profile-page__header .profile-page__balance-display::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  z-index: 0;
  animation: profileValueShimmer 3s infinite;
}
.profile-page__header .profile-page__balance-display i {
  color: #d4af37;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.profile-page__header .profile-page__balance-display span {
  font-weight: 600;
  color: #f9e076;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  text-align: right;
  min-width: 2.5rem;
}
@keyframes profileValueShimmer {
  0% {
    left: -130%;
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  75% {
    left: 130%;
    opacity: 0.6;
  }
  100% {
    left: 160%;
    opacity: 0;
  }
}
.profile-page__header .profile-page__add-crystals {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d4af37;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
.profile-page__header .profile-page__add-crystals i {
  color: #4a1d6a;
  font-size: 0.9rem;
}
.profile-page__header .profile-page__add-crystals:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}
.profile-page__header-logout {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}
.profile-page__header-logout i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.profile-page__header-logout:hover {
  background-color: rgba(220, 0, 0, 0.1);
  color: var(--color-error);
  border-color: rgba(220, 0, 0, 0.2);
}
.profile-page__header-logout:hover i {
  color: var(--color-error);
}
.profile-page__header-logout:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 0, 0, 0.2);
}
.profile-page__header .profile-page__corner-logout {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}
.profile-page__header .profile-page__corner-logout i {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}
.profile-page__header .profile-page__corner-logout:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.profile-page__header .profile-page__corner-logout:hover i {
  color: rgba(255, 255, 255, 0.5);
}
.profile-page__header .profile-page__corner-logout:active {
  transform: translateY(0);
}
.profile-page__prophecy {
  background: linear-gradient(135deg, rgba(51, 26, 69, 0.8) 0%, rgba(33, 18, 44, 0.9) 100%);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateZ(0);
  backdrop-filter: blur(5px);
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 767px) {
  .profile-page__prophecy {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.8rem;
  }
}
.profile-page__prophecy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(1px at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 20px 20px, 25px 25px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.profile-page__prophecy::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, transparent 15%), linear-gradient(315deg, rgba(212, 175, 55, 0.3) 0%, transparent 15%);
  z-index: 0;
  mask-image: linear-gradient(#fff, transparent);
  -webkit-mask-image: linear-gradient(#fff, transparent);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  pointer-events: none;
}
.profile-page__prophecy .corner-glow {
  position: absolute;
  width: 30px;
  height: 30px;
}
.profile-page__prophecy .corner-glow--tl {
  top: 0;
  left: 0;
  background: radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
}
.profile-page__prophecy .corner-glow--tr {
  top: 0;
  right: 0;
  background: radial-gradient(circle at 100% 0, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
}
.profile-page__prophecy .corner-glow--bl {
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 0 100%, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
}
.profile-page__prophecy .corner-glow--br {
  bottom: 0;
  right: 0;
  background: radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
}
.profile-page__prophecy-content {
  position: relative;
  z-index: 1;
  font-style: italic;
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
@media (max-width: 767px) {
  .profile-page__prophecy-content {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}
.profile-page__prophecy-content::before, .profile-page__prophecy-content::after {
  content: '"';
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  color: #d4af37;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  position: relative;
  line-height: 0;
}
.profile-page__prophecy-content::before {
  top: 0.5rem;
  margin-right: 0.2rem;
}
.profile-page__prophecy-content::after {
  bottom: 0.2rem;
  margin-left: 0.2rem;
}
.profile-page__prophecy-author {
  text-align: right;
  margin-top: 1.5rem;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  font-family: "Cinzel", serif;
  color: #f9e076;
}
.profile-page__prophecy-author::before {
  content: "— ";
}
.profile-page__prophecy-leap-year {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.7), rgba(106, 48, 147, 0.7));
  color: white;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  z-index: 1;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  animation: glow 3s infinite alternate;
}
.profile-page__prophecy-save {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f9e076;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.profile-page__prophecy-save--left {
  right: auto;
  left: 1rem;
}
.profile-page__prophecy-save:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}
.profile-page__prophecy-save i {
  font-size: 1.2rem;
}
.profile-page__prophecy.condensed {
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.profile-page__prophecy.condensed .profile-page__prophecy-content {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.profile-page__prophecy.condensed .profile-page__prophecy-content::before, .profile-page__prophecy.condensed .profile-page__prophecy-content::after {
  font-size: 2rem;
}
.profile-page__prophecy.condensed .profile-page__prophecy-author {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.profile-page__prophecy.ultra-condensed {
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.profile-page__prophecy.ultra-condensed .profile-page__prophecy-content {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.profile-page__prophecy.ultra-condensed .profile-page__prophecy-content::before, .profile-page__prophecy.ultra-condensed .profile-page__prophecy-content::after {
  font-size: 1.75rem;
}
.profile-page__prophecy.ultra-condensed .profile-page__prophecy-author {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}
.profile-page__prophecy.ultra-condensed .corner-glow {
  width: 25px;
  height: 25px;
}
.profile-page__prophecy.ultra-condensed .profile-page__prophecy-save {
  width: 2.2rem;
  height: 2.2rem;
  bottom: 0.8rem;
}
.profile-page__prophecy.ultra-condensed .profile-page__prophecy-save i {
  font-size: 1.1rem;
}
.profile-page__header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(20, 15, 35, 0.9) 100%);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 2;
}
.profile-page__header-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.profile-page__header-row.ultra-compact {
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  height: auto;
}
.profile-page__header-row.ultra-compact .profile-page__avatar-container {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
}
.profile-page__header-row.ultra-compact .profile-page__avatar-change {
  width: 1.5rem;
  height: 1.5rem;
}
.profile-page__header-row.ultra-compact .profile-page__avatar-change i {
  font-size: 0.9rem;
}
.profile-page__header-row.ultra-compact .profile-page__user-info h2 {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}
.profile-page__header-row.ultra-compact .profile-page__user-info p {
  font-size: 0.8rem;
}
.profile-page__header-row.ultra-compact .profile-page__mystical-level-badge {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
}
.profile-page__header-row.ultra-compact .profile-page__mystical-level-badge i {
  font-size: 1.2rem;
}
.profile-page__header-row.ultra-compact .profile-page__mystical-level-info .profile-page__mystical-level-title {
  font-size: 0.9rem;
}
.profile-page__header-row.ultra-compact .profile-page__mystical-level-info .profile-page__mystical-level-joined {
  font-size: 0.75rem;
}
.profile-page__header-row.ultra-compact .profile-page__balance-amount {
  padding: 0.3rem 0.8rem;
}
.profile-page__header-row.ultra-compact .profile-page__balance-amount-icon {
  font-size: 1rem;
}
.profile-page__header-row.ultra-compact .profile-page__balance-amount span {
  font-size: 1rem;
}
.profile-page__header-row.ultra-compact .profile-page__balance-add {
  width: 1.75rem;
  height: 1.75rem;
}
.profile-page__header-row.ultra-compact .profile-page__balance-add i {
  font-size: 1rem;
}
@media (max-width: 767px) {
  .profile-page__header-row {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
  }
}
.profile-page__avatar-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 767px) {
  .profile-page__avatar-compact {
    width: 100%;
    justify-content: center;
  }
}
.profile-page__user-info h2 {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.25rem 0;
  font-weight: 500;
}
.profile-page__user-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}
.profile-page__user-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 767px) {
  .profile-page__user-stats {
    width: 100%;
    justify-content: center;
  }
}
.profile-page__section {
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(20, 15, 35, 0.9) 100%);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateZ(0);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.3s var(--transition-elegant), box-shadow 0.3s var(--transition-elegant);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.profile-page__section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(106, 48, 147, 0.2);
}
.profile-page__section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.profile-page__section-header {
  background: linear-gradient(90deg, rgba(74, 29, 106, 0.8) 0%, rgba(106, 48, 147, 0.6) 50%, rgba(74, 29, 106, 0.8) 100%);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.profile-page__section-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  animation: lightStreak 8s var(--transition-elegant) infinite;
  pointer-events: none;
}
.profile-page__section-header-title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.profile-page__section-header-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #d4af37;
  border-radius: 50%;
  box-shadow: 0 0 8px #d4af37;
}
.profile-page__section-header-icon {
  cursor: pointer;
  color: #f9e076;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__section-header-icon:hover {
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  border-color: rgba(212, 175, 55, 0.3);
}
.profile-page__section-header-icon i {
  font-size: 18px;
}
.profile-page__section-content {
  padding: 1.3rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}
@media (min-width: 768px) {
  .profile-page__section-content {
    padding: 1.8rem;
  }
}
.profile-page__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 1rem 0;
}
.profile-page__avatar::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}
.profile-page__avatar-container {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
  background: var(--gradient-surface-subtle);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 4px rgba(212, 175, 55, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transition: all 0.5s var(--transition-elegant);
  z-index: 1;
}
.profile-page__avatar-container:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 0 4px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
  .profile-page__avatar-container {
    width: 150px;
    height: 150px;
  }
}
.profile-page__avatar-container::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
  opacity: 0.7;
}
.profile-page__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s var(--transition-elegant);
}
.profile-page__avatar-container:hover .profile-page__avatar-image {
  transform: scale(1.08);
}
.profile-page__avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74, 29, 106, 0.4) 0%, rgba(106, 48, 147, 0.2) 100%);
  overflow: hidden;
}
.profile-page__avatar-placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-page__avatar-change {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
  color: white;
  text-align: center;
  padding: 1.5rem 0.5rem 0.6rem;
  opacity: 0;
  transition: border 0.25s var(--transition-elegant), box-shadow 0.3s var(--transition-elegant);
  transform: translateY(50%);
}
.profile-page__avatar-container:hover .profile-page__avatar-change {
  opacity: 1;
  transform: translateY(0);
}
.profile-page__avatar-change i {
  color: #d4af37;
  font-size: 20px;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
}
.profile-page__avatar h2 {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  color: #f9e076;
  margin: 0 0 0.3rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.profile-page__avatar p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.profile-page__avatar.redesigned {
  padding: 0.75rem 0;
}
.profile-page__avatar.redesigned .profile-page__avatar-container {
  margin-bottom: 1rem;
}
.profile-page__avatar.redesigned h2 {
  margin-bottom: 0.2rem;
}
.profile-page__avatar.redesigned p {
  margin-bottom: 1rem;
}
.profile-page__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .profile-page__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
.profile-page__stats::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(212, 175, 55, 0.3) 20%, rgba(212, 175, 55, 0.3) 80%, transparent 100%);
  z-index: 0;
  opacity: 0.7;
}
.profile-page__stats-item {
  text-align: center;
  padding: 1.2rem 0.75rem;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(20, 15, 35, 0.9) 100%);
  border-radius: 0.8rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--transition-elegant);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.profile-page__stats-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.2);
}
.profile-page__stats-item:hover .profile-page__stats-value {
  transform: scale(1.1);
  color: #d4af37;
}
.profile-page__stats-item:hover .profile-page__stats-label {
  color: rgba(255, 255, 255, 0.9);
}
.profile-page__stats-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}
.profile-page__stats-item::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.5s var(--transition-elegant);
  pointer-events: none;
  z-index: -1;
}
.profile-page__stats-item:hover::after {
  opacity: 1;
  animation: rotateLight 8s linear infinite;
}
.profile-page__stats-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #f56565;
  margin-bottom: 0.5rem;
  position: relative;
  transition: all 0.3s var(--transition-elegant);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-family: var(--font-family-heading);
}
.profile-page__stats-value::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1px;
  background: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  opacity: 0.7;
}
.profile-page__stats-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__balance {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 1rem;
  position: relative;
}
.profile-page__balance::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 70px;
  background: linear-gradient(135deg, rgba(74, 29, 106, 0.2) 0%, rgba(106, 48, 147, 0.1) 100%);
  border-radius: 35px;
  z-index: -1;
  filter: blur(8px);
}
.profile-page__balance-amount {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.9) 0%, rgba(40, 30, 55, 0.9) 100%);
  border-radius: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-right: 0.8rem;
  min-width: 120px;
  justify-content: center;
}
.profile-page__balance-amount::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.profile-page__balance-amount-icon {
  margin-right: 0.8rem;
  font-size: 1.5rem;
  color: #d4af37;
  animation: crystalPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}
.profile-page__balance-amount span {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.profile-page__balance-add {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.9) 0%, rgba(106, 48, 147, 0.9) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 3px rgba(212, 175, 55, 0.2);
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__balance-add:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 0 4px rgba(212, 175, 55, 0.3), 0 0 20px rgba(247, 183, 51, 0.5);
}
.profile-page__balance-add::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.8) 0%, rgba(106, 48, 147, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--transition-elegant);
  z-index: -1;
  filter: blur(3px);
}
.profile-page__balance-add:hover::before {
  opacity: 0.6;
  animation: pulse 2s infinite;
}
.profile-page__balance-add i {
  font-size: 24px;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}
@media (min-width: 768px) {
  .profile-page__form-group {
    margin-bottom: 1.8rem;
  }
}
.profile-page__form-group:last-child {
  margin-bottom: 0;
}
.profile-page__form-group::after {
  content: "";
  position: absolute;
  bottom: -0.9rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
  opacity: 0.3;
}
.profile-page__form-group:last-child::after {
  display: none;
}
.profile-page__form-label {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  position: relative;
  padding-left: 1rem;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__form-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #d4af37;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}
.profile-page__form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 15, 30, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-family-body);
  transition: all 0.3s var(--transition-elegant);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
}
.profile-page__form-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(30, 20, 40, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.profile-page__form-input--textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}
.profile-page__form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.profile-page__form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(20, 15, 30, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-family-body);
  transition: all 0.3s var(--transition-elegant);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
.profile-page__form-select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  background-color: rgba(30, 20, 40, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.profile-page__form-gender {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .profile-page__form-gender {
    gap: 1rem;
  }
}
.profile-page__form-gender-option {
  flex: 1;
  min-width: 80px;
}
@media (min-width: 768px) {
  .profile-page__form-gender-option {
    min-width: 100px;
  }
}
.profile-page__form-gender-option input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.profile-page__form-gender-option input[type=radio]:focus + label {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.profile-page__form-gender-option input[type=radio]:checked + label {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.7) 0%, rgba(106, 48, 147, 0.7) 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 175, 55, 0.3), 0 0 15px rgba(106, 48, 147, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.profile-page__form-gender-option input[type=radio]:checked + label::before {
  opacity: 1;
  transform: scale(1);
}
.profile-page__form-gender-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(20, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s var(--transition-elegant);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}
.profile-page__form-gender-option label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__form-gender-option label:hover {
  background: rgba(40, 30, 50, 0.6);
  transform: translateY(-2px);
}
.profile-page__form-gender-option label:hover::before {
  opacity: 0.5;
  transform: scale(0.8);
}
.profile-page__form-gender-custom {
  width: 100%;
  margin-top: 1rem;
  animation: fadeIn 0.3s var(--transition-elegant);
}
.profile-page__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}
@media (max-width: 767px) {
  .profile-page__buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
}
.profile-page__buttons-primary, .profile-page__buttons-secondary {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--transition-elegant);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  min-height: 3rem;
}
.profile-page__buttons-primary i, .profile-page__buttons-secondary i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__buttons-primary:hover, .profile-page__buttons-secondary:hover {
  transform: translateY(-3px);
}
.profile-page__buttons-primary:hover i, .profile-page__buttons-secondary:hover i {
  transform: translateX(-3px);
}
.profile-page__buttons-primary:active, .profile-page__buttons-secondary:active {
  transform: translateY(-1px);
}
.profile-page__buttons-primary:active i, .profile-page__buttons-secondary:active i {
  transform: translateX(-1px);
}
.profile-page__buttons-primary {
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.9) 0%, rgba(106, 48, 147, 0.9) 100%);
  color: white;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.profile-page__buttons-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transition: all 0.6s var(--transition-elegant);
  transform: skewX(-25deg);
}
.profile-page__buttons-primary:hover {
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 0 4px rgba(212, 175, 55, 0.2), 0 0 20px rgba(106, 48, 147, 0.3);
}
.profile-page__buttons-primary:hover::before {
  left: 100%;
}
.profile-page__buttons-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.profile-page__buttons-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.5) 0%, rgba(40, 30, 55, 0.5) 100%);
  z-index: -1;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__buttons-secondary:hover {
  color: white;
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.profile-page__buttons-secondary:hover::before {
  background: linear-gradient(135deg, rgba(40, 30, 55, 0.8) 0%, rgba(50, 35, 65, 0.8) 100%);
}
.profile-page__list-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-page__list-empty-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.profile-page__list-empty-title i {
  font-size: 2rem;
  color: #d4af37;
}
.profile-page__list-empty-actions {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.profile-page__list-empty-actions .profile-page__buttons-primary,
.profile-page__list-empty-actions .profile-page__buttons-secondary {
  margin: 0;
}
.profile-page__section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
  align-content: start;
}
.profile-page__section-grid--details {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: start;
  align-content: start;
}
.profile-page__section-grid--details .profile-page__section {
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .profile-page__section-grid--details {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}
@media (min-width: 1200px) {
  .profile-page__section-grid--details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1400px) {
  .profile-page__section-grid {
    gap: 2rem;
  }
}
.profile-page__list-item {
  padding: 1.2rem 3.6rem 1.2rem 1.2rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(20, 15, 35, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  transition: all 0.3s var(--transition-elegant);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  user-select: none;
}
.profile-page__list-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
}
.profile-page__list-item:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.5);
  outline-offset: 4px;
}
.profile-page__list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  position: relative;
}
.profile-page__list-item .profile-page__favorite-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.25s var(--transition-elegant);
}
.profile-page__list-item .profile-page__favorite-btn:hover {
  color: #f9e076;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}
.profile-page__list-item .profile-page__favorite-btn i {
  font-size: 1.35rem;
}
.profile-page__list-item .profile-page__favorite-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.profile-page__list-item .profile-page__favorite-btn--active {
  color: #f9e076;
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}
.profile-page__list-item .profile-page__favorite-btn--pending {
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  cursor: wait;
}
.profile-page__list-item-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  transition: all 0.3s var(--transition-elegant);
  font-size: 1rem;
  padding-right: 0.5rem;
}
.profile-page__list-item-title i {
  color: #d4af37;
  margin-right: 0.6rem;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
}
.profile-page__list-item-title strong {
  font-weight: 700;
  color: #f9e076;
}
.profile-page__list-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.5rem;
}
.profile-page__list-item-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(5px);
}
.profile-page__list-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1rem;
}
.profile-page__list-item-action {
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s var(--transition-elegant);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.profile-page__list-item-action::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--transition-elegant);
  transform: rotate(45deg);
  pointer-events: none;
}
.profile-page__list-item-action:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.profile-page__list-item-action:hover::before {
  opacity: 1;
  animation: shiningEffect 2s infinite linear;
}
.profile-page__list-item-action:hover i {
  color: #d4af37;
  transform: scale(1.2);
}
.profile-page__list-item-action i {
  font-size: 1.1rem;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__list-item-action--delete {
  color: rgba(255, 103, 103, 0.8);
}
.profile-page__list-item-action--delete:hover {
  background: rgba(255, 103, 103, 0.15);
}
.profile-page__list-item-action--delete:hover i {
  color: rgb(255, 103, 103);
}
.profile-page__list-empty {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}
.profile-page__list-empty::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(106, 48, 147, 0.1) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  border-radius: 50%;
}
.profile-page__list-empty-title {
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}
.profile-page__list-empty-title i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(247, 183, 51, 0.7);
  opacity: 0.8;
}
.profile-page__list-empty-title p {
  font-size: 1.1rem;
}
.profile-page__list-empty p {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.profile-page__list-empty-actions {
  margin-top: 1.5rem;
}
.profile-page__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) cubic-bezier(0.19, 1, 0.22, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) cubic-bezier(0.19, 1, 0.22, 1);
}
.profile-page__modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.profile-page__modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px at 30% 30%, rgba(248, 249, 250, 0.05) 0%, transparent 50%), radial-gradient(1px at 70% 70%, rgba(248, 249, 250, 0.03) 0%, transparent 50%);
  background-size: 30px 30px, 20px 20px;
  pointer-events: none;
  opacity: 0.4;
}
.profile-page__modal-container {
  width: 90%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(74, 29, 106, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(248, 249, 250, 0.05), 0 0 0 3px rgba(212, 175, 55, 0.1);
  animation: profile-modal-slide-in 0.5s 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  transform: translateZ(0);
}
.profile-page__modal-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3), rgba(212, 175, 55, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}
.profile-page__modal-container::-webkit-scrollbar {
  width: 6px;
}
.profile-page__modal-container::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.1);
  border-radius: 0 16px 16px 0;
}
.profile-page__modal-container::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}
.profile-page__modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}
@media (max-width: 767px) {
  .profile-page__modal-container {
    width: 95%;
    max-height: 85vh;
  }
}
@media (min-width: 1600px) {
  .profile-page__modal-container {
    max-width: 900px;
  }
}
.profile-page__modal-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.profile-page__modal-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(74, 29, 106, 0.3) 0%, rgba(106, 48, 147, 0.2) 50%, rgba(74, 29, 106, 0.3) 100%);
  z-index: -1;
  opacity: 0.8;
  border-radius: 1rem 1rem 0 0;
}
.profile-page__modal-header-title {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  color: #f9e076;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
}
@media (max-width: 767px) {
  .profile-page__modal-header-title {
    font-size: 1.2rem;
  }
}
.profile-page__modal-header-close {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--transition-elegant);
}
.profile-page__modal-header-close:hover {
  color: white;
  background: rgba(0, 0, 0, 0.3);
  transform: rotate(90deg);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.profile-page__modal-header-close i {
  font-size: 18px;
}
.profile-page__modal-body {
  padding: 1.8rem;
  position: relative;
}
@media (max-width: 767px) {
  .profile-page__modal-body {
    padding: 1.2rem 1rem;
  }
}
.profile-page__modal-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.profile-page__modal-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(74, 29, 106, 0.3) 0%, rgba(106, 48, 147, 0.2) 50%, rgba(74, 29, 106, 0.3) 100%);
  z-index: -1;
  opacity: 0.5;
  border-radius: 0 0 1rem 1rem;
}
@media (max-width: 767px) {
  .profile-page__modal-footer {
    padding: 1.2rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
  }
  .profile-page__modal-footer button {
    width: 100%;
  }
}
.profile-page__address-suggestions {
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
}
.profile-page__address-suggestions-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.profile-page__address-suggestions-item:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}
.profile-page__address-suggestions-item:hover {
  background: var(--color-surface-hover);
}
.profile-page__time-picker {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
}
.profile-page__time-picker-select {
  padding: 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 15, 30, 0.6);
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s var(--transition-elegant);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(247, 183, 51, 0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  padding-right: 2rem;
}
.profile-page__time-picker-select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}
.profile-page__time-picker-select option {
  background-color: rgba(30, 20, 40, 0.95);
  color: rgba(255, 255, 255, 0.9);
}
.profile-page__mystical-level {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(25, 20, 35, 0.7) 0%, rgba(35, 25, 45, 0.7) 100%);
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin: 0.5rem 0 1.25rem;
  position: relative;
  overflow: hidden;
}
.profile-page__mystical-level::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  animation: mysticalLevelShimmer 6s infinite linear;
  pointer-events: none;
}
.profile-page__mystical-level-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9e076, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.8rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.profile-page__mystical-level-badge i {
  color: rgba(30, 20, 40, 0.9);
  font-size: 16px;
}
.profile-page__mystical-level-info {
  display: flex;
  flex-direction: column;
}
.profile-page__mystical-level-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #f9e076;
  margin-bottom: 0.1rem;
}
.profile-page__mystical-level-joined {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.profile-page__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
@media (max-width: 767px) {
  .profile-page__info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
.profile-page__info-item {
  margin-bottom: 0.5rem;
}
.profile-page__info-item p {
  margin: 0.25rem 0 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}
.profile-page__info-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-page__field-edit {
  background: transparent;
  border: none;
  color: #f9e076;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.profile-page__field-edit:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: scale(1.1);
}
.profile-page__field-edit i {
  font-size: 1.1rem;
}
.profile-page__settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 767px) {
  .profile-page__settings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
.profile-page .mystical-symbols-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.profile-page .mystical-symbols-background .mystical-symbol {
  position: absolute;
  font-family: "Cinzel", serif;
  color: rgba(212, 175, 55, 0.3);
  font-size: 1.2rem;
  pointer-events: none;
  opacity: 0.8;
}
.profile-page .mystical-symbols-background .mystical-symbol:nth-child(1) {
  top: 5%;
  left: 5%;
  transform: rotate(-15deg);
}
.profile-page .mystical-symbols-background .mystical-symbol:nth-child(2) {
  top: 40%;
  right: 8%;
  transform: rotate(25deg);
}
.profile-page .mystical-symbols-background .mystical-symbol:nth-child(3) {
  bottom: 10%;
  left: 12%;
  transform: rotate(10deg);
}
.profile-page__subtle-logout {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  min-width: auto !important;
  background: transparent !important;
  border: none !important;
  margin-left: -5px !important;
  opacity: 0.3 !important;
  transition: all 0.2s ease !important;
}
.profile-page__subtle-logout i {
  font-size: 18px !important;
  color: rgba(255, 255, 255, 0.5) !important;
}
.profile-page__subtle-logout:hover {
  opacity: 0.6 !important;
  background: transparent !important;
}
.profile-page__subtle-logout:hover i {
  color: rgba(255, 255, 255, 0.7) !important;
}
.profile-page__header-logout {
  display: none;
}
.profile-page__error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  margin: 4rem auto;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(20, 15, 35, 0.9) 100%);
  border-radius: 1rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  animation: fadeUpIn 0.8s ease-out forwards;
}
.profile-page__error-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.3), rgba(106, 48, 147, 0.2), rgba(247, 183, 51, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.profile-page__error-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(1px at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 20px 20px, 25px 25px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.profile-page__error-container i {
  color: var(--color-error);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.profile-page__error-container p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.profile-page__error-container .profile-page__buttons-primary {
  position: relative;
  z-index: 1;
  min-width: 180px;
}
.profile-page__legal-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--color-gold-rgb), 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.profile-page__legal-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(var(--color-light-rgb), 0.7);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  background: rgba(var(--color-primary-rgb), 0.15);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}
.profile-page__legal-link i {
  font-size: 1.2rem;
  color: var(--color-gold);
}
.profile-page__legal-link span {
  font-size: 0.9rem;
}
.profile-page__legal-link:hover {
  background: rgba(var(--color-primary-rgb), 0.25);
  transform: translateY(-2px);
  color: var(--color-light);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-gold-rgb), 0.2);
}
.profile-page__legal-link:hover i {
  color: var(--color-gold-light);
}
.profile-page__settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  width: 100%;
}
.profile-page__form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profile-page__form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.profile-page__form-select, .profile-page__form-input {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-light);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-family-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-page__form-select:focus, .profile-page__form-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}
.profile-page__toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.85);
  gap: 0.75rem;
}
.profile-page__toggle-card label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}
.profile-page__toggle-card input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.profile-page__toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 0.75rem;
}
@media (max-width: 600px) {
  .profile-page__toggle-grid {
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
}
.profile-page__debug-panel,
.profile-page .profile-debug-section {
  background: rgba(20, 15, 35, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  max-height: 320px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.profile-page__debug-panel h5,
.profile-page .profile-debug-section h5 {
  font-family: "Cinzel", serif;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}
.profile-page__debug-panel table,
.profile-page .profile-debug-section table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.profile-page__debug-panel thead th,
.profile-page .profile-debug-section thead th {
  position: sticky;
  top: 0;
  background: rgba(20, 15, 35, 0.95);
  padding: 0.5rem;
  text-align: left;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}
.profile-page__debug-panel tbody,
.profile-page .profile-debug-section tbody {
  display: block;
  overflow-y: auto;
  max-height: 240px;
  padding-right: 6px;
}
.profile-page__debug-panel tbody tr,
.profile-page .profile-debug-section tbody tr {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
  font-size: 0.8rem;
  word-break: break-word;
}
.profile-page__debug-panel tbody tr:last-child,
.profile-page .profile-debug-section tbody tr:last-child {
  border-bottom: none;
}
.profile-page__debug-panel tbody td,
.profile-page .profile-debug-section tbody td {
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 768px) {
  .profile-page__debug-panel,
  .profile-page .profile-debug-section {
    max-height: 260px;
  }
  .profile-page__debug-panel tbody,
  .profile-page .profile-debug-section tbody {
    max-height: 190px;
  }
  .profile-page__debug-panel tbody tr,
  .profile-page .profile-debug-section tbody tr {
    grid-template-columns: minmax(120px, 180px) 1fr;
  }
}

.avatar-preview {
  max-width: 100%;
  max-height: 250px;
  border-radius: 0.8rem;
  margin-top: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--transition-elegant);
  border: 2px solid rgba(212, 175, 55, 0.3);
}
.avatar-preview:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.3), 0 0 20px rgba(106, 48, 147, 0.3);
}

.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-top: 1.5rem;
}
.file-upload__input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
}
.file-upload__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 1rem;
  background: rgba(20, 15, 30, 0.5);
  transition: all 0.3s var(--transition-elegant);
  position: relative;
  overflow: hidden;
}
.file-upload__label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.3s var(--transition-elegant);
}
.file-upload__label:hover {
  background: rgba(30, 20, 40, 0.6);
  border-color: #d4af37;
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 48, 147, 0.2);
}
.file-upload__label:hover::before {
  opacity: 0.8;
}
.file-upload__label:hover .file-upload__label-icon {
  transform: scale(1.1);
  color: #d4af37;
}
.file-upload__label-icon {
  margin-bottom: 1.5rem;
  color: rgba(212, 175, 55, 0.7);
  font-size: 3rem;
  transition: all 0.3s var(--transition-elegant);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}
@media (max-width: 767px) {
  .file-upload__label-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
}
.file-upload__label-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}
.file-upload__label-text p {
  margin: 0.5rem 0;
}
.file-upload__label-text p.small {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}
.file-upload__preview {
  margin-top: 1.5rem;
  text-align: center;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes crystalShimmer {
  0% {
    background-position: -220% 0;
  }
  75% {
    background-position: 220% 0;
  }
  100% {
    background-position: 260% 0;
  }
}
@keyframes crystalGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
  }
}
@keyframes rotateLightSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes premiumIconPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
  }
  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
  }
}
@keyframes subscriptionPulse {
  0% {
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(106, 48, 147, 0.2);
  }
  100% {
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px rgba(106, 48, 147, 0.4);
  }
}
@keyframes mysticalLevelShimmer {
  0% {
    transform: translateX(-140%) skewX(-15deg);
    opacity: 0;
  }
  70% {
    transform: translateX(140%) skewX(-15deg);
    opacity: 1;
  }
  100% {
    transform: translateX(180%) skewX(-15deg);
    opacity: 0;
  }
}
@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes pulseFade {
  0% {
    opacity: 0.05;
  }
  100% {
    opacity: 0.12;
  }
}
.profile-page__prophecy-save {
  transition: all 0.2s ease;
}
.profile-page__prophecy-save.saved {
  background-color: #d4af37;
}
.profile-page__prophecy-save.saved i {
  color: #4a1d6a;
}
.profile-page__prophecy-save:hover {
  transform: scale(1.05);
}
.profile-page__prophecy-save:hover.saved {
  background-color: rgb(221.024691358, 191.7901234568, 96.975308642);
}
.profile-page__prophecy-save:active {
  transform: scale(0.95);
}

/* Add loading animation enhancements */
.mystical-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.mystical-loading .loading-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}
.mystical-loading .loading-stars .star {
  position: absolute;
  opacity: 0;
  animation: star-pulse 3s ease-in-out infinite;
}
.mystical-loading .loading-stars .star i {
  color: var(--color-accent);
  font-size: 18px;
}
.mystical-loading .loading-stars .star i.filled {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mystical-loading p {
  margin-top: 2rem;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  text-align: center;
  color: var(--color-text-secondary);
  animation: text-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}
@keyframes text-pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
/* Enhance mystical pulse for loading spinner */
.mystical-pulse {
  position: relative;
  z-index: 1;
}
.mystical-pulse::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-translucent) 0%, transparent 70%);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}
.profile-page__auth-section .profile-page__oauth-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.profile-page__auth-section .profile-page__oauth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease;
  background: #fff;
  color: #1f1f1f;
}
.profile-page__auth-section .profile-page__oauth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.profile-page__auth-section .profile-page__oauth-btn-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.profile-page__auth-section .profile-page__oauth-btn--apple {
  background: #000;
  color: #fff;
}

.profile-page__header-logout, .profile-page__subtle-logout {
  display: none !important;
}

@keyframes profile-modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-language-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(74, 29, 106, 0.94), rgba(74, 29, 106, 0.98));
  backdrop-filter: blur(8px);
  color: var(--color-light, #fff);
}
.profile-language-overlay__card {
  width: min(420px, 100%);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  text-align: center;
  background: rgba(10, 8, 20, 0.85);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  overflow: hidden;
}
.profile-language-overlay__card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(249, 224, 118, 0.2);
  pointer-events: none;
}
.profile-language-overlay__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.85), rgba(247, 183, 51, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(74, 29, 106, 0.95);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}
.profile-language-overlay__icon i {
  font-size: 32px;
}
.profile-language-overlay__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.profile-language-overlay__subtitle {
  font-size: 0.95rem;
  color: rgba(248, 249, 250, 0.8);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.profile-language-overlay__progress {
  margin-bottom: 1.25rem;
}
.profile-language-overlay__progress .loading-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(248, 249, 250, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.profile-language-overlay__progress .loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(247, 183, 51, 0.8), rgba(212, 175, 55, 0.95));
  transition: width 0.3s ease;
}
.profile-language-overlay__progress .loading-progress-text {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(248, 249, 250, 0.65);
}
.profile-language-overlay__hint {
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.75);
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .profile-language-overlay {
    padding: 1rem;
  }
  .profile-language-overlay__card {
    padding: 1.5rem;
  }
}

.profile-reading-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.9) 0%, rgba(22, 18, 35, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.profile-reading-modal__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  min-width: 170px;
}
.profile-reading-modal__meta-item i {
  font-size: 1.1rem;
  color: #f9e076;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}
.profile-reading-modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.8);
}
.profile-reading-modal__loading .loading-spinner.small {
  width: 36px;
  height: 36px;
  border-width: 3px;
}
.profile-reading-modal__notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(246, 173, 85, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
.profile-reading-modal__notice i {
  color: #f6ad55;
}
.profile-reading-modal__message {
  padding-right: 0.25rem;
}
.profile-reading-modal__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(245, 101, 101, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
.profile-reading-modal__error i {
  color: #f56565;
  font-size: 2rem;
}

.reading-review-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.reading-review-dialog__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  color: #f9e076;
}
.reading-review-dialog__title i {
  font-size: 1.5rem;
}

.reading-review-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s var(--transition-elegant);
}
.reading-review-dialog__close:hover {
  color: white;
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(0, 0, 0, 0.35);
}

.legal-page {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  background: linear-gradient(145deg, rgb(10, 9, 20) 0%, rgb(20, 18, 40) 40%, rgb(30, 25, 60) 80%, rgb(20, 18, 40) 100%);
  color: var(--color-text-light);
}
.legal-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 15% 15%, rgba(var(--color-gold-rgb), 0.05) 0%, transparent 35%), radial-gradient(circle at 85% 85%, rgba(var(--color-gold-rgb), 0.05) 0%, transparent 35%), radial-gradient(circle at 75% 25%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 30%), radial-gradient(circle at 25% 65%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 30%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -2;
}
.legal-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px circle at 25% 15%, rgba(var(--color-gold-rgb), 0.9), transparent), radial-gradient(1.5px circle at 50% 30%, rgba(var(--color-gold-rgb), 0.8), transparent), radial-gradient(2px circle at 75% 60%, rgba(var(--color-gold-rgb), 0.9), transparent), radial-gradient(2.5px circle at 20% 70%, rgba(var(--color-gold-rgb), 0.7), transparent), radial-gradient(1px circle at 85% 25%, rgba(var(--color-gold-rgb), 0.8), transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
.legal-page .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
@media (min-width: 768px) {
  .legal-page .container {
    padding: 2rem;
  }
}
.legal-page__header {
  text-align: center;
  padding: 2rem 0 1.5rem;
  position: relative;
}
.legal-page__header::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin: 1.5rem auto 0;
  box-shadow: 0 0 10px rgba(var(--color-gold-rgb), 0.5);
}
.legal-page__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-gold-light);
  text-align: center;
  letter-spacing: 1.5px;
  background: linear-gradient(to right, var(--color-gold-dark) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  text-shadow: 0 0 10px rgba(var(--color-gold-rgb), 0.3);
}
.legal-page__updated {
  font-size: 0.9rem;
  color: rgba(var(--color-light-rgb), 0.7);
  font-style: italic;
}
.legal-page__content {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--color-gold-rgb), 0.1), inset 0 0 20px rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  position: relative;
  overflow: hidden;
  max-height: 75vh;
  overflow-y: auto;
}
.legal-page__content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(var(--color-gold-rgb), 0.7) 0%, rgba(var(--color-gold-rgb), 0.2) 30%, rgba(var(--color-primary-rgb), 0.3) 70%, rgba(var(--color-gold-rgb), 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.legal-page__content::-webkit-scrollbar {
  width: 6px;
}
.legal-page__content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.legal-page__content::-webkit-scrollbar-thumb {
  background: rgba(var(--color-gold-rgb), 0.6);
  border-radius: 4px;
}
.legal-page__content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}
.legal-page__content {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--color-gold-rgb), 0.6) rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .legal-page__content {
    padding: 1.5rem;
    max-height: 70vh;
  }
}
.legal-page__content section {
  margin-bottom: 2rem;
}
.legal-page__content section:last-child {
  margin-bottom: 0;
}
.legal-page__content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.legal-page__content h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--color-gold), transparent);
  margin-top: 0.3rem;
}
.legal-page__content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: rgba(var(--color-gold-rgb), 0.9);
  margin: 1.5rem 0 0.8rem;
}
.legal-page__content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
  color: rgba(var(--color-light-rgb), 0.9);
}
.legal-page__content p:last-child {
  margin-bottom: 0;
}
.legal-page__content p strong {
  color: var(--color-light);
  font-weight: 600;
}
.legal-page__content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-page__content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
  color: rgba(var(--color-light-rgb), 0.85);
  position: relative;
}
.legal-page__content ul li::before {
  content: "•";
  color: var(--color-gold);
  position: absolute;
  left: -1rem;
}
.legal-page__content ul li strong {
  color: var(--color-light);
  font-weight: 600;
}
.legal-page__content a {
  color: var(--color-gold-light);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}
.legal-page__content a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.legal-page__content a:hover {
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(var(--color-gold-rgb), 0.3);
}
.legal-page__content a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.media-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0f172a;
  position: relative;
  overflow-x: hidden;
  padding: var(--spacing-lg);
}
.media-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 35%), radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.05) 0%, transparent 35%), radial-gradient(circle at 75% 25%, rgba(212, 175, 55, 0.03) 0%, transparent 30%), radial-gradient(circle at 25% 65%, rgba(212, 175, 55, 0.03) 0%, transparent 30%);
  opacity: 0.7;
  z-index: 0;
}
.media-page__content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}
.media-page__title {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(to right, #f9e076, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.media-section {
  background: linear-gradient(145deg, rgba(22, 17, 36, 0.95) 0%, rgba(48, 30, 76, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(106, 48, 147, 0.3);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}
.media-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.2) 0%, rgba(106, 48, 147, 0.2) 25%, rgba(247, 183, 51, 0.2) 50%, rgba(106, 48, 147, 0.2) 75%, rgba(247, 183, 51, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0.6;
  z-index: 0;
}
.media-section__title {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: #d4af37;
  position: relative;
  z-index: 1;
}
.media-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.feature-graphic-container {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto var(--spacing-lg);
  z-index: 1;
}

.feature-graphic {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 48.83%;
  background: linear-gradient(145deg, rgb(10, 9, 20) 0%, rgb(20, 18, 40) 40%, rgb(30, 25, 60) 80%, rgb(20, 18, 40) 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.feature-graphic__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 75% 25%, rgba(212, 175, 55, 0.15) 0%, transparent 50%), radial-gradient(circle at 25% 75%, rgba(106, 48, 147, 0.18) 0%, transparent 60%);
  z-index: 1;
}
.feature-graphic__stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.7;
}
.feature-graphic__stars::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px circle at 25% 15%, rgba(212, 175, 55, 0.9), transparent), radial-gradient(1.5px circle at 50% 30%, rgba(212, 175, 55, 0.8), transparent), radial-gradient(2px circle at 75% 60%, rgba(212, 175, 55, 0.9), transparent), radial-gradient(2.5px circle at 20% 70%, rgba(212, 175, 55, 0.7), transparent), radial-gradient(1px circle at 85% 25%, rgba(212, 175, 55, 0.8), transparent), radial-gradient(1.2px circle at 15% 45%, rgba(212, 175, 55, 0.7), transparent), radial-gradient(1.7px circle at 65% 15%, rgba(212, 175, 55, 0.8), transparent);
}
.feature-graphic__connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.feature-graphic__connections svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.feature-graphic__connections svg .connection-path {
  fill: none;
  stroke: rgba(212, 175, 55, 0.7);
  stroke-width: 2.5;
  stroke-dasharray: 6;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.6));
}
.feature-graphic__zodiac {
  position: absolute;
  filter: blur(2px);
  top: 4%;
  left: 13.2%;
  width: 42%;
  height: 0;
  padding-bottom: 42%;
  z-index: 3;
}
.feature-graphic__zodiac .zodiac-wheel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-graphic__zodiac .zodiac-wheel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40, 30, 55, 0.4) 0%, rgba(30, 20, 40, 0.4) 100%);
  box-shadow: inset 0 0 30px 5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.3);
  backdrop-filter: blur(5px);
  z-index: 0;
}
.feature-graphic__zodiac .zodiac-wheel::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: radial-gradient(circle at center, rgba(40, 30, 55, 0.3) 0%, rgba(30, 20, 40, 0.1) 100%);
  z-index: 0;
}
.feature-graphic__zodiac .zodiac-ring {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(212, 175, 55, 0.15);
}
.feature-graphic__zodiac .zodiac-sign {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14%;
  height: 14%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-graphic__zodiac .zodiac-sign:nth-child(1) {
  transform: translate(-50%, -50%) rotate(-15deg) translateY(calc(-1 * 42% / 0.14)) rotate(15deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(2) {
  transform: translate(-50%, -50%) rotate(15deg) translateY(calc(-1 * 42% / 0.14)) rotate(-15deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(3) {
  transform: translate(-50%, -50%) rotate(45deg) translateY(calc(-1 * 42% / 0.14)) rotate(-45deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(4) {
  transform: translate(-50%, -50%) rotate(75deg) translateY(calc(-1 * 42% / 0.14)) rotate(-75deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(5) {
  transform: translate(-50%, -50%) rotate(105deg) translateY(calc(-1 * 42% / 0.14)) rotate(-105deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(6) {
  transform: translate(-50%, -50%) rotate(135deg) translateY(calc(-1 * 42% / 0.14)) rotate(-135deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(7) {
  transform: translate(-50%, -50%) rotate(165deg) translateY(calc(-1 * 42% / 0.14)) rotate(-165deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(8) {
  transform: translate(-50%, -50%) rotate(195deg) translateY(calc(-1 * 42% / 0.14)) rotate(-195deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(9) {
  transform: translate(-50%, -50%) rotate(225deg) translateY(calc(-1 * 42% / 0.14)) rotate(-225deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(10) {
  transform: translate(-50%, -50%) rotate(255deg) translateY(calc(-1 * 42% / 0.14)) rotate(-255deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(11) {
  transform: translate(-50%, -50%) rotate(285deg) translateY(calc(-1 * 42% / 0.14)) rotate(-285deg);
}
.feature-graphic__zodiac .zodiac-sign:nth-child(12) {
  transform: translate(-50%, -50%) rotate(315deg) translateY(calc(-1 * 42% / 0.14)) rotate(-315deg);
}
.feature-graphic__zodiac .zodiac-sign-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(50, 35, 65, 0.8) 0%, rgba(40, 30, 55, 0.8) 100%);
  border-radius: 50%;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(106, 48, 147, 0.3);
}
.feature-graphic__zodiac .zodiac-sign-symbol {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-graphic__zodiac .zodiac-sign-symbol img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
}
.feature-graphic__zodiac .zodiac-sign.highlighted {
  z-index: 9;
}
.feature-graphic__zodiac .zodiac-sign.highlighted .zodiac-sign-content {
  background: linear-gradient(135deg, rgba(60, 40, 80, 0.9) 0%, rgba(50, 35, 65, 0.9) 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(106, 48, 147, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.15);
}
.feature-graphic__zodiac .zodiac-sign.highlighted .zodiac-sign-symbol img {
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
  width: 85%;
  height: 85%;
}
.feature-graphic__tarot {
  position: absolute;
  filter: blur(0.8px);
  scale: 1.2;
  top: 55%;
  right: 13%;
  transform: translateY(-50%);
  width: 32%;
  height: 80%;
  perspective: 1000px;
  z-index: 4;
}
.feature-graphic__tarot .tarot-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(calc(var(--index) * 30px - 40px)) rotate(var(--rotate));
}
.feature-graphic__tarot .tarot-card__inner {
  position: relative;
  width: 162px;
  height: 288px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  overflow: hidden;
}
.feature-graphic__tarot .tarot-card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b0c2e 0%, #2d1a47 100%);
  border-radius: 12px;
  overflow: hidden;
}
.feature-graphic__tarot .tarot-card__back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
  opacity: 0.7;
}
.feature-graphic__tarot .tarot-card__back::after {
  content: "★";
  font-size: 3.5rem;
  color: rgba(212, 175, 55, 0.8);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}
.feature-graphic__tarot .tarot-card .card-border {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.2);
  pointer-events: none;
}
.feature-graphic__decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.feature-graphic__decorations .mystical-orb {
  position: absolute;
  border-radius: 50%;
}
.feature-graphic__decorations .mystical-orb.orb-1 {
  top: 15%;
  left: 25%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(106, 48, 147, 0.4) 0%, rgba(106, 48, 147, 0) 70%);
}
.feature-graphic__decorations .mystical-orb.orb-2 {
  bottom: 20%;
  right: 30%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
}
.feature-graphic__decorations .mystical-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 300px;
  height: 100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
  filter: blur(20px);
  opacity: 0.7;
}
.feature-graphic__text {
  position: absolute;
  bottom: 10%;
  left: 5%;
  z-index: 5;
  text-align: left;
  width: 70%;
}
.feature-graphic__text .app-title {
  font-family: "Cinzel", serif;
  font-size: clamp(4.5rem, 9vw, 6rem);
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.3);
  line-height: 1;
  position: relative;
}
.feature-graphic__text .app-tagline {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #f9e076;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  padding-bottom: 8px;
}
.feature-graphic__text .app-tagline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.9) 50%, transparent 100%);
}

.export-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.export-button {
  background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
  color: rgba(0, 0, 0, 0.9);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 1px rgba(255, 255, 255, 0.2) inset;
  letter-spacing: 0.8px;
  font-weight: 600;
  transition: all 0.3s var(--transition-standard);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}
.export-button i {
  font-size: 1.4rem;
}
.export-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 1px 1px rgba(255, 255, 255, 0.3) inset, 0 0 20px rgba(212, 175, 55, 0.2);
}
.export-button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@media (max-width: 768px) {
  .media-page {
    padding: var(--spacing-md);
  }
  .media-section {
    padding: var(--spacing-md);
  }
  .feature-graphic__zodiac {
    right: 5%;
    width: 45%;
  }
  .feature-graphic__tarot {
    left: 8%;
    width: 35%;
  }
  .feature-graphic__tarot .tarot-card__inner {
    width: 100px;
    height: 178px;
  }
  .feature-graphic__text {
    width: 85%;
    bottom: 8%;
  }
}
@media (max-width: 480px) {
  .media-page {
    padding: var(--spacing-sm);
  }
  .media-section {
    padding: var(--spacing-sm);
  }
  .feature-graphic__zodiac {
    width: 50%;
  }
  .feature-graphic__tarot {
    width: 40%;
  }
  .feature-graphic__tarot .tarot-card__inner {
    width: 80px;
    height: 142px;
  }
  .feature-graphic__text {
    width: 90%;
    bottom: 6%;
  }
}
.entry-experience {
  min-height: 100vh;
  width: 100%;
  padding: 4rem 1rem;
  background: radial-gradient(circle at 20% 15%, rgba(160, 68, 255, 0.25), transparent 45%), radial-gradient(circle at 80% 0%, rgba(155, 85, 211, 0.2), transparent 40%), linear-gradient(180deg, #06030e 0%, #0f071c 35%, #150b24 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  color: #f8f9fa;
}
.entry-experience--login {
  padding-top: 4.8rem;
}
.entry-experience__quote {
  max-width: 640px;
  margin: 0 auto;
  font-family: "Cinzel", serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(248, 249, 250, 0.92);
  text-shadow: 0 4px 25px rgba(15, 23, 42, 0.9);
}
.entry-experience__badge {
  width: min(520px, 100%);
  padding: 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #1c0f2b 0%, #31114a 45%, #6a1fa7 100%);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.65), inset 0 1px 0 rgba(248, 249, 250, 0.2);
  border: 1px solid rgba(248, 249, 250, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #f8f9fa;
}
.entry-experience__star {
  color: #d4af37;
  filter: drop-shadow(0 5px 12px rgba(247, 183, 51, 0.35));
}
.entry-experience__badge-title {
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.entry-experience__badge-highlight {
  color: #d4af37;
}
.entry-experience__badge-subtitle {
  color: rgba(248, 249, 250, 0.85);
  font-weight: 500;
}
.entry-experience__brand {
  font-style: italic;
  color: #f8f9fa;
}
.entry-experience__divider {
  width: 100%;
  margin: 1rem 0 0.5rem;
  opacity: 0.25;
  border-color: rgba(248, 249, 250, 0.35);
}
.entry-experience__badge-footnote {
  color: rgba(248, 249, 250, 0.75);
  letter-spacing: 0.06em;
}
.entry-experience__button {
  width: min(520px, 100%);
  border-radius: 16px;
  padding: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4a1d6a 0%, #a044ff 100%);
  color: #f8f9fa;
  box-shadow: 0 12px 35px rgba(160, 68, 255, 0.35), 0 0 15px rgba(160, 68, 255, 0.25);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.entry-experience__button:hover, .entry-experience__button:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(160, 68, 255, 0.45), 0 0 25px rgba(160, 68, 255, 0.35);
}
.entry-experience__button--full {
  width: 100%;
}
.entry-experience__button--primary {
  background: linear-gradient(120deg, #4a1d6a, #a044ff 85%);
}
.entry-experience__button--ghost {
  background: transparent;
  border: 1px solid rgba(248, 249, 250, 0.5);
  color: #f8f9fa;
  box-shadow: none;
}
.entry-experience__button--ghost:hover, .entry-experience__button--ghost:focus {
  background: rgba(248, 249, 250, 0.08);
  border-color: rgba(248, 249, 250, 0.8);
}
.entry-experience__form-card {
  text-align: left;
  gap: 1rem;
}
.entry-experience__form {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.entry-experience__form .mud-input-root {
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(248, 249, 250, 0.1);
  color: #f8f9fa;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.entry-experience__form .mud-input-root:hover {
  border-color: rgba(160, 68, 255, 0.8);
}
.entry-experience__form .mud-input-root.mud-input-root-filled {
  background: rgba(15, 23, 42, 0.45);
}
.entry-experience__form .mud-input-root.mud-input-root-focused {
  border-color: rgba(160, 68, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(160, 68, 255, 0.25);
}
.entry-experience__form .mud-input-label {
  color: rgba(248, 249, 250, 0.85);
}
.entry-experience__form .mud-input-slot {
  color: #f8f9fa;
}
.entry-experience__input {
  width: 100%;
}
.entry-experience__spinner {
  margin-right: 0.5rem;
  color: #f8f9fa;
}
.entry-experience__error {
  width: 100%;
  border-radius: 8px;
  background: rgba(245, 101, 101, 0.12);
  border: 1px solid rgba(245, 101, 101, 0.4);
  color: #f8f9fa;
}

.tarot-page {
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.95) 0%, rgba(22, 17, 36, 0.92) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  z-index: 1;
  padding: 1rem;
  overflow-y: auto;
}
.tarot-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(1px 1px at 30px 100px, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 100px 300px, rgba(255, 255, 255, 0.6) 50%, transparent 100%), radial-gradient(1px 1px at 200px 120px, rgba(247, 183, 51, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 300px 80px, rgba(247, 183, 51, 0.8) 50%, transparent 100%);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  animation: floatParticle 20s ease-in-out infinite alternate;
}
.tarot-page .mystical-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 10%, rgba(106, 48, 147, 0.05) 0%, transparent 25%), radial-gradient(circle at 90% 90%, rgba(247, 183, 51, 0.05) 0%, transparent 25%), linear-gradient(45deg, rgba(106, 48, 147, 0.03) 25%, transparent 25%), linear-gradient(-45deg, rgba(106, 48, 147, 0.03) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(106, 48, 147, 0.03) 75%), linear-gradient(-45deg, transparent 75%, rgba(247, 183, 51, 0.03) 75%);
  background-size: 40% 40%, 40% 40%, 40px 40px, 40px 40px, 40px 40px, 40px 40px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  animation: floatBackground 60s linear infinite;
}
.tarot-page .mystical-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(106, 48, 147, 0.15) 0%, transparent 40%), radial-gradient(circle at 70% 60%, rgba(247, 183, 51, 0.15) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}
.tarot-page .page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.tarot-page .page-header .header-content {
  white-space: nowrap;
  text-align: center;
  position: relative;
  z-index: 1;
}
.tarot-page .page-header .header-embellishment {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent 0%, rgba(247, 183, 51, 0.5) 50%, transparent 100%);
  position: relative;
  margin: 0 1rem;
}
.tarot-page .page-header .header-embellishment::before, .tarot-page .page-header .header-embellishment::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247, 183, 51, 0.8);
  top: -2px;
}
.tarot-page .page-header .header-embellishment--left::after {
  right: 0;
}
.tarot-page .page-header .header-embellishment--right::before {
  left: 0;
}
.tarot-page .page-header .page-title {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.tarot-page .page-header .title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tarot-page .page-header .title-divider .divider-ornament {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(247, 183, 51, 0.7) 50%, transparent 100%);
}
.tarot-page .tarot-interactive-area {
  margin-bottom: 2rem;
}
.tarot-page .tab-navigation {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(106, 48, 147, 0.3);
  position: relative;
  margin-bottom: 1rem;
}
.tarot-page .tab-navigation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(247, 183, 51, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}
.tarot-page .tab-navigation .tab-item {
  padding: 0.75rem 0;
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
}
.tarot-page .tab-navigation .tab-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.tarot-page .tab-navigation .tab-item::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}
.tarot-page .tab-navigation .tab-item.active {
  color: var(--color-gold);
}
.tarot-page .tab-navigation .tab-item.active::after {
  transform: scaleX(1);
}
.tarot-page .tab-navigation .tab-item:hover:not(.active) {
  color: rgba(255, 255, 255, 0.9);
}
.tarot-page .content-area {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 60px;
  position: relative;
}
.tarot-page .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}
.tarot-page .loading-container .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(106, 48, 147, 0.3);
  border-top: 3px solid var(--color-gold);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  margin-bottom: 1rem;
}
.tarot-page .loading-container p {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.tarot-page .placeholder-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(106, 48, 147, 0.2);
  text-align: center;
}
.tarot-page .placeholder-message .message-icon {
  font-size: 2.5rem;
  color: rgba(106, 48, 147, 0.6);
  margin-bottom: 1rem;
}
.tarot-page .placeholder-message p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.tarot-dialog-backdrop {
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.tarot-card-dialog {
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.95) 0%, rgba(22, 17, 36, 0.92) 100%);
  border: 1px solid rgba(247, 183, 51, 0.2);
}

.tarot-spread-dialog {
  background: linear-gradient(180deg, rgba(11, 8, 20, 0.95) 0%, rgba(22, 17, 36, 0.92) 100%);
  border: 1px solid rgba(247, 183, 51, 0.2);
}

@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes floatParticle {
  0%, 100% {
    opacity: 0.1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes floatBackground {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}
@keyframes subtle-glow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.9;
  }
}
.tarot-encyclopedia {
  padding: var(--spacing-md);
}
.tarot-encyclopedia .encyclopedia-header {
  margin-bottom: 1rem;
}
.tarot-encyclopedia .encyclopedia-header .search-container {
  margin-bottom: 0.75rem;
}
.tarot-encyclopedia .encyclopedia-header .search-container :global(.mud-input) {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(106, 48, 147, 0.3);
}
.tarot-encyclopedia .encyclopedia-header .search-container :global(.mud-input):hover, .tarot-encyclopedia .encyclopedia-header .search-container :global(.mud-input):focus-within {
  border-color: rgba(247, 183, 51, 0.4);
}
.tarot-encyclopedia .encyclopedia-header .search-container :global(.mud-input-adornment) {
  color: var(--color-gold);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1;
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .suit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: 0.25rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .suit-filters.active {
  border-left: 1px solid rgba(var(--color-secondary-rgb), 0.2);
  padding-left: 0.5rem;
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .suit-filters {
  /* Add animation for when filters enter/exit */
  animation: fadeInSlideRight 0.3s ease;
}
@keyframes fadeInSlideRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.5);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 10px rgba(247, 183, 51, 0.3);
  background: rgba(30, 15, 50, 0.7);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip.arcana-filter {
  background: rgba(106, 48, 147, 0.15);
  border-color: rgba(106, 48, 147, 0.3);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip.arcana-filter.active {
  border-color: rgba(106, 48, 147, 0.7);
  color: #d8b5ff;
  box-shadow: 0 0 10px rgba(106, 48, 147, 0.5);
  background: rgba(50, 20, 80, 0.7);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip.suit-wands.active {
  border-color: #ff9800;
  color: #ff9800;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip.suit-cups.active {
  border-color: #29b6f6;
  color: #29b6f6;
  box-shadow: 0 0 10px rgba(41, 182, 246, 0.3);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip.suit-swords.active {
  border-color: #bdbdbd;
  color: #e0e0e0;
  box-shadow: 0 0 10px rgba(189, 189, 189, 0.3);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .filter-chips .filter-chip.suit-pentacles.active {
  border-color: #66bb6a;
  color: #66bb6a;
  box-shadow: 0 0 10px rgba(102, 187, 106, 0.3);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .clear-filters {
  margin-left: 0.5rem;
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .clear-filters .clear-button {
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .clear-filters .clear-button:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  transform: rotate(90deg);
}
.tarot-encyclopedia .encyclopedia-header .filter-controls .clear-filters .clear-button i {
  font-size: 18px;
}
.tarot-encyclopedia .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .tarot-encyclopedia .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .tarot-encyclopedia .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1440px) {
  .tarot-encyclopedia .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.tarot-encyclopedia .card-grid .card-item {
  position: relative;
  z-index: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 10/17.8;
  padding: 0.4rem;
  background: linear-gradient(160deg, rgba(6, 2, 12, 0.9), rgba(28, 12, 40, 0.75));
  border: 1px solid rgba(var(--color-gold-rgb), 0.18);
  box-shadow: var(--shadow-md), 0 18px 35px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}
.tarot-encyclopedia .card-grid .card-item::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(var(--color-gold-rgb), 0.12), transparent 55%);
  opacity: 0.9;
  z-index: 0;
}
.tarot-encyclopedia .card-grid .card-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 25px 45px rgba(var(--color-secondary-rgb), 0.25);
  border-color: rgba(var(--color-gold-rgb), 0.45);
}
.tarot-encyclopedia .card-grid .card-item .encyclopedia-card-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(var(--color-gold-rgb), 0.35);
  background: linear-gradient(135deg, rgba(13, 5, 22, 0.92), rgba(39, 15, 52, 0.85));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 25px rgba(0, 0, 0, 0.5);
}
.tarot-encyclopedia .card-grid .card-item .encyclopedia-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}
.tarot-encyclopedia .card-grid .card-item .encyclopedia-card-img .rcached-image-real,
.tarot-encyclopedia .card-grid .card-item .encyclopedia-card-img .rcached-image-placeholder {
  border-radius: inherit;
}
.tarot-encyclopedia .no-results {
  text-align: center;
  padding: 2.5rem 1rem;
  grid-column: 1/-1;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(106, 48, 147, 0.2);
}
.tarot-encyclopedia .no-results i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(106, 48, 147, 0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tarot-encyclopedia .no-results p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}
.tarot-encyclopedia .no-results .mystical-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5), rgba(30, 15, 35, 0.8));
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  box-shadow: 0 0 15px rgba(247, 183, 51, 0.15);
  border-radius: 20px;
  padding: 0.6rem 1.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tarot-encyclopedia .no-results .mystical-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s ease;
}
.tarot-encyclopedia .no-results .mystical-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(247, 183, 51, 0.3);
  background: linear-gradient(135deg, rgba(126, 58, 167, 0.6), rgba(40, 20, 45, 0.9));
}
.tarot-encyclopedia .no-results .mystical-button:hover::before {
  left: 100%;
}
.tarot-encyclopedia .no-results .mystical-button .r-button__text {
  position: relative;
  z-index: 2;
}
.tarot-encyclopedia .no-results .mystical-button :global(.mud-button-icon-start) {
  margin-right: 0.5rem;
  color: var(--color-gold);
}
.tarot-encyclopedia .encyclopedia-card-img--placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.7);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  z-index: 1;
}
.tarot-encyclopedia .rcached-image-real {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.tarot-encyclopedia .rcached-image-real.fade-in {
  opacity: 1;
}
.tarot-encyclopedia .rcached-image-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}
.tarot-encyclopedia .rcached-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.spread-library {
  padding: 1.5rem 0;
}
.spread-library .spread-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.spread-library .spread-header .section-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
}
.spread-library .spread-header .section-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
.spread-library .spread-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .spread-library .spread-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .spread-library .spread-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.spread-library .tarot-spread-view {
  background: linear-gradient(145deg, rgba(22, 17, 36, 0.95) 0%, rgba(48, 30, 76, 0.9) 100%);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-primary-rgb), 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}
.spread-library .tarot-spread-view::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.2) 0%, rgba(106, 48, 147, 0.2) 25%, rgba(247, 183, 51, 0.2) 50%, rgba(106, 48, 147, 0.2) 75%, rgba(247, 183, 51, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.spread-library .tarot-spread-view:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 50px rgba(106, 48, 147, 0.35), 0 0 20px rgba(247, 183, 51, 0.25);
  border-color: rgba(247, 183, 51, 0.4);
}
.spread-library .tarot-spread-view:hover::before {
  opacity: 0.6;
  animation: mystical-border 15s ease infinite;
}
.spread-library .tarot-spread-view .spread-header {
  padding: 1.25rem;
  margin-bottom: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.spread-library .tarot-spread-view .spread-header .spread-title-area {
  flex: 1;
}
.spread-library .tarot-spread-view .spread-header .spread-title-area .spread-name {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.spread-library .tarot-spread-view .spread-header .spread-title-area .card-count {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
}
.spread-library .tarot-spread-view .spread-header .spread-title-area .card-count i {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-right: 0.3rem;
}
.spread-library .tarot-spread-view .spread-header .practice-btn {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.8) 0%, rgba(146, 58, 187, 0.8) 100%);
  color: white;
  border: 1px solid rgba(106, 48, 147, 0.6);
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.spread-library .tarot-spread-view .spread-header .practice-btn:hover {
  background: linear-gradient(135deg, rgba(126, 68, 167, 0.85) 0%, rgba(166, 78, 207, 0.85) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(106, 48, 147, 0.3);
}
.spread-library .tarot-spread-view .spread-header .practice-btn i {
  font-size: 1.2rem;
}
.spread-library .tarot-spread-view .spread-difficulty-bar {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(106, 48, 147, 0.2);
}
.spread-library .tarot-spread-view .spread-difficulty-bar .difficulty-label {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-right: 0.75rem;
}
.spread-library .tarot-spread-view .spread-difficulty-bar .difficulty-label i {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-right: 0.3rem;
}
.spread-library .tarot-spread-view .spread-difficulty-bar .difficulty-stars {
  display: flex;
  align-items: center;
}
.spread-library .tarot-spread-view .spread-difficulty-bar .difficulty-stars .star-filled {
  color: var(--color-gold);
  font-size: 1rem;
  margin-right: 0.1rem;
}
.spread-library .tarot-spread-view .spread-difficulty-bar .difficulty-stars .star-empty {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  margin-right: 0.1rem;
}
.spread-library .tarot-spread-view .spread-diagram {
  padding: 2.5rem;
  height: 220px;
  min-height: 200px;
  position: relative;
  background: linear-gradient(145deg, rgba(11, 8, 20, 0.5) 0%, rgba(40, 10, 60, 0.4) 100%);
  border-top: 1px solid rgba(106, 48, 147, 0.2);
  border-bottom: 1px solid rgba(106, 48, 147, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.spread-library .tarot-spread-view .spread-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 35%), radial-gradient(circle at 25% 65%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 35%);
  opacity: 0.7;
  pointer-events: none;
}
.spread-library .tarot-spread-view .spread-diagram .spread-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
  background: linear-gradient(135deg, rgba(11, 8, 20, 0.7) 0%, rgba(40, 10, 60, 0.6) 100%);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}
.spread-library .tarot-spread-view .spread-diagram .card-placeholder {
  position: absolute;
  width: 32px;
  height: 54px;
  background: linear-gradient(135deg, #1b0c2e 0%, #3d2564 100%);
  border: 1px solid rgba(247, 183, 51, 0.5);
  border-radius: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(247, 183, 51, 0.2);
}
.spread-library .tarot-spread-view .spread-diagram .card-placeholder::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(255, 215, 128, 0.3);
  border-radius: 3px;
  opacity: 0.8;
}
.spread-library .tarot-spread-view .spread-diagram .card-placeholder::after {
  content: "★";
  font-size: 10px;
  color: rgba(255, 215, 128, 0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.spread-library .tarot-spread-view .spread-diagram .more-positions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(106, 48, 147, 0.2);
}
.spread-library .tarot-spread-view .spread-diagram .generic-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}
.spread-library .tarot-spread-view .spread-diagram .generic-diagram .generic-placeholder {
  width: 24px;
  height: 40px;
  background: linear-gradient(135deg, #1b0c2e 0%, #3d2564 100%);
  border: 1px solid rgba(247, 183, 51, 0.5);
  border-radius: 4px;
  margin: 0 0.75rem;
  position: relative;
  box-shadow: 0 0 5px rgba(247, 183, 51, 0.2);
  transition: all 0.3s ease;
}
.spread-library .tarot-spread-view .spread-diagram .generic-diagram .generic-placeholder:hover {
  transform: scale(1.1);
  border-color: rgba(247, 183, 51, 0.7);
  box-shadow: 0 0 15px rgba(247, 183, 51, 0.3);
}
.spread-library .tarot-spread-view .spread-diagram .generic-diagram .generic-placeholder::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(255, 215, 128, 0.3);
  border-radius: 3px;
}
.spread-library .tarot-spread-view .spread-diagram .generic-diagram .generic-placeholder::after {
  content: "★";
  font-size: 10px;
  color: rgba(255, 215, 128, 0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.spread-library .tarot-spread-view .spread-info {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.spread-library .tarot-spread-view .spread-info .spread-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.spread-library .tarot-spread-view .spread-info .spread-description p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spread-library .tarot-spread-view .spread-info .spread-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}
.spread-library .tarot-spread-view .spread-info .spread-meta .spread-purpose {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.spread-library .tarot-spread-view .spread-info .spread-meta .spread-purpose i {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-right: 0.5rem;
}
.spread-library .tarot-spread-view .spread-info .spread-meta .spread-purpose span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-style: italic;
}
.spread-library .tarot-spread-view .spread-info .spread-meta .spread-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.spread-library .tarot-spread-view .spread-info .spread-meta .spread-categories .category-badge {
  background: rgba(106, 48, 147, 0.2);
  color: #d8b5ff;
  border: 1px solid rgba(106, 48, 147, 0.4);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}
.spread-library .tarot-spread-view .spread-info .spread-meta .spread-categories .category-badge:hover {
  background: rgba(106, 48, 147, 0.3);
  border-color: rgba(106, 48, 147, 0.5);
}
.spread-library .tarot-spread-view .spread-info .spread-meta .spread-categories .more-categories {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
}

@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes float-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.tarot-practice-area {
  padding: var(--spacing-md);
}
.tarot-practice-area .primary-button {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.3) 0%, rgba(var(--color-gold-dark-rgb), 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .primary-button i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .primary-button {
  padding: 0.75rem 1.5rem;
}
.tarot-practice-area .primary-button:hover {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.4) 0%, rgba(var(--color-gold-dark-rgb), 0.6) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-gold-rgb), 0.3);
}
.tarot-practice-area .secondary-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .secondary-button i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .secondary-button {
  padding: 0.75rem 1.5rem;
}
.tarot-practice-area .secondary-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-gold-rgb), 0.3);
}
.tarot-practice-area .card-details-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.3) 0%, rgba(146, 58, 187, 0.3) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .card-details-button i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .card-details-button {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--border-radius-sm);
}
.tarot-practice-area .card-details-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-gold-rgb), 0.2);
}
.tarot-practice-area .back-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: all var(--transition-normal) var(--transition-elegant);
  margin-right: var(--spacing-md);
}
.tarot-practice-area .back-button:hover {
  background: rgba(106, 48, 147, 0.3);
  border-color: rgba(var(--color-gold-rgb), 0.4);
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}
.tarot-practice-area .back-button i {
  color: var(--color-gold);
  font-size: 1.4rem;
}
.tarot-practice-area .close-selector {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: all var(--transition-normal) var(--transition-elegant);
}
.tarot-practice-area .close-selector:hover {
  background: rgba(106, 48, 147, 0.5);
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}
.tarot-practice-area .close-selector i {
  font-size: 1.2rem;
  color: var(--color-gold);
}
.tarot-practice-area .clear-card-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: all var(--transition-normal) var(--transition-elegant);
}
.tarot-practice-area .clear-card-btn:hover {
  background: rgba(106, 48, 147, 0.8);
  transform: scale(1.1);
}
.tarot-practice-area .clear-card-btn i {
  font-size: 14px;
  color: var(--color-gold);
}
.tarot-practice-area .ask-guide-spread-button {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.2) 0%, rgba(var(--color-gold-dark-rgb), 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .ask-guide-spread-button i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .ask-guide-spread-button {
  margin: 0 auto var(--spacing-lg) auto;
  width: auto;
  padding: 0.75rem 1.5rem;
}
.tarot-practice-area .ask-guide-spread-button:hover {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.3) 0%, rgba(var(--color-gold-dark-rgb), 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-gold-rgb), 0.3);
}
.tarot-practice-area .reset-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .reset-button i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .reset-button {
  margin: var(--spacing-md) auto 0;
  border-radius: var(--border-radius-md);
  padding: 0.6rem 1.2rem;
}
.tarot-practice-area .reset-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.6) 0%, rgba(146, 58, 187, 0.6) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}
.tarot-practice-area .return-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .return-button i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .return-button {
  padding: 0.75rem 1.5rem;
}
.tarot-practice-area .return-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-gold-rgb), 0.3);
}
.tarot-practice-area .reset-filters {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .reset-filters i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .reset-filters {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}
.tarot-practice-area .reset-filters:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.3);
}
.tarot-practice-area .deck-button {
  width: 120px;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
  transition: all var(--transition-normal) var(--transition-elegant);
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
}
.tarot-practice-area .deck-button.shuffle-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
}
.tarot-practice-area .deck-button.shuffle-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.6) 0%, rgba(146, 58, 187, 0.6) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}
.tarot-practice-area .deck-button.shuffle-button i {
  color: var(--color-gold);
  font-size: 1.1rem;
}
.tarot-practice-area .deck-button.draw-button {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.15) 0%, rgba(var(--color-gold-dark-rgb), 0.3) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  color: var(--color-gold-light);
}
.tarot-practice-area .deck-button.draw-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.25) 0%, rgba(var(--color-gold-dark-rgb), 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-gold-rgb), 0.2);
}
.tarot-practice-area .deck-button.draw-button i {
  color: var(--color-gold);
  font-size: 1.1rem;
}
.tarot-practice-area .deck-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tarot-practice-area .placeholder-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  margin: var(--spacing-lg) 0;
}
.tarot-practice-area .placeholder-message .message-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(106, 48, 147, 0.2) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.tarot-practice-area .placeholder-message .message-icon i {
  font-size: 3rem;
  color: var(--color-gold);
  animation: pulse-soft 2s infinite alternate;
}
.tarot-practice-area .placeholder-message h3 {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tarot-practice-area .placeholder-message p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}
.tarot-practice-area .placeholder-message .action-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 576px) {
  .tarot-practice-area .placeholder-message .action-buttons {
    flex-direction: column;
  }
}
.tarot-practice-area .practice-header {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
}
.tarot-practice-area .practice-header .practice-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.03em;
}
@media (max-width: 576px) {
  .tarot-practice-area .practice-header .practice-title {
    font-size: 1.4rem;
  }
}
.tarot-practice-area .practice-description {
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}
.tarot-practice-area .practice-description p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 var(--spacing-sm) 0;
}
.tarot-practice-area .practice-description .spread-hint {
  display: flex;
  align-items: center;
  color: var(--color-gold-light);
  font-size: 0.9rem;
  margin-top: var(--spacing-xs);
}
.tarot-practice-area .practice-description .spread-hint i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-xs);
  font-size: 1.2rem;
  color: var(--color-gold);
  transform: rotate(-12deg);
}
.tarot-practice-area .practice-description .spread-hint span {
  font-style: italic;
}
.tarot-practice-area .practice-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
@media (min-width: 768px) {
  .tarot-practice-area .practice-content {
    flex-direction: row;
    align-items: flex-start;
  }
}
.tarot-practice-area .spread-diagram {
  width: 100%;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  position: relative;
}
@media (min-width: 768px) {
  .tarot-practice-area .spread-diagram {
    width: 65%;
  }
}
.tarot-practice-area .spread-diagram .diagram-placeholder {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius-md);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(106, 48, 147, 0.2);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .spread-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 8, 20, 0.7) 0%, rgba(40, 10, 60, 0.6) 100%);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .spread-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 25%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 35%), radial-gradient(ellipse at 25% 65%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 35%);
  opacity: 0.7;
  pointer-events: none;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position {
  position: absolute;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 1;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position.selected {
  z-index: 10;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position.selected .card-placeholder {
  transform: scale(1.15);
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(247, 183, 51, 0.3);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position.selected .card-placeholder::after {
  color: var(--color-gold);
  animation: star-pulse 1.5s ease-in-out infinite alternate;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position.selected .card-placeholder .position-label {
  background: rgba(106, 48, 147, 0.7);
  border-color: var(--color-gold);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position.card-placing .card-placed {
  animation: card-place 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 25px rgba(247, 183, 51, 0.5);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placeholder {
  width: 45px;
  height: 80px;
  background: linear-gradient(135deg, #1b0c2e 0%, #3d2564 100%);
  border: 1px solid rgba(247, 183, 51, 0.5);
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placeholder::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(255, 215, 128, 0.3);
  border-radius: 3px;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placeholder::after {
  content: "★";
  font-size: 14px;
  color: rgba(255, 215, 128, 0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placeholder .position-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  color: var(--color-gold);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  border: 1px solid rgba(247, 183, 51, 0.3);
  z-index: 5;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placeholder:hover {
  transform: scale(1.15);
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(247, 183, 51, 0.3);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placeholder:hover .position-label {
  background: rgba(106, 48, 147, 0.7);
  border-color: var(--color-gold);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed {
  width: 45px;
  height: 80px;
  border-radius: 4px;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  transform-origin: center center;
  border: 1px solid rgba(247, 183, 51, 0.8);
  position: relative;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(247, 183, 51, 0.4);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed:hover .card-actions {
  opacity: 1;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed.showing-details {
  transform: scale(2.5);
  z-index: 100;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(247, 183, 51, 0.5);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed .card-actions {
  position: absolute;
  top: -12px;
  right: -12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed .card-actions .clear-card-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(247, 183, 51, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed .card-actions .clear-card-btn:hover {
  background: rgba(106, 48, 147, 0.8);
  transform: scale(1.1);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed .card-actions .clear-card-btn i {
  font-size: 14px;
  color: var(--color-gold);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed.reversed {
  transform: rotate(180deg);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed.reversed:hover {
  transform: rotate(180deg) scale(1.15);
}
.tarot-practice-area .spread-diagram .diagram-placeholder .card-position .card-placed.reversed.showing-details {
  transform: scale(2.5);
}
.tarot-practice-area .spread-diagram .practice-controls {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  justify-content: center;
  align-items: center;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
  outline: none;
  z-index: 1;
  width: auto;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual:hover {
  transform: translateY(-5px);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual:hover .card-stack {
  transform: translateY(0);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual:hover .deck-prompt {
  background: rgba(106, 48, 147, 0.6);
  border-color: var(--color-gold);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-gold-rgb), 0.2);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual:active {
  transform: translateY(0);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual:focus {
  outline: none;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual:focus .card-stack::before {
  box-shadow: 0 0 0 2px var(--color-gold), 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(106, 48, 147, 0.3);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .card-stack {
  position: relative;
  width: 70px;
  justify-self: center;
  height: 110px;
  transition: all 0.3s ease;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .card-stack::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b0c2e 0%, #3d2564 100%);
  border: 1px solid rgba(247, 183, 51, 0.5);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 3;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .card-stack::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: 3px;
  z-index: 4;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm0 7a1.5 1.5 0 100-3 1.5 1.5 0 000 3z' fill='rgba(247, 183, 51, 0.3)'/%3E%3C/svg%3E") center no-repeat;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .card-stack .card-star {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(247, 183, 51, 0.7);
  font-size: 16px;
  z-index: 5;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .card-stack .stack-card:nth-child(1) {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b0c2e 0%, #3d2564 100%);
  border: 1px solid rgba(247, 183, 51, 0.4);
  border-radius: 5px;
  z-index: 1;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .card-stack .stack-card:nth-child(2) {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b0c2e 0%, #3d2564 100%);
  border: 1px solid rgba(247, 183, 51, 0.3);
  border-radius: 5px;
  z-index: 0;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .card-stack.shuffling {
  animation: deck-shuffle 0.3s ease-in-out alternate infinite;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-visual .deck-prompt {
  width: 100%;
  margin-top: var(--spacing-sm);
  color: var(--color-gold);
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  background: rgba(106, 48, 147, 0.4);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button {
  width: 120px;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
  transition: all var(--transition-normal) var(--transition-elegant);
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button.shuffle-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button.shuffle-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.6) 0%, rgba(146, 58, 187, 0.6) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button.shuffle-button i {
  color: var(--color-gold);
  font-size: 1.1rem;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button.draw-button {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.15) 0%, rgba(var(--color-gold-dark-rgb), 0.3) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  color: var(--color-gold-light);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button.draw-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.25) 0%, rgba(var(--color-gold-dark-rgb), 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-gold-rgb), 0.2);
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button.draw-button i {
  color: var(--color-gold);
  font-size: 1.1rem;
}
.tarot-practice-area .spread-diagram .practice-controls .deck-buttons .deck-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tarot-practice-area .reading-interpretation {
  width: 100%;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
}
@media (min-width: 768px) {
  .tarot-practice-area .reading-interpretation {
    width: 35%;
  }
}
.tarot-practice-area .reading-interpretation h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-gold-light);
  font-family: var(--font-family-heading);
  text-align: center;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tarot-practice-area .reading-interpretation .incomplete-reading {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}
.tarot-practice-area .reading-interpretation .incomplete-reading .progress-indicator {
  margin: var(--spacing-sm) 0;
}
.tarot-practice-area .reading-interpretation .incomplete-reading .progress-indicator .progress-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--spacing-xs);
}
.tarot-practice-area .reading-interpretation .incomplete-reading .progress-indicator .progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.tarot-practice-area .reading-interpretation .incomplete-reading .progress-indicator .progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-gold), var(--color-primary));
  border-radius: 3px;
  transition: width 0.5s ease;
}
.tarot-practice-area .reading-interpretation .incomplete-reading p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-style: italic;
}
.tarot-practice-area .reading-interpretation .position-info h3 {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: var(--spacing-xs);
}
.tarot-practice-area .reading-interpretation .position-info p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}
.tarot-practice-area .reading-interpretation .position-info .card-meaning {
  background: rgba(106, 48, 147, 0.15);
  border: 1px solid rgba(106, 48, 147, 0.2);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm);
}
.tarot-practice-area .reading-interpretation .position-info .card-meaning h4 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}
.tarot-practice-area .reading-interpretation .position-info .card-meaning p {
  margin-bottom: var(--spacing-sm);
}
.tarot-practice-area .reading-interpretation .position-info .card-meaning .card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.tarot-practice-area .reading-interpretation .position-info .card-meaning .card-actions .secondary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.3) 0%, rgba(146, 58, 187, 0.3) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  transition: all 0.3s var(--transition-elegant);
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-sm);
}
.tarot-practice-area .reading-interpretation .position-info .card-meaning .card-actions .secondary-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-gold-rgb), 0.2);
}
.tarot-practice-area .reading-interpretation .position-info .card-meaning .card-actions .secondary-button i {
  color: var(--color-gold);
  font-size: 1.1rem;
}
.tarot-practice-area .reading-interpretation .position-info .card-prompt {
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  border: 1px dashed rgba(var(--color-gold-rgb), 0.3);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-readings-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: var(--spacing-xs);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-readings-list::-webkit-scrollbar {
  width: 4px;
}
.tarot-practice-area .reading-interpretation .complete-reading .position-readings-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.tarot-practice-area .reading-interpretation .complete-reading .position-readings-list::-webkit-scrollbar-thumb {
  background: rgba(var(--color-gold-rgb), 0.6);
  border-radius: 4px;
}
.tarot-practice-area .reading-interpretation .complete-reading .position-readings-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(106, 48, 147, 0.2);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading:last-of-type {
  margin-bottom: var(--spacing-md);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading .position-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xs);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading .position-title .card-name {
  color: var(--color-gold);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--spacing-sm) 0;
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading .card-details-button {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.3) 0%, rgba(146, 58, 187, 0.3) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  transition: all 0.3s var(--transition-elegant);
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--border-radius-sm);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading .card-details-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-gold-rgb), 0.2);
}
.tarot-practice-area .reading-interpretation .complete-reading .position-reading .card-details-button i {
  color: var(--color-gold);
  font-size: 1.1rem;
}
.tarot-practice-area .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(20, 0, 0, 0.3);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 85, 85, 0.3);
  margin: var(--spacing-lg) 0;
}
.tarot-practice-area .error-container .error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 85, 85, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 85, 85, 0.4);
}
.tarot-practice-area .error-container .error-icon i {
  font-size: 3rem;
  color: #ff5555;
}
.tarot-practice-area .error-container .error-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}
.tarot-practice-area .error-container .return-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  color: var(--color-gold-light);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all 0.3s var(--transition-elegant);
  cursor: pointer;
}
.tarot-practice-area .error-container .return-button i {
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-practice-area .error-container .return-button {
  padding: 0.75rem 1.5rem;
}
.tarot-practice-area .error-container .return-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-gold-rgb), 0.3);
}
.tarot-practice-area .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  text-align: center;
}
.tarot-practice-area .loading-container .loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(106, 48, 147, 0.3);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: var(--spacing-md);
}
.tarot-practice-area .loading-container .loading-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}
.tarot-practice-area .card-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  animation: fade-in 0.3s ease;
}
.tarot-practice-area .card-selector-overlay .card-selector-container {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: linear-gradient(135deg, rgba(25, 10, 38, 0.95) 0%, rgba(40, 15, 60, 0.95) 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--color-primary-rgb), 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-selector-header {
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-selector-header h3 {
  font-size: 1.2rem;
  color: var(--color-gold);
  font-family: var(--font-family-heading);
  margin: 0;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-selector-header .close-selector {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--color-gold);
  transition: all var(--transition-normal) var(--transition-elegant);
  padding: 0;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-selector-header .close-selector:hover {
  background: rgba(106, 48, 147, 0.5);
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-selector-header .close-selector i {
  font-size: 1.2rem;
  color: var(--color-gold);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .card-search {
  margin-bottom: var(--spacing-sm);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .card-search .mud-input {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .card-search .mud-input:focus-within {
  border-color: rgba(var(--color-gold-rgb), 0.5);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .card-search .mud-input-label {
  color: rgba(255, 255, 255, 0.7);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .card-search .mud-input-slot {
  color: var(--color-gold);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .filter-chips .filter-chip {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .filter-chips .filter-chip:hover {
  background: rgba(106, 48, 147, 0.3);
  border-color: rgba(var(--color-gold-rgb), 0.5);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .filter-controls .filter-chips .filter-chip.active {
  background: rgba(106, 48, 147, 0.5);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  overflow-y: auto;
  max-height: 50vh;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item:hover {
  transform: translateY(-5px);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item:hover .card-art {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--color-primary-rgb), 0.3);
  border-color: var(--color-gold);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item:hover .card-art::after {
  opacity: 0;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item:hover .card-name {
  color: var(--color-gold);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item .card-art {
  width: 100%;
  aspect-ratio: 3/5;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  position: relative;
  transition: all 0.2s ease;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item .card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.7) 100%);
  transition: opacity 0.2s ease;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item .card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .card-item .card-name {
  margin-top: var(--spacing-xs);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  transition: color 0.2s ease;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .no-results {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .no-results i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--spacing-sm);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .no-results p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .no-results .reset-filters {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  transition: all 0.3s var(--transition-elegant);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .no-results .reset-filters:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.3);
}
.tarot-practice-area .card-selector-overlay .card-selector-container .card-grid .no-results .reset-filters i {
  font-size: 1.2rem;
  color: var(--color-gold);
  margin: 0;
}
.tarot-practice-area .card-placement-particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
}
.tarot-practice-area .card-placement-particles .mystical-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.tarot-practice-area .card-hover-glow {
  position: absolute;
  inset: -5px;
  background: radial-gradient(circle at center, rgba(var(--color-gold-rgb), 0.3) 0%, transparent 70%);
  border-radius: inherit;
  opacity: 0;
  animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-soft {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}
@keyframes card-place {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  50% {
    transform: translateY(5px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes deck-shuffle {
  0% {
    transform: translateX(-3px) translateY(-2px) rotate(-2deg);
  }
  100% {
    transform: translateX(3px) translateY(2px) rotate(2deg);
  }
}
@keyframes pulse-glow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes star-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.card-of-the-day {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 10, 32, 0.85) 0%, rgba(43, 25, 64, 0.8) 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(247, 183, 51, 0.25);
  padding: 1.5rem;
  margin: 0 auto 2rem;
  max-width: 800px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(106, 48, 147, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.4s ease;
}
.card-of-the-day.collapsed {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  background: linear-gradient(135deg, rgba(17, 10, 32, 0.9) 0%, rgba(43, 25, 64, 0.85) 100%);
}
.card-of-the-day.collapsed .cotd-title {
  margin-bottom: 0;
  font-size: 1.2rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-of-the-day.collapsed .cotd-title::before, .card-of-the-day.collapsed .cotd-title::after {
  display: none;
}
.card-of-the-day.collapsed .collapse-toggle {
  top: 0.75rem;
  right: 0.75rem;
}
.card-of-the-day .collapse-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease, top 0s, right 0s;
}
.card-of-the-day .collapse-toggle:hover {
  background: rgba(106, 48, 147, 0.4);
  transform: scale(1.1);
}
.collapsed .card-of-the-day .collapse-toggle:hover {
  transform: scale(1.1);
}
.card-of-the-day .collapse-toggle i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}
.card-of-the-day .cotd-collapsed-info {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  font-size: 0.95rem;
  gap: 0.75rem;
}
.card-of-the-day .cotd-collapsed-info .mini-card-image {
  width: 24px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  margin-right: -0.25rem;
}
.card-of-the-day .cotd-collapsed-info .mini-card-image.reversed {
  transform: rotate(180deg);
}
.card-of-the-day .cotd-collapsed-info .card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  padding-left: 0.5rem;
  color: var(--color-gold-light);
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-collapsed-info .card-name {
    max-width: 100px;
  }
}
.card-of-the-day .cotd-collapsed-info i.orientation-icon {
  font-size: 1rem;
  color: var(--color-gold-light);
  margin: 0 -0.25rem;
}
.card-of-the-day .cotd-collapsed-info .streak-badge {
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-gold-light);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-collapsed-info {
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  .card-of-the-day .cotd-collapsed-info .mini-card-image {
    width: 20px;
    height: 35px;
  }
}
.card-of-the-day::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(1px 1px at 20px 30px, rgba(247, 183, 51, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 40px 70px, rgba(247, 183, 51, 0.6) 50%, transparent 100%), radial-gradient(1px 1px at 50px 160px, rgba(247, 183, 51, 0.9) 50%, transparent 100%), radial-gradient(1px 1px at 120px 50px, rgba(247, 183, 51, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 150px 80px, rgba(247, 183, 51, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 200px 160px, rgba(247, 183, 51, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 250px 230px, rgba(247, 183, 51, 0.9) 50%, transparent 100%), radial-gradient(1px 1px at 300px 100px, rgba(247, 183, 51, 0.6) 50%, transparent 100%);
  background-repeat: repeat;
  background-size: 350px 350px;
  opacity: 0.15;
  z-index: 0;
  animation: floating-particles 15s ease-in-out infinite alternate;
  pointer-events: none;
}
.card-of-the-day::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.3), rgba(247, 183, 51, 0.5), rgba(106, 48, 147, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  animation: border-glow 5s ease-in-out infinite alternate;
  z-index: 0;
}
.card-of-the-day .cotd-title {
  text-align: center;
  font-family: var(--font-family-heading);
  font-size: 1.6rem;
  font-weight: 600;
  position: relative;
  color: #fff;
  z-index: 1;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}
.card-of-the-day .cotd-title.collapsed-title {
  text-align: left;
  font-size: 1.2rem;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-title.collapsed-title {
    font-size: 1rem;
  }
}
.card-of-the-day .cotd-title::before, .card-of-the-day .cotd-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(247, 183, 51, 0.7), transparent);
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-title::before, .card-of-the-day .cotd-title::after {
    width: 40px;
  }
}
.card-of-the-day .cotd-title::before {
  right: calc(100% + 1rem);
}
@media (max-width: 767px) {
  .card-of-the-day .cotd-title::before {
    right: calc(100% + 0.5rem);
  }
}
.card-of-the-day .cotd-title::after {
  left: calc(100% + 1rem);
}
@media (max-width: 767px) {
  .card-of-the-day .cotd-title::after {
    left: calc(100% + 0.5rem);
  }
}
.card-of-the-day .cotd-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}
.card-of-the-day .cotd-loading .cotd-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(106, 48, 147, 0.3);
  border-top: 3px solid var(--color-gold);
  border-radius: 50%;
  margin-bottom: 1rem;
  animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
.card-of-the-day .cotd-loading p {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.card-of-the-day .cotd-deck-area {
  position: relative;
  padding: 1rem 0 2rem;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.card-of-the-day .cotd-deck-area.animating .deck-controls {
  pointer-events: none;
  opacity: 0.5;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 220px;
  margin: 0 auto 2rem;
  perspective: 1000px;
  z-index: 2;
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container {
    height: 180px;
  }
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container.shuffling {
  pointer-events: none;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .fake-shuffle-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: all 0.5s cubic-bezier(0.2, 0.85, 0.4, 1);
  will-change: transform;
  transform-origin: bottom center;
  z-index: 1;
  transform-style: preserve-3d;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.flipped {
  transform: translate(-50%, -50%) rotateY(180deg) !important;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.flipped .tarot-element__card-face--front {
  z-index: 1 !important;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.flipped .tarot-element__card-face--back {
  z-index: 2 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.revealed .tarot-element__card-face--back {
  visibility: visible !important;
  opacity: 1 !important;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.preloaded .tarot-element__card-face--back {
  opacity: 0;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.preloaded .tarot-element__card-face--back img {
  opacity: 1;
  visibility: visible;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.preloaded .tarot-element__card-face--front {
  opacity: 1;
  z-index: 2;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card:hover:not(.flipped) {
  transform: translateY(-8px);
  filter: brightness(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(106, 48, 147, 0.4), 0 0 15px rgba(247, 183, 51, 0.2);
  z-index: 10;
}
@media (min-width: 768px) {
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card:hover:not(.flipped) {
    transform: translateY(-12px);
  }
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left {
  transform: translate(-120%, -50%) rotate(-12deg);
  z-index: 1;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left:hover {
  transform: translate(-110%, -65%) rotate(-8deg);
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left {
    transform: translate(-105%, -50%) rotate(-10deg);
  }
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left:hover {
    transform: translate(-95%, -65%) rotate(-7deg);
  }
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left-center {
  transform: translate(-85%, -50%) rotate(-6deg);
  z-index: 2;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left-center:hover {
  transform: translate(-80%, -65%) rotate(-4deg);
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left-center {
    transform: translate(-75%, -50%) rotate(-5deg);
  }
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-left-center:hover {
    transform: translate(-70%, -65%) rotate(-3deg);
  }
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-center {
  transform: translate(-50%, -50%);
  z-index: 3;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-center:hover {
  transform: translate(-50%, -65%) scale(1.05);
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right-center {
  transform: translate(-15%, -50%) rotate(6deg);
  z-index: 2;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right-center:hover {
  transform: translate(-20%, -65%) rotate(4deg);
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right-center {
    transform: translate(-25%, -50%) rotate(5deg);
  }
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right-center:hover {
    transform: translate(-30%, -65%) rotate(3deg);
  }
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right {
  transform: translate(20%, -50%) rotate(12deg);
  z-index: 1;
}
.card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right:hover {
  transform: translate(10%, -65%) rotate(8deg);
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right {
    transform: translate(5%, -50%) rotate(10deg);
  }
  .card-of-the-day .cotd-deck-area .tarot-element__spread-container .tarot-element__card.fan-position-right:hover {
    transform: translate(-5%, -65%) rotate(7deg);
  }
}
.card-of-the-day .cotd-deck-area .deck-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  z-index: 3;
  position: relative;
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-deck-area .deck-controls {
    gap: 0.75rem;
  }
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button {
  background: linear-gradient(135deg, rgba(40, 20, 60, 0.85) 0%, rgba(60, 30, 80, 0.85) 50%, rgba(40, 20, 60, 0.85) 100%);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(106, 48, 147, 0.6);
  border-radius: 2rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 20px rgba(106, 48, 147, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
@media (max-width: 480px) {
  .card-of-the-day .cotd-deck-area .deck-controls .deck-button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button i {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(60, 30, 85, 0.9) 0%, rgba(80, 40, 105, 0.9) 50%, rgba(60, 30, 85, 0.9) 100%);
  transform: translateY(-3px);
  border-color: rgba(247, 183, 51, 0.7);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(106, 48, 147, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button:hover:not(:disabled)::after {
  left: 100%;
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button:hover:not(:disabled) i {
  transform: translateX(-3px);
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(106, 48, 147, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition-duration: 0.1s;
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button.draw-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.75) 0%, rgba(126, 58, 167, 0.75) 50%, rgba(106, 48, 147, 0.75) 100%);
}
.card-of-the-day .cotd-deck-area .deck-controls .deck-button.draw-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(126, 58, 167, 0.85) 0%, rgba(146, 68, 187, 0.85) 50%, rgba(126, 58, 167, 0.85) 100%);
}
.card-of-the-day .cotd-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.card-of-the-day .cotd-particles .mystical-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: rgba(247, 183, 51, 0.8);
  box-shadow: 0 0 4px rgba(247, 183, 51, 0.6);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  will-change: transform, opacity;
}
.card-of-the-day .cotd-reveal-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s ease-out;
  z-index: 2;
  position: relative;
  transition: max-height 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s ease;
}
.card-of-the-day .cotd-reveal-area.collapsed-area {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
@media (min-width: 767px) {
  .card-of-the-day .cotd-reveal-area {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
}
.card-of-the-day .cotd-reveal-area .cotd-card-container {
  margin-bottom: 1.5rem;
  position: relative;
  flex-shrink: 0;
  perspective: 1000px;
}
@media (min-width: 767px) {
  .card-of-the-day .cotd-reveal-area .cotd-card-container {
    margin-right: 2rem;
    margin-bottom: 0;
  }
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card {
  animation: cardRevealAnim 1.2s ease-out;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(106, 48, 147, 0.4);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card .tarot-element__card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card .tarot-element__card-face--front {
  z-index: 2;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card .tarot-element__card-face--back {
  transform: rotateY(180deg);
  z-index: 1;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card .tarot-element__card-face--back img {
  opacity: 1;
  visibility: visible;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(106, 48, 147, 0.5), 0 0 20px rgba(247, 183, 51, 0.2);
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card.flipped {
  transform: rotateY(180deg);
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card.flipped .tarot-element__card-face--front {
  z-index: 1 !important;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card.flipped .tarot-element__card-face--back {
  z-index: 2 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.7), rgba(255, 223, 128, 0.5), rgba(247, 183, 51, 0.7));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
  z-index: 3;
}
.card-of-the-day .cotd-reveal-area .cotd-card-container .cotd-card.pulse-effect {
  animation: card-pulse 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel {
  flex: 1;
  max-width: 100%;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  overflow-x: hidden;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed {
  opacity: 1;
  transform: translateY(0);
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > * {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUpStaggered 0.5s ease-out forwards;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(1) {
  animation-delay: 0.38s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(2) {
  animation-delay: 0.46s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(3) {
  animation-delay: 0.54s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(4) {
  animation-delay: 0.62s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(5) {
  animation-delay: 0.7s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(6) {
  animation-delay: 0.78s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(7) {
  animation-delay: 0.86s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view > *:nth-child(8) {
  animation-delay: 0.94s;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .card-details-view .card-actions {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUpStaggered 0.5s ease-out 1s forwards;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel.details-revealed .streak-container {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.2s forwards;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel .placeholder-content {
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel .placeholder-content .shimmer-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: tarotPlaceholderShimmer 2s infinite linear;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel .streak-container {
  margin-bottom: 1.5rem;
  text-align: center;
}
.card-of-the-day .cotd-reveal-area .cotd-details-panel .streak-container .streak-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 1rem;
  color: var(--color-gold-light);
  font-size: 0.85rem;
  font-weight: 500;
}
@media (max-width: 767px) {
  .card-of-the-day .cotd-reveal-area .cotd-details-panel .streak-container .streak-indicator {
    font-size: 0.8rem;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeUpStaggered {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cardRevealAnim {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  40% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
  70% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes floating-particles {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 5% 25%;
  }
}
@keyframes border-glow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes tarotPlaceholderShimmer {
  0% {
    background-position: -220% 0;
  }
  75% {
    background-position: 220% 0;
  }
  100% {
    background-position: 260% 0;
  }
}
@keyframes card-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(106, 48, 147, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 60px rgba(106, 48, 147, 0.6), 0 0 25px rgba(247, 183, 51, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(106, 48, 147, 0.4);
  }
}
@keyframes collapseHeight {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}
@keyframes expandHeight {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}
.mud-dialog.tarot-card-details-dialog {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(13, 9, 25, 0.98) 0%, rgba(22, 17, 36, 0.96) 100%);
  border-radius: var(--border-radius-xl);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 60px rgba(106, 48, 147, 0.25), 0 0 15px rgba(247, 183, 51, 0.15);
  overflow: visible;
  border: 1px solid rgba(247, 183, 51, 0.15);
  transform: scale(1);
  animation: dialog-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 85vh;
  height: auto;
  backdrop-filter: blur(5px);
}
@media (min-width: 576px) {
  .mud-dialog.tarot-card-details-dialog {
    max-width: 450px;
  }
}
@media (min-width: 992px) {
  .mud-dialog.tarot-card-details-dialog {
    max-width: 500px;
  }
}
.mud-dialog.tarot-card-details-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.05) 0%, rgba(106, 48, 147, 0.05) 25%, rgba(247, 183, 51, 0.05) 50%, rgba(106, 48, 147, 0.05) 75%, rgba(247, 183, 51, 0.05) 100%);
  background-size: 400% 400%;
  opacity: 0.5;
  z-index: 0;
  animation: mystical-border 15s ease infinite;
  will-change: background-position;
}
.mud-dialog.tarot-card-details-dialog .mud-dialog-content {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  position: relative;
  max-height: 85vh;
  height: 100%;
}
.mud-dialog.tarot-card-details-dialog .scrollable-content {
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  padding-top: 0;
}
@supports (scrollbar-width: thin) {
  .mud-dialog.tarot-card-details-dialog .scrollable-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 48, 147, 0.6) rgba(0, 0, 0, 0.2);
  }
}
.mud-dialog.tarot-card-details-dialog .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(var(--color-dark-rgb), 0.6);
  border: none;
  color: rgba(var(--color-light-rgb), 0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}
.mud-dialog.tarot-card-details-dialog .close-btn:hover {
  background: rgba(var(--color-secondary-rgb), 0.5);
  color: white;
  transform: rotate(90deg);
}

.tarot-dialog-backdrop {
  background-color: rgba(8, 5, 15, 0.9);
  backdrop-filter: blur(8px);
}

@keyframes dialog-reveal {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
    filter: blur(10px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
    filter: blur(12px);
  }
}
@keyframes floating-particles {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 10% 10%;
  }
}
.mud-dialog-container .mud-overlay-tarot-card-details {
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.7);
}

.card-details-view {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  overflow-x: hidden;
  color: rgba(var(--color-light-rgb), 0.9);
  position: relative;
  font-size: 0.95rem;
  padding-top: 1.5rem;
}
.card-details-view .card-details-container {
  overflow-x: hidden;
  margin-top: 1rem;
  background: rgba(var(--color-dark-rgb), 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  position: relative;
}
.card-details-view .card-details-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--color-gold-rgb), 0) 0%, rgba(var(--color-gold-rgb), 0.5) 50%, rgba(var(--color-gold-rgb), 0) 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.card-details-view .card-details-image {
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
}
.card-details-view .card-details-image img {
  max-width: 240px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(var(--color-secondary-rgb), 0.4);
  transition: transform var(--transition-fast);
}
.card-details-view .card-details-image img.reversed {
  transform: rotate(180deg);
}
.card-details-view .card-details-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(var(--color-secondary-rgb), 0.3) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}
.card-details-view .card-details-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -2;
  opacity: 0.6;
  background-image: radial-gradient(circle at 20% 30%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px), radial-gradient(circle at 70% 20%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px), radial-gradient(circle at 40% 80%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px), radial-gradient(circle at 80% 60%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px);
  filter: blur(1px);
  pointer-events: none;
}
.card-details-view .details-header {
  margin-bottom: 1rem;
}
.card-details-view .details-header .header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.card-details-view .details-header .card-name {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-gold-light);
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(var(--color-gold-rgb), 0.3);
}
.card-details-view .details-header .orientation-toggle {
  display: flex;
  align-items: center;
  background: rgba(var(--color-secondary-rgb), 0.2);
  border: 1px solid rgba(var(--color-secondary-rgb), 0.3);
  border-radius: var(--border-radius-pill);
  padding: 4px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: rgba(var(--color-light-rgb), 0.9);
}
.card-details-view .details-header .orientation-toggle:hover {
  background: rgba(var(--color-secondary-rgb), 0.3);
  transform: translateY(-2px);
}
.card-details-view .details-header .orientation-toggle span {
  font-size: 0.85rem;
  font-weight: 500;
}
.card-details-view .details-header .orientation-toggle i {
  margin-left: 5px;
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}
.card-details-view .details-header .orientation-static {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(var(--color-light-rgb), 0.7);
  background: rgba(var(--color-secondary-rgb), 0.1);
  border-radius: var(--border-radius-pill);
  padding: 4px 12px;
}
.card-details-view .details-header .card-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}
.card-details-view .details-header .card-type .arcana-badge, .card-details-view .details-header .card-type .suit-badge, .card-details-view .details-header .card-type .card-type-badge {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.card-details-view .details-header .card-type .arcana-badge.major {
  background: rgba(106, 48, 147, 0.2);
  color: #d8b5ff;
  border: 1px solid rgba(106, 48, 147, 0.4);
}
.card-details-view .details-header .card-type .arcana-badge.minor {
  background: rgba(var(--color-secondary-rgb), 0.2);
  color: rgba(var(--color-light-rgb), 0.9);
  border: 1px solid rgba(var(--color-secondary-rgb), 0.4);
}
.card-details-view .details-header .card-type .suit-badge.wands {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}
.card-details-view .details-header .card-type .suit-badge.cups {
  background: rgba(41, 182, 246, 0.1);
  color: #29b6f6;
  border: 1px solid rgba(41, 182, 246, 0.3);
}
.card-details-view .details-header .card-type .suit-badge.swords {
  background: rgba(189, 189, 189, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(189, 189, 189, 0.3);
}
.card-details-view .details-header .card-type .suit-badge.pentacles {
  background: rgba(102, 187, 106, 0.1);
  color: #66bb6a;
  border: 1px solid rgba(102, 187, 106, 0.3);
}
.card-details-view .details-header .card-type .card-type-badge {
  background: rgba(var(--color-gold-rgb), 0.1);
  color: var(--color-gold-light);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
}
.card-details-view .section-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.card-details-view .section-header i {
  font-size: 1.3rem;
  margin-right: 8px;
  color: var(--color-gold);
}
.card-details-view .section-header strong {
  color: var(--color-gold-light);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.card-details-view .card-description {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: rgba(var(--color-light-rgb), 0.9);
  position: relative;
}
.card-details-view .card-description::after {
  content: "";
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(to right, rgba(var(--color-secondary-rgb), 0.4), transparent);
}
.card-details-view .card-description p {
  margin: 0;
}
.card-details-view .card-meaning {
  margin-bottom: 1rem;
}
.card-details-view .card-meaning p {
  margin: 0;
  line-height: 1.5;
  padding-left: 0.5rem;
}
.card-details-view .card-keywords {
  margin-bottom: 1rem;
}
.card-details-view .card-keywords .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0.5rem;
}
.card-details-view .card-keywords .keywords .keyword {
  background: rgba(var(--color-secondary-rgb), 0.15);
  border: none;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.card-details-view .card-keywords .keywords .keyword:hover {
  background: rgba(var(--color-secondary-rgb), 0.25);
  transform: translateY(-2px);
}
.card-details-view .card-keywords .keywords .keyword.reversed {
  background: rgba(133, 60, 60, 0.15);
}
.card-details-view .card-keywords .keywords .keyword.reversed:hover {
  background: rgba(133, 60, 60, 0.25);
}
.card-details-view .card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px;
  margin-bottom: 1rem;
  position: relative;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.1) 0%, rgba(var(--color-secondary-rgb), 0.15) 100%), radial-gradient(circle at 15% 15%, rgba(var(--color-gold-rgb), 0.07) 0%, transparent 35%), radial-gradient(circle at 85% 85%, rgba(var(--color-gold-rgb), 0.07) 0%, transparent 35%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(var(--color-gold-rgb), 0.15);
  box-shadow: inset 0 0 15px rgba(var(--color-primary-rgb), 0.1), 0 5px 15px rgba(0, 0, 0, 0.2);
}
.card-details-view .card-meta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(1.5px circle at 10% 20%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 8px), radial-gradient(1px circle at 20% 50%, rgba(var(--color-gold-rgb), 0.5) 0px, transparent 6px), radial-gradient(1.2px circle at 30% 80%, rgba(var(--color-gold-rgb), 0.5) 0px, transparent 7px), radial-gradient(1px circle at 70% 30%, rgba(var(--color-gold-rgb), 0.5) 0px, transparent 6px), radial-gradient(1.5px circle at 90% 60%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 8px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  filter: blur(1px);
}
.card-details-view .card-meta::after {
  content: "";
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(to right, rgba(var(--color-gold-rgb), 0.4), transparent);
}
.card-details-view .card-meta::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  right: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(to left, rgba(var(--color-gold-rgb), 0.4), transparent);
}
.card-details-view .card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
  padding: 4px 6px;
  transition: transform var(--transition-fast);
}
.card-details-view .card-meta .meta-item:hover {
  transform: translateY(-2px);
}
.card-details-view .card-meta .meta-item:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(var(--color-gold-rgb), 0.4));
}
.card-details-view .card-meta .meta-item i {
  font-size: 1.2rem;
  color: var(--color-gold);
  transition: all var(--transition-fast);
}
.card-details-view .card-meta .meta-item strong {
  color: var(--color-gold-light);
  font-weight: 500;
  margin-right: 4px;
}
.card-details-view .card-meta .meta-item span {
  font-size: 0.9rem;
}
.card-details-view .card-meta .meta-item .color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.card-details-view .card-advice {
  margin-bottom: 1rem;
}
.card-details-view .card-advice p {
  margin: 0;
  line-height: 1.5;
  font-style: italic;
  position: relative;
  padding-left: 0.5rem;
}
.card-details-view .card-advice p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}
.card-details-view .collapsible-section {
  margin-bottom: 1rem;
  overflow: hidden;
  background: rgba(var(--color-secondary-rgb), 0.08);
  border-radius: var(--border-radius-md);
}
.card-details-view .collapsible-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.8rem;
  background: rgba(var(--color-secondary-rgb), 0.12);
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}
.card-details-view .collapsible-section .section-header:hover {
  background: rgba(var(--color-secondary-rgb), 0.18);
}
.card-details-view .collapsible-section .section-header .section-title {
  font-weight: 500;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
}
.card-details-view .collapsible-section .section-header .section-title i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-gold);
}
.card-details-view .collapsible-section .section-header .toggle-icon {
  transition: transform 0.4s var(--ease-in-out-quad);
}
.card-details-view .collapsible-section .section-header .toggle-icon.expanded {
  transform: rotate(180deg);
}
.card-details-view .collapsible-section .section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}
.card-details-view .collapsible-section .section-content.expanded {
  max-height: 500px;
  transition: max-height 0.6s var(--ease-in-out-quad);
}
.card-details-view .collapsible-section .section-content .symbol-item {
  padding: 0.65rem 0.8rem;
}
.card-details-view .collapsible-section .section-content .symbol-item:not(:last-child) {
  position: relative;
}
.card-details-view .collapsible-section .section-content .symbol-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: rgba(var(--color-secondary-rgb), 0.15);
}
.card-details-view .collapsible-section .section-content .symbol-item .symbol-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-gold-light);
}
.card-details-view .collapsible-section .section-content .symbol-item .symbol-label i {
  margin-right: 0.4rem;
  font-size: 1.1rem;
  color: var(--color-gold);
}
.card-details-view .collapsible-section .section-content .symbol-item .symbol-value {
  padding-left: 1.75rem;
  display: block;
  margin-bottom: 0.4rem;
}
.card-details-view .collapsible-section .section-content .symbol-item .symbols-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding-left: 1.75rem;
}
.card-details-view .collapsible-section .section-content .symbol-item .symbols-list .symbol {
  background: rgba(var(--color-secondary-rgb), 0.15);
  border: none;
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.card-details-view .collapsible-section .section-content .symbol-item .symbols-list .symbol:hover {
  background: rgba(var(--color-secondary-rgb), 0.25);
  transform: translateY(-2px);
}
.card-details-view .collapsible-section .section-content .symbol-item .symbols-list .symbol.tag {
  background: rgba(var(--color-gold-rgb), 0.1);
  color: var(--color-gold-light);
}
.card-details-view .collapsible-section .section-content .symbol-item .symbols-list .symbol.tag:hover {
  background: rgba(var(--color-gold-rgb), 0.2);
}
.card-details-view .card-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
.card-details-view .card-actions .ask-guide-button {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.9) 0%, rgba(var(--color-gold-dark-rgb), 1) 100%);
  color: rgba(var(--color-dark-rgb), 0.9);
  border: none;
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--color-light-rgb), 0.15) inset, 0 1px 1px rgba(var(--color-light-rgb), 0.2) inset;
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  outline: none;
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.card-details-view .card-actions .ask-guide-button::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(var(--color-light-rgb), 0.15), transparent);
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  z-index: -1;
}
.card-details-view .card-actions .ask-guide-button:hover, .card-details-view .card-actions .ask-guide-button:active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(var(--color-light-rgb), 0.2) inset, 0 1px 1px rgba(var(--color-light-rgb), 0.3) inset, 0 0 20px rgba(var(--color-gold-rgb), 0.2);
}
.card-details-view .card-actions .ask-guide-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--color-light-rgb), 0.1) inset;
}
.card-details-view .card-actions .ask-guide-button i {
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

.tarot-element__card.reveal-transition {
  transition: opacity 1.2s ease-in-out, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(var(--color-secondary-rgb), 0.5), 0 0 20px rgba(var(--color-gold-rgb), 0.3);
  transform-style: preserve-3d;
}
.tarot-element__card.reveal-transition.flipped {
  transform: rotateY(180deg) scale(1.05);
}
.tarot-element__card.reveal-transition .tarot-element__card-face--back {
  transition: opacity 1s ease-in-out;
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
.tarot-element__card.reveal-transition .tarot-element__card-face--back img {
  transition: opacity 1.5s ease-in-out 0.2s;
  opacity: 1 !important;
}
.tarot-element__card.reveal-transition .tarot-element__card-face--front {
  backface-visibility: hidden;
}

.cotd-card-container {
  transition: opacity 0.8s ease-in-out;
}
.cotd-card-container.entering {
  opacity: 0;
}
.cotd-card-container.visible {
  opacity: 1;
}

.card-of-the-day .cotd-details-panel {
  padding: 1.5rem;
  background: rgba(var(--color-dark-rgb), 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  transition: opacity 0.5s var(--ease-in-out-quad), transform 0.5s var(--ease-in-out-quad);
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
}
.card-of-the-day .cotd-details-panel.details-revealed {
  opacity: 1;
  transform: translateY(0);
}
.card-of-the-day .cotd-details-panel .streak-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.card-of-the-day .cotd-details-panel .streak-container .streak-indicator {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--color-gold-rgb), 0.15);
  border-radius: var(--border-radius-pill);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: var(--color-gold-light);
  animation: pulseStreak 2s infinite alternate ease-in-out;
}

.card-detail-modal .card-details-container {
  background: rgba(var(--color-dark-rgb), 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  width: 100%;
  position: relative;
}
.card-detail-modal .card-details-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--color-gold-rgb), 0) 0%, rgba(var(--color-gold-rgb), 0.5) 50%, rgba(var(--color-gold-rgb), 0) 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.card-detail-modal .card-image-container {
  position: relative;
  width: 240px;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}
.card-detail-modal .card-image-container .card-image {
  width: 100%;
  max-width: 240px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(var(--color-secondary-rgb), 0.4);
  transition: transform var(--transition-fast);
}
.card-detail-modal .card-image-container .card-image.reversed {
  transform: rotate(180deg);
}
.card-detail-modal .card-image-container .image-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(var(--color-secondary-rgb), 0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.8;
}
.card-detail-modal .card-image-container .image-particles {
  position: absolute;
  inset: -20px;
  z-index: -2;
  opacity: 0.6;
  background-image: radial-gradient(circle at 20% 30%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px), radial-gradient(circle at 70% 20%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px), radial-gradient(circle at 40% 80%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px), radial-gradient(circle at 80% 60%, rgba(var(--color-gold-rgb), 0.6) 0px, transparent 2px);
  filter: blur(1px);
}
.card-detail-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(var(--color-dark-rgb), 0.6);
  border: none;
  color: rgba(var(--color-light-rgb), 0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}
.card-detail-modal .close-btn:hover {
  background: rgba(var(--color-secondary-rgb), 0.5);
  color: white;
  transform: rotate(90deg);
}
.card-detail-modal .card-detail-scroll {
  overflow-y: auto;
  max-height: 85vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes pulseStreak {
  0% {
    box-shadow: 0 0 8px rgba(var(--color-gold-rgb), 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgba(var(--color-gold-rgb), 0.4);
  }
}
/* Main Dialog Container */
.mud-dialog.tarot-spread-detail-dialog {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(13, 9, 25, 0.98) 0%, rgba(30, 20, 50, 0.95) 50%, rgba(22, 17, 36, 0.96) 100%);
  border-radius: var(--border-radius-xl);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 60px rgba(106, 48, 147, 0.35), 0 0 20px rgba(247, 183, 51, 0.2);
  overflow: visible;
  border: 1px solid rgba(247, 183, 51, 0.2);
  transform: scale(1);
  animation: dialog-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 85vh;
  height: auto;
  backdrop-filter: blur(8px);
  /* Subtle mystical border effect */
}
.mud-dialog.tarot-spread-detail-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(247, 183, 51, 0.2) 0%, rgba(106, 48, 147, 0.2) 25%, rgba(247, 183, 51, 0.2) 50%, rgba(106, 48, 147, 0.2) 75%, rgba(247, 183, 51, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0.6;
  z-index: 0;
  animation: mystical-border 15s ease infinite;
  will-change: background-position;
}
.mud-dialog.tarot-spread-detail-dialog {
  /* Override MudBlazor styles */
}
.mud-dialog.tarot-spread-detail-dialog .mud-dialog-content {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  position: relative;
  max-height: 85vh;
  height: 100%;
}
.mud-dialog.tarot-spread-detail-dialog .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(247, 183, 51, 0.15);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-size: 1.5rem;
}
.mud-dialog.tarot-spread-detail-dialog .close-btn:hover {
  background: rgba(106, 48, 147, 0.4);
  color: #fff;
  transform: rotate(90deg);
}
.mud-dialog.tarot-spread-detail-dialog .close-btn i {
  font-size: 24px;
}
.mud-dialog.tarot-spread-detail-dialog .scrollable-content {
  overflow-y: auto;
  border-radius: var(--border-radius-lg, 18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(106, 48, 147, 0.6) rgba(0, 0, 0, 0.2);
  height: 100%;
  max-height: calc(85vh - 20px);
}
.mud-dialog.tarot-spread-detail-dialog .scrollable-content::-webkit-scrollbar {
  width: 6px;
  border-radius: var(--border-radius-lg, 18px);
}
.mud-dialog.tarot-spread-detail-dialog .scrollable-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-lg, 18px);
  margin-block: 8px;
}
.mud-dialog.tarot-spread-detail-dialog .scrollable-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(106, 48, 147, 0.6) 0%, rgba(76, 33, 102, 0.8) 50%, rgba(106, 48, 147, 0.6) 100%);
  border-radius: var(--border-radius-lg, 18px);
  border: 1px solid rgba(247, 183, 51, 0.1);
  box-shadow: inset 0 0 3px rgba(247, 183, 51, 0.2);
  min-height: 30px;
}
.mud-dialog.tarot-spread-detail-dialog .scrollable-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(247, 183, 51, 0.6) 0%, rgba(217, 153, 21, 0.8) 50%, rgba(247, 183, 51, 0.6) 100%);
  box-shadow: inset 0 0 5px rgba(247, 183, 51, 0.3);
}
.mud-dialog.tarot-spread-detail-dialog .scrollable-content {
  /* Prevent scrollbar from overflowing rounded corners */
  clip-path: inset(0 round var(--border-radius-lg, 18px));
  -webkit-clip-path: inset(0 round var(--border-radius-lg, 18px));
  background-clip: padding-box;
}
.mud-dialog.tarot-spread-detail-dialog .dialog-actions {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(106, 48, 147, 0.3);
  background: rgba(0, 0, 0, 0.2);
}
.mud-dialog.tarot-spread-detail-dialog .dialog-actions .primary-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.9) 0%, rgba(146, 58, 187, 0.9) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.mud-dialog.tarot-spread-detail-dialog .dialog-actions .primary-button:hover {
  background: linear-gradient(135deg, rgba(126, 68, 167, 0.9) 0%, rgba(166, 78, 207, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(106, 48, 147, 0.3);
}
.mud-dialog.tarot-spread-detail-dialog .dialog-actions .secondary-button {
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
}
.mud-dialog.tarot-spread-detail-dialog .dialog-actions .secondary-button:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.mud-dialog.tarot-spread-detail-dialog {
  /* Content styles inside dialog */
}
.mud-dialog.tarot-spread-detail-dialog .detail-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  position: relative;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--color-gold-rgb), 0) 0%, rgba(var(--color-gold-rgb), 0.3) 50%, rgba(var(--color-gold-rgb), 0) 100%);
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-title {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) {
  .mud-dialog.tarot-spread-detail-dialog .detail-header .spread-title {
    font-size: 1.6rem;
  }
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-meta .meta-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-meta .meta-item i {
  color: var(--color-gold);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-meta .difficulty-stars {
  display: flex;
  align-items: center;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-meta .difficulty-stars i {
  color: var(--color-gold);
  margin-right: 0.25rem;
  font-size: 1.2rem;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-meta .difficulty-stars i.star-filled {
  color: var(--color-gold);
  font-size: 1rem;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-meta .difficulty-stars i.star-empty {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-categories .category-badge {
  background: rgba(106, 48, 147, 0.2);
  color: #d8b5ff;
  border: 1px solid rgba(106, 48, 147, 0.4);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-categories .category-badge:hover {
  background: rgba(106, 48, 147, 0.3);
  transform: translateY(-2px);
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-purpose {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}
.mud-dialog.tarot-spread-detail-dialog .detail-header .spread-purpose i {
  color: var(--color-gold);
  margin-right: 0.5rem;
  font-size: 1.1rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram-container {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .mud-dialog.tarot-spread-detail-dialog .spread-diagram-container {
    flex-direction: row;
    gap: 1.5rem;
  }
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram {
  padding: 1.5rem;
  flex: 1;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .mud-dialog.tarot-spread-detail-dialog .spread-diagram {
    width: 40%;
    margin-bottom: 0;
  }
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-lg);
  height: 350px;
  position: relative;
  border: 1px solid rgba(106, 48, 147, 0.2);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder {
    height: 300px;
  }
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .spread-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(11, 8, 20, 0.7) 0%, rgba(40, 10, 60, 0.6) 100%);
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .spread-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 25%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 35%), radial-gradient(ellipse at 25% 65%, rgba(var(--color-gold-rgb), 0.03) 0%, transparent 35%);
  opacity: 0.7;
  pointer-events: none;
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .generic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-gold-light);
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .generic-placeholder i {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  opacity: 0.8;
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .generic-placeholder span {
  color: var(--color-gold-light);
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder {
  position: absolute;
  width: 30px;
  height: 52px;
  background: linear-gradient(135deg, #1b0c2e 0%, #3d2564 100%);
  border: 1px solid rgba(247, 183, 51, 0.5);
  border-radius: 4px;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: all 0.3s ease;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(255, 215, 128, 0.3);
  border-radius: 3px;
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder::after {
  content: "★";
  font-size: 14px;
  color: rgba(255, 215, 128, 0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder .position-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  color: var(--color-gold);
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  border: 1px solid rgba(247, 183, 51, 0.3);
  z-index: 5;
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder:hover, .mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder.highlighted {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(247, 183, 51, 0.3);
  z-index: 10;
}
.mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder:hover .position-label, .mud-dialog.tarot-spread-detail-dialog .spread-diagram .diagram-placeholder .card-placeholder.highlighted .position-label {
  opacity: 1;
  background: rgba(106, 48, 147, 0.6);
  border-color: var(--color-gold);
}
.mud-dialog.tarot-spread-detail-dialog .spread-info {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(106, 48, 147, 0.2);
  flex: 1;
}
@media (min-width: 768px) {
  .mud-dialog.tarot-spread-detail-dialog .spread-info {
    width: 60%;
  }
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .info-section {
  margin-bottom: 1.5rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .info-section:last-child {
  margin-bottom: 0;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .info-section .section-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(106, 48, 147, 0.2);
  padding-bottom: 0.5rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .info-section .section-header i {
  color: var(--color-gold);
  margin-right: 0.5rem;
  font-size: 1.25rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .info-section .section-header strong {
  color: var(--color-gold-light);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .spread-description-box {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .spread-description-box p {
  margin: 0;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .position-list {
  padding-right: 0.5rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .position-list .position-item {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(106, 48, 147, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .position-list .position-item:hover, .mud-dialog.tarot-spread-detail-dialog .spread-info .position-list .position-item.highlighted {
  background: rgba(106, 48, 147, 0.15);
  border-color: rgba(106, 48, 147, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .position-list .position-item .position-name {
  color: var(--color-gold-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .position-list .position-item .position-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.5;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .reading-steps {
  padding-right: 0.5rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .reading-steps .reading-step {
  display: flex;
  margin-bottom: 1rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .reading-steps .reading-step .step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(106, 48, 147, 0.2);
  border: 1px solid rgba(106, 48, 147, 0.4);
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 0.75rem;
  margin-top: 0.2rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .reading-steps .reading-step .step-content {
  flex: 1;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .reading-steps .reading-step .step-content strong {
  display: block;
  color: var(--color-gold-light);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.mud-dialog.tarot-spread-detail-dialog .spread-info .reading-steps .reading-step .step-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Dialog Backdrop */
.mud-overlay-dark {
  background-color: rgba(8, 5, 15, 0.9);
  backdrop-filter: blur(8px);
}

@keyframes dialog-reveal {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.tarot-learning-center {
  width: 100%;
}
.tarot-learning-center .learning-header {
  margin-bottom: var(--spacing-lg);
}
.tarot-learning-center .learning-header .section-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.03em;
  margin-bottom: var(--spacing-md);
}
@media (max-width: 576px) {
  .tarot-learning-center .learning-header .section-title {
    font-size: 1.6rem;
  }
}
.tarot-learning-center .learning-header .search-box {
  position: relative;
  margin-bottom: var(--spacing-md);
}
.tarot-learning-center .learning-header .search-box i {
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold);
  font-size: 1.2rem;
}
.tarot-learning-center .learning-header .search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) calc(var(--spacing-md) + 1.2rem);
  color: var(--color-light);
  font-size: 1rem;
  transition: all 0.3s var(--transition-elegant);
}
.tarot-learning-center .learning-header .search-box input:focus {
  outline: none;
  border-color: rgba(var(--color-gold-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--color-gold-rgb), 0.2);
}
.tarot-learning-center .learning-header .search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.tarot-learning-center .learning-header .filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}
.tarot-learning-center .learning-header .filter-tags .filter-tag {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  border-radius: var(--border-radius-pill);
  padding: calc(var(--spacing-xs) / 2) var(--spacing-sm);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s var(--transition-elegant);
  user-select: none;
}
.tarot-learning-center .learning-header .filter-tags .filter-tag:hover {
  background: rgba(var(--color-primary-rgb), 0.2);
  border-color: rgba(var(--color-primary-rgb), 0.5);
}
.tarot-learning-center .learning-header .filter-tags .filter-tag.active {
  background: rgba(var(--color-primary-rgb), 0.3);
  border-color: rgba(var(--color-gold-rgb), 0.4);
  color: var(--color-gold);
}
.tarot-learning-center .learning-header .filter-tags .filter-tag.active:hover {
  background: rgba(var(--color-primary-rgb), 0.4);
}
.tarot-learning-center .featured-article {
  margin-bottom: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
}
.tarot-learning-center .featured-article .featured-content {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .tarot-learning-center .featured-article .featured-content {
    grid-template-columns: 1fr 1fr;
  }
}
.tarot-learning-center .featured-article .featured-content .featured-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.tarot-learning-center .featured-article .featured-content .featured-image-container .featured-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
@media (max-width: 767px) {
  .tarot-learning-center .featured-article .featured-content .featured-image-container .featured-image {
    height: 280px;
  }
}
.tarot-learning-center .featured-article .featured-content .featured-image-container .featured-label {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  z-index: 3;
  display: inline-block;
  background: var(--color-gold);
  color: rgba(0, 0, 0, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  padding: calc(var(--spacing-xs) / 2) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.tarot-learning-center .featured-article .featured-content .featured-image-container .featured-category {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  z-index: 3;
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(106, 48, 147, 0.5);
  border-radius: var(--border-radius-md);
  padding: calc(var(--spacing-xs) / 2) var(--spacing-sm);
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: capitalize;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.tarot-learning-center .featured-article .featured-content .featured-image-container .featured-read-time {
  position: absolute;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xs);
  padding: calc(var(--spacing-xs) / 2) var(--spacing-sm);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.tarot-learning-center .featured-article .featured-content .featured-image-container .featured-read-time i {
  font-size: 0.9rem;
  color: var(--color-gold);
}
.tarot-learning-center .featured-article .featured-content .featured-text {
  background: linear-gradient(135deg, rgba(22, 17, 36, 0.95) 0%, rgba(48, 30, 76, 0.9) 100%);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tarot-learning-center .featured-article .featured-content .featured-text .featured-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--color-light);
}
@media (max-width: 576px) {
  .tarot-learning-center .featured-article .featured-content .featured-text .featured-title {
    font-size: 1.4rem;
  }
}
.tarot-learning-center .featured-article .featured-content .featured-text .featured-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
}
.tarot-learning-center .collapsible-articles {
  margin-bottom: var(--spacing-xl);
}
.tarot-learning-center .collapsible-articles .collapsible-article {
  margin-bottom: var(--spacing-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  cursor: pointer;
  transition: background 0.2s ease;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-header:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-header .article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold-light);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-header .toggle-icon {
  color: var(--color-gold);
  transition: transform 0.3s var(--transition-elegant);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-header .toggle-icon.expanded {
  transform: rotate(180deg);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--transition-elegant);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body.expanded {
  max-height: 3000px;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  overflow-x: auto;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(h1) {
  font-family: var(--font-family-heading);
  font-size: 1.6rem;
  color: var(--color-gold);
  margin: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(var(--color-gold-rgb), 0.3);
  padding-bottom: var(--spacing-xs);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(h2) {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  color: var(--color-gold-light);
  margin: var(--spacing-md) 0 var(--spacing-sm);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(h3) {
  font-size: 1.2rem;
  color: var(--color-gold-light);
  margin: var(--spacing-md) 0 var(--spacing-xs);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(h4), .tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(h5), .tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(h6) {
  font-size: 1.1rem;
  color: var(--color-gold-light);
  margin: var(--spacing-sm) 0 var(--spacing-xs);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(p) {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(ul), .tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(ol) {
  margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-md);
  padding-left: var(--spacing-sm);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(ul) li, .tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(ol) li {
  margin-bottom: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.85);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(blockquote) {
  border-left: 3px solid var(--color-gold);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.2);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(strong) {
  color: var(--color-gold-light);
  font-weight: 600;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(em) {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(a) {
  color: var(--color-gold);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(a):hover {
  color: var(--color-gold-light);
  text-decoration-color: var(--color-gold-light);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(code) {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: var(--border-radius-xs);
  font-family: monospace;
  font-size: 0.9em;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(pre) {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-sm);
  margin: var(--spacing-sm) 0 var(--spacing-md);
  overflow-x: auto;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(pre) code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(table) {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(table) th, .tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(table) td {
  padding: var(--spacing-sm);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(table) th {
  background: rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-gold-light);
  text-align: left;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(table) tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.2);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(hr) {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--color-gold-rgb), 0.3), transparent);
  border: none;
  margin: var(--spacing-md) 0;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(img) {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(var(--color-gold-rgb), 0.2);
  margin: var(--spacing-sm) 0;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(.task-list-item) {
  list-style-type: none;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(.task-list-item) input[type=checkbox] {
  margin-right: 0.5em;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(.footnotes) {
  border-top: 1px solid rgba(var(--color-gold-rgb), 0.2);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  font-size: 0.9em;
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(.footnotes) ol {
  padding-left: var(--spacing-md);
}
.tarot-learning-center .collapsible-articles .collapsible-article .article-body .article-content :deep(.footnotes) .footnote-backref {
  font-size: 0.8em;
  margin-left: 0.3em;
}
.tarot-learning-center .article-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}
@media (min-width: 640px) {
  .tarot-learning-center .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .tarot-learning-center .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tarot-learning-center .article-grid .article-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--transition-elegant);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}
.tarot-learning-center .article-grid .article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--color-primary-rgb), 0.3);
  border-color: rgba(var(--color-gold-rgb), 0.4);
}
.tarot-learning-center .article-grid .article-card:hover .article-image-container img {
  transform: scale(1.05);
}
.tarot-learning-center .article-grid .article-card:hover .read-more i {
  transform: translateX(3px);
}
.tarot-learning-center .article-grid .article-card .article-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.tarot-learning-center .article-grid .article-card .article-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tarot-learning-center .article-grid .article-card .article-image-container .article-category {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  border-radius: var(--border-radius-pill);
  padding: calc(var(--spacing-xs) / 2) var(--spacing-sm);
  font-size: 0.75rem;
  color: var(--color-gold);
  z-index: 2;
}
.tarot-learning-center .article-grid .article-card .article-image-container .read-time {
  position: absolute;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--border-radius-pill);
  padding: calc(var(--spacing-xs) / 2) var(--spacing-sm);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tarot-learning-center .article-grid .article-card .article-image-container .read-time i {
  font-size: 0.9rem;
  color: var(--color-gold);
}
.tarot-learning-center .article-grid .article-card .article-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.tarot-learning-center .article-grid .article-card .article-content .article-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--color-light);
}
.tarot-learning-center .article-grid .article-card .article-content .article-excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}
.tarot-learning-center .article-grid .article-card .article-content .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
}
.tarot-learning-center .article-grid .article-card .article-content .read-more i {
  margin-left: var(--spacing-xs);
  transition: transform 0.2s ease;
}
.tarot-learning-center .article-grid .article-card .article-content .read-more:hover {
  color: var(--color-gold-light);
}
.tarot-learning-center .pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}
.tarot-learning-center .pagination .pagination-button {
  min-width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  transition: all 0.2s var(--transition-elegant);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tarot-learning-center .pagination .pagination-button.active {
  background: rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-gold);
  border-color: rgba(var(--color-gold-rgb), 0.3);
}
.tarot-learning-center .pagination .pagination-button:hover:not(.active):not(:disabled) {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}
.tarot-learning-center .pagination .pagination-button.nav-button {
  min-width: auto;
  padding: 0 var(--spacing-sm);
}
.tarot-learning-center .pagination .pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tarot-learning-center .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  text-align: center;
}
.tarot-learning-center .loading-container .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(var(--color-primary-rgb), 0.3);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: var(--spacing-md);
}
.tarot-learning-center .loading-container p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}
.tarot-learning-center .service-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}
.tarot-learning-center .service-unavailable .error-icon {
  font-size: 3rem;
  color: rgba(255, 85, 85, 0.8);
  margin-bottom: var(--spacing-md);
}
.tarot-learning-center .service-unavailable h3 {
  font-size: 1.4rem;
  color: var(--color-light);
  margin-bottom: var(--spacing-sm);
}
.tarot-learning-center .service-unavailable p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xs);
  max-width: 500px;
}
.tarot-learning-center .service-unavailable .retry-button {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.4) 0%, rgba(146, 58, 187, 0.4) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  margin-top: var(--spacing-md);
  color: var(--color-gold-light);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}
.tarot-learning-center .service-unavailable .retry-button:hover {
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.5) 0%, rgba(146, 58, 187, 0.5) 100%);
  border: 1px solid rgba(var(--color-gold-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--color-primary-rgb), 0.2);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.astrology-page {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, rgb(240.7804878049, 36.0195121951, 36.0195121951) 100%);
}
.astrology-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(1px 1px at 30px 100px, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 100px 300px, rgba(255, 255, 255, 0.6) 50%, transparent 100%), radial-gradient(1px 1px at 200px 120px, rgba(106, 48, 147, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 300px 80px, rgba(106, 48, 147, 0.8) 50%, transparent 100%);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  animation: floatParticle 20s ease-in-out infinite alternate;
}
.astrology-page .celestial-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.astrology-page .celestial-background .stars, .astrology-page .celestial-background .zodiac-wheel {
  pointer-events: none;
}
.astrology-page .celestial-background .stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)), radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0)), radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)), radial-gradient(1px 1px at 130px 80px, #a044ff, rgba(0, 0, 0, 0)), radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.8;
  animation: twinkle 5s infinite alternate;
  mix-blend-mode: screen;
}
.astrology-page .celestial-background .zodiac-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg) scale(1.5);
  width: 100vw;
  height: 100vw;
  max-width: 500px;
  max-height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  filter: drop-shadow(0 0 15px #6a3093);
  animation: rotate 120s linear infinite;
}
.astrology-page .coming-soon-container {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.astrology-page .coming-soon-content {
  margin: 0 auto;
  padding: 1.35rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(106, 48, 147, 0.2), 0 0 15px rgba(106, 48, 147, 0.1) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  max-width: 306px;
  width: 88%;
  position: relative;
}
.astrology-page .coming-soon-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(106, 48, 147, 0.3);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.2) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(106, 48, 147, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(106, 48, 147, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0.6;
  z-index: 0;
  animation: mystical-border 15s ease infinite;
}
.astrology-page .coming-soon-content .coming-soon-badge {
  position: absolute;
  top: -13.5px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6a3093 0%, #ffffff 100%);
  color: white;
  font-weight: bold;
  padding: 0.315rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(106, 48, 147, 0.5);
  animation: float 3s ease-in-out infinite;
  z-index: 20;
}
.astrology-page .coming-soon-content .coming-soon-badge i {
  font-size: 0.9rem;
  animation: spin 3s linear infinite;
}
.astrology-page .coming-soon-content h1 {
  font-family: "Cinzel", serif;
  font-weight: 300;
  font-size: 1.8rem;
  margin: 0.45rem 0 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.7), #a044ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.astrology-page .coming-soon-content .divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  margin: 0.72rem auto;
  width: 70%;
}
.astrology-page .coming-soon-content p {
  color: #f8f9fa;
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.astrology-page .coming-soon-content .feature-preview {
  display: flex;
  flex-direction: column;
  gap: 0.675rem;
  width: 100%;
  margin-top: 0.45rem;
}
.astrology-page .coming-soon-content .feature-preview .feature-item {
  display: flex;
  align-items: center;
  background: rgba(14.25, 21.85, 39.9, 0.5);
  border-radius: 0.5rem;
  padding: 0.45rem 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid rgba(106, 48, 147, 0.5);
}
.astrology-page .coming-soon-content .feature-preview .feature-item:hover {
  transform: translateX(3px);
  background: rgba(14.25, 21.85, 39.9, 0.7);
  border-left-color: #6a3093;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.astrology-page .coming-soon-content .feature-preview .feature-item i {
  color: #a044ff;
  font-size: 1.125rem;
  margin-right: 0.675rem;
}
.astrology-page .coming-soon-content .feature-preview .feature-item span {
  color: #f8f9fa;
  font-size: 0.81rem;
}
.astrology-page,
.astrology-page .coming-soon-container,
.astrology-page .coming-soon-content {
  overflow: visible;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes floatParticle {
  0%, 100% {
    opacity: 0.1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}
@media (max-width: 767px) {
  .astrology-page {
    height: calc(90vh - 50px);
  }
}
@media (max-width: 360px), (max-height: 640px) {
  .astrology-page .coming-soon-content {
    padding: 1.125rem 0.9rem;
  }
  .astrology-page .coming-soon-content h1 {
    font-size: 1.575rem;
  }
  .astrology-page .coming-soon-content p {
    font-size: 0.81rem;
    margin-bottom: 0.675rem;
  }
  .astrology-page .coming-soon-content .feature-preview {
    gap: 0.45rem;
  }
  .astrology-page .coming-soon-content .feature-preview .feature-item {
    padding: 0.36rem 0.675rem;
  }
  .astrology-page .coming-soon-content .feature-preview .feature-item i {
    font-size: 0.99rem;
  }
  .astrology-page .coming-soon-content .feature-preview .feature-item span {
    font-size: 0.72rem;
  }
}
.palmistry-page {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, rgb(241.8353658537, 52.2646341463, 52.2646341463) 100%);
}
.palmistry-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(1px 1px at 30px 100px, rgba(255, 255, 255, 0.8) 50%, transparent 100%), radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 100px 300px, rgba(255, 255, 255, 0.6) 50%, transparent 100%), radial-gradient(1px 1px at 200px 120px, rgba(245, 101, 101, 0.7) 50%, transparent 100%), radial-gradient(1px 1px at 300px 80px, rgba(245, 101, 101, 0.8) 50%, transparent 100%);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  animation: floatParticle 20s ease-in-out infinite alternate;
}
.palmistry-page .palmistry-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.palmistry-page .palmistry-background .palm-lines, .palmistry-page .palmistry-background .mystical-hand {
  pointer-events: none;
}
.palmistry-page .palmistry-background .mystical-hand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  width: 100vw;
  height: 100vw;
  max-width: 500px;
  max-height: 500px;
  background-image: url("/_content/MyOracle.Shared/images/hand-outline.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  filter: drop-shadow(0 0 15px #f56565);
  animation: pulse-hand 4s ease-in-out infinite;
}
.palmistry-page .coming-soon-container {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.palmistry-page .coming-soon-content {
  margin: 0 auto;
  padding: 1.35rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 101, 101, 0.2), 0 0 15px rgba(245, 101, 101, 0.1) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  max-width: 306px;
  width: 88%;
  position: relative;
}
.palmistry-page .coming-soon-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 101, 101, 0.3);
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(245, 101, 101, 0.2) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(245, 101, 101, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, rgba(245, 101, 101, 0.2) 100%);
  background-size: 400% 400%;
  opacity: 0.6;
  z-index: 0;
  animation: mystical-border 15s ease infinite;
}
.palmistry-page .coming-soon-content .coming-soon-badge {
  position: absolute;
  top: -13.5px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f56565 0%, rgba(255, 255, 255, 0.7) 100%);
  color: white;
  font-weight: bold;
  padding: 0.315rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 101, 101, 0.5);
  animation: float 3s ease-in-out infinite;
  z-index: 20;
}
.palmistry-page .coming-soon-content .coming-soon-badge i {
  font-size: 0.9rem;
  animation: spin 3s linear infinite;
}
.palmistry-page .coming-soon-content h1 {
  font-family: "Cinzel", serif;
  font-weight: 300;
  font-size: 1.8rem;
  margin: 0.45rem 0 0;
  background: linear-gradient(to right, rgb(246, 116.4, 116.4), rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.palmistry-page .coming-soon-content .divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 101, 101, 0.5), transparent);
  margin: 0.72rem auto;
  width: 70%;
}
.palmistry-page .coming-soon-content p {
  color: #f8f9fa;
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.palmistry-page .coming-soon-content .feature-preview {
  display: flex;
  flex-direction: column;
  gap: 0.675rem;
  width: 100%;
  margin-top: 0.45rem;
}
.palmistry-page .coming-soon-content .feature-preview .feature-item {
  display: flex;
  align-items: center;
  background: rgba(14.25, 21.85, 39.9, 0.5);
  border-radius: 0.5rem;
  padding: 0.45rem 0.9rem;
  transition: all 0.3s ease;
  border-left: 3px solid rgba(245, 101, 101, 0.5);
}
.palmistry-page .coming-soon-content .feature-preview .feature-item:hover {
  transform: translateX(3px);
  background: rgba(14.25, 21.85, 39.9, 0.7);
  border-left-color: #f56565;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.palmistry-page .coming-soon-content .feature-preview .feature-item i {
  color: rgb(246, 116.4, 116.4);
  font-size: 1.125rem;
  margin-right: 0.675rem;
}
.palmistry-page .coming-soon-content .feature-preview .feature-item span {
  color: #f8f9fa;
  font-size: 0.81rem;
}

@keyframes mystical-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes floatParticle {
  0%, 100% {
    opacity: 0.1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}
@keyframes pulse-hand {
  0%, 100% {
    opacity: 0.07;
    filter: drop-shadow(0 0 15px #f56565);
  }
  50% {
    opacity: 0.1;
    filter: drop-shadow(0 0 25px #f56565);
  }
}
@media (max-width: 767px) {
  .palmistry-page {
    height: calc(90vh - 50px);
  }
}
@media (max-width: 360px), (max-height: 640px) {
  .palmistry-page .coming-soon-content {
    padding: 1.125rem 0.9rem;
  }
  .palmistry-page .coming-soon-content h1 {
    font-size: 1.575rem;
  }
  .palmistry-page .coming-soon-content p {
    font-size: 0.81rem;
    margin-bottom: 0.675rem;
  }
  .palmistry-page .coming-soon-content .feature-preview {
    gap: 0.45rem;
  }
  .palmistry-page .coming-soon-content .feature-preview .feature-item {
    padding: 0.36rem 0.675rem;
  }
  .palmistry-page .coming-soon-content .feature-preview .feature-item i {
    font-size: 0.99rem;
  }
  .palmistry-page .coming-soon-content .feature-preview .feature-item span {
    font-size: 0.72rem;
  }
}
.coming-soon-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.coming-soon-page .coming-soon-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  z-index: 2;
  padding: 2rem;
}
.coming-soon-page .coming-soon-content {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.coming-soon-page .coming-soon-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(106, 48, 147, 0.3), 0 0 20px rgba(106, 48, 147, 0.15) inset;
}
.coming-soon-page .coming-soon-content h1 {
  font-family: "Cinzel", serif;
  font-weight: 300;
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.coming-soon-page .coming-soon-content .divider {
  height: 1px;
  margin: 1.5rem auto;
  width: 70%;
}
.coming-soon-page .coming-soon-content p {
  color: #f8f9fa;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.coming-soon-page .coming-soon-content .learning-preview {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.coming-soon-page .coming-soon-content .learning-preview .learning-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(106, 48, 147, 0.2), rgba(245, 101, 101, 0.2));
  border: 1px solid rgba(106, 48, 147, 0.3);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.coming-soon-page .coming-soon-content .learning-preview .learning-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(106, 48, 147, 0) 0%, rgba(106, 48, 147, 0.1) 50%, rgba(106, 48, 147, 0) 100%);
  animation: comingSoonShimmer 2s infinite;
}
.coming-soon-page .coming-soon-content .learning-preview .learning-badge span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.coming-soon-page .coming-soon-content .feature-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2.5rem 0;
}
.coming-soon-page .coming-soon-content .feature-preview .feature-item {
  display: flex;
  align-items: center;
  background: rgba(14.25, 21.85, 39.9, 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}
.coming-soon-page .coming-soon-content .feature-preview .feature-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
}
.coming-soon-page .coming-soon-content .feature-preview .feature-item span {
  color: #f8f9fa;
  font-size: 1rem;
}
.coming-soon-page .coming-soon-content .return-link {
  display: inline-flex;
  align-items: center;
  color: #f8f9fa;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  margin-top: 1rem;
}
.coming-soon-page .coming-soon-content .return-link i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

@keyframes comingSoonShimmer {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  75% {
    transform: translateX(140%);
    opacity: 1;
  }
  100% {
    transform: translateX(180%);
    opacity: 0;
  }
}
@media (max-width: 767px) {
  .coming-soon-page .coming-soon-content {
    padding: 2rem 1.5rem;
  }
  .coming-soon-page .coming-soon-content h1 {
    font-size: 2rem;
  }
  .coming-soon-page .coming-soon-content p {
    font-size: 1rem;
  }
}
.hybrid-mobile {
  scroll-behavior: auto;
}
.hybrid-mobile .agent-card-deck__container {
  contain: layout style;
  transform-style: flat;
  perspective: none;
  will-change: transform;
}
.hybrid-mobile .agent-swipe-wrapper {
  contain: layout;
}
.hybrid-mobile .message-virtualize-wrapper,
.hybrid-mobile #virtualize-scroll-wrapper {
  contain: layout paint style;
  transform-style: flat;
  perspective: none;
}
.hybrid-mobile .message-list-container,
.hybrid-mobile .scrollable-content {
  scroll-behavior: auto;
}
.hybrid-mobile .layout-transition-overlay {
  contain: layout;
}
.hybrid-mobile .onboarding__content.agent-swipe-content {
  contain: layout;
}

.hybrid-mobile-root,
body.hybrid-mobile {
  --hybrid-safe-area-top: max(env(safe-area-inset-top, 0px), var(--dynamic-safe-area-top, 0px));
  --hybrid-safe-area-bottom: max(env(safe-area-inset-bottom, 0px), var(--dynamic-safe-area-bottom, 0px));
  --hybrid-safe-area-inline: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

.hybrid-mobile-root[data-platform=android],
body.hybrid-mobile[data-platform=android] {
  --hybrid-safe-area-top: var(--dynamic-safe-area-top, 0px);
  --hybrid-safe-area-bottom: var(--dynamic-safe-area-bottom, 0px);
}

.hybrid-mobile-root .chat-page .chat-header,
body.hybrid-mobile .chat-page .chat-header {
  padding-top: calc(var(--hybrid-safe-area-top, 0px) + clamp(0rem, 1vh, 0.5rem));
  padding-bottom: clamp(0.25rem, 2vh, 0.75rem);
  padding-inline: clamp(var(--spacing-sm, 0.75rem), 4vw, var(--spacing-xl, 1.5rem));
  min-height: auto;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(8, 6, 18, 0.95) 0%, rgba(8, 6, 18, 0.65) 70%, transparent 100%);
}

.hybrid-mobile-root .chat-page .agent-header,
body.hybrid-mobile .chat-page .agent-header {
  display: flex;
  grid-template-columns: none;
  column-gap: 0;
  gap: var(--spacing-sm, 0.75rem);
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-shadow: none;
  width: 100%;
}

.hybrid-mobile-root .chat-page .agent-header__info,
body.hybrid-mobile .chat-page .agent-header__info {
  flex: 1 1 auto;
  min-width: 0;
}

.hybrid-mobile-root .chat-page .agent-header__buttons,
body.hybrid-mobile .chat-page .agent-header__buttons {
  flex-shrink: 0;
  display: flex;
  gap: var(--spacing-xs, 0.5rem);
}
.hybrid-mobile-root .chat-page .agent-header__buttons .r-button,
body.hybrid-mobile .chat-page .agent-header__buttons .r-button {
  min-height: 38px;
}

.hybrid-mobile-root .tarot-page,
body.hybrid-mobile .tarot-page {
  padding-top: calc(var(--hybrid-safe-area-top, 0px) + clamp(0.5rem, 3vw, 1.25rem));
  padding-bottom: calc(var(--hybrid-safe-area-bottom, 0px) + clamp(0.5rem, 2vw, 1rem));
}

.hybrid-mobile-root .tarot-page .page-header,
body.hybrid-mobile .tarot-page .page-header {
  margin-bottom: clamp(0.5rem, 3vh, 1rem);
  padding-inline: clamp(0.25rem, 2.5vw, 1rem);
}

.hybrid-mobile-root .onboarding,
body.hybrid-mobile .onboarding {
  --onboarding-safe-area-top: var(--hybrid-safe-area-top, 0px);
  padding-top: var(--onboarding-safe-area-top, 0px);
}

.hybrid-mobile-root .onboarding__header,
body.hybrid-mobile .onboarding__header {
  padding-top: calc(var(--onboarding-safe-area-top, 0px) + clamp(0.5rem, 2.4vh, 1.25rem));
  padding-bottom: clamp(0.25rem, 2vh, 0.75rem);
}

.hybrid-mobile-root .onboarding__container,
body.hybrid-mobile .onboarding__container {
  padding-top: 0;
}

.hybrid-mobile-root .agent-list-page,
body.hybrid-mobile .agent-list-page {
  padding-top: calc(var(--hybrid-safe-area-top, 0px) + clamp(0.75rem, 3vh, 1.5rem));
  padding-bottom: calc(var(--hybrid-safe-area-bottom, 0px) + clamp(0.75rem, 3vh, 1.5rem));
  min-height: calc(var(--vh, 1vh) * 100);
  box-sizing: border-box;
}

.hybrid-mobile-root .agent-list-page .agent-list-page__container,
body.hybrid-mobile .agent-list-page .agent-list-page__container {
  padding-inline: clamp(var(--spacing-sm, 0.75rem), 4vw, var(--spacing-lg, 1.5rem));
  box-sizing: border-box;
}

.hybrid-mobile-root .agent-list-page .agent-list-container,
body.hybrid-mobile .agent-list-page .agent-list-container {
  padding-bottom: calc(var(--spacing-lg, 1.25rem) + var(--hybrid-safe-area-bottom, 0px));
}

.hybrid-mobile-root .profile-page__container,
body.hybrid-mobile .profile-page__container {
  padding-top: calc(var(--hybrid-safe-area-top, 0px) + clamp(0.5rem, 2.5vh, 1.25rem));
  padding-bottom: calc(var(--hybrid-safe-area-bottom, 0px) + clamp(1rem, 3vh, 1.75rem));
  min-height: calc(var(--vh, 1vh) * 100);
  box-sizing: border-box;
}

.hybrid-mobile-root .profile-page__container .content-wrapper,
body.hybrid-mobile .profile-page__container .content-wrapper {
  padding-top: clamp(0.5rem, 2vh, 1.25rem);
  padding-inline: clamp(0.75rem, 4vw, 1.75rem);
}

.hybrid-mobile-root .astrology-page,
body.hybrid-mobile .astrology-page,
.hybrid-mobile-root .palmistry-page,
body.hybrid-mobile .palmistry-page,
.hybrid-mobile-root .media-page,
body.hybrid-mobile .media-page,
.hybrid-mobile-root .payment-status-page,
body.hybrid-mobile .payment-status-page {
  padding-top: calc(var(--hybrid-safe-area-top, 0px) + clamp(0.5rem, 2vh, 1.25rem));
  padding-bottom: calc(var(--hybrid-safe-area-bottom, 0px) + clamp(0.75rem, 2.5vh, 1.5rem));
  min-height: calc(var(--vh, 1vh) * 100);
  box-sizing: border-box;
}

.hybrid-mobile-root .media-page,
body.hybrid-mobile .media-page {
  padding-inline: clamp(var(--spacing-md, 1rem), 5vw, var(--spacing-xl, 2rem));
}

:where(.profile-page__section, .profile-page__summary-card, .profile-page__action-card, .profile-page__reading-card, .profile-page__panel, .profile-page__tile, .profile-page__card, .agent-list-card, .agent-header, .agent-swipe-card, .gem-package-card, .subscription-tier-card, .package, .tarot-card-of-day__card, .tarot-card-details__card, .tarot-spread-card, .tarot-learning-center__card, .session-ended-prompt, .ask-expert-card, .confirmation-dialog__card, .interactive-element-card, [class*=__card], [class*=-card], [class*=__section], [class*=-section], [class*=__container], [class*=-container]) {
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

:where(.profile-page__section, .profile-page__summary-card, .profile-page__action-card, .profile-page__reading-card, .profile-page__panel, .profile-page__tile, .profile-page__card, .agent-list-card, .agent-header, .agent-swipe-card, .gem-package-card, .subscription-tier-card, .package, .tarot-card-of-day__card, .tarot-card-details__card, .tarot-spread-card, .tarot-learning-center__card, .session-ended-prompt, .ask-expert-card, .confirmation-dialog__card, .interactive-element-card, [class*=__card], [class*=-card], [class*=__section], [class*=-section], [class*=__container], [class*=-container]):hover {
  transform: none !important;
  translate: none !important;
  box-shadow: revert !important;
}

/*# sourceMappingURL=main.css.map */
