:root {
  --bg-deep: #0a0e1a;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(20, 30, 55, 0.95);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --moon: #e2e8f0;
  --moon-glow: rgba(226, 232, 240, 0.15);
  --gold: #fbbf24;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --success: #22c55e;
  --error: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Starfield background */
.stars {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 55%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 35%, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.moon-glow {
  position: fixed;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--moon-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.logo-icon { font-size: 1.4rem; }
.logo-text .year { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.nav-btn, .nav-btn-outline {
  padding: 0.45rem 1rem !important;
  border-radius: 8px;
  font-size: 0.85rem !important;
}

.nav-btn {
  background: var(--accent) !important;
  color: white !important;
}

.nav-btn:hover { background: var(--accent-light) !important; }

.nav-btn-outline {
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

.nav-btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 7rem 1.5rem 4rem;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 .highlight { color: var(--accent-light); }

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #64748b 100%);
  box-shadow:
    0 0 60px rgba(226, 232, 240, 0.3),
    inset -20px -20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.moon::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(100, 116, 139, 0.4);
  border-radius: 50%;
  top: 40px;
  left: 50px;
}

.moon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 50%;
  bottom: 60px;
  right: 40px;
}

.planet-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.rocket {
  position: absolute;
  font-size: 2.5rem;
  top: 20px;
  right: 60px;
  animation: rocket-float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rocket-float {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-20px) rotate(-15deg); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.btn-block { width: 100%; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
}

.about-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.about-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.about-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Events */
.events { background: rgba(15, 23, 42, 0.4); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.event-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
}

.event-card.featured {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), var(--bg-card));
}

.event-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.15);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.event-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.event-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.event-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-details li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.event-details li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 0.7rem;
}

/* Theme */
.theme-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.theme-banner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--gold);
  margin: 1rem 0 1.5rem;
  line-height: 1.4;
}

.theme-banner > p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Register */
.register-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.register-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.register-icon { font-size: 3rem; margin-bottom: 1rem; }

.register-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.register-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.register-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form pages */
.form-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

.form-container {
  width: 100%;
  max-width: 520px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header .form-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.form-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group label .required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible { display: block; }

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-light); }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Dashboard */
.dashboard {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 6rem 1.5rem 3rem;
}

.dashboard-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.dashboard-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.dashboard-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-item span {
  font-size: 0.95rem;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.event-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-light);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: var(--error);
  color: var(--error);
}

/* Admin dashboard */
.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-dashboard .dashboard-header,
.admin-dashboard .dashboard-card,
.admin-dashboard .admin-stats,
.admin-dashboard .admin-tabs {
  max-width: 1200px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 auto 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
}

.admin-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.admin-tab:hover,
.admin-tab.active {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
}

.admin-panel.hidden { display: none; }

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.empty-msg {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

.status-badge.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.status-badge.failed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 280px; }
  .moon { width: 150px; height: 150px; }

  .about-grid,
  .events-grid { grid-template-columns: 1fr; }

  .register-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.98);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .nav-links.open { display: flex; }
  .nav-divider { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
}
