:root {
  --carousel-radius: 430px;
}
@media (max-width: 768px) {
  :root {
    --carousel-radius: 260px;
  }
}

body {
  background-color: #04120c;
  color: #ecfdf5;
  overflow-x: hidden;
}

/* Ambient Glows */
.ambient-bg {
  background:
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(212, 175, 55, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #04120c 0%, #071d14 50%, #04120c 100%);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(14, 51, 35, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.glass-card {
  background: linear-gradient(145deg, rgba(14, 51, 35, 0.65) 0%, rgba(7, 26, 18, 0.85) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(52, 211, 153, 0.18);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.25), 0 0 25px rgba(212, 175, 55, 0.15);
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #fff3c4 0%, #f3cf55 45%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald-gradient {
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 360 3D Carousel Stage */
.scene-360 {
  perspective: 1400px;
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
}

.carousel-360 {
  width: 240px;
  height: 410px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.carousel-item-360 {
  position: absolute;
  width: 240px;
  height: 410px;
  left: 0;
  top: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 31, 21, 0.92);
  border: 2px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  transition: border-color 0.3s, box-shadow 0.3s, filter 0.3s;
  cursor: pointer;
  backface-visibility: visible;
}

.carousel-item-360.active-card {
  border-color: #f3cf55;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.55), 0 20px 45px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .scene-360 {
    height: 420px;
  }
  .carousel-360,
  .carousel-item-360 {
    width: 185px;
    height: 330px;
  }
}

/* Floor 360 Ring */
.floor-ring {
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  border: 2px dashed rgba(52, 211, 153, 0.25);
  transform: rotateX(78deg) translateZ(-170px);
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(16, 185, 129, 0.15), 0 0 60px rgba(16, 185, 129, 0.1);
}

/* Custom Range Slider */
input[type=range].slider-360 {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(16, 185, 129, 0.2);
  height: 8px;
  border-radius: 999px;
  outline: none;
}
input[type=range].slider-360::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3cf55, #d4af37);
  cursor: grab;
  border: 2px solid #04120c;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

/* Pulse Badge */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.pulse-emerald {
  animation: pulse-ring 2.2s infinite;
}
