/* 全局屏幕正中高品味黑金弹窗系统 */
.ambient-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ambient-modal-overlay.show {
  display: flex !important;
}

.ambient-modal-box {
  width: 100%;
  max-width: 440px;
  background: rgba(14, 16, 22, 0.98);
  border: 1px solid rgba(212, 190, 136, 0.45);
  border-radius: 18px;
  padding: 34px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 190, 136, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  animation: ambientModalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ambientModalScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ambient-modal-crest {
  width: 34px;
  height: 34px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ambient-modal-crest::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 190, 136, 0.5);
  border-radius: 50%;
}

.ambient-modal-crest::after {
  content: "";
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold-primary);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow);
}

.ambient-modal-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ambient-modal-msg {
  font-size: 15px;
  color: #f3f4f8;
  line-height: 1.68;
  margin-bottom: 26px;
  word-break: break-word;
}

.ambient-modal-btn {
  height: 40px;
  min-width: 140px;
  padding: 0 32px;
  background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%);
  color: #08090c;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(196, 170, 110, 0.25);
}

.ambient-modal-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(212, 190, 136, 0.35);
  transform: translateY(-1px);
}

/* 法律文档高定微晶弹窗模式（服务协议 / 隐私政策） */
.ambient-modal-box.ambient-doc-mode {
  max-width: min(880px, 94vw) !important;
  max-height: min(780px, 88vh) !important;
  padding: 24px 28px 20px !important;
  align-items: stretch !important;
  text-align: left !important;
}
.ambient-modal-box.ambient-doc-mode .ambient-modal-crest {
  display: none !important;
}
.ambient-modal-box.ambient-doc-mode .ambient-modal-title {
  font-size: 18px !important;
  margin-bottom: 12px !important;
  text-align: center !important;
  flex: none !important;
}
.ambient-modal-box.ambient-doc-mode .ambient-modal-msg {
  max-height: calc(88vh - 170px) !important;
  overflow-y: auto !important;
  font-size: 13.5px !important;
  line-height: 1.75 !important;
  color: #cbd5e1 !important;
  padding-right: 10px !important;
  text-align: left !important;
  margin-bottom: 18px !important;
  flex: 1 1 auto !important;
}
.ambient-modal-box.ambient-doc-mode .ambient-modal-msg::-webkit-scrollbar {
  width: 6px;
}
.ambient-modal-box.ambient-doc-mode .ambient-modal-msg::-webkit-scrollbar-thumb {
  background: rgba(212, 190, 136, 0.35);
  border-radius: 6px;
}
.ambient-modal-box.ambient-doc-mode .legal-doc-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ambient-modal-box.ambient-doc-mode .legal-doc-date {
  font-size: 12px;
  color: #8c92a2;
  margin-bottom: 4px;
}
.ambient-modal-box.ambient-doc-mode .legal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ambient-modal-box.ambient-doc-mode .legal-section-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-primary, #d4be88);
}
.ambient-modal-box.ambient-doc-mode .legal-p {
  margin: 0;
  color: #cbd5e1;
}
.ambient-modal-box.ambient-doc-mode .legal-highlight-box {
  background: rgba(212, 190, 136, 0.08);
  border: 1px solid rgba(212, 190, 136, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #f1f5f9;
  line-height: 1.6;
}
.ambient-modal-box.ambient-doc-mode .ambient-modal-btn {
  align-self: center;
  flex: none;
}
html[data-theme="light"] .ambient-modal-box.ambient-doc-mode {
  background: #ffffff !important;
  border-color: rgba(180, 140, 80, 0.35) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16) !important;
}
html[data-theme="light"] .ambient-modal-box.ambient-doc-mode .ambient-modal-msg {
  color: #334155 !important;
}
html[data-theme="light"] .ambient-modal-box.ambient-doc-mode .legal-p {
  color: #334155 !important;
}
html[data-theme="light"] .ambient-modal-box.ambient-doc-mode .legal-highlight-box {
  background: #fdfbf7 !important;
  border-color: rgba(180, 140, 80, 0.3) !important;
  color: #0f172a !important;
}

/* 指针旁就地浮层（确认 / 输入 / 提示）
   挂在 body 上、用 position: fixed 与屏幕坐标定位：画布是一整层被缩放的元素，
   放进去的话缩到 30% 时按钮会跟着缩到点不中。 */
.pt-bubble-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}

.pt-bubble {
  position: fixed;
  pointer-events: auto;
  min-width: 220px;
  max-width: 360px;
  padding: 16px 18px;
  background: rgba(16, 19, 26, 0.98);
  border: 1px solid rgba(212, 190, 136, 0.45);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  color: #f3f4f8;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
  animation: ptBubbleIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ptBubbleIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pt-bubble.is-danger {
  border-color: rgba(217, 64, 64, 0.55);
}

.pt-bubble.is-toast {
  pointer-events: none;
  background: rgba(16, 19, 26, 0.94);
  border-color: rgba(140, 170, 210, 0.4);
  color: #dfe4ef;
  animation: ptToastIn 0.16s ease-out;
}

@keyframes ptToastIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 到点渐隐（P26）：先淡出再移除，不做一刀切。
   时长与 shared-nav.js 的 TOAST_FADE_MS 一致（260ms）。 */
.pt-bubble.is-toast.is-fading {
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.26s ease-in, transform 0.26s ease-in;
}

.pt-bubble-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-primary, #d4be88);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.pt-bubble-msg {
  font-size: 15px;
  color: #e7eaf2;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.5;
}

.pt-bubble.is-toast .pt-bubble-msg {
  color: #dfe4ef;
}

.pt-bubble-input {
  width: 100%;
  height: 36px;
  margin-top: 10px;
  padding: 0 12px;
  box-sizing: border-box;
  background: rgba(8, 10, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f3f4f8;
  font-size: 15px;
  outline: none;
}

.pt-bubble-input:focus {
  border-color: rgba(212, 190, 136, 0.7);
}

.pt-bubble-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.pt-bubble-btn {
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.pt-bubble-btn.is-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #c7cad4;
}

.pt-bubble-btn.is-ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pt-bubble-btn.is-primary {
  background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%);
  border: none;
  color: #08090c;
  font-weight: 600;
}

.pt-bubble-btn.is-primary:hover {
  filter: brightness(1.08);
}

.pt-bubble-btn.is-primary.is-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.pt-bubble-btn.is-primary.is-danger:hover {
  filter: brightness(1.1);
}

/* ═══════════════════════════════════════════════════════════════
   浅色模式 (Light Theme) 下的指针就地确认微气泡高定自适应
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] .pt-bubble {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(180, 140, 80, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

html[data-theme="light"] .pt-bubble.is-danger {
  border-color: rgba(220, 38, 38, 0.45);
}

html[data-theme="light"] .pt-bubble-title {
  color: #9b7c38;
}

html[data-theme="light"] .pt-bubble-msg {
  color: #334155;
}

html[data-theme="light"] .pt-bubble-input {
  background: #ffffff;
  border-color: #ded8cb;
  color: #0f172a;
}

html[data-theme="light"] .pt-bubble-input:focus {
  border-color: #9b7c38;
}

html[data-theme="light"] .pt-bubble-btn.is-ghost {
  background: #f1ede4;
  border-color: #ded8cb;
  color: #475569;
}

html[data-theme="light"] .pt-bubble-btn.is-ghost:hover {
  background: #e7e2d6;
  border-color: #c7beab;
  color: #0f172a;
}

html[data-theme="light"] .pt-bubble-btn.is-primary.is-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   全局「积分明细」高定微晶悬浮舱 (.bills-modal-overlay)
   全站任何页面就地升起，零跳转、零离场
   ═══════════════════════════════════════════════════════════════ */
.bills-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  background: rgba(4, 5, 8, 0.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

.bills-modal-overlay[style*="display: none"] {
  display: none !important;
}

.bills-modal-card {
  width: min(1560px, 95vw);
  height: min(880px, 88vh);
  max-height: calc(100dvh - 48px);
  background: rgba(14, 16, 22, 0.94);
  border: 1px solid rgba(212, 190, 136, 0.45);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 32px rgba(212, 190, 136, 0.15);
  display: flex;
  flex-direction: column;
  padding: 22px 28px 18px 28px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.bills-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex: none;
  border-bottom: 1px solid rgba(212, 190, 136, 0.15);
  padding-bottom: 10px;
}

.bills-modal-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.bills-modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0;
}

.bills-modal-subtitle {
  font-size: 14px;
  color: #8c92a2;
}

.bills-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8becd;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.bills-modal-close:hover {
  background: rgba(235, 96, 96, 0.2);
  border-color: #eb6060;
  color: #ffffff;
}

/* 顶部固定大盘资产汇总 */
.bills-modal-card .bills-summary-fixed {
  flex: none;
  width: 100%;
  margin-bottom: 14px;
}

.bills-modal-card .summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.bills-modal-card .summary-card {
  background: rgba(14, 16, 22, 0.72);
  border: 1px solid rgba(212, 190, 136, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 240, 200, 0.08);
}

.bills-modal-card .summary-label {
  font-size: 14px;
  color: #8c92a2;
  margin-bottom: 4px;
  font-weight: 500;
}

.bills-modal-card .summary-val {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-primary, #d4be88);
  line-height: 1.2;
}

.bills-modal-card .summary-sub {
  font-size: 13px;
  color: #676d7c;
  margin-top: 4px;
}

/* 下半部：主账单面板 */
.bills-modal-card .bills-main-panel {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: rgba(14, 16, 22, 0.72);
  border: 1px solid rgba(212, 190, 136, 0.35);
  border-radius: 14px;
  padding: 14px 18px 10px 18px;
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.bills-modal-card .bills-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex: none;
  width: 100%;
}

.bills-modal-card .bills-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bills-modal-card .bills-tabs {
  display: flex;
  background: rgba(8, 9, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.bills-modal-card .bill-tab-btn {
  padding: 5px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #8c92a2;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.bills-modal-card .bill-tab-btn.active {
  background: #232630;
  color: var(--gold-primary, #d4be88);
  font-weight: 600;
}

.bills-modal-card .bills-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bills-modal-card .status-filter-btn {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 22, 0.65);
  color: #8c92a2;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.bills-modal-card .status-filter-btn.active,
.bills-modal-card .status-filter-btn:hover {
  border-color: rgba(212, 190, 136, 0.5);
  color: var(--gold-primary, #d4be88);
  background: rgba(212, 190, 136, 0.12);
}

.bills-modal-card .btn-export-csv {
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 190, 136, 0.12);
  border: 1px solid rgba(212, 190, 136, 0.4);
  border-radius: 8px;
  color: #eeddb2;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bills-modal-card .btn-export-csv:hover {
  background: rgba(212, 190, 136, 0.25);
  border-color: var(--gold-primary, #d4be88);
  color: #ffffff;
}

.bills-modal-card .bills-table-viewport {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-radius: 6px;
}

.bills-modal-card .bills-table-viewport::-webkit-scrollbar {
  width: 6px;
}

.bills-modal-card .bills-table-viewport::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.bills-modal-card .bills-table-viewport::-webkit-scrollbar-thumb {
  background: rgba(212, 190, 136, 0.35);
  border-radius: 999px;
}

.bills-modal-card .bills-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.bills-modal-card .bills-table th {
  font-size: 13px;
  font-weight: 600;
  color: #8c92a2;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  background: rgba(14, 16, 22, 0.95);
  position: sticky;
  top: 0;
  z-index: 5;
}

.bills-modal-card .bills-table td {
  font-size: 14px;
  color: #d8dce6;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bills-modal-card .bills-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.bills-modal-card .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.bills-modal-card .status-pill.ok {
  background: rgba(99, 201, 126, 0.14);
  color: #63c97e;
  border: 1px solid rgba(99, 201, 126, 0.35);
}

.bills-modal-card .status-pill.err {
  background: rgba(235, 96, 96, 0.14);
  color: #f07878;
  border: 1px solid rgba(235, 96, 96, 0.35);
}

.bills-modal-card .status-pill.run {
  background: rgba(212, 190, 136, 0.16);
  color: var(--gold-primary, #d4be88);
  border: 1px solid rgba(212, 190, 136, 0.4);
}

.bills-modal-card .error-reason {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #e79898;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bills-modal-card .pts-deduct {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: #e5e8f0;
}

.bills-modal-card .pts-refund {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: #63c97e;
}

.bills-modal-card .pts-add {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-primary, #d4be88);
}

.bills-modal-card .cell-mono {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.bills-modal-card .cell-mono-muted {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #8c92a2;
}

.bills-modal-card .cell-mono-gold {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--gold-primary, #d4be88);
  font-weight: 500;
}

.bills-modal-card .task-sub-name {
  color: #8c92a2;
  font-size: 13px;
}

.bills-modal-card .empty-state-cell {
  text-align: center;
  color: #797f90;
  padding: 32px;
  font-size: 14px;
}

.bills-modal-card .pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex: none;
  width: 100%;
}

.bills-modal-card .page-info-text {
  font-size: 13px;
  color: #8c92a2;
}

.bills-modal-card .page-nav-btns {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bills-modal-card .page-btn {
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 22, 0.65);
  color: #c7cad4;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.bills-modal-card .page-btn:hover:not(:disabled) {
  border-color: var(--gold-primary, #d4be88);
  color: var(--gold-primary, #d4be88);
  background: rgba(212, 190, 136, 0.12);
}

.bills-modal-card .page-btn.active {
  border-color: var(--gold-primary, #d4be88);
  background: var(--gold-primary, #d4be88);
  color: #08090c;
  font-weight: 700;
}

.bills-modal-card .page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 浅色主题下全局积分明细模态舱适配 */
html[data-theme="light"] .bills-modal-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
}
html[data-theme="light"] .bills-modal-card {
  background: #ffffff;
  border-color: rgba(180, 140, 80, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .bills-modal-title {
  color: #0f172a;
}
html[data-theme="light"] .bills-modal-subtitle {
  color: #64748b;
}
html[data-theme="light"] .bills-modal-header {
  border-bottom-color: rgba(180, 140, 80, 0.2);
}
html[data-theme="light"] .bills-modal-close {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}
html[data-theme="light"] .bills-modal-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}
html[data-theme="light"] .bills-modal-card .summary-card,
html[data-theme="light"] .bills-modal-card .bills-main-panel {
  background: #ffffff;
  border-color: rgba(180, 140, 80, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .bills-modal-card .summary-label {
  color: #334155;
}
html[data-theme="light"] .bills-modal-card .summary-val {
  color: #9b7c38;
}
html[data-theme="light"] .bills-modal-card .summary-sub {
  color: #64748b;
}
html[data-theme="light"] .bills-modal-card .bills-tabs {
  background: #f2efe8;
  border-color: rgba(180, 140, 80, 0.25);
}
html[data-theme="light"] .bills-modal-card .bill-tab-btn.active {
  background: #ffffff;
  color: #9b7c38;
}
html[data-theme="light"] .bills-modal-card .status-filter-btn {
  background: #f8f6f0;
  border-color: rgba(180, 140, 80, 0.3);
  color: #64748b;
}
html[data-theme="light"] .bills-modal-card .status-filter-btn.active {
  background: rgba(158, 124, 56, 0.12);
  color: #9b7c38;
  border-color: #9b7c38;
}
html[data-theme="light"] .bills-modal-card .btn-export-csv {
  background: #f7f5ef;
  border-color: #ded8cb;
  color: #7d5e1b;
}
html[data-theme="light"] .bills-modal-card .bills-table th {
  background: #f2efe8;
  color: #334155;
  border-bottom-color: rgba(180, 140, 80, 0.25);
}
html[data-theme="light"] .bills-modal-card .bills-table td {
  color: #0f172a;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .bills-modal-card .cell-mono-gold {
  color: #9b7c38;
}
html[data-theme="light"] .bills-modal-card .pagination-bar {
  border-top-color: rgba(180, 140, 80, 0.2);
}
html[data-theme="light"] .bills-modal-card .page-btn {
  background: #f7f5ef;
  border-color: #ded8cb;
  color: #475569;
}
html[data-theme="light"] .bills-modal-card .page-btn.active {
  background: #9b7c38;
  color: #ffffff;
  border-color: #9b7c38;
}

