/* ===== Variables ===== */
:root {
  --bg: #0f0c29;
  --purple: #7c3aed;
  --indigo: #4f46e5;
  --pink: #ec4899;
  --gold: #fbbf24;
  --text: #ffffff;
  --text-muted: #c4b5fd;
  --text-subtle: #94a3b8;
  --card-radius: 20px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Body ===== */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
  position: relative;
  overflow-x: hidden;
}

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

/* ===== Page container ===== */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

/* ===== Back button ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-muted);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s;
}
.back-btn:hover { background: rgba(255,255,255,0.15); }

/* ===== Page title ===== */
.page-title {
  color: var(--text-muted);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

/* ===== Navigation cards ===== */
.nav-card {
  border-radius: var(--card-radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2px solid rgba(255,255,255,0.12);
  min-height: 80px;
}
.nav-card:hover, .nav-card:focus { transform: scale(1.025); outline: none; }
.nav-card:active { transform: scale(0.98); }
.nav-card-icon { font-size: 48px; flex-shrink: 0; line-height: 1; }
.nav-card-text h2 { color: white; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.nav-card-text p  { color: rgba(255,255,255,0.72); font-size: 14px; line-height: 1.4; }

/* Card colour variants */
.card-purple { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 8px 28px rgba(124,58,237,0.4); }
.card-cyan   { background: linear-gradient(135deg, #0e7490, #7c3aed); box-shadow: 0 8px 28px rgba(14,116,144,0.4); }
.card-rose   { background: linear-gradient(135deg, #be185d, #7c3aed); box-shadow: 0 8px 28px rgba(190,24,93,0.4); }
.card-orange { background: linear-gradient(135deg, #f97316, #ec4899); box-shadow: 0 8px 28px rgba(249,115,22,0.4); }
.card-green  { background: linear-gradient(135deg, #059669, #0e7490); box-shadow: 0 8px 28px rgba(5,150,105,0.4); }

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.floating { animation: float 3s ease-in-out infinite; }

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes confettiFly {
  from { transform: translate(0, 0) scale(0.5); opacity: 1; }
  to   { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; }
}

/* ===== Footer ===== */
.site-footer {
  color: #4b5563;
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
}
