@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&family=Pacifico&display=swap');

:root {
  --sky: #7EC8E3;
  --sky-light: #C9E8F5;
  --purple: #8B5CF6;
  --purple-light: #C4B5FD;
  --purple-dark: #5B21B6;
  --black: #0F0F1A;
  --white: #F8F9FF;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139,92,246,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(126,200,227,0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star {
  position: absolute; border-radius: 50%; background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%,100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,15,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.2);
}
.nav-logo {
  font-family: 'Pacifico', cursive; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--sky), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-weight: 700; font-size: 0.85rem;
  padding: 8px 14px; border-radius: 20px; transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: white; background: rgba(139,92,246,0.25);
}

.page-wrap {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto;
  padding: 110px 20px 60px;
}

.page-header {
  text-align: center; margin-bottom: 50px;
  animation: fadeUp 0.7s ease both;
}
.page-label {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sky);
  display: block; margin-bottom: 10px;
}
.page-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  background: linear-gradient(135deg, white 40%, var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-sub {
  color: rgba(255,255,255,0.5); font-weight: 600;
  margin-top: 10px; font-size: 0.95rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 24px; border-radius: 24px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s; border: none; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--sky));
  color: white; box-shadow: 0 6px 20px rgba(139,92,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(139,92,246,0.5); }
.btn-outline {
  background: transparent; color: var(--sky-light);
  border: 2px solid rgba(126,200,227,0.35);
}
.btn-outline:hover { border-color: var(--sky); background: rgba(126,200,227,0.08); transform: translateY(-2px); }

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px; padding: 26px 24px;
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 16px 36px rgba(139,92,246,0.15);
}

.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #1a1a2e; border: 1px solid rgba(139,92,246,0.3);
  border-radius: 24px; padding: 36px; width: 100%; max-width: 560px;
  animation: fadeUp 0.3s ease;
}
.modal h2 { font-family: 'Fredoka One', cursive; font-size: 1.8rem; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 6px; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(139,92,246,0.25); border-radius: 12px;
  padding: 12px 16px; color: white;
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 0.95rem;
  outline: none; transition: border-color 0.3s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--purple); }
.form-group select option { background: #1a1a2e; }

.modal-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end; }
.btn-cancel { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1); }
.btn-cancel:hover { background: rgba(255,255,255,0.12); }

.empty-state {
  text-align: center; padding: 60px 20px;
  color: rgba(255,255,255,0.3); font-weight: 700;
}
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 1rem; }

footer {
  position: relative; z-index: 1; text-align: center;
  padding: 32px 20px; border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3); font-size: 0.82rem; font-weight: 600; margin-top: 40px;
}
footer strong {
  background: linear-gradient(135deg, var(--sky), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  nav { padding: 14px 16px; }
  .nav-links a { padding: 6px 10px; font-size: 0.78rem; }
}
