/* TradeAnalyzer.Pro – Indicators guide (homepage-aligned) */
body.indicators-page {
    --bg: #070b14;
    --bg-elevated: #0d1524;
    --bg-panel: #111a2b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #e8eef7;
    --muted: #94a3b8;
    --cyan: #38bdf8;
    --cyan-strong: #0ea5e9;
    --gold: #eab308;
    --ok: #34d399;
    --radius: 16px;
    --font-display: "Sora", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(14, 165, 233, 0.12), transparent 55%),
        radial-gradient(900px 500px at 90% 8%, rgba(234, 179, 8, 0.06), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    padding-top: 70px;
    overflow-x: hidden;
    margin: 0;
    line-height: 1.65;
}

body.indicators-page h1,
body.indicators-page h2,
body.indicators-page h3,
body.indicators-page h4 {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.indicators-page p,
body.indicators-page li {
    color: var(--muted);
}

/* Content links only — do not override navbar */
body.indicators-page .section-content a,
body.indicators-page .breadcrumb-nav a,
body.indicators-page .hero-section a {
    color: var(--cyan);
    text-decoration: none;
}

body.indicators-page .section-content a:hover,
body.indicators-page .breadcrumb-nav a:hover {
    color: #7dd3fc;
}

body.indicators-page .breadcrumb-nav {
    background: rgba(13, 21, 36, 0.92) !important;
    border-bottom: 1px solid var(--line) !important;
}

body.indicators-page .breadcrumb-item.active {
    color: var(--muted) !important;
}

body.indicators-page .preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.indicators-page .preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.indicators-page .spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    border-top-color: var(--cyan);
    animation: ind-spin 0.8s linear infinite;
}

@keyframes ind-spin {
    to { transform: rotate(360deg); }
}

.hero-section {
    background: transparent;
    color: var(--text);
    padding: clamp(28px, 4vh, 48px) 0 clamp(20px, 3vh, 32px);
    text-align: left;
    position: relative;
    margin-top: 0;
}

.hero-section::after {
    content: none;
}

.hero-eyebrow {
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    font-weight: 700;
    margin: 0 0 0.85rem;
    line-height: 1.2;
    max-width: 18ch;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    font-weight: 400;
    color: var(--muted);
    max-width: 54ch;
    margin: 0;
    line-height: 1.65;
}

.section-content {
    padding: 0.5rem 0 3.5rem;
}

.section-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    position: relative;
    display: block;
}

.section-title:after {
    content: none;
}

.table-of-contents {
    position: sticky;
    top: 88px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    padding: 1.15rem 1.2rem;
    margin-bottom: 1.5rem;
}

.table-of-contents h4 {
    font-size: 0.95rem;
    margin: 0 0 0.85rem;
    color: var(--text);
}

.table-of-contents ul {
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.35rem;
}

.table-of-contents a {
    font-size: 0.88rem;
    color: var(--cyan) !important;
}

.indicators-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
    transition: transform 0.15s ease;
}

.indicators-cta:hover {
    transform: translateY(-1px);
    color: #fff !important;
}

.category-section {
    margin: 2rem 0 1.25rem;
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.category-title i {
    color: var(--cyan);
}

.indicator-card {
    background: transparent;
    border-radius: 0;
    padding: 1.25rem 0 1.5rem;
    margin-bottom: 1.25rem;
    border: none;
    border-bottom: 1px solid var(--line);
    border-left: none;
    box-shadow: none;
    transition: none;
}

.indicator-card:hover {
    transform: none;
    border-color: var(--line);
    background: transparent;
    box-shadow: none;
}

/* Closing CTA — match dark page, not Bootstrap white card */
body.indicators-page .card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

body.indicators-page .card-body {
    padding: 1.5rem 0 0.5rem;
    background: transparent;
}

body.indicators-page .card-title {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

body.indicators-page .card-body p,
body.indicators-page .card-body li {
    color: var(--muted);
}

body.indicators-page .card-body strong {
    color: var(--text);
}

body.indicators-page .card-body .indicators-cta {
    width: auto;
    min-width: 220px;
    margin-top: 0.5rem;
}

.indicator-title {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.indicator-title i {
    color: var(--cyan);
}

.indicator-heading,
.indicator-summary {
    background: rgba(14, 165, 233, 0.06);
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--cyan);
    color: var(--muted);
}

.indicator-formula {
    background: rgba(0, 0, 0, 0.28);
    border-left: 3px solid var(--cyan);
    padding: 0.95rem 1.05rem;
    margin: 1rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-x: auto;
    color: #e2e8f0;
    border-radius: 0 12px 12px 0;
}

.trading-tips {
    background: rgba(52, 211, 153, 0.06);
    border-radius: 12px;
    padding: 0.95rem 1.05rem;
    margin: 1rem 0;
    border-left: 3px solid var(--ok);
}

html[dir="rtl"] .indicator-card {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
}

html[dir="rtl"] .indicator-heading,
html[dir="rtl"] .indicator-summary,
html[dir="rtl"] .indicator-formula,
html[dir="rtl"] .trading-tips {
    border-left: none;
    border-right: 3px solid var(--cyan);
    border-radius: 12px 0 0 12px;
}

html[dir="rtl"] .trading-tips {
    border-right-color: var(--ok);
}

html[dir="rtl"] .hero-section,
html[dir="rtl"] .hero-title {
    text-align: right;
}

@media (max-width: 991px) {
    .table-of-contents {
        position: static;
    }

    .hero-title {
        max-width: none;
    }
}
