@import url('https://fonts.googleapis.com/css2?family=Bitcount+Single:wght@100..900&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: "Poppins", sans-serif;
  color: #f0f0ff;
}

#SIGNUP-PAGE {
  min-height: 100vh;
  max-height: 100vh;
  scroll-behavior: smooth;
  display: block;
  flex-direction: column;
  transition: 2s ease;
  background: radial-gradient(circle at 50% 10%, #1e0040, #000);
}

#HEADER {
  position: fixed;
  top: 0;
  left: 0;
  padding: 12px 15px;
  display: flex;
  place-content: space-between;
  width: 100%;
  background: rgba(8, 5, 22, 0.7);
  backdrop-filter: blur(6px);
  align-items: center;
  z-index: 20;
}

#HAPPNAMELOGO {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100px;
}#HPAGELINKS {
  transition: all 3s ease;
  border-radius: 10px;
  gap: 12px;
  display: flex;
}

.HPAGELINKS-ITEMS {
  color: #c0b0ff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.25s;
  padding: 10px;
  border-radius: 30px;
  padding-top: 3px;
}

.HPAGELINKS-ITEMS:hover {
  color: #00eaff;
  text-shadow: 0 0 10px #00d9ff;
}
#Menu {
  display: none;
  transition: all 4s ease;
}
@media (max-width: 430px) {
  #Menu {
    display: block;
  }
  #HPAGELINKS {
  flex-direction: column;
  background:linear-gradient(rgba(78, 71, 71, 0.277),rgba(3, 1, 1, 0.838), rgba(0, 0, 0, 0.759));
  border: solid 1px gray;
  padding: 12px 12px;
  gap: 12px;
  position: absolute;
  right: 10px;
  top: 10px;
  display: none;
}
.HPAGELINKS-ITEMS:hover{
  background-color: rgb(7, 29, 7);
  padding: 15px;
  border-radius: 25px;
  border: solid 1px rgba(255, 255, 255, 0.107);
  scale: 1.05;
}
}
#headerLogo {
  width: 45px;
  height: 45px;
  border-radius: 12px;
}

#HAPPNAME {
  font-size: 1.5rem;
  color: #d5aaff;
  font-weight: 700;
  text-shadow: 0 0 12px #8c00ff;
  font-family: Bitcount single;
  justify-self: flex-start;
}

#TOP-WRAPPER {
  max-width: 100%;
  overflow: hidden;
  height: 28vh;
  margin-top: 70px;
  background: url("/mediafiles/signupBackground.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#TOPDIV-TEXT {
  position: relative;
  z-index: 2;
  font-size: 1.8rem;
  font-weight: 800;
  text-shadow: 0 0 15px #9c00ff;
}

#BOTTOM-WRAPPER {
  width: 100%;
  padding: 20px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

#HEADER-BOTTOMDIV {
  width: 85%;
  text-align: center;
  opacity: 0.9;
  font-size: 0.95rem;
  font-variant: small-caps;
  color: #e0e0ff;
}

#SIGNUP-FORM-WRAPPER {
  width: 92%;
  max-width: 420px;
  background: rgba(18, 15, 28, 0.75);
  border: 1px solid rgba(140, 90, 255, 0.55);
  border-radius: 18px;
  padding: 25px 18px;
  justify-self: center;
  box-shadow: 0 0 25px #6a00ff;
  animation: glow 4s infinite alternate ease-in-out;
  animation: slideUp 0.9s ease-out forwards,
  glow 4s infinite alternate ease-in-out;
  opacity: 0;
  transform: translateY(40px);
}

@keyframes glow {
  0% {
    box-shadow: 0 0 6px #ff3366;
  }
  100% {
    box-shadow: 0 0 10px #ffcc33;
  }
}

#SIGNUP-TEXT {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 10px;
}

#ERROR-TEXT {
  text-align: center;
  font-size: 0.85rem;
  width: fit-content;
  justify-self: center;
  font-weight: light;
  font-style: italic;
  color: #ff5f5f;
  margin: 5px auto;
}

#INPUTS-WRAPPER {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

option {
  background-color: #0d1a0d;
  color: #e0ffe0;
  width: inherit;
  height: inherit;
  align-items: start;
  text-align: start;
  justify-content: start;
}

select {
  width: 100%;
  height: 35px;
  border-radius: 10px;
  display: block;
  transition: 3s ease;
  text-align: center;
}

.SIGNUP-INPUTS {
  width: 100%;
  padding: 13px;
  background: #1e1e2e;
  border: none;
  border-radius: 15px 25%;
  margin-top: 5px;
  border: groove 1px rgba(245, 245, 245, 0.423);
  color: #e0e0ff;
  transition: 0.25s;
  font-size: 0.95rem;
}

.SIGNUP-INPUTS::placeholder {
  color: #a0a0c0;
  text-shadow: 0 0 6px rgba(100, 200, 255, 0.3);
}

.SIGNUP-INPUTS:focus {
  background: #f8f8ff;
  color: #0a0a1a;
  outline: 2px solid #00d4ff;
  transform: scale(1.03);
}

.submitBtn {
  width: 90%;
  padding: 14px;
  border-radius: 25px;
  font-size: 1.05rem;
  margin-top: 5px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #00c4ff);
  transition: 1s;
  color: #fff;
  font-weight: 700;
  align-self: center;
  margin-bottom: 14px;
  transition: all 2s ease;
}

.unchanged {
  background: linear-gradient(135deg, #5a2ab8, #0099cc);
  color: rgba(255, 255, 255, 0.45);
  transition: all 2s ease;
}

#SUBMIT-BTN:hover {
  transform: translateY(-3px) scale(0.9);
  background: linear-gradient(135deg, #ff9500, #ffb733);
}

.createText {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  align-self: center;
  width: 100%;
}

.createText a {
  color: #00ffcc;
  font-weight: bold;
}

@media (max-width: 380px) {
  #HAPPNAME {
    font-size: 1.2rem;
  }
  #TOPDIV-TEXT {
    font-size: 1.5rem;
  }
}

#profilePreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profilePic {
  opacity: 0;
  position: absolute;
  width: 110px;
  height: 110px;
  cursor: pointer;
}

.profile-label {
  text-align: center;
  width: 100%;
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

.neon-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #a020f0,
    #00eaff,
    transparent
  );
  box-shadow: 0 0 12px #a020f0;
  margin: 5px 0 15px;
  border-radius: 10px;
}

.profile-section {
  margin-top: 20px;
}

.profile-pic-wrapper {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #9c27b0;
  box-shadow: 0 0 2px #9c27b0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.profile-pic-wrapper:hover {
  box-shadow: 0 0 10px #00d4ff;
  transform: scale(1.07);
}

.profile-pic-text {
  position: absolute;
  color: #00ffec;
  text-shadow: 0 0 6px #00ffec, 0 0 15px #9c27b0;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
  transition: 0.3s ease;
}

#profilePic:valid + .profile-pic-text,
#profilePic:focus + .profile-pic-text {
  opacity: 0;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(200px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#TOP-WRAPPER::before {
  content: "-";
  color: rgba(0, 0, 0, 0);
  border-radius: 20%;
  position: absolute;
  width: 100%;
  height: min-content;
  left: 0;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent, #ff3366);
  animation: scanHorizontal 5s linear infinite;
}

#TOP-WRAPPER::after {
  top: auto;
  bottom: 0;
  animation: scanHorizontal 3s linear infinite reverse;
}

@keyframes scanHorizontal {
  0% {
    transform: translateX(-100%);
    opacity: 0.2;
  }
  50% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.2;
  }
}

#loader {
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.unload {
  display: none;
}

.loads {
  display: flex;
  align-items: center;
  min-width: 100%;
  padding: 0 35px;
  margin: 0;
  justify-content: end;
  border-radius: 15%;
  transition: 1s ease;
  border-bottom: groove 2px #5aa35fa3;
}

#loadA {
  width: 20px;
  height: 30px;
  background: none;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
  align-self: center;
  border-bottom: solid 2px #00ff88;
  border-bottom-style: double;
  border-top: solid 2px #00ff88;
  border-top-style: double;
  animation: load 1.5s ease infinite;
  position: relative;
}

#loadB {
  width: 20px;
  height: 30px;
  background: none;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
  align-self: center;
  border: none;
  position: relative;
  border-bottom: solid 2px #00ff88;
  border-bottom-style: double;
  border-top: solid 2px #00ff88;
  border-top-style: double;
  animation: load 1.5s ease infinite;
}

@keyframes load {
  0% {}
  65% {
    transform: rotateZ(-1080deg) scale(1);
    border-top-right-radius: 15px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 0px;
  }
  100% {}
}

.hidden {
  display: none;
}

/* Disabled / invalid state for Next button */
.submitBtn.unchanged {
  opacity: 0.5;
  cursor: not-allowed;
  background: #444;
  pointer-events: none;
}

/* Active state glow */
.submitBtn:not(.unchanged) {
  opacity: 1;
  cursor: pointer;
}

/* Input validation feedback */
.SIGNUP-INPUTS:invalid,
.SIGNUP-INPUTS:focus:invalid {
  border: 1px solid #ff5f5f;
  box-shadow: 0 0 6px rgba(255, 95, 95, 0.4);
}

.backBtn {
  min-width: 48px;
  max-height: 48px;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: #5c4aff;
  color: white;
  font-size: 14px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.backBtn:hover {
  background: #7a6aff;
  transform: scale(1.05);
}

.backBtn.unchanged {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

#BUTTONS-WRAPPER {
  margin-top: 24px;
  align-items: center;
}

.SIGNUP-INPUTS-LABELS {
  padding: 10px auto;
  text-align: center;
  justify-self: center;
  display: flex;
}

.field-error {
  color: #ff5f5f;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  min-height: 16px;
}

.field-error:empty {
  display: none;
}

.profile-section .field-error {
  margin-top: 8px;
}
.tips-carousel {
  position: relative;
  height: 120px;                    /* Adjust based on your longest tip */
  margin-bottom: 28px;
  overflow: hidden;
  background: rgba(2, 91, 11, 0.08);
  backdrop-filter: blur(10px);      /* Glassmorphism magic */
  border: 1px solid rgba(2, 91, 11, 0.25);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 0 20px rgba(2, 91, 11, 0.1);
  padding: 16px 20px;
  font-size: 14.5px;
  color: #e8f5e9;
  line-height: 1.55;
  font-weight: 400;
}

.tip-item {
  position: absolute;
  inset: 0;
  padding: 16px 20px;
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  animation: cycleTips 20s infinite ease-in-out;
  animation-delay: calc(var(--order) * 5s - 5s); /* 5s per tip = 20s total cycle */
}

.tip-item strong {
  color: #4caf50;
  font-weight: 600;
}

/* Core animation: appear → stay → disappear */
@keyframes cycleTips {
  0%    { opacity: 0; transform: scale(0.92) translateY(10px); }
  5%    { opacity: 1; transform: scale(1.00) translateY(0); letter-spacing: 0.5px; }
  20%   { opacity: 1; transform: scale(1.00) translateY(0); letter-spacing: 0.8px; } /* stay visible */
  25%   { opacity: 0; transform: scale(0.96) translateY(-8px); }
  100%  { opacity: 0; transform: scale(0.92) translateY(10px); }
}

/* Optional: subtle glow pulse on active tip */
.tip-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(2, 91, 11, 0.3), transparent);
  opacity: 0;
  animation: glowPulse 5s infinite;
  animation-delay: calc(var(--order) * 5s - 5s);
  pointer-events: none;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0; }
  10%, 15% { opacity: 0.6; }
}