/**
 * Global dark theme — matches header+nav.html (NovaPulse)
 * Active when html/body has .hn-theme-dark
 */
html.hn-theme-dark,
html.hn-theme-dark body,
body.hn-theme-dark {
  --gd-bg: linear-gradient(160deg, #13002b 0%, #1f004d 40%, #0d001f 100%);
  --gd-glass: rgba(255, 255, 255, 0.06);
  --gd-glass-border: rgba(199, 125, 255, 0.18);
  --gd-text: #f3e8ff;
  --gd-text-dim: rgba(255, 255, 255, 0.62);
  --gd-card-title: #c77dff;
  --pt-bg: transparent;
  --pt-child-bg: rgba(255, 255, 255, 0.06);
  --pt-text-dark: #f3e8ff;
  --pt-text-muted: rgba(255, 255, 255, 0.55);
  --pt-purple-glow: rgba(157, 78, 221, 0.25);
  background: var(--gd-bg) !important;
  background-image: none !important;
  color: var(--gd-text);
}

body.hn-theme-dark #main,
body.hn-theme-dark #appCapsule {
  background: transparent !important;
  color: var(--gd-text);
}

/* Kill light-theme overrides */
body.hn-theme-dark.tf-dashboard-theme,
body.hn-theme-dark.pt-theme {
  background: var(--gd-bg) !important;
  background-image: none !important;
}

body.hn-theme-dark .tf-page,
html.hn-theme-dark .tf-page {
  background: transparent !important;
  background-color: transparent !important;
  --tf-bg: transparent;
  --tf-text: #f3e8ff;
  --tf-muted: rgba(255, 255, 255, 0.55);
}

/* think-finance.css loads on many pages — force dark over its white panels */
html.hn-theme-dark .tf-quick-services,
body.hn-theme-dark .tf-quick-services,
html.hn-theme-dark .tf-header-card,
body.hn-theme-dark .tf-header-card,
html.hn-theme-dark .tf-media-card,
body.hn-theme-dark .tf-media-card,
html.hn-theme-dark .tf-referral-card,
body.hn-theme-dark .tf-referral-card {
  background: var(--gd-glass) !important;
  border: 1px solid var(--gd-glass-border) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
}

/* Glass cards — demo-card style from header+nav.html */
html.hn-theme-dark .pink-box,
body.hn-theme-dark .pink-box,
body.hn-theme-dark .pt-child-card,
body.hn-theme-dark .pt-balance-card,
body.hn-theme-dark .pt-method-card,
body.hn-theme-dark .pt-gateway-row,
body.hn-theme-dark .gh-empty,
body.hn-theme-dark .rig-card,
body.hn-theme-dark .tf-quick-services,
body.hn-theme-dark .tf-header-card,
body.hn-theme-dark .tf-referral-card,
body.hn-theme-dark .tf-referral-row,
body.hn-theme-dark .tf-overview-item,
body.hn-theme-dark .tf-media-card,
body.hn-theme-dark .tf-task-center,
body.hn-theme-dark .tf-task-body,
body.hn-theme-dark .tf-quick-card,
body.hn-theme-dark .tf-service-card,
body.hn-theme-dark .tf-stat-card,
body.hn-theme-dark .tf-tutorial-card,
body.hn-theme-dark .tf-about-card,
body.hn-theme-dark .tf-plan-card,
body.hn-theme-dark .tf-fbr-card,
body.hn-theme-dark .tf-login-card,
body.hn-theme-dark .tf-signup-card,
body.hn-theme-dark .offday-modal {
  background: var(--gd-glass) !important;
  border: 1px solid var(--gd-glass-border) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
  color: var(--gd-text) !important;
}

body.hn-theme-dark .demo-card,
body.hn-theme-dark .demo-card-title {
  /* alias pattern if used */
}

/* Think Finance white panels */
body.hn-theme-dark [class*="bg-white"],
body.hn-theme-dark .bg-white {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
}

/* Typography */
body.hn-theme-dark .text-gray-900,
body.hn-theme-dark .text-gray-800,
body.hn-theme-dark .text-gray-700,
body.hn-theme-dark .text-black,
body.hn-theme-dark h1,
body.hn-theme-dark h2,
body.hn-theme-dark h3,
body.hn-theme-dark h4,
body.hn-theme-dark h5,
body.hn-theme-dark .font-black.text-gray-800,
body.hn-theme-dark .tf-header-card h2,
body.hn-theme-dark .tf-plan-card h3,
body.hn-theme-dark .tf-about-card h3 {
  color: var(--gd-text) !important;
}

body.hn-theme-dark .text-gray-600,
body.hn-theme-dark .text-gray-500,
body.hn-theme-dark .text-gray-400,
body.hn-theme-dark .text-muted,
body.hn-theme-dark .pt-header-left p,
body.hn-theme-dark .tf-meta-label,
body.hn-theme-dark .tf-referral-label,
body.hn-theme-dark .tf-qs-label,
body.hn-theme-dark .tf-media-card h4,
body.hn-theme-dark .tf-media-card p,
body.hn-theme-dark .tf-task-plan-label,
body.hn-theme-dark .tf-section-title {
  color: var(--gd-text-dim) !important;
}

body.hn-theme-dark .tf-section-title i {
  -webkit-text-fill-color: #c77dff;
}

body.hn-theme-dark .tf-qs-label {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.hn-theme-dark .tf-referral-row {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.hn-theme-dark .tf-referral-row input,
body.hn-theme-dark .tf-referral-row span {
  color: var(--gd-text) !important;
}

body.hn-theme-dark .tf-invite-banner {
  background: rgba(255, 106, 0, 0.12) !important;
  border-color: rgba(255, 152, 0, 0.28) !important;
}

body.hn-theme-dark .tf-invite-text p {
  color: var(--gd-text) !important;
}

body.hn-theme-dark .tf-media-card h4 {
  color: var(--gd-text) !important;
}

body.hn-theme-dark .text-pink-600,
body.hn-theme-dark .text-pink-500,
body.hn-theme-dark .pt-header-left h2,
body.hn-theme-dark .pt-header-left h2 i {
  color: var(--gd-card-title) !important;
}

/* Borders */
body.hn-theme-dark .border,
body.hn-theme-dark .border-pink-100,
body.hn-theme-dark .border-gray-100,
body.hn-theme-dark .border-pink-50,
body.hn-theme-dark .border-e9d5ff {
  border-color: var(--gd-glass-border) !important;
}

/* Forms */
body.hn-theme-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.hn-theme-dark select,
body.hn-theme-dark textarea,
body.hn-theme-dark .form-control,
body.hn-theme-dark .tf-referral-row input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--gd-glass-border) !important;
  color: var(--gd-text) !important;
}

body.hn-theme-dark input::placeholder,
body.hn-theme-dark textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Section labels like DASHBOARD / ACTIVITY */
body.hn-theme-dark .pt-quick-title,
body.hn-theme-dark .gh-section-title {
  color: var(--gd-card-title) !important;
}

body.hn-theme-dark .gh-card-title {
  color: #fff !important;
}

body.hn-theme-dark .gh-card-sub {
  color: rgba(199, 125, 255, 0.75) !important;
}

/* Nav pills / log tabs */
body.hn-theme-dark .nav-pill:not(.active) {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
  color: var(--gd-text-dim) !important;
}

body.hn-theme-dark .pink-box .nav-pill:not(.active) {
  color: var(--gd-text-dim) !important;
}

/* Keep gradient hero cards */
html.hn-theme-dark .gh-balance-card,
html.hn-theme-dark .gh-bottom-banner,
html.hn-theme-dark .tf-portfolio-card,
html.hn-theme-dark .pink-gradient,
html.hn-theme-dark .pt-gradient,
html.hn-theme-dark .tf-bm-card,
html.hn-theme-dark .tf-bw-card,
html.hn-theme-dark .tf-play-banner,
html.hn-theme-dark .tf-shop-inner {
  /* preserve colorful gradients */
}

body.hn-theme-dark .gh-game-card {
  border-color: rgba(199, 125, 255, 0.35) !important;
}

/* Mining rig cards keep their header gradient */
body.hn-theme-dark .mr-mining-card {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45) !important;
}

html.hn-theme-dark .mr-profit-box,
body.hn-theme-dark .mr-profit-box {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(199, 125, 255, 0.45) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html.hn-theme-dark .mr-profit-col p:first-child,
html.hn-theme-dark .mr-date-col p:first-child,
body.hn-theme-dark .mr-profit-col p:first-child,
body.hn-theme-dark .mr-date-col p:first-child {
  color: #86efac !important;
}

html.hn-theme-dark .mr-profit-col p:last-child,
html.hn-theme-dark .mr-date-col p:last-child,
body.hn-theme-dark .mr-profit-col p:last-child,
body.hn-theme-dark .mr-date-col p:last-child {
  color: #f3e8ff !important;
}

html.hn-theme-dark .mr-profit-col p:last-child small,
body.hn-theme-dark .mr-profit-col p:last-child small {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Home action cards — keep colorful gradients */
body.hn-theme-dark .tf-login-card,
body.hn-theme-dark .tf-signup-card {
  border: none !important;
}

/* Tables / lists */
body.hn-theme-dark table,
body.hn-theme-dark .list-group-item {
  background: transparent !important;
  color: var(--gd-text) !important;
  border-color: var(--gd-glass-border) !important;
}

/* Offday session modal */
body.hn-theme-dark .offday-title {
  color: #fff !important;
}

body.hn-theme-dark .offday-desc {
  color: var(--gd-text-dim) !important;
}

/* Skeleton / empty */
body.hn-theme-dark .text-center.py-10,
body.hn-theme-dark .text-center.py-20 {
  color: var(--gd-text-dim);
}

/* Links */
body.hn-theme-dark a:not(.nav-item):not(.dd-item):not(.gh-bal-right):not(.gh-game-card):not(.pink-gradient):not(.pt-gradient):not(.tf-login-card):not(.tf-signup-card):not(.pd-btn-large):not(.tf-start-task-btn) {
  color: #c77dff;
}

/* iziToast / modals on dark */
body.hn-theme-dark .modal-content {
  background: rgba(20, 4, 44, 0.95) !important;
  color: #fff !important;
  border: 1px solid var(--gd-glass-border) !important;
}

html.hn-theme-light body.hn-theme-light,
body.hn-theme-light {
  background: #ffffff !important;
}

/* Home guest page — tutorial / plans badges */
html.hn-theme-dark .bg-pink-50,
body.hn-theme-dark .bg-pink-50 {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #e9d5ff !important;
  border-color: rgba(199, 125, 255, 0.35) !important;
}

html.hn-theme-dark .text-pink-500,
body.hn-theme-dark .text-pink-500 {
  color: #e9d5ff !important;
}

html.hn-theme-dark .swiper-banner,
body.hn-theme-dark .swiper-banner {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Page-specific light themes — override when dark is enabled
   ═══════════════════════════════════════════════════════════════ */

html.hn-theme-dark body.profile-dashboard-theme,
html.hn-theme-dark body.my-team-theme,
html.hn-theme-dark body.deposit-funds-theme,
html.hn-theme-dark body.tf-dashboard-theme {
  background: var(--gd-bg) !important;
  background-image: none !important;
}

/* ── Dashboard (think-finance) ── */
html.hn-theme-dark .tf-profit-booster {
  background: rgba(255, 140, 0, 0.12) !important;
  border: 1px solid rgba(255, 152, 0, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
html.hn-theme-dark .tf-pb-text h4 {
  color: rgba(255, 200, 150, 0.85) !important;
}
html.hn-theme-dark .tf-pb-text h3 {
  color: #fff !important;
}
html.hn-theme-dark .tf-invite-banner {
  background: rgba(255, 106, 0, 0.14) !important;
  border: 1px solid rgba(255, 152, 0, 0.35) !important;
}
html.hn-theme-dark .tf-invite-text p {
  color: #f3e8ff !important;
}
html.hn-theme-dark .tf-shop-offer {
  background: var(--gd-glass) !important;
  border: 1px solid var(--gd-glass-border) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
}
html.hn-theme-dark .tf-shop-title-bar {
  color: #f3e8ff !important;
  background: transparent !important;
}
html.hn-theme-dark .tf-overview-item {
  background: var(--gd-glass) !important;
  border: 1px solid var(--gd-glass-border) !important;
}
html.hn-theme-dark .tf-ov-info span {
  color: #f3e8ff !important;
}

/* ── Plan page (Tailwind utility rows) ── */
html.hn-theme-dark .bg-white.border-2,
html.hn-theme-dark .bg-white {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
}
html.hn-theme-dark .bg-purple-50,
html.hn-theme-dark .bg-green-50,
html.hn-theme-dark .bg-blue-50,
html.hn-theme-dark .bg-amber-50 {
  background: rgba(255, 255, 255, 0.07) !important;
}
html.hn-theme-dark .bg-purple-100,
html.hn-theme-dark .bg-green-100,
html.hn-theme-dark .bg-blue-100 {
  background: rgba(255, 255, 255, 0.12) !important;
}
html.hn-theme-dark .border-purple-100,
html.hn-theme-dark .border-green-100,
html.hn-theme-dark .border-blue-100,
html.hn-theme-dark .border-amber-200 {
  border-color: var(--gd-glass-border) !important;
}
html.hn-theme-dark .text-purple-600,
html.hn-theme-dark .text-green-600,
html.hn-theme-dark .text-blue-600 {
  color: #e9d5ff !important;
}
html.hn-theme-dark .text-purple-500,
html.hn-theme-dark .text-green-500,
html.hn-theme-dark .text-blue-500 {
  color: #c77dff !important;
}
html.hn-theme-dark .text-amber-900,
html.hn-theme-dark .text-amber-800 {
  color: #fde68a !important;
}
html.hn-theme-dark .shadow-pink-50 {
  --tw-shadow-color: rgba(0, 0, 0, 0.35);
}

/* Investment plan stat chips — bg-gray-50 stays light; force readable text */
html.hn-theme-dark .pink-box .bg-gray-50,
body.hn-theme-dark .pink-box .bg-gray-50 {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--gd-glass-border) !important;
}
html.hn-theme-dark .pink-box .bg-gray-50 .text-gray-800,
html.hn-theme-dark .pink-box .bg-gray-50 .font-black.text-gray-800,
body.hn-theme-dark .pink-box .bg-gray-50 .text-gray-800,
body.hn-theme-dark .pink-box .bg-gray-50 .font-black.text-gray-800 {
  color: #f3e8ff !important;
}
html.hn-theme-dark .pink-box .bg-gray-50 .text-gray-400,
body.hn-theme-dark .pink-box .bg-gray-50 .text-gray-400 {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .pink-box .bg-gray-50 .text-green-500,
body.hn-theme-dark .pink-box .bg-gray-50 .text-green-500 {
  color: #86efac !important;
}

/* ── Shop page (#modernShopApp inline styles) ── */
html.hn-theme-dark #modernShopApp,
html.hn-theme-dark #modernShopApp .app-container {
  background: transparent !important;
  color: #f3e8ff !important;
  box-shadow: none !important;
}
html.hn-theme-dark #modernShopApp .action-buttons {
  background: transparent !important;
}
html.hn-theme-dark #modernShopApp .action-btn {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
  color: #f3e8ff !important;
}
html.hn-theme-dark #modernShopApp .action-btn:active {
  background: rgba(255, 255, 255, 0.1) !important;
}
html.hn-theme-dark #modernShopApp .section-title,
html.hn-theme-dark #modernShopApp .product-title {
  color: #f3e8ff !important;
}
html.hn-theme-dark #modernShopApp .product-card {
  background: var(--gd-glass) !important;
  border: 1px solid var(--gd-glass-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html.hn-theme-dark #modernShopApp .product-img {
  background: rgba(255, 255, 255, 0.06) !important;
}
html.hn-theme-dark #modernShopApp .discount-text,
html.hn-theme-dark #modernShopApp .old-price {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark #modernShopApp .new-price {
  color: #e9d5ff !important;
}
html.hn-theme-dark #modernShopApp .footer {
  background: transparent !important;
  border-top-color: var(--gd-glass-border) !important;
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark #modernShopApp .spin-modal-card {
  background: rgba(20, 4, 44, 0.98) !important;
  color: #fff !important;
  border: 1px solid var(--gd-glass-border) !important;
}

/* ── Profile dashboard ── */
html.hn-theme-dark .pd-card,
html.hn-theme-dark .pd-stat-box {
  background: var(--gd-glass) !important;
  border: 1px solid var(--gd-glass-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
html.hn-theme-dark .pd-balance-row {
  background: rgba(123, 47, 247, 0.15) !important;
}
html.hn-theme-dark .pd-label,
html.hn-theme-dark .pd-amount {
  color: #f3e8ff !important;
}
html.hn-theme-dark .pd-header h1 {
  color: #e9d5ff !important;
}
html.hn-theme-dark .pd-header p,
html.hn-theme-dark .pd-joined,
html.hn-theme-dark .pd-stat-title {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .pd-profile-info h2,
html.hn-theme-dark .pd-stat-amt {
  color: #f3e8ff !important;
}
html.hn-theme-dark .pd-stat-amt span {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .pd-earnings-card {
  background: rgba(34, 197, 94, 0.12) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
}
html.hn-theme-dark .pd-earnings-label,
html.hn-theme-dark .pd-earnings-amt {
  color: #f3e8ff !important;
}
html.hn-theme-dark .pd-kyc-alert {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--gd-glass-border) !important;
  color: #f3e8ff !important;
}
html.hn-theme-dark .pd-kyc-alert--pending {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}
html.hn-theme-dark .pd-avatar-inner {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ── My Team / Referrals ── */
html.hn-theme-dark .rt-commission-card,
html.hn-theme-dark .rt-stats-card,
html.hn-theme-dark .rt-stat-box,
html.hn-theme-dark .rt-tree-card {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
html.hn-theme-dark .rt-ref-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--gd-glass-border) !important;
  color: #f3e8ff !important;
}
html.hn-theme-dark .rt-ref-label,
html.hn-theme-dark .rt-stat-label,
html.hn-theme-dark .rt-stat-value,
html.hn-theme-dark .rt-node-name,
html.hn-theme-dark .rt-node-join {
  color: #f3e8ff !important;
}
html.hn-theme-dark .rt-level-btn:not(.active) {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
  color: #e9d5ff !important;
}
html.hn-theme-dark .rt-tree-body {
  background: transparent !important;
}
html.hn-theme-dark .rt-header h1 {
  color: #e9d5ff !important;
}
html.hn-theme-dark .rt-header p,
html.hn-theme-dark .rt-section-title {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .rt-card-inner.rt-inner-blue {
  background: rgba(67, 97, 238, 0.18) !important;
}
html.hn-theme-dark .rt-card-inner.rt-inner-pink {
  background: rgba(123, 47, 247, 0.18) !important;
}
html.hn-theme-dark .rt-card-inner.rt-inner-peach {
  background: rgba(255, 107, 53, 0.15) !important;
}
html.hn-theme-dark .rt-commission-item {
  color: #f3e8ff !important;
}

/* ── Deposit / withdraw / premium pages ── */
html.hn-theme-dark .pt-child-card,
html.hn-theme-dark .pt-method-card,
html.hn-theme-dark .df-amount-btn,
html.hn-theme-dark .df-gateway-row,
html.hn-theme-dark .gh-game-card,
html.hn-theme-dark .mr-mining-card {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
  color: var(--gd-text) !important;
}

html.hn-theme-dark body.deposit-funds-theme .df-page,
html.hn-theme-dark body.deposit-funds-theme .pt-page {
  background: transparent !important;
}

/* ── Dashboard gradient cards — readable text ── */
html.hn-theme-dark .tf-play-banner,
html.hn-theme-dark .tf-bm-card {
  color: #fff !important;
}

/* Task Center — Start Task button */
html.hn-theme-dark a.tf-start-task-btn,
html.hn-theme-dark .tf-start-task-btn,
body.hn-theme-dark a.tf-start-task-btn,
body.hn-theme-dark .tf-start-task-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #ff6a00 100%) !important;
  color: #fff !important;
}
html.hn-theme-dark a.tf-start-task-btn:hover,
body.hn-theme-dark a.tf-start-task-btn:hover {
  color: #fff !important;
}
html.hn-theme-dark .tf-pw-text h4,
html.hn-theme-dark .tf-bm-card h4 {
  color: #fff !important;
}
html.hn-theme-dark .tf-pw-text p,
html.hn-theme-dark .tf-bm-card p,
html.hn-theme-dark .tf-bm-status {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
}

/* ── Promo code form ── */
html.hn-theme-dark .bg-pink-50.border-2 {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(199, 125, 255, 0.25) !important;
}
html.hn-theme-dark .bg-pink-100 {
  background: rgba(124, 58, 237, 0.25) !important;
}
html.hn-theme-dark input.bg-transparent,
html.hn-theme-dark input.flex-1 {
  color: #f3e8ff !important;
}
html.hn-theme-dark input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* ── Withdraw / deposit history logs ── */
html.hn-theme-dark .nav-pill:not(.pink-gradient):not(.text-white) {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(199, 125, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
html.hn-theme-dark .bg-green-50,
html.hn-theme-dark .bg-yellow-50,
html.hn-theme-dark .bg-red-50 {
  background: rgba(255, 255, 255, 0.1) !important;
}
html.hn-theme-dark .text-green-600,
html.hn-theme-dark .text-yellow-600,
html.hn-theme-dark .text-red-500 {
  color: #e9d5ff !important;
}
html.hn-theme-dark .bg-blue-100 {
  background: rgba(59, 130, 246, 0.2) !important;
}

/* ── Trading page ── */
html.hn-theme-dark #tradingview_chart {
  background: rgba(20, 4, 44, 0.5) !important;
}

/* ── Dashboard BIG WIN cards (Daily Check In / Salary) ── */
html.hn-theme-dark .tf-bw-icon,
html.hn-theme-dark .tf-bm-icon {
  background: rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
}
html.hn-theme-dark .tf-bw-icon i,
html.hn-theme-dark .tf-bm-icon i {
  color: #fff !important;
  opacity: 1 !important;
}
html.hn-theme-dark .tf-bw-card h4,
html.hn-theme-dark .tf-bw-card p {
  color: #fff !important;
  opacity: 1 !important;
}

/* ── Status badges (invest log, etc.) ── */
html.hn-theme-dark .bg-gray-100 {
  background: rgba(100, 116, 139, 0.45) !important;
}
html.hn-theme-dark .bg-gray-100.text-gray-500,
html.hn-theme-dark .absolute.bg-gray-100 {
  color: #f1f5f9 !important;
}
html.hn-theme-dark .bg-red-100 {
  background: rgba(239, 68, 68, 0.28) !important;
}
html.hn-theme-dark .bg-red-100 .text-red-500,
html.hn-theme-dark .bg-red-100 i.text-red-500 {
  color: #fca5a5 !important;
}
html.hn-theme-dark .bg-green-100 .text-green-500,
html.hn-theme-dark .bg-green-100 i.text-green-500 {
  color: #86efac !important;
}

/* ── Referral tree nodes ── */
html.hn-theme-dark .rt-tree-parent {
  background: rgba(255, 152, 0, 0.14) !important;
  border: 1px solid rgba(255, 152, 0, 0.25) !important;
}
html.hn-theme-dark .rt-tree-child {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(199, 125, 255, 0.22) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}
html.hn-theme-dark .rt-tree-children::before,
html.hn-theme-dark .rt-tree-child::before {
  background: rgba(199, 125, 255, 0.45) !important;
}
html.hn-theme-dark .rt-node-you {
  color: #fbbf24 !important;
}

/* ── Target referral page ── */
html.hn-theme-dark #targetReferralApp {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(199, 125, 255, 0.15) !important;
}
html.hn-theme-dark #targetReferralApp .desc-card,
html.hn-theme-dark #targetReferralApp .summary-card,
html.hn-theme-dark #targetReferralApp .reward-card {
  background: var(--gd-glass) !important;
  border: 1px solid var(--gd-glass-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
html.hn-theme-dark #targetReferralApp .desc-title,
html.hn-theme-dark #targetReferralApp .summary-value,
html.hn-theme-dark #targetReferralApp .reward-title {
  color: #f3e8ff !important;
}
html.hn-theme-dark #targetReferralApp .desc-sub,
html.hn-theme-dark #targetReferralApp .summary-label,
html.hn-theme-dark #targetReferralApp .reward-sub,
html.hn-theme-dark #targetReferralApp .progress-text {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark #targetReferralApp .icon-coin {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}
html.hn-theme-dark #targetReferralApp .gift-wrap {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
}
html.hn-theme-dark #targetReferralApp .progress-bg {
  background: rgba(255, 255, 255, 0.12) !important;
}
html.hn-theme-dark #targetReferralApp .claim-btn.pending {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ── Deposit funds page ── */
html.hn-theme-dark .deposit-page .df-main-card,
html.hn-theme-dark .deposit-page .df-payment-card {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
html.hn-theme-dark .deposit-page .df-card-name {
  color: #f3e8ff !important;
}

/* ── Withdraw premium inputs ── */
html.hn-theme-dark .pt-change-btn {
  background: rgba(123, 47, 247, 0.35) !important;
  border-color: rgba(199, 125, 255, 0.35) !important;
  color: #f3e8ff !important;
}
html.hn-theme-dark .pt-input-wrap {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(199, 125, 255, 0.25) !important;
}
html.hn-theme-dark .pt-input-left input,
html.hn-theme-dark .pt-input-label,
html.hn-theme-dark .pt-gateway-status {
  color: #f3e8ff !important;
}
html.hn-theme-dark .pt-quick-box {
  background: rgba(123, 47, 247, 0.2) !important;
  border-color: rgba(199, 125, 255, 0.3) !important;
  color: #e9d5ff !important;
}

/* ── Shop orders ── */
html.hn-theme-dark .order-card,
html.hn-theme-dark .order-item {
  background: var(--gd-glass) !important;
  border-color: var(--gd-glass-border) !important;
}
html.hn-theme-dark .order-k {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .order-v {
  color: #f3e8ff !important;
}
html.hn-theme-dark .order-sub {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .order-badge-new {
  background: rgba(99, 102, 241, 0.25) !important;
  color: #c7d2fe !important;
}
html.hn-theme-dark .order-badge-processing {
  background: rgba(251, 146, 60, 0.2) !important;
  color: #fdba74 !important;
}
html.hn-theme-dark .order-badge-completed {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #86efac !important;
}
html.hn-theme-dark .order-badge-cancelled {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
}

/* ── Shop footer / CMS block ── */
html.hn-theme-dark #modernShopApp .shop-cms-block,
html.hn-theme-dark #modernShopApp .products-section,
html.hn-theme-dark #modernShopApp .slider-container {
  background: transparent !important;
}
html.hn-theme-dark #modernShopApp .order-btn--disabled {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}
html.hn-theme-dark #modernShopApp .discount-text {
  background: rgba(124, 58, 237, 0.25) !important;
  color: #e9d5ff !important;
}

/* ── AI Bots — Configure Bot bottom sheet ── */
html.hn-theme-dark #investModalContent {
  background: rgba(18, 4, 42, 0.98) !important;
  border-top: 1px solid var(--gd-glass-border) !important;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55) !important;
}
html.hn-theme-dark #investModalContent .text-gray-800,
html.hn-theme-dark #investModalContent .font-black.text-gray-800,
html.hn-theme-dark #investModalContent input[type="number"] {
  color: #f3e8ff !important;
}
html.hn-theme-dark #investModalContent .text-gray-500,
html.hn-theme-dark #investModalContent .text-gray-400 {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark #investModalContent .border-pink-50,
html.hn-theme-dark #investModalContent .border-b {
  border-color: var(--gd-glass-border) !important;
}
html.hn-theme-dark #investModalContent .bg-gray-200 {
  background: rgba(255, 255, 255, 0.2) !important;
}
html.hn-theme-dark #investModalContent label > div.border-2 {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--gd-glass-border) !important;
}
html.hn-theme-dark #investModalContent input:checked + div {
  background: rgba(124, 58, 237, 0.28) !important;
  border-color: #c77dff !important;
}
html.hn-theme-dark #investModalContent .bg-pink-50.border-2 {
  background: rgba(124, 58, 237, 0.15) !important;
  border-color: rgba(199, 125, 255, 0.35) !important;
}
html.hn-theme-dark #investModalContent .text-pink-400,
html.hn-theme-dark #investModalContent .text-pink-500 {
  color: #e9d5ff !important;
}
html.hn-theme-dark #investModalContent input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}
html.hn-theme-dark #investModalContent button.bg-pink-50 {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #e9d5ff !important;
}
html.hn-theme-dark #investModalContent .pink-box {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--gd-glass-border) !important;
}
html.hn-theme-dark #investModalContent button.pink-gradient,
html.hn-theme-dark #investModalContent .pink-gradient {
  color: #fff !important;
}

/* ── Profile action buttons — white text + gradient backgrounds ── */
html.hn-theme-dark body a.pd-btn-large,
html.hn-theme-dark body .pd-btn-large {
  color: #fff !important;
}
html.hn-theme-dark body a.pd-btn-large:hover,
html.hn-theme-dark body .pd-btn-large:hover {
  color: #fff !important;
}
html.hn-theme-dark body a.pd-btn-large i,
html.hn-theme-dark body .pd-btn-large i,
html.hn-theme-dark body .pd-btn-icon-wrap i {
  color: #fff !important;
}
html.hn-theme-dark body .pd-btn-add,
html.hn-theme-dark body .pd-btn-save {
  background: linear-gradient(135deg, #7b2ff7, #5b5bd6) !important;
  color: #fff !important;
}
html.hn-theme-dark body a.pd-btn-dark,
html.hn-theme-dark body .pd-btn-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
  box-shadow: 0 4px 14px rgba(10, 10, 30, 0.45) !important;
  color: #fff !important;
}
html.hn-theme-dark body a.pd-btn-blue-red,
html.hn-theme-dark body .pd-btn-blue-red {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #dc2626 100%) !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4) !important;
  color: #fff !important;
}
html.hn-theme-dark body a.pd-btn-logout,
html.hn-theme-dark body .pd-btn-logout {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%) !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4) !important;
  color: #fff !important;
}

/* ── Settings & Security (password page) ── */
html.hn-theme-dark .ss-header h1 {
  color: #e9d5ff !important;
}
html.hn-theme-dark .ss-header p {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .ss-section-card {
  background: var(--gd-glass) !important;
  border: 1.5px solid rgba(199, 125, 255, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html.hn-theme-dark .ss-form-group label {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark .ss-input-wrap input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(199, 125, 255, 0.45) !important;
  color: #f3e8ff !important;
}
html.hn-theme-dark .ss-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}
html.hn-theme-dark .ss-input-icon {
  color: #c77dff !important;
}
html.hn-theme-dark .ss-btn-password,
html.hn-theme-dark .ss-btn-account {
  color: #fff !important;
}

/* ── Blogs & Tutorials feeds ── */
html.hn-theme-dark #investerBlogFeed .post-card,
html.hn-theme-dark #investerTutorialFeed .post-card {
  background: var(--gd-glass) !important;
  border: 1.5px solid rgba(199, 125, 255, 0.35) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
}
html.hn-theme-dark #investerBlogFeed .profile-name,
html.hn-theme-dark #investerTutorialFeed .profile-name,
html.hn-theme-dark #investerBlogFeed .post-title,
html.hn-theme-dark #investerTutorialFeed .post-title {
  color: #f3e8ff !important;
}
html.hn-theme-dark #investerBlogFeed .post-description,
html.hn-theme-dark #investerTutorialFeed .post-description,
html.hn-theme-dark #investerBlogFeed .publish-date,
html.hn-theme-dark #investerTutorialFeed .publish-date {
  color: var(--gd-text-dim) !important;
}
html.hn-theme-dark #investerBlogFeed .author-tag,
html.hn-theme-dark #investerTutorialFeed .author-tag {
  background: rgba(124, 58, 237, 0.25) !important;
  color: #e9d5ff !important;
  border: 1px solid rgba(199, 125, 255, 0.3);
}
html.hn-theme-dark #investerBlogFeed .read-more,
html.hn-theme-dark #investerTutorialFeed .read-more {
  color: #c77dff !important;
}
html.hn-theme-dark #investerBlogFeed .post-image-container,
html.hn-theme-dark #investerTutorialFeed .post-image-container {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--gd-glass-border);
}
