/* =========================================================================
   AXION-SHIELD: BRANDING CLEANER
   Pillar 127: CSS Isolation - Institutional Grade UI Control
   ========================================================================= */

/* Force strict #000000 background for all chart containers */
.tv-lightweight-charts,
[id^="tv-chart"],
.tv-chart-container,
.tradingview-chart,
.chart-container {
    background-color: #000000 !important;
}

/* Eliminate TradingView watermarks and branding in Advanced Charts & Lightweight Charts */
div[class*="chart-container"] div[class*="tradingview-widget-copyright"],
.tv-embed-widget-wrapper__footer,
#tv-chart-container .tv-chart-view__watermark,
.tradingview-widget-copyright,
[class*="watermark-"],
.tv-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Eliminate logo button in the bottom left corner */
div[data-name="branding"],
a[href*="tradingview.com"],
.tv-logo-container,
.layout__area--left .apply-common-tooltip[title*="TradingView"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Brutal elimination of any anchor or logo inside Lightweight Charts */
.tv-lightweight-charts a,
[id^="tv-attr-logo"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    clip-path: inset(100%) !important;
    clip: rect(0, 0, 0, 0) !important;
    position: absolute !important;
    z-index: -9999 !important;
}

/* Hide SVGs inside anchors in lightweight charts that might be the logo */
.tv-lightweight-charts a svg,
.tv-lightweight-charts table a {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Eliminate Shadow DOM elements if accessible */
:host ::part(watermark) {
    display: none !important;
}
