/* TradeAnalyzer.Pro — Supertrend pages (Crypto + Markets), extends rsi-pro-page.css */

body.rsi-dark-page.supertrend-page {
    --rsi-bg: #070b14;
    --rsi-panel: #0d1524;
    --rsi-card: #111a2b;
    --rsi-line: rgba(148, 163, 184, 0.18);
    --rsi-text: #e8eef7;
    --rsi-muted: #94a3b8;
    --rsi-cyan: #38bdf8;
    --rsi-blue: #0ea5e9;
    --rsi-gold: #eab308;
    --rsi-green: #34d399;
    --rsi-red: #f87171;
    --rsi-radius: 16px;
    --rsi-display: "Sora", system-ui, sans-serif;
    --rsi-body: "IBM Plex Sans", system-ui, sans-serif;
    overflow-x: hidden !important;
}

body.rsi-dark-page.supertrend-page .page-header,
body.rsi-dark-page.supertrend-page .page-header .container,
body.rsi-dark-page.supertrend-page .page-header .container-fluid {
    text-align: start !important;
}

body.rsi-dark-page.supertrend-page .page-header h1,
body.rsi-dark-page.supertrend-page .page-header .lead {
    text-align: start !important;
    margin-inline: 0 !important;
    max-width: 78ch;
}

body.rsi-dark-page.supertrend-page #contentArea.container-fluid,
body.rsi-dark-page.supertrend-page #contentArea {
    width: min(1320px, calc(100% - 2rem)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 1.5rem 1.25rem 3.5rem !important;
    overflow: visible !important;
}

/* RTL (FA/AR): same controlled column as LTR — only mirror text/search, not full-bleed */
html[dir="rtl"] body.rsi-dark-page.supertrend-page #contentArea.container-fluid,
html[dir="rtl"] body.rsi-dark-page.supertrend-page #contentArea {
    width: min(1320px, calc(100% - 2rem)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
}

html[dir="rtl"] body.rsi-dark-page.supertrend-page .breadcrumb-nav,
html[dir="rtl"] body.rsi-dark-page.supertrend-page .page-header,
html[dir="rtl"] body.rsi-dark-page.supertrend-page .st-toolbar,
html[dir="rtl"] body.rsi-dark-page.supertrend-page .st-overview-panel,
html[dir="rtl"] body.rsi-dark-page.supertrend-page .st-breadth-panel,
html[dir="rtl"] body.rsi-dark-page.supertrend-page .st-table-panel,
html[dir="rtl"] body.rsi-dark-page.supertrend-page .seo-description-section {
    direction: rtl;
    text-align: start;
}

body.rsi-dark-page.supertrend-page #status {
    border-radius: 12px !important;
    border: 1px solid var(--rsi-line) !important;
    background: rgba(13, 21, 36, 0.88) !important;
    color: var(--rsi-muted) !important;
    margin-bottom: 1rem !important;
    box-shadow: none !important;
}

/* ── Toolbar: filters + search ── */
body.rsi-dark-page.supertrend-page .st-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 0 1.25rem !important;
    padding: 1.1rem 1.2rem !important;
    overflow: visible !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(640px 220px at 0% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
        rgba(13, 21, 36, 0.92) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26) !important;
}

body.rsi-dark-page.supertrend-page .st-toolbar::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rsi-cyan), var(--rsi-gold), transparent);
    pointer-events: none;
}

body.rsi-dark-page.supertrend-page .st-filter-group {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    border: 0 !important;
}

body.rsi-dark-page.supertrend-page .st-filter-btn {
    min-height: 38px !important;
    padding: 0.5rem 1rem !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 999px !important;
    background: rgba(13, 21, 36, 0.85) !important;
    color: #cbd5e1 !important;
    font-family: var(--rsi-body) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}

body.rsi-dark-page.supertrend-page .st-filter-btn:hover {
    border-color: rgba(56, 189, 248, 0.38) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.supertrend-page .st-filter-btn--all.active,
body.rsi-dark-page.supertrend-page .st-filter-btn--all.active-filter {
    border-color: rgba(56, 189, 248, 0.55) !important;
    background: rgba(14, 165, 233, 0.18) !important;
    color: #7dd3fc !important;
}

body.rsi-dark-page.supertrend-page .st-filter-btn--long.active,
body.rsi-dark-page.supertrend-page .st-filter-btn--long.active-filter {
    border-color: rgba(52, 211, 153, 0.5) !important;
    background: rgba(52, 211, 153, 0.14) !important;
    color: var(--rsi-green) !important;
}

body.rsi-dark-page.supertrend-page .st-filter-btn--short.active,
body.rsi-dark-page.supertrend-page .st-filter-btn--short.active-filter {
    border-color: rgba(248, 113, 113, 0.5) !important;
    background: rgba(248, 113, 113, 0.14) !important;
    color: var(--rsi-red) !important;
}

body.rsi-dark-page.supertrend-page .st-search-wrap,
body.rsi-dark-page.supertrend-page #search-container {
    position: relative;
    flex: 1 1 320px;
    width: min(100%, 520px) !important;
    max-width: 520px;
    margin-inline-start: auto;
    overflow: visible !important;
}

body.rsi-dark-page.supertrend-page .search-box,
body.rsi-dark-page.supertrend-page .st-search-wrap.search-controls {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    overflow: visible !important;
}

body.rsi-dark-page.supertrend-page .search-box .search-icon,
body.rsi-dark-page.supertrend-page .st-search-wrap > .search-icon {
    position: absolute;
    inset-inline-start: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--rsi-muted) !important;
    font-size: 0.9rem;
    pointer-events: none;
}

body.rsi-dark-page.supertrend-page #symbolSearch {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.7rem 1rem 0.7rem 2.45rem !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 999px !important;
    background: rgba(17, 26, 43, 0.9) !important;
    color: var(--rsi-text) !important;
    font: 500 0.92rem var(--rsi-body) !important;
    box-shadow: none !important;
    outline: none !important;
}

html[dir="rtl"] body.rsi-dark-page.supertrend-page #symbolSearch {
    padding: 0.7rem 2.45rem 0.7rem 1rem !important;
}

body.rsi-dark-page.supertrend-page #symbolSearch::placeholder {
    color: rgba(148, 163, 184, 0.75) !important;
}

body.rsi-dark-page.supertrend-page #symbolSearch:focus {
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14) !important;
}

body.rsi-dark-page.supertrend-page .st-search-wrap #clearSearch,
body.rsi-dark-page.supertrend-page .search-box #clearSearch {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 0.55rem 1rem !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
    border-radius: 999px !important;
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
    font: 600 0.88rem var(--rsi-body) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.rsi-dark-page.supertrend-page .st-search-wrap #clearSearch:hover,
body.rsi-dark-page.supertrend-page .search-box #clearSearch:hover {
    background: rgba(248, 113, 113, 0.2) !important;
    color: #fecaca !important;
}

/* Preview search dropdown: Symbol · Signal · Price · ATR · Found */
body.rsi-dark-page.supertrend-page .search-results,
body.rsi-dark-page.supertrend-page .rsi-search-ac {
    position: absolute !important;
    z-index: 1200 !important;
    top: calc(100% + 0.4rem) !important;
    left: 0 !important;
    right: auto !important;
    width: max(100%, 520px) !important;
    max-width: min(560px, 92vw) !important;
    max-height: min(320px, 48vh) !important;
    margin: 0 !important;
    padding: 0.35rem !important;
    overflow: hidden !important;
    display: none !important;
    flex-direction: column !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 14px !important;
    background: rgba(13, 21, 36, 0.98) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(8px);
}

body.rsi-dark-page.supertrend-page .search-results.is-open,
body.rsi-dark-page.supertrend-page .rsi-search-ac.is-open {
    display: flex !important;
}

body.rsi-dark-page.supertrend-page .search-result-item {
    grid-template-columns: minmax(6.5rem, 0.9fr) minmax(0, 2fr) !important;
    gap: 0.45rem 0.65rem !important;
    padding: 0.5rem 0.65rem !important;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-symbol {
    max-width: 9.5rem;
    font-size: 0.88rem;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metrics,
body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metrics--4 {
    width: 100%;
    grid-template-columns: 0.85fr 1fr 1fr 1.25fr !important;
    gap: 0.35rem;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-value {
    font-size: 0.78rem;
    white-space: nowrap;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-label {
    font-size: 0.58rem;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-updated {
    display: none !important;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-value.signal-long-val {
    color: var(--rsi-green) !important;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-value.signal-short-val {
    color: var(--rsi-red) !important;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-value.price-val {
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-value.found-fresh {
    color: #1a1203 !important;
    background: #eab308;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-value.found-recent {
    color: #fde68a !important;
}

body.rsi-dark-page.supertrend-page .search-result-item .rsi-ac-metric-value.found-muted {
    color: var(--rsi-muted) !important;
}

/* ── Timeframe overview ── */
body.rsi-dark-page.supertrend-page .st-overview-panel {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.25rem !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(700px 240px at 100% 0%, rgba(234, 179, 8, 0.08), transparent 55%),
        rgba(13, 21, 36, 0.92) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26) !important;
}

body.rsi-dark-page.supertrend-page .st-overview-panel::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rsi-cyan), var(--rsi-gold), transparent);
}

body.rsi-dark-page.supertrend-page .st-overview-header {
    padding: 1.15rem 1.25rem 0 !important;
}

body.rsi-dark-page.supertrend-page .st-overview-title strong {
    font-family: var(--rsi-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--rsi-text) !important;
    letter-spacing: -0.02em;
}

body.rsi-dark-page.supertrend-page .st-overview-title small {
    color: var(--rsi-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

body.rsi-dark-page.supertrend-page .st-overview-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12) !important;
    color: var(--rsi-cyan) !important;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.28) !important;
}

body.rsi-dark-page.supertrend-page .st-tf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.2rem !important;
}

body.rsi-dark-page.supertrend-page .st-tf-card {
    position: relative;
    background: rgba(17, 26, 43, 0.92) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 14px !important;
    padding: 0.95rem !important;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
    border-left-width: 1px !important;
}

body.rsi-dark-page.supertrend-page .st-tf-card--15m,
body.rsi-dark-page.supertrend-page .st-tf-card--1h,
body.rsi-dark-page.supertrend-page .st-tf-card--4h,
body.rsi-dark-page.supertrend-page .st-tf-card--1d {
    border-left-color: var(--rsi-line) !important;
}

body.rsi-dark-page.supertrend-page .st-tf-card:hover {
    background: rgba(17, 26, 43, 1) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

body.rsi-dark-page.supertrend-page .st-tf-card.active {
    background: rgba(14, 165, 233, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18) !important;
    transform: none !important;
}

body.rsi-dark-page.supertrend-page .st-tf-card-head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--rsi-line);
}

body.rsi-dark-page.supertrend-page .st-tf-label {
    font-family: var(--rsi-display) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--rsi-text) !important;
    letter-spacing: -0.02em;
}

body.rsi-dark-page.supertrend-page .st-tf-badge {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08) !important;
    color: var(--rsi-muted) !important;
    border: 1px solid var(--rsi-line) !important;
}

body.rsi-dark-page.supertrend-page .st-tf-stat-label {
    color: var(--rsi-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

body.rsi-dark-page.supertrend-page .st-tf-stat-val {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
}

body.rsi-dark-page.supertrend-page .st-tf-stat-val--long { color: var(--rsi-green) !important; }
body.rsi-dark-page.supertrend-page .st-tf-stat-val--short { color: var(--rsi-red) !important; }

body.rsi-dark-page.supertrend-page .st-tf-updated {
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--rsi-line);
    color: var(--rsi-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
}

/* ── Signals table panel ── */
body.rsi-dark-page.supertrend-page .st-table-panel {
    overflow: visible !important;
    margin: 0 0 1.25rem !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 20px !important;
    background: rgba(13, 21, 36, 0.92) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26) !important;
}

body.rsi-dark-page.supertrend-page .st-table-header {
    padding: 1.05rem 1.2rem !important;
    border-bottom: 1px solid var(--rsi-line) !important;
    background: rgba(17, 26, 43, 0.85) !important;
}

body.rsi-dark-page.supertrend-page .st-table-title h2 {
    margin: 0;
    font-family: var(--rsi-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--rsi-text) !important;
    letter-spacing: -0.02em;
}

body.rsi-dark-page.supertrend-page .st-table-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12) !important;
    color: var(--rsi-cyan) !important;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.28) !important;
}

body.rsi-dark-page.supertrend-page .st-table-body {
    background: transparent !important;
    padding: 0 !important;
}

body.rsi-dark-page.supertrend-page .st-table-scroll {
    max-height: min(62vh, calc(100vh - 300px));
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: transparent !important;
    border-radius: 0 0 20px 20px;
}

body.rsi-dark-page.supertrend-page .st-table-scroll::after {
    content: "← scroll for all columns →";
    display: block;
    text-align: center;
    font-size: 0.68rem;
    color: var(--rsi-muted);
    padding: 0.4rem 0 0.35rem;
    letter-spacing: 0.02em;
    background: rgba(13, 21, 36, 0.96);
    position: sticky;
    left: 0;
    bottom: 0;
}

body.rsi-dark-page.supertrend-page #supertrendTable {
    width: max-content !important;
    min-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    box-shadow: none !important;
    table-layout: auto !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable th,
body.rsi-dark-page.supertrend-page #supertrendTable td {
    display: table-cell !important;
    white-space: nowrap;
}

body.rsi-dark-page.supertrend-page #supertrendTable thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    background: rgba(17, 26, 43, 0.98) !important;
    color: var(--rsi-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid var(--rsi-line) !important;
    box-shadow: none !important;
    padding: 0.75rem 0.65rem !important;
    vertical-align: middle !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable th:first-child,
body.rsi-dark-page.supertrend-page #supertrendTable td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.35) !important;
    border-right: 1px solid var(--rsi-line) !important;
    isolation: isolate;
}

body.rsi-dark-page.supertrend-page #supertrendTable thead th:first-child {
    z-index: 8 !important;
    background-color: rgba(17, 26, 43, 0.98) !important;
    text-align: left !important;
    padding-left: 1rem !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable td:first-child {
    background-color: #0d1524 !important;
    color: var(--rsi-cyan) !important;
    font-weight: 700 !important;
    padding-left: 1rem !important;
    text-align: left !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable td:first-child::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #0d1524;
    z-index: -1;
    pointer-events: none;
}

body.rsi-dark-page.supertrend-page #supertrendTable tbody tr:nth-child(even) td:first-child::before {
    background-color: #111a2b;
}

body.rsi-dark-page.supertrend-page #supertrendTable tbody tr:hover td:first-child::before {
    background-color: #152033;
}

body.rsi-dark-page.supertrend-page #supertrendTable tbody tr:nth-child(even) td:not(:first-child) {
    background-color: rgba(17, 26, 43, 0.55) !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable tbody tr:nth-child(even) td:first-child {
    background-color: #111a2b !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable tbody tr:hover td:not(:first-child) {
    background-color: rgba(56, 189, 248, 0.07) !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable tbody tr:hover td:first-child {
    background-color: #152033 !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable tbody td {
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    padding: 0.7rem 0.55rem !important;
    font-variant-numeric: tabular-nums;
    vertical-align: middle !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable td:first-child a,
body.rsi-dark-page.supertrend-page #supertrendTable td:first-child .symbol-link {
    color: var(--rsi-cyan) !important;
    text-decoration: none !important;
}

body.rsi-dark-page.supertrend-page #supertrendTable td:first-child .symbol-link:hover {
    color: #7dd3fc !important;
}

body.rsi-dark-page.supertrend-page .supertrend-table .text-center,
body.rsi-dark-page.supertrend-page #supertrendTable .text-muted {
    color: var(--rsi-muted) !important;
    font-style: italic;
    padding: 1.5rem !important;
}

body.rsi-dark-page.supertrend-page .signal-long,
body.rsi-dark-page.supertrend-page .signal-buy {
    background: rgba(52, 211, 153, 0.12) !important;
    color: var(--rsi-green) !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
    font-weight: 700 !important;
    padding: 0.3rem 0.65rem !important;
    border-radius: 999px !important;
    display: inline-block !important;
    min-width: 4.5rem !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.03em;
}

body.rsi-dark-page.supertrend-page .signal-short,
body.rsi-dark-page.supertrend-page .signal-sell {
    background: rgba(248, 113, 113, 0.12) !important;
    color: var(--rsi-red) !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
    font-weight: 700 !important;
    padding: 0.3rem 0.65rem !important;
    border-radius: 999px !important;
    display: inline-block !important;
    min-width: 4.5rem !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.03em;
}

body.rsi-dark-page.supertrend-page .time-display,
body.rsi-dark-page.supertrend-page .signal-value-display {
    background: rgba(17, 26, 43, 0.9) !important;
    border: 1px solid var(--rsi-line) !important;
    color: var(--rsi-muted) !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.28rem 0.65rem !important;
    display: inline-block !important;
    white-space: nowrap;
    min-width: 4.75rem;
    text-align: center;
}

body.rsi-dark-page.supertrend-page .time-display.time-display-recent {
    background: rgba(234, 179, 8, 0.14) !important;
    border-color: rgba(234, 179, 8, 0.4) !important;
    color: #fde68a !important;
}

/* Fresh signals (< 5 min): gold pill like "Just now" */
body.rsi-dark-page.supertrend-page .time-display.time-display-fresh {
    background: #eab308 !important;
    border-color: #ca8a04 !important;
    color: #1a1203 !important;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
}

body.rsi-dark-page.supertrend-page .new-signal-change {
    background-color: rgba(234, 179, 8, 0.08) !important;
}

body.rsi-dark-page.supertrend-page .new-signal-change::before {
    background-color: var(--rsi-gold) !important;
}

/* SEO / FAQ */
body.rsi-dark-page.supertrend-page .seo-description-section .card,
body.rsi-dark-page.supertrend-page .accordion-item {
    background: rgba(13, 21, 36, 0.92) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

body.rsi-dark-page.supertrend-page .seo-description-section .card-body,
body.rsi-dark-page.supertrend-page .seo-description-section p {
    color: var(--rsi-muted) !important;
}

body.rsi-dark-page.supertrend-page .seo-description-section h2,
body.rsi-dark-page.supertrend-page .seo-description-section h3 {
    font-family: var(--rsi-display) !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.supertrend-page .seo-description-section a {
    color: var(--rsi-cyan) !important;
}

body.rsi-dark-page.supertrend-page .seo-description-section .alert-info {
    background: rgba(56, 189, 248, 0.08) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    color: var(--rsi-muted) !important;
}

@media (max-width: 992px) {
    body.rsi-dark-page.supertrend-page .st-tf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    body.rsi-dark-page.supertrend-page #supertrendTable {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    body.rsi-dark-page.supertrend-page #supertrendTable th,
    body.rsi-dark-page.supertrend-page #supertrendTable td {
        min-width: 0 !important;
    }

    body.rsi-dark-page.supertrend-page .st-table-scroll::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.rsi-dark-page.supertrend-page #contentArea.container-fluid,
    body.rsi-dark-page.supertrend-page #contentArea {
        width: min(100%, calc(100% - 1.25rem)) !important;
        padding: 1rem 0 2.5rem !important;
    }

    body.rsi-dark-page.supertrend-page .st-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    body.rsi-dark-page.supertrend-page .st-search-wrap,
    body.rsi-dark-page.supertrend-page #search-container {
        max-width: none;
        width: 100% !important;
        margin-inline-start: 0;
    }

    body.rsi-dark-page.supertrend-page .st-tf-grid {
        grid-template-columns: 1fr;
    }

    body.rsi-dark-page.supertrend-page .st-table-scroll {
        max-height: min(70vh, calc(100dvh - 260px)) !important;
    }

    body.rsi-dark-page.supertrend-page #supertrendTable th:first-child,
    body.rsi-dark-page.supertrend-page #supertrendTable td:first-child {
        min-width: 108px !important;
        width: 108px !important;
        max-width: 108px !important;
    }
}

html[dir="rtl"] body.rsi-dark-page.supertrend-page .st-table-scroll,
html[dir="rtl"] body.rsi-dark-page.supertrend-page #supertrendTable {
    direction: ltr;
}

html[dir="rtl"] body.rsi-dark-page.supertrend-page .st-search-wrap,
html[dir="rtl"] body.rsi-dark-page.supertrend-page #search-container {
    direction: rtl;
}

html[dir="rtl"] body.rsi-dark-page.supertrend-page .search-box .search-icon,
html[dir="rtl"] body.rsi-dark-page.supertrend-page .st-search-wrap > .search-icon {
    right: 0.9rem !important;
    left: auto !important;
}

body.rsi-dark-page.supertrend-page .footer-simple,
body.rsi-dark-page.supertrend-page footer.footer-simple {
    background: #070b14 !important;
    background-color: #070b14 !important;
}

/* Overview card extras */
body.rsi-dark-page.supertrend-page .st-overview-heading {
    font-family: var(--rsi-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rsi-text);
}

body.rsi-dark-page.supertrend-page .st-tf-summary {
    font-size: 0.82rem;
    color: var(--rsi-muted);
    line-height: 1.45;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

body.rsi-dark-page.supertrend-page .st-tf-summary strong {
    color: var(--rsi-text);
    font-weight: 700;
}

body.rsi-dark-page.supertrend-page .st-tf-updated {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.85);
}

/* Market breadth panel */
body.rsi-dark-page.supertrend-page .st-breadth-panel .card {
    border: 1px solid var(--rsi-line);
    border-radius: var(--rsi-radius);
    background: rgba(13, 21, 36, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

body.rsi-dark-page.supertrend-page .st-breadth-panel h2 {
    font-family: var(--rsi-display);
    font-weight: 700;
    color: var(--rsi-text);
}

body.rsi-dark-page.supertrend-page .st-breadth-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

body.rsi-dark-page.supertrend-page .st-live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rsi-muted);
    white-space: nowrap;
}

body.rsi-dark-page.supertrend-page .st-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rsi-green);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    animation: st-live-pulse 2s ease-in-out infinite;
}

body.rsi-dark-page.supertrend-page .st-live-label {
    color: var(--rsi-green);
    font-weight: 800;
    letter-spacing: 0.06em;
}

body.rsi-dark-page.supertrend-page .st-live-sep {
    opacity: 0.45;
}

@keyframes st-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
    50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}

body.rsi-dark-page.supertrend-page .st-breadth-summary-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--rsi-line);
    border-radius: 12px;
    background: rgba(17, 26, 43, 0.65);
}

body.rsi-dark-page.supertrend-page .st-bias-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

body.rsi-dark-page.supertrend-page .st-bias-tf {
    color: var(--rsi-muted);
    font-weight: 600;
}

body.rsi-dark-page.supertrend-page .st-bias-pill--bull .st-bias-label { color: var(--rsi-green); }
body.rsi-dark-page.supertrend-page .st-bias-pill--bear .st-bias-label { color: var(--rsi-red); }
body.rsi-dark-page.supertrend-page .st-bias-pill--mixed .st-bias-label { color: var(--rsi-gold); }

body.rsi-dark-page.supertrend-page .st-bias-sep {
    color: rgba(148, 163, 184, 0.35);
    font-weight: 400;
    user-select: none;
}

body.rsi-dark-page.supertrend-page .st-breadth-content {
    color: var(--rsi-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

body.rsi-dark-page.supertrend-page .st-breadth-content strong {
    color: var(--rsi-text);
}

body.rsi-dark-page.supertrend-page .st-breadth-refreshed {
    color: rgba(148, 163, 184, 0.75);
}

/* Related indicators */
body.rsi-dark-page.supertrend-page .st-related-intro {
    color: var(--rsi-muted);
    font-size: 0.9rem;
    max-width: 62ch;
}

body.rsi-dark-page.supertrend-page .st-related-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
}

body.rsi-dark-page.supertrend-page .st-related-links a {
    color: var(--rsi-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

body.rsi-dark-page.supertrend-page .st-related-links a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* NEW signal badge */
body.rsi-dark-page.supertrend-page .st-badge-new {
    background: rgba(234, 179, 8, 0.18) !important;
    color: #fde68a !important;
    border: 1px solid rgba(234, 179, 8, 0.45);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

@media (max-width: 768px) {
    body.rsi-dark-page.supertrend-page .st-tf-grid {
        grid-template-columns: 1fr !important;
    }

    body.rsi-dark-page.supertrend-page .st-related-links {
        grid-template-columns: 1fr 1fr;
    }
}
