
/* Compact SVG header icons — fit the 24px top bar without Font Awesome */
.header-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    padding: 0 !important;
    border-radius: 4px !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    position: relative !important;
    pointer-events: auto !important;
    z-index: 5 !important;
    background: transparent !important;
    border: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    color: inherit !important;
}

.header-icon-btn:hover {
    background: rgba(0,0,0,0.06) !important;
    transform: scale(1.08) !important;
}

.header-icon-btn .at-hi-svg {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}
.header-icon-btn .at-hi-svg path {
    opacity: 1 !important;
}

.header-icon-btn:active {
    transform: scale(0.95) !important;
}

.badge-count {
    position: absolute !important;
    top: -3px !important;
    right: -4px !important;
    min-width: 12px !important;
    height: 12px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 7px !important;
    font-weight: 800 !important;
    color: #fff !important;
    padding: 0 3px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    z-index: 10 !important;
    font-family: system-ui, sans-serif !important;
}

.bg-success { background: #10b981 !important; }
.bg-danger  { background: #ef4444 !important; }
.bg-info    { background: #3b82f6 !important; }

#mainHeader .header-top-bar,
#headerMiddlePanel .header-top-bar {
    overflow: visible !important;
    align-items: center !important;
}
#mainHeader .header-top-bar .top-bar-right,
#mainHeader .header-top-bar .cell.right,
#mainHeader .header-top-bar #bookmarkWrapper {
    display: inline-flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    gap: 2px !important;
}
#mainHeader .header-top-bar .header-icon-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Beat brand-red #headerMiddlePanel * / path currentColor lock */
#mainHeader .header-top-bar .header-icon-btn[title="Bookmarks"],
#mainHeader .header-top-bar .header-icon-btn[title="Bookmarks"] .at-hi-svg,
#mainHeader .header-top-bar .header-icon-btn[title="Bookmarks"] path,
#headerMiddlePanel .header-top-bar .header-icon-btn[title="Bookmarks"] path {
    color: #059669 !important;
    fill: #059669 !important;
}
#mainHeader .header-top-bar .header-icon-btn[title="Watchlist"],
#mainHeader .header-top-bar .header-icon-btn[title="Watchlist"] .at-hi-svg,
#mainHeader .header-top-bar .header-icon-btn[title="Watchlist"] path,
#headerMiddlePanel .header-top-bar .header-icon-btn[title="Watchlist"] path {
    color: #2563eb !important;
    fill: #2563eb !important;
}
#mainHeader .header-top-bar .header-icon-btn[title="Shopping Cart"],
#mainHeader .header-top-bar .header-icon-btn[title="Shopping Cart"] .at-hi-svg,
#mainHeader .header-top-bar .header-icon-btn[title="Shopping Cart"] path,
#headerMiddlePanel .header-top-bar .header-icon-btn[title="Shopping Cart"] path {
    color: #dc2626 !important;
    fill: #dc2626 !important;
}
#mainHeader .header-top-bar #soundBtn,
#mainHeader .header-top-bar #soundBtn .at-hi-svg,
#mainHeader .header-top-bar #soundBtn path,
#headerMiddlePanel .header-top-bar #soundBtn path {
    color: #64748b !important;
    fill: #64748b !important;
}
#mainHeader .header-top-bar #soundBtn.muted,
#mainHeader .header-top-bar #soundBtn.muted .at-hi-svg,
#mainHeader .header-top-bar #soundBtn.muted path,
#headerMiddlePanel .header-top-bar #soundBtn.muted path {
    color: #ef4444 !important;
    fill: #ef4444 !important;
}
#soundBtn.muted .at-hi-sound-on { display: none !important; }
#soundBtn.muted .at-hi-sound-off { display: block !important; }
#soundBtn:not(.muted) .at-hi-sound-on { display: block !important; }
#soundBtn:not(.muted) .at-hi-sound-off { display: none !important; }

@media (max-width: 992px) {
  #mainHeader .header-top-bar .header-icon-btn {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
  }
  #mainHeader .header-top-bar .header-icon-btn .at-hi-svg {
    width: 11px !important;
    height: 11px !important;
  }
}
