/* ============================================
   DEFI PRO V4 — UI Components (Light v2)
   白底灰卡版
   ============================================ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.card {
  background: var(--grad-card);
  border: 0;
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--sh-card);
}

.card--elevated {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.card--brand {
  border-color: var(--border-brand);
  background: var(--bg-surface);
}

.card--gold {
  border-color: var(--border-brand);
  background: var(--bg-surface);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.card__title {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.15px;
  color: var(--text-fg);
}

.card__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.card + .card {
  margin-top: var(--section-gap);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  border: 0;
  border-radius: var(--r-lg);
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast),
              box-shadow var(--dur-fast), transform var(--dur-fast), filter var(--dur-fast);
}
.btn:active { transform: scale(.98); filter: brightness(.94); }

/* Primary / Gold:每屏最多 1 个 */
.btn--primary,
.btn--gold {
  background: var(--gold-button);
  color: var(--text-inv);
  box-shadow: var(--sh-gold);
}
.btn--primary:hover, .btn--gold:hover   { background: var(--gold-button-hover); }
.btn--primary:active, .btn--gold:active { background: var(--gold-button-active); }

/* Accent:深底金字,列表里重复出现的操作 / MAX */
.btn--accent,
.btn--soft { background: var(--surface-2); color: var(--gold); }
.btn--accent:hover, .btn--soft:hover { background: var(--surface-3); }

/* Secondary */
.btn--secondary,
.btn--outline { background: var(--surface-2); color: var(--text-1); }
.btn--secondary:hover, .btn--outline:hover { background: var(--surface-3); }

/* Danger */
.btn--danger { background: var(--red-bg); color: var(--red); }

/* Ghost */
.btn--ghost { background: transparent; color: var(--gold); min-height: 36px; border-radius: var(--r-sm); }
.btn--ghost:hover { background: var(--gold-bg); }

/* Disabled:不保留金色。放在变体之后,靠 (0,2,0) 的权重胜出 */
.btn:disabled,
.btn[disabled],
.btn.is-disabled {
  background: var(--surface-2);
  color: var(--text-3);
  box-shadow: none;
  filter: none;
  opacity: 1;
  pointer-events: none;
}

/* 尺寸 */
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn--lg { min-height: 56px; padding: 0 24px; font-size: 16px; border-radius: var(--r-lg); }
.btn--block { display: flex; width: 100%; }
.btn--primary.btn--block,
.btn--gold.btn--block { min-height: 56px; font-size: 16px; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  line-height: 1.4;
}

.badge--brand  { background: var(--brand-dim);  color: var(--brand); }
.badge--red    { background: var(--red-dim);     color: var(--red); }
.badge--amber  { background: var(--amber-dim);   color: var(--amber); }
.badge--purple { background: var(--purple-dim);  color: var(--purple); }
.badge--blue   { background: var(--blue-dim);    color: var(--blue); }
.badge--gold   { background: var(--gold-dim);    color: var(--gold-text); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   INPUT / FORM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-1);
  background: var(--surface-2);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: none;
  transition: box-shadow var(--dur-fast);
}
.input:focus { box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--gold-ring); }
.input::placeholder { color: var(--text-3); opacity: 1; }
.input--error,
.input--error:focus { box-shadow: 0 0 0 1px var(--red); }

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: var(--sp-1);
}

.form-group {
  margin-bottom: var(--sp-4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODAL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: var(--z-modal-mask);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
  pointer-events: none;
}

.modal-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background: var(--bg-surface);
border-top: 0;
box-shadow: var(--sh-sheet);
  border-top-left-radius: var(--r-2xl);
  border-top-right-radius: var(--r-2xl);
  padding: var(--sp-5) var(--page-px) calc(var(--sp-6) + var(--safe-b));
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.modal-mask.show + .modal-sheet,
.modal-sheet.show {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--text-dim);
  border-radius: var(--r-full);
  margin: 0 auto var(--sp-4);
  opacity: 0.4;
}

.modal-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-fg);
  margin-bottom: var(--sp-4);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  color: var(--text-dim);
  transition: background var(--dur-fast);
}

.modal-close:hover {
  background: var(--bg-inset);
  color: var(--text-fg);
}

/* ── Modal 居中 ── */
.modal-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: var(--z-modal);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  width: calc(100% - var(--sp-8));
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
  pointer-events: none;
}

.modal-center.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOAST
   保留针对 ui.js 内联样式的必要覆盖
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#toast-root {
  position: fixed;
  top: calc(var(--safe-t) + var(--sp-3));
  left: var(--page-px);
  right: var(--page-px);

  z-index: var(--z-toast);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);

  pointer-events: none;
}

.toast {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-md);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  color: var(--text-1) !important;
  background: var(--surface-2) !important;
  border: 0 !important;
  box-shadow: var(--shadow-lg) !important;

  pointer-events: auto;
  animation: toast-in var(--dur-normal) var(--ease-out) forwards;

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: min(340px, 100%);
  text-align: left;
  overflow-wrap: anywhere;
}
/* 成功/错误/警告改由 theme.css 里的圆点颜色表达,文字不再整条变色 */

.toast.fade-out {
  animation:
    toast-out var(--dur-normal) var(--ease-out) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOADING
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-3);
}

#loading-overlay.show {
  display: flex;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading-overlay .loading-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMPTY STATE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 112px;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
}

.empty-state__icon {
  width: 40px;
  height: 40px;

  border-radius: var(--r-md);
  background: var(--bg-inset);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: var(--sp-3);
}

.empty-state__icon svg {
  width: 22px;
  height: 22px;
  color: var(--text-dim);
}

.empty-state__title {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}

.empty-state__desc {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  max-width: 240px;
  line-height: 1.7;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROGRESS BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .07);
  border-radius: 3px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: var(--grad-gold);
  border-radius: 3px;
  transition: width var(--dur-slow) var(--ease-out);
  min-width: 0;
}

.progress--amber .progress__fill { background: var(--amber); }
.progress--red   .progress__fill { background: var(--red); }
.progress--gold .progress__fill {background: var(--gold-button);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   DIVIDER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-4) 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   STAT GRID
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.stat-box {
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  text-align: center;
}

.stat-box__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;

  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.3px;

  color: var(--text-fg);
  line-height: 1.2;
}

.stat-box__label {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: 2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIST ITEM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item__icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.list-item__body {
  flex: 1;
  min-width: 0;
}

.list-item__title {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-fg);
}

.list-item__desc {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: 1px;
}

.list-item__right {
  text-align: right;
  flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALERT / TIP BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

.alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert--info    { background: var(--blue-dim);   color: var(--blue); }
.alert--success {background: var(--success-dim);color: var(--success);}
.alert--warning { background: var(--amber-dim);  color: var(--amber); }
.alert--danger  { background: var(--red-dim);    color: var(--red); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   QUICK ACTION ROW
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: background var(--dur-fast);
}

.action-btn:active {
  background: var(--bg-inset);
}

.action-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--brand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn__icon svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.action-btn span {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUB TAB
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sub-tabs {
  display: flex;
  gap: var(--sp-1);
  height: 48px;
  padding: 4px;
  margin-bottom: var(--sp-4);
  background: var(--surface-1);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: none;
}

.sub-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur-normal) var(--ease), color var(--dur-normal) var(--ease);
}

.sub-tab.active {
  background: var(--surface-3);
  color: var(--gold);
  box-shadow: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NOTIFICATION SYSTEM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── 全站统一铃铛按钮 ── */
.notif-bell-btn {
  position: relative;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  padding: 0 !important;
  margin: 0;
  border-radius: var(--r-pill) !important;
  background: rgba(255, 255, 255, .06) !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-1) !important;
  cursor: pointer;
  transition: transform var(--dur-fast), background var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}

.notif-bell-btn > i {
  font-size: 19px !important;
  line-height: 1;
}

.notif-bell-btn > svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.notif-bell-btn:active {
  transform: scale(0.97);
}

.notif-bell-btn:focus-visible {
  outline: 2px solid var(--brand-hover);
  outline-offset: 3px;
}

/* ── 铃铛红点 ── */
.notif-bell-badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  background: var(--gold);
  color: transparent;
  font-size: 0;
  line-height: 0;
  border-radius: var(--r-pill);
  display: flex;
  box-shadow: 0 0 0 2px var(--bg);
  animation: notif-badge-pop 0.3s var(--ease-spring);
}

@keyframes notif-badge-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ── 置顶公告横幅 ── */
.notif-pinned-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);

  padding: 10px 14px;
  margin-bottom: var(--sp-2);

  border-radius: var(--r-md);
  background: var(--brand-dim);
  border: 1px solid var(--border-brand);

  cursor: pointer;

  transition:
    background var(--dur-fast);
}

.notif-pinned-banner:active {
  background: var(--brand-glow);
}



/* ── 通知中心页 ── */
.notif-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 16px;
}

.notif-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}
.notif-back-btn:active { color: var(--text-fg); }

.notif-mark-all {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--brand-dim);
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.notif-mark-all:active { opacity: 0.7; }


/* ── 筛选 Tab ── */
.notif-filter-bar {
  display: flex;
  gap: var(--sp-1);
  height: 48px;
  padding: 4px;
  margin-bottom: 12px;
  background: var(--surface-1);
  border-radius: var(--r-lg);
}
.notif-filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur-normal) var(--ease), color var(--dur-normal) var(--ease);
}
.notif-filter-btn.active {
  background: var(--surface-3);
  color: var(--gold);
  box-shadow: none;
}

/* ── 通知列表项 ── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:active {
  background: rgba(163, 173, 194, 0.04);
}

.notif-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-icon-finance,
.notif-icon-staking,
.notif-icon-mining,
.notif-icon-ieo,
.notif-icon-trial,
.notif-icon-system { background: var(--surface-2); color: var(--text-2); }

.notif-item-body {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-fg);
  line-height: 22px;

  display: flex;
  align-items: baseline;
  gap: 8px;

  overflow-wrap: anywhere;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.notif-item-msg {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 22px;
  overflow-wrap: anywhere;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-time {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 18px;
  margin-top: 8px;
}

.notif-item-amount {
  font-size: var(--fs-sm);
  font-weight: 600;
font-variant-numeric: tabular-nums;
  color: var(--success);
  flex-shrink: 0;
  align-self: center;
  font-family: var(--font-mono);
}

/* ── 日期分组 ── */
.notif-date-group {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 0 4px;
}

/* ── 公告卡片 ── */
.notice-card {
  padding: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--grad-card);
  border: 0;
  box-shadow: var(--sh-card);
  margin-bottom: var(--gap-card);
}

/* 置顶 = 活动提示:2px 金色左边线 */
.notice-card.pinned {
  box-shadow: var(--sh-card), inset 2px 0 0 var(--gold);
}

/* ── 空状态 ── */
.notif-empty {
  text-align: center;
  padding: 48px 16px;
}
.notif-empty-icon {
  font-size: 30px;
  color: var(--text-3);
  opacity: 0.7;
  margin-bottom: 8px;
}
.notif-empty-text {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/* ── 分页 ── */
.notif-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
}
.notif-page-btn {
  padding: 6px 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 0;
  cursor: pointer;
}
.notif-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.notif-page-info {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MINING RIG PANEL — Light Theme v1.0
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.stake-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO CARD — Refined Blue
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero-card {
  background: var(--grad-hero);
  border: 0;
  border-radius: var(--r-2xl);
  padding: 22px;
  color: var(--text-1);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--section-gap);
  box-shadow: var(--sh-hero);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}

.hero-card__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;

  color: var(--hero-text);
  margin-bottom: var(--sp-1);
}

.hero-card__amount {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: var(--sp-1);
  text-shadow: none;
}

.hero-card__amount small {
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0;

  color: var(--hero-secondary);
  opacity: 1;

  margin-left: 4px;
}

.hero-card__sub {
  font-size: var(--fs-xs);
  color: var(--hero-muted);
  line-height: 1.6;

  margin-bottom: var(--sp-4);
}

.hero-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-2);
}

.hero-card__stat {
  background: rgba(255, 255, 255, .08);
  border: 0;
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
}

.hero-card__stat-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;

  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-card__stat-label {
  font-size: 11px;
  color: var(--text-on-hero);
  margin-top: 4px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FAQ ACCORDION
   保留原有展开状态、箭头旋转及高度动画
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);

  margin-bottom: 8px;
  overflow: hidden;

  cursor: pointer;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;

  -webkit-tap-highlight-color: transparent;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:active {
  background: var(--bg-elevated);
}

.faq-item.open {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
  padding: 14px 16px;
}

.faq-q span {
  font-size: 13px;
  font-weight: 600;

  color: var(--text-fg);
  line-height: 1.5;
}

.faq-arrow {
  font-size: 18px;
  color: var(--text-dim);

  flex-shrink: 0;

  transition:
    transform 0.25s var(--ease-out);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-a {
  max-height: 0;
  overflow: hidden;

  transition:
    max-height 0.3s var(--ease-out);
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.faq-a-inner {
  padding: 0 16px 14px;
  padding-top: 12px;

  font-size: 13px;
  font-weight: 400;

  color: var(--text-muted);
  line-height: 1.7;

  border-top: 1px solid var(--border-light);
  margin-top: 0;
}


/* ═══ 临时保险丝(第二批完成后删除)═══ */

/* 去描边 */
.faq-item, .action-btn, .modal-center,
.stat-box { border: 0; }



/* ── 首页通知栏:极简 ── */
.notif-activity-banner{
  display:flex;align-items:center;gap:10px;
  height:44px;padding:0 14px;margin-bottom:var(--section-gap);
  border:0;border-radius:var(--r-md);
  background:var(--surface-1);
  box-shadow:inset 0 0 0 1px var(--line);
  cursor:pointer;transition:background var(--dur-fast);
}
.notif-activity-banner:active{background:var(--surface-2)}
.notif-activity-dot{display:block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--gold)}
.notif-activity-banner.is-idle .notif-activity-dot{background:var(--text-3)}
.notif-activity-text{flex:1;min-width:0;font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notif-activity-banner.banner-pinned .notif-activity-text{color:var(--text-1)}
.notif-activity-banner::after{
  content:"";flex-shrink:0;width:6px;height:6px;margin-right:2px;
  border-top:1.5px solid var(--text-3);border-right:1.5px solid var(--text-3);
  transform:rotate(45deg);
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOME STATS — zero-value dim
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hs.is-dim .hs-v,
.hs.is-dim .hs-u {
  color: var(--text-3) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   SNACKBAR — 底部消息条
   ━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.snackbar {
  position: fixed;
  bottom: calc(var(--nav-h, 60px) + env(safe-area-inset-bottom, 0px) + 12px);
  left: var(--page-px, 16px);
  right: var(--page-px, 16px);
  z-index: 8000;

  background: var(--surface-2);
  border: 1px solid var(--line, rgba(255,255,255,.06));
  border-radius: var(--r-lg);
  padding: 14px 16px 12px;

  box-shadow: 0 -2px 20px rgba(0, 0, 0, .15),
              0 4px 32px rgba(0, 0, 0, .10);

  transform: translateY(calc(100% + 80px));
  opacity: 0;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1),
              opacity   .38s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.snackbar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.snackbar.snackbar--exit {
  transform: translateY(calc(100% + 80px));
  opacity: 0;
  pointer-events: none;
  transition-duration: .3s;
}

/* ── 顶部行 ── */
.snackbar__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.snackbar__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm, 8px);
  background: var(--gold-bg, rgba(212, 175, 55, .10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 17px;
}

.snackbar__text {
  flex: 1;
  min-width: 0;
}

.snackbar__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}

.snackbar__desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 2px;
}

.snackbar__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full, 50%);
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  background: transparent;
  margin: -2px -4px 0 0;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}

.snackbar__close:active {
  background: var(--surface-3);
  color: var(--text-1);
}

/* ── 进度条 ── */
.snackbar__bar {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-3, rgba(255,255,255,.06));
  margin-top: 12px;
  overflow: hidden;
}

.snackbar__fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--gold);
  will-change: width;
}

/* ── Rig Card: Standby 未激活文字压暗 ── */
.rig-card:not(.is-on) .rig-name,
.rig-card:not(.is-on) .rig-v,
.rig-card:not(.is-on) .rig-foot > span:last-child {
  color: var(--text-3);
  transition: color .3s ease;
}

/* Running 激活后恢复亮色 */
.rig-card.is-on .rig-name,
.rig-card.is-on .rig-v,
.rig-card.is-on .rig-foot > span:last-child {
  color: var(--text-1);
}