/* Botones −/+ neón de EUPHORIA: sustituyen las flechas nativas
   de input[type=number] y dejan el campo real como fuente de verdad. */

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.neon-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 226, 230, 0.28);
  background: rgba(8, 4, 18, 0.78);
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.neon-stepper:hover {
  border-color: rgba(45, 226, 230, 0.55);
  box-shadow: 0 0 14px rgba(45, 226, 230, 0.18);
}

.neon-stepper:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 226, 230, 0.22), 0 0 18px rgba(45, 226, 230, 0.28);
}

.neon-stepper.is-disabled {
  opacity: 0.45;
  box-shadow: none;
}

.neon-stepper.is-disabled:hover,
.neon-stepper.is-disabled:focus-within {
  border-color: rgba(45, 226, 230, 0.28);
  box-shadow: none;
}

.admin-form .neon-stepper input,
.escaner-token-form .neon-stepper input,
.field .neon-stepper input,
.neon-stepper input[type="number"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0.7rem 0.7rem 0.7rem 0.85rem;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text);
  font: inherit;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  outline: none !important;
  color-scheme: dark;
  -moz-appearance: textfield;
  appearance: textfield;
}

.field .neon-stepper input[type="number"] {
  padding: 0.6rem 0.55rem 0.6rem 0.85rem;
}

.neon-stepper__btns {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  padding: 0.22rem 0.22rem 0.22rem 0;
  gap: 0.16rem;
}

.neon-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.15rem;
  min-width: 2.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(45, 226, 230, 0.38);
  border-radius: 8px;
  background: rgba(8, 2, 18, 0.85);
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(45, 226, 230, 0.12);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.neon-stepper__btn:hover:not(:disabled) {
  border-color: var(--teal);
  background: rgba(45, 226, 230, 0.14);
  color: #9ffffc;
  box-shadow: 0 0 12px rgba(45, 226, 230, 0.35);
}

.neon-stepper__btn:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(45, 226, 230, 0.35), 0 0 12px rgba(45, 226, 230, 0.4);
}

.neon-stepper__btn:active:not(:disabled),
.neon-stepper__btn.is-pressed:not(:disabled) {
  border-color: var(--pink);
  background: rgba(255, 60, 172, 0.2);
  color: #ffb6e4;
  box-shadow: 0 0 12px rgba(255, 60, 172, 0.4);
}

.neon-stepper__btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}


.admin-form .neon-stepper input:disabled,
.escaner-token-form .neon-stepper input:disabled,
.field .neon-stepper input:disabled,
.neon-stepper input:disabled {
  opacity: 1;
}

.field-age {
  max-width: 12rem;
}

@media (prefers-reduced-motion: reduce) {
  .neon-stepper,
  .neon-stepper__btn {
    transition: none;
  }
}
