:root {
  --bg-primary: #07070d;
  --bg-secondary: #0e1019;
  --bg-card: #12141f;
  --bg-card-hover: #191c2a;
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dark: #a88a2a;
  --amber: #c87533;
  --red: #e74c3c;
  --green: #2ecc71;
  --text-primary: #e8e6e3;
  --text-secondary: #8a8d9b;
  --border: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.3);
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Crimson Pro', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(212,175,55,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(200,117,51,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; }

.font-display { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Crimson Pro', serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,0.3), 0 0 40px rgba(212,175,55,0.1); }
  50% { box-shadow: 0 0 30px rgba(212,175,55,0.5), 0 0 60px rgba(212,175,55,0.2); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes confettiDrop {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes progressBar {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes spotlight {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.4s ease-out forwards; }
.animate-pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.gold-text { color: var(--gold); }
.gold-border { border-color: var(--border-gold); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  outline: none;
  background: #1a1d2e;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

select {
  background: #12141f;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  outline: none;
  cursor: pointer;
}

select:focus {
  border-color: var(--gold);
}

input[type="text"] {
  background: transparent;
  color: var(--text-primary);
  border: none;
  border-bottom: 2px solid var(--border-gold);
  padding: 8px 4px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  border-bottom-color: var(--gold);
}

input[type="text"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9999;
  animation: confettiDrop 3s ease-in forwards;
}

@media (max-width: 768px) {
  .sidebar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar-mobile.open {
    transform: translateX(0);
  }
}