/* === Base / Reset / Globals === */
*, ::after, ::before { box-sizing: border-box; }
html, body { height: 100%; }
body {
  background-color: #000;
  color: #fff;
  margin: 0;
  overflow: hidden;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

/* Container helpers */
.container { position: relative; width: 100%; height: 100vh; }
.mh { min-height: 100vh; }

/* Buttons */
.ebtn {
  cursor: pointer;
  font-weight: bold;
  font-size: 21px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  user-select: none;
  padding: 10px 18px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(2px);
}
.ebtn:hover, .ebtn:focus {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.ebtn.small { font-size: 16px; margin: 10px; padding: 8px 14px; }
.buttons { margin-top: 20px; }

/* Sparkle canvas behind everything */
#sparkle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Keep site content above sparkles */
.site-header, .dashboard, .dash-card, .profile-card { position: relative; z-index: 1; background: transparent; }
.dash-card, .profile-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Header wrapper */
.site-header {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  background: none;
  box-shadow: none;
  position: relative;
  z-index: 2;
}
.site-logo { max-width: 100px; height: auto; margin: 0 auto 1rem; display: block; }
.site-header nav {
  display: flex; justify-content: center; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}

/* Links in dashboard nav style */
.dash-link {
  color: white; font-weight: 600; text-decoration: none; position: relative;
}
.dash-link::after {
  content: ""; display: block; height: 2px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, violet, red);
  background-size: 800% 100%;
  animation: rgbFlow 150s linear infinite;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.dash-link:hover::after { transform: scaleX(1); }

/* Shared RGB animation */
@keyframes rgbFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 800% 50%; }
}

/* Small screens */
@media (max-width: 480px) {
  .ebtn { font-size: 18px; padding: 8px 14px; }
}