/* --- Blog Deal Feed v1.4.2 --- */
/* Typography-first, high-density deal feed for blog posts */
/* No logos. No stock images. Pure type hierarchy. */
/* v1.3.3: Controls CSS matched to BOF (column layout, sticky, glass bg, admin-bar offset) */
/* v1.3.0: Sort/filter controls, bdf-hidden, feed wrapper */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Primary: Green — savings CTA only */
    --bdf-accent:        #00C896;
    --bdf-accent-dark:   #00A67D;
    --bdf-accent-light:  #E6FBF5;
    /* Hero: Dark charcoal */
    --bdf-hero-bg-grad:  linear-gradient(145deg, #1e2a3a 0%, #141c28 100%);
    --bdf-hero-text:     #ffffff;
    --bdf-hero-text-sec: #b0bec5;

    /* Neutrals */
    --bdf-text:          #1a2332;
    --bdf-text-sec:      #5c6a7f;
    --bdf-text-muted:    #8b97a8;
    --bdf-bg:            #ffffff;
    --bdf-bg-alt:        #f8fafb;
    --bdf-border:        #e0e7ee;
    --bdf-radius:        16px;
    --bdf-shadow:        0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
    --bdf-shadow-hover:  0 4px 16px rgba(0,0,0,0.10);
    --bdf-tr:            0.2s ease;
}

/* =====================================================================
   COMMON RESET (within blog post context)
   ===================================================================== */
.bdf-hero-deal,
.bdf-standard-deal,
.bdf-editor-note,
.bdf-toc,
.bdf-data-footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    box-sizing: border-box;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bdf-hero-deal *,
.bdf-standard-deal *,
.bdf-editor-note *,
.bdf-toc *,
.bdf-data-footer * {
    box-sizing: border-box;
}

/* =====================================================================
   HERO DEAL — Dark mode card (Slot #1)
   ===================================================================== */
.bdf-hero-deal {
    background: var(--bdf-hero-bg-grad);
    color: var(--bdf-hero-text);
    border-radius: var(--bdf-radius);
    padding: 32px;
    margin: 24px auto;
    position: relative;
    overflow: hidden;
}

.bdf-hero-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bdf-hero-text);
    margin-bottom: 8px;
}

.bdf-hero-discount {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--bdf-accent);
    line-height: 1.1;
    margin-bottom: 12px;
}

.bdf-hero-desc {
    font-size: 1rem;
    font-weight: 400;
    color: var(--bdf-hero-text-sec);
    margin: 0 0 20px;
    max-width: 600px;
}

/* Hero CTA — Solid green (hero-only privilege) */
.bdf-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--bdf-tr), transform 0.15s ease, box-shadow var(--bdf-tr);
    text-decoration: none !important;
    border: none;
    min-height: 48px;
}

.bdf-hero-cta.bdf-cta-code {
    background: var(--bdf-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,200,150,0.3);
}

.bdf-hero-cta.bdf-cta-code:hover {
    background: var(--bdf-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,200,150,0.4);
}

.bdf-hero-cta.bdf-cta-sale {
    background: var(--bdf-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,200,150,0.3);
}

.bdf-hero-cta.bdf-cta-sale:hover {
    background: var(--bdf-accent-dark);
    transform: translateY(-1px);
}

/* Revealed code state */
.bdf-hero-cta.bdf-code-revealed {
    background: var(--bdf-accent-light);
    color: var(--bdf-accent-dark);
    box-shadow: inset 0 0 0 2px var(--bdf-accent);
}

/* SVG Icons (scissors, external link, check) */
.bdf-icon {
    vertical-align: middle;
    flex-shrink: 0;
    display: inline-block;
}

.bdf-hero-cta .bdf-icon,
.bdf-deal-cta .bdf-icon {
    flex-shrink: 0;
}

.bdf-cta-icon-external {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.bdf-cta-masked {
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    letter-spacing: 1px;
    font-weight: 700;
}

.bdf-cta-revealed-code {
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    letter-spacing: 1.5px;
    font-weight: 800;
    font-size: 1.05rem;
}

/* Hero brand page link (SEO anchor) */
.bdf-hero-brand-link {
    display: block;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--bdf-hero-text-sec) !important;
    text-decoration: underline !important;
    opacity: 0.7;
    transition: opacity var(--bdf-tr);
}

.bdf-hero-brand-link:hover {
    opacity: 1;
}

/* =====================================================================
   STANDARD DEAL — Horizontal split card (Slots #2+)
   ===================================================================== */
.bdf-standard-deal {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    margin: 12px auto;
    background: var(--bdf-bg);
    border: 1px solid var(--bdf-border);
    border-radius: var(--bdf-radius);
    box-shadow: var(--bdf-shadow);
    transition: box-shadow var(--bdf-tr), transform 0.15s ease;
}

.bdf-standard-deal:hover {
    box-shadow: var(--bdf-shadow-hover);
    transform: translateY(-2px);
}

/* Left column: typography badge or image thumbnail */
.bdf-deal-left {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdf-typo-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bdf-text-sec);
    flex-shrink: 0;
}

.bdf-deal-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Right column: content */
.bdf-deal-right {
    flex: 1;
    min-width: 0;
}

/* Header: brand name + discount % */
.bdf-deal-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.bdf-brand-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bdf-text);
    text-decoration: none !important;
}

a.bdf-brand-name:hover {
    color: var(--bdf-accent-dark);
}

.bdf-discount-pct {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bdf-accent);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

/* Description */
.bdf-deal-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--bdf-text-sec);
    margin: 4px 0 12px;
    line-height: 1.4;
}

/* Standard CTA — Ghost buttons (BOF pattern: solid green = hero only) */
.bdf-deal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-decoration: none !important;
    border: none;
    min-height: 48px;
    width: 100%;
}

/* Code CTA — Ghost green (inset box-shadow border, NOT solid fill) */
.bdf-deal-cta.bdf-cta-code {
    background: #fff;
    color: #047857;
    box-shadow: inset 0 0 0 2px var(--bdf-accent), 0 1px 3px rgba(0,200,150,0.08);
}

.bdf-deal-cta.bdf-cta-code:hover {
    background: var(--bdf-accent-light);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 2px var(--bdf-accent), 0 4px 12px rgba(0,200,150,0.15);
}

/* Sale CTA — Ghost neutral (subdued to differentiate from code) */
.bdf-deal-cta.bdf-cta-sale {
    background: #fff;
    color: #047857;
    box-shadow: inset 0 0 0 2px #d0d8e0, 0 1px 2px rgba(0,0,0,0.04);
    font-weight: 700;
}

.bdf-deal-cta.bdf-cta-sale:hover {
    background: var(--bdf-accent-light);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 2px var(--bdf-accent);
}

/* Revealed code state for standard card */
.bdf-deal-cta.bdf-code-revealed {
    background: var(--bdf-accent-light);
    color: var(--bdf-accent-dark);
    box-shadow: inset 0 0 0 2px var(--bdf-accent);
}

/* =====================================================================
   URGENCY TAG — Only shown by JS if < 48h
   ===================================================================== */
.bdf-urgency-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #d97706;
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Pulse animation for urgency */
@keyframes bdf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.bdf-urgency-tag.bdf-urgency-visible {
    display: inline-block !important;
    animation: bdf-pulse 2s ease-in-out infinite;
}

/* =====================================================================
   EDITOR'S NOTE — SEO interstitial
   ===================================================================== */
.bdf-editor-note {
    background: var(--bdf-bg-alt);
    border-left: 3px solid var(--bdf-accent);
    border-radius: 0 var(--bdf-radius) var(--bdf-radius) 0;
    padding: 12px 16px;
    margin: 8px auto 16px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--bdf-text-sec);
}

.bdf-en-label {
    font-weight: 700;
    color: var(--bdf-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bdf-en-text a {
    color: var(--bdf-accent-dark) !important;
    text-decoration: underline !important;
    font-weight: 500;
}

.bdf-en-text a:hover {
    color: var(--bdf-accent) !important;
}

/* =====================================================================
   TOC — Sticky brand navigation (mobile only)
   ===================================================================== */
.bdf-toc {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    margin: 0 auto 16px;
    border-bottom: 1px solid var(--bdf-border);
}

.admin-bar .bdf-toc {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .bdf-toc {
        top: 46px;
    }
}

.bdf-toc-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
}

.bdf-toc-scroll::-webkit-scrollbar { display: none; }

.bdf-toc-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.bdf-toc-signal {
    font-size: 0.6rem;
    line-height: 1;
    vertical-align: middle;
}

.bdf-toc-pill.bdf-toc-code {
    background: var(--bdf-accent-light);
    color: var(--bdf-accent-dark);
    border: 1px solid rgba(0,200,150,0.2);
}

.bdf-toc-pill.bdf-toc-sale {
    background: #f1f5f9;
    color: var(--bdf-text-sec);
    border: 1px solid var(--bdf-border);
}

.bdf-toc-pill:hover,
.bdf-toc-pill.bdf-toc-active {
    background: var(--bdf-accent);
    color: #fff;
    border-color: var(--bdf-accent);
}

/* Hide TOC on desktop — feed is short enough to scan */
@media (min-width: 768px) {
    .bdf-toc {
        display: none;
    }
}

/* =====================================================================
   DATA FOOTER — BHI trends section
   ===================================================================== */
.bdf-data-footer {
    background: var(--bdf-bg-alt);
    border: 1px solid var(--bdf-border);
    border-radius: var(--bdf-radius);
    padding: 24px;
    margin: 32px auto;
}

.bdf-df-headline {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--bdf-text);
    margin: 0 0 12px;
}

.bdf-df-analysis {
    font-size: 0.9rem;
    color: var(--bdf-text-sec);
    line-height: 1.6;
    margin: 0 0 16px;
}

/* BHI compact table */
.bdf-bhi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.bdf-bhi-table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.7rem;
    color: var(--bdf-text-muted);
    padding: 6px 8px;
    border-bottom: 2px solid var(--bdf-border);
    text-align: left;
}

.bdf-bhi-table td {
    padding: 8px;
    border-bottom: 1px solid var(--bdf-border);
    color: var(--bdf-text);
}

.bdf-bhi-brand {
    font-weight: 600;
}

.bdf-bhi-signal {
    text-align: center;
    font-size: 1rem;
}

/* BHI Highlights section (reliability badges + pros) */
.bdf-bhi-highlights {
    font-size: 0.8rem;
    color: var(--bdf-text-muted);
    margin: 12px 0 4px;
    line-height: 1.5;
}

.bdf-bhi-highlights-title {
    display: block;
    margin-bottom: 6px;
    color: var(--bdf-text);
}

.bdf-bhi-reliability {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.bdf-bhi-rel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.75rem;
}

.bdf-bhi-rel-label {
    opacity: 0.7;
}

.bdf-bhi-pros-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bdf-bhi-pros-list li {
    margin-bottom: 2px;
}

/* BHI Signal legend */
.bdf-bhi-legend {
    font-size: 0.75rem;
    color: var(--bdf-text-muted);
    margin: 8px 0 0;
    line-height: 1.6;
}

/* =====================================================================
   FEED WRAPPER + SORT/FILTER CONTROLS (v1.3.2, BOF pattern: column, sticky, glass)
   ===================================================================== */
.bdf-feed-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bdf-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 1rem !important;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease, padding 0.25s ease, gap 0.25s ease;
}

/* WordPress admin bar offset */
.admin-bar .bdf-controls {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .bdf-controls {
        top: 46px;
    }
}

/* Filter pills row — matches BOF: flex:1 + min-width:0 to shrink in row */
.bdf-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    transition: gap 0.25s ease;
}

.bdf-filter-pills::-webkit-scrollbar {
    display: none;
}

/* Individual filter pill — matches LOF .lof-filter-chip exactly */
.bdf-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bdf-text);
    background: var(--bdf-bg);
    border: 1.5px solid var(--bdf-border);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
    min-height: 40px;
    position: relative;
    z-index: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.bdf-pill:hover {
    border-color: var(--bdf-accent);
    color: var(--bdf-accent-dark);
    background: var(--bdf-accent-light);
}

.bdf-pill.active {
    background: var(--bdf-accent);
    color: #fff;
    border-color: var(--bdf-accent);
    font-weight: 600;
}

.bdf-pill.active:hover {
    background: var(--bdf-accent-dark);
    border-color: var(--bdf-accent-dark);
    color: #fff;
}

/* Count badge inside pill */
.bdf-pill-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.bdf-pill:not(.active) .bdf-pill-count {
    background: #eef2f6;
    color: var(--bdf-text-muted);
}

/* Sort dropdown target (card-sort-shared renders into this) */
.bdf-sort-target {
    flex-shrink: 0;
}

/* Hidden class for filtered-out cards (CardSort filterAware) */
.bdf-hidden {
    display: none !important;
}

/* Deals container (CardSort target) */
.bdf-deals-container {
    position: relative;
}

/* =====================================================================
   SECTION DIVIDERS (generated as wp:heading by Python)
   ===================================================================== */
.bdf-section-divider {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bdf-text-muted);
    margin: 28px auto 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bdf-border);
    max-width: 800px;
}

/* =====================================================================
   TOAST NOTIFICATION (code copied)
   ===================================================================== */
.bdf-copied-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bdf-text);
    color: #fff;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.bdf-copied-toast.bdf-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================================
   COPY PULSE ANIMATION
   ===================================================================== */
@keyframes bdf-copy-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bdf-copy-pulse {
    animation: bdf-copy-pulse 0.4s ease;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Mobile filter pill mask fade (LOF pattern) */
@media (max-width: 767px) {
    .bdf-filter-pills {
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
}

/* Controls are column by default (pills row above sort row), matching BOF */

/* Mobile (<480px) */
@media (max-width: 479px) {
    .bdf-hero-deal {
        padding: 24px 20px;
    }

    .bdf-hero-brand {
        font-size: 1.2rem;
    }

    .bdf-hero-discount {
        font-size: 2.5rem;
    }

    .bdf-hero-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .bdf-standard-deal {
        padding: 16px;
        gap: 12px;
    }

    .bdf-deal-left {
        flex: 0 0 44px;
    }

    .bdf-typo-badge {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .bdf-deal-thumb {
        width: 44px;
        height: 44px;
    }

    .bdf-discount-pct {
        font-size: 1.2rem;
    }

    .bdf-deal-cta {
        padding: 10px 16px;
    }

    .bdf-data-footer {
        padding: 20px 16px;
    }
}

/* Tablet+ (480px+) */
@media (min-width: 480px) {
    .bdf-hero-deal {
        padding: 36px;
    }
}

/* Desktop (768px+): pills don't need horizontal scroll */
@media (min-width: 768px) {
    .bdf-filter-pills {
        overflow-x: visible;
    }
}

/* =====================================================================
   DARK MODE
   ===================================================================== */
@media (prefers-color-scheme: dark) {
    /* Dark mode: sticky controls glass bg */
    .bdf-controls {
        background: rgba(30,42,56,0.97);
    }

    .bdf-standard-deal {
        background: #1e2a38;
        border-color: #2d3a4a;
        color: #e8ecf0;
    }

    .bdf-brand-name {
        color: #e8ecf0;
    }

    .bdf-deal-desc {
        color: #9ca8b8;
    }

    .bdf-discount-pct {
        color: var(--bdf-accent);
    }

    .bdf-typo-badge {
        background: #2d3a4a;
        color: #9ca8b8;
    }

    /* Dark mode ghost CTAs */
    .bdf-deal-cta.bdf-cta-code {
        background: #1e2a38;
        color: var(--bdf-accent);
        box-shadow: inset 0 0 0 2px var(--bdf-accent);
    }

    .bdf-deal-cta.bdf-cta-sale {
        background: #1e2a38;
        color: #9ca8b8;
        box-shadow: inset 0 0 0 2px #3d4a5a;
    }

    .bdf-editor-note {
        background: #1e2a38;
        color: #9ca8b8;
    }

    .bdf-en-label {
        color: #e8ecf0;
    }

    .bdf-data-footer {
        background: #1e2a38;
        border-color: #2d3a4a;
    }

    .bdf-df-headline {
        color: #e8ecf0;
    }

    .bdf-df-analysis {
        color: #9ca8b8;
    }

    .bdf-bhi-table th {
        color: #64748b;
        border-color: #2d3a4a;
    }

    .bdf-bhi-table td {
        color: #e8ecf0;
        border-color: #2d3a4a;
    }

    .bdf-toc {
        background: rgba(30,42,56,0.97);
        border-color: #2d3a4a;
    }

    .bdf-toc-pill.bdf-toc-sale {
        background: #2d3a4a;
        color: #9ca8b8;
        border-color: #3d4a5a;
    }

    /* Dark mode: avatar badge colors stay deterministic (inline styles) */
    /* Dark mode: icons inherit button text color via currentColor */

    /* Dark mode: filter pills */
    .bdf-pill {
        background: #1e2a38;
        color: #e8ecf0;
        border-color: #3d4a5a;
    }

    .bdf-pill:hover {
        background: #2d3a4a;
        border-color: var(--bdf-accent);
        color: var(--bdf-accent);
    }

    .bdf-pill.active {
        background: var(--bdf-accent);
        color: #fff;
        border-color: var(--bdf-accent);
    }

    .bdf-pill:not(.active) .bdf-pill-count {
        background: #2d3a4a;
        color: #64748b;
    }

    .bdf-feed-wrapper {
        color: #e8ecf0;
    }

    /* Dark mode: section divider */
    .bdf-section-divider {
        color: #64748b;
        border-color: #2d3a4a;
    }

    /* Dark mode: toast (invert for visibility) */
    .bdf-copied-toast {
        background: #e8ecf0;
        color: #1a2332;
    }

    /* Dark mode: TOC code pill (sale pill covered above) */
    .bdf-toc-pill.bdf-toc-code {
        background: rgba(0, 200, 150, 0.15);
        color: var(--bdf-accent);
        border-color: rgba(0, 200, 150, 0.3);
    }

    /* Dark mode: CTA hover states */
    .bdf-deal-cta.bdf-cta-code:hover {
        background: #2d3a4a;
    }

    .bdf-deal-cta.bdf-cta-sale:hover {
        background: #2d3a4a;
    }

    .bdf-deal-cta.bdf-code-revealed {
        background: rgba(0, 200, 150, 0.1);
        color: var(--bdf-accent);
    }

    /* Dark mode: highlights section */
    .bdf-bhi-highlights {
        color: #64748b;
    }

    .bdf-bhi-highlights-title {
        color: #e8ecf0;
    }

    .bdf-bhi-rel-badge {
        background: #2d3a4a;
        color: #9ca8b8;
    }

    .bdf-bhi-rel-label {
        color: #64748b;
    }

    .bdf-bhi-pros-list {
        color: #9ca8b8;
    }

    .bdf-bhi-legend {
        color: #64748b;
    }

    /* Dark mode: urgency tag (amber on dark) */
    .bdf-urgency-tag {
        color: #fbbf24;
        background: rgba(251, 191, 36, 0.15);
    }

    /* Dark mode: card-sort-shared overrides (scoped to .bdf-feed-wrapper) */
    .bdf-feed-wrapper .cs-sort-pill {
        background: #1e2a38 !important;
        color: #e8ecf0 !important;
        border-color: #3d4a5a !important;
    }

    .bdf-feed-wrapper .cs-sort-pill:hover {
        background: #2d3a4a !important;
        border-color: #4d5a6a !important;
    }

    .bdf-feed-wrapper .cs-sort-pill.cs-pill-open {
        border-color: var(--bdf-accent) !important;
        background: rgba(0, 200, 150, 0.1) !important;
    }

    .bdf-feed-wrapper .cs-sort-panel {
        background: #1e2a38 !important;
        border-color: #2d3a4a !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .bdf-feed-wrapper .cs-sort-option {
        color: #e8ecf0 !important;
    }

    .bdf-feed-wrapper .cs-sort-option:hover {
        background: #2d3a4a !important;
    }

    .bdf-feed-wrapper .cs-sort-option.cs-active {
        color: var(--bdf-accent) !important;
        background: rgba(0, 200, 150, 0.1) !important;
    }
}

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    .bdf-pill,
    .bdf-hero-cta,
    .bdf-deal-cta,
    .bdf-standard-deal,
    .bdf-toc-pill,
    .bdf-urgency-tag,
    .bdf-copied-toast,
    .bdf-hero-brand-link {
        transition: none !important;
        animation: none !important;
    }
}

.bdf-pill:focus-visible,
.bdf-hero-cta:focus-visible,
.bdf-deal-cta:focus-visible,
.bdf-toc-pill:focus-visible {
    outline: 2px solid var(--bdf-accent);
    outline-offset: 2px;
}

/* =====================================================================
   LINK RESET (WordPress theme overrides)
   ===================================================================== */
.bdf-hero-deal a,
.bdf-standard-deal a,
.bdf-editor-note a,
.bdf-data-footer a {
    border-bottom: none !important;
}
