/* ==========================================================================
   GIFTALAYA / G-INVITE — Checkout & Razorpay Payment Modal
   ========================================================================== */

.ginvite-checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 7, 5, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

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

.ginvite-checkout-card {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

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

.ginvite-checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}

.ginvite-checkout-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ginvite-checkout-header {
  padding: 24px 24px 16px;
  text-align: center;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-bottom: 1px solid #fed7aa;
}

.ginvite-checkout-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.ginvite-checkout-title {
  font-size: 22px;
  font-weight: 800;
  color: #7c2d12;
  margin: 0 0 4px;
}

.ginvite-checkout-subtitle {
  font-size: 13px;
  color: #9a3412;
  margin: 0;
}

.ginvite-checkout-body {
  padding: 20px 24px;
}

/* Pricing Highlight Card */
.ginvite-price-box {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 20px -5px rgba(124, 45, 18, 0.4);
}

.ginvite-price-left h4 {
  margin: 0 0 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fed7aa;
  font-weight: 700;
}

.ginvite-price-amount {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.ginvite-price-original {
  font-size: 14px;
  color: #fdba74;
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 500;
}

.ginvite-currency-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ginvite-currency-toggle option {
  background: #7c2d12;
  color: #ffffff;
}

/* Features List */
.ginvite-checkout-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ginvite-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.ginvite-perk-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Form Fields */
.ginvite-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.ginvite-form-group.full {
  grid-column: span 2;
}

.ginvite-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.ginvite-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}

.ginvite-form-input:focus {
  outline: none;
  border-color: #ea580c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.ginvite-discount-pill {
  background: #22c55e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}

/* Coupon Code Section */
.ginvite-coupon-section {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.ginvite-coupon-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.ginvite-coupon-input-group {
  display: flex;
  gap: 8px;
}

.ginvite-coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

.ginvite-coupon-input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.ginvite-coupon-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.ginvite-coupon-btn:hover:not(:disabled) {
  background: #ea580c;
}

.ginvite-coupon-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ginvite-coupon-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ginvite-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
}

.ginvite-coupon-remove-btn {
  background: none;
  border: none;
  color: #047857;
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  font-weight: 700;
}

.ginvite-coupon-remove-btn:hover {
  color: #ef4444;
}

.ginvite-coupon-msg {
  font-size: 11.5px;
  margin-top: 6px;
  font-weight: 600;
  line-height: 1.35;
}

.ginvite-coupon-msg.success {
  color: #15803d;
}

.ginvite-coupon-msg.error {
  color: #b91c1c;
}

/* Pay / Free Unlock Button */
.ginvite-btn-pay {
  width: 100%;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.ginvite-btn-pay.btn-free-unlock {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
}

.ginvite-btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(234, 88, 12, 0.5);
}

.ginvite-btn-pay.btn-free-unlock:hover:not(:disabled) {
  box-shadow: 0 14px 24px -5px rgba(5, 150, 105, 0.5);
}

.ginvite-btn-pay:active:not(:disabled) {
  transform: translateY(0);
}

.ginvite-btn-pay:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ginvite-trust-badges {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: #64748b;
}

.ginvite-trust-badge {
  display: flex;
  align-items: center;
  gap: 4px;
}
