/* topup-admin.css — 儲值訂單客服面板樣式 */

.topup-filter-btn.active {
  background: linear-gradient(135deg, #ffd54f, #ff8c00);
  color: #1a1a2e;
  border-color: #ffd54f;
  font-weight: 800;
}
.topup-list-host { margin-top: 12px; }
.topup-loading, .topup-empty, .topup-error {
  padding: 24px; text-align: center;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 13px;
}
.topup-error { color: #ef9a9a; }

.topup-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.topup-table th, .topup-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.topup-table th {
  background: rgba(0,0,0,0.28);
  color: #ffd54f;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}
.topup-table tr:last-child td { border-bottom: none; }
.topup-table tbody tr:hover { background: rgba(255,213,79,0.04); }

.topup-td-no {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 800; color: #ffd54f;
  letter-spacing: 1px;
}
.topup-td-amt { font-weight: 700; color: #fff; }
.topup-td-gems { font-weight: 800; color: #ffe082; }
.topup-td-time { font-size: 11px; color: rgba(255,255,255,0.6); white-space: nowrap; }
.topup-user-nick { color: #fff; font-weight: 700; }
.topup-user-email { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; word-break: break-all; }

.topup-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.topup-badge.pending    { background: rgba(255,193,7,0.2); color: #ffe082; }
.topup-badge.paid       { background: rgba(76,175,80,0.2); color: #a5d6a7; }
.topup-badge.cancelled  { background: rgba(158,158,158,0.2); color: rgba(255,255,255,0.55); }

.topup-confirm-btn {
  background: linear-gradient(135deg, #ffd54f, #ff8c00);
  color: #1a1a2e;
  border: none; border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px; font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.topup-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255,140,0,0.3);
}
.topup-cancel-btn {
  background: rgba(158,158,158,0.15);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(158,158,158,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px; cursor: pointer;
  margin-left: 6px;
}
.topup-cancel-btn:hover { background: rgba(244,67,54,0.15); color: #ef9a9a; border-color: rgba(244,67,54,0.4); }

/* ─── 產碼結果 modal ─── */
.topup-code-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  z-index: 11000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.topup-code-card {
  background: linear-gradient(180deg, #1e1e35 0%, #0d1224 100%);
  border-radius: 18px;
  max-width: 440px; width: 100%;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(255,213,79,0.5);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(255,213,79,0.25);
}
.topup-code-title {
  color: #fff; font-size: 22px; font-weight: 900;
  margin-bottom: 8px;
}
.topup-code-sub {
  color: rgba(255,255,255,0.75);
  font-size: 13px; margin-bottom: 18px;
}
.topup-code-sub b { color: #ffd54f; }
.topup-code-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,213,79,0.1);
  border: 2px dashed rgba(255,213,79,0.5);
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 14px;
}
.topup-code-value {
  flex: 1; text-align: center;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 22px; font-weight: 900;
  color: #ffd54f;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(255,213,79,0.5);
  user-select: all;
}
.topup-code-copy {
  background: linear-gradient(135deg, #ffd54f, #ff8c00);
  color: #1a1a2e;
  border: none; border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px; font-weight: 800;
  cursor: pointer;
}
.topup-code-help {
  color: rgba(255,255,255,0.7);
  font-size: 12px; line-height: 1.6;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(255,213,79,0.5);
  border-radius: 4px;
  margin-bottom: 18px;
  text-align: left;
}
.topup-code-help b { color: #ffd54f; }
.topup-code-close {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.topup-code-close:hover { background: rgba(255,255,255,0.14); }

@media (max-width: 600px) {
  .topup-table { font-size: 12px; }
  .topup-table th, .topup-table td { padding: 8px 6px; }
  .topup-user-email { display: none; }
  .topup-td-time { font-size: 10px; }
  .topup-code-value { font-size: 18px; letter-spacing: 2px; }
}
