/* استایلِ مودالِ چک‌اوتِ سفارشیِ PAYEXA - بدون هیچ ریدایرکتی به pay.pexn.ir */

.payexa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: payexa-fade-in 0.18s ease;
}

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

.payexa-modal {
  background: linear-gradient(160deg, #1c1f2c, #14161f);
  border: 1px solid #2c3040;
  border-radius: 22px;
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 70px rgba(0,0,0,0.6),
    0 0 0 1px rgba(124, 108, 255, 0.08);
  animation: payexa-pop-in 0.22s cubic-bezier(.34,1.4,.64,1);
}

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

.payexa-icon {
  width: 56px; height: 56px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: radial-gradient(circle, rgba(255, 200, 90, 0.28), transparent 70%);
  animation: payexa-icon-float 2.4s ease-in-out infinite;
}

@keyframes payexa-icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-4deg); }
}

.payexa-modal h3 {
  justify-content: center;
  margin: 0 0 14px;
  font-size: 15px;
  color: #e6e6e6;
}

.payexa-timer-ring {
  position: relative;
  width: 92px; height: 92px;
  margin: 0 auto 4px;
}

.payexa-timer-ring svg { transform: rotate(-90deg); }

.payexa-timer-ring circle.bg { stroke: #232833; }
.payexa-timer-ring circle.fg {
  stroke: #ffd15c;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.4s ease;
}

.payexa-timer-ring.danger circle.fg { stroke: #e07c7c; }

.payexa-timer-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  color: #eee;
}

.payexa-timer-label { font-size: 11px; color: #98a1b3; margin-bottom: 16px; }

.payexa-amount-box {
  background: #0f1218;
  border: 1px dashed #3a3f4c;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.payexa-amount-box:active { transform: scale(0.98); }
.payexa-amount-box:hover { border-color: #ffd15c; }

.payexa-amount-label { font-size: 11px; color: #98a1b3; margin-bottom: 4px; }

.payexa-amount-value {
  font-size: 24px;
  font-weight: bold;
  direction: ltr;
  letter-spacing: 0.5px;
  color: #ffd15c;
}

.payexa-amount-hint { font-size: 11px; color: #e0a03c; margin-top: 6px; }

.payexa-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #0f1218;
  border: 1px solid #232833;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.payexa-card-row:active { transform: scale(0.98); }
.payexa-card-row:hover { border-color: #6d5bff; }

.payexa-card-number {
  font-size: 18px;
  font-weight: bold;
  direction: ltr;
  letter-spacing: 1.5px;
  flex: 1;
  text-align: center;
}

.payexa-copy-icon { font-size: 16px; opacity: 0.7; flex-shrink: 0; }

.payexa-card-name { font-size: 12px; color: #98a1b3; margin: 6px 0 16px; }

.payexa-status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  min-height: 20px;
  padding: 10px;
  border-radius: 10px;
  background: #0f1218;
}

.payexa-status-line.pending { color: #e0c15c; }
.payexa-status-line.success { color: #63d98c; background: #10241a; }
.payexa-status-line.error { color: #e07c7c; background: #241010; }

.payexa-close-row { margin-top: 16px; }
.payexa-close-row button { width: 100%; }

.payexa-toast {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #10241a;
  color: #63d98c;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
}

.payexa-toast.show { opacity: 1; }

.payexa-spinner-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: payexa-blink 1.1s ease-in-out infinite;
}

@keyframes payexa-blink {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
