:root {
  color-scheme: dark;
  --bg-app: #07090e;
  --bg-card: #0c1018;
  --bg-card-hover: #121824;
  --bg-subtle: #101622;

  --border-card: rgba(255, 255, 255, 0.075);
  --border-card-hover: rgba(5, 241, 156, 0.28);
  --border-line: #182232;

  --text-white: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --emerald: #05f19c;
  --emerald-border: #10b981;
  --emerald-glow: rgba(5, 241, 156, 0.32);
  --cyan: #00f0ff;
  --blue: #38bdf8;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-app);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "zero" 1;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

body {
  background-image: 
    radial-gradient(1300px 520px at 50% -100px, rgba(5, 241, 156, 0.06), transparent 70%),
    radial-gradient(900px 480px at 85% 15%, rgba(0, 240, 255, 0.03), transparent 65%);
}

/* 适配全面屏手机底部 Home Bar 安全区 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .dashboard-wrap {
    padding-bottom: max(28px, calc(16px + env(safe-area-inset-bottom)));
  }
  .m-fleet-grid {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .modal-card {
    margin-bottom: env(safe-area-inset-bottom);
  }
}

.hide-desktop { display: none !important; }

/* ---------------- 顶部导航 Navbar ---------------- */
.top-nav {
  height: 56px;
  background: rgba(8, 11, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-chassis-icon {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 10px rgba(5, 241, 156, 0.45));
}
.brand-text-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.user-avatar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}

.live-dot-pulse {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* 桌面端一体化连体胶囊 (可提现余额 + 申请提现) */
.header-wallet-combo {
  display: flex;
  align-items: center;
  background: rgba(5, 241, 156, 0.06);
  border: 1px solid rgba(5, 241, 156, 0.22);
  border-radius: 20px;
  padding: 2px 2px 2px 14px;
  gap: 10px;
}
.combo-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.combo-balance strong {
  color: var(--emerald);
  font-size: 13.5px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.combo-btn {
  background: var(--emerald);
  color: #02140d;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(5, 241, 156, 0.35);
}
.combo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(5, 241, 156, 0.55);
}

/* 状态双绿点 */
.status-dots-group {
  display: flex;
  gap: 5px;
  align-items: center;
}
.dot-emerald {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-logout:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------------- 页面主体 Layout ---------------- */
.dashboard-wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 20px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------------- 4 大核心财务 KPI Banner ---------------- */
.kpi-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kpi-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* 卡片 1 高亮青绿外边框 */
.kpi-box.hero-kpi {
  border: 1px solid rgba(5, 241, 156, 0.45);
  box-shadow: 0 0 20px rgba(5, 241, 156, 0.1);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.kpi-title {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.kpi-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-index-tag {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-mono);
  font-weight: 600;
}

.kpi-pill-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(5, 241, 156, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(5, 241, 156, 0.3);
}

.kpi-number {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.15;
  margin: 2px 0 6px;
}
.hero-kpi .kpi-number {
  color: #ffffff;
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}
.kpi-sub.green {
  color: var(--emerald);
}

/* ---------------- 桌面端主分栏 (62% 表格 + 38% 单机透视) ---------------- */
.main-split {
  display: grid;
  grid-template-columns: 63% calc(37% - 16px);
  gap: 16px;
  align-items: stretch;
}

/* 专属算力集群卡片 */
.ledger-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ledger-head h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-running {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.btn-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-refresh-status:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ledger-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ledger-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.ledger-tbl th {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ledger-tbl tbody tr {
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: background 0.15s ease;
}
.ledger-tbl tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.ledger-tbl td {
  padding: 9.5px 12px;
  font-size: 13px;
  vertical-align: middle;
}

/* 选中行：高亮青绿圆角胶囊边框 (与设计图 #03 完全对齐) */
.ledger-tbl tbody tr.selected td {
  border-top: 1.5px solid #05f19c;
  border-bottom: 1.5px solid #05f19c;
  background: rgba(5, 241, 156, 0.06);
}
.ledger-tbl tbody tr.selected td:first-child {
  border-left: 1.5px solid #05f19c;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.ledger-tbl tbody tr.selected td:last-child {
  border-right: 1.5px solid #05f19c;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.ledger-tbl tbody tr.selected {
  box-shadow: 0 0 14px rgba(5, 241, 156, 0.22);
}

.node-id-str {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}
.uptime-str {
  font-family: var(--font-mono);
  color: #e2e8f0;
  font-size: 13px;
}

.power-bar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-track {
  width: 58px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.p-fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 3px;
}
.p-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.yield-val-today {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}
.yield-val-week {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue);
}

.status-pill-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(5, 241, 156, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(5, 241, 156, 0.3);
}

/* ---------------- 右侧单机透视卡片 ---------------- */
.inspector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-head h2 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.sub-node-spec {
  color: var(--emerald);
  font-weight: 600;
  margin-left: 4px;
}

.insp-main-val-row {
  margin: 2px 0 6px;
}
.insp-main-num {
  font-size: 38px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  letter-spacing: -0.5px;
}

.insp-yield-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 14px;
}
.insp-yield-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.insp-yield-metric .i-label {
  font-size: 11px;
  color: var(--text-muted);
}
.insp-yield-metric .i-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.insp-yield-metric .i-val.green { color: var(--emerald); }
.insp-yield-metric .i-val.blue { color: var(--blue); }

/* 14日走势曲线 */
.sparkline-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sparkline-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-name {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}
.sparkline-svg-container {
  width: 100%;
  height: 120px;
}
.sparkline-svg-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------- 提现 & 银行卡卡片 (右下) ---------------- */
.quick-withdraw-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

/* 下拉框样式银行卡胶囊 */
.linked-card-bar-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090e16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.linked-card-bar-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.bank-brand-circle {
  display: grid;
  place-items: center;
  margin-right: 8px;
}
.bank-select-txt {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}
.select-chevron {
  display: grid;
  place-items: center;
  color: #64748b;
}

.withdraw-input-row {
  width: 100%;
}
.withdraw-input-row input {
  width: 100%;
  background: #090e16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  font-family: var(--font-sans);
}
.withdraw-input-row input::placeholder {
  color: #64748b;
}
.withdraw-input-row input:focus {
  border-color: rgba(5, 241, 156, 0.4);
}

.btn-submit-withdraw-dark {
  width: 100%;
  background: #142220;
  color: #cbd5e1;
  border: 1px solid rgba(5, 241, 156, 0.25);
  border-radius: 8px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-submit-withdraw-dark:hover {
  background: rgba(5, 241, 156, 0.15);
  color: #fff;
  border-color: var(--emerald);
  box-shadow: 0 0 12px rgba(5, 241, 156, 0.25);
}

.recent-tx-note-inline {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tag-done-bracket {
  color: var(--emerald);
  font-weight: 600;
}

/* ---------------- 移动端专属样式 (Mobile 9:16) ---------------- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: flex !important; }

  .top-nav {
    height: 50px;
    padding: 0 16px;
  }
  .brand-title {
    font-size: 15px;
  }
  .user-profile-pill {
    padding: 4px 10px;
    font-size: 11.5px;
    gap: 5px;
  }

  .dashboard-wrap {
    padding: 12px 14px 40px;
    gap: 12px;
  }

  /* 移动端专属 Hero 钱包大卡片 */
  .mobile-hero-wallet {
    background: #0a111a;
    border: 1px solid rgba(5, 241, 156, 0.35);
    box-shadow: 0 0 20px rgba(5, 241, 156, 0.12);
    border-radius: 16px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .m-hero-top {
    font-size: 12px;
    color: var(--text-dim);
  }
  .m-hero-amount {
    font-size: 38px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
  }
  .m-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
  }
  .m-btn-withdraw {
    background: var(--emerald);
    color: #02120b;
    font-weight: 800;
    font-size: 13px;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(5, 241, 156, 0.4);
    white-space: nowrap;
  }
  .m-btn-card {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 7px 14px;
    cursor: pointer;
    white-space: nowrap;
  }
  .m-hero-footer {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
  }
  .m-hero-footer strong {
    color: #cbd5e1;
    font-family: var(--font-mono);
  }
  .m-hero-footer .sep {
    color: rgba(255, 255, 255, 0.15);
  }

  /* 移动端 2x2 财务数据宫格 */
  .kpi-banner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi-box {
    padding: 12px 14px;
  }
  .kpi-number {
    font-size: 22px;
  }

  /* 移动端 14日走势图卡片 */
  .mobile-trend-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .sparkline-peak-label {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(5, 241, 156, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(5, 241, 156, 0.3);
  }

  /* 移动端专属：8台机位 2列卡片流 (Grid Cards) */
  .mobile-fleet-section {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }
  .mobile-section-head h3 {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
  }
  .mobile-section-head .sub-txt {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .mobile-fleet-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .m-device-card {
    background: #0d121c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .m-device-card.selected {
    border: 1.5px solid #05f19c;
    background: rgba(5, 241, 156, 0.05);
    box-shadow: 0 0 16px rgba(5, 241, 156, 0.28);
  }
  .m-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .m-card-id {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
  }
  .m-status-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(5, 241, 156, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(5, 241, 156, 0.3);
  }
  .m-card-meta {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
  }
  .m-card-yields {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .m-yield-col {
    display: flex;
    flex-direction: column;
  }
  .m-col-lbl {
    font-size: 10px;
    color: var(--text-muted);
  }
  .m-col-val {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
  }
}

/* ---------------- 模态框通用样式 ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-card {
  background: #0f1522;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.btn-close-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
}

.balance-display-box {
  background: rgba(5, 241, 156, 0.06);
  border: 1px solid rgba(5, 241, 156, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.balance-display-box .b-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}
.balance-display-box .b-main {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--emerald);
}

.sec-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.btn-link {
  background: transparent;
  border: none;
  color: var(--blue);
  font-size: 11.5px;
  cursor: pointer;
}

.current-card-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #090e16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}
.current-card-box .card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.current-card-box strong { font-size: 13px; color: #fff; }
.current-card-box span { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.current-card-box .card-holder { font-size: 11px; color: var(--text-muted); }

.withdraw-input-group {
  display: flex;
  align-items: center;
  background: #090e16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 12px;
  gap: 8px;
}
.withdraw-input-group .curr-sign {
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald);
}
.withdraw-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 18px;
  font-family: var(--font-mono);
}
.btn-all {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}
.withdraw-fee-tip {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.btn-submit-action {
  width: 100%;
  background: var(--emerald);
  color: #02120b;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 0 16px rgba(5, 241, 156, 0.35);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
.history-item .amt {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}
.status-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.status-badge.COMPLETED {
  background: rgba(5, 241, 156, 0.15);
  color: var(--emerald);
}
.status-badge.PENDING {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.status-badge.REJECTED {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.history-item-sub {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 10px;
}
.history-reason {
  color: #f43f5e;
  font-size: 10px;
}
.history-txno {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Toast 提示胶囊浮窗 */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(5, 241, 156, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  animation: toastFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}
.toast-pill.toast-success {
  border-color: rgba(5, 241, 156, 0.4);
  color: #34d399;
}
.toast-pill.toast-error {
  border-color: rgba(244, 63, 94, 0.45);
  color: #fb7185;
}
.toast-pill.toast-info {
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 登录弹窗 */
.login-header {
  padding: 24px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.login-header h2 { font-size: 18px; font-weight: 800; color: #fff; }
.login-header p { font-size: 12px; color: var(--text-muted); }
.login-form {
  padding: 10px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}
.form-group input {
  background: #090e16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.login-quick-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.btn-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
}
.btn-login-submit {
  background: var(--emerald);
  color: #02120b;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  padding: 11px;
  cursor: pointer;
  margin-top: 6px;
}
