@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-primary: #07040d;
  --bg-secondary: #0d0818;
  --bg-card: rgba(18, 11, 33, 0.65);
  --bg-card-hover: rgba(28, 16, 52, 0.8);
  --border-card: rgba(168, 85, 247, 0.18);
  --border-card-hover: rgba(192, 132, 252, 0.45);
  --accent-purple: #9333ea;
  --accent-violet: #a855f7;
  --accent-amethyst: #c084fc;
  --accent-fuchsia: #d946ef;
  --accent-indigo: #6366f1;
  --discord-blurple: #5865F2;
  --discord-hover: #4752C4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-purple-tint: #d8b4fe;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Cosmic ambient mesh background */
.cosmic-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% -10%, rgba(147, 51, 234, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 15% 45%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(217, 70, 239, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 110%, rgba(147, 51, 234, 0.18) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Subtle grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(to right, rgba(168, 85, 247, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

/* Glassmorphic card styling */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px 0 rgba(147, 51, 234, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px 2px rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

.glass-nav {
  background: rgba(10, 6, 19, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
}

/* Glow effects */
.glow-purple {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
}

.glow-purple-sm {
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.glow-discord {
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.4);
}

.glow-discord:hover {
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.65);
}

.text-glow {
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.6);
}

.text-gradient-purple {
  background: linear-gradient(135deg, #ffffff 20%, #d8b4fe 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: white;
  border: 1px solid rgba(216, 180, 254, 0.35);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 22px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(192, 132, 252, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.animate-float {
  animation: floatLogo 5s ease-in-out infinite;
}

@keyframes pingDot {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.animate-ping-dot {
  animation: pingDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Toast alert notification */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #07040d;
}

::-webkit-scrollbar-thumb {
  background: #2e1065;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: #581c87;
}

/* Code Copy Block */
.copy-block {
  background: rgba(10, 5, 20, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.copy-block:hover {
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(16, 8, 30, 0.85);
}

/* Active tab styles */
.tab-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(192, 132, 252, 0.6);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

/* Accordion item transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
  opacity: 1;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Daily Spin Wheel Styling - Luxury Gaming Grade */
.wheel-outer-chassis {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 12px;
  background: radial-gradient(circle at 30% 30%, #2e1065 0%, #17082e 50%, #080312 100%);
  box-shadow: 
    0 0 50px rgba(168, 85, 247, 0.4),
    0 0 20px rgba(251, 191, 36, 0.25),
    inset 0 0 15px rgba(0, 0, 0, 0.9),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(251, 191, 36, 0.5);
}

@media (max-width: 400px) {
  .wheel-outer-chassis {
    max-width: 290px;
    padding: 8px;
  }
}

/* Outer LED Lights Ring */
.wheel-led-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
}

.wheel-container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.95));
  transition: transform 0.08s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.wheel-pointer.ticking {
  transform: translateX(-50%) rotate(-18deg) scale(1.08);
}

.wheel-canvas {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transition: transform 5.5s cubic-bezier(0.12, 0.85, 0.2, 1);
  display: block;
}

/* Glass glare overlay over wheel */
.wheel-glare {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 60%);
  pointer-events: none;
  z-index: 20;
}

.form-input {
  background: rgba(10, 5, 20, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #f8fafc;
  transition: all 0.25s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(192, 132, 252, 0.75);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
  background: rgba(16, 8, 30, 0.95);
}

/* Modal and Backdrop Animations */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 2, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

/* Floating Reward Button */
.floating-spin-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 40;
  background: linear-gradient(135deg, #9333ea 0%, #d97706 100%);
  color: white;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 25px rgba(217, 119, 6, 0.45), 0 0 20px rgba(147, 51, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-spin-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.65), 0 0 30px rgba(147, 51, 234, 0.6);
}

