/* Starry background */
.stars-small,
.stars-medium,
.stars-large {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars-small {
  background:
    radial-gradient(1px 1px at 20px 30px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 40px 70px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 50px 160px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 90px 40px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 130px 80px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 160px 120px, white, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 5s ease-in-out infinite alternate;
}

.stars-medium {
  background:
    radial-gradient(1.5px 1.5px at 50px 160px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 90px 40px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 130px 80px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 160px 120px, white, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.stars-large {
  background:
    radial-gradient(2px 2px at 100px 50px, white, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 200px 150px, white, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 300px 250px, white, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 400px 350px, white, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 500px 500px;
  animation: twinkle 9s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Enhanced animations for cosmic effects */
.animate-twinkle-slow {
  animation: twinkle 5s ease-in-out infinite alternate;
}

.animate-twinkle-medium {
  animation: twinkle 7s ease-in-out infinite alternate;
}

.animate-twinkle-fast {
  animation: twinkle 9s ease-in-out infinite alternate;
}

.animate-float-slow {
  animation: float 15s ease-in-out infinite alternate;
}

.animate-float-medium {
  animation: float 10s ease-in-out infinite alternate;
}

.animate-float-fast {
  animation: float 7s ease-in-out infinite alternate;
}

.animate-pulse-slow {
  animation: pulse 5s ease-in-out infinite;
}

.animate-pulse-medium {
  animation: pulse 3s ease-in-out infinite;
}

.animate-pulse-fast {
  animation: pulse 1.5s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin 20s linear infinite;
}

.animate-bounce-small {
  animation: bounce-small 1s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(5px);
  }
  100% {
    transform: translateY(5px) translateX(-5px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

@keyframes bounce-small {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Shooting star animation */
.shooting-star {
  position: absolute;
  width: 150px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shooting-star 5s linear infinite;
  opacity: 0;
  top: 20%;
  left: -10%;
  transform: rotate(15deg);
}

.delay-3s {
  animation-delay: 3s;
  top: 40%;
  left: 30%;
  transform: rotate(-20deg);
}

.delay-6s {
  animation-delay: 6s;
  top: 60%;
  left: 50%;
  transform: rotate(30deg);
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(15deg);
  }
  10%,
  15% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    transform: translateX(300px) translateY(100px) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateX(300px) translateY(100px) rotate(15deg);
  }
}

/* Character cards */
.character-card {
  background-color: rgba(30, 27, 75, 0.7);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-10px);
}

.character-image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

/* Add fade effect to all character images */
.character-image-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px; /* Increased height of the fade effect for taller images */
  background: linear-gradient(
    to bottom,
    rgba(30, 27, 75, 0),
    rgba(30, 27, 75, 1)
  );
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 5;
}

/* Neon effects - reduced shadow for better readability */
.neon-text {
  color: white;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

.neon-text-pink {
  color: #ff80ff;
  text-shadow: 0 0 1px rgba(255, 0, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(255, 0, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(255, 0, 255, 0.5));
}

.neon-text-purple {
  color: #bb80ff;
  text-shadow: 0 0 1px rgba(153, 0, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(153, 0, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(153, 0, 255, 0.5));
}

.neon-text-blue {
  color: #80ffff;
  text-shadow: 0 0 1px rgba(0, 255, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(0, 255, 255, 0.7);
  filter: drop-shadow(0 0 1px rgba(0, 255, 255, 0.5));
}

.neon-text-orange {
  color: #ffb380;
  text-shadow: 0 0 1px rgba(255, 128, 0, 0.8);
  -webkit-text-stroke: 0.5px rgba(255, 128, 0, 0.7);
  filter: drop-shadow(0 0 1px rgba(255, 128, 0, 0.5));
}

/* Character placeholders */
.character-placeholder {
  width: 100%;
  aspect-ratio: 3 / 5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.grandmother-placeholder {
  position: relative;
}

.grandmother-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(106, 61, 93, 0.2), rgba(138, 90, 131, 0.2));
  opacity: 0.5;
}

/* Style for the actual image in the character cards */
.character-placeholder img {
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0)
  );
}

.philosopher-placeholder {
  background: linear-gradient(45deg, #3d5d6a, #5a83a8);
  position: relative;
}

.philosopher-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23c0d8d8'/%3E%3Crect x='30' y='50' width='40' height='40' rx='5' fill='%23c0d8d8'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

.clever-placeholder {
  background: linear-gradient(45deg, #3d6a5d, #5aa883);
  position: relative;
}

.clever-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23c0d8d0'/%3E%3Crect x='30' y='50' width='40' height='40' rx='5' fill='%23c0d8d0'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

.oracle-placeholder {
  background: linear-gradient(45deg, #6a3d3d, #a85a5a);
  position: relative;
}

.oracle-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23d8c0c0'/%3E%3Crect x='30' y='50' width='40' height='40' rx='5' fill='%23d8c0c0'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

/* Palmistry form styles */
.palmistry-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(153, 0, 255, 0.5);
}

/* Make date inputs more user-friendly */
input[type="date"] {
  position: relative;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Also apply to time inputs */
input[type="time"] {
  position: relative;
  cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.submit-button {
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

/* Hand outline placeholder */
.hand-placeholder-container {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 27, 75, 0.7);
  border-radius: 8px;
  overflow: hidden;
  border: 2px dashed rgba(153, 0, 255, 0.5);
}

.hand-outline-placeholder {
  width: 150px;
  height: 150px;
  background-image: url("palm.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Palm image preview */
.palm-preview {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.hidden {
  display: none;
}

/* Palmistry link button */
.palmistry-link {
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.palmistry-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(153, 0, 255, 0.7);
}

.palmistry-link:active {
  transform: translateY(-1px);
}

/* Guide info styles */
.guide-info {
  background-color: rgba(30, 27, 75, 0.7);
  display: inline-block;
  transition: all 0.3s ease;
}

/* Hand placeholder border colors */
.hand-placeholder-container.border-pink-500 {
  border: 2px dashed rgba(236, 72, 153, 0.5);
}

.hand-placeholder-container.border-purple-500 {
  border: 2px dashed rgba(153, 0, 255, 0.5);
}

.hand-placeholder-container.border-blue-500 {
  border: 2px dashed rgba(0, 255, 255, 0.5);
}

/* Guide-specific hand outlines - using the same image for all guides as requested */
.hand-placeholder-container.border-pink-500 .hand-outline-placeholder,
.hand-placeholder-container.border-purple-500 .hand-outline-placeholder,
.hand-placeholder-container.border-blue-500 .hand-outline-placeholder {
  background-image: url("palm.png");
}

/* Services page styles */
.service-card {
  background-color: rgba(30, 27, 75, 0.7);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: block;
  text-decoration: none;
  min-height: 200px;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  text-decoration: none;
}

.service-icon-container {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Astrology icon placeholder */
.astrology-icon-placeholder {
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Guide-specific astrology icons */
.hand-placeholder-container.border-pink-500 + div .astrology-icon-placeholder,
.service-card.neon-border-pink .astrology-icon-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(236, 72, 153, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(236, 72, 153, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(236, 72, 153, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(236, 72, 153, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(236, 72, 153, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(236, 72, 153, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(236, 72, 153, 0.7)'/%3E%3C/svg%3E");
}

.hand-placeholder-container.border-purple-500 + div .astrology-icon-placeholder,
.service-card.neon-border-purple .astrology-icon-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(153, 0, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(153, 0, 255, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(153, 0, 255, 0.7)'/%3E%3C/svg%3E");
}

.hand-placeholder-container.border-blue-500 + div .astrology-icon-placeholder,
.service-card.neon-border-blue .astrology-icon-placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(0, 255, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(0, 255, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(0, 255, 255, 0.7)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='5' fill='rgba(0, 255, 255, 0.7)'/%3E%3Ccircle cx='80' cy='30' r='3' fill='rgba(0, 255, 255, 0.7)'/%3E%3Ccircle cx='65' cy='75' r='4' fill='rgba(0, 255, 255, 0.7)'/%3E%3Ccircle cx='30' cy='60' r='3' fill='rgba(0, 255, 255, 0.7)'/%3E%3C/svg%3E");
}

/* Astrology page styles */
.astrology-container {
  max-width: 800px;
  margin: 0 auto;
}

.astrology-placeholder {
  background-color: rgba(30, 27, 75, 0.5);
  border-radius: 8px;
}

/* Astrology form styles */
.astrology-form-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Zodiac sign selection styles */
.zodiac-option {
  position: relative;
}

.zodiac-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background-color: rgba(30, 27, 75, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.zodiac-label:hover {
  transform: translateY(-3px);
}

.zodiac-icon {
  font-size: 24px;
  margin-bottom: 5px;
  color: white;
}

.zodiac-name {
  font-size: 12px;
  color: white;
}

/* Guide-specific zodiac styles */
.zodiac-pink {
  border-color: rgba(236, 72, 153, 0.3);
}

.zodiac-pink:hover {
  background-color: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.5);
}

input[type="radio"]:checked + .zodiac-pink {
  background-color: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 0 3px rgba(236, 72, 153, 0.5);
}

.zodiac-purple {
  border-color: rgba(153, 0, 255, 0.3);
}

.zodiac-purple:hover {
  background-color: rgba(153, 0, 255, 0.1);
  border-color: rgba(153, 0, 255, 0.5);
}

input[type="radio"]:checked + .zodiac-purple {
  background-color: rgba(153, 0, 255, 0.2);
  border-color: rgba(153, 0, 255, 0.7);
  box-shadow: 0 0 3px rgba(153, 0, 255, 0.5);
}

.zodiac-blue {
  border-color: rgba(0, 255, 255, 0.3);
}

.zodiac-blue:hover {
  background-color: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
}

input[type="radio"]:checked + .zodiac-blue {
  background-color: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.7);
  box-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
}

.zodiac-orange {
  border-color: rgba(255, 128, 0, 0.3);
}

.zodiac-orange:hover {
  background-color: rgba(255, 128, 0, 0.1);
  border-color: rgba(255, 128, 0, 0.5);
}

input[type="radio"]:checked + .zodiac-orange {
  background-color: rgba(255, 128, 0, 0.2);
  border-color: rgba(255, 128, 0, 0.7);
  box-shadow: 0 0 3px rgba(255, 128, 0, 0.5);
}

/* Selected zodiac styles for Stimulus controller */
.zodiac-label.selected {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(153, 0, 255, 0.7);
}

.zodiac-pink.selected {
  background-color: rgba(236, 72, 153, 0.3) !important;
  border-color: rgba(236, 72, 153, 0.8);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.7);
}

.zodiac-purple.selected {
  background-color: rgba(153, 0, 255, 0.3) !important;
  border-color: rgba(153, 0, 255, 0.8);
  box-shadow: 0 0 10px rgba(153, 0, 255, 0.7);
}

.zodiac-blue.selected {
  background-color: rgba(0, 255, 255, 0.3) !important;
  border-color: rgba(0, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.zodiac-orange.selected {
  background-color: rgba(255, 128, 0, 0.3) !important;
  border-color: rgba(255, 128, 0, 0.8);
  box-shadow: 0 0 10px rgba(255, 128, 0, 0.7);
}

/* Navbar styles */
.navbar-logo {
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 250px;
  background-color: rgba(30, 27, 75, 0.95);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Markdown content styles */
.markdown-content {
  color: white;
  line-height: 1.6;
}

.markdown-content h1 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.markdown-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-content p {
  margin-bottom: 0.75rem;
}

.markdown-content strong {
  font-weight: bold;
}

.markdown-content em {
  font-style: italic;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-bottom: 0.25rem;
}

.markdown-content blockquote {
  border-left: 4px solid;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.markdown-content hr {
  border: 0;
  border-top: 1px solid;
  margin: 1rem 0;
}

.markdown-content a {
  text-decoration: underline;
}

/* Guide-specific markdown styles */
.markdown-purple h1 {
  color: #bb80ff;
}

.markdown-purple h2 {
  color: #c99aff;
}

.markdown-purple h3 {
  color: #d7b5ff;
}

.markdown-purple strong {
  color: #c99aff;
}

.markdown-purple em {
  color: #d7b5ff;
}

.markdown-purple blockquote {
  border-color: #bb80ff;
}

.markdown-purple hr {
  border-color: #bb80ff;
}

.markdown-blue h1 {
  color: #80ffff;
}

.markdown-blue h2 {
  color: #9affff;
}

.markdown-blue h3 {
  color: #b5ffff;
}

.markdown-blue strong {
  color: #9affff;
}

.markdown-blue em {
  color: #b5ffff;
}

.markdown-blue blockquote {
  border-color: #80ffff;
}

.markdown-blue hr {
  border-color: #80ffff;
}

.markdown-orange h1 {
  color: #ffb380;
}

.markdown-orange h2 {
  color: #ffc299;
}

.markdown-orange h3 {
  color: #ffd1b3;
}

.markdown-orange strong {
  color: #ffc299;
}

.markdown-orange em {
  color: #ffd1b3;
}

.markdown-orange blockquote {
  border-color: #ffb380;
}

.markdown-orange hr {
  border-color: #ffb380;
}

/* First letter styling for markdown content */
.markdown-purple p:first-of-type::first-letter {
  color: #bb80ff;
  font-size: 1.75em;
  font-weight: bold;
  margin-right: 0.25rem;
  float: left;
  line-height: 1;
}

/* Custom utility class to hide elements only on mobile screens */
@media (max-width: 1024px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* New animations for enhanced select service page */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes stagger-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 3s ease infinite;
}

.stagger-animation > * {
  animation: stagger-in 0.8s ease-out both;
}

.stagger-animation > *:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-animation > *:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-animation > *:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-animation > *:nth-child(4) {
  animation-delay: 0.4s;
}

/* Mobile responsive grid adjustments */
@media (max-width: 768px) {
  .service-card {
    min-height: 160px;
  }

  .service-card .service-icon div {
    width: 4rem !important;
    height: 4rem !important;
  }

  .service-card .service-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .service-name {
    font-size: 1.125rem !important;
  }
}

/* Enhanced service card animations */
.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Improved neon effects with smoother transitions */
.neon-border-purple {
  box-shadow:
    0 0 5px #bb80ff,
    0 0 10px rgba(153, 0, 255, 0.4),
    0 0 20px rgba(153, 0, 255, 0.2);
  border: 2px solid #bb80ff;
  transition: all 0.3s ease;
}

.neon-border-purple:hover {
  box-shadow:
    0 0 10px #bb80ff,
    0 0 20px rgba(153, 0, 255, 0.6),
    0 0 40px rgba(153, 0, 255, 0.3);
}

.neon-border-blue {
  box-shadow:
    0 0 5px #80ffff,
    0 0 10px rgba(0, 255, 255, 0.4),
    0 0 20px rgba(0, 255, 255, 0.2);
  border: 2px solid #80ffff;
  transition: all 0.3s ease;
}

.neon-border-blue:hover {
  box-shadow:
    0 0 10px #80ffff,
    0 0 20px rgba(0, 255, 255, 0.6),
    0 0 40px rgba(0, 255, 255, 0.3);
}

.neon-border-pink {
  box-shadow:
    0 0 5px #ff80ff,
    0 0 10px rgba(255, 0, 255, 0.4),
    0 0 20px rgba(255, 0, 255, 0.2);
  border: 2px solid #ff80ff;
  transition: all 0.3s ease;
}

.neon-border-pink:hover {
  box-shadow:
    0 0 10px #ff80ff,
    0 0 20px rgba(255, 0, 255, 0.6),
    0 0 40px rgba(255, 0, 255, 0.3);
}

.neon-border-orange {
  box-shadow:
    0 0 5px #ffb380,
    0 0 10px rgba(255, 128, 0, 0.4),
    0 0 20px rgba(255, 128, 0, 0.2);
  border: 2px solid #ffb380;
  transition: all 0.3s ease;
}

.neon-border-orange:hover {
  box-shadow:
    0 0 10px #ffb380,
    0 0 20px rgba(255, 128, 0, 0.6),
    0 0 40px rgba(255, 128, 0, 0.3);
}

.markdown-blue p:first-of-type::first-letter {
  color: #80ffff;
  font-size: 1.75em;
  font-weight: bold;
  margin-right: 0.25rem;
  float: left;
  line-height: 1;
}

.markdown-orange p:first-of-type::first-letter {
  color: #ffb380;
  font-size: 1.75em;
  font-weight: bold;
  margin-right: 0.25rem;
  float: left;
  line-height: 1;
}

/* ============================================
   GAMIFICATION: Character Speech Bubbles
   ============================================ */

/* Speech bubble pointing left (character speaks to the right) */
.char-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
}

.char-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  border-width: 8px 10px 8px 0;
  border-style: solid;
  border-color: transparent rgba(255, 255, 255, 0.14) transparent transparent;
}

.char-bubble::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 21px;
  border-width: 7px 9px 7px 0;
  border-style: solid;
  border-color: transparent rgba(20, 15, 60, 0.7) transparent transparent;
}

/* Speech bubble pointing down (for hover state above character cards) */
.char-bubble-hover {
  background: rgba(10, 8, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  text-align: center;
  color: #e2d9ff;
  white-space: nowrap;
}

.char-bubble-hover::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 7px 0 7px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.18) transparent transparent transparent;
}

.char-bubble-hover::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: rgba(10, 8, 40, 0.92) transparent transparent transparent;
  z-index: 1;
}

/* Hover speech bubble container on character cards */
.character-hover-speech {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
  z-index: 30;
}

.character-card:hover .character-hover-speech {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Character card selection animation */
.char-selected {
  transform: translateY(-14px) scale(1.04) !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  z-index: 10;
  position: relative;
}

.char-dimmed {
  opacity: 0.18;
  filter: blur(2px) grayscale(0.4);
  transform: scale(0.94) !important;
  transition: all 0.4s ease !important;
  pointer-events: none;
}

/* Character portrait on select_service page */
.character-portrait-wrap {
  width: 130px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .character-portrait-wrap {
    width: 160px;
  }
}

.character-portrait-wrap .character-placeholder {
  aspect-ratio: 3 / 5;
  border-radius: 18px;
  overflow: hidden;
}

/* Typewriter cursor blinking */
.typewriter-cursor::after {
  content: "▋";
  animation: cursor-blink 0.9s step-end infinite;
  color: rgba(196, 181, 253, 0.7);
  font-size: 0.85em;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Character dialogue step block in wizard forms */
.char-step-dialogue {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.char-step-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

/* Fade-in animation for dialogue elements */
@keyframes dialogue-appear {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialogue-appear {
  animation: dialogue-appear 0.5s ease-out both;
}

/* Service card "pick" button style for select_service */
.service-pick-card {
  position: relative;
  display: block;
  padding: 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.service-pick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.service-pick-card.pink:hover {
  border-color: rgba(244, 114, 182, 0.5);
}
.service-pick-card.purple:hover {
  border-color: rgba(192, 132, 252, 0.5);
}
.service-pick-card.blue:hover {
  border-color: rgba(96, 165, 250, 0.5);
}
.service-pick-card.orange:hover {
  border-color: rgba(251, 146, 60, 0.5);
}

.service-pick-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* Mystic shimmer on character card hover */
@keyframes shimmer-glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.25);
  }
  50% {
    box-shadow: 0 0 28px rgba(147, 51, 234, 0.55);
  }
}

.character-card:hover {
  animation: shimmer-glow 2s ease-in-out infinite;
}

/* Stars particle count - denser for immersive feel */
.stars-dense {
  background:
    radial-gradient(1px 1px at 15px 25px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 35px 60px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 55px 140px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 85px 35px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 120px 75px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 155px 110px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 75px 190px, white, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 175px 45px, white, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

/* Neon glow borders for character portraits on service page */
.char-portrait-ring-pink {
  box-shadow:
    0 0 0 2px rgba(244, 114, 182, 0.4),
    0 0 20px rgba(244, 114, 182, 0.15);
}
.char-portrait-ring-purple {
  box-shadow:
    0 0 0 2px rgba(192, 132, 252, 0.4),
    0 0 20px rgba(192, 132, 252, 0.15);
}
.char-portrait-ring-blue {
  box-shadow:
    0 0 0 2px rgba(96, 165, 250, 0.4),
    0 0 20px rgba(96, 165, 250, 0.15);
}
.char-portrait-ring-orange {
  box-shadow:
    0 0 0 2px rgba(251, 146, 60, 0.4),
    0 0 20px rgba(251, 146, 60, 0.15);
}

/* ============================================
   WAITING PAGE — orbital spinner + pulse dots
   ============================================ */

:root {
  --dot-color-pink: #f472b6;
  --dot-color-purple: #c084fc;
  --dot-color-blue: #60a5fa;
  --dot-color-orange: #fb923c;
}

.waiting-orbit-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waiting-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.waiting-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: orbit-spin 2.8s linear infinite;
  z-index: 1;
}

.waiting-orbit-ring-pink {
  border-top-color: rgba(244, 114, 182, 0.8);
  border-right-color: rgba(244, 114, 182, 0.3);
}
.waiting-orbit-ring-purple {
  border-top-color: rgba(192, 132, 252, 0.8);
  border-right-color: rgba(192, 132, 252, 0.3);
}
.waiting-orbit-ring-blue {
  border-top-color: rgba(96, 165, 250, 0.8);
  border-right-color: rgba(96, 165, 250, 0.3);
}
.waiting-orbit-ring-orange {
  border-top-color: rgba(251, 146, 60, 0.8);
  border-right-color: rgba(251, 146, 60, 0.3);
}

.waiting-orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 0;
  left: 50%;
  margin-left: -5px;
  transform-origin: 5px 60px;
  animation: orbit-spin 2.8s linear infinite;
  z-index: 3;
}

.waiting-orbit-dot-pink {
  background: #f472b6;
  box-shadow: 0 0 8px #f472b6;
}
.waiting-orbit-dot-purple {
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
}
.waiting-orbit-dot-blue {
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}
.waiting-orbit-dot-orange {
  background: #fb923c;
  box-shadow: 0 0 8px #fb923c;
}

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

.waiting-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: waiting-pulse 1.2s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes waiting-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}
