/* Forex VPS pages: /forex-vps/ and the pages built by generate_forex_pages.js (mt4-vps, mt5-vps, ...).
   Holds the former inline <style> of forex-vps/index.html plus the breadcrumb, prose and table styles
   the generated pages use. Loaded async after styles.css. */

/* Forex-specific styles */
.forex-why-section { position: relative; padding: 8rem 3rem; z-index: 1; background: var(--bg-secondary); }
.forex-why-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.forex-why-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; transition: all 0.3s ease;
}
.forex-why-card:hover { border-color: rgba(245, 166, 35, 0.3); background: rgba(15, 23, 42, 0.8); }
.forex-why-icon {
    width: 56px; height: 56px; background: var(--accent-gold-dim); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; color: var(--accent-gold);
}
.forex-why-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.forex-why-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Platforms section */
.platforms-section { position: relative; padding: 8rem 3rem; z-index: 1; }
.platforms-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.platform-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; text-align: center; transition: all 0.3s ease;
}
.platform-card:hover { border-color: rgba(245, 166, 35, 0.3); background: rgba(15, 23, 42, 0.8); }
.platform-icon {
    width: 64px; height: 64px; background: var(--accent-gold-dim); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; color: var(--accent-gold); font-size: 1.5rem; font-weight: 700;
}
.platform-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.platform-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.platform-card p + p { margin-top: 0.75rem; }

/* How it works */
.how-section { position: relative; padding: 8rem 3rem; z-index: 1; background: var(--bg-secondary); }
.how-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.how-step {
    text-align: center; position: relative;
}
.how-step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-primary); color: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace; font-size: 1.25rem; font-weight: 700;
    margin: 0 auto 1.25rem;
}
.how-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.how-step p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* FAQ section */
.faq-section { position: relative; padding: 8rem 3rem; z-index: 1; background: var(--bg-secondary); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 12px; overflow: hidden; transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(245, 166, 35, 0.2); }
.faq-question {
    width: 100%; padding: 1.25rem 1.5rem; background: none; border: none;
    color: var(--text-primary); font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 600; text-align: left;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { color: var(--accent-gold); }
.faq-question svg { color: var(--text-muted); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* Pro plans badges and feature strip */
.pro-badge {
    position: absolute; top: -1px; right: 20px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    padding: 0.35rem 1rem; border-radius: 0 0 8px 8px; letter-spacing: 0.05em;
    display: none;
}
.pro-badge.visible {
    display: block;
}
.pro-features-strip {
    display: none; justify-content: center; gap: 2rem; flex-wrap: wrap;
    max-width: 1200px; margin: 1rem auto 3rem; padding: 0 1rem;
}
.pro-features-strip.visible {
    display: flex;
}
.pro-feature-badge {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--accent-gold-dim); border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 100px; padding: 0.5rem 1.25rem;
    color: var(--accent-gold); font-size: 0.85rem; font-weight: 600;
}
.pro-feature-badge svg { flex-shrink: 0; }

/* Proof band (replaces the award logos) */
.fx-proof { position: relative; z-index: 1; padding: 0 3rem 4rem; }
.fx-proof-grid {
    max-width: 1200px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 1rem;
}
.fx-proof-item {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 12px; padding: 1.25rem 1rem; text-align: center;
}
.fx-proof-item strong {
    display: block; font-family: 'Space Mono', monospace; font-size: 1.2rem;
    color: var(--accent-gold); margin-bottom: 0.35rem;
}
.fx-proof-item span { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
.fx-proof-item a, .fx-proof-item a:visited { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.fx-proof-item a:hover { color: var(--accent-gold-light); }

/* Broker matcher */
.fx-match { position: relative; z-index: 1; padding: 6rem 3rem; background: var(--bg-secondary); }
.fx-city-grid {
    max-width: 1200px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; align-items: stretch;
}
.fx-city {
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px;
    padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color 0.3s ease;
}
.fx-city.active { border-color: var(--accent-gold); }
.fx-city-head { display: flex; align-items: center; gap: 0.75rem; }
.fx-city-flag { font-size: 1.75rem; line-height: 1; }
.fx-city-head h3 { font-size: 1.1rem; font-weight: 700; }
.fx-city-head p { font-size: 0.8rem; color: var(--text-muted); }
.fx-city-latency {
    margin-left: auto; font-family: 'Space Mono', monospace; font-weight: 700;
    color: var(--accent-green); font-size: 1rem; white-space: nowrap;
}
.fx-city-note { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.fx-broker-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.fx-broker {
    background: var(--bg-tertiary); border: 1px solid var(--border-subtle); color: var(--text-primary);
    font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 500; padding: 0.5rem 0.85rem;
    min-height: 44px; border-radius: 100px; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.fx-broker:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.fx-broker:focus-visible, .fx-pick:focus-visible, .fx-city-btn:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.fx-city-btn { margin-top: auto; width: 100%; justify-content: center; }
.fx-match-status { text-align: center; color: var(--accent-gold); font-weight: 600; margin-top: 2rem; min-height: 1.5em; }
.fx-match-note {
    text-align: center; color: var(--text-muted); font-size: 0.85rem; line-height: 1.6;
    max-width: 760px; margin: 1rem auto 0;
}

/* Plan picker */
.fx-pick-wrap { text-align: center; margin: 0 auto 2.5rem; max-width: 1000px; }
.fx-pick-label {
    display: block; font-family: 'Space Mono', monospace; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem;
}
.fx-pick-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
.fx-pick {
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1rem 1.25rem;
    text-align: left; cursor: pointer; color: var(--text-primary); font-family: 'Outfit', sans-serif; transition: border-color 0.2s ease;
}
.fx-pick strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.fx-pick span { color: var(--text-secondary); font-size: 0.85rem; }
.fx-pick:hover, .fx-pick.active { border-color: var(--accent-gold); }
.pricing-card.recommended { border-color: var(--accent-gold); box-shadow: 0 0 0 1px var(--accent-gold); }

/* Guides for traders */
.fx-guides { position: relative; z-index: 1; padding: 8rem 3rem; }
.fx-guides-grid {
    max-width: 1200px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1.25rem; align-items: stretch;
}
.fx-guide {
    display: flex; flex-direction: column; gap: 0.5rem; background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 14px; padding: 1.5rem;
    color: inherit; text-decoration: none; transition: border-color 0.3s ease, transform 0.3s ease;
}
.fx-guide:visited { color: inherit; }
.fx-guide:hover { border-color: rgba(245, 166, 35, 0.4); transform: translateY(-3px); }
.fx-guide-tag { font-family: 'Space Mono', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-gold); }
.fx-guide h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: var(--text-primary); }
.fx-guide p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
.fx-guides-more { text-align: center; color: var(--text-secondary); margin: 2.5rem auto 0; max-width: 700px; line-height: 1.7; }

/* Desktop sticky CTA (hidden on mobile and tablet) */
.fx-sticky { display: none; }
@media (min-width: 1025px) {
    .fx-sticky {
        position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); z-index: 90;
        display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 0.75rem 0.75rem 1.5rem;
        background: rgba(10, 15, 26, 0.96); border: 1px solid rgba(245, 166, 35, 0.35); border-radius: 100px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); max-width: calc(100dvw - 3rem);
        opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .fx-sticky.visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
    .fx-sticky-text { color: var(--text-secondary); font-size: 0.9rem; white-space: nowrap; }
    .fx-sticky-text strong { color: var(--text-primary); margin-right: 0.5rem; }
    .fx-sticky .btn { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 768px) {
    .forex-why-section, .platforms-section, .how-section, .faq-section, .fx-match, .fx-guides {
        padding: 4rem 1.5rem;
    }
    .fx-proof { padding: 0 1.5rem 3rem; }
    .forex-why-grid, .platforms-grid { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .pro-features-strip { gap: 1rem; margin-bottom: 2rem; }
    .pro-feature-badge { font-size: 0.8rem; padding: 0.4rem 1rem; }
}
@media (max-width: 480px) {
    .forex-why-section, .platforms-section, .how-section, .faq-section, .fx-match, .fx-guides {
        padding: 3rem 1rem;
    }
    .fx-proof { padding: 0 1rem 2.5rem; }
    .how-steps { grid-template-columns: 1fr; }
}

/* Generated-page extras: breadcrumb, prose sections, sizing tables */
/* The shared .hero centres its content in 100vh; with a breadcrumb on top that pushes the crumb under the fixed nav, so generated pages stack from the top instead. */
.fx-hero { min-height: 0; justify-content: flex-start; padding-bottom: 3rem; }
.fx-crumb {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center;
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.fx-crumb a, .fx-crumb a:visited { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.fx-crumb a:hover { color: var(--accent-gold-light); }
.fx-prose-section { position: relative; z-index: 1; padding: 6rem 3rem; }
.fx-prose-section.alt { background: var(--bg-secondary); }
.fx-prose { max-width: 820px; margin: 0 auto; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; overflow-wrap: break-word; }
.fx-prose h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--text-primary); margin-bottom: 1.25rem; line-height: 1.2; }
.fx-prose h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin: 2rem 0 0.75rem; }
.fx-prose p { margin-bottom: 1.1rem; }
.fx-prose ul, .fx-prose ol { margin: 0 0 1.25rem 1.4rem; }
.fx-prose li { margin-bottom: 0.5rem; }
.fx-prose strong { color: var(--text-primary); }
.fx-prose a, .fx-prose a:visited { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.fx-prose a:hover { color: var(--accent-gold-light); }
.fx-table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--border-subtle); border-radius: 12px; }
.fx-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 540px; }
.fx-table th, .fx-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.fx-table th { background: var(--bg-tertiary); color: var(--text-primary); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fx-table tr:last-child td { border-bottom: none; }
.fx-table td:first-child { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.fx-table .mono { font-family: 'Space Mono', monospace; color: var(--accent-gold); }
.fx-related { position: relative; z-index: 1; padding: 0 3rem 6rem; }
.fx-match + .fx-related { padding-top: 3rem; }
.fx-related-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; align-items: stretch; }
.fx-related-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px;
    padding: 1.25rem; color: inherit; text-decoration: none; transition: border-color 0.3s ease;
}
.fx-related-card:visited { color: inherit; }
.fx-related-card:hover { border-color: rgba(245, 166, 35, 0.4); }
.fx-related-card strong { display: block; color: var(--text-primary); margin-bottom: 0.35rem; }
.fx-related-card span { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

@media (max-width: 768px) {
    .fx-prose-section { padding: 4rem 1.5rem; }
    .fx-related { padding: 0 1.5rem 4rem; }
}
@media (max-width: 480px) {
    .fx-prose-section { padding: 3rem 1rem; }
    .fx-related { padding: 0 1rem 3rem; }
}

/* Mobile/tablet performance (defense-in-depth; critical.css carries the universal kill) */
@media (max-width: 1024px) {
    .forex-why-card, .platform-card, .fx-city, .fx-broker, .fx-pick, .fx-guide, .fx-related-card, .faq-item, .faq-question svg, .faq-answer, .fx-sticky {
        transition: none !important; animation: none !important; backdrop-filter: none !important;
    }
    .fx-guide:hover, .fx-related-card:hover { transform: none !important; }
    .fx-sticky { display: none !important; }
}
