/* ============================================================
   Satın Al Sayfası — landing temasıyla uyumlu
   ============================================================ */

/* .hidden — style.css'te var ama bu sayfa onu yüklemiyor, burada tanımla */
.hidden { display: none !important; }

/* ============== HERO ============== */
.purchase-hero {
  position: relative;
  background: linear-gradient(135deg, var(--lp-dark) 0%, var(--lp-primary-dark) 100%);
  color: white;
  padding: 60px 0 50px;
  overflow: hidden;
  text-align: center;
}
.purchase-head { position: relative; max-width: 600px; margin: 0 auto; }
.purchase-head h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.purchase-head p { font-size: 17px; color: rgba(255, 255, 255, 0.8); }

/* ============== ANA ALAN ============== */
.purchase-main {
  padding: 50px 0 90px;
  background: var(--lp-bg-soft);
  min-height: 60vh;
}

/* ============== ADIM GÖSTERGESİ ============== */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: -90px auto 50px;
  max-width: 540px;
  position: relative;
  z-index: 5;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.step-dot-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--lp-border);
  color: var(--lp-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.step-dot-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.step-dot.active .step-dot-num {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  transform: scale(1.1);
}
.step-dot.done .step-dot-num {
  background: var(--lp-primary-dark);
  border-color: var(--lp-primary-dark);
  color: white;
}
.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.3);
  margin: 0 8px;
  margin-bottom: 28px;
  min-width: 30px;
}

/* Adım etiketleri hero'nun koyu zemininde olduğu için beyaz;
   ama steps-indicator main'e taştığı için label rengini koyulaştır */
.step-dot-label { color: var(--lp-text-muted); }

/* ============== ADIM PANELLERİ ============== */
.purchase-step { display: none; }
.purchase-step.active {
  display: block;
  animation: stepFadeIn 0.4s ease;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.step-sub {
  text-align: center;
  color: var(--lp-text-muted);
  margin-bottom: 32px;
}

/* ============== SÜRE KARTLARI ============== */
.duration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.duration-card {
  position: relative;
  background: white;
  border: 2px solid var(--lp-border);
  border-radius: 14px;
  padding: 22px 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  font-family: inherit;
}
.duration-card:hover {
  border-color: var(--lp-primary);
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-lg);
}
.duration-card.selected {
  border-color: var(--lp-primary);
  background: #f0fdf4;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}
.duration-card.featured {
  border-color: var(--lp-primary);
}
.duration-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.duration-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.duration-days {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.duration-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}
.dp-currency { font-size: 18px; font-weight: 700; color: var(--lp-primary-dark); }
.dp-amount { font-size: 30px; font-weight: 800; color: var(--lp-primary-dark); letter-spacing: -1px; }
.duration-note {
  font-size: 12px;
  color: var(--lp-text-muted);
}

/* ============== ÖDEME YÖNTEMİ ============== */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.method-card {
  background: white;
  border: 2px solid var(--lp-border);
  border-radius: 16px;
  padding: 32px 24px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  font-family: inherit;
}
.method-card:hover {
  border-color: var(--lp-primary);
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-lg);
}
.method-card.selected {
  border-color: var(--lp-primary);
  background: #f0fdf4;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}
.method-icon { font-size: 44px; margin-bottom: 14px; }
.method-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.method-desc { font-size: 14px; color: var(--lp-text-muted); }

/* ============== SİPARİŞ ÖZETİ ============== */
.order-summary {
  background: white;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  color: var(--lp-text-muted);
}
.order-row strong { color: var(--lp-text); font-weight: 700; }
.order-row.total {
  border-top: 2px solid var(--lp-border);
  margin-top: 6px;
  padding-top: 16px;
  font-size: 17px;
}
.order-row.total strong { font-size: 24px; color: var(--lp-primary-dark); }

/* ============== KREDİ KARTI 3D ============== */
.credit-card-visual {
  width: 340px;
  max-width: 100%;
  height: 210px;
  margin: 0 auto 32px;
  perspective: 1200px;
}
.cc-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.cc-inner.flipped { transform: rotateY(180deg); }

.cc-front, .cc-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.cc-front {
  background: linear-gradient(135deg, #0b141a 0%, #075e54 55%, #128c7e 100%);
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
}
.cc-front::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37,211,102,0.25), transparent 70%);
  border-radius: 50%;
}
.cc-chip {
  width: 46px;
  height: 34px;
  background: linear-gradient(135deg, #e6c200, #b8960b);
  border-radius: 7px;
  position: relative;
}
.cc-chip::after {
  content: '';
  position: absolute;
  inset: 6px 8px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 3px;
}
.cc-logo {
  position: absolute;
  top: 26px;
  right: 24px;
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1px;
}
.cc-number {
  font-size: 22px;
  letter-spacing: 2px;
  margin-top: 28px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.cc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}
.cc-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 3px;
}
.cc-holder span:last-child,
.cc-expiry span:last-child {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cc-back {
  background: linear-gradient(135deg, #0b141a, #1a2730);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}
.cc-stripe {
  height: 44px;
  background: #000;
  margin-top: 24px;
}
.cc-cvv-band {
  margin: 18px 24px;
  height: 38px;
  background: rgba(255,255,255,0.85);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
}
.cc-cvv-band span {
  color: #111;
  font-family: ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ============== KART FORMU ============== */
.card-form {
  max-width: 420px;
  margin: 0 auto;
}
.cf-field {
  display: block;
  margin-bottom: 16px;
}
.cf-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 6px;
}
.cf-field input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--lp-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cf-field input:focus {
  outline: none;
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============== KRİPTO ============== */
.crypto-box {
  max-width: 460px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px;
}
.crypto-network {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.crypto-net-badge {
  background: #26a17b;
  color: white;
  font-weight: 800;
  font-size: 15px;
  padding: 5px 14px;
  border-radius: 8px;
}
.crypto-net-name { font-weight: 600; color: var(--lp-text-muted); }
.crypto-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.crypto-qr-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--lp-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--lp-bg-soft);
}
.crypto-qr-placeholder span { font-size: 18px; font-weight: 700; color: var(--lp-text-muted); }
.crypto-qr-placeholder small { font-size: 12px; color: var(--lp-text-muted); }
.crypto-qr-placeholder img { width: 100%; height: 100%; border-radius: 12px; }

.crypto-address-block { margin-bottom: 20px; }
.crypto-addr-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.crypto-address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-bg-soft);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.crypto-address code {
  flex: 1;
  font-size: 13px;
  word-break: break-all;
  color: var(--lp-text);
  font-family: ui-monospace, monospace;
}
.crypto-steps {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.crypto-steps p { font-size: 14px; margin-bottom: 8px; color: #1e40af; }
.crypto-steps ol { margin: 0; padding-left: 20px; }
.crypto-steps li { font-size: 13.5px; color: #1e40af; padding: 3px 0; line-height: 1.5; }

/* ============== ÖDEME NOTU ============== */
.payment-note {
  text-align: center;
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-top: 16px;
  padding: 10px;
  background: #fffbeb;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

/* ============== ADIM BUTONLARI ============== */
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}
.step-actions:has(.btn:only-child) { justify-content: center; }
.btn-block { width: 100%; }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============== BAŞARI ============== */
.success-box {
  text-align: center;
  background: white;
  border-radius: 20px;
  padding: 50px 30px;
  box-shadow: var(--lp-shadow);
  max-width: 480px;
  margin: 0 auto;
}
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--lp-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.success-box h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.success-box p { color: var(--lp-text-muted); margin-bottom: 8px; }
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============== BTN SPINNER (kart ödeme) ============== */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  top: 50%; left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnspin 0.6s linear infinite;
}
@keyframes btnspin { to { transform: rotate(360deg); } }

/* ============== RESPONSIVE ============== */
@media (max-width: 560px) {
  .method-grid { grid-template-columns: 1fr; }
  .step-dot-label { font-size: 11px; }
  .step-dot-num { width: 38px; height: 38px; font-size: 15px; }
  .purchase-head h1 { font-size: 30px; }
  .credit-card-visual { width: 300px; height: 185px; }
  .cc-number { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-inner, .purchase-step, .success-icon { animation: none !important; transition: none !important; }
}

/* İndirimli fiyat — üstü çizili eski fiyat */
.dp-amount .old-price {
  font-size: 16px;
  color: var(--lp-text-muted);
  font-weight: 600;
  margin-right: 4px;
}

/* ============== KRİPTO TUTAR KUTUSU ============== */
.crypto-amount-box {
  text-align: center;
  background: linear-gradient(135deg, #0b141a, #075e54);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  color: white;
}
.crypto-amount-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}
.crypto-amount {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0 4px;
  letter-spacing: -0.5px;
}
.crypto-rate { font-size: 13px; opacity: 0.7; }
.crypto-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* ============== PASİF ÖDEME YÖNTEMİ (Yakında) ============== */
.method-card.method-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  position: relative;
  filter: grayscale(0.4);
}
.method-card.method-disabled:hover {
  border-color: var(--lp-border);
  transform: none;
  box-shadow: none;
}
.method-badge-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f59e0b;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
