.yiles-usdt-modal {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  animation: yiles-usdt-fade-in 0.22s ease;
}

@keyframes yiles-usdt-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.yiles-usdt-card {
  position: relative;
  width: min(420px, 96vw);
  background: linear-gradient(165deg, #1c2436 0%, #151b28 48%, #121722 100%);
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 18px;
  padding: 26px 24px 0;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: yiles-usdt-slide-up 0.28s ease;
}

@keyframes yiles-usdt-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.yiles-usdt-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.yiles-usdt-close-x:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.yiles-usdt-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f1f5f9;
}

.yiles-usdt-order {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
  word-break: break-all;
}

.yiles-usdt-order span {
  color: rgba(203, 213, 225, 0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.yiles-usdt-hero-amt {
  margin: 18px 0 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #38bdf8;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.yiles-usdt-qr-wrap {
  text-align: center;
  margin-bottom: 18px;
}

.yiles-usdt-qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.yiles-usdt-qr-box img,
.yiles-usdt-qr-box canvas {
  display: block;
  width: 196px !important;
  height: 196px !important;
  border-radius: 4px;
}

.yiles-usdt-qr-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}

.yiles-usdt-field {
  margin-bottom: 12px;
}

.yiles-usdt-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
}

.yiles-usdt-field-val {
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(71, 85, 105, 0.45);
  font-size: 13px;
  line-height: 1.45;
  color: #e2e8f0;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.yiles-usdt-btn-copy {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

.yiles-usdt-btn-copy:active {
  transform: scale(0.985);
}

.yiles-usdt-btn-copy.primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.yiles-usdt-btn-copy.primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.yiles-usdt-btn-copy.secondary {
  background: rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(71, 85, 105, 0.6);
}

.yiles-usdt-btn-copy.secondary:hover {
  background: rgba(71, 85, 105, 0.9);
}

.yiles-usdt-btn-copy.copied {
  opacity: 0.88;
}

.yiles-usdt-timer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.yiles-usdt-timer.expired {
  color: #f87171;
}

.yiles-usdt-footer-status {
  margin: 14px -24px 0;
  padding: 13px 20px;
  border-radius: 0 0 17px 17px;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.55) 0%, rgba(69, 26, 3, 0.72) 100%);
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  text-align: center;
  font-size: 13px;
  color: #fde68a;
}

.yiles-usdt-footer-status.success {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.65) 0%, rgba(4, 47, 46, 0.8) 100%);
  border-top-color: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

.yiles-usdt-advanced {
  margin: 14px 0 18px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
}

.yiles-usdt-advanced summary {
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  list-style: none;
}

.yiles-usdt-advanced summary::-webkit-details-marker {
  display: none;
}

.yiles-usdt-advanced summary::before {
  content: '▸ ';
  color: #60a5fa;
}

.yiles-usdt-advanced[open] summary::before {
  content: '▾ ';
}

.yiles-usdt-advanced input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-size: 13px;
}

.yiles-usdt-advanced button {
  margin-top: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #93c5fd;
  font-size: 13px;
  cursor: pointer;
}

.yiles-usdt-advanced button:hover {
  background: rgba(59, 130, 246, 0.12);
}

@media (max-width: 480px) {
  .yiles-usdt-card {
    padding: 22px 18px 0;
  }

  .yiles-usdt-hero-amt {
    font-size: 30px;
  }

  .yiles-usdt-footer-status {
    margin-left: -18px;
    margin-right: -18px;
  }
}
