/* ==================== ADIM 114/N — Lobi: 💳 Para Yükle (kripto) ==================== */
.deposit-modal { width: min(440px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px 22px 20px; position: relative; text-align: left; }
.deposit-modal [hidden] { display: none !important; }
.dep-view { display: flex; flex-direction: column; gap: 12px; }
.dep-head { text-align: center; }
.dep-icon { font-size: 34px; line-height: 1; margin-bottom: 4px; }
.dep-head .ok-modal-title { margin: 4px 0 4px; }
.dep-sub { margin: 0; font-size: 13.5px; color: #5b6d63; line-height: 1.45; }
.dep-rate { align-self: center; background: #fbf0cf; border: 1px solid #ecd48b; color: #5a4204; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; }
.dep-rate b { color: #3d2c00; }
.dep-label { font-size: 13px; font-weight: 700; color: #2b3a33; margin-bottom: -6px; }
.dep-amount { display: flex; align-items: center; border: 1.5px solid #d7d2c4; border-radius: 12px; background: #fff; padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.dep-amount:focus-within { border-color: #0b6e4f; box-shadow: 0 0 0 3px rgba(11,110,79,0.14); }
.dep-amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 26px; font-weight: 800; padding: 10px 0; color: #10261c; }
.dep-amount span { font-weight: 800; color: #5b6d63; }
.dep-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.dep-quick button { flex: 1; min-width: 72px; border: 1.5px solid #d7d2c4; background: #fff; border-radius: 10px; padding: 8px 6px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: #2b3a33; }
.dep-quick button:hover { border-color: #0b6e4f; }
.dep-quick button.active { background: #0b6e4f; border-color: #0b6e4f; color: #fff; }
.dep-result { min-height: 24px; text-align: center; font-size: 15px; color: #3f4f47; }
.dep-result b { font-size: 20px; color: #0b6e4f; }
.dep-result .bad { color: #a12f23; font-weight: 700; font-size: 13.5px; }
.dep-limits { text-align: center; color: #7b877f; font-size: 12px; margin-top: -8px; }
.dep-info { font-size: 12.5px; color: #4b5a53; background: #f4f6f5; border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.dep-msg:empty { display: none; }
.dep-msg { color: #a12f23; font-weight: 700; font-size: 13.5px; background: #fdecea; border: 1px solid #f3c1bb; border-radius: 10px; padding: 9px 12px; }
.dep-go { width: 100%; padding: 14px 0; font-size: 16px; border-radius: 12px; }
.dep-go:disabled { opacity: .55; cursor: not-allowed; }
.dep-recent:empty { display: none; }
.dep-recent { border-top: 1px solid #eef1ef; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.dep-recent-title { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7b877f; }
.dep-recent-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.dep-recent-item small { display: block; font-size: 11.5px; color: #8a948e; }
.dep-recent-item .dep-st { text-align: right; font-weight: 700; color: #4b5a53; white-space: nowrap; }
.dep-recent-item.st-credited .dep-st { color: #0b6e4f; }
.dep-recent-item.st-partial .dep-st, .dep-recent-item.st-failed .dep-st { color: #a12f23; }
.dep-recent-item a { color: #0b6e4f; }
#depStatusView { text-align: center; align-items: center; padding: 6px 4px; }
.dep-status-icon { font-size: 46px; line-height: 1; }
.dep-status-text { margin: 0; color: #3f4f47; line-height: 1.5; font-size: 14.5px; }
.dep-status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.dep-status-actions .btn { min-width: 120px; text-decoration: none; }
@media (max-width: 520px) {
  .deposit-modal { padding: 20px 16px 16px; }
  .dep-amount input { font-size: 22px; }
}

/* ==================== ADIM 116/N — QR kodlu ödeme ==================== */
.dep-nets-wrap { display: flex; flex-direction: column; gap: 6px; }
.dep-nets-wrap .dep-label { margin-bottom: 0; }
.dep-nets { display: flex; flex-wrap: wrap; gap: 6px; }
.dep-net { flex: 1; min-width: 120px; border: 1.5px solid #d7d2c4; background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left; color: #2b3a33; min-height: 44px; }
.dep-net b { display: block; font-size: 13.5px; }
.dep-net small { font-size: 11.5px; color: #6b7a72; }
.dep-net[aria-checked="true"] { border-color: #0b6e4f; background: #e9f5ef; box-shadow: inset 0 0 0 1px #0b6e4f; }
.dep-qr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 26px; }
.dep-qr-top .ok-modal-title { margin: 0; }
.dep-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14px; color: #5a4204; background: #fbf0cf; border: 1px solid #ecd48b; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.dep-timer.low { color: #fff; background: #b3261e; border-color: #b3261e; }
.dep-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.dep-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #8a948e; background: #f4f6f5; border-radius: 999px; padding: 5px 8px; }
.dep-steps li span { width: 20px; height: 20px; border-radius: 50%; background: #d9dfdb; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 auto; }
.dep-steps li em { font-style: normal; }
.dep-steps li.on { color: #0b6e4f; background: #e9f5ef; }
.dep-steps li.on span { background: #0b6e4f; }
.dep-steps li.now span { animation: depPulse 1.2s ease-in-out infinite; }
@keyframes depPulse { 50% { box-shadow: 0 0 0 5px rgba(11,110,79,.18); } }
.dep-qr-body { display: flex; gap: 14px; align-items: flex-start; }
.dep-qr { flex: 0 0 auto; background: #fff; border: 1px solid #e3e8e5; border-radius: 12px; padding: 6px; line-height: 0; }
.dep-qr svg { width: 168px; height: 168px; display: block; }
.dep-qr-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dep-field label { display: block; font-size: 12px; font-weight: 700; color: #5b6d63; margin-bottom: 4px; }
.dep-copy { display: flex; align-items: stretch; border: 1px solid #d7d2c4; border-radius: 10px; overflow: hidden; background: #fbfbfa; }
.dep-copy code { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; font-weight: 700; color: #10261c; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dep-copy code.dep-addr { font-size: 12px; font-weight: 600; }
.dep-copy-btn { border: 0; border-left: 1px solid #d7d2c4; background: #fff; padding: 0 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: #0b6e4f; min-width: 74px; }
.dep-copy-btn.done { background: #0b6e4f; color: #fff; }
.dep-netwarn { font-size: 12.5px; line-height: 1.45; color: #6d2a00; background: #fff3e6; border: 1px solid #f5cf9f; border-radius: 10px; padding: 9px 12px; }
.dep-live { font-size: 14px; font-weight: 700; text-align: center; color: #3f4f47; background: #f4f6f5; border-radius: 10px; padding: 10px 12px; }
.dep-live.ok { background: #e9f5ef; color: #0b6e4f; }
.dep-live.bad { background: #fdecea; color: #a12f23; }
.dep-qr-actions { display: flex; gap: 8px; }
.dep-qr-actions .btn { flex: 1; min-height: 44px; }
.dep-order { text-align: center; color: #9aa39e; font-size: 11px; }
@media (max-width: 520px) {
  .dep-qr-body { flex-direction: column; align-items: center; }
  .dep-qr svg { width: 200px; height: 200px; }
  .dep-qr-fields { width: 100%; }
  .dep-steps li em { display: none; }
  .dep-steps li { justify-content: center; }
}

/* ==================== ADIM 122/N — telefonda ödeme penceresi ("ödeme sayfası telefonda taşıyor") ====================
   Kök sebep: pencere max-height:90vh idi. iPhone Safari'de vh, alt araç çubuğunun ARKASINI da sayar → pencerenin son
   ~%10'u (ve "Ödemeye geç" düğmesi) çubuğun arkasında kalıyordu; küçük telefonlarda düğme ilk ekranda hiç görünmüyordu,
   yatay ekranda pencere 288 px'e sıkışıyordu. Artık telefonda alttan açılan tam boy bir panel: yükseklik dvh (görünen
   alan) ile, iPhone ev çubuğu payı (safe-area) ile; "Ödemeye geç" ve QR ekranı düğmeleri her zaman altta görünür (sticky). */
.deposit-modal { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overscroll-behavior: contain; }
@media (max-width: 600px), (max-height: 540px) {
  #depositOverlay { padding: 0; align-items: flex-end; }
  #depositOverlay .deposit-modal {
    width: 100%; max-width: 100%; border-radius: 18px 18px 0 0;
    max-height: 100vh; max-height: 100dvh; -webkit-overflow-scrolling: touch;
    padding: 14px 14px calc(12px + env(safe-area-inset-bottom));
  }
  #depositOverlay.show .deposit-modal { transform: none; }
  .deposit-modal .dep-view { gap: 10px; }
  .deposit-modal .dep-go {
    position: sticky; bottom: 0; z-index: 3;
    box-shadow: 0 -14px 12px -4px rgba(251,251,249,0.96), 0 6px 16px rgba(11,110,79,0.28);
  }
  .deposit-modal .dep-qr-actions {
    position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom)); z-index: 3; background: #fbfbf9;
    margin: 0 -14px; padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 12px rgba(0,0,0,0.06);
  }
  .deposit-modal .dep-qr-actions .btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; padding: 10px 8px; }
  .deposit-modal .dep-status-actions { position: sticky; bottom: 0; background: #fbfbf9; padding-top: 6px; }
}
@media (max-width: 420px) {
  .deposit-modal .dep-qr-actions { flex-direction: column-reverse; }
  .deposit-modal .dep-qr-actions .btn { width: 100%; }
  .dep-copy-btn { min-width: 64px; padding: 0 8px; }
}
/* kısa ekran (küçük telefon, yatay): başlık sadeleşir, alan kazanılır */
@media (max-height: 700px) and (max-width: 600px), (max-height: 540px) {
  .deposit-modal .dep-icon { display: none; }
  .deposit-modal .dep-sub { font-size: 12.5px; }
  .deposit-modal .dep-amount input { font-size: 20px; padding: 7px 0; }
  .deposit-modal .dep-quick button { padding: 6px 4px; }
  .deposit-modal .dep-info { font-size: 12px; padding: 8px 10px; }
  .deposit-modal .dep-qr svg { width: 168px; height: 168px; }
}
/* yatay telefon: iki sütun (sol: tutar, sağ: ağ + sonuç) sığmadığı için tek sütun ama geniş */
@media (max-height: 540px) and (min-width: 541px) {
  #depositOverlay .deposit-modal { width: min(640px, 100%); margin: 0 auto; }
  .deposit-modal .dep-head { display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .deposit-modal .dep-head .ok-modal-title { margin: 0; }
  .deposit-modal .dep-rate { align-self: flex-start; }
}

/* ADIM 132/N — tek bekleyen talep notu */
.dep-pending { margin: 8px 0 4px; padding: 9px 11px; border-radius: 10px; background: #fff6df; border: 1px solid #f0d58a; color: #6b4d00; font-size: 13px; line-height: 1.45; font-weight: 600; }
.dep-pending-link { font-weight: 800; color: #0b6e4f; text-decoration: underline; }

/* ADIM 133/N — test modu uyarısı (QR ekranı) */
.dep-sandbox-warn { background: #c0392b; color: #fff; font-weight: 800; font-size: 13.5px; line-height: 1.4; border-radius: 10px; padding: 10px 12px; margin: 8px 0; text-align: center; }
.dep-sandbox-warn[hidden] { display: none; }
