:root {
  --bg-space: #070612;
  --bg-card: rgba(19, 18, 43, 0.85);
  --bg-card-hover: rgba(32, 29, 68, 0.95);
  --border-cosmic: rgba(168, 85, 247, 0.3);
  --border-glow: rgba(236, 72, 153, 0.6);
  --primary-purple: #8b5cf6;
  --primary-violet: #6d28d9;
  --accent-pink: #ec4899;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;
  --font-serif: 'Cinzel', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-space);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(109, 40, 217, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Starfield effect */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 25px 35px, #fff, transparent),
    radial-gradient(1px 1px at 75px 120px, #a855f7, transparent),
    radial-gradient(1.5px 1.5px at 150px 80px, #f59e0b, transparent),
    radial-gradient(1px 1px at 220px 190px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 310px 250px, #ec4899, transparent),
    radial-gradient(1px 1px at 450px 110px, #fff, transparent),
    radial-gradient(2px 2px at 600px 320px, #f59e0b, transparent);
  background-repeat: repeat;
  background-size: 650px 450px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}

/* Nav */
.cosmic-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  margin-bottom: 30px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.brand-glyph {
  font-size: 1.8rem;
  color: var(--accent-gold);
  text-shadow: 0 0 12px var(--accent-gold-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-gold);
}

/* Buttons */
.btn-cosmic-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #6366f1 100%);
  color: #ffffff;
  border: none;
  padding: 14px 34px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-serif);
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-cosmic-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(217, 70, 239, 0.7);
}

.btn-cosmic-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: none;
  padding: 14px 34px;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-serif);
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cosmic-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.7);
}

/* Footer */
.cosmic-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Star Rating Widget */
.star-rating-select {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 2.5rem;
  cursor: pointer;
  margin: 15px 0 25px;
}

.star-rating-select span {
  color: #334155;
  transition: all 0.2s;
  user-select: none;
}

.star-rating-select span.active,
.star-rating-select span.hover {
  color: #f59e0b;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
  transform: scale(1.15);
}
