/* From Uiverse.io by 00Kubi */ 
.neon-checkbox {
  --primary: #00ffaa;
  --primary-dark: #00cc88;
  --primary-light: #88ffdd;
  --size: 14px;
  position: relative;
  width: var(--size) !important;
  height: var(--size) !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
  vertical-align: middle;
  flex: none !important;
}

/* ═══════════════════════════════════════════
   Unicode Checkbox Normalization
   For symbols: ☐ (U+2610), ☑ (U+2611), ✅ (U+2705)
   ═══════════════════════════════════════════ */
.unicode-checkbox {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: -0.12em;
  width: 1em;
  height: 1em;
  text-align: center;
  user-select: none;
}

.neon-checkbox input {
  display: none;
}

.neon-checkbox__frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.neon-checkbox__box {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 1px;
  border: 1.5px solid var(--primary-dark);
  transition: all 0.4s ease;
}

.neon-checkbox__check-container {
  position: absolute;
  inset: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-checkbox__check {
  width: 80%;
  height: 80%;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transform-origin: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.neon-checkbox__glow {
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background: var(--primary);
  opacity: 0;
  filter: blur(1px);
  transform: scale(1.1);
  transition: all 0.4s ease;
}

.neon-checkbox__borders {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
}

.neon-checkbox__borders span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.neon-checkbox__borders span:nth-child(1) {
  top: 0;
  left: -100%;
  animation: borderFlow1 2s linear infinite;
}

.neon-checkbox__borders span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 1px;
  height: 20px;
  animation: borderFlow2 2s linear infinite;
}

.neon-checkbox__borders span:nth-child(3) {
  bottom: 0;
  right: -100%;
  animation: borderFlow3 2s linear infinite;
}

.neon-checkbox__borders span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 1px;
  height: 20px;
  animation: borderFlow4 2s linear infinite;
}

.neon-checkbox__particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  top: 50%;
  left: 50%;
  box-shadow: 0 0 6px var(--primary);
}

.neon-checkbox__rings {
  position: absolute;
  inset: -6px;
  pointer-events: none;
}

.neon-checkbox__rings .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: 0;
  transform: scale(0);
}

.neon-checkbox__sparks span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
}

/* Hover Effects */
.neon-checkbox:hover .neon-checkbox__box {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Checked State */
.neon-checkbox input:checked ~ .neon-checkbox__frame .neon-checkbox__box {
  border-color: var(--primary);
  background: rgba(0, 255, 170, 0.1);
}

.neon-checkbox input:checked ~ .neon-checkbox__frame .neon-checkbox__check {
  stroke-dashoffset: 0;
  transform: scale(1.1);
}

.neon-checkbox input:checked ~ .neon-checkbox__frame .neon-checkbox__glow {
  opacity: 0.2;
}

.neon-checkbox
  input:checked
  ~ .neon-checkbox__frame
  .neon-checkbox__borders
  span {
  opacity: 1;
}

/* Particle Animations */
.neon-checkbox
  input:checked
  ~ .neon-checkbox__frame
  .neon-checkbox__particles
  span {
  animation: particleExplosion 0.6s ease-out forwards;
}

.neon-checkbox
  input:checked
  ~ .neon-checkbox__frame
  .neon-checkbox__rings
  .ring {
  animation: ringPulse 0.6s ease-out forwards;
}

.neon-checkbox
  input:checked
  ~ .neon-checkbox__frame
  .neon-checkbox__sparks
  span {
  animation: sparkFlash 0.6s ease-out forwards;
}

/* Animations */
@keyframes borderFlow1 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes borderFlow2 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(200%);
  }
}

@keyframes borderFlow3 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%);
  }
}

@keyframes borderFlow4 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-200%);
  }
}

@keyframes particleExplosion {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(
        calc(-50% + var(--x, 20px)),
        calc(-50% + var(--y, 20px))
      )
      scale(0);
    opacity: 0;
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes sparkFlash {
  0% {
    transform: rotate(var(--r, 0deg)) translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(var(--r, 0deg)) translateX(30px) scale(0);
    opacity: 0;
  }
}

/* Particle Positions */
.neon-checkbox__particles span:nth-child(1) {
  --x: 25px;
  --y: -25px;
}
.neon-checkbox__particles span:nth-child(2) {
  --x: -25px;
  --y: -25px;
}
.neon-checkbox__particles span:nth-child(3) {
  --x: 25px;
  --y: 25px;
}
.neon-checkbox__particles span:nth-child(4) {
  --x: -25px;
  --y: 25px;
}
.neon-checkbox__particles span:nth-child(5) {
  --x: 35px;
  --y: 0px;
}
.neon-checkbox__particles span:nth-child(6) {
  --x: -35px;
  --y: 0px;
}
.neon-checkbox__particles span:nth-child(7) {
  --x: 0px;
  --y: 35px;
}
.neon-checkbox__particles span:nth-child(8) {
  --x: 0px;
  --y: -35px;
}
.neon-checkbox__particles span:nth-child(9) {
  --x: 20px;
  --y: -30px;
}
.neon-checkbox__particles span:nth-child(10) {
  --x: -20px;
  --y: 30px;
}
.neon-checkbox__particles span:nth-child(11) {
  --x: 30px;
  --y: 20px;
}
.neon-checkbox__particles span:nth-child(12) {
  --x: -30px;
  --y: -20px;
}

/* Spark Rotations */
.neon-checkbox__sparks span:nth-child(1) {
  --r: 0deg;
  top: 50%;
  left: 50%;
}
.neon-checkbox__sparks span:nth-child(2) {
  --r: 90deg;
  top: 50%;
  left: 50%;
}
.neon-checkbox__sparks span:nth-child(3) {
  --r: 180deg;
  top: 50%;
  left: 50%;
}
.neon-checkbox__sparks span:nth-child(4) {
  --r: 270deg;
  top: 50%;
  left: 50%;
}

/* Ring Delays */
.neon-checkbox__rings .ring:nth-child(1) {
  animation-delay: 0s;
}
.neon-checkbox__rings .ring:nth-child(2) {
  animation-delay: 0.1s;
}
.neon-checkbox__rings .ring:nth-child(3) {
  animation-delay: 0.2s;
}

/* ═══════════════════════════════════════════
   BTN-53 Animated Button (Uiverse.io/doniaskima)
   ═══════════════════════════════════════════ */
.btn-53, .btn-53 *, .btn-53 :after, .btn-53 :before, .btn-53:after, .btn-53:before { box-sizing: border-box; }
.btn-53 {
  -webkit-tap-highlight-color: transparent;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  overflow: hidden; position: relative;
  display: inline-block; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.btn-53 .original {
  background: inherit; color: inherit;
  display: grid; inset: 0; place-content: center;
  position: absolute;
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
}
.btn-53:hover .original { transform: translateY(100%); }
.btn-53 .letters { display: inline-flex; }
.btn-53 .letters span {
  opacity: 0; transform: translateY(-15px); display: inline-block;
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}
.btn-53 .letters span:nth-child(2n) { transform: translateY(15px); }
.btn-53:hover .letters span { opacity: 1; transform: translateY(0); }
.btn-53:hover .letters span:nth-child(2)  { transition-delay: 0.05s; }
.btn-53:hover .letters span:nth-child(3)  { transition-delay: 0.10s; }
.btn-53:hover .letters span:nth-child(4)  { transition-delay: 0.15s; }
.btn-53:hover .letters span:nth-child(5)  { transition-delay: 0.20s; }
.btn-53:hover .letters span:nth-child(6)  { transition-delay: 0.25s; }
.btn-53:hover .letters span:nth-child(7)  { transition-delay: 0.30s; }
.btn-53:hover .letters span:nth-child(8)  { transition-delay: 0.35s; }
.btn-53:hover .letters span:nth-child(9)  { transition-delay: 0.40s; }
.btn-53:hover .letters span:nth-child(10) { transition-delay: 0.45s; }
.btn-53:hover .letters span:nth-child(11) { transition-delay: 0.50s; }
.btn-53:hover .letters span:nth-child(12) { transition-delay: 0.55s; }
.btn-53:hover .letters span:nth-child(13) { transition-delay: 0.60s; }
.btn-53:hover .letters span:nth-child(14) { transition-delay: 0.65s; }
.btn-53:hover .letters span:nth-child(15) { transition-delay: 0.70s; }

/* Page Speed Loader Overlay */
#page-loader-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(11,11,11,0.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
#page-loader-overlay.active { opacity: 1; pointer-events: all; }
#page-loader-overlay .loader { position: relative; animation: speeder 0.4s linear infinite; }
#page-loader-overlay .loader > span { height: 5px; width: 35px; background: #E31E24; position: absolute; top: -19px; left: 60px; border-radius: 2px 10px 1px 0; }
#page-loader-overlay .base span { position: absolute; width: 0; height: 0; border-top: 6px solid transparent; border-right: 100px solid #E31E24; border-bottom: 6px solid transparent; }
#page-loader-overlay .base span:before { content: ""; height: 22px; width: 22px; border-radius: 50%; background: #E31E24; position: absolute; right: -110px; top: -16px; }
#page-loader-overlay .base span:after { content: ""; position: absolute; width: 0; height: 0; border-top: 0 solid transparent; border-right: 55px solid #E31E24; border-bottom: 16px solid transparent; top: -16px; right: -98px; }
#page-loader-overlay .face { position: absolute; height: 12px; width: 20px; background: #E31E24; border-radius: 20px 20px 0 0; transform: rotate(-40deg); right: -125px; top: -15px; }
#page-loader-overlay .face:after { content: ""; height: 12px; width: 12px; background: #E31E24; right: 4px; top: 7px; position: absolute; transform: rotate(40deg); transform-origin: 50% 50%; border-radius: 0 0 0 2px; }
#page-loader-overlay .loader > span > span:nth-child(1), #page-loader-overlay .loader > span > span:nth-child(2), #page-loader-overlay .loader > span > span:nth-child(3), #page-loader-overlay .loader > span > span:nth-child(4) { width: 30px; height: 1px; background: #E31E24; position: absolute; animation: fazer1 0.2s linear infinite; }
#page-loader-overlay .loader > span > span:nth-child(2) { top: 3px; animation: fazer2 0.4s linear infinite; }
#page-loader-overlay .loader > span > span:nth-child(3) { top: 1px; animation: fazer3 0.4s linear infinite; animation-delay: -1s; }
#page-loader-overlay .loader > span > span:nth-child(4) { top: 4px; animation: fazer4 1s linear infinite; animation-delay: -1s; }
@keyframes fazer1 { 0% { left: 0; } 100% { left: -80px; opacity: 0; } }
@keyframes fazer2 { 0% { left: 0; } 100% { left: -100px; opacity: 0; } }
@keyframes fazer3 { 0% { left: 0; } 100% { left: -50px; opacity: 0; } }
@keyframes fazer4 { 0% { left: 0; } 100% { left: -150px; opacity: 0; } }
@keyframes speeder { 0% { transform: translate(2px,1px) rotate(0deg); } 10% { transform: translate(-1px,-3px) rotate(-1deg); } 20% { transform: translate(-2px,0px) rotate(1deg); } 30% { transform: translate(1px,2px) rotate(0deg); } 40% { transform: translate(1px,-1px) rotate(1deg); } 50% { transform: translate(-1px,3px) rotate(-1deg); } 60% { transform: translate(-1px,1px) rotate(0deg); } 70% { transform: translate(3px,1px) rotate(-1deg); } 80% { transform: translate(-2px,-1px) rotate(1deg); } 90% { transform: translate(2px,1px) rotate(0deg); } 100% { transform: translate(1px,-2px) rotate(-1deg); } }
#page-loader-overlay .longfazers { position: absolute; width: 100%; height: 100%; top:0; left:0; }
#page-loader-overlay .longfazers span { position: absolute; height: 2px; width: 20%; background: rgba(227,30,36,0.35); }
#page-loader-overlay .longfazers span:nth-child(1) { top: 20%; animation: lf 0.6s linear infinite; animation-delay: -5s; }
#page-loader-overlay .longfazers span:nth-child(2) { top: 40%; animation: lf2 0.8s linear infinite; animation-delay: -1s; }
#page-loader-overlay .longfazers span:nth-child(3) { top: 60%; animation: lf3 0.6s linear infinite; }
#page-loader-overlay .longfazers span:nth-child(4) { top: 80%; animation: lf4 0.5s linear infinite; animation-delay: -3s; }
@keyframes lf  { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } }
@keyframes lf2 { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } }
@keyframes lf3 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } }
@keyframes lf4 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } }

/* ── Floating label fix for password fields (JS-toggled .mx-filled class) ── */
.input.mx-filled ~ .user-label,
.input.mx-filled ~ label {
  transform: translateY(-50%) scale(0.8) !important;
  background-color: var(--t-surface, var(--dark-2, #1a1a1a)) !important;
  padding: 0 .2em !important;
  color: #2196f3 !important;
}
