/**
 * House of the Flop - Guild Wars 2 Guide Engine Stylesheet
 * Author: Sythsaz & Kiki_Sparks
 * Version: 2.0.0
 * 
 * Strict WCAG AAA Accessibility & Sir Flop Zero-Glass Design System
 * Palette:
 * - Base: #2C1E14 (Espresso Bark)
 * - Surface: #1F150E (Dark Solid Card)
 * - Accent 1: #FFEE58 (Electric Zest Gold)
 * - Accent 2: #D2B48C (Sir Flop Tan)
 * - Accent 3: #503AA8 (Tyrian Pop Purple)
 * - Contrast Text: #EEEEE8 (Bark Stone)
 */

/* ==========================================================================
 * 1. HEADING SCROLL-SPY & MARGINS
 * ========================================================================== */
article.post h2,
article.post h3,
.gw2-guide-content h2,
.gw2-guide-content h3 {
    scroll-margin-top: calc(var(--site-header-height, 60px) + 24px) !important;
}

/* ==========================================================================
 * 2. STICKY TOP CHAPTER NAVIGATION SUB-BAR
 * ========================================================================== */
.gw2-chapter-nav {
    position: sticky !important;
    top: var(--site-header-height, 52px) !important;
    z-index: 1000 !important;
    background: #1F150E !important;
    border-bottom: 2px solid #503AA8 !important;
    margin: 0 0 24px 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    width: 100% !important;
}

.gw2-chapter-nav-inner {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.gw2-chapter-nav-inner::-webkit-scrollbar {
    display: none !important;
}

.gw2-chapter-nav-label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #D2B48C !important;
    white-space: nowrap !important;
}

.gw2-chapter-pills {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.gw2-chapter-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: #2C1E14 !important;
    color: #EEEEE8 !important;
    border: 1px solid rgba(255, 238, 88, 0.2) !important;
    border-radius: 9999px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    min-height: 36px !important;
}

.gw2-chapter-pill:hover,
.gw2-chapter-pill:focus-visible {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #FFEE58 !important;
    outline: 2px solid #FFEE58 !important;
}

.gw2-chapter-pill.is-active {
    background: #FFEE58 !important;
    color: #2C1E14 !important;
    border-color: #FFEE58 !important;
    font-weight: 700 !important;
}

.gw2-nav-progress-track {
    width: 100% !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.gw2-nav-progress-bar {
    height: 100% !important;
    background: #FFEE58 !important;
    transition: width 0.1s linear !important;
}

/* ==========================================================================
 * 3. PRE-FLIGHT IN-CONTENT TOC GRID
 * ========================================================================== */
.gw2-incontent-toc-card {
    background: #1F150E !important;
    border: 1.5px solid #503AA8 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 28px 0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

.gw2-incontent-toc-header {
    margin-bottom: 16px !important;
}

.gw2-incontent-toc-badge {
    display: inline-block !important;
    background: #503AA8 !important;
    color: #FFFFFF !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    margin-bottom: 6px !important;
}

.gw2-incontent-toc-title {
    color: #FFEE58 !important;
    font-size: 1.35rem !important;
    margin: 0 !important;
    font-weight: 800 !important;
}

.gw2-incontent-toc-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 10px !important;
}

.gw2-incontent-toc-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: #2C1E14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.gw2-incontent-toc-item:hover,
.gw2-incontent-toc-item:focus-visible {
    background: #261A11 !important;
    border-color: #FFEE58 !important;
    transform: translateY(-2px) !important;
    outline: 2px solid #FFEE58 !important;
}

.gw2-toc-item-num {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
    min-width: 24px !important;
}

.gw2-toc-item-title {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #EEEEE8 !important;
}

.gw2-toc-item-sub {
    display: block !important;
    font-size: 0.8rem !important;
    color: #D2B48C !important;
}

/* ==========================================================================
 * 4. PERSISTENT FLOATING GUIDE MENU (SLIDE-OUT DRAWER)
 * ========================================================================== */
.gw2-floating-guide-menu {
    position: fixed !important;
    bottom: 84px !important;
    left: 20px !important;
    z-index: 99999 !important;
}
@media (max-width: 600px) {
    .gw2-floating-guide-menu {
        bottom: 74px !important;
        left: 14px !important;
    }
}

.gw2-menu-trigger-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #1F150E !important;
    color: #EEEEE8 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease !important;
    min-height: 44px !important;
}

.gw2-menu-trigger-btn:hover,
.gw2-menu-trigger-btn:focus-visible {
    background: #2C1E14 !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

.gw2-menu-trigger-pct {
    background: #FFEE58 !important;
    color: #2C1E14 !important;
    padding: 2px 7px !important;
    border-radius: 9999px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

.gw2-menu-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 2147483639 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
}

.gw2-menu-drawer-backdrop.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.gw2-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 360px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    background: #1F150E !important;
    border-right: 2px solid #503AA8 !important;
    z-index: 2147483640 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.6) !important;
    overflow-y: auto !important;
}

.gw2-menu-drawer.is-open {
    transform: translateX(0) !important;
}

/* Suppress background floating widgets when drawer is open */
body.is-gw2-drawer-open .floatingchat-container-wrap,
body.is-gw2-drawer-open .cky-btn-revisit-wrapper,
body.is-gw2-drawer-open #bark-byte-back-to-top {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.gw2-drawer-header {
    padding: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.gw2-drawer-badge {
    display: inline-block !important;
    background: #503AA8 !important;
    color: #FFFFFF !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    margin-bottom: 4px !important;
}

.gw2-drawer-title {
    margin: 0 !important;
    color: #FFEE58 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.gw2-drawer-close-btn {
    background: transparent !important;
    border: none !important;
    color: #EEEEE8 !important;
    font-size: 1.6rem !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    line-height: 1 !important;
}

.gw2-drawer-close-btn:hover,
.gw2-drawer-close-btn:focus-visible {
    color: #FFEE58 !important;
    outline: 2px solid #FFEE58 !important;
}

.gw2-drawer-progress-box {
    padding: 12px 20px !important;
    background: #261A11 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.gw2-drawer-progress-labels {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.8rem !important;
    color: #D2B48C !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
}

.gw2-drawer-progress-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 2px !important;
}

.gw2-drawer-progress-bar {
    height: 100% !important;
    background: #FFEE58 !important;
    border-radius: 2px !important;
}

.gw2-drawer-nav {
    padding: 16px 12px !important;
}

.gw2-drawer-section-heading {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #D2B48C !important;
    letter-spacing: 0.05em !important;
    padding: 8px 8px 4px 8px !important;
}

.gw2-drawer-section-site {
    margin-top: 18px !important;
}

.gw2-drawer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.gw2-drawer-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #EEEEE8 !important;
    transition: all 0.15s ease !important;
}

.gw2-drawer-link:hover,
.gw2-drawer-link:focus-visible {
    background: #2C1E14 !important;
    color: #FFEE58 !important;
    outline: 2px solid #FFEE58 !important;
}

.gw2-drawer-link.is-active {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.gw2-drawer-num {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
    min-width: 16px !important;
}

.gw2-drawer-link-title {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.gw2-drawer-link-sub {
    display: block !important;
    font-size: 0.75rem !important;
    color: #D2B48C !important;
}

/* ==========================================================================
 * 5. LEAFLET CARTOGRAPHY MAP CARD & POPUPS
 * ========================================================================== */
.gw2-map-card-container {
    background: #1F150E !important;
    border: 1.5px solid #503AA8 !important;
    border-radius: 12px !important;
    margin: 28px 0 !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

.gw2-map-header {
    padding: 16px 20px !important;
    background: #261A11 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.gw2-map-header-title {
    margin: 0 !important;
    color: #FFEE58 !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}

.gw2-map-header-sub {
    font-size: 0.82rem !important;
    color: #D2B48C !important;
}

.gw2-map-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.gw2-map-header-hint {
    font-size: 0.8rem !important;
    color: #D2B48C !important;
}

.gw2-preset-btn {
    background: #2C1E14 !important;
    color: #EEEEE8 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    min-height: 32px !important;
}

.gw2-preset-btn:hover,
.gw2-preset-btn:focus-visible {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #FFEE58 !important;
    outline: 2px solid #FFEE58 !important;
}

.gw2-preset-btn.is-active {
    background: #FFEE58 !important;
    color: #2C1E14 !important;
    border-color: #FFEE58 !important;
    font-weight: 700 !important;
}

.gw2-leaflet-map-instance {
    width: 100% !important;
    background: #0D0906 !important;
}

/* Leaflet Popups */
.leaflet-popup-content-wrapper {
    background: #2C1E14 !important;
    border: 1.5px solid #503AA8 !important;
    border-radius: 8px !important;
    color: #EEEEE8 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7) !important;
}

.leaflet-popup-tip {
    background: #2C1E14 !important;
    border: 1px solid #503AA8 !important;
}

.leaflet-popup-content {
    margin: 12px 14px !important;
    font-family: inherit !important;
}

.gw2-map-popup-title {
    font-weight: 700 !important;
    color: #FFEE58 !important;
    margin-bottom: 4px !important;
    font-size: 0.95rem !important;
}

.gw2-map-popup-desc {
    font-size: 0.8rem !important;
    color: #D2B48C !important;
    margin-bottom: 8px !important;
}

.gw2-map-fallback-details {
    padding: 12px 20px !important;
    background: #1A110B !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.gw2-map-fallback-summary {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #FFEE58 !important;
    cursor: pointer !important;
}

/* ==========================================================================
 * 6. 1-CLICK CLIPBOARD WAYPOINTS & CHAT CODES
 * ========================================================================== */
.gw2-waypoint-pill-btn,
.gw2-chatlink-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: #2C1E14 !important;
    color: #EEEEE8 !important;
    border: 1px solid #503AA8 !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 0.84rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    vertical-align: middle !important;
    min-height: 32px !important;
}

.gw2-waypoint-pill-btn:hover,
.gw2-waypoint-pill-btn:focus-visible,
.gw2-chatlink-pill-btn:hover,
.gw2-chatlink-pill-btn:focus-visible {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #FFEE58 !important;
    outline: 2px solid #FFEE58 !important;
}

.gw2-wp-code,
.gw2-chatlink-code {
    font-family: monospace !important;
    font-size: 0.82rem !important;
    background: rgba(0, 0, 0, 0.35) !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    color: #FFEE58 !important;
}

/* ==========================================================================
 * 7. LIVE TRADING POST (TP) MARKET CARDS
 * ========================================================================== */
.gw2-tp-card {
    background: #1F150E !important;
    border: 1.5px solid #503AA8 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin: 20px 0 !important;
}

.gw2-tp-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    font-size: 1.05rem !important;
    color: #FFEE58 !important;
}

.gw2-tp-metrics {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
}

.gw2-tp-metric {
    background: #2C1E14 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.gw2-tp-label {
    display: block !important;
    font-size: 0.78rem !important;
    color: #D2B48C !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.gw2-coin-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 700 !important;
    color: #EEEEE8 !important;
}

.gw2-coin-group.is-negative {
    color: #EF4444 !important;
}

.gw2-coin-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
}

.gw2-coin-icon {
    vertical-align: middle !important;
}

.gw2-bound-badge {
    display: inline-block !important;
    background: #374151 !important;
    color: #E5E7EB !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

/* ==========================================================================
 * 8. INTERACTIVE LOCALSTORAGE CHECKLISTS
 * ========================================================================== */
.gw2-checklist-card {
    background: #1F150E !important;
    border: 1.5px solid #503AA8 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 28px 0 !important;
}

.gw2-checklist-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.gw2-checklist-title {
    margin: 0 !important;
    color: #FFEE58 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
}

.gw2-checklist-status {
    font-size: 0.82rem !important;
    color: #D2B48C !important;
}

.gw2-checklist-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.gw2-checklist-item {
    background: #2C1E14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    transition: all 0.15s ease !important;
}

.gw2-checklist-item.is-completed {
    background: #1A110B !important;
    opacity: 0.65 !important;
}

.gw2-checklist-item.is-completed .gw2-checklist-text {
    text-decoration: line-through !important;
    color: #D2B48C !important;
}

.gw2-checklist-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    width: 100% !important;
}

.gw2-checklist-checkbox {
    width: 18px !important;
    height: 18px !important;
    accent-color: #FFEE58 !important;
    cursor: pointer !important;
}

/* ==========================================================================
 * 9. BOOSTER STACKING & LIQUIDATION CALCULATORS
 * ========================================================================== */
.gw2-booster-calc-container,
.gw2-liquidation-calc-card {
    background: #1F150E !important;
    border: 1.5px solid #503AA8 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 28px 0 !important;
}

.gw2-calc-header,
.gw2-liq-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.gw2-calc-title,
.gw2-liq-title {
    margin: 0 !important;
    color: #FFEE58 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

.gw2-calc-subtitle,
.gw2-liq-subtitle {
    font-size: 0.85rem !important;
    color: #D2B48C !important;
}

.gw2-calc-total-badge {
    background: #2C1E14 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    text-align: center !important;
}

.gw2-calc-total-label {
    display: block !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    color: #D2B48C !important;
    font-weight: 700 !important;
}

.gw2-calc-total-val {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
}

.gw2-calc-presets {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 18px !important;
}

.gw2-calc-preset-label {
    font-size: 0.82rem !important;
    color: #D2B48C !important;
    font-weight: 700 !important;
}

.gw2-calc-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.gw2-booster-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: #2C1E14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.gw2-booster-card.is-selected {
    background: #2A1B10 !important;
    border-color: #FFEE58 !important;
}

.gw2-booster-icon {
    font-size: 1.4rem !important;
}

.gw2-booster-info {
    flex-grow: 1 !important;
}

.gw2-booster-name {
    display: block !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #EEEEE8 !important;
}

.gw2-booster-type {
    display: block !important;
    font-size: 0.75rem !important;
    color: #D2B48C !important;
}

.gw2-booster-pct {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
}

.gw2-calc-results {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px !important;
    background: #261A11 !important;
    padding: 16px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.gw2-result-card {
    text-align: center !important;
}

.gw2-result-label {
    display: block !important;
    font-size: 0.78rem !important;
    color: #D2B48C !important;
    margin-bottom: 4px !important;
}

.gw2-result-val {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
}

/* Liquidation Range Input */
.gw2-liq-slider-box {
    margin-bottom: 24px !important;
}

.gw2-liq-input-label {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #EEEEE8 !important;
    margin-bottom: 8px !important;
}

.gw2-liq-amount-display {
    color: #FFEE58 !important;
    font-size: 1.1rem !important;
}

.gw2-liq-range-input {
    width: 100% !important;
    accent-color: #FFEE58 !important;
    cursor: pointer !important;
}

.gw2-liq-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 14px !important;
}

.gw2-liq-method-card {
    background: #2C1E14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    transition: all 0.15s ease !important;
}

.gw2-liq-method-card.is-optimal {
    border-color: #FFEE58 !important;
    background: #2A1B10 !important;
}

.gw2-liq-method-badge {
    display: inline-block !important;
    background: #503AA8 !important;
    color: #FFFFFF !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
}

.gw2-liq-method-title {
    margin: 0 0 6px 0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #EEEEE8 !important;
}

.gw2-liq-rate {
    font-size: 0.8rem !important;
    color: #D2B48C !important;
    margin-bottom: 10px !important;
}

.gw2-liq-yield {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
    margin-bottom: 8px !important;
}

.gw2-liq-desc {
    font-size: 0.82rem !important;
    color: #D2B48C !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* ==========================================================================
 * 10. WORLD BOSS & META EVENT TIMERS HUD
 * ========================================================================== */
.gw2-wb-container {
    background: #1F150E !important;
    border: 1.5px solid #503AA8 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 28px 0 !important;
}

.gw2-wb-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

.gw2-wb-header-title {
    margin: 0 !important;
    color: #FFEE58 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
}

.gw2-wb-header-sub {
    font-size: 0.82rem !important;
    color: #D2B48C !important;
}

.gw2-wb-badge-live {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #064E3B !important;
    color: #6EE7B7 !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    border: 1px solid #10B981 !important;
}

.gw2-wb-pulse {
    width: 8px !important;
    height: 8px !important;
    background: #10B981 !important;
    border-radius: 50% !important;
    animation: gw2-beacon-pulse 1.5s infinite !important;
}

@keyframes gw2-beacon-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.gw2-wb-active-banner {
    background: #261A11 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
}

.gw2-wb-active-avatar {
    border-radius: 50% !important;
    border: 2px solid #FFEE58 !important;
    background: #1F150E !important;
}

.gw2-wb-active-info {
    flex-grow: 1 !important;
}

.gw2-wb-active-tag {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #10B981 !important;
    letter-spacing: 0.05em !important;
}

.gw2-wb-active-name {
    margin: 2px 0 4px 0 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
}

.gw2-wb-active-loc {
    font-size: 0.86rem !important;
    color: #EEEEE8 !important;
}

.gw2-wb-active-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.gw2-wb-active-timer-box {
    text-align: right !important;
}

.gw2-wb-timer-label {
    display: block !important;
    font-size: 0.72rem !important;
    color: #D2B48C !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

.gw2-wb-timer-val {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
}

.gw2-wb-copy-wp-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    min-height: 40px !important;
}

.gw2-wb-copy-wp-btn:hover,
.gw2-wb-copy-wp-btn:focus-visible {
    background: #FFEE58 !important;
    color: #2C1E14 !important;
    outline: 2px solid #FFEE58 !important;
}

.gw2-wb-upcoming-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 16px !important;
}

.gw2-wb-upcoming-heading {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #D2B48C !important;
    margin-bottom: 12px !important;
}

.gw2-wb-upcoming-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px !important;
}

.gw2-wb-upcoming-card {
    background: #2C1E14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

.gw2-wb-card-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

.gw2-wb-card-tag {
    font-size: 0.74rem !important;
    color: #D2B48C !important;
}

.gw2-wb-card-code {
    font-family: monospace !important;
    font-size: 0.74rem !important;
    color: #FFEE58 !important;
}

.gw2-wb-card-title {
    margin: 0 0 4px 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #EEEEE8 !important;
}

.gw2-wb-card-loc {
    font-size: 0.78rem !important;
    color: #D2B48C !important;
}

/* ==========================================================================
 * 11. ACCESSIBLE DATA TABLES
 * ========================================================================== */
.gw2-table-wrapper {
    overflow-x: auto !important;
    margin: 16px 0 !important;
    border-radius: 8px !important;
}

.gw2-accessible-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
    font-size: 0.9rem !important;
    background: #1F150E !important;
}

.gw2-accessible-table th,
.gw2-accessible-table td {
    padding: 10px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #EEEEE8 !important;
}

.gw2-accessible-table th {
    background: #261A11 !important;
    color: #FFEE58 !important;
    font-weight: 700 !important;
}

/* ==========================================================================
 * 12. MANDATORY LEGAL ATTRIBUTION FOOTER
 * ========================================================================== */
.gw2-legal-attribution {
    margin-top: 48px !important;
    padding: 20px 24px !important;
    background: #1A110B !important;
    border-top: 2px solid #503AA8 !important;
    border-radius: 8px !important;
}

.gw2-legal-text {
    font-size: 0.76rem !important;
    color: #9CA3AF !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.custom-logo, .wp-block-site-logo img { border-radius: 50% !important; border: 2px solid #FFEE58 !important; width: 38px !important; height: 38px !important; object-fit: cover !important; display: inline-block !important; }


/* Mobile Leaflet Map Touch & Focus Isolation */
.gw2-leaflet-map-instance,
.leaflet-container {
    touch-action: pan-x pan-y !important;
}
.gw2-leaflet-map-instance:focus,
.leaflet-container:focus,
.leaflet-container a:focus {
    outline: none !important;
}


/* ==========================================================
 * Universal Featured Guide Banner & Map Pin Icon
 * ========================================================== */
.gw2-wp-pin-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.gw2-featured-guide-banner {
    background: #2C1E14 !important;
    border: 2px solid #503AA8 !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin: 20px 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s ease !important;
}

.gw2-featured-guide-badge {
    background: #503AA8 !important;
    color: #FFEE58 !important;
    font-size: 0.75rem !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

.gw2-featured-guide-title {
    margin: 8px 0 0 0 !important;
    font-size: 1.25rem !important;
    color: #FFEE58 !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.gw2-featured-guide-btn {
    background: #503AA8 !important;
    border: 1.5px solid #FFEE58 !important;
    color: #FFEE58 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.gw2-featured-guide-btn:hover,
.gw2-featured-guide-btn:focus-visible {
    background: #6045C8 !important;
    color: #FFEE58 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    text-decoration: none !important;
}

/* Light Mode Support */
:root[data-theme="light"] .gw2-featured-guide-banner {
    background: #FFFFFF !important;
    border-color: #503AA8 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .gw2-featured-guide-badge {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-featured-guide-title {
    color: #1F150E !important;
}

:root[data-theme="light"] .gw2-featured-guide-btn {
    background: #503AA8 !important;
    border-color: #FFEE58 !important;
    color: #FFEE58 !important;
}

:root[data-theme="light"] .gw2-featured-guide-btn:hover {
    background: #6045C8 !important;
    color: #FFFFFF !important;
}


/* ==========================================================
 * COMPREHENSIVE LIGHT THEME ("WHITEMODE") ELEVATION & CONTRAST
 * ========================================================== */

/* Floating Guide Menu Trigger */
:root[data-theme="light"] .gw2-menu-trigger-btn {
    background: #FFFFFF !important;
    color: #1F150E !important;
    border: 1.5px solid #503AA8 !important;
    box-shadow: 0 4px 14px rgba(80, 58, 168, 0.18) !important;
}

:root[data-theme="light"] .gw2-menu-trigger-btn:hover,
:root[data-theme="light"] .gw2-menu-trigger-btn:focus-visible {
    background: #F8FAFC !important;
    color: #503AA8 !important;
    border-color: #6045C8 !important;
    transform: translateY(-2px) !important;
}

:root[data-theme="light"] .gw2-menu-trigger-pct {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

/* Floating Guide Slide-Out Drawer */
:root[data-theme="light"] .gw2-menu-drawer {
    background: #FFFFFF !important;
    border-right: 1.5px solid #E2E8F0 !important;
    color: #0F172A !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12) !important;
}

:root[data-theme="light"] .gw2-drawer-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-drawer-badge {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-drawer-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-drawer-close-btn {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-drawer-close-btn:hover {
    color: #0F172A !important;
    background: #F1F5F9 !important;
}

:root[data-theme="light"] .gw2-drawer-progress-box {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-drawer-progress-labels {
    color: #475569 !important;
}

:root[data-theme="light"] .gw2-drawer-progress-track {
    background: #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-drawer-progress-bar {
    background: #503AA8 !important;
}

:root[data-theme="light"] .gw2-drawer-section-heading {
    color: #64748B !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

:root[data-theme="light"] .gw2-drawer-section-site {
    border-top: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-drawer-link {
    color: #334155 !important;
}

:root[data-theme="light"] .gw2-drawer-link:hover,
:root[data-theme="light"] .gw2-drawer-link.is-active {
    background: #F1F5F9 !important;
    border-color: #503AA8 !important;
    color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-drawer-num {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-drawer-link-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-drawer-link-sub {
    color: #64748B !important;
}

/* Chapter Navigation & In-Content TOC */
:root[data-theme="light"] .gw2-chapter-nav {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-chapter-nav-label {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-chapter-pill {
    background: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-chapter-pill:hover,
:root[data-theme="light"] .gw2-chapter-pill.is-active {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-nav-progress-track {
    background: #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-nav-progress-bar {
    background: #503AA8 !important;
}

:root[data-theme="light"] .gw2-incontent-toc-card {
    background: #FFFFFF !important;
    border: 1.5px solid #503AA8 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .gw2-incontent-toc-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-incontent-toc-badge {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-incontent-toc-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-incontent-toc-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .gw2-incontent-toc-item:hover {
    background: #F1F5F9 !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-toc-item-num {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-toc-item-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-toc-item-sub {
    color: #64748B !important;
}

/* Interactive Checklists & Route Trackers */
:root[data-theme="light"] .gw2-checklist-card {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .gw2-checklist-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-checklist-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-checklist-meta {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-checklist-progress-text {
    color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-checklist-progress-track {
    background: #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-checklist-progress-bar {
    background: #503AA8 !important;
}

:root[data-theme="light"] .gw2-checklist-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
}

:root[data-theme="light"] .gw2-checklist-item:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
}

:root[data-theme="light"] .gw2-checklist-item.is-checked {
    background: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
}

:root[data-theme="light"] .gw2-checklist-item-num {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-checklist-item.is-checked .gw2-checklist-item-num {
    background: #16A34A !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-checklist-name {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-checklist-item.is-checked .gw2-checklist-name {
    color: #166534 !important;
}

:root[data-theme="light"] .gw2-checklist-desc {
    color: #475569 !important;
}

:root[data-theme="light"] .gw2-checklist-stats {
    background: #F8FAFC !important;
    border-top: 1px solid #E2E8F0 !important;
    color: #475569 !important;
}

/* Map Cards & Leaflet Popups */
:root[data-theme="light"] .gw2-map-card-container {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .gw2-map-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-map-header-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-map-header-sub {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-preset-btn {
    background: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-preset-btn:hover,
:root[data-theme="light"] .gw2-preset-btn.is-active {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .leaflet-popup-content-wrapper,
:root[data-theme="light"] .leaflet-popup-tip {
    background: #FFFFFF !important;
    color: #0F172A !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

:root[data-theme="light"] .gw2-map-popup-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-map-popup-desc {
    color: #475569 !important;
}

/* Waypoint, Chatlink & Copy Buttons */
:root[data-theme="light"] .gw2-waypoint-pill-btn,
:root[data-theme="light"] .gw2-chatlink-pill-btn {
    background: #F1F5F9 !important;
    color: #503AA8 !important;
    border: 1px solid #CBD5E1 !important;
}

:root[data-theme="light"] .gw2-waypoint-pill-btn:hover,
:root[data-theme="light"] .gw2-chatlink-pill-btn:hover,
:root[data-theme="light"] .gw2-waypoint-pill-btn:focus-visible,
:root[data-theme="light"] .gw2-chatlink-pill-btn:focus-visible {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .copy-code-btn {
    color: #503AA8 !important;
}

:root[data-theme="light"] .copy-code-btn:hover,
:root[data-theme="light"] .copy-code-btn:focus-visible {
    background: rgba(80, 58, 168, 0.12) !important;
    color: #3B2A80 !important;
}

:root[data-theme="light"] .table-scroll-hint {
    color: #64748B !important;
}

/* Trading Post & Liquidation Calculators */
:root[data-theme="light"] .gw2-liquidation-calc-card,
:root[data-theme="light"] .gw2-tp-card {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .gw2-liq-header,
:root[data-theme="light"] .gw2-tp-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-liq-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-liq-subtitle {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-booster-card,
:root[data-theme="light"] .gw2-liq-method-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-booster-card:hover,
:root[data-theme="light"] .gw2-liq-method-card:hover {
    background: #F1F5F9 !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-booster-card.is-active {
    background: #EEF2FF !important;
    border-color: #6366F1 !important;
}

:root[data-theme="light"] .gw2-booster-name,
:root[data-theme="light"] .gw2-liq-method-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-booster-type {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-result-card {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-result-label {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-result-val {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-calc-total-badge {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

/* Callout Blocks */
:root[data-theme="light"] .guide-callout-milestone,
:root[data-theme="light"] .gw2-callout-milestone {
    background: #EFF6FF !important;
    border-left: 4px solid #3B82F6 !important;
    color: #1E3A8A !important;
}

:root[data-theme="light"] .guide-callout-tip,
:root[data-theme="light"] .gw2-callout-tip {
    background: #F0FDF4 !important;
    border-left: 4px solid #22C55E !important;
    color: #14532D !important;
}

:root[data-theme="light"] .guide-callout-warning,
:root[data-theme="light"] .gw2-callout-warning {
    background: #FEF3C7 !important;
    border-left: 4px solid #F59E0B !important;
    color: #78350F !important;
}

:root[data-theme="light"] .guide-callout-danger,
:root[data-theme="light"] .gw2-callout-danger {
    background: #FEF2F2 !important;
    border-left: 4px solid #EF4444 !important;
    color: #7F1D1D !important;
}




/* ==========================================================================
 * UNIVERSAL LIGHT THEME ("WHITEMODE") ELEVATION & COMPONENT PERFECTION (v2.0.4)
 * ========================================================================== */

/* Dark Mode Defaults for Cleaned Elements */
.gw2-orphan-route-info {
    margin-bottom: 14px !important;
    font-size: 0.9rem !important;
    color: #D2B48C !important;
}

.gw2-calc-hud {
    border: 1.5px solid #FFEE58 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    text-align: center !important;
    background: rgba(44, 30, 20, 0.6) !important;
}

.gw2-calc-hud-label {
    display: block !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    color: #D2B48C !important;
    font-weight: 700 !important;
}

.gw2-calc-hud-value {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #FFEE58 !important;
}

.gw2-accessible-table tr.is-completed {
    background: #1A110B !important;
    color: #D2B48C !important;
}
.gw2-accessible-table tr.is-completed td {
    color: #94A3B8 !important;
}

/* --- LIGHT MODE COMPREHENSIVE OVERRIDES --- */
:root[data-theme="light"] .gw2-orphan-route-info {
    color: #475569 !important;
}

/* 1. Booster Stacking Calculator Card & Children */
:root[data-theme="light"] .gw2-booster-calc-container {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .gw2-calc-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-calc-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-calc-subtitle {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-calc-total-badge {
    background: #503AA8 !important;
    border: 1px solid #6045C8 !important;
}

:root[data-theme="light"] .gw2-calc-total-badge .gw2-calc-total-label {
    color: #DDD6FE !important;
}

:root[data-theme="light"] .gw2-calc-total-badge .gw2-calc-total-val {
    color: #FFEE58 !important;
}

:root[data-theme="light"] .gw2-calc-presets {
    border-bottom: 1px solid #F1F5F9 !important;
    padding-bottom: 14px !important;
}

:root[data-theme="light"] .gw2-calc-preset-label {
    color: #475569 !important;
}

:root[data-theme="light"] .gw2-calc-preset-btn {
    background: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #CBD5E1 !important;
}

:root[data-theme="light"] .gw2-calc-preset-btn:hover,
:root[data-theme="light"] .gw2-calc-preset-btn:focus-visible {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-booster-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-booster-card:hover {
    background: #F1F5F9 !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-booster-card.is-selected {
    background: #EEF2FF !important;
    border: 2px solid #503AA8 !important;
    box-shadow: 0 2px 8px rgba(80, 58, 168, 0.15) !important;
}

:root[data-theme="light"] .gw2-booster-card.is-selected .gw2-booster-name {
    color: #1E1B4B !important;
}

:root[data-theme="light"] .gw2-booster-name {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-booster-type {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-booster-pct {
    color: #503AA8 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .gw2-calc-results {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-result-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-result-label {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-result-val {
    color: #503AA8 !important;
    font-weight: 800 !important;
}

/* 2. Liquidation Calculator Perfection */
:root[data-theme="light"] .gw2-liq-yield {
    color: #503AA8 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .gw2-liq-amount-display {
    color: #503AA8 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .gw2-liq-input-label {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-liq-rate,
:root[data-theme="light"] .gw2-liq-desc {
    color: #475569 !important;
}

:root[data-theme="light"] .gw2-liq-method-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-liq-method-card.is-optimal {
    background: #FAF5FF !important;
    border: 2px solid #503AA8 !important;
    box-shadow: 0 2px 8px rgba(80, 58, 168, 0.15) !important;
}

:root[data-theme="light"] .gw2-liq-method-badge {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-liq-range-input {
    accent-color: #503AA8 !important;
}

/* 3. Map Header & Card Perfection */
:root[data-theme="light"] .gw2-map-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-map-header-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-map-header-sub {
    color: #64748B !important;
}

/* 4. Accessible Tables in Checklists & Trackers */
:root[data-theme="light"] .gw2-accessible-table {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-accessible-table th {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #E2E8F0 !important;
    font-weight: 700 !important;
}

:root[data-theme="light"] .gw2-accessible-table td {
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .gw2-accessible-table tbody tr:nth-child(even) {
    background: #F8FAFC !important;
}

:root[data-theme="light"] .gw2-accessible-table tbody tr:hover {
    background: #F1F5F9 !important;
}

:root[data-theme="light"] .gw2-accessible-table tr.is-completed {
    background: #F0FDF4 !important;
    color: #166534 !important;
}

:root[data-theme="light"] .gw2-accessible-table tr.is-completed td {
    color: #166534 !important;
}

:root[data-theme="light"] .gw2-check-input {
    accent-color: #503AA8 !important;
}

/* 5. World Boss HUD & Timers Light Mode */
:root[data-theme="light"] .gw2-calc-hud {
    border: 1.5px solid #503AA8 !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(80, 58, 168, 0.08) !important;
}

:root[data-theme="light"] .gw2-calc-hud-label {
    color: #475569 !important;
}

:root[data-theme="light"] .gw2-calc-hud-value {
    color: #503AA8 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .gw2-boss-ticker-widget,
:root[data-theme="light"] .gw2-wb-container {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .gw2-boss-active-banner,
:root[data-theme="light"] .gw2-wb-active-banner {
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-boss-name,
:root[data-theme="light"] .gw2-wb-active-name {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-boss-location,
:root[data-theme="light"] .gw2-wb-active-loc {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-countdown-timer,
:root[data-theme="light"] .gw2-wb-timer-val {
    color: #503AA8 !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .gw2-countdown-label,
:root[data-theme="light"] .gw2-wb-timer-label {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-boss-wp-btn,
:root[data-theme="light"] .gw2-wb-copy-wp-btn {
    background: #503AA8 !important;
    color: #FFFFFF !important;
    border-color: #503AA8 !important;
}

:root[data-theme="light"] .gw2-boss-wp-btn:hover,
:root[data-theme="light"] .gw2-wb-copy-wp-btn:hover {
    background: #6045C8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-upcoming-card,
:root[data-theme="light"] .gw2-wb-upcoming-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-upcoming-name,
:root[data-theme="light"] .gw2-wb-card-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .gw2-upcoming-badge,
:root[data-theme="light"] .gw2-wb-card-tag {
    color: #64748B !important;
}

:root[data-theme="light"] .gw2-time-badge {
    background: #503AA8 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-time-badge.is-active {
    background: #16A34A !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .gw2-upcoming-section-header,
:root[data-theme="light"] .gw2-wb-upcoming-section {
    border-top: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .gw2-upcoming-title,
:root[data-theme="light"] .gw2-upcoming-sub {
    color: #475569 !important;
}

/* 6. Legal Attribution Light Mode */
:root[data-theme="light"] .gw2-legal-attribution {
    background: #F1F5F9 !important;
    border-top: 2px solid #503AA8 !important;
}

:root[data-theme="light"] .gw2-legal-text {
    color: #475569 !important;
}
