/* ============================================================
   IBN — dark mode for the redesigned components
   Loaded last. Palette follows ibn-dark-mode.css:
   page #08090b · surface #0f1217 · raised #151a21 · line #1f252d
   ============================================================ */

html[data-theme="dark"] {
    --ibn-d-page: #08090b;
    --ibn-d-surface: #0f1217;
    --ibn-d-raised: #151a21;
    --ibn-d-line: #1f252d;
    --ibn-d-text: #eef1f5;
    --ibn-d-body: #c9ced6;
    --ibn-d-muted: #8b94a3;
    --ibn-d-accent: #8b7bff;
}

/* ---------- Header ---------- */
html[data-theme="dark"] .ibn-header .ibn-mainbar {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-header .pfy-logo img.custom-logo,
html[data-theme="dark"] .ibn-header .pfy-logo .custom-logo-link img {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .ibn-tagline {
    color: var(--ibn-d-muted);
}

html[data-theme="dark"] .ibn-tagline::before {
    background: var(--ibn-d-line);
}

html[data-theme="dark"] .ibn-header .site-navigation .navigation > li > a {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .ibn-header .bnq-search input[type="search"],
html[data-theme="dark"] .ibn-header .bnq-search input[type="text"] {
    background: var(--ibn-d-page) !important;
    border-color: var(--ibn-d-line) !important;
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .ibn-header .bnq-search input::placeholder {
    color: var(--ibn-d-muted);
}

/* ---------- Ticker island ---------- */
html[data-theme="dark"] .ibn-ticker {
    background: var(--ibn-d-surface);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .7);
}

html[data-theme="dark"] .ibn-ticker::before {
    background: radial-gradient(circle at 0 100%, transparent 21.5px, var(--ibn-d-surface) 22px);
}

html[data-theme="dark"] .ibn-ticker::after {
    background: radial-gradient(circle at 100% 100%, transparent 21.5px, var(--ibn-d-surface) 22px);
}

@media (max-width: 767px) {
    html[data-theme="dark"] .ibn-ticker::before { background: radial-gradient(circle at 0 100%, transparent 13.5px, var(--ibn-d-surface) 14px); }
    html[data-theme="dark"] .ibn-ticker::after { background: radial-gradient(circle at 100% 100%, transparent 13.5px, var(--ibn-d-surface) 14px); }
}

html[data-theme="dark"] .ibn-ticker-item::after {
    background: var(--ibn-d-line);
}

html[data-theme="dark"] .ibn-ticker-label { color: var(--ibn-d-text); }
html[data-theme="dark"] .ibn-ticker-price { color: var(--ibn-d-body); }
html[data-theme="dark"] .ibn-ticker-icon.is-ethereum { background: #1c2140; }
html[data-theme="dark"] .ibn-ticker-icon.is-apple { background: #1f252d; color: #fff; }
html[data-theme="dark"] .ibn-ticker-change.is-up { color: #4ade80; }
html[data-theme="dark"] .ibn-ticker-change.is-down { color: #f87171; }

/* ---------- Breadcrumb ---------- */
html[data-theme="dark"] .benqu-breadcrumb {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
    border-bottom: 1px solid var(--ibn-d-line) !important;
}

html[data-theme="dark"] .benqu-breadcrumb .breadcrumb-item li,
html[data-theme="dark"] .benqu-breadcrumb .breadcrumb-item li a {
    color: var(--ibn-d-muted) !important;
}

html[data-theme="dark"] .benqu-breadcrumb .breadcrumb-item li + li::before {
    color: #3a414c;
}

/* ---------- Card shells (home grids, archives, news grid, partners) ---------- */
html[data-theme="dark"] .pfy-post-item.pfy-ch,
html[data-theme="dark"] .pfy-post-grid-wrap.grid-style-6 .pfy-post-item,
html[data-theme="dark"] .bnq-post-list-item .pfy-post-item,
html[data-theme="dark"] .ibn-partner-card,
html[data-theme="dark"] .ibn-pp-card {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .pfy-post-item.pfy-ch:hover,
html[data-theme="dark"] .pfy-post-grid-wrap.grid-style-6 .pfy-post-item:hover,
html[data-theme="dark"] .bnq-post-list-item .pfy-post-item:hover,
html[data-theme="dark"] .ibn-partner-card:hover {
    border-color: #2c3440 !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45) !important;
}

/* the old dark theme paints .pfy-post-content dark — inside our cards that made boxes behind titles */
html[data-theme="dark"] .pfy-post-item .pfy-post-content,
html[data-theme="dark"] .pfy-post-item .benqu__post-content,
html[data-theme="dark"] .pfy-post-item .pfy-post-title,
html[data-theme="dark"] .pfy-post-item .benqu__post-title,
html[data-theme="dark"] .ibn-partner-body {
    background: transparent !important;
}

html[data-theme="dark"] .pfy-post-item .pfy-post-title a,
html[data-theme="dark"] .ibn-partner-card .partner-title {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .pfy-post-item:hover .pfy-post-title a,
html[data-theme="dark"] .ibn-partner-card:hover .partner-title {
    color: var(--ibn-d-accent) !important;
}

html[data-theme="dark"] .pfy-post-excerpt,
html[data-theme="dark"] .bnq-post-list-item .pfy-post-excerpt {
    color: var(--ibn-d-muted) !important;
}

html[data-theme="dark"] .pfy-post-gd-meta li,
html[data-theme="dark"] .pfy-post-gd-meta li a,
html[data-theme="dark"] .pfy-post-item.pfy-ch .pfy-post-content > ul li,
html[data-theme="dark"] .pfy-post-item.pfy-ch .pfy-post-content > ul li a {
    color: var(--ibn-d-muted) !important;
}

html[data-theme="dark"] .pfy-post-thumb.pfy-thumb-placeholder > a {
    background: linear-gradient(135deg, #141922 0%, #1a2130 100%) !important;
}

html[data-theme="dark"] .pfy-post-thumb.pfy-thumb-placeholder > a img,
html[data-theme="dark"] .bnq-post-list-item .pfy-post-item .pfy-post-thumb.pfy-thumb-placeholder > a img,
html[data-theme="dark"] .pfy-post-grid-wrap .pfy-post-item .pfy-post-thumb.pfy-thumb-placeholder > a img {
    filter: brightness(0) invert(1) !important;
    opacity: .3 !important;
}

/* partners directory tiles */
html[data-theme="dark"] .ibn-partner-media {
    background: linear-gradient(160deg, #141922 0%, #10141b 100%) !important;
}

html[data-theme="dark"] .ibn-partner-foot {
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-partner-site {
    color: var(--ibn-d-muted) !important;
}

html[data-theme="dark"] .ibn-partners-hero h1 { color: var(--ibn-d-text) !important; }
html[data-theme="dark"] .ibn-partners-hero p { color: var(--ibn-d-muted) !important; }
html[data-theme="dark"] .ibn-partners-eyebrow { background: #1c2140; color: #b4aaff; }

/* ---------- Section headings, tabs, pagination ---------- */
html[data-theme="dark"] .benqu-section-title-wrap h2 {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .benqu-section-title-wrap span {
    background: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .pfy-post-tab-list ul.nav.nav-pills {
    background: var(--ibn-d-surface) !important;
}

html[data-theme="dark"] .pfy-post-tab-list .nav .nav-item .nav-link:not(.active) {
    color: var(--ibn-d-muted) !important;
}

html[data-theme="dark"] .pfy-post-tab-list .nav .nav-item .nav-link:not(.active):hover {
    background: var(--ibn-d-raised) !important;
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .pfy-post-tab-list .pfy-post-grid-wrap.grid-style-tb .pfy-post-item {
    background: transparent !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .pfy-pagination ul {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .pfy-pagination ul li .page-numbers:not(.current) {
    color: var(--ibn-d-body) !important;
}

html[data-theme="dark"] .pfy-pagination ul li a.page-numbers:hover {
    background: var(--ibn-d-raised) !important;
}

/* ---------- Sidebar tag cloud ---------- */
html[data-theme="dark"] .widget_tag_cloud .tagcloud a,
html[data-theme="dark"] .pfy_single_post_wrapper .entry-footer .tags-links a {
    background: var(--ibn-d-raised) !important;
    border-color: transparent !important;
    color: var(--ibn-d-body) !important;
}

html[data-theme="dark"] .widget_tag_cloud .tagcloud a:hover,
html[data-theme="dark"] .pfy_single_post_wrapper .entry-footer .tags-links a:hover {
    background: #1c2140 !important;
    color: #c4bcff !important;
}

html[data-theme="dark"] .ibn-tags-toggle:hover {
    background: var(--ibn-d-raised) !important;
}

/* ---------- Desktop side panel (post widget) ---------- */
html[data-theme="dark"] .pfy-sidebar-nav-widget .pfy-post-item .pfy-post-content,
html[data-theme="dark"] .pfy-sidebar-nav-widget .pfy-post-item .pfy-post-title,
html[data-theme="dark"] .pfy-sidebar-nav-widget .pfy-post-item .benqu__post-title {
    background: transparent !important;
}

html[data-theme="dark"] .pfy-sidebar-nav-widget .pfy-post-grid-wrap.grid-style-tb .pfy-post-item .pfy-post-title a {
    color: rgba(255, 255, 255, .9) !important;
}

/* ---------- Single post ---------- */
html[data-theme="dark"] .pfy-single-post-meta {
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-font-controls {
    background: var(--ibn-d-surface);
}

html[data-theme="dark"] .ibn-font-controls .ibn-font-btn {
    color: var(--ibn-d-muted);
}

html[data-theme="dark"] .ibn-font-controls .ibn-font-btn:hover {
    background: var(--ibn-d-raised);
    color: var(--ibn-d-text);
}

html[data-theme="dark"] .pfy-single-post-meta .ibn-bookmark-btn {
    background: var(--ibn-d-surface);
    border-color: var(--ibn-d-line);
    color: var(--ibn-d-body);
}

html[data-theme="dark"] .pfy-single-post-meta .ibn-bookmark-btn.ibn-bookmarked {
    background: #1c2140;
    border-color: #3b3f7a;
    color: #c4bcff;
}

html[data-theme="dark"] .pfy-single-post-meta .bnq__social-top .social-box a,
html[data-theme="dark"] .entry-footer .social-box a,
html[data-theme="dark"] .entry-footer .bnq-social-sharing a {
    background: transparent !important;
    border-color: #2a313b !important;
    color: var(--ibn-d-body) !important;
}

html[data-theme="dark"] .pfy-single-post-meta .bnq__social-top .social-box a i,
html[data-theme="dark"] .entry-footer .social-box a i {
    color: inherit !important;
}

html[data-theme="dark"] .pfy-single-post-meta .bnq__social-top .social-box a:hover,
html[data-theme="dark"] .entry-footer .social-box a:hover {
    border-color: var(--ibn-d-accent) !important;
    color: #fff !important;
}

html[data-theme="dark"] .pfy_single_post_wrapper .entry-footer {
    background: var(--ibn-d-surface) !important;
}

html[data-theme="dark"] .ibn-post-tags {
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-share-label,
html[data-theme="dark"] .ibn-rating-label {
    color: var(--ibn-d-body) !important;
}

html[data-theme="dark"] .ibn-vote-btn {
    background: transparent;
    border-color: #2a313b;
    color: var(--ibn-d-body);
}

html[data-theme="dark"] .ibn-vote-btn:hover:not(:disabled),
html[data-theme="dark"] .ibn-vote-up.ibn-voted {
    background: #1c2140;
    border-color: #3b3f7a;
    color: #c4bcff;
}

html[data-theme="dark"] .entry-content blockquote {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .entry-content th {
    background: var(--ibn-d-surface) !important;
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .entry-content th,
html[data-theme="dark"] .entry-content td {
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .entry-content ol > li::before {
    background: #1c2140;
    color: #c4bcff;
}

/* ---------- Business tools (calculators) ---------- */
html[data-theme="dark"] .ibn-tool-app {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-tool-app label,
html[data-theme="dark"] .ibn-tool-app h3,
html[data-theme="dark"] .ibn-tool-app h4,
html[data-theme="dark"] .ibn-inv-section-title {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .ibn-tool-app input[type="number"],
html[data-theme="dark"] .ibn-tool-app input[type="text"],
html[data-theme="dark"] .ibn-tool-app input[type="date"],
html[data-theme="dark"] .ibn-tool-app input[type="email"],
html[data-theme="dark"] .ibn-tool-app textarea,
html[data-theme="dark"] .ibn-tool-app select {
    background: var(--ibn-d-page) !important;
    border-color: #2a313b !important;
    color: var(--ibn-d-text) !important;
}

/* option rows (checkbox cards) */
html[data-theme="dark"] .ibn-tool-app .ibn-form-group label:has(input[type="checkbox"]),
html[data-theme="dark"] .ibn-tool-app label:has(> input[type="checkbox"]) {
    background: var(--ibn-d-page) !important;
    border-color: #2a313b !important;
    color: var(--ibn-d-body) !important;
}

html[data-theme="dark"] .ibn-tool-app label:has(input[type="checkbox"]:checked) {
    border-color: #3b3f7a !important;
    color: #c4bcff !important;
}

html[data-theme="dark"] .ibn-result,
html[data-theme="dark"] .ibn-inv-totals {
    background: var(--ibn-d-raised) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-result-title,
html[data-theme="dark"] .ibn-result-value {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .ibn-result-label {
    color: var(--ibn-d-muted) !important;
}

html[data-theme="dark"] .ibn-result-row {
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-tool-card {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-tool-card-title { color: var(--ibn-d-text) !important; }
html[data-theme="dark"] .ibn-tool-card-desc { color: var(--ibn-d-muted) !important; }

/* ---------- Company submission form ---------- */
html[data-theme="dark"] .ibn-co-submit {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .ibn-co-submit h2,
html[data-theme="dark"] .ibn-co-submit label {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .ibn-co-submit input {
    background: var(--ibn-d-page) !important;
    border-color: #2a313b !important;
    color: var(--ibn-d-text) !important;
}

/* ---------- Partner profile page ---------- */
html[data-theme="dark"] .ibn-pp-heading,
html[data-theme="dark"] .ibn-pp-news-title,
html[data-theme="dark"] .ibn-pp-contacts a {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .ibn-pp-content {
    color: var(--ibn-d-body);
}

html[data-theme="dark"] .ibn-pp-contacts a:hover,
html[data-theme="dark"] .ibn-pp-news-item:hover {
    background: var(--ibn-d-raised) !important;
}

html[data-theme="dark"] .ibn-pp-ic,
html[data-theme="dark"] .ibn-pp-count {
    background: #1c2140;
    color: #c4bcff;
}

html[data-theme="dark"] .ibn-pp-back { color: var(--ibn-d-muted) !important; }

/* ---------- Popups (hours, saved posts, advertising) ---------- */
html[data-theme="dark"] .ibn-hours-box,
html[data-theme="dark"] .ibn-saved-box,
html[data-theme="dark"] .ibn-ad-box {
    background: var(--ibn-d-surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px var(--ibn-d-line);
}

html[data-theme="dark"] .ibn-hours-head h3,
html[data-theme="dark"] .ibn-saved-head h3,
html[data-theme="dark"] .ibn-saved-name,
html[data-theme="dark"] .ibn-ad-card-text strong,
html[data-theme="dark"] .ibn-pp-time {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .ibn-pp-day { color: var(--ibn-d-body); }

html[data-theme="dark"] .ibn-pp-hours li.is-today {
    background: #1c2140;
}

html[data-theme="dark"] .ibn-hours-close,
html[data-theme="dark"] .ibn-saved-close,
html[data-theme="dark"] .ibn-ad-copy {
    background: var(--ibn-d-raised);
    color: var(--ibn-d-body);
}

html[data-theme="dark"] .ibn-saved-item:hover {
    background: var(--ibn-d-raised);
}

html[data-theme="dark"] .ibn-saved-thumb {
    background: #1c2140;
}

html[data-theme="dark"] .ibn-saved-foot,
html[data-theme="dark"] .ibn-ad-card {
    border-color: var(--ibn-d-line);
}

/* ---------- Mobile drawer ---------- */
html[data-theme="dark"] .slide-bar.ibn-drawer {
    background: var(--ibn-d-surface);
}

html[data-theme="dark"] .slide-bar.ibn-drawer .header-mobile-search input {
    background: var(--ibn-d-page);
    border-color: #2a313b;
    color: var(--ibn-d-text);
}

html[data-theme="dark"] .slide-bar.ibn-drawer #pfy-mobile-menu > li > a {
    color: var(--ibn-d-text) !important;
    background: transparent;
}

html[data-theme="dark"] .slide-bar.ibn-drawer #pfy-mobile-menu > li > a:hover,
html[data-theme="dark"] .slide-bar.ibn-drawer #pfy-mobile-menu > li.current-menu-item > a {
    background: #1c2140 !important;
    color: #c4bcff !important;
}

html[data-theme="dark"] .slide-bar.ibn-drawer #pfy-mobile-menu > li > a::after {
    color: #3a414c;
}

html[data-theme="dark"] .ibn-drawer-foot {
    background: var(--ibn-d-page);
    border-color: var(--ibn-d-line);
}

html[data-theme="dark"] .ibn-drawer-rate,
html[data-theme="dark"] .ibn-drawer-social a {
    background: var(--ibn-d-surface);
    border-color: var(--ibn-d-line);
}

html[data-theme="dark"] .ibn-drawer-rate-label { color: var(--ibn-d-text); }
html[data-theme="dark"] .ibn-drawer-rate-price { color: var(--ibn-d-body); }
html[data-theme="dark"] .ibn-drawer-social a { color: var(--ibn-d-body); }

/* ---------- Round 2: leftovers found in screenshots ---------- */
/* homepage Latest/Trending rail titles (light rule uses 4-class selector + !important) */
html[data-theme="dark"] .pfy-post-tab-list .pfy-post-grid-wrap.grid-style-tb .pfy-post-title a,
html[data-theme="dark"] .pfy-post-tab-list .pfy-post-grid-wrap.grid-style-tb .benqu__post-title a {
    color: var(--ibn-d-text) !important;
}

html[data-theme="dark"] .pfy-post-tab-list .pfy-post-grid-wrap.grid-style-tb .pfy-post-item:hover .pfy-post-title a {
    color: var(--ibn-d-accent) !important;
}

/* sidebar widgets: light borders and near-black headings */
html[data-theme="dark"] .sidebar .widget,
html[data-theme="dark"] #secondary .widget,
html[data-theme="dark"] .pfy_single_post_wrapper #secondary .widget {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .sidebar .widget-title,
html[data-theme="dark"] #secondary .widget-title,
html[data-theme="dark"] #secondary .benqu-section-title-wrap p,
html[data-theme="dark"] #secondary .benqu-section-title-wrap h2 {
    color: var(--ibn-d-text) !important;
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] #secondary .benqu-section-title-wrap span {
    background: var(--ibn-d-line) !important;
}

/* light hairlines: between infinite-scroll posts, tool page divider, byline */
html[data-theme="dark"] .bnq__post_wap_loop + .bnq__post_wap_loop,
html[data-theme="dark"] .ajax_top_space,
html[data-theme="dark"] .ibn-tool-page hr,
html[data-theme="dark"] .ibn-tool-content,
html[data-theme="dark"] .ibn-tool-header,
html[data-theme="dark"] .entry-content hr,
html[data-theme="dark"] .pfy_single_post_wrapper hr {
    border-color: var(--ibn-d-line) !important;
}

html[data-theme="dark"] .entry-content hr,
html[data-theme="dark"] .ibn-tool-page hr {
    background: var(--ibn-d-line) !important;
}

/* ── Round 3: catalog card tops, mobile menu button ───────────────── */
[data-theme="dark"] .ibn-tool-card-icon {
	background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(99,102,241,.08)) !important;
	color: #7aa7ff !important;
	border-bottom: 1px solid var(--ibn-d-line);
}
[data-theme="dark"] .ibn-tool-card:nth-child(5n+2) .ibn-tool-card-icon { background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,197,94,.05)) !important; color: #4ade80 !important; }
[data-theme="dark"] .ibn-tool-card:nth-child(5n+3) .ibn-tool-card-icon { background: linear-gradient(135deg, rgba(234,179,8,.15), rgba(234,179,8,.05)) !important; color: #facc15 !important; }
[data-theme="dark"] .ibn-tool-card:nth-child(5n+4) .ibn-tool-card-icon { background: linear-gradient(135deg, rgba(236,72,153,.15), rgba(236,72,153,.05)) !important; color: #f472b6 !important; }
[data-theme="dark"] .ibn-tool-card:nth-child(5n+5) .ibn-tool-card-icon { background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(139,92,246,.06)) !important; color: #a78bfa !important; }
[data-theme="dark"] .ibn-tool-card-btn {
	background: rgba(139,123,255,.12) !important;
	color: #b3a8ff !important;
}
[data-theme="dark"] .ibn-tool-card:hover .ibn-tool-card-btn {
	background: var(--ibn-d-accent) !important;
	color: #fff !important;
}
[data-theme="dark"] .hamburger_menu {
	background: transparent !important;
}

/* dot-grid page ground, dark variant */
html[data-theme="dark"] .pfy-main-wrapper {
    background-color: var(--ibn-d-page) !important;
    background-image: radial-gradient(circle at center, rgba(255,255,255,.075) 1.5px, transparent 2px) !important;
    background-size: 48px 48px !important;
}
html[data-theme="dark"] .pfy-main-wrapper .pfy-main-container,
html[data-theme="dark"] .pfy-main-wrapper .ibn-tools-archive,
html[data-theme="dark"] .pfy-main-wrapper .ibn-home-feed,
html[data-theme="dark"] .pfy-main-wrapper .benqu-page-interal,
html[data-theme="dark"] .pfy-main-wrapper .bnq-single-con,
html[data-theme="dark"] .pfy-main-wrapper .pfy_single_post_wrapper {
    background: transparent !important;
}

/* market movers card */
html[data-theme="dark"] .ibn-movers {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .ibn-movers-head { border-color: var(--ibn-d-line); }
html[data-theme="dark"] .ibn-movers-icon { background: rgba(139, 123, 255, .14); color: var(--ibn-d-accent); }
html[data-theme="dark"] .ibn-movers-heading strong { color: var(--ibn-d-text); }
html[data-theme="dark"] .ibn-movers-heading small { color: var(--ibn-d-muted); }
html[data-theme="dark"] .ibn-movers-live { color: #4ade80; background: rgba(74, 222, 128, .1); }
html[data-theme="dark"] .ibn-movers-skeleton span { background: linear-gradient(90deg, #151a21 0%, #1b212a 50%, #151a21 100%); background-size: 200% 100%; }

/* lifted header shadow needs more weight on a near-black page */
html[data-theme="dark"] .ibn-header {
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)) drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
}

/* archive header + tag chips */
html[data-theme="dark"] .ibn-arch-head,
html[data-theme="dark"] .ibn-arch-tags { border-color: var(--ibn-d-line) !important; }
html[data-theme="dark"] .ibn-arch-title,
html[data-theme="dark"] .ibn-arch-tags-title { color: var(--ibn-d-text) !important; }
html[data-theme="dark"] .ibn-arch-eyebrow { background: rgba(139,123,255,.14) !important; color: var(--ibn-d-accent) !important; }
html[data-theme="dark"] .ibn-arch-desc { color: var(--ibn-d-body) !important; }
html[data-theme="dark"] .ibn-arch-count { color: var(--ibn-d-muted) !important; }
html[data-theme="dark"] .ibn-arch-count strong { color: var(--ibn-d-body) !important; }
html[data-theme="dark"] .ibn-arch-tags-list a {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
    color: var(--ibn-d-body) !important;
}
html[data-theme="dark"] .ibn-arch-tags-list a:hover {
    border-color: var(--ibn-d-accent) !important;
    color: var(--ibn-d-accent) !important;
    background: var(--ibn-d-raised) !important;
}
html[data-theme="dark"] .ibn-arch-tags-list a span { color: var(--ibn-d-muted) !important; }

/* lari rates block */
html[data-theme="dark"] .ibn-rates-head h2 { color: var(--ibn-d-text) !important; }
html[data-theme="dark"] .ibn-rates-head p,
html[data-theme="dark"] .ibn-rates-source { color: var(--ibn-d-muted) !important; }
html[data-theme="dark"] .ibn-rate-card {
    background: var(--ibn-d-surface) !important;
    border-color: var(--ibn-d-line) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .ibn-rate-code { color: var(--ibn-d-body) !important; }
html[data-theme="dark"] .ibn-rate-value { color: var(--ibn-d-text) !important; }
html[data-theme="dark"] .ibn-rate-value small,
html[data-theme="dark"] .ibn-rate-name { color: var(--ibn-d-muted) !important; }
html[data-theme="dark"] .ibn-rates-table-wrap h3 { color: var(--ibn-d-text) !important; }
html[data-theme="dark"] .ibn-rates-table { border-color: var(--ibn-d-line) !important; }
html[data-theme="dark"] .ibn-rates-table th {
    background: var(--ibn-d-raised) !important;
    color: var(--ibn-d-muted) !important;
    border-color: var(--ibn-d-line) !important;
}
html[data-theme="dark"] .ibn-rates-table td {
    color: var(--ibn-d-body) !important;
    border-color: var(--ibn-d-line) !important;
}
html[data-theme="dark"] .ibn-rates-table td span { color: var(--ibn-d-muted) !important; }

/* infinite-reading skeleton */
html[data-theme="dark"] .ibn-next-skeleton { border-color: var(--ibn-d-line) !important; }
html[data-theme="dark"] .ibn-next-skeleton span {
    background: linear-gradient(90deg, #151a21 0%, #1b212a 50%, #151a21 100%) !important;
    background-size: 200% 100%;
}

/* author archive header */
html[data-theme="dark"] .ibn-arch-head.is-author .ibn-author-photo img { border-color: var(--ibn-d-line) !important; }
