/* ==========================================================================
   Q.COIN 3D ANIMATION & HOLOGRAPHIC STAGE STYLES
   ========================================================================== */

.hero-token-stage,
.qcoin-3d-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.hero-token-stage:active,
.qcoin-3d-stage:active {
  cursor: grabbing;
}

/* Ambient Backlight Glow behind 3D Coin */
.hero-token-stage::before,
.qcoin-3d-stage::before {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28) 0%, rgba(147, 51, 234, 0.18) 45%, rgba(6, 182, 212, 0.05) 70%, transparent 85%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: qcoinGlowPulse 4s ease-in-out infinite alternate;
}

/* Base Ground Reflection Glow */
.hero-token-stage::after,
.qcoin-3d-stage::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 90px;
  background: radial-gradient(ellipse at center, rgba(217, 70, 239, 0.35) 0%, rgba(126, 34, 206, 0.15) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.qcoin-3d-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.qcoin-3d-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

/* Floating Interactive Tooltip Hint */
.qcoin-3d-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 8, 28, 0.85);
  border: 1px solid rgba(236, 72, 153, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.qcoin-3d-stage:hover .qcoin-3d-hint {
  opacity: 0.2;
}

.qcoin-3d-hint i {
  color: #ff3b94;
  font-size: 12px;
  animation: hintRotate 2.5s infinite linear;
}

/* Interactive Controls Bar for Showcase / Preview */
.qcoin-3d-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.qcoin-ctrl-btn {
  background: rgba(22, 12, 40, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.qcoin-ctrl-btn:hover {
  background: linear-gradient(135deg, #ec4899, #9333ea);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

/* Fallback SVG / CSS Animated Coin (if WebGL is initializing) */
.qcoin-fallback-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatFallback 4s ease-in-out infinite;
}

.qcoin-fallback-visual img,
.qcoin-fallback-visual svg {
  max-width: 90%;
  max-height: 90%;
  filter: drop-shadow(0 20px 40px rgba(217, 70, 239, 0.35));
}

/* Keyframes */
@keyframes qcoinGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

@keyframes hintRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatFallback {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-token-stage,
  .qcoin-3d-stage {
    max-width: 480px;
    height: 440px;
  }
}

@media (max-width: 767px) {
  .hero-token-stage,
  .qcoin-3d-stage {
    max-width: 360px;
    height: 340px;
  }
  
  .qcoin-3d-hint {
    font-size: 10px;
    padding: 4px 10px;
  }
}
