/* KPL 账号栏 / 登录充值弹层（对齐 趋势分析 / illa） */
.kpl-account-bar {
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 9000;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  max-width: min(92vw, 420px);
  justify-content: flex-end;
  font-size: 11px;
  color: #aaa;
}
.acct-user {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ccc;
}
.acct-sub {
  padding: 1px 6px;
  border-radius: 3px;
  background: #1a1a1a;
}
.acct-sub.ok { color: #8bc34a; }
.acct-sub.bad { color: #ff9800; }
.acct-btn {
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #ddd;
  border-radius: 4px;
}
.acct-btn:hover { border-color: #ff9800; color: #fff; }
.acct-btn.ghost { background: transparent; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.auth-panel {
  position: relative;
  width: 360px;
  max-width: 92vw;
  background: #141414;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px 18px 16px;
  color: #ddd;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.auth-panel-wide { width: 520px; }
.auth-x {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.auth-brand {
  font-size: 15px;
  font-weight: bold;
  color: #ff9800;
  margin-bottom: 10px;
}
.auth-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 0 0 10px;
}
.auth-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 4px;
  background: #0a0a0a;
  border: 1px solid #333;
  color: #eee;
}
.auth-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.auth-btn {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #444;
  background: #222;
  color: #ddd;
}
.auth-btn.primary {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border-color: #ff9800;
  color: #111;
  font-weight: bold;
}
.auth-btn.ghost {
  width: auto;
  white-space: nowrap;
  padding: 8px 10px;
}
.auth-msg { min-height: 18px; font-size: 12px; margin-top: 8px; }
.auth-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #90caf9;
}
.bill-status {
  font-size: 12px;
  padding: 8px 10px;
  background: #0a0a0a;
  border-radius: 6px;
  margin-bottom: 10px;
}
.bill-status .ok { color: #8bc34a; }
.bill-status .err { color: #ff6b6b; }
.bill-skus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.bill-sku {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 6px;
  cursor: pointer;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #ddd;
}
.bill-sku:hover { border-color: #ff9800; }
.bill-sku strong { font-size: 12px; text-align: center; }
.bill-sku span { font-size: 11px; color: #ff9800; }
.bill-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: #ccc;
}
.fb-pay-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.fb-pay-tab {
  flex: 1;
  padding: 7px;
  font-size: 12px;
  cursor: pointer;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #888;
  border-radius: 4px;
}
.fb-pay-tab.on {
  color: #fff;
  border-color: #ff9800;
  background: #221a10;
}
.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.auth-tab {
  flex: 1;
  padding: 7px;
  font-size: 12px;
  cursor: pointer;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #888;
  border-radius: 4px;
}
.auth-tab.on {
  color: #fff;
  border-color: #ff9800;
  background: #221a10;
}
.fb-qr-box {
  text-align: center;
  padding: 8px;
  background: #0a0a0a;
  border-radius: 8px;
}
.auth-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  padding: 8px 14px;
  border-radius: 6px;
  background: #222;
  color: #eee;
  font-size: 12px;
  border: 1px solid #444;
}
@media (max-width: 900px) {
  .bill-skus { grid-template-columns: repeat(3, 1fr); }
  .auth-panel-wide { width: 96vw; }
}
