/* === Latest Offers Feed v1.4.7 === */
/* === Clean, Minimal Design - Better UX & SEO === */
/* === With navigation links to brand and category pages === */
/* === v1.4.7: WCAG focus-visible, reduced-motion, dark mode, Rule 1/3 fixes === */

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

/* v1.4.7: Rule 3 — Tailwind Preflight reset */
.lof-wrapper * { box-sizing: border-box !important; }
.lof-wrapper a { line-height: inherit !important; text-decoration: none !important; }

:root {
    /* Brand Colors */
    --lof-primary: #00C896;
    --lof-primary-dark: #00A67D;
    --lof-primary-light: #E6FBF5;
    --lof-primary-glow: rgba(0, 200, 150, 0.15);
    
    /* Type Colors */
    --lof-code-bg: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    --lof-code-border: #81C784;
    --lof-code-accent: #2E7D32;
    --lof-sale-bg: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    --lof-sale-border: #FFB74D;
    --lof-sale-accent: #E65100;
    
    /* Neutrals */
    --lof-bg: #ffffff;
    --lof-bg-subtle: #f8fafb;
    --lof-text-primary: #1a2332;
    --lof-text-secondary: #5c6a7f;
    --lof-text-muted: #8b97a8;
    --lof-border: #e0e7ee;
    --lof-border-light: #eef2f6;
    
    /* Effects */
    --lof-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --lof-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --lof-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --lof-shadow-glow: 0 4px 20px rgba(0, 200, 150, 0.2);
    
    /* Transitions */
    --lof-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --lof-transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --lof-transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Spacing */
    --lof-gap: 16px;
    --lof-card-padding: 20px;
    --lof-radius: 20px;
    --lof-radius-sm: 12px;
    --lof-radius-pill: 100px;
}

/* === Main Wrapper === */
.lof-wrapper {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--lof-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    margin: 2rem 0;
    position: relative;
}

/* === Header === */
.lof-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.lof-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--lof-text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--lof-text-primary) 0%, var(--lof-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap; /* v1.1.9: Prevent wrapping */
}

/* v1.1.9: Smaller heading on mobile to fit one line */
@media (max-width: 400px) {
    .lof-heading {
        font-size: 1.4rem;
    }
}

.lof-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lof-primary-dark) !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: var(--lof-radius-pill);
    background: var(--lof-primary-light);
    transition: all var(--lof-transition-smooth);
}

.lof-view-all-link:hover {
    background: var(--lof-primary);
    color: white !important;
    transform: translateX(4px);
}

.lof-view-all-link .lof-arrow {
    transition: transform var(--lof-transition-smooth);
}

.lof-view-all-link:hover .lof-arrow {
    transform: translateX(4px);
}

/* === Filter Section - v1.1.0 Wolt-style === */
.lof-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    position: relative; /* v1.1.9: For gradient overlay positioning */
}

/* v1.3.2: Sort group — defaults (mobile) */
.lof-filter-group.lof-sort-group {
    display: flex;
    align-items: center;
}

/* Type filters: horizontal scroll on mobile */
.lof-filter-group.lof-type-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.lof-filter-group.lof-type-filters::-webkit-scrollbar {
    display: none;
}

/* v1.2.0: CSS Mask fade - works with any background color */
@media (max-width: 767px) {
    .lof-filter-group.lof-type-filters,
    .lof-filter-group.lof-category-filters {
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
}

/* Category filters: Wrap on desktop, scroll on mobile */
.lof-filter-group.lof-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

/* v1.1.8: Mobile - horizontal scroll for categories (don't stack) */
@media (max-width: 767px) {
    .lof-filter-group.lof-category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .lof-filter-group.lof-category-filters::-webkit-scrollbar {
        display: none;
    }

    /* Show all categories in scroll view (no hiding) */
    .lof-category-filters .lof-category-extra {
        display: inline-flex !important;
    }

    /* Hide "show more" button on mobile - scroll instead */
    .lof-show-more-btn {
        display: none !important;
    }

    /* Hide top "View All" link on mobile - bottom button is sufficient */
    .lof-view-all-link {
        display: none;
    }
}

/* === Filter Chip (Wolt-style) === */
/* v1.4.7: Rule 1 — inset box-shadow replaces border + border-radius; touch target 44px */
.lof-filter-chip {
    flex-shrink: 0;
    display: inline-block;
    text-align: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lof-text-primary);
    background: var(--lof-bg);
    border: none;
    box-shadow: inset 0 0 0 1.5px var(--lof-border);
    border-radius: var(--lof-radius-pill);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
    min-height: 44px;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.lof-filter-chip:hover {
    box-shadow: inset 0 0 0 1.5px var(--lof-primary);
    color: var(--lof-primary-dark);
    background: var(--lof-primary-light);
}

.lof-filter-chip.active {
    background: var(--lof-primary);
    color: white;
    box-shadow: inset 0 0 0 1.5px var(--lof-primary);
    font-weight: 600;
}

.lof-filter-chip.active:hover {
    background: var(--lof-primary-dark);
    box-shadow: inset 0 0 0 1.5px var(--lof-primary-dark);
    color: white;
}

.lof-chip-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.lof-chip-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 8px;
    border-radius: var(--lof-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.lof-filter-chip:not(.active) .lof-chip-count {
    background: var(--lof-border-light);
    color: var(--lof-text-muted);
}

/* === Show More Button (v1.1.0) === */
/* v1.4.7: Rule 1 — inset box-shadow; touch target 44px */
.lof-show-more-btn {
    display: inline-block;
    text-align: center;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lof-primary-dark);
    background: var(--lof-primary-light);
    border: none;
    box-shadow: inset 0 0 0 1.5px var(--lof-primary);
    border-radius: var(--lof-radius-pill);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    min-height: 44px;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.lof-show-more-btn:hover {
    background: var(--lof-primary);
    color: white;
}

/* Hide on desktop - all categories visible */
@media (min-width: 768px) {
    .lof-show-more-btn {
        display: none;
    }
}

/* === Cards Container === */
.lof-cards-container {
    position: relative;
    overflow: visible;
}

/* Mobile: Horizontal Scroll */
.lof-cards {
    display: flex;
    gap: var(--lof-gap);
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 1rem 24px 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lof-cards::-webkit-scrollbar {
    display: none;
}

/* === Card Base - Clean === */
/* v1.4.7: Rule 1 — inset box-shadow replaces border */
.lof-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    min-height: 220px;
    background: var(--lof-bg);
    border-radius: var(--lof-radius);
    padding: var(--lof-card-padding);
    border: none;
    box-shadow: inset 0 0 0 1.5px var(--lof-border), var(--lof-shadow-sm);
    transition: box-shadow 0.15s ease;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* v1.2.2: Mobile Responsiveness & Overflow Protection */
@media (max-width: 767px) {
    /* Wider cards to prevent code truncation */
    .lof-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 300px;
    }

    /* RULE 1: Smart Wrapping - Allow content (not data) to wrap */
    /* Chips/badges can wrap, but codes/buttons stay nowrap */
    .lof-tagline {
        white-space: normal;
        -webkit-line-clamp: 3; /* Allow 3 lines on mobile */
    }

    /* RULE 2: Fluid Height - Remove artificial min-heights */
    .lof-headline {
        min-height: auto; /* Remove desktop alignment constraint */
    }

    .lof-tagline {
        min-height: auto; /* Remove desktop alignment constraint */
    }
}

.lof-card:hover {
    box-shadow: inset 0 0 0 1.5px var(--lof-primary), var(--lof-shadow-md);
}

/* Type-specific card styling — v1.4.7: dashed via SVG background instead of border (Rule 1) */
.lof-card.lof-type-code {
    box-shadow: inset 0 0 0 1.5px var(--lof-code-accent), var(--lof-shadow-sm);
}

/* Hidden cards (filtered out) */
.lof-card.lof-hidden {
    display: none;
}

/* === Card Type Indicator - v1.1.1 Minimal === */
.lof-card-type {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.lof-type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lof-type-dot.lof-type-code {
    background: var(--lof-code-accent);
}

.lof-type-dot.lof-type-sale {
    background: var(--lof-sale-accent);
}

.lof-type-label {
    /* v1.4.4: Hidden - adds clutter, zero unique value. Dot alone is sufficient. */
    display: none;
}

/* === Brand Name - Primary Focus with Link === */
.lof-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lof-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.lof-brand-link {
    color: var(--lof-text-primary) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.lof-brand-link:hover {
    color: var(--lof-primary-dark) !important;
}

/* === v1.3.1: Content block absorbs whitespace above chips === */
.lof-content-block {
    flex-grow: 1;
}

/* === v1.3.1: Action footer — anchored to bottom === */
.lof-action-footer {
    margin-top: auto;
}

/* === Action Area Wrapper === */
.lof-action-area {
    /* v1.3.1: Padding removed — parent .lof-action-footer handles anchoring */
}

/* === Code Display - v1.1.6 Beefed up for visual weight === */
.lof-code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px dashed var(--lof-code-accent);
    border-radius: var(--lof-radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(46, 125, 50, 0.08);
}

.lof-code-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lof-code-accent);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: 1px;
    white-space: nowrap;      /* v1.1.7: Prevent code from wrapping */
    overflow: hidden;         /* Safety net */
    text-overflow: ellipsis;  /* Add '...' if truly too long */
    flex: 1;
    min-width: 0;
    max-width: 100%;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Copy Button - v1.4.4 Orange to match sale button visual weight */
.lof-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--lof-sale-accent) 0%, #d84315 100%);
    color: white;
    border: none;
    border-radius: var(--lof-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.25);
}

.lof-copy-btn:hover {
    background: linear-gradient(135deg, #d84315 0%, #bf360c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.35);
}

.lof-copy-btn:active {
    transform: scale(0.97);
}

.lof-copy-btn.copied {
    background: linear-gradient(135deg, var(--lof-primary) 0%, var(--lof-primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(0, 200, 150, 0.25);
}

.lof-copy-btn.copied .lof-copy-label::after {
    content: ' ✓';
}

/* === Sale Action Button (v1.1.5) === */
.lof-sale-action {
    margin: 10px 0;
}

.lof-sale-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--lof-sale-accent) 0%, #d84315 100%);
    color: white !important;
    border: none;
    border-radius: var(--lof-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.lof-sale-btn:hover {
    background: linear-gradient(135deg, #d84315 0%, #bf360c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.25);
    color: white !important;
}

.lof-sale-btn:active {
    transform: scale(0.98);
}

.lof-btn-arrow {
    transition: transform 0.15s ease;
}

.lof-sale-btn:hover .lof-btn-arrow {
    transform: translateX(3px);
}

/* === Headline === */
.lof-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lof-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* v1.2.1: ELASTIC CORE - 2 lines minimum */
}

/* === Tagline === */
.lof-tagline {
    font-size: 0.85rem;
    color: var(--lof-text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em; /* v1.2.1: ELASTIC CORE - 2 lines minimum */
}

/* === Card Footer - With Category Link === */
.lof-card-footer {
    /* v1.3.1: margin-top:auto moved to parent .lof-action-footer */
    padding-top: 10px;
    border-top: 1px solid var(--lof-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.lof-category-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lof-text-muted) !important;
    text-decoration: none !important;
    padding: 3px 8px;
    background: var(--lof-bg-subtle);
    border-radius: var(--lof-radius-pill);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.lof-category-link:hover {
    background: var(--lof-primary-light);
    color: var(--lof-primary-dark) !important;
}

.lof-expiry {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lof-text-muted);
    white-space: nowrap;
}

/* === View All Mobile === */
.lof-view-all-mobile {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.lof-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--lof-primary) 0%, var(--lof-primary-dark) 100%);
    color: white !important;
    border-radius: var(--lof-radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all var(--lof-transition-smooth);
    box-shadow: var(--lof-shadow-glow);
}

.lof-view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 200, 150, 0.35);
    color: white !important;
}

.lof-view-all-btn .lof-arrow {
    transition: transform var(--lof-transition-smooth);
}

.lof-view-all-btn:hover .lof-arrow {
    transform: translateX(6px);
}

/* === Empty State === */
.lof-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--lof-text-secondary);
    font-size: 1rem;
}

/* === Empty Filter State (v1.1.0) === */
.lof-empty-filter {
    text-align: center;
    padding: 2rem;
    color: var(--lof-text-muted);
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/* === Desktop Responsive === */
@media (min-width: 768px) {
    .lof-wrapper {
        margin: 3rem 0;
    }
    
    .lof-header {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .lof-heading {
        font-size: 2rem;
    }
    
    .lof-filters {
        padding: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        align-items: flex-start;
    }
    
    .lof-filter-group.lof-type-filters {
        overflow-x: visible;
        flex-shrink: 0;
    }
    
    .lof-filter-group.lof-category-filters {
        flex: 1;
        min-width: 0;
    }

    /* v1.3.2: Sort group pushed to right on desktop */
    .lof-filter-group.lof-sort-group {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .lof-cards {
        /* Grid layout on desktop */
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        overflow-x: visible;
        padding: 8px 0 24px 0;
    }
    
    .lof-card {
        flex: none;
        min-width: unset;
        max-width: unset;
    }
    
    .lof-view-all-mobile {
        display: none;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .lof-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === Animations === */
@keyframes lof-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lof-card {
    animation: lof-fadeIn 0.3s ease-out;
}

/* Filter transition - simple opacity */
.lof-card.lof-filtering {
    transition: opacity 0.2s ease;
}

/* === Scroll Indicators (Mobile) === */
@media (max-width: 767px) {
    .lof-cards-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 24px;
        width: 40px;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 100%);
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    .lof-cards-container.scrolled-end::after {
        opacity: 0;
    }
}

/* === Link Resets === */
.lof-wrapper a,
.lof-wrapper a:link,
.lof-wrapper a:visited,
.lof-wrapper a:hover,
.lof-wrapper a:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* === Button Resets === */
.lof-wrapper button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.lof-filter-chip,
.lof-show-more-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* v1.4.7: WCAG 2.4.7 — :focus-visible on all interactive elements */
.lof-filter-chip:focus-visible,
.lof-show-more-btn:focus-visible,
.lof-copy-btn:focus-visible,
.lof-sale-btn:focus-visible,
.lof-view-all-link:focus-visible,
.lof-view-all-btn:focus-visible,
.lof-brand-link:focus-visible,
.lof-category-link:focus-visible {
    outline: 2px solid var(--lof-primary);
    outline-offset: 2px;
}

/* === Toast Notification === */
.lof-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lof-toast.lof-toast-success {
    background: linear-gradient(135deg, #00C896 0%, #00A67D 100%);
}

.lof-toast.lof-toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.lof-toast.lof-toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* === v1.4.7: Reduced Motion (WCAG) === */
@media (prefers-reduced-motion: reduce) {
    .lof-card,
    .lof-filter-chip,
    .lof-show-more-btn,
    .lof-copy-btn,
    .lof-sale-btn,
    .lof-view-all-link,
    .lof-view-all-btn,
    .lof-toast,
    .lof-brand-link,
    .lof-card.lof-filtering {
        animation: none !important;
        transition: none !important;
    }
}

/* === v1.4.7: Dark Mode === */
@media (prefers-color-scheme: dark) {
    .lof-wrapper {
        --lof-bg: #1f2937;
        --lof-bg-subtle: #111827;
        --lof-text-primary: #f9fafb;
        --lof-text-secondary: #d1d5db;
        --lof-text-muted: #9ca3af;
        --lof-border: #374151;
        --lof-border-light: #1f2937;
        --lof-primary-light: rgba(0, 200, 150, 0.15);
        --lof-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --lof-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
        --lof-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .lof-heading {
        background: linear-gradient(135deg, #f9fafb 0%, var(--lof-primary) 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }

    .lof-code-display {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #047857;
    }

    .lof-code-text {
        color: #6ee7b7;
        text-shadow: none;
    }

    .lof-card-footer {
        border-top-color: var(--lof-border);
    }

    .lof-category-link {
        background: #374151;
        color: var(--lof-text-muted) !important;
    }

    .lof-category-link:hover {
        background: rgba(0, 200, 150, 0.15);
    }

    .lof-toast {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}