/* Paketler & ödeme akışı */

body.page-packages {
  background: #f4f7f6;
}

.page-packages-inner.page {
  max-width: 1320px;
}

.paket-main {
  padding-bottom: 48px;
}

.paket-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

@media (max-width: 1024px) {
  .paket-layout {
    grid-template-columns: 1fr;
  }

  .paket-checkout {
    position: relative;
    top: 0;
  }
}

.paket-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pkg-card {
  position: relative;
  flex: 1 1 280px;
  max-width: 340px;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid #e0e7ff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pkg-card--featured {
  border-color: #93c5fd;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.pkg-card__banner {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: #0f172a;
}

.pkg-card__banner--yellow {
  color: #fde047;
}

.pkg-card__banner--green {
  color: #86efac;
}

.pkg-card__banner--method {
  background: linear-gradient(90deg, #312e81, #5b21b6);
  color: #e9d5ff;
}

.pkg-card__credit-pill--method {
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 700;
}

.pkg-card__ribbon {
  position: absolute;
  top: 44px;
  right: -36px;
  width: 160px;
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.pkg-card__ribbon--royal {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.pkg-card__ribbon--legendary {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.pkg-card__banner--hot {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
  color: #fef08a;
}

.pkg-card__banner--ddos {
  background: linear-gradient(90deg, #1e1b4b, #450a0a);
  color: #fca5a5;
}

.pkg-card--ddos {
  border-color: #7f1d1d;
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}

.pkg-card__credit-pill--vip {
  background: #1e1b4b;
  color: #fde68a;
}

.pkg-card__ribbon--premium { background: linear-gradient(135deg, #64748b, #475569); }
.pkg-card__ribbon--pro { background: linear-gradient(135deg, #059669, #047857); }
.pkg-card__ribbon--ddos { background: linear-gradient(135deg, #7f1d1d, #450a0a); }
.pkg-card__ribbon--ultra { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.pkg-card__ribbon--elite { background: linear-gradient(135deg, #d97706, #b45309); }
.pkg-card__ribbon--master { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.pkg-card__ribbon--legend { background: linear-gradient(135deg, #db2777, #be185d); }
.pkg-card__ribbon--titan { background: linear-gradient(135deg, #0891b2, #0e7490); }
.pkg-card__ribbon--ultimate { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.pkg-card__ribbon--enterprise { background: linear-gradient(135deg, #0f766e, #115e59); }
.pkg-card__ribbon--diamond { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.pkg-card__ribbon--platinum { background: linear-gradient(135deg, #94a3b8, #64748b); }

.pkg-card__body {
  padding: 22px 20px 20px;
}

.pkg-card__title {
  margin: 8px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.pkg-card__price {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-bright);
}

.pkg-card__credit-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}

.pkg-card__discount {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pkg-card__old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.pkg-card__badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fee2e2;
  color: #dc2626;
}

.pkg-card__feat {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

.pkg-card__btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.pkg-card__btn--red {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
}

.pkg-card__btn--red:hover {
  filter: brightness(1.03);
}

.pkg-card.is-selected {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

/* Sidebar ödeme */
.paket-checkout {
  position: sticky;
  top: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.checkout-warn {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #713f12;
  line-height: 1.45;
}

.checkout-warn strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.checkout-summary {
  margin-bottom: 18px;
}

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

.checkout-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.checkout-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.checkout-pill {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  font-size: 13px;
}

.checkout-minus {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.checkout-minus:hover:not(:disabled) {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.checkout-minus:disabled {
  opacity: 0.35;
  cursor: default;
}

.checkout-steps {
  margin-bottom: 18px;
}

.checkout-steps__bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-bottom: 16px;
  overflow: hidden;
}

.checkout-steps__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-bright), #6366f1);
  transition: width 0.35s ease;
}

.checkout-steps__nodes {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.checkout-step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.checkout-step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--muted);
  font-size: 13px;
}

.checkout-step.is-active .checkout-step__num {
  background: linear-gradient(145deg, var(--blue-bright), #6366f1);
  color: #fff;
}

.checkout-step.is-done .checkout-step__num {
  background: var(--blue-bright);
  color: #fff;
}

.checkout-step.is-active .checkout-step__txt,
.checkout-step.is-done .checkout-step__txt {
  color: var(--text);
}

.checkout-step__txt {
  display: block;
  line-height: 1.25;
}

.btn-pay-start {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.btn-pay-start:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

.btn-pay-start:not(:disabled) {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
}

.btn-pay-start:not(:disabled):hover {
  filter: brightness(1.04);
}

.checkout-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.checkout-note--muted strong {
  color: var(--text);
}

.checkout-note--blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.checkout-note__danger {
  margin: 10px 0 0;
  color: #991b1b;
  font-size: 11px;
}

.hl-danger {
  background: #fecaca;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

/* Cryptomus modal */
.crypto-overlay {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.crypto-overlay[hidden] {
  display: none !important;
}

.crypto-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px 22px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.2);
}

.crypto-modal__close {
  position: absolute;
  top: 12px;
  right: 44px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  color: #9ca3af;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.crypto-modal__close:hover {
  background: #f3f4f6;
}

.crypto-modal__help {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  font-family: inherit;
}

.crypto-brand {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.crypto-brand__ico {
  color: #6366f1;
  margin-right: 6px;
}

.crypto-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.crypto-head-main {
  flex: 1;
  min-width: 0;
}

.crypto-amount {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
}

.crypto-usd {
  margin: 4px 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.crypto-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.crypto-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.crypto-timer {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 2px solid #22c55e;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
}

.crypto-field {
  margin-bottom: 14px;
}

.crypto-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.crypto-field__head label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.crypto-copy {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.crypto-copy:hover {
  background: #f8fafc;
}

.crypto-field__val {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13px;
  word-break: break-all;
}

.crypto-field__val.mono {
  font-family: ui-monospace, monospace;
}

.crypto-deposit-note {
  font-size: 12px;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 14px 0 0;
  line-height: 1.5;
}

.crypto-pay-notify {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e5e7eb;
}

.crypto-pay-notify__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.crypto-pay-notify__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.crypto-pay-notify__hint code {
  font-size: 11px;
}

.crypto-pay-notify__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crypto-pay-notify__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 10px;
}

.crypto-pay-notify__input.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}

.crypto-pay-notify__err {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
}

.crypto-alt-pay {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.crypto-zero {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
}

@media (max-width: 480px) {
  .crypto-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .crypto-timer {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .paket-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .pkg-card {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .paket-checkout {
    padding: 16px;
  }

  .checkout-steps__nodes {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .checkout-step__txt {
    font-size: 10px;
  }

  .crypto-overlay {
    padding: 12px;
    align-items: flex-end;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  .crypto-modal {
    max-height: min(92vh, 900px);
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    padding: 22px 14px 18px;
  }

  .crypto-amount {
    font-size: clamp(20px, 5.5vw, 26px);
  }
}
