/* Modal chuyển khoản checkout — vps-modal + QR panel (tách từ gizadata-v2 / profile-panels) */

.vps-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
}

.vps-modal:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.vps-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(3px);
}

.vps-modal__panel {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 700px;
  max-height: calc(100dvh - 28px);
  margin: 0 auto;
  background: #020817;
  border: 1px solid #1e293b;
  border-radius: 14px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.vps-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.vps-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.vps-modal__close {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.vps-modal__body {
  padding: 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.vps-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
}

.vps-modal-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-weight: 700;
  cursor: pointer;
}

.vps-modal-btn--muted {
  background: #334155;
  border-color: #334155;
}

.vps-modal-btn--primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 0;
  color: #fff;
}

.bank-transfer-modal .btx-panel {
  width: 90%;
  max-width: 794px;
  background: linear-gradient(145deg, #151b2b, #0b0f19);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.bank-transfer-modal .btx-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bank-transfer-modal .btx-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.bank-transfer-modal .btx-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bank-transfer-modal .btx-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.bank-transfer-modal .btx-body {
  padding: 10px;
}

.bank-transfer-modal .btx-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 32px 24px;
}

.btp-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btp-tabs__label {
  color: #94a3b8;
  font-size: 13px;
}

.btp-segmented {
  display: inline-flex;
  position: relative;
  gap: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
}

.btp-segmented-bg {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  bottom: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

button.btp-switch {
  position: relative;
  z-index: 2;
  color: #94a3b8;
  background: transparent;
  min-width: 100px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
}

button.btp-switch.active {
  color: #fff;
}

.btp-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 22px;
}

.btp-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 20px;
}

.btp-qr-shell {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.btp-qr {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  border: 1px solid #dbe4f1;
  background: #fff;
  display: block;
  margin: 0 auto;
}

.btp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.btp-row:last-of-type {
  border-bottom: 0;
}

.btp-label {
  color: #94a3b8;
  font-size: 14px;
}

.btp-value {
  color: #f8fafc;
  text-align: right;
  word-break: break-word;
  font-weight: 600;
  font-size: 15px;
}

.btp-value--amount {
  font-size: 24px;
  font-weight: 800;
}

.btp-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #34d399;
}

.btp-warning {
  margin-top: 16px;
  border-left: 4px solid #f59e0b;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.14), transparent);
  color: #fcd34d;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.btp-value-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.btp-copy-value {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btp-copy-value:hover {
  color: #6ee7b7;
}

.btp-copy-value.copied {
  color: #34d399;
  transform: scale(1.02);
}

.btp-copy-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 13050;
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btp-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.btx-footer {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(260px, 2fr);
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.btx-footer__btn {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 0 16px;
  border-radius: 12px;
}

.btp-status {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.btp-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .vps-modal:not(.hidden) {
    padding: 8px;
  }

  .vps-modal__panel {
    width: min(620px, calc(100vw - 16px));
  }

  .bank-transfer-modal .btx-header {
    padding: 16px 18px 12px;
  }

  .bank-transfer-modal .btx-body {
    padding: 0 18px 16px;
  }

  .bank-transfer-modal .btx-footer {
    padding: 14px 18px 18px;
  }

  .btp-grid {
    grid-template-columns: 1fr;
  }

  .btx-footer {
    grid-template-columns: 1fr;
  }

  .btp-tabs {
    flex-direction: column;
    align-items: flex-start;
  }
}
