/* Grandpasha — Nexus yalnızca para yatır ekranında görünsün */
#nexusPaymentMount:not([data-nexus-active="1"]) {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nexus-yoggy-payment-mount[data-nexus-active="1"] {
  display: block !important;
  max-width: 960px;
  margin: 12px auto;
  clear: both;
  min-height: 200px;
}

.tl_my_acc_cont_content[data-nexus-deposit-active="1"] {
  min-height: 420px;
}

.nexus-gp-deposit-active .tl_my_acc_cont_content[data-nexus-deposit-active="1"] > *:not(#nexusPaymentMount) {
  display: none !important;
}

.nexus-gp-deposit-active #nexusPaymentMount[data-nexus-active="1"] {
  width: 100%;
}

/* —— Tutar / IBAN adımları (kompakt modal) —— */
.nexus-gp-pay-modal--compact {
  width: min(440px, calc(100vw - 24px)) !important;
  max-height: min(88vh, 620px) !important;
}

.nexus-gp-pay-modal--compact #nexusPaymentMount {
  min-height: 0 !important;
  flex: 0 1 auto !important;
  padding: 18px 22px 26px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.nexus-gp-pay-modal--wide {
  width: min(960px, 100%) !important;
  max-height: min(92vh, 900px) !important;
}

.nexus-gp-pay-modal--wide #nexusPaymentMount {
  min-height: 280px !important;
  flex: 1 1 auto !important;
}

.nexus-gp-amount,
.nexus-gp-iban-step {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nexus-gp-amount h4,
.nexus-gp-iban-step h4 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.nexus-pay-limit {
  margin: 0 0 18px;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.nexus-gp-amount label {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.03em;
}

.nexus-gp-amount input {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  box-sizing: border-box;
}

.nexus-gp-amount input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.nexus-gp-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  align-items: stretch;
}

.nexus-gp-pay-modal .ui-btn {
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  transition: filter 0.15s ease, background 0.15s ease;
}

.nexus-gp-pay-modal .ui-btn:hover {
  filter: brightness(1.08);
}

.nexus-gp-pay-modal #nexusGpAmountNext,
.nexus-gp-pay-modal #nexusYoggyConfirm,
.nexus-gp-primary {
  flex: 1 1 140px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0c0a09 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.nexus-gp-pay-modal #nexusGpAmountBack,
.nexus-gp-pay-modal #nexusYoggyBack {
  flex: 1 1 120px;
  background: rgba(15, 23, 42, 0.65) !important;
  color: #cbd5e1 !important;
}

.nexus-gp-muted {
  opacity: 1;
  margin-left: 0;
}

.nexus-gp-iban-step .nexus-gp-iban {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.28);
}

.nexus-gp-iban-step .nexus-gp-iban p {
  margin: 0 0 8px;
  color: #e2e8f0;
}

.nexus-gp-iban-step .nexus-gp-iban p:last-child {
  margin-bottom: 0;
}

.nexus-gp-iban-warn {
  color: #fca5a5;
  font-size: 13px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.nexus-gp-iban-code {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.nexus-gp-loading {
  padding: 1.5rem;
  color: #94a3b8;
  text-align: center;
}

.nexus-gp-toast {
  position: fixed;
  z-index: 999999;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  display: none;
}

.nexus-gp-toast--ok {
  background: #14532d;
  color: #ecfdf5;
  border: 1px solid #22c55e;
}

.nexus-gp-toast--err {
  background: #450a0a;
  color: #fecaca;
  border: 1px solid #ef4444;
}

/* Bonus seçim popup'ı bozuk yüksekliğe düşmesin — ana sayfa slider ile çakışmasın */
.tl_popup_container .tl_popup_dialog,
#popup_dialog.tl_popup_dialog {
  max-height: min(92vh, 820px) !important;
  overflow: hidden !important;
}

.tl_popup_container .tl_my_acc_cont,
.tl_popup_container .tl_my_acc_cont_content {
  max-height: calc(92vh - 120px);
  overflow-y: auto;
}

/* Tam ekran TRICONSC para yatır paneli */
html.nexus-gp-pay-open {
  overflow: hidden;
}

.nexus-gp-pay-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.nexus-gp-pay-modal {
  position: relative;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  overflow: hidden;
  border-radius: 14px;
  background: #1a1f14;
  border: 1px solid rgba(212, 160, 23, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.nexus-gp-pay-head {
  padding: 14px 48px 10px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #f5e6b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-gp-pay-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.nexus-gp-pay-modal #nexusPaymentMount {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  max-width: none;
  min-height: 320px;
  padding: 8px 12px 16px;
}
