.order-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 99999 !important; /* تأكد من z-index عال جداً */
}

.order-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.order-modal-content {
  background: #1a1f3c;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.order-modal-close {
  position: absolute;
  top: 10px; left: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

.order-modal-container {
  color: #fff;
}

.modal-title {
  text-align: center;
  color: #4cc9f0;
  margin-bottom: 20px;
  font-size: 24px;
}

.modal-product-info {
  background: rgba(11, 15, 41, 0.6);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.order-form .form-group {
  margin-bottom: 20px;
}

.order-form label {
  display: block;
  margin-bottom: 8px;
  color: #a0a9d0;
  font-weight: 500;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #2a2e4c;
  background: rgba(11, 15, 41, 0.5);
  color: #fff;
  font-size: 16px;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: #4cc9f0;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #a0a9d0;
  border: none;
}

.btn-submit {
  background: linear-gradient(135deg, #4a9eff 0%, #2a6fd0 100%);
  color: white;
  border: none;
}
.order-success {
  text-align: center;
  padding: 30px 20px;
  color: #ffffff;
}

.order-success .success-icon {
  font-size: 64px;
  color: #28a745;
  margin-bottom: 15px;
}

.auth-warning-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-warning-popup.active {
  display: flex;
}

.auth-warning-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--box-shadow);
  position: relative;
}

.auth-warning-close {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.auth-warning-close:hover {
  color: var(--danger-color);
}

.order-error {
  text-align: center;
  padding: 20px;
  color: #a94442;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.order-error .error-icon {
  font-size: 48px;
  color: #a94442;
  margin-bottom: 15px;
}

.order-error h3 {
  margin-top: 0;
  font-size: 24px;
}

.order-error p {
  font-size: 16px;
  margin: 10px 0 20px;
}

.order-error .btn-cancel {
  background-color: #a94442;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.order-error .btn-cancel:hover {
  background-color: #922d2d;
}

input, textarea, select {
  font-size: 16px !important;     /* يمنع التكبير التلقائي */
  -webkit-text-size-adjust: 100%; /* لا تضخّم النصوص */
}

html, body {
  touch-action: manipulation; /* يسمح باللمس والتمرير فقط */
}
