* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  padding: 2rem 1rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #a855f7, #ec4899, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .title {
    font-size: 3.5rem;
  }
}

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

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5)); }
  50% { filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.8)); }
}

.tagline {
  color: #a5b4fc;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
}

.credit {
  color: #4b5563;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.main-content {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 350px;
}

@media (min-width: 768px) {
  .wheel-container {
    max-width: 400px;
  }
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #a855f7;
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8));
  animation: pointerBounce 1s ease-in-out infinite;
}

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

.wheel {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.3));
}

.wheel-segment {
  transition: filter 0.3s;
}

.wheel-segment:hover {
  filter: brightness(1.2);
}

.spin-btn {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  font-family: 'Space Grotesk', sans-serif;
}

.spin-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.6);
}

.spin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spin-btn.spinning {
  animation: spinPulse 0.5s ease-in-out infinite;
}

@keyframes spinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.controls-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.toggle-btn.active {
  background: rgba(168, 85, 247, 0.3);
  color: #a855f7;
  border-color: #a855f7;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.trend-card {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.vc-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.25rem 0;
}

.vc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #a855f7, #ec4899);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.tweet-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.75rem;
  padding: 1rem;
  border-left: 3px solid #3b82f6;
}

.share-btn {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
  width: 100%;
}

.share-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.side-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .side-panels {
    grid-template-columns: 1fr 1fr;
  }
}

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

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.generate-btn {
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
}

.generate-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.generated-idea {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.timeline-container {
  overflow-x: auto;
  padding: 1rem 0;
}

.timeline {
  display: flex;
  gap: 0;
  min-width: max-content;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #3b82f6, #22c55e, #f97316, #ec4899);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: #a855f7;
  border-radius: 50%;
  border: 3px solid #1a1a2e;
  z-index: 1;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.75rem;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer-link {
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-joke {
  color: #4b5563;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.easter-egg-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid #a855f7;
  font-size: 1.25rem;
  text-align: center;
  z-index: 1000;
  animation: popIn 0.3s ease-out;
  max-width: 90%;
}

@keyframes popIn {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.7);
}