:root {
  --bg-dark: #070714;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --primary-glow: rgba(139, 92, 246, 0.25);
  --secondary-glow: rgba(236, 72, 153, 0.2);
  --accent-gold: #f59e0b;
  --card-bg: rgba(17, 12, 36, 0.72);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.4);
  --fire: #f43f5e;
  --fire-glow: rgba(244, 63, 94, 0.25);
  --earth: #10b981;
  --earth-glow: rgba(16, 185, 129, 0.25);
  --air: #38bdf8;
  --air-glow: rgba(56, 189, 248, 0.25);
  --water: #818cf8;
  --water-glow: rgba(129, 140, 248, 0.25);
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background-color: transparent;
  background-image:
    radial-gradient(
      ellipse at 25% 20%,
      rgba(167, 139, 250, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 75% 75%,
      rgba(244, 114, 182, 0.15) 0%,
      transparent 55%
    ),
    linear-gradient(
      135deg,
      rgba(7, 7, 20, 0.4) 0%,
      rgba(15, 10, 35, 0.85) 100%
    ),
    url("../images/zodiac_cosmic_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  overflow: hidden;
}
.stars-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, #ffffff, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 35% 65%, #ffd700, rgba(255, 215, 0, 0)),
    radial-gradient(1px 1px at 55% 15%, #ffffff, rgba(255, 255, 255, 0)),
    radial-gradient(2.2px 2.2px at 75% 45%, #c084fc, rgba(192, 132, 252, 0)),
    radial-gradient(1.5px 1.5px at 85% 75%, #ffffff, rgba(255, 255, 255, 0)),
    radial-gradient(2.5px 2.5px at 25% 85%, #f472b6, rgba(244, 114, 182, 0)),
    radial-gradient(1px 1px at 65% 85%, #ffffff, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 90% 15%, #38bdf8, rgba(56, 189, 248, 0));
  background-size: 280px 280px;
  animation: cosmicStarfieldTwinkle 4s ease-in-out infinite alternate;
  opacity: 0.85;
}
.stars-bg::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(2px 2px at 10% 80%, #ffffff, rgba(255, 255, 255, 0)),
    radial-gradient(3px 3px at 45% 35%, #ffd700, rgba(255, 215, 0, 0)),
    radial-gradient(1.5px 1.5px at 70% 60%, #38bdf8, rgba(56, 189, 248, 0)),
    radial-gradient(2.5px 2.5px at 80% 20%, #f472b6, rgba(244, 114, 182, 0));
  background-size: 420px 420px;
  animation: cosmicStarfieldShift 7s ease-in-out infinite alternate;
  opacity: 0.75;
}
@keyframes cosmicStarfieldTwinkle {
  0% {
    opacity: 0.35;
    transform: scale(0.99) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.01) rotate(0.5deg);
  }
  100% {
    opacity: 0.5;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes cosmicStarfieldShift {
  0% {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.25;
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0) scale(1);
  }
}
.glow-orb {
  display: none;
}
.app-header {
  padding: 2.5rem 1.5rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
}
.logo-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 20%, #c084fc 60%, #f472b6 90%);
  background-size: 200% 200%;
  animation: logoGradientShift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-title:hover {
  transform: scale(1.05) translateY(-2px);
}
@keyframes logoGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.logo-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.12);
  border: 1.5px solid rgba(244, 114, 182, 0.35);
  box-shadow:
    0 0 15px rgba(167, 139, 250, 0.25),
    inset 0 0 10px rgba(244, 114, 182, 0.15);
  animation: cuteZodiacWobble 3.5s ease-in-out infinite;
}
@keyframes cuteZodiacWobble {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-4px) rotate(-6deg) scale(1.05);
  }
  50% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(-3px) rotate(6deg) scale(1.03);
  }
}
.logo-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fbbf24, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cuteIconSpin 8s linear infinite;
  display: inline-block;
}
@keyframes cuteIconSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.logo-title:hover .logo-icon {
  animation: cuteIconSpinFast 0.8s ease-in-out infinite;
}
@keyframes cuteIconSpinFast {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.25);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
.cute-zodiac-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #f472b6, #9333ea);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.6);
  border: 1.5px solid #ffffff;
  animation: cuteBadgePulse 2s ease-in-out infinite;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease;
}
.cute-zodiac-badge.pop-out {
  transform: scale(0) rotate(180deg);
  opacity: 0;
}
@keyframes cuteBadgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}
.cute-sparkle-dot {
  position: absolute;
  font-size: 0.75rem;
  pointer-events: none;
  -webkit-text-fill-color: initial;
  opacity: 0.8;
}
.cute-sparkle-dot.s1 {
  top: -8px;
  left: -6px;
  animation: sparkleTwinkle1 2.2s ease-in-out infinite;
}
.cute-sparkle-dot.s2 {
  bottom: -6px;
  right: -6px;
  animation: sparkleTwinkle2 2.8s ease-in-out infinite;
}
@keyframes sparkleTwinkle1 {
  0%,
  100% {
    transform: scale(0.6) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3) rotate(20deg);
    opacity: 1;
  }
}
@keyframes sparkleTwinkle2 {
  0%,
  100% {
    transform: scale(1.2) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: scale(0.5) rotate(-20deg);
    opacity: 0.2;
  }
}
.cute-pop-particle {
  position: absolute;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 99;
  -webkit-text-fill-color: initial;
  animation: cuteParticleFly 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes cuteParticleFly {
  0% {
    transform: translateY(0) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-45px) scale(1.3) rotate(45deg);
    opacity: 0;
  }
}
.tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.app-nav {
  display: inline-flex;
  background: rgba(17, 12, 36, 0.92);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: 30px;
  margin-top: 1.5rem;
  max-width: 100%;
}
.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.nav-item:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  color: white;
  background: linear-gradient(135deg, #8b5cf6 0%, #db2777 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
@media (max-width: 768px) {
  .app-header {
    padding: 1.75rem 1rem 1rem;
  }
  .logo-title {
    font-size: 2rem;
  }
  .tagline {
    font-size: 0.8rem;
  }
  .app-nav {
    display: flex;
    width: 100%;
    max-width: 540px;
    margin: 1.25rem auto 0;
    justify-content: space-between;
  }
  .nav-item {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    gap: 0.4rem;
    flex: 1;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .app-nav {
    padding: 0.25rem;
    border-radius: 20px;
    gap: 0.2rem;
    max-width: 100%;
  }
  .nav-item {
    padding: 0.5rem 0.3rem;
    font-size: 0.73rem;
    border-radius: 16px;
    gap: 0.25rem;
    flex-direction: column;
    text-align: center;
  }
  .nav-item i {
    font-size: 0.95rem;
  }
}
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  z-index: 1;
}
.portal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 968px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}
.zodiac-selector-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e5e7eb;
}
.section-title i {
  color: var(--accent-gold);
}
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
@media (max-width: 968px) {
  .zodiac-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}
@media (max-width: 600px) {
  .zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .zodiac-card {
    padding: 1.1rem 0.75rem;
    border-radius: 14px;
  }
  .zodiac-symbol {
    font-size: 2.25rem;
    margin-bottom: 0.35rem;
  }
  .zodiac-name {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }
  .zodiac-dates {
    font-size: 0.72rem;
    margin-bottom: 0.55rem;
  }
  .element-badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
  }
}
.zodiac-card {
  background: rgba(18, 14, 38, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
  position: relative;
  overflow: hidden;
}
.zodiac-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    800px circle at var(--x, 0) var(--y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}
.zodiac-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.zodiac-card.active {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}
.zodiac-symbol {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.zodiac-card:hover .zodiac-symbol {
  transform: scale(1.1) rotate(3deg);
}
.zodiac-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.zodiac-dates {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.element-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid transparent;
}
.element-badge.fire {
  color: var(--fire);
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.25);
}
.element-badge.earth {
  color: var(--earth);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.element-badge.air {
  color: var(--air);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}
.element-badge.water {
  color: var(--water);
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.25);
}
.details-panel-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.panel {
  background: rgba(17, 12, 36, 0.94);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.btn-back-grid {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}
.btn-back-grid:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 968px) {
  .btn-back-grid {
    display: inline-flex;
  }
}
.details-instruction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.cosmic-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.25));
}
.animated-float {
  animation: floatMotion 4s infinite ease-in-out;
  will-change: transform;
}
@keyframes floatMotion {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotate(5deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}
.details-instruction h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.details-instruction p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}
.hidden {
  display: none !important;
}
.details-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  animation: fadeIn 0.3s ease-out;
}
.cosmic-spinner-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cosmic-spinner {
  font-size: 2.75rem;
  color: #a78bfa;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.4));
  animation: spinRotate 1.5s infinite linear;
}
@keyframes spinRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
.loader-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}
.details-content {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.details-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.details-symbol {
  font-size: 3.25rem;
  text-shadow: 0 0 12px var(--primary-glow);
}
.details-title-wrapper {
  flex-grow: 1;
}
.details-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}
.details-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
}
#details-element-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.8rem;
}
.separator {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--border-color),
    rgba(255, 255, 255, 0.02)
  );
  margin-bottom: 1.5rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
}
.info-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.info-label i {
  margin-right: 0.25rem;
}
.info-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #e5e7eb;
}
.forecast-section {
  background: rgba(139, 92, 246, 0.04);
  border-left: 3px solid rgba(139, 92, 246, 0.5);
  border-radius: 4px 12px 12px 4px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.forecast-section h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.forecast-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1d5db;
}
.stats-section {
  margin-bottom: 1.75rem;
}
.stats-section h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-row {
  margin-bottom: 0.85rem;
}
.stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: #d1d5db;
}
.stat-percentage {
  font-weight: 600;
}
.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.love-bar {
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.25);
}
.career-bar {
  background: linear-gradient(90deg, #eab308, #3b82f6);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.25);
}
.health-bar {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
}
.traits-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.trait-block h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.trait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #e5e7eb;
}
.compatibility-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.compatibility-selector-large {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.select-wrapper-large {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.select-wrapper-large label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.custom-select-large {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 0.85rem;
  border-radius: 12px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}
.custom-select-large:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(15, 10, 30, 0.85);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.15);
}
.custom-select-large option {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.heart-divider-large {
  color: #f43f5e;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.beat-icon {
  animation: heartBeat 1.8s infinite;
}
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.2);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(1);
  }
}
.relation-mode-container {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.relation-mode-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.relation-mode-pills {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: 14px;
}
.relation-pill {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.relation-pill:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}
.relation-pill.active[data-mode="romance"] {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}
.relation-pill.active[data-mode="friendship"] {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}
.relation-pill.active[data-mode="work"] {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
@media (max-width: 600px) {
  .relation-mode-pills {
    flex-direction: column;
  }
  .relation-pill {
    padding: 0.6rem;
  }
}
.btn-calculate {
  width: 100%;
  background: linear-gradient(135deg, #8b5cf6 0%, #db2777 100%);
  border: none;
  border-radius: 12px;
  color: white;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
  will-change: transform;
}
.btn-calculate:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
  filter: brightness(1.08);
}
.btn-calculate:active {
  transform: translate3d(0, 0, 0);
}
.quick-visualization-container {
  margin-top: 1.5rem;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}
.result-visualization-large {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 1.5rem auto 1rem;
}
.radial-progress-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}
.fg-circle {
  fill: none;
  stroke: #ec4899;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-in-out;
}
.result-number-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #e5e7eb;
}
.compatibility-status-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 0.5rem;
}
.comp-header-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.comp-title-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #e5e7eb;
}
.comp-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-between-badges {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.bullet-list-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.bullet-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bullet-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.strengths-title {
  color: #10b981;
}
.challenges-title {
  color: #f59e0b;
}
.bullet-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0.25rem;
}
.bullet-list li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d1d5db;
  position: relative;
  padding-left: 1.25rem;
}
.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  font-weight: bold;
  color: inherit;
}
.music-card {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.09),
    rgba(168, 85, 247, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.music-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(239, 68, 68, 0.55);
}
.music-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.music-card-badge {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.music-genre-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}
.music-info-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}
.music-icon-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  flex-shrink: 0;
}
.music-details {
  display: flex;
  flex-direction: column;
}
.music-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 0.15rem 0;
  line-height: 1.3;
}
.music-artist {
  font-size: 0.88rem;
  font-weight: 600;
  color: #d1d5db;
  margin: 0;
}
.music-vibe-reason {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid #ef4444;
  padding: 0.65rem 0.85rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
}
.youtube-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}
.youtube-action-btn:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
  color: #ffffff;
}
.genz-vibes-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.genz-card {
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.genz-card:hover {
  transform: translate3d(0, -2px, 0);
}
.genz-card.genz-love {
  border-left: 3px solid #ec4899;
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0.06),
    rgba(255, 255, 255, 0.01)
  );
}
.genz-card.genz-career {
  border-left: 3px solid #f59e0b;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.06),
    rgba(255, 255, 255, 0.01)
  );
}
.genz-card.genz-health {
  border-left: 3px solid #10b981;
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.06),
    rgba(255, 255, 255, 0.01)
  );
}
.genz-header {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.genz-love .genz-header {
  color: #f472b6;
}
.genz-career .genz-header {
  color: #fbbf24;
}
.genz-health .genz-header {
  color: #34d399;
}
.genz-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e5e7eb;
}
.cosmic-context-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.cosmic-item {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #c4b5fd;
  transition: border-color 0.2s ease;
}
.cosmic-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
}
.cosmic-item i {
  color: #a78bfa;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.char-section {
  margin-bottom: 1.5rem;
}
.char-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e7eb;
}
.char-section-title i {
  color: #a78bfa;
}
.physical-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (max-width: 600px) {
  .physical-tags-grid {
    grid-template-columns: 1fr;
  }
}
.physical-trait-item {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.83rem;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.physical-trait-item i {
  color: #34d399;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.char-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem;
}
.char-personality-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #d1d5db;
}
.habits-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: 0.25rem;
}
.habits-list li {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d1d5db;
  position: relative;
  padding-left: 1.4rem;
}
.habits-list li::before {
  content: "☕";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}
.fun-fact-card {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(219, 39, 119, 0.08)
  );
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 1.1rem;
}
.fun-fact-header {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fun-fact-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #f3f4f6;
}
.feature-card {
  border-radius: 14px;
  padding: 1.15rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.feature-card:hover {
  transform: translate3d(0, -2px, 0);
}
.animal-card {
  border-left: 3px solid #a855f7;
  background: linear-gradient(
    90deg,
    rgba(168, 85, 247, 0.07),
    rgba(255, 255, 255, 0.01)
  );
}
.pantry-card {
  border-left: 3px solid #f97316;
  background: linear-gradient(
    90deg,
    rgba(249, 115, 22, 0.07),
    rgba(255, 255, 255, 0.01)
  );
}
.decor-card {
  border-left: 3px solid #06b6d4;
  background: linear-gradient(
    90deg,
    rgba(6, 182, 212, 0.07),
    rgba(255, 255, 255, 0.01)
  );
}
.feature-card-header {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.animal-card .feature-card-header {
  color: #c084fc;
}
.pantry-card .feature-card-header {
  color: #fb923c;
}
.decor-card .feature-card-header {
  color: #22d3ee;
}
.feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 0.35rem;
}
.feature-card-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d1d5db;
}
.sub-feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.55rem;
}
.sub-feature-item:last-child {
  margin-bottom: 0;
}
.sub-feature-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sub-feature-val {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e5e7eb;
}
.heart-divider-large {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
}
.vs-circle-pink {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border: 2px solid rgba(244, 114, 182, 0.6);
  color: #ffffff;
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.5);
  letter-spacing: 0.05em;
  animation: vsPulsePink 2s infinite ease-in-out;
}
@keyframes vsPulsePink {
  0% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 24px rgba(236, 72, 153, 0.8),
      0 0 35px rgba(244, 114, 182, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.5);
  }
}
.app-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 968px) {
  .main-content {
    padding: 0.85rem 1rem 3rem;
  }
  .panel {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
  .btn-back-grid {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #e5e7eb;
    font-weight: 600;
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 480px) {
  .app-header {
    padding: 1.25rem 0.75rem 0.75rem;
  }
  .logo-title {
    font-size: 1.65rem;
    gap: 0.45rem;
  }
  .logo-icon {
    font-size: 1.45rem;
  }
  .tagline {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .details-name {
    font-size: 1.65rem;
  }
  .details-symbol {
    font-size: 2.2rem;
  }
}
.compatibility-tab-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  max-width: 600px;
  padding: 0.35rem;
  background: rgba(17, 12, 36, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 30px;
}
.comp-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.comp-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(244, 114, 182, 0.35);
}
.new-feature-badge {
  font-size: 0.65rem;
  background: #ef4444;
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.quiz-room-section {
  max-width: 900px;
  margin: 0 auto 3rem;
  width: 100%;
}
.quiz-main-panel {
  padding: 2.25rem;
  border-radius: 24px;
}
.quiz-step-header {
  text-align: center;
  margin-bottom: 2rem;
}
.quiz-badge-pink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.quiz-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.quiz-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.quiz-init-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.quiz-mode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-light);
}
.quiz-mode-card i {
  font-size: 2rem;
  color: #a78bfa;
  margin-bottom: 0.75rem;
  display: block;
}
.quiz-mode-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.quiz-mode-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.quiz-mode-card.active,
.quiz-mode-card:hover {
  border-color: #f472b6;
  background: rgba(244, 114, 182, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(244, 114, 182, 0.2);
}
.quiz-mode-card.active i {
  color: #f472b6;
}
.quiz-form-group {
  max-width: 600px;
  margin: 0 auto 2.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 20px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  text-align: left;
}
.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-field label i {
  color: #f472b6;
}
.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon .custom-input,
.input-with-icon .custom-select-large {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  border-radius: 14px;
  background: rgba(17, 12, 36, 0.85);
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.input-with-icon .field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a78bfa;
  font-size: 0.95rem;
  pointer-events: none;
}
.uppercase-input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.input-with-icon .custom-input:focus,
.input-with-icon .custom-select-large:focus {
  outline: none;
  border-color: #f472b6;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.35);
  background: rgba(24, 16, 48, 0.95);
}
.quiz-progress-container {
  margin-bottom: 1.75rem;
}
.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.quiz-cat-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}
.quiz-step-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.quiz-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  border-radius: 10px;
  transition: width 0.4s ease;
}
.quiz-question-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-light);
  line-height: 1.45;
  margin-bottom: 1.75rem;
  text-align: center;
}
.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}
.quiz-option-letter {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #a78bfa;
  flex-shrink: 0;
}
.quiz-option-btn:hover,
.quiz-option-btn.selected {
  border-color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
}
.quiz-option-btn.selected .quiz-option-letter {
  background: #f472b6;
  color: #fff;
}
.quiz-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.btn-quiz-prev {
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-quiz-prev:hover {
  transform: translate3d(0, -2px, 0);
  background: rgba(255, 255, 255, 0.08);
}
.waiting-box {
  text-align: center;
  padding: 2rem 1rem;
}
.pulse-heart-wrapper {
  margin-bottom: 1.25rem;
}
.pulse-heart {
  font-size: 3.5rem;
  color: #f472b6;
  animation: heartPulseAnim 1.4s ease-in-out infinite;
}
@keyframes heartPulseAnim {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.5));
  }
  50% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 25px rgba(244, 114, 182, 0.9));
  }
}
.room-code-display {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(167, 139, 250, 0.12);
  border: 1.5px dashed #a78bfa;
  border-radius: 20px;
  margin: 1.5rem 0;
}
.room-code-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.room-code-val {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  color: #ffd700;
  letter-spacing: 0.1em;
}
.share-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.btn-share-wa {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.btn-copy-link {
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.polling-status-box {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.result-header-box {
  text-align: center;
  margin-bottom: 2rem;
}
.result-couples-names {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  background: linear-gradient(135deg, #ffffff, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
}
.result-headline {
  font-size: 1.05rem;
  color: #ffd700;
  font-style: italic;
}
.result-scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.score-card-pink,
.score-card-purple {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
}
.score-circle-svg {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
}
.score-circle-svg svg {
  transform: rotate(-90deg);
}
.score-circle-svg circle.bg-c {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}
.score-circle-svg circle.fg-c {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.score-card-pink circle.fg-c {
  stroke: #f472b6;
}
.score-card-purple circle.fg-c {
  stroke: #a78bfa;
}
.score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.ai-couple-box {
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.ai-box-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #a78bfa;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-verdict-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.ai-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.ai-col-good h5 {
  color: #4ade80;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.ai-col-challenge h5 {
  color: #f87171;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.ai-col-good p,
.ai-col-challenge p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.ai-couple-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 14px;
  color: #ffd700;
  font-size: 0.9rem;
}
.breakdown-section {
  margin-bottom: 2rem;
}
.breakdown-section h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.breakdown-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}
.breakdown-item.match {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.03);
}
.breakdown-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.breakdown-q-num {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.breakdown-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.breakdown-status-badge.match {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}
.breakdown-status-badge.unique {
  background: rgba(167, 139, 250, 0.15);
  color: #c084fc;
}
.breakdown-q-title {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.breakdown-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.ans-box {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
}
.ans-user {
  font-weight: 700;
  color: #a78bfa;
  display: block;
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.ans-text {
  color: var(--text-light);
}
.result-footer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
@media (max-width: 768px) {
  .quiz-init-options {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .result-scores-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .ai-two-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .breakdown-answers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .cosmic-context-panel {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }
  .info-box {
    padding: 0.55rem 0.3rem;
  }
  .info-label {
    font-size: 0.62rem;
  }
  .info-value {
    font-size: 0.82rem;
  }
  .comp-header-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .comp-title-main {
    font-size: 1.25rem;
  }
  .comp-badge-wrapper {
    flex-wrap: wrap;
  }
  .music-card {
    padding: 1rem;
  }
  .music-title {
    font-size: 1.05rem;
  }
  .youtube-action-btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  .quiz-main-panel {
    padding: 1.75rem;
    border-radius: 20px;
  }
  .quiz-title {
    font-size: 1.6rem;
  }
  .quiz-desc {
    font-size: 0.9rem;
  }
  .quiz-mode-card {
    padding: 1.25rem 1rem;
  }
  .quiz-mode-card i {
    font-size: 1.75rem;
  }
  .quiz-mode-card h4 {
    font-size: 1rem;
  }
  .quiz-form-group {
    padding: 1.25rem;
    margin-bottom: 1.75rem;
  }
  .quiz-question-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .quiz-options-grid {
    gap: 0.75rem;
  }
  .quiz-option-btn {
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
  }
  .quiz-option-letter {
    width: 2rem;
    height: 2rem;
  }
  .ai-couple-box {
    padding: 1.25rem;
  }
  .ai-box-title {
    font-size: 1.1rem;
  }
  .ai-verdict-text {
    font-size: 0.95rem;
  }
  .result-couples-names {
    font-size: 1.8rem;
  }
}
@media (max-width: 480px) {
  .quiz-main-panel {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
  .quiz-title {
    font-size: 1.35rem;
  }
  .quiz-desc {
    font-size: 0.85rem;
    line-height: 1.45;
  }
  .quiz-progress-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .compatibility-tab-switcher {
    gap: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    border-radius: 25px;
  }
  .comp-tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }
  .quiz-init-options,
  .form-row-2,
  .result-scores-grid,
  .ai-two-columns,
  .breakdown-answers-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .quiz-mode-card {
    padding: 1rem;
  }
  .quiz-form-group {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
  }
  .input-with-icon .custom-input,
  .input-with-icon .custom-select-large {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  .input-with-icon .field-icon {
    left: 0.85rem;
    font-size: 0.85rem;
  }
  .quiz-question-text {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
  }
  .quiz-options-grid {
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }
  .quiz-option-btn {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-radius: 12px;
    gap: 0.75rem;
  }
  .quiz-option-letter {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.85rem;
  }
  .quiz-nav-btns {
    flex-direction: row;
    gap: 0.75rem;
  }
  .quiz-nav-btns button {
    flex: 1;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-radius: 12px;
  }
  .share-actions,
  .result-footer-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .share-actions button,
  .result-footer-actions button {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
  .room-code-display {
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
  }
  .room-code-val {
    font-size: 1.8rem;
  }
  .result-couples-names {
    font-size: 1.35rem;
    line-height: 1.4;
  }
  .result-headline {
    font-size: 0.95rem;
  }
  .ai-couple-box {
    padding: 1rem;
    border-radius: 16px;
  }
  .ai-couple-tip-box {
    padding: 0.75rem;
    font-size: 0.82rem;
    gap: 0.5rem;
  }
}
