/* TradeAnalyzer.Pro – Strategies (homepage-aligned) */
body.strategies-page {
    --bg: #070b14;
    --bg-elevated: #0d1524;
    --bg-panel: #111a2b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #e8eef7;
    --text-primary: #e8eef7;
    --text-secondary: #94a3b8;
    --muted: #94a3b8;
    --cyan: #38bdf8;
    --cyan-strong: #0ea5e9;
    --accent: #38bdf8;
    --gold: #eab308;
    --ok: #34d399;
    --danger: #f87171;
    --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.strategies-page h1,
body.strategies-page h2,
body.strategies-page h3,
body.strategies-page h4 {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

/* Content links only — keep navbar white */
body.strategies-page .main-content a,
body.strategies-page .breadcrumb-nav a {
    color: var(--cyan);
    text-decoration: none;
}

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

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

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

body.strategies-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.strategies-page .preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

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

.main-content {
    padding: 1.5rem 0 3.5rem;
}

.strategies-wrap {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
}

.section-header {
    text-align: left;
    margin: 0 0 1.5rem;
    max-width: none;
}

.strategies-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;
}

.section-header h1 {
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    margin: 0 0 0.75rem;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
    line-height: 1.2;
}

.section-header p,
.strategies-lead {
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    color: var(--muted);
    margin: 0;
    max-width: 58ch;
}

/* Transparent outer shell */
body.strategies-page .card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
}

body.strategies-page .card-body {
    padding: 0;
    background: transparent;
}

body.strategies-page .lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.strategies-notice {
    border-left: 3px solid var(--cyan);
    background: rgba(14, 165, 233, 0.08);
    border-radius: 0 14px 14px 0;
    padding: 1.1rem 1.2rem;
    margin: 1.25rem 0 1.75rem;
}

.strategies-notice h3 {
    color: var(--cyan);
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.strategies-risk {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0 14px 14px 0;
    padding: 1.1rem 1.2rem;
    margin: 1.75rem 0 0;
}

.strategies-risk h3 {
    color: #fca5a5;
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.strategies-risk a {
    color: #fca5a5 !important;
    text-decoration: underline;
}

.strategy-card {
    background: var(--bg-panel);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.9rem;
    border: 1px solid var(--line);
    transition: border-color 0.2s ease;
    height: 100%;
}

.strategy-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(56, 189, 248, 0.35);
}

.strategy-card .card-header {
    background: rgba(14, 165, 233, 0.06);
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.strategy-card h3 {
    color: var(--text);
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.badge-proprietary {
    background: rgba(14, 165, 233, 0.14);
    color: var(--cyan);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.strategy-card .card-body {
    padding: 1.15rem;
}

.strategy-card .card-body > p {
    margin: 0 0 0.9rem;
    font-size: 0.92rem;
}

.strategy-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.strategy-feature:last-child {
    margin-bottom: 0;
}

.strategy-feature i {
    color: var(--cyan);
    font-size: 0.9rem;
    margin-right: 0.65rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.strategy-feature span {
    color: var(--muted);
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 1.75rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.1rem 0.9rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--line);
}

.metric-card h4 {
    color: var(--cyan);
    font-size: 1.35rem;
    margin: 0 0 0.4rem;
}

.metric-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.workflow-step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

.workflow-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cyan);
}

.workflow-step::after {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 2.25rem;
    width: 1px;
    height: calc(100% - 0.35rem);
    background: rgba(56, 189, 248, 0.2);
}

.workflow-step:last-of-type::after,
.workflow-step:last-child::after {
    display: none;
}

.workflow-step h4 {
    color: var(--text);
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.workflow-step p {
    margin: 0;
}

.tech-stack {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 1.75rem 0;
    border: none;
}

.tech-stack h3 {
    text-align: left !important;
    color: var(--text) !important;
    margin: 0 0 0.5rem !important;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.tech-stack > p {
    text-align: left !important;
    margin: 0 0 1.15rem !important;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0;
    justify-content: stretch;
}

.tech-icon {
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.05rem;
}

.tech-icon i {
    font-size: 1.25rem;
    color: var(--cyan);
    margin-bottom: 0.55rem;
    display: block;
}

.tech-icon p {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0;
    color: var(--text);
}

body.strategies-page .text-muted {
    color: var(--muted) !important;
}

html[dir="rtl"] .section-header,
html[dir="rtl"] .tech-stack h3,
html[dir="rtl"] .tech-stack > p,
html[dir="rtl"] .tech-icon {
    text-align: right !important;
}

html[dir="rtl"] .strategies-notice,
html[dir="rtl"] .strategies-risk {
    border-left: none;
    border-right: 3px solid var(--cyan);
    border-radius: 14px 0 0 14px;
}

html[dir="rtl"] .strategies-risk {
    border-right-color: #ef4444;
}

html[dir="rtl"] .workflow-step {
    padding-left: 0;
    padding-right: 3.5rem;
}

html[dir="rtl"] .workflow-step::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .workflow-step::after {
    left: auto;
    right: 1.05rem;
}

html[dir="rtl"] .strategy-feature i {
    margin-right: 0;
    margin-left: 0.65rem;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 1.15rem;
    }

    .strategy-card .card-header {
        flex-wrap: wrap;
    }
}
