/* ==========================================================================
   DropDial Checkout Modal — Razorpay & Resend Integration
   ========================================================================== */

.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.checkout-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  width: 100%;
  max-width: 500px;
  background: #171a21;
  border: 1px solid #2d3340;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 101, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f3f5;
  font-family: inherit;
}

.checkout-modal-overlay.active .checkout-modal {
  transform: scale(1) translateY(0);
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #262b36;
}

.checkout-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.checkout-modal-title img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.checkout-close-btn {
  background: transparent;
  border: none;
  color: #8c95a5;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.checkout-close-btn:hover {
  background: #252b36;
  color: #ffffff;
}

.checkout-modal-body {
  padding: 24px;
}

/* Plan Summary Box */

.checkout-plan-summary {
  background: #1e222b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #2c3340;
}

.checkout-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.checkout-plan-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.checkout-plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff6500;
}

.checkout-plan-details {
  font-size: 0.82rem;
  color: #9ea7b7;
  line-height: 1.5;
}

/* Input Fields */
.checkout-field {
  margin-bottom: 16px;
}

.checkout-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b0b8c6;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-input {
  width: 100%;
  box-sizing: border-box;
  background: #0f1115;
  border: 1px solid #2c323f;
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.checkout-input:focus {
  border-color: #ff6500;
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.2);
}

.checkout-input::placeholder {
  color: #555d6c;
}

.checkout-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.checkout-pay-btn {
  width: 100%;
  background: #ff6500;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(255, 101, 0, 0.35);
}

.checkout-pay-btn:hover {
  background: #e55a00;
  box-shadow: 0 6px 18px rgba(255, 101, 0, 0.45);
}

.checkout-pay-btn:active {
  transform: scale(0.99);
}

.checkout-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.checkout-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #7b8493;
}

.checkout-footer-badges span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Success State View — Ultra-Compact Modern SaaS Design
   ========================================================================== */

.checkout-success-view {
  display: none;
  text-align: center;
}

.success-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.success-icon-badge {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1.5px solid #10b981;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.28);
}

.success-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.success-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

/* Single-Row Compact License Key Pill */
.success-key-box {
  background: #0b0d11;
  border: 1px solid #28303e;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  text-align: left;
  transition: border-color 0.15s;
}

.success-key-box:focus-within {
  border-color: #ff6500;
}

.key-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.key-box-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ff6500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.key-box-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.6px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
}

.key-input-wrapper {
  display: flex;
  align-items: center;
  background: #141720;
  border: 1px solid #1f2533;
  border-radius: 7px;
  padding: 3px 4px 3px 10px;
  gap: 6px;
}

.key-display-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-display-input:focus {
  color: #ffffff;
}

.key-inline-copy-btn {
  background: #ff6500;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(255, 101, 0, 0.3);
}

.key-inline-copy-btn:hover {
  background: #e55a00;
}

.key-inline-copy-btn.copied {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Delivery Status Pill */
.email-delivery-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.email-delivery-pill svg {
  color: #ff6500;
  flex-shrink: 0;
}

.email-delivery-pill strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* Horizontal 3-Step Activation Timeline */
.activation-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #12151c;
  border: 1px solid #202735;
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 16px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.step-badge {
  width: 17px;
  height: 17px;
  background: #252e3d;
  color: #94a3b8;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.step-text {
  font-weight: 500;
  white-space: nowrap;
}

.timeline-sep {
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  user-select: none;
}

/* Modal Actions */
.success-actions-row {
  display: flex;
  gap: 10px;
}

.success-btn-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1c212b;
  border: 1px solid #2e3747;
  color: #e2e8f0;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.success-btn-download:hover {
  background: #272f3d;
  border-color: #475569;
  color: #ffffff;
}

.success-btn-done {
  flex: 1;
  background: #ff6500;
  border: 1px solid #ff6500;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(255, 101, 0, 0.25);
}

.success-btn-done:hover {
  background: #e55a00;
  border-color: #e55a00;
}

@media (max-width: 480px) {
  .checkout-modal {
    max-width: 100%;
    border-radius: 14px;
  }
  .checkout-modal-body {
    padding: 18px 16px;
  }
  .activation-timeline {
    padding: 8px 10px;
  }
  .timeline-step {
    font-size: 0.7rem;
    gap: 4px;
  }
  .timeline-sep {
    font-size: 0.75rem;
  }
  .key-inline-copy-btn {
    padding: 6px 9px;
    font-size: 0.74rem;
  }
}

