/**
 * Mineral Vault (Daylight) — AGG/GND 用户端
 * 明亮冷灰底 + 玉石绿 / 铜金；告别过暗炭黑
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Sora:wght@400;500;600;700&display=swap');

body.theme-mineral {
  --bg-base: #e8edf2;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f7fa;
  --bg-input: #f3f6f9;
  --bg-elevated: #ffffff;

  --border: rgba(28, 36, 46, 0.1);
  --border-light: rgba(28, 36, 46, 0.16);
  --border-glow-cyan: rgba(15, 140, 128, 0.35);
  --border-glow-magenta: rgba(176, 132, 64, 0.3);

  --text-primary: #1c242e;
  --text-secondary: #5a6573;
  --text-muted: #8b95a3;
  --text-inverse: #ffffff;

  --accent: #0f8c80;
  --accent-light: #14a896;
  --accent-dark: #0b6e65;
  --accent-glow: rgba(15, 140, 128, 0.12);

  --accent2: #b08440;
  --accent2-dark: #8f6a30;
  --accent2-glow: rgba(176, 132, 64, 0.14);

  --accent3: #b08440;
  --accent3-glow: rgba(176, 132, 64, 0.12);

  --danger: #d94848;
  --danger-bg: rgba(217, 72, 72, 0.1);
  --warn: #c48a12;
  --warn-bg: rgba(196, 138, 18, 0.12);
  --success: #0f8c80;
  --success-bg: rgba(15, 140, 128, 0.1);

  --gradient-hero: linear-gradient(155deg, #ffffff 0%, #eef5f3 45%, #e8edf2 100%);
  --gradient-card: #ffffff;
  --gradient-accent: linear-gradient(135deg, #14a896 0%, #0f8c80 100%);
  --gradient-magenta: linear-gradient(135deg, #b08440 0%, #8f6a30 100%);
  --gradient-cyan: linear-gradient(135deg, #14a896 0%, #0b6e65 100%);
  --gradient-glow: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(15, 140, 128, 0.14) 0%, transparent 60%);
  --gradient-scan: none;

  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Sora", ui-monospace, monospace;
  --font-display: "Sora", "Noto Sans SC", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 2px rgba(28, 36, 46, 0.04), 0 8px 20px rgba(28, 36, 46, 0.06);
  --shadow-card-hover: 0 4px 10px rgba(28, 36, 46, 0.06), 0 14px 28px rgba(28, 36, 46, 0.08);
  --shadow-btn: 0 4px 14px rgba(15, 140, 128, 0.28);
  --shadow-btn-hover: 0 6px 18px rgba(15, 140, 128, 0.36);
  --shadow-glow: none;
  --shadow-glow-magenta: none;
  --shadow-glow-cyan: none;

  --nav-height: 60px;
  --bottom-nav-height: 64px;
  --sidebar-width: 248px;
  --content-max: 960px;

  --transition: 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.28s cubic-bezier(0.22, 1, 0.36, 1);

  background:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(15, 140, 128, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(176, 132, 64, 0.1) 0%, transparent 48%),
    linear-gradient(180deg, #eef2f6 0%, #e8edf2 100%);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.theme-mineral::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.theme-mineral .app-layout,
body.theme-mineral .main-content {
  position: relative;
  z-index: 1;
}

/* —— Kill neon leftovers —— */
body.theme-mineral .sidebar-brand::after,
body.theme-mineral .sidebar-footer::before,
body.theme-mineral .nav-item::before,
body.theme-mineral .user-card::before,
body.theme-mineral .hero-card::before,
body.theme-mineral .hero-card::after,
body.theme-mineral .section-card::before,
body.theme-mineral .action-item::before,
body.theme-mineral .hero-stat::before {
  display: none !important;
}

body.theme-mineral .sidebar-brand .logo-icon {
  animation: none !important;
  box-shadow: none !important;
  background: var(--gradient-accent);
}

body.theme-mineral .nav-item.active svg,
body.theme-mineral .nav-item:hover svg {
  filter: none !important;
}

body.theme-mineral .nav-section-label {
  text-shadow: none !important;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
}

body.theme-mineral .nav-item {
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}
body.theme-mineral .nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: transparent;
}
body.theme-mineral .nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-dark);
  text-shadow: none;
  border-color: transparent;
  font-weight: 600;
}

body.theme-mineral .sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(28, 36, 46, 0.04);
}
@media (max-width: 767.98px) {
  body.theme-mineral.sidebar-open .sidebar-overlay.show {
    left: min(100vw - 28px, 360px);
  }
}

/* Mobile: no side drawer — 个人中心走整页 */
@media (max-width: 767.98px) {
  body.theme-mineral .sidebar,
  body.theme-mineral .sidebar-overlay,
  body.theme-mineral .menu-toggle {
    display: none !important;
  }
  body.theme-mineral .sidebar-open .sidebar-overlay.show {
    display: none !important;
  }
}

/* Legacy drawer styles kept for reference; unused on mobile */
@media (max-width: 767.98px) {
  body.theme-mineral .sidebar.is-legacy-drawer {
    width: min(100vw - 28px, 360px) !important;
    max-width: 360px;
    box-sizing: border-box;
    overflow-x: hidden;
    background:
      linear-gradient(180deg, #f7fafb 0%, #ffffff 28%),
      #ffffff;
    box-shadow: 8px 0 32px rgba(28, 36, 46, 0.12);
  }
  body.theme-mineral .sidebar-brand {
    padding: 14px 14px 10px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
  }
  body.theme-mineral .sidebar-brand h1 {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: -0.02em;
  }
  body.theme-mineral .sidebar-brand p { display: none; }
  body.theme-mineral .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 12px 16px;
    overflow: visible;
    align-content: start;
  }
  body.theme-mineral .nav-section,
  body.theme-mineral .nav-section-items,
  body.theme-mineral #adminNavEntry {
    display: contents !important;
  }
  body.theme-mineral .nav-section-label,
  body.theme-mineral .nav-section-head,
  body.theme-mineral .nav-section-toggle { display: none !important; }
  body.theme-mineral .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 12px 6px 10px;
    border-radius: 14px;
    background: #f4f8f7;
    border: 1px solid rgba(18, 72, 66, 0.08) !important;
    box-shadow: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
  }
  body.theme-mineral .nav-item.sub { padding-left: 6px; }
  body.theme-mineral .nav-item span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  body.theme-mineral .nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    padding: 10px;
    box-sizing: content-box;
    border: none;
    border-radius: 14px;
    background: #fff;
    color: var(--accent-dark);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(18, 72, 66, 0.06);
  }
  body.theme-mineral .nav-item:hover {
    background: #eaf6f3;
    color: var(--accent-dark);
  }
  body.theme-mineral .nav-item.active {
    background: #e4f4f0;
    color: var(--accent-dark);
    font-weight: 700;
    border-color: rgba(15, 138, 125, 0.28) !important;
    box-shadow: none;
  }
  body.theme-mineral .nav-item.active svg {
    background: #0f8a7d;
    border: none;
    color: #fff;
  }
  body.theme-mineral .sidebar-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
  }
  body.theme-mineral .sidebar-footer .user-card {
    padding: 8px 10px;
    border-radius: 12px;
    background: #f3f7f8;
  }
  body.theme-mineral .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

body.theme-mineral .sidebar-brand {
  border-bottom-color: var(--border);
}
body.theme-mineral .sidebar-footer {
  border-top-color: var(--border);
}
body.theme-mineral .user-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
}

body.theme-mineral .user-avatar {
  box-shadow: none;
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-display);
}

body.theme-mineral .user-addr {
  color: var(--accent);
}

/* —— Header —— */
body.theme-mineral .app-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.theme-mineral .header-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-shadow: none !important;
}
body.theme-mineral .menu-toggle,
body.theme-mineral .icon-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: none !important;
}
body.theme-mineral .menu-toggle:hover,
body.theme-mineral .icon-btn:hover {
  background: #fff;
  color: var(--accent);
  border-color: rgba(15, 140, 128, 0.35);
  box-shadow: none !important;
}

/* —— Bottom nav —— */
body.theme-mineral .bottom-nav {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300 !important;
  width: 100%;
  max-width: 100vw;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(28, 36, 46, 0.08);
  opacity: 1 !important;
  transform: none !important;
  visibility: visible;
  pointer-events: auto;
}
@media (max-width: 767px) {
  body.theme-mineral:not(.auth-mode) .bottom-nav:not(.is-hidden) {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 300 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
  }
  body.theme-mineral:not(.auth-mode) .main-content {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }
  body.theme-mineral .home-deck {
    gap: 10px;
    padding-bottom: 4px;
  }
  body.theme-mineral .home-banner {
    aspect-ratio: 2.15 / 1;
    border-radius: 14px;
  }
  body.theme-mineral .home-article-cover {
    aspect-ratio: 2 / 1;
    max-height: 42vw;
  }
  body.theme-mineral .me-hero-amount {
    font-size: clamp(16px, 5.2vw, 22px);
  }
  body.theme-mineral .page-content {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 8px;
  }
}
@media (max-width: 767px) and (max-height: 740px) {
  body.theme-mineral .home-banner {
    aspect-ratio: 2.4 / 1;
  }
  body.theme-mineral .home-article-cover {
    aspect-ratio: 2.2 / 1;
    max-height: 36vw;
  }
  body.theme-mineral .home-articles-hd {
    margin-bottom: 8px;
  }
  body.theme-mineral .me-menu-item {
    padding: 13px 14px;
  }
}
body.theme-mineral .main-content {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px) !important;
}
body.theme-mineral.auth-mode .main-content {
  padding-bottom: 0 !important;
}
body.theme-mineral.auth-mode .bottom-nav {
  display: none !important;
}
body.theme-mineral .bottom-nav-item {
  color: var(--text-muted);
}
body.theme-mineral .bottom-nav-item.active {
  color: var(--accent);
  text-shadow: none;
}
body.theme-mineral .bottom-nav-item.active::before {
  background: var(--accent);
  box-shadow: none;
  width: 28px;
}
body.theme-mineral .bottom-nav-item.active svg {
  filter: none;
  transform: none;
}

/* —— Buttons —— */
body.theme-mineral .btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-btn);
  font-weight: 600;
}
body.theme-mineral .btn-primary:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-btn-hover);
}
body.theme-mineral .btn-secondary,
body.theme-mineral .btn-outline {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: none;
}
body.theme-mineral .btn-danger {
  background: var(--danger);
  border: none;
  box-shadow: none;
  color: #fff;
}

/* —— Forms —— */
body.theme-mineral .form-input,
body.theme-mineral input.form-input,
body.theme-mineral select.form-input,
body.theme-mineral textarea.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: none;
}
body.theme-mineral .form-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* —— Cards —— */
body.theme-mineral .section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: none;
}
body.theme-mineral .section-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-light);
}

/* —— Auth —— */
body.theme-mineral.auth-mode {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(214, 177, 92, 0.18), transparent 55%),
    linear-gradient(165deg, #0d2a30 0%, #0f8a7d 48%, #0a5f58 100%) !important;
}
body.theme-mineral.auth-mode,
body.theme-mineral .auth-page {
  background: transparent;
}
body.theme-mineral .auth-page {
  min-height: 100dvh;
  display: block;
  padding: 0;
}
body.theme-mineral .auth-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  max-width: 400px;
}
body.theme-mineral .auth-logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
body.theme-mineral .auth-logo-sub {
  color: var(--text-muted);
  font-size: 12px;
}
body.theme-mineral .auth-logo-icon {
  background: var(--gradient-accent);
  box-shadow: none;
}
body.theme-mineral .wallet-connect-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
body.theme-mineral .wallet-connect-sub,
body.theme-mineral .wallet-selector-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* —— Wallet hero —— */
body.theme-mineral .mv-wallet {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.theme-mineral .mv-hero {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(15, 140, 128, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(176, 132, 64, 0.1) 0%, transparent 50%),
    #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

body.theme-mineral .mv-hero-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
body.theme-mineral .mv-brand {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
body.theme-mineral .mv-greet {
  font-size: 13px;
  color: var(--text-secondary);
}
body.theme-mineral .mv-hero-user {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text-primary);
  text-shadow: none !important;
}
body.theme-mineral .mv-hero .hero-sub {
  display: none;
}

body.theme-mineral .mv-focus {
  margin: 10px 0 14px;
}
body.theme-mineral .mv-focus-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
body.theme-mineral .mv-focus-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent2);
  line-height: 1.1;
  word-break: break-all;
}
body.theme-mineral .mv-focus-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

body.theme-mineral .mv-assets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.theme-mineral .mv-asset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: #f3f7f9;
  border: 1px solid var(--border);
  min-width: 0;
  box-shadow: none !important;
}
body.theme-mineral .mv-asset.is-primary {
  border-color: rgba(176, 132, 64, 0.45);
  background: #fbf6ec;
}
body.theme-mineral .mv-asset-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
body.theme-mineral .mv-asset-icon.usdt { background: rgba(15, 140, 128, 0.14); }
body.theme-mineral .mv-asset-icon.agg { background: rgba(15, 140, 128, 0.18); }
body.theme-mineral .mv-asset-icon.gnd { background: rgba(176, 132, 64, 0.2); }
body.theme-mineral .mv-asset .asset-symbol {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}
body.theme-mineral .mv-asset .asset-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: none !important;
}
body.theme-mineral .mv-asset.is-primary .asset-value {
  color: var(--accent2-dark);
}

body.theme-mineral .mv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 420px) {
  body.theme-mineral .mv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.theme-mineral .mv-stat {
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-align: center;
  min-width: 0;
}
body.theme-mineral .mv-stat-ico {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--accent);
}
body.theme-mineral .mv-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.25;
}
body.theme-mineral .mv-stat-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  text-shadow: none !important;
}
body.theme-mineral .mv-stat-value.accent { color: var(--accent); }
body.theme-mineral .mv-stat-value.warn { color: var(--accent2-dark); }

/* —— Visual action tiles —— */
body.theme-mineral .mv-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 480px) {
  body.theme-mineral .mv-tiles.action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.theme-mineral .mv-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 118px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: #fff;
  cursor: pointer;
  overflow: hidden;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
body.theme-mineral .mv-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(255, 255, 255, 0.55) 100%);
  pointer-events: none;
}
body.theme-mineral .mv-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 140, 128, 0.4);
  box-shadow: var(--shadow-card-hover);
}
body.theme-mineral .mv-tile-art {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 68px;
  height: 68px;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(28, 36, 46, 0.08));
}
body.theme-mineral .mv-tile-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
body.theme-mineral .mv-tile.action-item {
  align-items: stretch;
  gap: 0;
  padding: 14px;
  background-image: none;
  text-decoration: none;
}
body.theme-mineral .mv-tile.action-item:hover {
  color: var(--text-primary);
}
body.theme-mineral .mv-tile.tile-stake { background: linear-gradient(145deg, #dff3ef 0%, #ffffff 68%); }
body.theme-mineral .mv-tile.tile-card { background: linear-gradient(145deg, #f7efdf 0%, #ffffff 68%); }
body.theme-mineral .mv-tile.tile-log { background: linear-gradient(145deg, #e4eef8 0%, #ffffff 68%); }
body.theme-mineral .mv-tile.tile-fund { background: linear-gradient(145deg, #e2f2ee 0%, #ffffff 68%); }

body.theme-mineral .mv-wallet .hero-section,
body.theme-mineral .mv-wallet .hero-card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

body.theme-mineral .mv-log-card .section-title {
  font-family: var(--font-display);
  font-weight: 600;
}

body.theme-mineral .mv-move-list { display: flex; flex-direction: column; }
body.theme-mineral .mv-move-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
body.theme-mineral .mv-move-row:last-child { border-bottom: none; }
body.theme-mineral .mv-move-dot { display: none; }
body.theme-mineral .mv-move-ico {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  object-fit: cover;
}
body.theme-mineral .mv-move-list-full .mv-move-ico { width: 40px; height: 40px; }
body.theme-mineral .mv-move-main { flex: 1; min-width: 0; }
body.theme-mineral .mv-move-type {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
body.theme-mineral .mv-move-meta {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
}
body.theme-mineral .mv-cur-ico {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
}
body.theme-mineral .mv-move-remark {
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
  line-height: 1.35; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body.theme-mineral .mv-move-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0;
}
body.theme-mineral .mv-move-amt {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
body.theme-mineral .mv-move-bal {
  font-size: 10px; color: var(--text-muted);
}

body.theme-mineral .empty-state svg {
  filter: none !important;
  opacity: 0.45;
  color: var(--accent);
}

body.theme-mineral .sub-tabs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
body.theme-mineral .sub-tab {
  color: var(--text-secondary);
}
body.theme-mineral .sub-tab.active {
  background: var(--accent-glow);
  color: var(--accent-dark);
  font-weight: 600;
}
body.theme-mineral .stake-perf-item,
body.theme-mineral .stake-balance-row {
  background: #f3f8f7;
  border-color: var(--border);
}
body.theme-mineral ::selection {
  background: rgba(15, 140, 128, 0.22);
  color: var(--text-primary);
}
body.theme-mineral ::-webkit-scrollbar-thumb {
  background: #c5ced8;
}
body.theme-mineral ::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: none;
}
body.theme-mineral ::-webkit-scrollbar-track {
  background: #e8edf2;
}

body.theme-mineral .plan-card {
  box-shadow: var(--shadow-card);
  background: #fff;
  border: 1px solid var(--border);
}
body.theme-mineral .plan-card::before { display: none !important; }
body.theme-mineral .plan-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #f0faf8;
}
body.theme-mineral .plan-card.selected .plan-rate {
  text-shadow: none;
  color: var(--accent-dark);
  font-family: var(--font-display);
}
body.theme-mineral .badge-info {
  background: var(--accent-glow);
  color: var(--accent-dark);
  border: 1px solid rgba(15, 140, 128, 0.22);
}
body.theme-mineral .amount-in { color: var(--success); }
body.theme-mineral .amount-out { color: var(--danger); }

body.theme-mineral .hero-user,
body.theme-mineral .hero-stat-value,
body.theme-mineral .hero-stat-value.accent,
body.theme-mineral .hero-stat-value.warn,
body.theme-mineral .hero-stat-value.danger,
body.theme-mineral .asset-item.primary .asset-value,
body.theme-mineral .section-action:hover,
body.theme-mineral .plan-rate {
  text-shadow: none !important;
}
body.theme-mineral .asset-item,
body.theme-mineral .asset-item.primary,
body.theme-mineral .asset-icon {
  box-shadow: none !important;
}
body.theme-mineral .asset-item {
  background: #f3f7f9;
  border-color: var(--border);
}
body.theme-mineral .asset-item.primary {
  background: #fbf6ec;
  border-color: rgba(176, 132, 64, 0.45);
}
body.theme-mineral .main-content {
  background: transparent;
}
body.theme-mineral .page-content {
  max-width: var(--content-max);
}
body.theme-mineral .data-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-bottom-color: var(--border);
  background: #f7f9fb;
}
body.theme-mineral .data-table td {
  border-bottom-color: var(--border);
  color: var(--text-primary);
}
body.theme-mineral .card-my-tab.active,
body.theme-mineral .withdraw-currency-btn.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-glow);
  box-shadow: none;
}
body.theme-mineral .swap-panel-wrap,
body.theme-mineral .wallet-status-card {
  border-color: var(--border);
  background: #fff;
  box-shadow: var(--shadow-card);
}
body.theme-mineral .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
body.theme-mineral .section-action {
  color: var(--accent);
}
body.theme-mineral .form-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}
body.theme-mineral .form-hint {
  color: var(--text-muted);
  font-size: 11px;
}
body.theme-mineral .site-notice {
  border-color: rgba(196, 138, 18, 0.35);
  background: #fff8e8;
  color: var(--text-primary);
}

/* Light SVG tiles: soft pastel plate instead of dark fill */
body.theme-mineral .mv-tile-art {
  border-radius: 14px;
}

@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-mineral *,
  body.theme-mineral *::before,
  body.theme-mineral *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}



/* =========================================================
   LAYOUT V2 — 结构重做（非换色）
   桌面顶栏导航 · 首页非对称金库 · 质押横滑档位 · 登录分栏
   ========================================================= */

/* —— App shell: column + top nav on desktop —— */
body.theme-mineral .app-layout {
  flex-direction: column;
  min-height: 100dvh;
}

@media (min-width: 768px) {
  body.theme-mineral .sidebar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 64px;
    transform: none !important;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-right: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(28, 36, 46, 0.05);
    z-index: 300;
    overflow: visible;
  }
  body.theme-mineral .sidebar-brand {
    padding: 10px 0;
    border-bottom: none;
    flex-shrink: 0;
  }
  body.theme-mineral .sidebar-close-btn { display: none !important; }
  body.theme-mineral .sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 0;
    min-height: unset;
  }
  body.theme-mineral .sidebar-nav::-webkit-scrollbar { display: none; }
  body.theme-mineral .nav-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin: 0;
    flex-shrink: 0;
  }
  body.theme-mineral .nav-section-label,
  body.theme-mineral .nav-section-head,
  body.theme-mineral .nav-section-toggle {
    display: none !important;
  }
  body.theme-mineral .nav-section-items {
    display: flex !important;
    flex-direction: row;
    gap: 4px;
  }
  body.theme-mineral .nav-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
    border: none !important;
    box-shadow: none;
    background: transparent;
  }
  body.theme-mineral .nav-item svg {
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    color: inherit;
  }
  body.theme-mineral .nav-item.active {
    background: var(--text-primary);
    color: #fff;
    box-shadow: none;
  }
  body.theme-mineral .nav-item.active svg {
    background: transparent;
    border: none;
    color: #fff;
  }
  body.theme-mineral .sidebar-footer {
    border-top: none;
    padding: 8px 0;
    flex-shrink: 0;
  }
  body.theme-mineral .user-card {
    padding: 6px 10px;
    min-width: 160px;
  }
  body.theme-mineral .main-content {
    padding-left: 0 !important;
    padding-bottom: 28px;
  }
  body.theme-mineral .app-header {
    display: none; /* 顶栏已有导航，省掉重复标题栏 */
  }
  body.theme-mineral .page-content {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
  }
  body.theme-mineral .bottom-nav {
    display: none !important;
  }
}

/* —— Auth stage: 全屏沉浸登录 —— */
@keyframes authFxIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes authGlowA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(30px,-24px,0) scale(1.15); opacity: 0.85; }
}
@keyframes authGlowB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-40px,20px,0) scale(1.2); }
}
@keyframes authGlowC {
  0%, 100% { transform: translate3d(0,0,0); opacity: 0.35; }
  50% { transform: translate3d(16px,28px,0); opacity: 0.6; }
}
@keyframes authRingExpand {
  0% { transform: scale(0.72); opacity: 0.55; }
  70% { opacity: 0.18; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes authBeamSweep {
  0% { transform: translateX(-120%) rotate(12deg); opacity: 0; }
  20% { opacity: 0.35; }
  50% { opacity: 0.15; }
  100% { transform: translateX(140%) rotate(12deg); opacity: 0; }
}
@keyframes authCoinFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: 0.22; }
  50% { transform: translateY(-18px) rotate(8deg); opacity: 0.4; }
}
@keyframes authMarkPulse {
  0%, 100% { opacity: 0.08; transform: translate(-50%, -46%) scale(1); }
  50% { opacity: 0.14; transform: translate(-50%, -48%) scale(1.04); }
}
@keyframes authCtaPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 0 0 0 rgba(255,255,255,0.45); }
  50% { box-shadow: 0 14px 34px rgba(0,0,0,0.22), 0 0 0 10px rgba(255,255,255,0); }
}
@keyframes authCtaShine {
  0% { left: -45%; }
  100% { left: 130%; }
}
@keyframes authBadgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(214,177,92,0); }
  50% { box-shadow: 0 0 18px rgba(214,177,92,0.4); }
}
@keyframes authMetricBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

body.theme-mineral.auth-mode .auth-splash {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  max-width: none;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.theme-mineral .auth-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 80% -10%, rgba(214,177,92,0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(255,255,255,0.1), transparent 50%),
    linear-gradient(160deg, #102f35 0%, #0f8a7d 55%, #0a5c55 100%);
}
body.theme-mineral .auth-stage-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
}
body.theme-mineral .auth-stage-glow-a {
  width: 280px; height: 280px; left: -60px; top: 12%;
  background: rgba(15,140,128,0.55);
  animation: authGlowA 8s ease-in-out infinite;
}
body.theme-mineral .auth-stage-glow-b {
  width: 320px; height: 320px; right: -80px; bottom: 8%;
  background: rgba(214,177,92,0.28);
  animation: authGlowB 10s ease-in-out infinite;
}
body.theme-mineral .auth-stage-glow-c,
body.theme-mineral .auth-stage-ring,
body.theme-mineral .auth-stage-beam,
body.theme-mineral .auth-stage-coin {
  display: none !important;
}
body.theme-mineral .auth-stage-mark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(88px, 30vw, 150px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #fff;
  opacity: 0.07;
  animation: none;
  pointer-events: none;
}

body.theme-mineral .auth-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 8px;
}
body.theme-mineral .auth-topbar-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
}
body.theme-mineral .auth-topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-mineral.auth-mode .auth-topbar .lang-selector,
body.theme-mineral.auth-mode .auth-topbar .lang-btn,
body.theme-mineral.auth-mode .auth-topbar button {
  color: #fff !important;
  border-color: rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.12) !important;
}

body.theme-mineral .auth-hero {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100dvh - 56px);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@keyframes authFxInPlace {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translate(var(--auth-x), calc(var(--auth-y) + 16px));
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(var(--auth-x), var(--auth-y));
  }
}
body.theme-mineral .auth-fx-in {
  animation: authFxIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fx-delay, 0ms);
}
body.theme-mineral .auth-gate-brand {
  display: none !important;
}
body.theme-mineral .auth-gate-badge {
  align-self: center;
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: #16343a;
  background: linear-gradient(135deg, #f2d59a, #d6b15c);
  animation: authBadgeGlow 3s ease-in-out infinite;
}
body.theme-mineral .auth-gate-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 12vw, 56px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
body.theme-mineral .auth-gate-sub {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  opacity: 0.92;
}
body.theme-mineral .auth-gate-lead {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.72);
}
body.theme-mineral .auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
body.theme-mineral .auth-metric {
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  animation: authMetricBob 3.8s ease-in-out infinite;
}
body.theme-mineral .auth-metric:nth-child(2) { animation-delay: 0.4s; }
body.theme-mineral .auth-metric:nth-child(3) { animation-delay: 0.8s; }
body.theme-mineral .auth-metric b {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 2px;
}
body.theme-mineral .auth-metric span {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
@keyframes authWrapRipple {
  0% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.14); opacity: 0; }
}
@keyframes authWrapAura {
  0%, 100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1.04);
  }
}
@keyframes authWrapSheen {
  0% { transform: translateX(-130%) skewX(-16deg); opacity: 0; }
  30% { opacity: 0.28; }
  100% { transform: translateX(160%) skewX(-16deg); opacity: 0; }
}
@keyframes authWrapBreath {
  0%, 100% { transform: translate(var(--auth-x), var(--auth-y)) scale(1); }
  50% { transform: translate(var(--auth-x), var(--auth-y)) scale(1.01); }
}

body.theme-mineral .auth-action-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(400px, calc(100% - 40px));
  z-index: 4;
  --auth-x: -50%;
  --auth-y: -50%;
  transform: translate(var(--auth-x), var(--auth-y));
}
body.theme-mineral .auth-action-wrap.auth-fx-in {
  animation:
    authFxInPlace 0.65s cubic-bezier(0.22, 1, 0.36, 1) both,
    authWrapBreath 4s ease-in-out 0.7s infinite;
  animation-delay: var(--fx-delay, 0ms), calc(var(--fx-delay, 0ms) + 0.7s);
}
body.theme-mineral .auth-wrap-aura,
body.theme-mineral .auth-wrap-ring,
body.theme-mineral .auth-wrap-sheen {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
}
body.theme-mineral .auth-wrap-glow,
body.theme-mineral .auth-wrap-orbit {
  display: none !important;
}
body.theme-mineral .auth-wrap-aura {
  width: 108%;
  height: 116%;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 50%, rgba(15,140,128,0.4), transparent 68%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  animation: authWrapAura 3.8s ease-in-out infinite;
  z-index: 0;
}
body.theme-mineral .auth-wrap-ring {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 0 14px rgba(15,140,128,0.2);
  animation: authWrapRipple 2.8s ease-out infinite;
  z-index: 1;
}
body.theme-mineral .auth-wrap-ring-2 {
  animation-delay: 1.4s;
  border-color: rgba(214,177,92,0.32);
}
body.theme-mineral .auth-wrap-sheen {
  inset: 0;
  left: 0;
  top: 0;
  width: 34%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: authWrapSheen 4.8s ease-in-out 1.2s infinite;
  z-index: 5;
}
body.theme-mineral .auth-action {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  padding: 16px;
  background: rgba(8, 40, 44, 0.5);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.22),
    0 0 28px rgba(15,140,128,0.22),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
/* 覆盖通用 auth-fx-in，避免把居中 transform 冲掉 */
body.theme-mineral .auth-gate-brand.auth-fx-in {
  animation: authFxInPlace 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fx-delay, 0ms);
}

body.theme-mineral .auth-splash .wallet-connect-main { text-align: left; }
body.theme-mineral .auth-splash .wallet-connect-title { display: none !important; }
body.theme-mineral .auth-splash .wallet-connect-sub {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.78);
}
body.theme-mineral .auth-splash #detectedWallets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-mineral .auth-splash .wallet-btn {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}
body.theme-mineral .auth-splash .wallet-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
body.theme-mineral .auth-splash .wallet-btn-icon {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.12);
}
body.theme-mineral .auth-splash .wallet-btn-name { color: #fff; font-weight: 650; }
body.theme-mineral .auth-splash .wallet-btn-arrow { color: rgba(255,255,255,0.7); }
body.theme-mineral .auth-splash .auth-login-cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 750;
  font-family: var(--font);
  color: #0b6f66;
  background: linear-gradient(180deg, #ffffff 0%, #eef7f5 100%);
  cursor: pointer;
  animation: authCtaPulse 2.4s ease-in-out infinite;
  transition: transform 0.18s ease;
}
body.theme-mineral .auth-splash .auth-login-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 36%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-20deg);
  animation: authCtaShine 2.6s ease-in-out infinite;
}
body.theme-mineral .auth-splash .auth-login-cta:hover { transform: translateY(-2px); }
body.theme-mineral .auth-splash .auth-login-cta:active { transform: translateY(1px) scale(0.99); }
body.theme-mineral .auth-splash .auth-login-wallet {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
body.theme-mineral .auth-splash .auth-wallet-more {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
body.theme-mineral .auth-splash .auth-wallet-chip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 650;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
body.theme-mineral .auth-splash .auth-wallet-chip:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
body.theme-mineral .auth-splash .wallet-selector-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.66);
}
body.theme-mineral .auth-splash .wallet-no-wallet {
  padding: 4px 0;
  color: rgba(255,255,255,0.92) !important;
  text-align: center;
}
body.theme-mineral .auth-splash .wallet-no-wallet-title,
body.theme-mineral .auth-splash .wallet-no-wallet-title span {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff !important;
}
body.theme-mineral .auth-splash .wallet-no-wallet-desc {
  font-size: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.78) !important;
  opacity: 1;
}
body.theme-mineral .auth-splash .auth-download-mm {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #eef7f5 100%) !important;
  color: #0b6f66 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  animation: authCtaPulse 2.6s ease-in-out infinite;
}
body.theme-mineral .auth-splash .wallet-status-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}
body.theme-mineral .auth-splash .wallet-status-addr,
body.theme-mineral .auth-splash .wallet-status-type { color: #fff; }
body.theme-mineral .auth-splash .wallet-detect-hint { color: rgba(255,255,255,0.75); }

body.theme-mineral .auth-ambient,
body.theme-mineral .auth-gate,
body.theme-mineral .auth-gate-inner,
body.theme-mineral .auth-splash-brand,
body.theme-mineral .auth-splash .auth-card,
body.theme-mineral .auth-splash .auth-logo {
  /* legacy nodes safe-hide if residual */
}
@media (prefers-reduced-motion: reduce) {
  body.theme-mineral .auth-stage-glow,
  body.theme-mineral .auth-stage-ring,
  body.theme-mineral .auth-stage-beam,
  body.theme-mineral .auth-stage-coin,
  body.theme-mineral .auth-stage-mark,
  body.theme-mineral .auth-fx-in,
  body.theme-mineral .auth-metric,
  body.theme-mineral .auth-gate-badge,
  body.theme-mineral .auth-splash .auth-login-cta,
  body.theme-mineral .auth-splash .auth-login-cta::after,
  body.theme-mineral .auth-splash .auth-download-mm,
  body.theme-mineral .auth-wrap-aura,
  body.theme-mineral .auth-wrap-glow,
  body.theme-mineral .auth-wrap-ring,
  body.theme-mineral .auth-wrap-orbit,
  body.theme-mineral .auth-wrap-sheen,
  body.theme-mineral .auth-action-wrap.auth-fx-in {
    animation: none !important;
  }
}

/* —— HOME DECK —— */
body.theme-mineral .home-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-mineral .home-vault {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
}
body.theme-mineral .home-vault-main {
  position: relative;
  padding: 16px 16px 12px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(176, 132, 64, 0.22), transparent 55%),
    linear-gradient(155deg, #1c242e 0%, #0f8c80 120%);
  color: #fff;
  overflow: hidden;
  min-height: 0;
}
body.theme-mineral .home-vault-gem {
  position: absolute;
  right: -18px;
  top: -10px;
  width: 132px;
  height: 132px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
body.theme-mineral .home-vault-top,
body.theme-mineral .home-coin-strip,
body.theme-mineral .home-vault-main .site-notice {
  position: relative;
  z-index: 1;
}
body.theme-mineral .home-vault-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
body.theme-mineral .home-vault-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
}
body.theme-mineral .home-kicker {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
body.theme-mineral .home-user {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-mineral .home-vault-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  flex-shrink: 0;
}
body.theme-mineral .home-vault-unit {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
body.theme-mineral .home-vault-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f3d7a0;
}
body.theme-mineral .home-vault-cap {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 2px;
}
body.theme-mineral .home-vault-main .site-notice {
  margin: 0 0 10px;
}

/* 三币一行嵌入金库底部 — 不再竖排大卡 */
body.theme-mineral .home-coin-strip,
body.theme-mineral .home-vault-rail {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 !important;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
body.theme-mineral .home-coin {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  text-align: left;
  min-width: 0;
}
body.theme-mineral .home-coin-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
body.theme-mineral .home-coin-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
body.theme-mineral .home-coin.is-primary {
  border-color: rgba(243, 215, 160, 0.35);
  background: rgba(243, 215, 160, 0.12);
}
body.theme-mineral .home-coin-mark { display: none !important; }
body.theme-mineral .home-coin-body { display: contents; }
body.theme-mineral .home-coin .asset-symbol {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  letter-spacing: 0.04em;
}
body.theme-mineral .home-coin .asset-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  word-break: break-all;
}
body.theme-mineral .home-coin.is-primary .asset-value {
  color: #f3d7a0;
}
body.theme-mineral .home-coin .asset-sub {
  display: none; /* 链上明细不挤占首页 */
}

/* ticker strip — not a card grid */
body.theme-mineral .home-ticker {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
  margin: 0 !important;
  scrollbar-width: none;
}
body.theme-mineral .home-ticker::-webkit-scrollbar { display: none; }
body.theme-mineral .home-tick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 0 auto;
  min-width: 108px;
  padding: 8px 10px;
  border-right: 1px solid var(--border);
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left;
}
body.theme-mineral .home-tick-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
body.theme-mineral .home-tick-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
body.theme-mineral .home-tick:last-child { border-right: none; }
body.theme-mineral .home-tick-k {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
  line-height: 1.2;
}
body.theme-mineral .home-tick-v {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
body.theme-mineral .home-tick-v.accent { color: var(--accent); }
body.theme-mineral .home-tick-v.warn { color: var(--accent2-dark); }

/* lanes: 1 hero + 3 small — compact */
body.theme-mineral .home-lanes {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
}
body.theme-mineral .home-lane-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 14px 16px !important;
  border-radius: 16px;
  border: 1px solid rgba(15, 140, 128, 0.22);
  background: linear-gradient(120deg, #e8f7f3 0%, #ffffff 55%) !important;
  box-shadow: none;
  cursor: pointer;
  gap: 12px !important;
  overflow: hidden;
}
body.theme-mineral .home-lane-hero .home-lane-art {
  width: 88px;
  height: 88px;
  order: 2;
  margin: -8px -6px -8px 0;
  object-fit: contain;
}
body.theme-mineral .home-lane-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
body.theme-mineral .home-lane-copy .action-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
body.theme-mineral .home-lane-go {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
body.theme-mineral .home-lane-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.theme-mineral .home-lane-trio .home-lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  min-height: 92px;
  padding: 12px 6px !important;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff !important;
  box-shadow: none;
  cursor: pointer;
}
body.theme-mineral .home-lane-trio .home-lane-art {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
body.theme-mineral .home-lane-trio .action-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* 后台 portal.module 关闭后：盖过主题里的 display:!important，真正隐藏入口 */
body.theme-mineral .is-module-off,
body.theme-mineral .home-lane.is-module-off,
body.theme-mineral .home-lane-hero.is-module-off,
body.theme-mineral .home-lane-trio .home-lane.is-module-off,
body.theme-mineral .action-item.is-module-off,
body.theme-mineral .nav-item.is-module-off,
body.theme-mineral .nav-section.is-module-off,
body.theme-mineral .bottom-nav-item.is-module-off,
body.theme-mineral .me-tile.is-module-off,
body.theme-mineral .me-menu-item.is-module-off,
body.theme-mineral .section-card.is-module-off {
  display: none !important;
}
body.theme-mineral .home-lane.action-item:hover {
  transform: none;
  border-color: rgba(15, 140, 128, 0.4);
}

/* feed — no nested section-card chrome */
body.theme-mineral .home-feed {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 10px 12px 4px;
}
body.theme-mineral .home-feed-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
body.theme-mineral .home-feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-mineral .home-feed-title img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
body.theme-mineral .home-feed-hd h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
body.theme-mineral .home-feed-all {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
body.theme-mineral .home-ave:empty { display: none; }
body.theme-mineral .home-ave:not(:empty) {
  border-radius: 14px;
  overflow: hidden;
}

/* —— Stake deck (purchase pack) —— */
body.theme-mineral .stake-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-mineral .stake-hero {
  display: block;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #ffffff 0%, #eef8f5 55%, #e8edf2 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
body.theme-mineral .stake-hero-stats {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
body.theme-mineral .stake-hero-stat {
  min-width: 0;
  padding: 2px 0;
}
body.theme-mineral .stake-hero-stat + .stake-hero-stat {
  padding-left: 12px;
  border-left: 1px solid rgba(20, 138, 125, 0.14);
}
body.theme-mineral .stake-hero-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
body.theme-mineral .stake-hero-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-mineral .stake-hero-value-sm {
  font-size: clamp(16px, 4.4vw, 20px);
  color: var(--accent-dark, #0f7f74);
}
body.theme-mineral .stake-hero-badge {
  flex-shrink: 0;
  align-self: center;
  text-align: center;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
}
body.theme-mineral .stake-hero-badge-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
body.theme-mineral .stake-hero-badge .stake-perf-value {
  font-size: 14px;
}
body.theme-mineral .stake-hero-badge-level {
  min-width: 88px;
}
body.theme-mineral .stake-hero-badge-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 110px;
}
body.theme-mineral .stake-diff-progress {
  margin: 8px 2px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(20, 138, 125, 0.12);
}
body.theme-mineral .stake-diff-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
body.theme-mineral .stake-diff-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 138, 125, 0.12);
  overflow: hidden;
}
body.theme-mineral .stake-diff-progress-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1aa392, #0f7f74);
}
body.theme-mineral .diff-level-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(20, 138, 125, 0.14);
}
body.theme-mineral .diff-level-card-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
body.theme-mineral .diff-level-card-hd strong {
  font-size: 18px;
  color: var(--accent-dark, #0f7f74);
}
body.theme-mineral .diff-level-card-hd span,
body.theme-mineral .diff-level-card-biz,
body.theme-mineral .diff-level-card-next {
  font-size: 12px;
  color: var(--text-muted);
}
body.theme-mineral .diff-level-card-biz b {
  color: var(--text-primary);
  font-size: 14px;
}
body.theme-mineral .diff-level-card .diff-lock {
  color: #b45309;
}
body.theme-mineral .diff-level-card .stake-diff-progress-bar {
  margin-top: 8px;
}
body.theme-mineral .stake-hero-badge-level {
  min-width: 88px;
}
body.theme-mineral .stake-hero-badge-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 110px;
}
body.theme-mineral .stake-diff-progress {
  margin: 8px 2px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(20, 138, 125, 0.12);
}
body.theme-mineral .stake-diff-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
body.theme-mineral .stake-diff-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 138, 125, 0.12);
  overflow: hidden;
}
body.theme-mineral .stake-diff-progress-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1aa392, #0f7f74);
}
body.theme-mineral .diff-level-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(20, 138, 125, 0.14);
}
body.theme-mineral .diff-level-card-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
body.theme-mineral .diff-level-card-hd strong {
  font-size: 18px;
  color: var(--accent-dark, #0f7f74);
}
body.theme-mineral .diff-level-card-hd span,
body.theme-mineral .diff-level-card-biz,
body.theme-mineral .diff-level-card-next {
  font-size: 12px;
  color: var(--text-muted);
}
body.theme-mineral .diff-level-card-biz b {
  color: var(--text-primary);
  font-size: 14px;
}
body.theme-mineral .diff-level-card .diff-lock {
  color: #b45309;
}
body.theme-mineral .diff-level-card .stake-diff-progress-bar {
  margin-top: 8px;
}

body.theme-mineral .stake-summary,
body.theme-mineral .stake-summary-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin: 0 !important;
}
body.theme-mineral .stake-summary[hidden],
body.theme-mineral .stake-summary-metrics[hidden] {
  display: none !important;
}
body.theme-mineral .stake-summary .stake-sum-cell,
body.theme-mineral .stake-summary .stake-perf-item {
  flex: none;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  text-align: left;
}
body.theme-mineral .stake-summary .stake-perf-item[hidden] { display: none !important; }
body.theme-mineral .stake-summary.has-bonus {
  grid-template-columns: minmax(0, 1fr);
}
body.theme-mineral .stake-summary .stake-perf-label {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-mineral .stake-summary .stake-perf-value {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-mineral .stake-summary .stake-perf-value.accent {
  color: var(--accent-dark);
}
body.theme-mineral .stake-summary .stake-perf-valid.yes,
body.theme-mineral .stake-hero .stake-perf-valid.yes { color: var(--accent-dark); }
body.theme-mineral .stake-summary .stake-perf-valid.no,
body.theme-mineral .stake-hero .stake-perf-valid.no { color: var(--text-muted); }
body.theme-mineral .stake-summary .stake-perf-sub { display: none !important; }
body.theme-mineral .stake-deck > .stake-perf-note,
body.theme-mineral #stakeAggTeamNote {
  display: none !important;
}

body.theme-mineral .stake-compose {
  padding: 14px !important;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.theme-mineral .stake-compose .section-header,
body.theme-mineral .stake-compose .stake-stage-hd { display: none; }
body.theme-mineral .stake-compose-hd {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.theme-mineral .stake-compose-hd strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
body.theme-mineral .stake-compose-hd span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

body.theme-mineral .stake-plan-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 !important;
  overflow: visible;
}
body.theme-mineral .stake-plan-grid .plan-card {
  min-width: 0;
  max-width: none;
  min-height: 88px;
  padding: 12px 10px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  background: #f7faf9;
  border: 1px solid var(--border);
  box-shadow: none;
}
body.theme-mineral .stake-plan-grid .plan-card::before { display: none; }
body.theme-mineral .stake-plan-grid .plan-card.selected {
  background: #e8f6f2;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(15, 140, 128, 0.2);
}
body.theme-mineral .stake-plan-grid .plan-card.selected .plan-rate {
  text-shadow: none;
  color: var(--accent-dark);
}
body.theme-mineral .stake-plan-grid .plan-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary);
}
body.theme-mineral .stake-plan-grid .plan-rate {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--text-primary);
}
body.theme-mineral .stake-plan-grid .plan-tag {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}
body.theme-mineral .stake-plan-grid .plan-min {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 140, 128, 0.1);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 600;
}

body.theme-mineral .stake-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-mineral .stake-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
}
body.theme-mineral .stake-pay-row {
  justify-content: stretch;
}
body.theme-mineral .stake-pay-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body.theme-mineral .stake-pay-tabs .swap-tab {
  width: 100%;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
}
body.theme-mineral .stake-form-row .swap-slippage-label {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
body.theme-mineral .stake-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.theme-mineral .stake-form .form-label {
  margin: 0;
  font-size: 12px;
}
body.theme-mineral .stake-max-btn {
  border: none;
  background: transparent;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 0;
  cursor: pointer;
}
body.theme-mineral .stake-form .form-input {
  margin: 0;
  padding: 12px 14px;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 12px;
}
body.theme-mineral .stake-balance-box {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f8f7;
  border: 1px solid var(--border);
}
body.theme-mineral .stake-balance-box .stake-balance-row {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
body.theme-mineral .stake-bal-cur {
  font-weight: 700;
  color: var(--text-secondary);
}
body.theme-mineral .stake-bal-values {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
body.theme-mineral .stake-bal-sep { color: var(--text-muted); }
body.theme-mineral .stake-bal-part.active strong { color: var(--accent-dark); }
body.theme-mineral .stake-quote {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f9fb;
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}
body.theme-mineral .stake-quote #stakeDailyReward {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}
body.theme-mineral .stake-form .btn-full {
  margin-top: 4px;
  min-height: 48px;
  border-radius: 14px;
  font-size: 15px;
}
body.theme-mineral .stake-hint-mini {
  display: block !important;
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
body.theme-mineral .stake-form .swap-action-hint,
body.theme-mineral #stakePayHint {
  display: none !important;
}
body.theme-mineral .stake-ribbon { display: none !important; }
body.theme-mineral .stake-stage { display: none !important; }
body.theme-mineral .stake-orders-card .section-header {
  align-items: center;
  gap: 8px;
}
body.theme-mineral .stake-orders-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-mineral .stake-orders-card .stake-withdraw-all-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}
body.theme-mineral .stake-orders-toolbar { display: none !important; }

/* 资产包订单卡：利息三行对齐 + 操作按钮并排 */
body.theme-mineral .stake-orders-table .stake-amt {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
body.theme-mineral .stake-orders-table .stake-amt-pending {
  color: var(--accent-dark, #0f7f74);
  font-weight: 600;
}
body.theme-mineral .stake-orders-table .stake-ops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}
body.theme-mineral .stake-orders-table .stake-ops-row .btn {
  margin: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 639px) {
  body.theme-mineral .stake-orders-table .data-table tr {
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: #f4f7f9;
    border-color: rgba(20, 138, 125, 0.1);
  }
  body.theme-mineral .stake-orders-table .data-table td {
    padding: 7px 0;
    align-items: center;
  }
  body.theme-mineral .stake-orders-table .data-table td.stake-ops-td {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(20, 138, 125, 0.1);
  }
  body.theme-mineral .stake-orders-table .data-table td.stake-ops-td::before {
    margin-bottom: 0;
  }
  body.theme-mineral .stake-orders-table .stake-ops-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
  body.theme-mineral .stake-orders-table .stake-ops-row .btn {
    width: 100%;
    justify-content: center;
  }
  body.theme-mineral .stake-orders-table .stake-ops-row .btn:only-child {
    grid-column: 1 / -1;
  }
}

/* —— Team hub (invite-first, single card) —— */
body.theme-mineral .team-hub {
  padding: 12px 12px 0;
}
body.theme-mineral .team-hub.hidden { display: none !important; }
body.theme-mineral .team-hub-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 72, 66, 0.05);
}
body.theme-mineral .team-hub-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
body.theme-mineral .team-hub-kicker > span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
body.theme-mineral .team-hub-kicker-hint {
  font-size: 11px;
  color: var(--text-muted);
}
body.theme-mineral .team-hub-invite {
  padding: 16px 14px 14px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(20, 138, 125, 0.14), transparent 58%),
    linear-gradient(180deg, #f3faf8 0%, #ffffff 78%);
}
body.theme-mineral .team-hub-invite-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(20, 138, 125, 0.22);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.theme-mineral .team-hub-invite-url {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0 12px;
  text-align: left;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.35;
  color: var(--accent-dark, #0f7f74);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
body.theme-mineral .team-hub-invite-copy {
  appearance: none;
  flex: 0 0 auto;
  margin: 4px;
  border: 0;
  border-radius: 10px;
  min-width: 64px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(135deg, #14a394 0%, #0f7f74 100%);
  box-shadow: 0 6px 14px rgba(20, 138, 125, 0.22);
  cursor: pointer;
  white-space: nowrap;
}
body.theme-mineral .team-hub-invite-copy:active {
  transform: translateY(1px);
  box-shadow: none;
}
body.theme-mineral .team-hub-upline {
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid rgba(20, 138, 125, 0.1);
}
body.theme-mineral .team-hub-upline-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}
body.theme-mineral .team-hub-upline-label > span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
body.theme-mineral .team-hub-upline-value {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary, #5a6573);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-mineral .team-hub-bind {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(20, 138, 125, 0.22);
}
body.theme-mineral .team-hub-bind.hidden { display: none !important; }
body.theme-mineral .team-hub-bind .form-input {
  margin: 0;
  min-width: 0;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  background: #f7faf9;
}
body.theme-mineral .team-hub-bind .btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 700;
}
body.theme-mineral .team-hub-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 12px 14px;
  background: #fff;
  border-top: 1px solid rgba(20, 138, 125, 0.08);
}
body.theme-mineral .team-hub-seg-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #f5f8f8;
  color: var(--text-muted);
  border-radius: 12px;
  min-height: 42px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
body.theme-mineral .team-hub-seg-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #14a394 0%, #0f7f74 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(20, 138, 125, 0.28);
}
body.theme-mineral .team-reward-panel {
  padding: 0 12px 12px !important;
  margin-top: 0 !important;
}
body.theme-mineral .team-reward-body {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 1px solid rgba(20, 138, 125, 0.12);
  border-radius: 0 0 18px 18px;
  padding: 4px 12px 14px;
  min-height: 220px;
  box-shadow: 0 10px 28px rgba(18, 72, 66, 0.06);
}
body.theme-mineral .team-reward-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px 10px;
}
body.theme-mineral .team-reward-caption {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
body.theme-mineral .team-reward-refresh {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
body.theme-mineral .team-reward-refresh:active {
  background: rgba(20, 138, 125, 0.08);
}
body.theme-mineral .team-reward-body .empty-state {
  padding: 36px 12px 28px;
}
body.theme-mineral .team-reward-body .empty-state p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

/* —— Team deck (legacy compact) —— */
body.theme-mineral .team-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-mineral .team-invite-card {
  padding: 10px 12px !important;
  border-radius: 14px;
}
body.theme-mineral .team-invite-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-mineral .team-invite-row .invite-link {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  font-size: 11px;
  border-radius: 10px;
  background: #f3f8f7;
  border: 1px solid var(--border);
  color: var(--accent-dark);
}
body.theme-mineral .team-copy-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
}
body.theme-mineral .team-ref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 32px;
}
body.theme-mineral .team-ref-label {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}
body.theme-mineral .team-ref-value,
body.theme-mineral .team-invite-card .form-static {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 8px;
  background: #f7f9fb;
  border: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-mineral .team-bind-box {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
body.theme-mineral .team-bind-box .form-input {
  flex: 1;
  margin: 0;
  padding: 9px 10px;
  font-size: 13px;
}
body.theme-mineral .team-bind-box.hidden { display: none !important; }

body.theme-mineral .team-body-card {
  padding: 12px !important;
  border-radius: 14px;
}
body.theme-mineral .team-body-hd {
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
  border: none !important;
}
body.theme-mineral .team-body-hd .section-title {
  font-size: 14px;
}
body.theme-mineral .team-deck .team-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 10px !important;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
body.theme-mineral .team-deck .team-stat {
  margin: 0;
  padding: 8px 6px;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  text-align: center;
  min-width: 0;
}
body.theme-mineral .team-deck .team-stat::before { display: none !important; }
body.theme-mineral .team-deck .team-stat-label {
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-muted);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-mineral .team-deck .team-stat-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-mineral .team-deck .team-depth-bar { display: none !important; }
body.theme-mineral .team-deck .team-depth-summary {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
body.theme-mineral .team-deck .team-depth-summary::-webkit-scrollbar { display: none; }
body.theme-mineral .team-deck .team-depth-chip {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7f9fb;
  color: var(--text-secondary);
}
body.theme-mineral .team-deck .team-depth-chip.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-glow);
}

body.theme-mineral .stake-compose-banner { display: none !important; }
body.theme-mineral .team-invite-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: -2px 0 10px;
  border-radius: 12px;
  background: linear-gradient(120deg, #e8f7f3 0%, #f7f9fb 70%);
  border: 1px solid var(--border);
}
body.theme-mineral .team-invite-banner img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
}
body.theme-mineral .team-invite-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
body.theme-mineral .team-invite-banner span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}
body.theme-mineral .team-body-hd .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-mineral .team-body-hd .section-title img {
  border-radius: 7px;
}

/* —— Card deck —— */
body.theme-mineral .card-deck .card-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
body.theme-mineral .card-deck .card-showcase-item {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f3f7f9;
}
body.theme-mineral .card-deck .card-showcase-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
body.theme-mineral .card-deck .card-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
body.theme-mineral .card-deck .card-stat {
  background: #f3f7f9;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--border);
}
body.theme-mineral .card-deck .card-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

/* —— Home deck: banner + news only —— */
body.theme-mineral .home-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}
body.theme-mineral .home-deck .home-vault { display: none !important; }

/* —— Home banner carousel —— */
body.theme-mineral .home-banner {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #123c37;
  aspect-ratio: 2 / 1;
  box-shadow: none;
}
body.theme-mineral .home-banner[hidden] { display: none !important; }
body.theme-mineral .home-banner-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}
body.theme-mineral .home-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}
body.theme-mineral .home-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-mineral .home-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
body.theme-mineral .home-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
body.theme-mineral .home-banner-dot.active {
  width: 16px;
  background: #fff;
}

body.theme-mineral .home-site-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7e8;
  border: 1px solid #f0d7a4;
  color: #6b4e16;
  font-size: 13px;
  line-height: 1.5;
}

/* —— Home scrolling announcement —— */
body.theme-mineral .home-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px 0 12px;
  min-height: 36px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(18, 72, 66, 0.1);
  overflow: hidden;
}
body.theme-mineral .home-marquee[hidden] { display: none !important; }
body.theme-mineral .home-marquee-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f8a7d;
  background: rgba(15, 138, 125, 0.1);
}
body.theme-mineral .home-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
body.theme-mineral .home-marquee-track {
  display: inline-flex;
  width: max-content;
  white-space: nowrap;
  animation: homeMarqueeScroll linear infinite;
  will-change: transform;
}
body.theme-mineral .home-marquee-item {
  display: inline-block;
  padding-right: 48px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 36px;
}
@keyframes homeMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-mineral .home-marquee-track { animation: none; }
}

/* —— Home articles / notices —— */
body.theme-mineral .home-articles {
  margin: 0;
  padding: 4px 2px 8px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
body.theme-mineral .home-articles-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
body.theme-mineral .home-articles-title strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
body.theme-mineral .home-articles-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #eef5f4;
}
body.theme-mineral .home-articles-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
}
body.theme-mineral .home-articles-tab.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(20, 138, 125, 0.15);
}
body.theme-mineral .home-articles-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-mineral .home-articles-empty {
  padding: 22px 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
body.theme-mineral .home-article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(18, 72, 66, 0.1);
  box-shadow: 0 4px 14px rgba(18, 72, 66, 0.04);
  margin-bottom: 0;
}
body.theme-mineral .home-article-card {
  cursor: pointer;
}
body.theme-mineral .home-article-cover {
  appearance: none;
  border: none;
  background: #e8f2f0;
  padding: 0;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  pointer-events: none;
}
body.theme-mineral .home-article-title {
  pointer-events: none;
}
body.theme-mineral .home-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-mineral .home-article-bodywrap {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
body.theme-mineral .home-article-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
body.theme-mineral .home-article-thumb {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
body.theme-mineral .home-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-mineral .home-article-main { flex: 1; min-width: 0; }
body.theme-mineral .home-article-title {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.35;
  font-family: var(--font);
}
body.theme-mineral .home-article-summary {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-mineral .home-article-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(20, 138, 125, 0.22);
}
body.theme-mineral .home-article-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: normal;
}
body.theme-mineral .home-article-fullimg {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 8px;
}
body.theme-mineral .home-article-date {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 72, 66, 0.06);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
body.theme-mineral .home-article-card:not(.has-cover) .home-article-bodywrap {
  padding-top: 12px;
}

/* hide legacy equal grids when new layout present */
body.theme-mineral .home-deck .mv-hero,
body.theme-mineral .home-deck .mv-tiles,
body.theme-mineral .home-deck .mv-stats { display: none; }

/* —— Personal center —— */
body.theme-mineral .me-deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 12px;
}
body.theme-mineral .me-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 20px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(214, 177, 92, 0.28), transparent 55%),
    linear-gradient(155deg, #16343a 0%, #0f8a7d 78%, #0b6f66 100%);
}
body.theme-mineral .me-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
body.theme-mineral .me-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
body.theme-mineral .me-profile-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
body.theme-mineral .me-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
body.theme-mineral .me-addr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono, ui-monospace, monospace);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-mineral .me-logout {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
body.theme-mineral .me-hero-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: start;
}
body.theme-mineral .me-hero-balance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
body.theme-mineral .me-hero-balance-chain {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
body.theme-mineral .me-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}
body.theme-mineral .me-hero-amount {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  word-break: break-all;
}
body.theme-mineral .me-hero-sub {
  grid-column: 1 / -1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
body.theme-mineral .me-hero-sub b {
  font-weight: 700;
  color: #fff;
}
@media (max-width: 379px) {
  body.theme-mineral .me-hero-balances {
    grid-template-columns: 1fr;
  }
  body.theme-mineral .me-hero-balance-chain {
    padding-left: 0;
    padding-top: 10px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}
body.theme-mineral .me-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(18, 72, 66, 0.08);
}
body.theme-mineral .me-menu-item {
  appearance: none;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(18, 72, 66, 0.06);
  background: transparent;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font);
  text-align: left;
}
body.theme-mineral .me-menu-item:last-child { border-bottom: none; }
body.theme-mineral .me-menu-item:active { background: #f3f8f7; }
body.theme-mineral .me-menu-item.active {
  background: #eaf6f3;
}
body.theme-mineral .me-menu-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(160deg, #eef8f6, #dff1ee);
  color: #0f8a7d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.theme-mineral .me-menu-ico svg {
  width: 17px;
  height: 17px;
}
body.theme-mineral .me-menu-txt {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
}
body.theme-mineral .me-menu-arrow {
  color: rgba(18, 72, 66, 0.35);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* —— 资产日志分类 —— */
body.theme-mineral .movements-deck {
  padding-bottom: 8px;
}
body.theme-mineral .movements-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 14px;
  padding: 2px 1px 6px;
}
body.theme-mineral .movements-cats::-webkit-scrollbar { display: none; }
body.theme-mineral .movements-cat {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(18, 72, 66, 0.12);
  background: #f3f7f6;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
}
body.theme-mineral .movements-cat.active {
  background: #0f8a7d;
  border-color: #0f8a7d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 138, 125, 0.25);
}
body.agg-off #meAssetAggRow,
body.agg-off #meAssetGnd,
body.agg-off .nav-item[data-nav="gnd"],
body.agg-off .nav-item[data-nav="exchange"],
body.agg-off .nav-item[data-nav="slippage"],
body.agg-off #withdrawCurrencyAgg,
body.agg-off #panel-gnd,
body.agg-off #panel-exchange,
body.agg-off #panel-slippage {
  display: none !important;
}
body.agg-off .withdraw-currency-switch {
  display: none !important;
}

/* —— Article detail page —— */
body.theme-mineral .article-detail-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  min-height: 60vh;
}
body.theme-mineral .article-detail-back {
  appearance: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  padding: 4px 0;
  cursor: pointer;
}
body.theme-mineral .article-detail {
  background: #fff;
  border: 1px solid rgba(18, 72, 66, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
body.theme-mineral .article-detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8f2f0;
  overflow: hidden;
}
body.theme-mineral .article-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-mineral .article-detail-hd {
  padding: 16px 16px 0;
}
body.theme-mineral .article-detail-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: #eaf6f3;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
body.theme-mineral .article-detail-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
body.theme-mineral .article-detail-date {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
body.theme-mineral .article-detail-summary {
  margin: 12px 16px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
body.theme-mineral .article-detail-body {
  margin: 14px 16px 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-width: 100%;
}

/* =========================================================
   PAGE MOTION — 全站动效层
   ========================================================= */
@keyframes pageBlobA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 28px, 0) scale(1.12); }
}
@keyframes pageBlobB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-36px, -22px, 0) scale(1.18); }
}
@keyframes pageBlobC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate3d(18px, -30px, 0) scale(1.08); opacity: 0.55; }
}
@keyframes pageSpark {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50% { transform: translateY(-14px) scale(1.35); opacity: 0.8; }
}
@keyframes pageGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}
@keyframes panelEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes fxRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes headerSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bottomNavIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navBob {
  0%, 100% { transform: translateY(0) scale(1.08); }
  50% { transform: translateY(-2px) scale(1.12); }
}
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes bannerShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

body.theme-mineral .page-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
body.theme-mineral .app-layout,
body.theme-mineral .main-content {
  position: relative;
  z-index: 1;
}
body.theme-mineral .page-fx-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  will-change: transform;
}
body.theme-mineral .page-fx-blob-a {
  width: 280px;
  height: 280px;
  left: -80px;
  top: 8%;
  background: rgba(15, 140, 128, 0.22);
  animation: pageBlobA 11s ease-in-out infinite;
}
body.theme-mineral .page-fx-blob-b {
  width: 320px;
  height: 320px;
  right: -100px;
  top: 42%;
  background: rgba(176, 132, 64, 0.16);
  animation: pageBlobB 13s ease-in-out infinite;
}
body.theme-mineral .page-fx-blob-c {
  width: 220px;
  height: 220px;
  left: 30%;
  bottom: 6%;
  background: rgba(15, 140, 128, 0.14);
  animation: pageBlobC 9s ease-in-out infinite;
}
body.theme-mineral .page-fx-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 140, 128, 0.7);
  box-shadow: 0 0 12px rgba(15, 140, 128, 0.45);
}
body.theme-mineral .page-fx-spark-1 { left: 18%; top: 22%; animation: pageSpark 3.6s ease-in-out infinite; }
body.theme-mineral .page-fx-spark-2 { left: 72%; top: 30%; animation: pageSpark 4.2s ease-in-out 0.4s infinite; background: rgba(176, 132, 64, 0.75); box-shadow: 0 0 12px rgba(176, 132, 64, 0.4); }
body.theme-mineral .page-fx-spark-3 { left: 48%; top: 62%; animation: pageSpark 3.2s ease-in-out 0.8s infinite; }
body.theme-mineral .page-fx-spark-4 { left: 84%; top: 74%; animation: pageSpark 4.8s ease-in-out 1.1s infinite; background: rgba(176, 132, 64, 0.7); box-shadow: 0 0 12px rgba(176, 132, 64, 0.35); }
body.theme-mineral .page-fx-grid {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(28, 36, 46, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 36, 46, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: pageGridDrift 18s linear infinite;
}

body.theme-mineral .app-header {
  animation: headerSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  backdrop-filter: blur(10px);
}
body.theme-mineral .bottom-nav:not(.is-hidden) {
  /* 不入场位移动画：fill-mode/both 在 display:none→flex 时可能把底栏卡在 opacity:0 */
  animation: none;
}
body.theme-mineral .bottom-nav-item.active svg {
  animation: navBob 1.8s ease-in-out infinite;
}
body.theme-mineral .panel.panel-enter:not(.hidden) {
  animation: panelEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* 首页面板禁止入场淡入，防止资讯卡片跟着闪 */
body.theme-mineral #panel-wallet.panel-enter,
body.theme-mineral #panel-wallet.panel-enter .home-articles,
body.theme-mineral #panel-wallet.panel-enter .home-article-card,
body.theme-mineral #panel-wallet.panel-enter .home-banner,
body.theme-mineral #panel-wallet.panel-enter .home-marquee {
  animation: none !important;
}
body.theme-mineral .fx-rise {
  animation: fxRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--fx-i, 0) * 70ms);
}
/* 首页资讯区禁止循环入场动画，避免重绘时连闪 */
body.theme-mineral .home-banner,
body.theme-mineral .home-marquee,
body.theme-mineral .home-articles,
body.theme-mineral .home-article-card,
body.theme-mineral .home-article-card.fx-rise {
  animation: none !important;
}
body.theme-mineral .home-article-card {
  transition: none;
}
body.theme-mineral .home-article-card:hover,
body.theme-mineral .home-article-card:active {
  transform: none;
  box-shadow: 0 4px 14px rgba(18, 72, 66, 0.04);
}
body.theme-mineral .home-article-cover img {
  background: #e8f2f0;
}
body.theme-mineral .me-hero {
  animation: fxRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.theme-mineral .me-menu-item {
  animation: fxRise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.18s ease, background 0.18s ease;
}
body.theme-mineral .me-menu-item:nth-child(1) { animation-delay: 0.05s; }
body.theme-mineral .me-menu-item:nth-child(2) { animation-delay: 0.1s; }
body.theme-mineral .me-menu-item:nth-child(3) { animation-delay: 0.15s; }
body.theme-mineral .me-menu-item:nth-child(4) { animation-delay: 0.2s; }
body.theme-mineral .me-menu-item:nth-child(5) { animation-delay: 0.25s; }
body.theme-mineral .me-menu-item:nth-child(6) { animation-delay: 0.3s; }
body.theme-mineral .me-menu-item:hover {
  transform: translateX(4px);
}
body.theme-mineral .me-hero-amount {
  animation: softFloat 3.6s ease-in-out infinite;
}
body.theme-mineral .btn-primary,
body.theme-mineral .btn.btn-primary {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
body.theme-mineral .btn-primary:hover,
body.theme-mineral .btn.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
body.theme-mineral .btn-primary:active,
body.theme-mineral .btn.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}
body.theme-mineral .section-card,
body.theme-mineral .stake-hero,
body.theme-mineral .team-hub-shell,
body.theme-mineral .article-detail {
  animation: fxRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.theme-mineral.auth-mode .page-fx-blob-a,
body.theme-mineral.auth-mode .page-fx-blob-b {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-mineral .page-fx,
  body.theme-mineral .page-fx *,
  body.theme-mineral .panel.panel-enter,
  body.theme-mineral .fx-rise,
  body.theme-mineral .app-header,
  body.theme-mineral .bottom-nav:not(.is-hidden),
  body.theme-mineral .bottom-nav-item.active svg,
  body.theme-mineral .me-hero-amount,
  body.theme-mineral .home-banner,
  body.theme-mineral .home-marquee,
  body.theme-mineral .home-articles,
  body.theme-mineral .me-hero,
  body.theme-mineral .me-menu-item,
  body.theme-mineral .section-card,
  body.theme-mineral .stake-hero,
  body.theme-mineral .team-hub-shell,
  body.theme-mineral .article-detail {
    animation: none !important;
  }
}

/* 资产包页：级差整行贴在入金下方（非右侧嵌套卡） */
body.theme-mineral .stake-hero .stake-diff-level-card {
  margin: 12px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(20, 138, 125, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.theme-mineral .stake-diff-level-card .diff-level-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.theme-mineral .stake-diff-level-card .diff-level-chip {
  flex: 0 0 auto;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #1aa392, #0f7f74);
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(15, 127, 116, 0.22);
}
body.theme-mineral .stake-diff-level-card .diff-level-main {
  flex: 1 1 auto;
  min-width: 0;
}
body.theme-mineral .stake-diff-level-card .diff-level-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 2px;
}
body.theme-mineral .stake-diff-level-card .diff-level-rate {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}
body.theme-mineral .stake-diff-level-card .diff-level-rate b {
  color: var(--accent-dark, #0f7f74);
  font-size: 16px;
  font-weight: 700;
}
body.theme-mineral .stake-diff-level-card .diff-level-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}
body.theme-mineral .stake-diff-level-card .diff-level-next b {
  color: var(--text-primary);
  font-weight: 600;
}
body.theme-mineral .stake-diff-level-card .diff-level-sep {
  opacity: 0.45;
}
body.theme-mineral .stake-diff-level-card .diff-level-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.theme-mineral .stake-diff-level-card .diff-level-remain {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
body.theme-mineral .stake-diff-level-card .diff-level-remain b {
  color: var(--text-primary);
  font-weight: 600;
}
body.theme-mineral .stake-diff-level-card .diff-lock {
  font-size: 11px;
  color: #b45309;
  background: rgba(180, 83, 9, 0.08);
  border-radius: 999px;
  padding: 1px 8px;
}
body.theme-mineral .stake-diff-level-card .stake-diff-progress-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 138, 125, 0.12);
  overflow: hidden;
  margin-top: 0;
}
body.theme-mineral .stake-diff-level-card .stake-diff-progress-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1aa392, #0f7f74);
}
