/* The modal (background) */
.mymodal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  justify-content: center;
  align-items: center;
}

.mymodal h1 {
  color: #7C3AED;
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 700;
}

/* Modal Content */
.mymodal .mymodal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
  margin: 0;
  padding: 25px;
  border: none;
  width: calc(100% - 40px);
  max-width: 380px;
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.25);
}

/* Close Button */
.mymodal .close {
  color: #7C3AED;
  float: left;
  font-size: 28px;
  font-weight: bold;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.mymodal .close:hover,
.mymodal .close:focus {
  color: #5B21B6;
  opacity: 1;
  text-decoration: none;
  cursor: pointer;
}

.my-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.my-form label {
  font-weight: bold;
  margin-bottom: 10px;
}

.my-form input[type="text"],
.my-form input[type="email"],
.my-form input[type="password"] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
}

.my-form input[type="submit"] {
  background-color: #4caf50;
  color: white;
  padding: 14px 20px;
  margin: 20px 0 10px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.my-form input[type="submit"]:hover {
  background-color: #45a049;
}

.my-form input[type="submit"]:focus {
  outline: none;
}

.my-form input[type="submit"]:active {
  transform: translateY(2px);
}

.my-form input[type="text"]:focus,
.my-form input[type="email"]:focus,
.my-form input[type="password"]:focus {
  outline: none;
  border: 2px solid #4caf50;
}

@media (max-width: 768px) {
  .my-form {
    width: 90%;
  }

  .mymodal .mymodal-content {
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .my-form input[type="submit"] {
    margin: 10px 0;
  }
}

.transfer-form-container {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  max-width: 100%;
  box-shadow: none;
}

.transfer-form label {
  display: block;
  margin-bottom: 8px;
  color: #5B21B6;
  font-size: 14px;
  font-weight: 600;
}

.transfer-form input[type="text"],
.transfer-form input[type="number"] {
  display: block;
  padding: 12px 15px;
  border: 2px solid #E9D5FF;
  border-radius: 12px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  background: #fff;
}

.transfer-form input[type="text"]:focus,
.transfer-form input[type="number"]:focus {
  border-color: #7C3AED;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.transfer-form button {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.transfer-form button:hover {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.check-name-container {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
}

.check-name-container button {
  padding: 0 18px;
  border-radius: 10px;
  white-space: nowrap;
}

.transfer-form button:disabled,
.transfer-form button:hover:disabled {
  background: #ccc;
  box-shadow: none;
  transform: none;
}

.transfer-form #recipient-name {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: linear-gradient(135deg, #E9D5FF 0%, #F3E8FF 100%);
  border-radius: 10px;
  text-align: center;
  padding: 0 15px;
  font-weight: 700;
  color: #7C3AED;
  font-size: 14px;
}

.transfer-form .error {
  color: #EF4444;
  font-size: 12px;
  margin-top: 5px;
}

#myloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(5px);
}

.myloader-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top: 4px solid #7C3AED;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

.text-center div {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.transfer-success {
  text-align: center;
}

.transfer-success table {
  width: 100%;
  font-size: 14px;
  color: #5B21B6;
  margin: 20px 0 10px 0;
  border-collapse: collapse;
}

.transfer-success table tr td {
  padding: 10px 8px;
  border-bottom: 1px solid #E9D5FF;
}

.transfer-success table tr:last-child td {
  border-bottom: none;
}

.transfer-success table tr td:first-child {
  color: #7C3AED;
  font-weight: 600;
  opacity: 0.8;
}

.transfer-success table tr td span {
  font-weight: 700;
  color: #5B21B6;
}

.transfer-success .success-title {
  color: #7C3AED;
  font-size: 18px;
  font-weight: 700;
  margin: 15px 0 5px 0;
}

.transfer-success .success-ok-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.transfer-success .success-ok-btn:hover {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.transfer-success .success-icon {
  font-size: 50px;
  color: #7C3AED;
  margin-bottom: 20px;
}



/****************************************************************************/
/** checkmarks
    /****************************************************************************/


.checkmark.checkmark-cross .checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: red;
  fill: none;
  animation: stroke-cross 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark.checkmark-cross {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px red;
  animation: fill-cross .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark.checkmark-cross .checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 29;
  stroke-dashoffset: 29;
  animation: stroke-cross 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke-cross {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale-cross {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill-cross {
  100% {
    box-shadow: inset 0px 0px 0px 30px red;
  }
}

.checkmark.checkmark-check .checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7C3AED;
  fill: none;
  animation: stroke-check 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards
}

.checkmark.checkmark-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #7C3AED;
  animation: fill-check .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both
}

.checkmark.checkmark-check .checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards
}

@keyframes stroke-check {
  100% {
    stroke-dashoffset: 0
  }
}

@keyframes scale-check {

  0%,
  100% {
    transform: none
  }

  50% {
    transform: scale3d(1.1, 1.1, 1)
  }
}

@keyframes fill-check {
  100% {
    box-shadow: inset 0px 0px 0px 30px #7C3AED
  }
}