* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0a0a0f; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2d2d3f; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d3d5f; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.15); }
  50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.3); }
}

@keyframes spin-score {
  from { transform: rotate(-90deg); }
  to { transform: rotate(var(--target-rotation)); }
}

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-20px) translateX(5px); opacity: 0.6; }
  50% { transform: translateY(-10px) translateX(-5px); opacity: 0.4; }
  75% { transform: translateY(-30px) translateX(3px); opacity: 0.2; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.3s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

.glass-card {
  background: rgba(20, 20, 32, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
}

.glass-card-hover:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.gradient-btn {
  background: linear-gradient(135deg, #7c3aed, #6366f1, #3b82f6);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  transition: all 0.3s ease;
}
.gradient-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.shimmer-bg {
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.skeleton {
  background: linear-gradient(90deg, #1a1a2e 25%, #242440 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.typing-dot { animation: typing-dot 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  animation: particle-float 6s infinite;
}

.grid-bg {
  background-image: 
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.nav-item {
  transition: all 0.2s ease;
  position: relative;
}
.nav-item:hover { background: rgba(124, 58, 237, 0.08); }
.nav-item.active {
  background: rgba(124, 58, 237, 0.12);
  border-left: 3px solid #7c3aed;
}
.nav-item.active .nav-icon { color: #7c3aed; }

.hook-btn {
  transition: all 0.2s ease;
  border: 1px solid #1f1f2e;
}
.hook-btn:hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  transform: scale(1.02);
}
.hook-btn.selected {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.slide-card {
  min-width: 240px;
  max-width: 240px;
  aspect-ratio: 1080/1350;
  transition: all 0.2s ease;
}
.slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.metric-gauge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
}

.toast-enter {
  animation: slideInRight 0.3s ease-out, fadeIn 0.3s ease-out;
}

.golden-shimmer {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calendar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.copilot-msg {
  animation: fadeIn 0.3s ease-out;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.heatmap-bar {
  transition: all 0.5s ease;
  border-radius: 4px;
}

.score-circle {
  transition: stroke-dashoffset 1.5s ease;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes template-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(124, 58, 237, 0.1); }
  50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.25); }
}

.template-card-glow {
  animation: template-glow 3s ease-in-out infinite;
}