@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@400;500;700&display=swap");

:root {
  --purple-dark: #0b0213;
  --purple-bg: rgba(30, 5, 40, 0.85);
  --magenta: #e83fb8;
  --magenta-dark: #cc259c;
  --primary: #8a2be2;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --success: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--purple-dark);
  color: var(--text-main);
  /* The background image is added globally to give the whole site a themed feel */
  background-image: 
    linear-gradient(to bottom, rgba(11,2,19,0.7) 0%, rgba(11,2,19,0.95) 100%),
    url('/t3cs1773994796939.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, .badge, .logo-text {
  font-family: "Outfit", sans-serif;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 16px 0 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 32px rgba(232, 63, 184, 0.3);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0;
  color: #fff;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Components */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(232, 63, 184, 0.15);
  color: var(--magenta);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(232, 63, 184, 0.3);
  box-shadow: 0 0 20px rgba(232, 63, 184, 0.2);
}

.hero {
  padding: 100px 0 80px;
  text-align: center;
  animation: fadeIn 1.2s ease-out;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 32px;
}

.row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Glassmorphism Card */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 63, 184, 0.3);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--primary) 100%);
  color: white;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 63, 184, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(232, 63, 184, 0.5);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  border: 1px solid var(--glass-border);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Input Fields */
.input-group {
  margin-bottom: 24px;
  text-align: left;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-muted);
}

.input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 1.1rem;
  font-family: "Outfit", monospace;
  transition: all 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 15px rgba(232, 63, 184, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Forms & Modals */
.form-card {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
}

/* Result Messages */
.result {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result.ok {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Confetti Logo */
.icon-display {
  font-size: 64px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Details Toggle */
.toggle-box {
  cursor: pointer;
}

.toggle-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  outline: none;
  list-style: none; /* Hide default arrow in standard browsers */
}

.toggle-title::-webkit-details-marker {
  display: none; /* Hide default arrow in webkit */
}

.toggle-title::before {
  content: '▼';
  font-size: 0.8rem;
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.toggle-box[open] .toggle-title::before {
  transform: rotate(-180deg);
}

/* Stats Box */
.stats-box {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.count-highlight {
  color: var(--magenta);
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
}

.spots-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--magenta), var(--primary));
  box-shadow: 0 0 15px var(--magenta);
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Footer */
footer {
  text-align: center;
  padding: 60px 0;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .hero {
    padding: 60px 0 40px;
  }
}