/* Property Transfer — shared UI: login modal + toast.
   Prefix ptc- keeps these classes from clashing with per-page styles. */

.ptc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 34, 83, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9000;
  animation: ptc-fade-in .18s ease;
}

.ptc-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(8, 34, 83, 0.25);
  font-family: "Noto Kufi Arabic", "Open Sans", sans-serif;
  position: relative;
  direction: rtl;
  animation: ptc-pop-in .2s cubic-bezier(.22, 1, .36, 1);
}

@keyframes ptc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ptc-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ptc-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #082253;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptc-modal-close:hover {
  background: #f1f3f8;
}

.ptc-modal h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #082253;
  text-align: center;
}

.ptc-field {
  margin-bottom: 16px;
}

.ptc-field label {
  display: block;
  font-size: 13px;
  color: #4a5875;
  margin-bottom: 6px;
}

.ptc-phone-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dbe6;
  border-radius: 10px;
  padding: 0 12px;
}

.ptc-phone-wrap span {
  color: #082253;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
}

.ptc-field input,
.ptc-phone-wrap input {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
}

.ptc-field input {
  border: 1px solid #d7dbe6;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  letter-spacing: 4px;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.ptc-field input:focus,
.ptc-phone-wrap:focus-within {
  border-color: #0e850f;
}

.ptc-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: #082253;
  color: #fff;
  transition: background .15s ease, transform .05s ease;
}

.ptc-btn:hover { background: #0b2d6b; }
.ptc-btn:active { transform: scale(.98); }

.ptc-modal-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8892a6;
  text-align: center;
}

.ptc-back {
  background: none;
  border: none;
  color: #4a5875;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0 14px;
  display: inline-block;
}

/* Toasts ------------------------------------------------------------ */

.ptc-toast-stack {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9500;
  width: calc(100% - 32px);
  max-width: 360px;
  align-items: center;
}

.ptc-toast {
  background: #082253;
  color: #fff;
  font-family: "Noto Kufi Arabic", "Open Sans", sans-serif;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(8, 34, 83, 0.3);
  text-align: center;
  direction: rtl;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  width: 100%;
}

.ptc-toast.ptc-show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .ptc-modal { padding: 24px 18px 20px; }
}
