.sign-btn {
  color:#fff;
  background:transparent;
  border:2px solid #fff;
  transition:.25s;
}

.sign-btn:link,
.sign-btn:visited {
  color:#fff !important;
  background:transparent !important;
  border-color:#fff !important;
  box-shadow:none !important;
}

.sign-btn:hover,
.sign-btn:focus,
.sign-btn:active,
.sign-btn:focus-visible {
  color:#111212 !important;
  background:#E4C76F !important;
  border-color:#E4C76F !important;
  box-shadow:0 0 18px rgba(228,199,111,.55),
             0 0 6px rgba(228,199,111,.8) inset !important;
  outline:none !important;
}

h1 {
  line-height: 1.1;
}

.login-screen {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  height:100vh;
  width:100%;
  padding:1rem;
  margin:0 auto;
}

.hero-img {
  max-width:80%;
  height:auto;
}

.text-gold { color:#E4C76F !important; }

.lead { font-size:1.1rem; line-height:1.6; }

@media (min-width: 992px) {
  .login-screen {
    max-width: 900px;
  }
  .hero-img {
    max-width: 400px;
  }
  h1 {
    font-size: 3rem;
    line-height: 1.3;
  }
  .lead {
    font-size:1.3rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  .lead { font-size: 1rem; }
  .hero-img { max-width: 90%; }
}

p {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

@media (min-width: 992px) {
  p {
    max-width: 70%;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  p {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* Validation Page */
.validation-screen {
  text-align:center;
  padding:2rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.2rem;
  color: #E4C76F;
}

.step-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-btn {
  max-width:150px;
  cursor:pointer;
}

.neon-input {
  margin: 18px;
  background: transparent;
  border: 2px solid #50B7ED;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  width: 300px;
  text-align: center;
  box-shadow:
    0 0 6px #3F8FED,
    0 0 6px #3F8FED,
    0 0 12px rgba(63,143,237,0.8);
}

.neon-input:focus {
  outline:none;
  border-color:#E4C76F;
  box-shadow:0 0 12px rgba(228,199,111,.8), inset 0 0 6px rgba(228,199,111,.6);
}

.neon-btn {
  background: transparent;
  border: 2px solid #3F8FED;
  color: #3F8FED;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow:
    0 0 6px #3F8FED,
    0 0 12px #3F8FED,
    0 0 24px rgba(63,143,237,0.9),
    0 0 40px rgba(63,143,237,0.6);
  transition: opacity .25s ease, box-shadow .25s ease;
}

.neon-btn.active {
  cursor: pointer;
  opacity: 1;
}

.neon-btn.active:hover {
  box-shadow:
    0 0 10px #3F8FED,
    0 0 20px #3F8FED,
    0 0 35px rgba(63,143,237,1),
    0 0 60px rgba(63,143,237,0.9);
}

#submitBtn {
  display: inline-block;
  margin-top: 70px;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#submitBtn.active {
  opacity: 1;
  pointer-events: auto;
}

.neon-submit {
  width: 150px;
  max-width: 200px !important;
}

.neon-submit img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile adaptation for validation */
@media (max-width: 768px) {
  .validation-screen {
    padding: 1rem 0.5rem;
  }
  
  .validation-screen h2 {
    font-size: 1.2rem;
    line-height: 1.4;
    padding: 0 0.5rem;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 320px;
  }
  
  .step h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .step-btn {
    max-width: 220px;
  }

  .neon-input {
    width: 280px;
    font-size: 0.9rem;
    margin: 12px;
    padding: 0.5rem 0.8rem;
  }

  .neon-submit {
    width: 180px;
  }

  #submitBtn {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .validation-screen {
    padding: 0.5rem;
  }

  .validation-screen h2 {
    font-size: 1rem;
    line-height: 1.3;
    padding: 0 0.25rem;
  }

  .steps {
    max-width: 280px;
    gap: 1rem;
  }

  .step h2 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .step-btn {
    max-width: 200px;
  }

  .neon-input {
    width: 250px;
    font-size: 0.8rem;
    margin: 8px;
    padding: 0.4rem 0.6rem;
  }

  .neon-submit {
    width: 200px;
  }
}

/* Desktop adaptation for validation */
@media (min-width: 768px) {
  .steps {
    flex-direction:row;
    justify-content:center;
    flex-wrap:wrap;
  }
  .step {
    margin:0 1rem;
  }
}

/* Modal styles */
.modal-content {
  background:#111212;
  border:2px solid #E4C76F;
  border-radius:8px;
  box-shadow:0 0 20px rgba(228,199,111,.4);
}

.claim-btn {
  background: #E4C76F;
  border: 2px solid #E4C76F;
  color: #111212;
  box-shadow: 0 0 18px rgba(228,199,111,.55), 0 0 6px rgba(228,199,111,.8) inset;
  transition: all .25s ease;
}

.claim-btn:focus,
.claim-btn:active {
  background: #E4C76F !important;
  color: #111212 !important;
  border-color: #E4C76F !important;
  box-shadow: 0 0 18px rgba(228,199,111,.55), 0 0 6px rgba(228,199,111,.8) inset !important;
}

.claim-btn:hover {
  color:#111212;
  background:#f0d77f;
  border-color:#f0d77f;
  box-shadow:0 0 18px rgba(228,199,111,.55),
             0 0 6px rgba(228,199,111,.8) inset;
}

/* Toast styles */
.bg-gold {
  background-color: #E4C76F !important;
  color: #111212 !important;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(228,199,111,0.8), 0 0 24px rgba(228,199,111,0.6);
}

.toast-gold{
  background:#E4C76F !important;
  color:#111212 !important;
  border:2px solid #E4C76F;
  box-shadow:0 0 12px rgba(228,199,111,.7),0 0 24px rgba(228,199,111,.5);
  font-weight:700;
}

/* Tickets page */
.tickets-screen {
  overflow-x: hidden;
}

.lottery-ticket {
  width: 150px;
  margin-left: -20px;
  margin-bottom: 50px;
  opacity: 0;
  animation: ticketFly .9s forwards;
  transform-origin: center center;
}

.lottery-ticket:nth-child(1) { animation-delay: .2s; z-index: 4; }
.lottery-ticket:nth-child(2) { animation-delay: .4s; z-index: 3; }
.lottery-ticket:nth-child(3) { animation-delay: .6s; z-index: 2; }
.lottery-ticket:nth-child(4) { animation-delay: .8s; z-index: 1; }

@keyframes ticketFly {
  from {
    transform: scale(0.2) translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) translateY(10px) rotate(-25deg);
    opacity: 1;
  }
  to {
    transform: scale(1) translateY(0) rotate(-45deg);
    opacity: 1;
  }
}

.user-ticket {
  margin: 0px auto;
  color: #E4C76F;
  font-weight: bold;
  opacity: 0;
  animation: riseIn .6s forwards;
}

.ref-input {
  background: transparent;
  border: 2px solid #E4C76F;
  color: white;
  padding: .5rem 1rem;
  width: 400px;
  text-align: center;
  pointer-events: none;
}

.ref-btn {
  margin-left: 10px;
  background: #E4C76F;
  border: none;
  padding: .5rem 1rem;
  cursor: pointer;
  color: #111212;
  font-weight: bold;
}

.ref-link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

.user-tickets {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: flex-start;
  margin: 0 auto;
  width: fit-content;
}

.user-ticket-row {
  display: flex;
  align-items: center;
  gap: 22px;
  opacity: 0;
  animation: riseIn .6s forwards;
  flex-wrap: nowrap;
}

.ticket-img{
  width:150px;
  height:auto;
  filter:drop-shadow(0 0 10px rgba(228,199,111,.35));
  flex-shrink: 0;
}

.ticket-code{
  color:#E4C76F;
  font-weight:700;
  font-size:1.25rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:0 0 8px rgba(228,199,111,.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

@keyframes riseIn{
  from{ transform:translateY(40px); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}

/* Additional prize text styles */
.prize-text {
  color: #E4C76F;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.prize-line {
  color: #E4C76F;
  font-size: 1rem;
  line-height: 1.3;
  margin: 0.2rem 0;
}

.user-benefits {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 1rem;
}

.user-benefits .gold-text {
  color: #E4C76F;
}

/* Mobile adaptation for tickets */
@media (max-width: 768px) {
  .tickets-screen h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .tickets-screen h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .tickets-screen h3 {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .tickets-screen p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .lottery-ticket {
    width: 100px;
    margin-left: -12px;
    margin-bottom: 30px;
  }

  .ticket-img {
    width: 170px;
  }

  .ticket-code {
    font-size: 0.9rem;
    max-width: 180px;
  }

  .user-ticket-row {
    gap: 12px;
  }

  .ref-input {
    width: 280px;
    font-size: 0.8rem;
    padding: .4rem .6rem;
  }

  .ref-btn {
    padding: .4rem .8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tickets-screen {
    padding: 0.5rem;
  }

  .tickets-screen h1 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .tickets-screen h2 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .tickets-screen h3 {
    font-size: 0.8rem;
  }

  .tickets-screen p {
    font-size: 0.7rem;
  }

  .lottery-ticket {
    width: 70px;
    margin-left: -8px;
    margin-bottom: 20px;
  }

  .ticket-img {
    width: 120px;
  }

  .ticket-code {
    font-size: 0.7rem;
    max-width: 150px;
  }

  .user-ticket-row {
    gap: 8px;
  }

  .ref-link {
    flex-direction: column;
    gap: 5px;
  }

  .ref-input {
    width: 220px;
    font-size: 0.7rem;
  }

  .ref-btn {
    font-size: 0.7rem;
    padding: .3rem .6rem;
  }
}

/* Checkboxes for login page */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  margin: 0.8rem 0;
  cursor: pointer;
  text-align: left;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox .checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 2px solid #E4C76F;
  border-radius: 3px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #E4C76F;
  box-shadow: 0 0 8px rgba(228,199,111,0.5);
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #111212;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-text a {
  color: #E4C76F;
  text-decoration: none;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

.terms-container {
  max-width: 500px;
  margin: 2rem auto 1rem;
  text-align: left;
}

/* Toast error styles */
.toast-error {
  background-color: #dc3545 !important;
  color: #fff !important;
  border: 2px solid #dc3545;
  box-shadow: 0 0 12px rgba(220,53,69,0.7), 0 0 24px rgba(220,53,69,0.5);
  font-weight: 700;
}

@media (max-width: 576px) {
  .terms-container {
    max-width: 100%;
    margin: 1.5rem auto 0.5rem;
    padding: 0 1rem;
  }

  .checkbox-text {
    font-size: 0.8rem;
  }

  .custom-checkbox .checkmark {
    height: 18px;
    width: 18px;
  }
}
@media (max-width: 768px) {
  .container-sm {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .modal-content {
    margin: 1rem;
  }
  
  .modal-content h3 {
    font-size: 1rem;
  }
  
  .modal-content p {
    font-size: 0.8rem;
  }
}