/* ============================================================
   美債（入金）頁面
   ============================================================ */

/* ---------- 買幣審核狀態 ---------- */

.buy-status-box {
  margin-bottom: 16px;
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  border: 1px solid var(--border-strong);
}

.bs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border-subtle);
}

.bs-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.bs-badge {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(168, 134, 28, 0.16);
  color: var(--text-muted);
}

.bs-badge.pending {
  background: rgba(241, 196, 15, 0.22);
  color: #8a6a00;
}

.bs-badge.approved {
  background: rgba(46, 125, 50, 0.16);
  color: #1f5c23;
}

.bs-badge.rejected {
  background: rgba(224, 46, 46, 0.14);
  color: #c41c1c;
}

.bs-badge.sent {
  background: rgba(46, 125, 50, 0.22);
  color: #1f5c23;
}

.bs-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.bs-row strong {
  font-size: 13px;
  color: var(--text-primary);
}

.bs-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.65;
  text-align: left;
}

.bs-note-ok {
  border-left: 3px solid #2e7d32;
  background: rgba(46, 125, 50, 0.1);
  color: #1f5c23;
}

.bs-note-wait {
  border-left: 3px solid #d4af37;
  background: rgba(212, 175, 55, 0.12);
  color: #7d6410;
}

/* 已打幣：TP 錢包已收到 */
.bs-received {
  margin-top: 12px;
  padding: 18px 16px;
  border-radius: 11px;
  text-align: center;
  background: linear-gradient(160deg, rgba(46, 125, 50, 0.14), rgba(46, 125, 50, 0.05));
  border: 1.5px solid rgba(46, 125, 50, 0.5);
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.12);
}

.bs-received-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.bs-received-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #1f5c23;
}

.bs-received-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #2e7d32;
}

.bs-received-tx {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(46, 125, 50, 0.25);
  font-size: 10.5px;
  color: var(--text-muted);
}

.bs-received-tx code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  color: var(--text-secondary);
  word-break: break-all;
}

/* 匯款資訊（審核通過後顯示） */
.bs-bank {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 9px;
  background: rgba(46, 125, 50, 0.07);
  border: 1px solid rgba(46, 125, 50, 0.32);
}

.bs-bank-title {
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(46, 125, 50, 0.22);
  font-size: 12px;
  font-weight: 800;
  color: #1f5c23;
  text-align: left;
}

.bs-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: left;
}

.bs-bank-row strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.bs-acct {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

.bs-bank-amount {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(46, 125, 50, 0.22);
}

.bs-bank-amount strong {
  font-size: 16px;
  font-weight: 800;
  color: #c41c1c;
}

/* 複製鍵 */
.bs-copy {
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: transparent;
  font-family: inherit;
  font-size: 10px;
  color: var(--gold-200);
  cursor: pointer;
  transition: all 0.18s;
}

.bs-copy:hover {
  background: rgba(212, 175, 55, 0.15);
}

.bs-copy.done {
  color: #2e7d32;
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.1);
}

/* 限時匯款提醒 */
.bs-note-deadline {
  border-left: 3px solid #e02e2e;
  background: rgba(224, 46, 46, 0.08);
  color: #8c3a3a;
  font-weight: 600;
}

/* ---------- 已匯款回報按鈕 ---------- */

/*
 * ⚠️ 重要：display: flex 會蓋掉 hidden 屬性。
 *
 * HTML 的 hidden 屬性只是一個 UA 預設樣式 display: none，
 * 而我們又寫了 display: flex，優先權更高，
 * 結果就是「明明設了 hidden 還是顯示」。
 *
 * 所以凡是有 display: flex/block 的元素，
 * 都必須補一條 [hidden] { display: none !important; }。
 */

/*
 * 金色實心按鈕：這是審核通過後客戶最重要的動作。
 *
 * 位置：匯款資訊框內、「匯款金額」正下方。
 * 上方的 margin-top 加大（14px），與金額列拉開一點距離，
 * 避免使用者把金額和按鈕看成同一塊。
 */
.bs-report-paid {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: all 0.2s;
}

.bs-report-paid[hidden] {
  display: none !important;
}

.bs-report-paid:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.bs-report-paid:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.bs-report-paid-ico {
  font-size: 17px;
}

.bs-report-paid-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.bs-report-paid-main {
  font-size: 13.5px;
  font-weight: 800;
  color: #1a1200;
}

.bs-report-paid-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(26, 18, 0, 0.72);
}

.bs-report-paid-arrow {
  font-size: 19px;
  color: #1a1200;
  opacity: 0.65;
}

/* 已回報後顯示的狀態 */
.bs-reported {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(6, 199, 85, 0.12);
  border: 1px solid rgba(6, 199, 85, 0.42);
}

.bs-reported[hidden] {
  display: none !important;
}

.bs-reported-ico {
  font-size: 16px;
}

.bs-reported-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  text-align: left;
}

.bs-reported-main {
  font-size: 13px;
  font-weight: 800;
  color: #0a6b31;
}

.bs-reported-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: #3f7a55;
}

.bs-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 10px 13px;
  border-radius: 9px;
  text-decoration: none;
  background: rgba(6, 199, 85, 0.13);
  border: 1px solid rgba(6, 199, 85, 0.45);
  transition: all 0.2s;
}

.bs-line:hover {
  background: rgba(6, 199, 85, 0.2);
}

.bs-line-ico {
  font-size: 14px;
}

.bs-line-text {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #0a6b31;
  text-align: left;
}

.bs-line-arrow {
  font-size: 17px;
  color: #0a6b31;
}

/* ---------- 購買 USDT 入口 ---------- */

.dep-buy {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: rgba(212, 175, 55, 0.11);
  border: 1px solid var(--border-strong);
  transition: all 0.2s;
}

.dep-buy:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-400);
}

.dep-buy-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 16px;
  background: linear-gradient(135deg, #f0d98a, #d4af37);
}

.dep-buy-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

.dep-buy-main {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.dep-buy-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.dep-buy-arrow {
  flex-shrink: 0;
  font-size: 19px;
  color: var(--gold-200);
}

/* ---------- 入金參數 ---------- */

.param-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.param-item {
  background: var(--navy-800);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.param-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.param-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.param-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.param-unit {
  font-size: 14px;
  font-weight: 500;
  margin-left: 5px;
  -webkit-text-fill-color: var(--text-muted);
  color: var(--text-muted);
}

/* ---------- 入金按鈕 ---------- */

.deposit-action {
  text-align: center;
  margin-bottom: 20px;
}

.deposit-btn {
  width: 100%;
  max-width: 340px;
  padding: 15px 30px;
  border: 0;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;

  background: linear-gradient(135deg, #f0d98a, #d4af37 55%, #b8942a);
  color: #1a1200;
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.32);
}

.deposit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(212, 175, 55, 0.5);
}

.deposit-btn:active {
  transform: translateY(0);
}

.deposit-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.9;
}

.deposit-hint strong {
  color: var(--gold-300);
  font-weight: 600;
}

/* ---------- 鏈別標籤 ---------- */

.chain-badge {
  font-size: 12px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  padding: 2px 10px;
  font-weight: 500;
}

/* ---------- 交易連結 ---------- */

.tx-link {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
  transition: all 0.2s;
}

.tx-link:hover {
  color: var(--gold-200);
  border-bottom-color: var(--gold-300);
}

/* ---------- RWD ---------- */

@media (max-width: 560px) {
  .param-row {
    gap: 10px;
  }

  .param-item {
    padding: 16px 12px;
  }

  .param-value {
    font-size: 25px;
  }

  .param-label {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .deposit-btn {
    letter-spacing: 3px;
    font-size: 15px;
  }
}
