/* 全站深色主题（Profile 主题设置生效；类名在 html 上，勿用 .apmint-theme-dark.apmint-body） */
html.apmint-theme-dark {
  background-color: #11183c;
  color-scheme: dark;
}

html.apmint-theme-dark body.apmint-body,
html.apmint-theme-dark .home-page {
  background: #11183c;
}

.apmint-theme-dark .home-header {
  background: transparent;
}

.apmint-theme-dark .home-brand-title {
  color: #fff;
}

.apmint-theme-dark .btn-sign-in-ref {
  background: #664bfb;
}

.apmint-theme-dark .lang-pill-ref span {
  color: #fff;
}

.apmint-theme-dark .lang-pill-ref {
  border-color: rgba(255, 255, 255, 0.35);
}

.apmint-theme-dark .profile-shell {
  background: #11183c;
}

.apmint-theme-dark .profile-user-card,
.apmint-theme-dark .profile-stat-card,
.apmint-theme-dark .profile-menu-block {
  background: #21234c;
  box-shadow: none;
}

.apmint-theme-dark .profile-email {
  color: #fff;
}

.apmint-theme-dark .profile-stat-label {
  color: #cfd1d8;
}

.apmint-theme-dark .profile-stat-value {
  color: #b8bac5;
}

.apmint-theme-dark .profile-stat-value.purple {
  color: #b8bac5;
}

.apmint-theme-dark .profile-stat-sub {
  color: #b2a5fd;
}

.apmint-theme-dark .profile-menu-block h3,
.apmint-theme-dark .profile-menu-item span {
  color: #b8bac5;
}

.apmint-theme-dark .profile-menu-item {
  border-top-color: #2f3158;
}

.apmint-theme-dark .home-bottom-nav {
  background: #21234c;
  border-top-color: #2f3158;
}

.apmint-theme-dark .home-bottom-nav .nav-label {
  color: #9ca3af;
}

.apmint-theme-dark .home-bottom-nav .bottom-nav-item.active .nav-label {
  color: #b2a5fd;
}

/* Yield Tiers（对齐 demo/yield.demo 深色） */
.apmint-theme-dark .yield-page {
  color: #fff;
}

.apmint-theme-dark .yield-tier-hero-inner {
  background: #21234c;
}

.apmint-theme-dark .yield-tier-hero-head {
  background: #2f3158;
  color: #856ffc;
}

.apmint-theme-dark .yield-tier-hero-body {
  background: #21234c;
}

.apmint-theme-dark .yield-tg-link {
  color: #fff;
}

.apmint-theme-dark .yield-referral-card {
  background: #21234c;
  box-shadow: 0 4px 16px rgba(218, 193, 255, 0.08);
}

.apmint-theme-dark .yield-referral-card h2 {
  color: #fff;
}

.apmint-theme-dark .yield-referral-card .text-secondary {
  color: #d6d3d1;
}

.apmint-theme-dark .yield-referral-pill {
  background: #2f3158;
}

.apmint-theme-dark .yield-referral-pill span {
  color: #fff;
}

.apmint-theme-dark .yield-stat-card {
  background: #21234c;
  box-shadow: 0 4px 16px rgba(218, 193, 255, 0.08);
}

.apmint-theme-dark .yield-stat-card .label {
  color: #94a3b8;
}

.apmint-theme-dark .yield-stat-card .val {
  color: #fff;
}

.apmint-theme-dark .yield-search {
  background: #2f3158;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.apmint-theme-dark .yield-search input {
  color: #fff;
}

.apmint-theme-dark .yield-search input::placeholder {
  color: #cbd5e1;
}

.apmint-theme-dark .yield-tier-card {
  background: rgba(17, 24, 60, 0.95);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.apmint-theme-dark .yield-tier-card h3 {
  color: #fff;
}

.apmint-theme-dark .yield-tier-meta {
  color: #d1d5db;
}

.apmint-theme-dark .yield-tier-pool {
  color: #fff;
}

.apmint-theme-dark .yield-tier-req {
  color: #d1d5db;
}

.apmint-theme-dark .yield-tier-req strong {
  color: #fff;
}

.apmint-theme-dark .yield-tier-card.current {
  background: #2f3158;
  border-color: #7b6ffa;
  outline: none;
  box-shadow: 0 0 10px rgba(123, 111, 250, 0.35);
}

/* ========== 全站基础 / 充值提现等 apmint-body 页 ========== */
html.apmint-theme-dark body.apmint-body {
  color: #e2e8f0;
}

.apmint-theme-dark .text-secondary {
  color: #94a3b8 !important;
}

.apmint-theme-dark .apmint-sub-topbar {
  background: #11183c !important;
  border-bottom-color: #2f3158 !important;
}

.apmint-theme-dark .apmint-sub-topbar .h6,
.apmint-theme-dark .apmint-sub-topbar h1 {
  color: #fff;
}

.apmint-theme-dark .card {
  background: #21234c;
  color: #e2e8f0;
  box-shadow: none;
}

.apmint-theme-dark .card strong,
.apmint-theme-dark .card .fw-semibold {
  color: #fff;
}

.apmint-theme-dark .form-control,
.apmint-theme-dark .form-control:focus {
  background: #2f3158;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.apmint-theme-dark .form-control::placeholder {
  color: #94a3b8;
}

.apmint-theme-dark .input-group .border,
.apmint-theme-dark .input-group.rounded-3.border {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.apmint-theme-dark .input-group-text {
  background: #2f3158;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.08);
}

.apmint-theme-dark .bg-light {
  background: #2f3158 !important;
}

.apmint-theme-dark .btn-light {
  background: #2f3158;
  color: #fff;
  border-color: transparent;
}

.apmint-theme-dark .alert-primary {
  background: rgba(102, 75, 251, 0.15) !important;
  border-color: rgba(178, 165, 253, 0.35);
  color: #e2e8f0;
}

.apmint-theme-dark .border-bottom {
  border-color: #2f3158 !important;
}

.apmint-theme-dark .wallet-item {
  background: #2f3158;
  color: #e2e8f0;
}

.apmint-theme-dark .wallet-item.active {
  background: rgba(102, 75, 251, 0.25);
  border-color: #b2a5fd;
}

.apmint-theme-dark .wallet-drawer-sheet {
  background: #21234c;
  color: #e2e8f0;
}
.apmint-theme-dark .wallet-drawer-handle { background: #4f4f4f; }
.apmint-theme-dark .wallet-drawer-row:hover { background: #2f3158; }
.apmint-theme-dark .wallet-drawer-row.active { background: rgba(102, 75, 251, 0.25); }
.apmint-theme-dark .wallet-drawer-row-logo { background: #2f3158; }
.apmint-theme-dark .wallet-drawer-row-fallback {
  background: rgba(102, 75, 251, 0.2);
  color: #b2a5fd;
}

.apmint-theme-dark .empty-icon-wrap {
  background: rgba(102, 75, 251, 0.2);
  color: #b2a5fd;
}

.apmint-theme-dark .modal-content:not(.wheel-modal-content) {
  background: #21234c;
  color: #e2e8f0;
}

.apmint-theme-dark .modal-content .text-secondary {
  color: #94a3b8 !important;
}

.apmint-theme-dark .btn-close {
  filter: invert(1) grayscale(1);
}

/* 登录 / 注册 */
.apmint-theme-dark .auth-page h1,
.apmint-theme-dark .auth-page .display-6 {
  color: #fff;
}

.apmint-theme-dark .auth-input-group {
  border-color: rgba(255, 255, 255, 0.12);
  background: #21234c;
}

.apmint-theme-dark .auth-input-group .input-group-text,
.apmint-theme-dark .auth-input-group .form-control {
  background: #21234c;
  color: #fff;
}

.apmint-theme-dark .home-brand {
  color: #fff;
}

.apmint-theme-dark .lang-menu {
  background: #21234c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.apmint-theme-dark .lang-menu-item {
  color: #e2e8f0;
}

.apmint-theme-dark .lang-menu-item:hover,
.apmint-theme-dark .lang-menu-item.active {
  background: rgba(102, 75, 251, 0.25);
}

/* ========== 首页 index ========== */
.apmint-theme-dark .home-page {
  color: #fff;
}

.apmint-theme-dark .home-quick-btn {
  background: #856ffc;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.apmint-theme-dark .home-quick-btn svg path {
  stroke: #fff;
}

.apmint-theme-dark .home-tele-card {
  background: #21234c;
  border-color: rgba(255, 255, 255, 0.05);
}

.apmint-theme-dark .home-tele-text .title {
  color: #fff;
}

.apmint-theme-dark .home-tele-text .sub {
  color: #94a3b8;
}

.apmint-theme-dark .home-tele-chevron {
  color: #cbd5e1;
}

.apmint-theme-dark .home-event-outer {
  background: #21234c;
}

.apmint-theme-dark .home-event-inner {
  background: #2f3158;
}

.apmint-theme-dark .home-event-inner .title,
.apmint-theme-dark .home-event-yield {
  color: #fff;
}

.apmint-theme-dark .home-info-row {
  background: #31335a;
}

.apmint-theme-dark .home-info-icon {
  background: rgba(255, 255, 255, 0.06);
}

.apmint-theme-dark .home-info-row .t {
  color: #fff;
}

.apmint-theme-dark .home-info-row .d {
  color: #94a3b8;
}

.apmint-theme-dark .home-info-icon svg path {
  stroke: #b2a5fd;
}

.apmint-theme-dark .home-market-card {
  background: #21234c;
  border-color: rgba(255, 255, 255, 0.1);
}

.apmint-theme-dark .home-tab-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.apmint-theme-dark .home-tab {
  color: #94a3b8;
}

.apmint-theme-dark .home-tab.active {
  color: #fff;
  border-bottom-color: #664bfb;
}

.apmint-theme-dark .home-tab.active svg {
  color: #b2a5fd;
}

.apmint-theme-dark .trade-symbol,
.apmint-theme-dark .trade-prices .now {
  color: #fff;
}

.apmint-theme-dark .trade-coin-icon {
  background: rgba(102, 75, 251, 0.2);
}

.apmint-theme-dark .trade-divider {
  background: rgba(255, 255, 255, 0.08);
}

.apmint-theme-dark .price-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.apmint-theme-dark .trade-pnl .time {
  color: #64748b;
}

.apmint-theme-dark .home-bottom-nav .bottom-nav-item {
  color: #9ca3af;
}

.apmint-theme-dark .home-bottom-nav .bottom-nav-item.active {
  color: #b2a5fd;
}

/* ========== Profile 子页（FAQ / Security / 账本 / 投资等）========== */
.apmint-theme-dark .profile-sub-shell {
  background: #11183c;
}

.apmint-theme-dark .profile-sub-title {
  color: #fff;
}

.apmint-theme-dark .profile-sub-back {
  background: #2f3158;
  color: #fff;
  box-shadow: none;
}

.apmint-theme-dark .profile-sub-card {
  background: #21234c;
  box-shadow: none;
}

.apmint-theme-dark .invest-total-box .label {
  color: #94a3b8;
}

.apmint-theme-dark .invest-row {
  background: #2f3158;
}

.apmint-theme-dark .invest-row-meta .status {
  color: #fff;
}

html.apmint-theme-dark .wh-record__badge--danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.apmint-theme-dark .invest-row-meta .time {
  color: #94a3b8;
}

.apmint-theme-dark .invest-empty {
  color: #94a3b8;
}

.apmint-theme-dark .ledger-item {
  background: #2f3158;
}

.apmint-theme-dark .ledger-item .time {
  color: #e2e8f0;
}

.apmint-theme-dark .faq-search {
  background: #2f3158;
}

.apmint-theme-dark .faq-search input {
  color: #fff;
}

.apmint-theme-dark .faq-list,
.apmint-theme-dark .faq-item {
  border-color: #2f3158;
}

.apmint-theme-dark .faq-q {
  color: #fff;
}

.apmint-theme-dark .faq-a {
  color: #94a3b8;
}

.apmint-theme-dark .support-link {
  background: rgba(102, 75, 251, 0.2);
}

.apmint-theme-dark .support-link .title {
  color: #fff;
}

.apmint-theme-dark .support-link .sub {
  color: #94a3b8;
}

.apmint-theme-dark .policy-scroll h2 {
  color: #fff;
}

.apmint-theme-dark .policy-scroll p,
.apmint-theme-dark .policy-scroll li {
  color: #cbd5e1;
}

.apmint-theme-dark .security-form label {
  color: #94a3b8;
}

.apmint-theme-dark .security-form input {
  background: #2f3158;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.apmint-theme-dark .security-actions .btn-cancel {
  background: #2f3158;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
