html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: pan-x pan-y; 
  overflow: auto; 
}
.verify-card {
  background-color: #ffffff;
  width: 380px;
  padding: 40px 30px;
  -webkit-border-radius: 28px;
  -moz-border-radius: 28px;
  border-radius: 28px;
  -webkit-box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  -moz-box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) translateX(100%);
  -moz-transform: translate(-50%, -50%) translateX(100%);
  -ms-transform: translate(-50%, -50%) translateX(100%);
  -o-transform: translate(-50%, -50%) translateX(100%);
  transform: translate(-50%, -50%) translateX(100%);
  opacity: 0;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  z-index: 100;
}

.verify-card.active {
  -webkit-transform: translate(-50%, -50%) translateX(0);
  -moz-transform: translate(-50%, -50%) translateX(0);
  -ms-transform: translate(-50%, -50%) translateX(0);
  -o-transform: translate(-50%, -50%) translateX(0);
  transform: translate(-50%, -50%) translateX(0);
  opacity: 1;
}

.verify-title {
  font-size: 24px;
  color: #6C3F98;
  font-weight: bold;
  margin-bottom: 10px;
}

.verify-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
}

.code-inputs {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.code-inputs input {
  width: 40px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  border: 2px solid #e0d5f0;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-transition: 0.2s;
  -moz-transition: 0.2s;
  -o-transition: 0.2s;
  transition: 0.2s;
}

.code-inputs input:focus {
  border-color: #6C3F98;
  -webkit-box-shadow: 0 0 0 3px #f3e7ff;
  -moz-box-shadow: 0 0 0 3px #f3e7ff;
  box-shadow: 0 0 0 3px #f3e7ff;
  outline: none;
}

.btn-verify,
.btn-back {
  background-color: #6C3F98;
  color: white;
  width: 100%;
  padding: 14px;
  border: none;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  font-size: 17px;
  cursor: pointer;
  -webkit-transition: background 0.3s ease;
  -moz-transition: background 0.3s ease;
  -o-transition: background 0.3s ease;
  transition: background 0.3s ease;
  margin-bottom: 10px;
}

.btn-verify:hover,
.btn-back:hover {
  background-color: #875ac3;
}

.hidden {
  display: block;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 9999;
}

.loading-box {
  background: white;
  padding: 40px 30px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 280px;
  width: 80%;
}

.loading-box img {
  width:150px;
  height: auto;
  margin-bottom: 20px;
}

.dots {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 14px;
  height: 14px;
  background-color: #a855f7;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -webkit-animation: bounce 1s infinite ease-in-out;
  -moz-animation: bounce 1s infinite ease-in-out;
  -o-animation: bounce 1s infinite ease-in-out;
  animation: bounce 1s infinite ease-in-out;
}

.dot:nth-child(2) {
  -webkit-animation-delay: 0.2s;
  -moz-animation-delay: 0.2s;
  -o-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  -webkit-animation-delay: 0.4s;
  -moz-animation-delay: 0.4s;
  -o-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

@-webkit-keyframes bounce {
  0%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-moz-keyframes bounce {
  0%, 100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-o-keyframes bounce {
  0%, 100% {
    -o-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -o-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@keyframes bounce {
  0%, 100% {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-15px);
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -o-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "dana", sans-serif;
}

/* === ریسپانسیو برای موبایل === */
@media (max-width: 680px) {
  .loading-box {
    max-width: 160px;
    width: 60%;
    padding: 30px 20px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
  }

  .loading-box img {
    width: 60px;
    margin-bottom: 15px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dots {
    gap: 6px;
  }
}

*{
    font-family: 'dana';
    caret-color : transparent;
  }

  ::selection{
    background-color: #6C3F98;
    opacity: 70%;
    color: #fff;
  }
    @font-face {
      font-family: 'dana';
      src: url(../../dana-fonts/Dana-Medium.ttf);
    }
    @font-face {
      font-family: 'dana-small';
      src: url(../../dana-fonts/Dana-Regular.ttf);
    }

body {
  margin: 0;
  background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f5edff));
  background: -moz-linear-gradient(top, #ffffff 0%, #f5edff 100%);
  background: -o-linear-gradient(top, #ffffff 0%, #f5edff 100%);
  background: linear-gradient(180deg, #ffffff 0%, #f5edff 100%);
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 100vh;
  font-family: 'dana';
}

/* کارت ورود */
.login-card {
  background-color: #ffffff;
  width: 380px;
  padding: 40px 30px;
  -webkit-border-radius: 28px;
  -moz-border-radius: 28px;
  border-radius: 28px;
  -webkit-box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  -moz-box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  text-align: center;
  position: relative;
  overflow: visible;
}

.login-title h1{
  font-size: 26px;
  color: #6C3F98;
  margin-bottom: 30px;
  font-weight: bold;
}
.input-group {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
}

/* فیلد شماره */
input[type="tel"] {
  padding: 14px 16px;
  border: 2px solid #e0d5f0;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  font-size: 18px;
  outline: none;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  text-align: right;
  caret-color: auto;
}

input[type="tel"]:focus {
  border-color: #6C3F98;
  -webkit-box-shadow: 0 0 0 3px #ead9fb;
  -moz-box-shadow: 0 0 0 3px #ead9fb;
  box-shadow: 0 0 0 3px #ead9fb;
}

.btn-send  {
  background-color: #6C3F98;
  color: white;
  padding: 14px;
  border: none;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}


.btn-send:hover {
  background-color: #875ac3;
  -webkit-transform: scale(1.03);
  -moz-transform: scale(1.03);
  -ms-transform: scale(1.03);
  -o-transform: scale(1.03);
  transform: scale(1.03);
}

/* متن پایین */
.foot-note {
  margin-top: 25px;
  font-size: 13.5px;
  color: #888;
}

.foot-note a {
  color: #6C3F98;
  text-decoration: none;
  font-weight: bold;
}

.foot-note a:hover {
  text-decoration: underline;
}
#error-msg {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  text-align: right;
  padding-right: 5px;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 1000;
  -webkit-animation: fadeIn 0.3s ease-in-out;
  -moz-animation: fadeIn 0.3s ease-in-out;
  -o-animation: fadeIn 0.3s ease-in-out;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: #fff;
  -webkit-border-radius: 24px;
  -moz-border-radius: 24px;
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  padding: 30px 25px;
  position: relative;
  text-align: right;
  -webkit-animation: slideUp 0.35s ease;
  -moz-animation: slideUp 0.35s ease;
  -o-animation: slideUp 0.35s ease;
  animation: slideUp 0.35s ease;
  -webkit-box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 20px;
  color: #6C3F98;
  margin-bottom: 20px;
  font-weight: bold;
}

.rules-list {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: 333;
  line-height: 1.8;
}

.rule {
  background: #f8f3ff;
  padding: 12px 16px;
  -webkit-border-radius: 14px;
  -moz-border-radius: 14px;
  border-radius: 14px;
  border: 1px solid #e4d8f4;
}
.rule strong{
    color: #6C3F98;
}
.close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  -o-transition: color 0.2s;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #6C3F98;
}

.hidden {
  display: none;
}

@-webkit-keyframes slideUp {
  from {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@-moz-keyframes slideUp {
  from {
    -moz-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    -moz-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@-o-keyframes slideUp {
  from {
    -o-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    -o-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    -webkit-transform: translateY(50px);
    -moz-transform: translateY(50px);
    -ms-transform: translateY(50px);
    -o-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-moz-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-o-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px 15px;
  }
  .modal-title {
    font-size: 18px;
  }
  .rules-list {
    font-size: 14px;
  }
}
.modal-content::-webkit-scrollbar,
.rules-list::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.rules-list::-webkit-scrollbar-track {
  background: #f1e6ff;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
}

.modal-content::-webkit-scrollbar-thumb,
.rules-list::-webkit-scrollbar-thumb {
  background: #6C3F98;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  border: 2px solid #f1e6ff;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.rules-list::-webkit-scrollbar-thumb:hover {
  background: #875ac3;
}
.rules-list::-webkit-scrollbar {
  width: 6px;
}

.rules-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
.modal-content {
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

.modal-content::-webkit-scrollbar {
  display: none;  
}
@media (max-width: 640px) {
  .login-card {
  background-color: #ffffff;
  width: 90%;
  padding: 40px 15px;
  -webkit-border-radius: 28px;
  -moz-border-radius: 28px;
  border-radius: 28px;
  -webkit-box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  -moz-box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  box-shadow: 0 20px 50px rgba(108, 63, 152, 0.25);
  text-align: center;
  position: relative;
  overflow: visible;
}
.input[type="tel"]{
  font-size: 15px;
}
}