/* ============================================================
   Developer Offer Popup — Bottom Sheet
   Navy + Cream + Soft Blue. NO gold.
   ============================================================ */
.dop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(15, 27, 44, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: flex-end;
  padding: 0;
}
.dop-overlay.is-active {
  display: flex;
  animation: dopFadeIn 0.3s ease both;
}
@keyframes dopFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dop-sheet {
  position: relative;
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 48px rgba(15, 27, 44, 0.2);
  animation: dopSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: center;
}
@keyframes dopSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.dop-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(15, 27, 44, 0.08);
  margin: 0 auto 20px;
}

.dop-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 27, 44, 0.05);
  color: #64748b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.dop-close:hover { background: rgba(239, 68, 68, 0.08); color: #ef4444; }

/* Logo */
.dop-logo-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dop-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

/* Text */
.dop-headline {
  font-family: Cairo, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0F1B2C;
  line-height: 1.3;
  margin-bottom: 4px;
}
.dop-subline {
  font-family: Cairo, "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Offer pill */
.dop-offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EEF4FF 0%, #F0F9FF 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 20px;
}
.dop-offer-icon {
  width: 20px;
  height: 20px;
  color: #3B82F6;
  flex-shrink: 0;
}
.dop-offer-icon svg { width: 100%; height: 100%; }
.dop-offer-text {
  font-family: Cairo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0F1B2C;
}

/* Form */
.dop-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.dop-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dop-field:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.dop-field i {
  position: absolute;
  inset-inline-start: 14px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}
.dop-field input {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border: 0;
  background: transparent;
  font-family: Cairo, sans-serif;
  font-size: 14px;
  color: #0F1B2C;
  outline: none;
}
[dir="rtl"] .dop-field input { padding: 13px 40px 13px 14px; }
.dop-field input::placeholder { color: #94a3b8; }

/* Submit button */
.dop-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F1B2C 0%, #1E3A5F 100%);
  color: #fff;
  font-family: Cairo, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.dop-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 27, 44, 0.25);
}
.dop-submit:active { transform: translateY(0); }
.dop-submit-arrow {
  width: 18px;
  height: 18px;
}
[dir="rtl"] .dop-submit-arrow { transform: scaleX(-1); }

/* Success */
.dop-success {
  padding: 20px 0;
  text-align: center;
}
.dop-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  animation: dopPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes dopPop { from { transform: scale(0); } to { transform: scale(1); } }
.dop-success-title {
  font-family: Cairo, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F1B2C;
  margin-bottom: 4px;
}
.dop-success-sub {
  font-family: Cairo, sans-serif;
  font-size: 13px;
  color: #64748b;
}

/* Trust */
.dop-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: Cairo, sans-serif;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
}
.dop-trust i { font-size: 12px; color: #10b981; }

/* Desktop: center it like a modal */
@media (min-width: 641px) {
  .dop-overlay { align-items: center; }
  .dop-sheet {
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .dop-handle { display: none; }
}
