/* SparkGen Payment v1.0.7 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --sgp-accent: #5E17EB;
  --sgp-accent-hover: #4c0fd4;
  --sgp-surface: #f8f7fc;
  --sgp-border: #ece9f5;
  --sgp-text: #14103d;
  --sgp-muted: #6b6589;
  --sgp-subtle: #a89ec4;
  --sgp-green: #059669;
  --sgp-red: #dc2626;
}

/* spinner keyframe */
@keyframes sgpSpin { to { transform: rotate(360deg); } }

/* ── Reset ── */
.sgp-checkout, .sgp-checkout * { box-sizing: border-box; }

/* ── Kart: OVAL köşeler, header'dan az boşluklu ── */
.sgp-checkout {
  background: #fff !important;
  color: #14103d !important;
  border: 1px solid #ece9f5;
  border-radius: 20px !important;
  overflow: hidden !important;
  max-width: 560px;
  margin: 40px auto 40px !important;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(94,23,235,0.10);
  scroll-margin-top: 60px;
}


/* ── Steps ── */
.sgp-steps {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid #ece9f5;
  background: #f8f7fc !important;
}

.sgp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #a89ec4;
  transition: color 0.3s;
  letter-spacing: 0.2px;
}
.sgp-step-active { color: #14103d !important; }

.sgp-step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: #ece9f5; color: #6b6589;
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.sgp-step-active .sgp-step-dot {
  background: #5E17EB !important; color: #fff !important;
  box-shadow: 0 3px 10px rgba(94,23,235,0.35);
}
.sgp-step-done .sgp-step-dot { background: #059669 !important; color: #fff !important; }

.sgp-step-line {
  flex: 1; height: 1.5px;
  background: #ece9f5; margin: 0 12px; border-radius: 2px;
}

/* ── Form alanı ── */
.sgp-step-content {
  padding: 24px 28px 30px;
  background: #fff !important;
  color: #14103d !important;
}

.sgp-section-label {
  font-size: 10px; font-weight: 700;
  color: #a89ec4; letter-spacing: 1px;
  text-transform: none; margin-bottom: 18px;
}

.sgp-form-group { margin-bottom: 14px; }

.sgp-label {
  display: block;
  color: #14103d !important;
  font-size: 13px; font-weight: 600; margin-bottom: 6px;
}

.sgp-input {
  width: 100%;
  background: #f8f7fc !important;
  border: 1.5px solid #ece9f5 !important;
  border-radius: 12px;
  padding: 13px 15px;
  color: #14103d !important;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.sgp-input::placeholder { color: #a89ec4; }
.sgp-input:focus {
  border-color: #5E17EB !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(94,23,235,0.1) !important;
}

/* ── Kupon ── */
.sgp-coupon-section {
  margin: 4px 0 20px;
  border: 1.5px solid #ece9f5;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f7fc !important;
}
.sgp-coupon-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; cursor: pointer;
  color: #5E17EB !important;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s; user-select: none;
}
.sgp-coupon-toggle:hover { background: rgba(94,23,235,0.04); }
.sgp-coupon-toggle svg { transition: transform 0.3s; stroke: #a89ec4; flex-shrink: 0; }
.sgp-coupon-section.open .sgp-coupon-toggle svg { transform: rotate(180deg); }
.sgp-coupon-input-wrap { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sgp-coupon-section.open .sgp-coupon-input-wrap { max-height: 120px; }
.sgp-coupon-row { display: flex; gap: 8px; padding: 0 12px 12px; }
.sgp-coupon-row .sgp-input { font-size: 12px; letter-spacing: 0; padding: 11px 10px; }
.sgp-coupon-apply {
  background: #5E17EB !important; color: #fff !important;
  border: none !important; border-radius: 10px;
  padding: 0 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  font-family: 'Inter', sans-serif; flex-shrink: 0;
}
.sgp-coupon-apply:hover { background: #4c0fd4 !important; }
.sgp-coupon-msg { padding: 0 14px 10px; font-size: 12px; font-weight: 600; min-height: 18px; }
.sgp-coupon-msg.success { color: #059669 !important; }
.sgp-coupon-msg.error   { color: #dc2626 !important; }

/* ── Özet ── */
.sgp-summary {
  background: #f8f7fc !important;
  border: 1.5px solid #ece9f5;
  border-radius: 14px;
  padding: 18px 20px; margin-bottom: 20px;
}
.sgp-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #6b6589 !important;
  margin-bottom: 8px; font-weight: 500;
}
.sgp-summary-divider { height: 1px; background: #ece9f5; margin: 10px 0; }
.sgp-summary-total { font-size: 17px; font-weight: 700; color: #14103d !important; margin-bottom: 0; }

/* ── Ödeme butonu ── */
.sgp-pay-btn {
  width: 100%;
  background: #5E17EB !important; color: #fff !important;
  border: none !important; border-radius: 14px;
  padding: 17px 24px; font-size: 15px; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(94,23,235,0.28);
}
.sgp-pay-btn:hover {
  background: #4c0fd4 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(94,23,235,0.38);
}
.sgp-pay-btn:active { transform: translateY(0); }
.sgp-pay-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.sgp-security-note {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: #a89ec4 !important; font-size: 11.5px;
}

/* ── Stok yok ── */
.sgp-out-of-stock { padding: 60px 32px; text-align: center; background: #fff !important; }
.sgp-oos-icon { font-size: 44px; margin-bottom: 16px; }
.sgp-out-of-stock h3 { color: #14103d !important; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.sgp-out-of-stock p  { color: #6b6589 !important; font-size: 14px; }

/* ── Mobil ── */
@media (max-width: 600px) {
  .sgp-checkout {
    margin: 20px 12px 20px !important;
    max-width: calc(100% - 24px);
    border-radius: 16px !important;
    box-shadow: 0 2px 16px rgba(94,23,235,0.08);
  }
  .sgp-steps        { padding: 12px 18px; }
  .sgp-step-content { padding: 18px 18px 24px; }
}
