/* ============================================================
   Conductor 會員資助系統 (第三方學生資助計劃) — 真實資料版
   獨立樣式，供 /mk2/sponsorship/index.html 使用，不影響舊有
   mock 頁面所引用的 sponsorship.css。
   ============================================================ */

.spon-live .wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 8px 0 4px;
}
.spon-live .wallet-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.spon-live .wallet-card .wc-label {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.spon-live .wallet-card .wc-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}
.spon-live .wallet-card .wc-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
}
.spon-live .wallet-card.accent-mzk {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}
.spon-live .wallet-card.accent-mst {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-color: #bfdbfe;
}
.spon-live .wallet-card.accent-roi .wc-value {
  color: var(--success);
}

/* 激勵層級卡 */
.spon-live .tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.spon-live .tier-card {
  position: relative;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.spon-live .tier-card .t-ico {
  font-size: 2.2rem;
}
.spon-live .tier-card .t-name {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 6px 0;
}
.spon-live .tier-card .t-req {
  font-size: 0.85rem;
  color: #64748b;
}
.spon-live .tier-card .t-reward {
  margin-top: 10px;
  font-weight: 700;
  color: #ea580c;
}
.spon-live .tier-card.is-current {
  border-color: #f59e0b;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.18);
  transform: translateY(-4px);
}
.spon-live .tier-card .t-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: none;
}
.spon-live .tier-card.is-current .t-badge {
  display: inline-block;
}

/* Campaign + KPI */
.spon-live .campaign-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.spon-live .campaign-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.spon-live .campaign-head h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.spon-live .campaign-meta {
  font-size: 0.85rem;
  color: #64748b;
}
.spon-live .fund-bar {
  height: 14px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
  margin: 14px 0 6px;
}
.spon-live .fund-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, var(--success));
}
.spon-live .fund-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

.spon-live .kpi-list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.spon-live .kpi-item .kpi-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.spon-live .kpi-item .kpi-name {
  font-weight: 700;
  color: #0f172a;
}
.spon-live .kpi-item .kpi-val {
  color: #475569;
}
.spon-live .kpi-track {
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}
.spon-live .kpi-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #22c55e);
}

/* 操作面板 */
.spon-live .action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .spon-live .action-grid {
    grid-template-columns: 1fr;
  }
}
.spon-live .action-box {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}
.spon-live .action-box h4 {
  margin: 0 0 10px;
}
.spon-live .action-box .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.spon-live .action-box input {
  flex: 1;
  min-width: 140px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}
.spon-live .action-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* 投資紀錄表 */
.spon-live .inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.spon-live .inv-table th,
.spon-live .inv-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
}
.spon-live .inv-table th {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.spon-live .inv-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.spon-live .inv-pill.bronze { background: var(--warning-soft); color: var(--warning-strong); }
.spon-live .inv-pill.silver { background: #e2e8f0; color: #334155; }
.spon-live .inv-pill.gold   { background: #fde68a; color: #854d0e; }
.spon-live .inv-empty {
  padding: 28px;
  text-align: center;
  color: #94a3b8;
}

/* 提示 / 狀態 */
.spon-live .live-note {
  margin: 14px 0;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.9rem;
  color: #475569;
}
.spon-live .toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
  max-width: 90vw;
}
.spon-live .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.spon-live .toast.err { background: var(--error-strong); }
.spon-live .skeleton {
  color: #cbd5e1;
}
