/* ═══════════════════════════════════════════════════════════════════════════════
   GODSTOCKS PRO AUTO-SCROLLING TICKER NAVBAR & COMPACT HERO CHART ENGINE
   Design: Dual Theme (Dark Cyber-Gold + Clean Pro White) & Fully Mobile Responsive
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── TOP AUTO-SCROLLING NAVBAR LINE (REPLACES OLD STATIC BAR) ── */
.nav-scroller-bar {
    position: fixed;
    top: 103px;
    left: 0;
    width: 100%;
    z-index: 99997;
    background: rgba(6, 6, 8, 0.96);
    border-bottom: 1px solid rgba(255, 215, 0, 0.16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    height: 42px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    user-select: none;
}

.nav-scroller-track {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    width: max-content;
    animation: navAutoScroll 30s linear infinite;
    padding: 0 12px;
}

.nav-scroller-bar:hover .nav-scroller-track {
    animation-play-state: paused;
}

@keyframes navAutoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

.nav-scroll-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    height: 26px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #cbd5e1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    flex-shrink: 0;
    box-sizing: border-box;
    opacity: 0.9;
}

.nav-scroll-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-scroll-pill .pill-chg {
    font-size: 0.76rem;
    font-weight: 800;
    margin-left: 2px;
}

/* Green for positive (+) after open */
.nav-scroll-pill.is-pos {
    color: #00E676 !important;
}
.nav-scroll-pill.is-pos .pill-dot {
    background: #00E676 !important;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.7);
}
.nav-scroll-pill.is-pos .pill-chg {
    color: #00E676 !important;
}

/* Red for negative (-) after open */
.nav-scroll-pill.is-neg {
    color: #FF3366 !important;
}
.nav-scroll-pill.is-neg .pill-dot {
    background: #FF3366 !important;
    box-shadow: 0 0 6px rgba(255, 51, 102, 0.7);
}
.nav-scroll-pill.is-neg .pill-chg {
    color: #FF3366 !important;
}

.nav-scroll-pill:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Active Index indicator (clean bold highlight, NO borders, NO oval box) */
.nav-scroll-pill.active {
    opacity: 1 !important;
    font-weight: 900 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.nav-scroll-pill.active .pill-dot {
    transform: scale(1.35);
}

/* ── MAIN CENTERED OVERVIEW WRAPPER ── */
.idx-overview-wrapper {
    max-width: 1240px;
    margin: 0 auto 1.8rem auto;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

/* ── INDEX CARDS HORIZONTAL STRIP CAROUSEL (MATCHING EXACT SCREENSHOT) ── */
.idx-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.1rem;
    width: 100%;
    position: relative;
}

.idx-carousel-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    z-index: 2;
}

body:not(.light-theme) .idx-carousel-arrow,
html:not(.light-theme) .idx-carousel-arrow {
    border: 1.5px solid #FFD700;
    background: rgba(14, 16, 20, 0.95);
    color: #FFD700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

body:not(.light-theme) .idx-carousel-arrow:hover,
html:not(.light-theme) .idx-carousel-arrow:hover {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.55);
    transform: scale(1.08);
}

.idx-carousel-arrow:active {
    transform: scale(0.96);
}

.idx-cards-track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    width: 100%;
}

.idx-cards-track::-webkit-scrollbar {
    display: none;
}

.idx-mini-card {
    flex: 1 0 168px;
    min-width: 160px;
    max-width: 205px;
    background: linear-gradient(180deg, rgba(16, 18, 24, 0.96) 0%, rgba(10, 11, 15, 0.98) 100%);
    border: 1.2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.idx-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

body:not(.light-theme) .idx-mini-card.active,
html:not(.light-theme) .idx-mini-card.active {
    border: 1.6px solid #FFD700 !important;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1) 0%, rgba(14, 16, 22, 0.98) 100%) !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}

body:not(.light-theme) .idx-mini-card.active .idx-mini-label,
html:not(.light-theme) .idx-mini-card.active .idx-mini-label {
    color: #FFD700 !important;
}

.idx-mini-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.idx-mini-card.active .idx-mini-label {
    color: #FFD700;
    font-weight: 800;
}

.idx-mini-ltp {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.42rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.idx-mini-chg {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

.idx-mini-chg.neg {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.28);
}

.idx-mini-chg.pos {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    border: 1px solid rgba(0, 230, 118, 0.28);
}

/* ── HERO OVERVIEW & INTERACTIVE CHART CARD ── */
.idx-hero-card {
    background: linear-gradient(180deg, rgba(16, 16, 18, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.16);
    border-radius: 10px;
    padding: 1.2rem 1.5rem 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.idx-hero-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.idx-hero-left {
    display: flex;
    flex-direction: column;
}

.idx-hero-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.idx-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    color: #FFD700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.idx-hero-arrow {
    color: #FFD700;
    font-size: 0.80rem;
    opacity: 0.8;
}

.idx-hero-timestamp {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.68rem;
    color: #64748b;
    margin-left: 6px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.idx-hero-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.idx-hero-ltp {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.82rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.idx-hero-chg {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
}

.idx-hero-chg.pos {
    color: #00E676;
}

.idx-hero-chg.neg {
    color: #FF3366;
}

/* ── OPEN / HIGH / LOW STATS ── */
.idx-hero-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    padding: 6px 14px;
}

.idx-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.idx-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-open {
    background: #00E5FF;
    box-shadow: 0 0 6px #00E5FF;
}

.dot-high {
    background: #00E676;
    box-shadow: 0 0 6px #00E676;
}

.dot-low {
    background: #FF3366;
    box-shadow: 0 0 6px #FF3366;
}

.idx-stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
}

.idx-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    color: #ffffff;
}

/* ── TIMEFRAME PILLS & FULL VIEW BUTTON ── */
.idx-hero-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.idx-tf-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 10, 12, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.14);
    border-radius: 7px;
    padding: 2px 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.idx-tf-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    min-height: 0 !important;
    max-height: 24px !important;
    height: 22px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
}

.idx-tf-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.idx-tf-btn.active {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 900 !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.idx-fullview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #FFD700;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 6px 13px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    white-space: nowrap;
}

.idx-fullview-btn:hover {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
    transform: translateY(-1px);
}

.idx-fullview-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.idx-fullview-btn:hover svg {
    transform: scale(1.15);
}

/* ── CHART WRAPPER & TOOLTIP ── */
.idx-chart-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    min-height: 340px;
    margin-top: 6px;
}

#idxHeroCanvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.idx-chart-tooltip {
    position: absolute;
    background: rgba(10, 15, 28, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 8px;
    padding: 7px 11px;
    pointer-events: none;
    z-index: 30;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    transform: translate(-50%, -120%);
    transition: opacity 0.12s ease, transform 0.05s ease;
    white-space: nowrap;
}

.tooltip-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.tooltip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FF3366;
    box-shadow: 0 0 6px #FF3366;
}

.tooltip-dot.pos {
    background: #00E676;
    box-shadow: 0 0 6px #00E676;
}

.tooltip-idx-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.tooltip-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.tooltip-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.tooltip-chg {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.tooltip-chg.pos {
    color: #00E676;
}

.tooltip-chg.neg {
    color: #FF3366;
}

.tooltip-date {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT THEME ADAPTATION (CLEAN PROFESSIONAL WHITE)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Nav Scroller Bar in Light Mode (Clean Black Borders as Requested) */
body.light-theme .nav-scroller-bar,
html.light-theme .nav-scroller-bar {
    background: #ffffff !important;
    border-bottom: 1.5px solid #000000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.light-theme .nav-scroll-pill,
html.light-theme .nav-scroll-pill {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #0f172a !important;
    opacity: 0.9;
}

body.light-theme .nav-scroll-pill .pill-dot,
html.light-theme .nav-scroll-pill .pill-dot {
    background: #64748b !important;
}

body.light-theme .nav-scroll-pill.is-pos,
html.light-theme .nav-scroll-pill.is-pos {
    color: #16a34a !important;
}
body.light-theme .nav-scroll-pill.is-pos .pill-dot,
html.light-theme .nav-scroll-pill.is-pos .pill-dot {
    background: #16a34a !important;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.4);
}
body.light-theme .nav-scroll-pill.is-pos .pill-chg,
html.light-theme .nav-scroll-pill.is-pos .pill-chg {
    color: #16a34a !important;
}

body.light-theme .nav-scroll-pill.is-neg,
html.light-theme .nav-scroll-pill.is-neg {
    color: #dc2626 !important;
}
body.light-theme .nav-scroll-pill.is-neg .pill-dot,
html.light-theme .nav-scroll-pill.is-neg .pill-dot {
    background: #dc2626 !important;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
}
body.light-theme .nav-scroll-pill.is-neg .pill-chg,
html.light-theme .nav-scroll-pill.is-neg .pill-chg {
    color: #dc2626 !important;
}

body.light-theme .nav-scroll-pill:hover,
html.light-theme .nav-scroll-pill:hover {
    color: #000000 !important;
    background: transparent !important;
    border: none !important;
}

body.light-theme .nav-scroll-pill.active,
html.light-theme .nav-scroll-pill.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    font-weight: 900 !important;
}

/* Hero Card in Light Mode */
body.light-theme .idx-hero-card,
html.light-theme .idx-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .idx-hero-header,
html.light-theme .idx-hero-header {
    border-bottom: 1px solid #f1f5f9;
}

body.light-theme .idx-hero-title,
html.light-theme .idx-hero-title {
    color: #1e3a8a;
}

body.light-theme .idx-hero-arrow,
html.light-theme .idx-hero-arrow {
    color: #2563eb;
}

body.light-theme .idx-hero-timestamp,
html.light-theme .idx-hero-timestamp {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

body.light-theme .idx-hero-ltp,
html.light-theme .idx-hero-ltp {
    color: #0f172a;
}

body.light-theme .idx-hero-chg.pos,
html.light-theme .idx-hero-chg.pos {
    color: #16a34a;
}

body.light-theme .idx-hero-chg.neg,
html.light-theme .idx-hero-chg.neg {
    color: #e11d48;
}

/* Stats in Light Mode */
body.light-theme .idx-hero-stats,
html.light-theme .idx-hero-stats {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.light-theme .idx-stat-label,
html.light-theme .idx-stat-label {
    color: #64748b;
}

body.light-theme .idx-stat-val,
html.light-theme .idx-stat-val {
    color: #0f172a;
}

/* Timeframe Pills in Light Mode */
body.light-theme .idx-tf-group,
html.light-theme .idx-tf-group {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

body.light-theme .idx-tf-btn,
html.light-theme .idx-tf-btn {
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    font-weight: 600 !important;
}

body.light-theme .idx-tf-btn:hover,
html.light-theme .idx-tf-btn:hover {
    color: #000000 !important;
    background: transparent !important;
    border: none !important;
}

body.light-theme .idx-tf-btn.active,
html.light-theme .idx-tf-btn.active {
    background: transparent !important;
    color: #000000 !important; /* Dark black text as requested */
    border: none !important;
    box-shadow: none !important;
    font-weight: 900 !important;
}

/* Tooltip in Light Mode */
body.light-theme .idx-chart-tooltip,
html.light-theme .idx-chart-tooltip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body.light-theme .tooltip-idx-name,
html.light-theme .tooltip-idx-name {
    color: #0f172a;
}

body.light-theme .tooltip-price,
html.light-theme .tooltip-price {
    color: #0f172a;
}

body.light-theme .tooltip-chg.pos,
html.light-theme .tooltip-chg.pos {
    color: #16a34a;
}

body.light-theme .tooltip-chg.neg,
html.light-theme .tooltip-chg.neg {
    color: #e11d48;
}

body.light-theme .tooltip-date,
html.light-theme .tooltip-date {
    color: #64748b;
}

/* Carousel Cards Light Theme */
body.light-theme .idx-mini-card,
html.light-theme .idx-mini-card {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .idx-mini-card:hover,
html.light-theme .idx-mini-card:hover {
    border-color: #000000 !important;
    background: #f8fafc !important;
}

body.light-theme .idx-mini-card.active,
html.light-theme .idx-mini-card.active {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .idx-mini-label,
html.light-theme .idx-mini-label {
    color: #475569 !important;
}

body.light-theme .idx-mini-card.active .idx-mini-label,
html.light-theme .idx-mini-card.active .idx-mini-label {
    color: #000000 !important;
    font-weight: 900 !important;
}

body.light-theme .idx-mini-ltp,
html.light-theme .idx-mini-ltp {
    color: #000000 !important;
}

body.light-theme .idx-mini-chg.neg,
html.light-theme .idx-mini-chg.neg {
    background: #ffe4e6;
    color: #e11d48;
    border-color: #fecdd3;
}

body.light-theme .idx-mini-chg.pos,
html.light-theme .idx-mini-chg.pos {
    background: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

body.light-theme .idx-carousel-arrow,
html.light-theme .idx-carousel-arrow {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-theme .idx-carousel-arrow:hover,
html.light-theme .idx-carousel-arrow:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* MORE BUTTON DUAL THEME STYLES */
#header-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: #FFD700 !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    height: 24px;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 0.8px;
    transition: all 0.2s;
    outline: none;
}

body.light-theme #header-more-btn,
html.light-theme #header-more-btn {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

#header-more-menu {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    min-width: 170px;
    background: #0c0c0e;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.85);
    overflow: hidden;
    backdrop-filter: blur(15px);
    z-index: 100005;
}

body.light-theme #header-more-menu,
html.light-theme #header-more-menu {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.more-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: 0.2s;
}

body.light-theme .more-menu-link,
html.light-theme .more-menu-link {
    color: #000000 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.light-theme .more-menu-link:hover,
html.light-theme .more-menu-link:hover {
    background: #f8fafc !important;
    color: #000000 !important;
}

.more-menu-locked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    color: #64748b;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: not-allowed;
    opacity: 0.65;
    background: rgba(0,0,0,0.35);
}

body.light-theme .more-menu-locked,
html.light-theme .more-menu-locked {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.more-live-tag {
    font-size: 0.52rem;
    color: #00E676;
    background: rgba(0,230,118,0.12);
    border: 1px solid rgba(0,230,118,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Rajdhani';
    font-weight: 700;
}

.more-locked-tag {
    font-size: 0.52rem;
    color: #f59e0b;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Rajdhani';
    font-weight: 700;
}

/* TOP-RIGHT CHART FULLSCREEN BUTTON */
.idx-chart-fs-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px; /* 2px bigger */
    height: 32px;
    background: rgba(10, 12, 16, 0.85) !important;
    border: 1.5px solid #ffffff !important; /* White box in black theme */
    border-radius: 6px !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important; /* White icon in black theme */
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    opacity: 0.95;
    padding: 0;
    box-sizing: border-box;
}

.idx-chart-fs-btn:hover {
    transform: scale(1.08);
    opacity: 1;
    background: #ffffff !important;
    color: #000000 !important;
}

/* White Theme: Dark black icon + outer black frame */
body.light-theme .idx-chart-fs-btn,
html.light-theme .idx-chart-fs-btn {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important; /* Black frame */
    color: #000000 !important; /* Dark black icon */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .idx-chart-fs-btn:hover,
html.light-theme .idx-chart-fs-btn:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS (< 768px)
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-scroller-bar {
        top: 60px;
        height: 36px;
    }

    .nav-scroller-track {
        gap: 16px;
        padding: 0 8px;
    }

    .nav-scroll-pill {
        padding: 0 4px;
        height: 24px;
        font-size: 0.74rem;
        gap: 5px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .idx-overview-wrapper {
        padding: 0 6px;
        margin-bottom: 1.2rem;
    }

    .idx-carousel-wrapper {
        gap: 6px;
        margin-bottom: 0.8rem;
    }

    .idx-carousel-arrow {
        width: 32px;
        height: 32px;
    }

    .idx-mini-card {
        flex: 0 0 145px;
        min-width: 140px;
        padding: 9px 11px 8px;
    }

    .idx-mini-ltp {
        font-size: 1.2rem;
    }

    .idx-mini-chg {
        font-size: 0.74rem;
        padding: 2px 6px;
    }

    .idx-hero-card {
        padding: 0.75rem 0.8rem;
        border-radius: 10px;
    }

    .idx-hero-header {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .idx-hero-title {
        font-size: 0.76rem !important;
    }

    .idx-hero-timestamp {
        font-size: 0.56rem !important;
        padding: 1px 5px !important;
    }

    .idx-hero-price-row {
        gap: 6px;
    }

    .idx-hero-ltp {
        font-size: 1.25rem !important; /* Reduced by ~5px */
    }

    .idx-hero-chg {
        font-size: 0.68rem !important; /* Reduced by ~5px */
    }

    .idx-hero-stats {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        padding: 4px 8px !important;
        height: 28px !important;
        box-sizing: border-box;
        border-radius: 6px !important;
        margin-bottom: 4px !important; /* 3-4px clean gap so boxes do NOT touch */
    }

    .idx-stat-item {
        gap: 3px !important;
    }

    .idx-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .idx-stat-label {
        font-size: 0.56rem !important; /* Reduced by ~5px */
    }

    .idx-stat-val {
        font-size: 0.68rem !important; /* Reduced by ~5px */
    }

    .idx-hero-controls {
        width: 100%;
        margin-top: 0 !important;
        justify-content: stretch;
    }

    .idx-tf-group {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2px 4px !important;
        height: 26px !important;
        border-radius: 9999px !important; /* Oval bar */
        box-sizing: border-box;
    }

    .idx-tf-btn {
        flex: 1;
        text-align: center;
        padding: 2px 0 !important;
        height: 22px !important;
        font-size: 0.62rem !important; /* Reduced by ~5px */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .idx-tf-btn.active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        font-weight: 900 !important;
    }

    .idx-chart-fs-btn {
        top: 10px !important;
        right: 10px !important;
        bottom: auto !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 1.15rem !important;
    }

    .idx-chart-wrapper {
        height: 320px !important;
        min-height: 280px !important;
    }
}

/* Force-hide old legacy 3-card block on all devices */
#index-signals-grid {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* ── Live Price Tick Flash Animations ── */
@keyframes idxFlashGreen {
    0% { color: #00e676 !important; text-shadow: 0 0 12px rgba(0, 230, 118, 0.8); }
    100% { color: inherit; text-shadow: none; }
}
@keyframes idxFlashRed {
    0% { color: #ff3366 !important; text-shadow: 0 0 12px rgba(255, 51, 102, 0.8); }
    100% { color: inherit; text-shadow: none; }
}
.idx-flash-up {
    animation: idxFlashGreen 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.idx-flash-down {
    animation: idxFlashRed 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

