#usdtDepositModal.modal-overlay {
  z-index: 100000;
}

.usdt-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: 22px 20px 18px;
  background: #0e1a16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e8f0ec;
}

.usdt-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.usdt-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.usdt-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #9aa8a1;
}

.usdt-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.usdt-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.usdt-coin {
  width: 72px;
  height: 72px;
  margin: 10px auto 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #ffd27a 0%, #f5a623 48%, #d97706 100%);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.28);
}

.usdt-coin-mark {
  font-size: 34px;
  font-weight: 800;
  color: #1a1204;
  line-height: 1;
}

.usdt-coin--worldcoin {
  background: #111111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.usdt-coin--worldcoin svg {
  width: 44px;
  height: 44px;
  display: block;
}

.usdt-coin--binance {
  background: radial-gradient(circle at 35% 30%, #f8d12f 0%, #f3ba2f 55%, #c99412 100%);
  box-shadow: 0 8px 20px rgba(243, 186, 47, 0.28);
}

.usdt-coin-mark--binance {
  color: #181a20;
  font-size: 32px;
}

.usdt-send-only {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #c5d0cb;
  text-align: left;
}

.usdt-send-only strong {
  color: #ffffff;
}

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

.usdt-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b9892;
}

.usdt-address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  background: #121f1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.usdt-address-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f3f4f6;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.usdt-copy-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.usdt-copy-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

.usdt-copy-btn:hover,
.usdt-copy-btn.is-copied {
  color: #2dd4bf;
}

.usdt-important {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #eab308;
  background: rgba(234, 179, 8, 0.08);
  color: #facc15;
  font-size: 13px;
  line-height: 1.45;
}

.usdt-important strong {
  color: #fde047;
}

.usdt-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121f1b;
  color: #f3f4f6;
  font-size: 15px;
}

.usdt-input::placeholder {
  color: #6b7671;
}

.usdt-input:focus {
  outline: none;
  border-color: #14b8a6;
}

.usdt-status {
  min-height: 1.2em;
  margin: 0 0 10px;
  font-size: 13px;
  color: #9aa8a1;
}

.usdt-status.ok {
  color: #34d399;
}

.usdt-status.err {
  color: #f87171;
}

.usdt-foot-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #8b9892;
}

.usdt-support-link {
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.usdt-submit {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%);
  color: #052e2b;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.usdt-submit:hover {
  filter: brightness(1.05);
}

.usdt-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 900px) {
  #usdtDepositModal.modal-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px 12px max(16px, env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #usdtDepositModal.modal-overlay[style*="flex"] {
    display: flex !important;
  }

  .usdt-modal {
    max-width: 400px;
    padding: 20px 16px 16px;
  }

  .usdt-title {
    font-size: 22px;
  }
}

html[data-cnh-theme="light"] .usdt-modal {
  background: #0e1a16;
  color: #e8f0ec;
}
