


* {
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #2d2c2b !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 9px 168px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #6b4839;
}

header .logo img {
  max-height: 55px;
}

header nav a {
  color: #000000;
  margin: 0 21px;
  text-decoration: none;
  font-weight: 500;
  font-size: 23px;
}

header nav a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===== مودال الفحص ===== */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: #000;
  width: 87%;
  max-width: 570px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 9999;
  font-weight: 700;
  height: auto;
  min-height: unset;
}

#loading {
  display: none;
  margin: 20px auto;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #ffa600;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-text {
  display: none;
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.close {
  position: absolute;
  top: 11px;
  right: 24px;
  font-size: 40px;
  border: none;
  background: transparent;
  color: #c0abab;
  cursor: pointer;
  font-weight: 500;
}

.close:hover {
  color: #000;
}

.device-img {
  max-width: 225px;
  margin: 15px auto;
  display: block;
  filter: drop-shadow(3px 3px 3px #dcdede);
}

.model-title {
  color: #595959;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 18px;
  background: #ffffff;
}

.detail-line {
  margin: 1px 0;
  font-size: 18px;
  font-weight: 300;
  color: #595959;
  word-wrap: break-word;
}

.color-badge {
  padding: 4px 12px;
  border-radius: 15px;
  display: unset;
  color: #ffffff;
  margin-left: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ===== الفوتر ===== */
footer {
  background-color: #000000;
  color: #c9d1d9;
}

footer a {
  color: #c9d1d9;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-n {
  margin-top: 0px;
  font-size: 15px;
  color: #595959;
  font-weight: 200;
}

.footer-n strong {
  display: block;
  font-size: 18px;
  margin-bottom: 0px;
  font-weight: 600;
}

.footer-n hr {
  margin: 10px auto;
  width: 100%;
  border: none;
  height: 1px;
  background-color: #8f8b8b;
}

.custom-login-btn {
  font-size: 22px;
  padding: 11px 17px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-weight: 500;
}

.nav3 {
  font-size: 20px !important;
  color: #000;
}


.imei-container {
  background: #000000 !important;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  color: #fff;
  box-shadow: 0px 0px 25px rgb(200 139 29) !important;
}

.imei-container h1 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #f2f7f8;
  font-weight: 600;
}

.imei-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 95%;
}

.imei-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 20px;
  padding: 12px 18px;
  border-radius: 50px;
  background: transparent;
  color: #333;
  text-align: center;
  font-weight: 700;
}

.check-btn {
  background: #000000;
  color: #fff;
  font-size: 15px;
  padding: 12px 22px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
  transition: 0.3s;
}

.check-btn:hover {
  background: #1e4fc6;
  color: #fef7a8;
}


@media (max-width: 768px) {
  .modal {
    width: 95%;
    max-width: none;
    padding: 20px;
  }

  .model-title {
    font-size: 18px;
  }

  .detail-line {
    font-size: 16px;
  }

  .device-img {
    max-width: 120px;
  }

  .color-badge {
    padding: 3px 10px;
    font-size: 12px;
  }

  .imei-container {
    padding: 25px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
  }

  .imei-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 15px;
  }

  .imei-box input {
    width: 100%;
    font-size: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fafafa;
  }

  .check-btn {
    width: 100%;
    border-radius: 10px;
    font-size: 14px;
    padding: 12px 22px;
    font-weight: 600;
  }

  .custom-login-btn {
    font-size: 14px;
    padding: 7px 12px;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 98%;
    padding: 15px;
  }

  .model-title {
    font-size: 18px;
  }

  .detail-line {
    font-size: 14px;
  }

  .device-img {
    max-width: 100px;
  }

  .color-badge {
    padding: 2px 8px;
    font-size: 11px;
  }

  .custom-login-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
}

.px-2 {
    padding-right: 3.5rem !important;
}
.ps-3 {
    padding-left: 4rem !important;
}


.dropdown-menu {
    border-radius: 12px;
    padding: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    min-width: 220px;
    background:linear-gradient(96deg, #000000, #784301);;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item + .dropdown-item {
    margin-top: 8px;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, #ff4e50, #f9d423);
    color: #fff;
}