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

body.rsi-dark-page.screener-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;
    font-family: var(--rsi-body) !important;
    color: var(--rsi-text) !important;
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(14, 165, 233, 0.15), transparent 55%),
        radial-gradient(900px 500px at 90% 8%, rgba(234, 179, 8, 0.07), transparent 50%),
        var(--rsi-bg) !important;
}

/* Kill Arial / system leftovers from screener-page.css */
body.rsi-dark-page.screener-page,
body.rsi-dark-page.screener-page .container-fluid,
body.rsi-dark-page.screener-page .hero,
body.rsi-dark-page.screener-page .screener-toolbar,
body.rsi-dark-page.screener-page .filter-container,
body.rsi-dark-page.screener-page .timeframe-btn,
body.rsi-dark-page.screener-page .filter-btn,
body.rsi-dark-page.screener-page .filter-select,
body.rsi-dark-page.screener-page .signal-pill,
body.rsi-dark-page.screener-page #indicatorTable,
body.rsi-dark-page.screener-page #indicatorTable th,
body.rsi-dark-page.screener-page #indicatorTable td,
body.rsi-dark-page.screener-page #darkSymbolSearch,
body.rsi-dark-page.screener-page #paginationControls,
body.rsi-dark-page.screener-page .pagination-btn,
body.rsi-dark-page.screener-page .update-status {
    font-family: var(--rsi-body) !important;
}

/* Full-bleed layout — screener needs the whole viewport width */
body.rsi-dark-page.screener-page .container-fluid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1.25rem 1.25rem 2.5rem !important;
    background: transparent !important;
}

/* Hero */
body.rsi-dark-page.screener-page .hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.1rem !important;
    padding: 1.25rem 1.3rem !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.16), transparent 55%),
        rgba(13, 21, 36, 0.92) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26) !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.screener-page .hero::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.screener-page .hero h1 {
    font-family: var(--rsi-display) !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    color: var(--rsi-text) !important;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem !important;
}

body.rsi-dark-page.screener-page .hero p {
    color: var(--rsi-muted) !important;
    max-width: 78ch;
    margin: 0 !important;
    line-height: 1.55;
    opacity: 1 !important;
}

/* Toolbar */
body.rsi-dark-page.screener-page .screener-toolbar {
    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;
    padding: 0.85rem 1rem !important;
}

body.rsi-dark-page.screener-page .timeframe-btn {
    background: rgba(17, 26, 43, 0.95) !important;
    border: 1px solid var(--rsi-line) !important;
    color: var(--rsi-muted) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.03em;
    padding: 0.45rem 0.9rem !important;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

body.rsi-dark-page.screener-page .timeframe-btn:hover {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.screener-page .timeframe-btn.active,
body.rsi-dark-page.screener-page .timeframe-btn.active[data-timeframe="15m"],
body.rsi-dark-page.screener-page .timeframe-btn.active[data-timeframe="1h"],
body.rsi-dark-page.screener-page .timeframe-btn.active[data-timeframe="4h"],
body.rsi-dark-page.screener-page .timeframe-btn.active[data-timeframe="1d"] {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #7dd3fc !important;
}

body.rsi-dark-page.screener-page #dark-search-container,
body.rsi-dark-page.screener-page .dark-search-box {
    background: transparent !important;
}

body.rsi-dark-page.screener-page #darkSymbolSearch {
    background: rgba(17, 26, 43, 0.95) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 999px !important;
    color: var(--rsi-text) !important;
    min-height: 42px !important;
    padding: 0.55rem 1rem 0.55rem 2.4rem !important;
    font: 500 0.9rem var(--rsi-body) !important;
    box-shadow: none !important;
}

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

body.rsi-dark-page.screener-page #darkSymbolSearch: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.screener-page .dark-search-icon {
    color: var(--rsi-muted) !important;
}

body.rsi-dark-page.screener-page #darkClearSearch {
    background: rgba(17, 26, 43, 0.95) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 999px !important;
    color: #cbd5e1 !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.screener-page .search-status,
body.rsi-dark-page.screener-page #searchStatus {
    background: rgba(13, 21, 36, 0.9) !important;
    border: 1px solid var(--rsi-line) !important;
    color: var(--rsi-muted) !important;
    border-radius: 12px !important;
}

body.rsi-dark-page.screener-page .update-status {
    color: var(--rsi-muted) !important;
    background: rgba(17, 26, 43, 0.9) !important;
    border: 1px solid var(--rsi-line) !important;
    font-weight: 600 !important;
}

body.rsi-dark-page.screener-page .update-status.updating {
    color: #7dd3fc !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

body.rsi-dark-page.screener-page .loading-message,
body.rsi-dark-page.screener-page #loadingMessage {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    pointer-events: none !important;
}

/* Filter panel */
body.rsi-dark-page.screener-page .filter-container {
    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.screener-page .filter-header {
    border-bottom-color: var(--rsi-line) !important;
}

body.rsi-dark-page.screener-page .filter-title {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.55rem !important;
    font-family: var(--rsi-display) !important;
    color: var(--rsi-text) !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.screener-page .filter-title svg {
    color: var(--rsi-cyan) !important;
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

body.rsi-dark-page.screener-page .filter-title-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

body.rsi-dark-page.screener-page .filter-title-text > span {
    font-size: 1.05rem !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body.rsi-dark-page.screener-page .filter-title-sub {
    display: block;
    font-family: var(--rsi-body) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0;
    text-transform: none !important;
    color: var(--rsi-muted) !important;
    line-height: 1.35;
}

body.rsi-dark-page.screener-page .filter-reset-btn {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(248, 113, 113, 0.32) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.screener-page .filter-section {
    background: rgba(17, 26, 43, 0.75) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 12px !important;
}

body.rsi-dark-page.screener-page .filter-sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
}

body.rsi-dark-page.screener-page .filter-section-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.55rem 0.75rem !important;
    align-items: center !important;
}

body.rsi-dark-page.screener-page .filter-group,
body.rsi-dark-page.screener-page .composite-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

body.rsi-dark-page.screener-page .filter-section-title,
body.rsi-dark-page.screener-page .filter-label,
body.rsi-dark-page.screener-page .composite-label,
body.rsi-dark-page.screener-page .sort-label,
body.rsi-dark-page.screener-page .stat-label {
    color: var(--rsi-muted) !important;
    font-family: var(--rsi-body) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.66rem !important;
    white-space: nowrap;
}

body.rsi-dark-page.screener-page .composite-label.label-long {
    color: #6ee7b7 !important;
}

body.rsi-dark-page.screener-page .composite-label.label-short {
    color: #fca5a5 !important;
}

/* Filter button groups — dark segmented pills */
body.rsi-dark-page.screener-page .filter-btn-group {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 2px !important;
    background: rgba(7, 11, 20, 0.72) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.rsi-dark-page.screener-page .filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    min-height: 30px !important;
    padding: 0.28rem 0.7rem !important;
    border: none !important;
    border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-family: var(--rsi-body) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

body.rsi-dark-page.screener-page .filter-btn:last-child {
    border-right: none !important;
}

body.rsi-dark-page.screener-page .filter-btn::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    flex: 0 0 auto;
    background: currentColor;
    opacity: 0.85;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

body.rsi-dark-page.screener-page .filter-btn.tone-neutral {
    color: #fbbf24 !important;
}

body.rsi-dark-page.screener-page .filter-btn.tone-long {
    color: #34d399 !important;
}

body.rsi-dark-page.screener-page .filter-btn.tone-short {
    color: #f87171 !important;
}

body.rsi-dark-page.screener-page .filter-btn:hover {
    background: rgba(56, 189, 248, 0.1) !important;
    color: #e2e8f0 !important;
}

body.rsi-dark-page.screener-page .filter-btn.active-neutral {
    background: rgba(234, 179, 8, 0.22) !important;
    color: #fde68a !important;
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.35);
}

body.rsi-dark-page.screener-page .filter-btn.active-long {
    background: rgba(52, 211, 153, 0.22) !important;
    color: #6ee7b7 !important;
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.4);
}

body.rsi-dark-page.screener-page .filter-btn.active-short {
    background: rgba(248, 113, 113, 0.22) !important;
    color: #fca5a5 !important;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4);
}

body.rsi-dark-page.screener-page .filter-btn.active-neutral::before,
body.rsi-dark-page.screener-page .filter-btn.active-long::before,
body.rsi-dark-page.screener-page .filter-btn.active-short::before {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

body.rsi-dark-page.screener-page .filter-select {
    min-height: 32px !important;
    padding: 0.3rem 0.7rem !important;
    background: rgba(17, 26, 43, 0.95) !important;
    border: 1px solid var(--rsi-line) !important;
    color: var(--rsi-text) !important;
    border-radius: 999px !important;
    font-family: var(--rsi-body) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    outline: none !important;
}

body.rsi-dark-page.screener-page .filter-select:focus {
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12) !important;
}

body.rsi-dark-page.screener-page .filter-composite-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.65rem 1rem !important;
    align-items: center !important;
}

body.rsi-dark-page.screener-page .sort-group {
    border-left: 1px solid var(--rsi-line) !important;
    margin-left: auto !important;
    padding-left: 0.85rem !important;
}

body.rsi-dark-page.screener-page .filter-stats {
    border-top: 1px solid var(--rsi-line) !important;
    margin-top: 0.85rem !important;
    padding-top: 0.75rem !important;
}

body.rsi-dark-page.screener-page .stat-value {
    font-family: var(--rsi-display) !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.screener-page .stat-visible .stat-value {
    color: var(--rsi-green) !important;
}

body.rsi-dark-page.screener-page .stat-filtered .stat-value {
    color: var(--rsi-red) !important;
}

body.rsi-dark-page.screener-page .stat-divider {
    color: var(--rsi-line) !important;
}

/* Table shell */
body.rsi-dark-page.screener-page .screener-table-wrap,
body.rsi-dark-page.screener-page .table-wrap.screener-table-wrap {
    max-height: min(62vh, calc(100vh - 300px)) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(13, 21, 36, 0.96) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 14px !important;
    position: relative;
    margin-bottom: 1rem !important;
}

body.rsi-dark-page.screener-page .screener-table-wrap::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;
    background: rgba(13, 21, 36, 0.96);
    position: sticky;
    left: 0;
    bottom: 0;
}

body.rsi-dark-page.screener-page #indicatorTable {
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    color: var(--rsi-text) !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--rsi-text) !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: transparent !important;
    --bs-table-border-color: rgba(148, 163, 184, 0.12) !important;
}

body.rsi-dark-page.screener-page #indicatorTable th,
body.rsi-dark-page.screener-page #indicatorTable td {
    display: table-cell !important;
    white-space: nowrap;
    padding: 0.55rem 0.45rem !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    color: #cbd5e1 !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 0.78rem !important;
}

body.rsi-dark-page.screener-page #indicatorTable thead,
body.rsi-dark-page.screener-page #indicatorTable thead tr {
    background: #111a2b !important;
    background-color: #111a2b !important;
}

body.rsi-dark-page.screener-page #indicatorTable thead th,
body.rsi-dark-page.screener-page #indicatorTable > thead > tr > th,
body.rsi-dark-page.screener-page #indicatorTable tfoot th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    background: #111a2b !important;
    background-color: #111a2b !important;
    color: #94a3b8 !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid var(--rsi-line) !important;
    text-align: center !important;
    --bs-table-bg: #111a2b !important;
    --bs-table-bg-state: transparent !important;
    --bs-table-bg-type: transparent !important;
    --bs-table-accent-bg: transparent !important;
}

body.rsi-dark-page.screener-page #indicatorTable th:first-child,
body.rsi-dark-page.screener-page #indicatorTable td:first-child {
    position: sticky !important;
    left: 0 !important;
    right: auto !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;
    min-width: 118px;
    padding-left: 0.85rem !important;
    text-align: center !important;
}

body.rsi-dark-page.screener-page #indicatorTable thead th:first-child {
    z-index: 8 !important;
    background: #111a2b !important;
    background-color: #111a2b !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    text-align: center !important;
}

body.rsi-dark-page.screener-page #indicatorTable tbody td:first-child {
    text-align: center !important;
    background-color: #0d1524 !important;
    color: var(--rsi-cyan) !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.screener-page #indicatorTable td:first-child::before {
    background-color: #0d1524 !important;
}

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

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

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

body.rsi-dark-page.screener-page #indicatorTable tbody tr:hover td:first-child,
body.rsi-dark-page.screener-page #indicatorTable tbody tr:hover td:first-child::before {
    background-color: #152033 !important;
}

body.rsi-dark-page.screener-page #indicatorTable td:first-child a,
body.rsi-dark-page.screener-page #indicatorTable td.symbol-link-cell a {
    color: var(--rsi-cyan) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.screener-page #indicatorTable td:first-child a:hover {
    color: #7dd3fc !important;
}

/* Signal pills */
body.rsi-dark-page.screener-page .signal-pill,
body.rsi-dark-page.screener-page #indicatorTable .signal-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    padding: 0.22rem 0.55rem !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase !important;
    border: 1px solid transparent;
    line-height: 1.2;
}

body.rsi-dark-page.screener-page #indicatorTable .signal-pill.bg-green,
body.rsi-dark-page.screener-page #indicatorTable .bg-green,
body.rsi-dark-page.screener-page .signal-pill.bg-green,
body.rsi-dark-page.screener-page .bg-green {
    background: rgba(52, 211, 153, 0.14) !important;
    color: var(--rsi-green) !important;
    border-color: rgba(52, 211, 153, 0.32) !important;
}

body.rsi-dark-page.screener-page #indicatorTable .signal-pill.bg-red,
body.rsi-dark-page.screener-page #indicatorTable .bg-red,
body.rsi-dark-page.screener-page .signal-pill.bg-red,
body.rsi-dark-page.screener-page .bg-red {
    background: rgba(248, 113, 113, 0.14) !important;
    color: var(--rsi-red) !important;
    border-color: rgba(248, 113, 113, 0.32) !important;
}

body.rsi-dark-page.screener-page #indicatorTable .bg-yellow,
body.rsi-dark-page.screener-page .bg-yellow {
    background: rgba(234, 179, 8, 0.14) !important;
    color: #fde68a !important;
    border-color: rgba(234, 179, 8, 0.3) !important;
}

body.rsi-dark-page.screener-page #indicatorTable .bg-gray,
body.rsi-dark-page.screener-page .bg-gray {
    background: rgba(148, 163, 184, 0.12) !important;
    color: var(--rsi-muted) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

body.rsi-dark-page.screener-page #indicatorTable td.cell-tone-bull {
    background: rgba(52, 211, 153, 0.12) !important;
    color: #6ee7b7 !important;
}

body.rsi-dark-page.screener-page #indicatorTable td.cell-tone-bear {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
}

body.rsi-dark-page.screener-page #indicatorTable td.badge-cell {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35;
    overflow: hidden !important;
}

body.rsi-dark-page.screener-page #indicatorTable td.badge-cell .signal-pill {
    display: block !important;
    margin: 0.16rem auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-transform: none !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Sticky fake header from indicator-controller — hide (use real thead) */
body.rsi-dark-page.screener-page .indicator-sticky-head,
html[dir="rtl"] body.rsi-dark-page.screener-page .indicator-sticky-head {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Pagination */
body.rsi-dark-page.screener-page .pagination-container {
    background: rgba(13, 21, 36, 0.92) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 14px !important;
}

body.rsi-dark-page.screener-page .pagination-btn {
    background: rgba(17, 26, 43, 0.95) !important;
    border: 1px solid var(--rsi-line) !important;
    color: var(--rsi-muted) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.screener-page .pagination-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #7dd3fc !important;
}

body.rsi-dark-page.screener-page .pagination-btn-active,
body.rsi-dark-page.screener-page .pagination-btn:disabled {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #7dd3fc !important;
}

body.rsi-dark-page.screener-page .footer-simple,
body.rsi-dark-page.screener-page footer.footer-simple {
    background: #070b14 !important;
    background-color: #070b14 !important;
    border-top: 1px solid var(--rsi-line) !important;
    color: var(--rsi-muted) !important;
}

/* RTL chrome: filters/text mirror; table stays LTR like MACD/Signals */
html[dir="rtl"] body.rsi-dark-page.screener-page .page-header,
html[dir="rtl"] body.rsi-dark-page.screener-page .breadcrumb-nav,
html[dir="rtl"] body.rsi-dark-page.screener-page .filter-container,
html[dir="rtl"] body.rsi-dark-page.screener-page .filter-header,
html[dir="rtl"] body.rsi-dark-page.screener-page .filter-title,
html[dir="rtl"] body.rsi-dark-page.screener-page .filter-section-title,
html[dir="rtl"] body.rsi-dark-page.screener-page .filter-label,
html[dir="rtl"] body.rsi-dark-page.screener-page .filter-stats,
html[dir="rtl"] body.rsi-dark-page.screener-page .seo-description-section {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body.rsi-dark-page.screener-page .screener-table-wrap,
html[dir="rtl"] body.rsi-dark-page.screener-page #indicatorTable,
html[dir="rtl"] body.rsi-dark-page.screener-page #resultsTable {
    direction: ltr !important;
    unicode-bidi: isolate;
}

html[dir="rtl"] body.rsi-dark-page.screener-page #indicatorTable th,
html[dir="rtl"] body.rsi-dark-page.screener-page #indicatorTable td,
html[dir="rtl"] body.rsi-dark-page.screener-page #resultsTable th,
html[dir="rtl"] body.rsi-dark-page.screener-page #resultsTable td {
    text-align: center !important;
    direction: ltr !important;
}

/* Physical left sticky for Symbol (table is LTR) — same as MACD */
html[dir="rtl"] body.rsi-dark-page.screener-page #indicatorTable th:first-child,
html[dir="rtl"] body.rsi-dark-page.screener-page #indicatorTable td:first-child,
html[dir="rtl"] body.rsi-dark-page.screener-page #resultsTable th:first-child,
html[dir="rtl"] body.rsi-dark-page.screener-page #resultsTable td:first-child {
    position: sticky !important;
    left: 0 !important;
    right: auto !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.35) !important;
    border-right: 1px solid var(--rsi-line) !important;
    border-left: none !important;
    text-align: center !important;
}

html[dir="rtl"] body.rsi-dark-page.screener-page #indicatorTable thead th:first-child,
html[dir="rtl"] body.rsi-dark-page.screener-page #resultsTable thead th:first-child {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 8 !important;
    background: #111a2b !important;
    background-color: #111a2b !important;
    text-align: center !important;
}

html[dir="rtl"] body.rsi-dark-page.screener-page #indicatorTable tbody td:first-child,
html[dir="rtl"] body.rsi-dark-page.screener-page #resultsTable tbody td:first-child {
    text-align: center !important;
}

@media (min-width: 1024px) {
    body.rsi-dark-page.screener-page #indicatorTable {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        font-size: 0.72rem !important;
    }

    body.rsi-dark-page.screener-page #indicatorTable th,
    body.rsi-dark-page.screener-page #indicatorTable td {
        min-width: 0 !important;
        font-size: 0.72rem !important;
    }

    body.rsi-dark-page.screener-page #indicatorTable thead th {
        font-size: 0.62rem !important;
    }

    /* RSI / TSI / ADX: compact numeric cols → free space for DIV / ATR */
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(3),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(3),
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(4),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(4),
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(5),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(5) {
        width: 3.35rem !important;
        max-width: 3.35rem !important;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    /* VOLATILITY (last col): Low / Mid / High labels need little width */
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(22),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(22) {
        width: 4.5rem !important;
        max-width: 4.5rem !important;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        font-size: 0.65rem !important;
    }

    /* BB / Vol Spike / MACD: compact Long/Short pills */
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(6),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(6),
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(17),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(17),
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(18),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(18) {
        width: 3.6rem !important;
        max-width: 3.6rem !important;
        padding-left: 0.12rem !important;
        padding-right: 0.12rem !important;
        overflow: hidden !important;
    }

    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(6) .signal-pill,
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(17) .signal-pill,
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(18) .signal-pill {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.16rem 0.2rem !important;
        font-size: 0.58rem !important;
        box-sizing: border-box !important;
    }

    /* DIV (RSI/OBV): take freed space; clip so it never paints over ATR */
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(19),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(19) {
        width: 9.75rem !important;
        max-width: 9.75rem !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        overflow: hidden !important;
        vertical-align: middle !important;
    }

    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(20),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(20),
    body.rsi-dark-page.screener-page #indicatorTable th:nth-child(21),
    body.rsi-dark-page.screener-page #indicatorTable td:nth-child(21) {
        overflow: hidden !important;
        position: relative;
        z-index: 1;
    }

    body.rsi-dark-page.screener-page .screener-table-wrap::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.rsi-dark-page.screener-page .container-fluid {
        width: 100% !important;
        max-width: none !important;
        padding: 0.85rem 0.75rem 2rem !important;
    }

    body.rsi-dark-page.screener-page .hero h1 {
        font-size: 1.3rem !important;
    }

    body.rsi-dark-page.screener-page #indicatorTable th:first-child,
    body.rsi-dark-page.screener-page #indicatorTable td:first-child {
        min-width: 96px;
    }
}
