/* ============================================================
   NeuralFX Core Plugin — Frontend CSS
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   INVESTMENT FUND PORTAL
══════════════════════════════════════════════════════════════ */

/* Fund Stats Grid */
.nfx-fund-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.nfx-fund-stat-card {
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.nfx-fund-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    color: #00d4ff;
    margin-bottom: 4px;
}
.nfx-fund-stat-num.green  { color: #00e676; }
.nfx-fund-stat-num.gold   { color: #ffd700; }
.nfx-fund-stat-num.accent { color: #00d4ff; }
.nfx-fund-stat-label { font-size: 0.82rem; color: #8899aa; text-transform: uppercase; letter-spacing: 1px; }

/* Public Fund Hero */
.nfx-fund-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
}
.nfx-fhs-item { text-align: center; padding: 0 32px; }
.nfx-fhs-num  { font-size: 2.4rem; font-weight: 900; margin-bottom: 4px; }
.nfx-fhs-num.green  { color: #00e676; }
.nfx-fhs-num.gold   { color: #ffd700; }
.nfx-fhs-num.accent { color: #00d4ff; }
.nfx-fhs-label { font-size: 0.85rem; color: #8899aa; }
.nfx-fhs-divider { width: 1px; height: 60px; background: #1e2d4a; flex-shrink: 0; }
@media (max-width: 600px) {
    .nfx-fhs-divider { display: none; }
    .nfx-fhs-item { padding: 16px; }
}
.nfx-fund-live-status {
    background: #0f1623;
    border: 1px solid #1e2d4a;
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #8899aa;
    margin: 8px 0;
}
.nfx-fund-live-status .green { color: #00e676; }

/* Investment Plans */
.nfx-invest-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.nfx-invest-plan {
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nfx-invest-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.nfx-invest-plan.popular {
    border-color: var(--plan-color, #00e676);
    box-shadow: 0 0 0 1px var(--plan-color, #00e676);
}
.nfx-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--plan-color, #00e676);
    color: #000;
    font-weight: 900;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.nfx-plan-icon  { font-size: 2rem; margin-bottom: 12px; }
.nfx-plan-name  { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.nfx-plan-range {
    font-size: 1.6rem;
    font-weight: 900;
    color: #e8f0fe;
    margin: 12px 0 4px;
}
.nfx-plan-range span { font-size: 0.85rem; color: #8899aa; font-weight: 400; display: block; }
.nfx-plan-share {
    font-size: 0.9rem;
    color: #8899aa;
    margin: 8px 0 20px;
    padding: 10px;
    background: #0f1623;
    border-radius: 8px;
    text-align: center;
}
.nfx-plan-pct { font-size: 1.8rem; font-weight: 900; display: block; }
.nfx-plan-perks { list-style: none; padding: 0; margin: 0 0 24px; }
.nfx-plan-perks li { padding: 6px 0; border-bottom: 1px solid #1e2d4a; font-size: 0.88rem; color: #8899aa; }
.nfx-plan-perks li:last-child { border-bottom: none; }
.nfx-plan-cta {
    display: block;
    text-align: center;
    font-weight: 800;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    color: #000 !important;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nfx-plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Returns Table */
.nfx-returns-table-wrap { overflow-x: auto; }
.nfx-returns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.nfx-returns-table th {
    text-align: left;
    padding: 10px 14px;
    background: #0f1623;
    color: #8899aa;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nfx-returns-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #1e2d4a;
    color: #c9d1d9;
}
.nfx-returns-table tr:hover td { background: #141c2e22; }

/* ── Investment Form ──────────────────────────────────────── */
.nfx-invest-form-wrap {
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 20px;
    padding: 36px;
    max-width: 640px;
    margin: 0 auto;
}
.nfx-invest-steps {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid #1e2d4a;
    padding-bottom: 16px;
}
.nfx-invest-step {
    flex: 1;
    text-align: center;
    padding: 8px;
    color: #506070;
    cursor: pointer;
    font-size: 0.88rem;
    border-radius: 8px;
    transition: color 0.2s;
}
.nfx-invest-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1e2d4a;
    color: #8899aa;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 6px;
}
.nfx-invest-step.active { color: #00d4ff; }
.nfx-invest-step.active span { background: #00d4ff; color: #000; }
.nfx-invest-step.done span { background: #00e676; color: #000; }
.nfx-invest-h3 { color: #e8f0fe; font-size: 1.2rem; margin: 0 0 20px; }

/* Plan selector */
.nfx-plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 480px) { .nfx-plan-selector { grid-template-columns: 1fr; } }
.nfx-plan-option {
    border: 2px solid #1e2d4a;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.nfx-plan-option:hover { border-color: #00d4ff44; }
.nfx-plan-option.selected { border-color: #00d4ff; background: #00d4ff08; }
.nfx-plan-opt-icon { font-size: 1.5rem; }
.nfx-plan-opt-name { font-size: 0.9rem; font-weight: 700; margin: 4px 0; }
.nfx-plan-opt-range { font-size: 0.78rem; color: #8899aa; }

/* Input prefix */
.nfx-input-prefix { display: flex; align-items: center; }
.nfx-input-prefix span {
    background: #0f1623;
    border: 1px solid #1e2d4a;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 14px;
    color: #8899aa;
    font-size: 0.95rem;
}
.nfx-input-prefix .nfx-input { border-radius: 0 8px 8px 0; }
.nfx-invest-min-note { font-size: 0.8rem; color: #8899aa; margin-top: 6px; }

/* Payment */
.nfx-payment-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.nfx-pay-tab {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #1e2d4a;
    background: none;
    color: #8899aa;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.2s, color 0.2s;
}
.nfx-pay-tab.active { background: #00d4ff22; color: #00d4ff; border-color: #00d4ff44; }
.nfx-pay-amount-notice {
    background: #0f1623;
    border-radius: 8px;
    padding: 14px 16px;
    color: #e8f0fe;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.nfx-wallet-box {
    background: #0f1623;
    border: 1px solid #00d4ff44;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.nfx-wallet-label { font-size: 0.78rem; color: #8899aa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.nfx-wallet-addr {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: #00d4ff;
    word-break: break-all;
    margin-bottom: 10px;
}
.nfx-btn-copy-sm {
    background: #1e2d4a;
    color: #00d4ff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.82rem;
}
.nfx-pay-warning {
    background: #ffd70011;
    border: 1px solid #ffd70033;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #ffd700;
}
.nfx-bank-details {
    background: #0f1623;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.9rem;
    color: #8899aa;
    line-height: 1.8;
}
.nfx-pay-contact { text-align: center; padding: 20px; }

/* File drop */
.nfx-file-drop {
    border: 2px dashed #1e2d4a;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    color: #8899aa;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.nfx-file-drop:hover { border-color: #00d4ff; color: #00d4ff; }

.nfx-invest-success { text-align: center; padding: 20px; }

/* ── Investor Dashboard ───────────────────────────────────── */
.nfx-investor-dash { max-width: 900px; margin: 0 auto; }
.nfx-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.nfx-dash-card {
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.nfx-dash-card-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00d4ff;
    margin-bottom: 4px;
}
.nfx-dash-card-val.green  { color: #00e676; }
.nfx-dash-card-val.gold   { color: #ffd700; }
.nfx-dash-card-val.accent { color: #00d4ff; }
.nfx-dash-card-label { font-size: 0.75rem; color: #8899aa; text-transform: uppercase; letter-spacing: 0.8px; }

/* Dashboard tabs */
.nfx-dash-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1e2d4a;
    flex-wrap: wrap;
}
.nfx-dash-tab {
    padding: 10px 18px;
    border: none;
    background: none;
    color: #8899aa;
    cursor: pointer;
    font-size: 0.88rem;
    border-radius: 8px 8px 0 0;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}
.nfx-dash-tab.active { color: #00d4ff; border-bottom-color: #00d4ff; }
.nfx-dash-panel { display: none; }
.nfx-dash-panel.active { display: block; }

/* Investment card */
.nfx-inv-card {
    background: #0f1623;
    border: 1px solid #1e2d4a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}
.nfx-inv-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.nfx-inv-plan { font-size: 0.88rem; font-weight: 700; }
.nfx-inv-amount { font-size: 1.4rem; font-weight: 900; color: #e8f0fe; }
.nfx-inv-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.8rem; color: #506070; margin-bottom: 12px; }
.nfx-inv-reinvest {
    padding: 10px;
    background: #141c2e;
    border-radius: 8px;
}

/* Toggle switch */
.nfx-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.88rem;
    color: #8899aa;
}
.nfx-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.nfx-toggle input { opacity: 0; width: 0; height: 0; }
.nfx-toggle-slider {
    position: absolute;
    inset: 0;
    background: #1e2d4a;
    border-radius: 24px;
    transition: background 0.3s;
    cursor: pointer;
}
.nfx-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 4px;
    bottom: 4px;
    background: #8899aa;
    border-radius: 50%;
    transition: transform 0.3s;
}
.nfx-toggle input:checked + .nfx-toggle-slider { background: #00e67633; }
.nfx-toggle input:checked + .nfx-toggle-slider::before { transform: translateX(20px); background: #00e676; }

/* Dashboard table */
.nfx-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.nfx-dash-table th {
    text-align: left;
    padding: 8px 12px;
    background: #0f1623;
    color: #8899aa;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.nfx-dash-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1e2d4a;
    color: #c9d1d9;
}

/* Profile form */
.nfx-profile-form {
    background: #0f1623;
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
}
.nfx-referral-box {
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 10px;
    padding: 16px;
}

/* ── Modal ──────────────────────────────────────────────── */
.nfx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.nfx-modal {
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.nfx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #1e2d4a;
}
.nfx-modal-header h3 { margin: 0; color: #e8f0fe; font-size: 1.1rem; }
.nfx-modal-close {
    background: none;
    border: none;
    color: #8899aa;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
}
.nfx-modal-body { padding: 24px; }

/* ── Login Prompt ───────────────────────────────────────── */
.nfx-login-prompt {
    text-align: center;
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 16px;
    padding: 48px 24px;
}
.nfx-login-prompt h3 { color: #e8f0fe; margin: 0 0 8px; }
.nfx-login-prompt p  { color: #8899aa; margin: 0 0 20px; }

/* ── Risk Disclaimer ────────────────────────────────────── */
.nfx-risk-disclaimer {
    background: #1a0e00;
    border: 1px solid #ffd70033;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.82rem;
    color: #8899aa;
    line-height: 1.7;
    margin: 20px 0;
}
.nfx-risk-disclaimer strong { color: #ffd700; }

/* ── Performance Chart ─────────────────────────────────── */
.nfx-perf-chart-wrap {
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

/* ── Proof Feed ────────────────────────────────────────────── */
.nfx-proof-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nfx-proof-feed-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--nfx-card, #141c2e);
    border: 1px solid var(--nfx-border, #1e2d4a);
    border-radius: 10px;
    padding: 12px 16px;
    animation: nfxFadeIn 0.4s ease;
}
.nfx-proof-feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.nfx-proof-feed-info {
    flex: 1;
    font-size: 0.9rem;
    color: #8899aa;
}
.nfx-proof-feed-info strong { color: #e8f0fe; }
.nfx-proof-feed-time {
    font-size: 0.78rem;
    color: #506070;
    white-space: nowrap;
}
.nfx-gold  { color: #ffd700 !important; }
.nfx-accent { color: #00d4ff !important; }

/* ── Viewers Bar ───────────────────────────────────────────── */
.nfx-viewers-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.88rem;
    color: #8899aa;
    margin: 12px 0;
}
.nfx-viewers-bar #nfx-viewer-count {
    color: #00e676;
    font-weight: 700;
}

/* ── Urgency Bar ───────────────────────────────────────────── */
.nfx-urgency-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1200;
    border: 1px solid var(--border-color, #ffd700);
    border-radius: 10px;
    padding: 12px 20px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: #e8f0fe;
}

/* ── Trust Badges ──────────────────────────────────────────── */
.nfx-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}
.nfx-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 10px;
    padding: 12px 16px;
    flex: 1;
    min-width: 160px;
}
.nfx-trust-icon { font-size: 1.4rem; }
.nfx-trust-label { font-size: 0.9rem; color: #e8f0fe; font-weight: 600; }
.nfx-trust-sub   { font-size: 0.78rem; color: #8899aa; }

/* ── Affiliate Form ────────────────────────────────────────── */
.nfx-affiliate-form {
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
}
.nfx-form-group { margin-bottom: 16px; }
.nfx-form-group label {
    display: block;
    color: #8899aa;
    font-size: 0.88rem;
    margin-bottom: 6px;
}
.nfx-input {
    width: 100%;
    background: #0f1623;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 10px 14px;
    color: #e8f0fe;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.nfx-input:focus { outline: none; border-color: #00d4ff; }
.nfx-ref-link-box {
    background: #0f1623;
    border: 1px solid #00d4ff44;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00d4ff;
    word-break: break-all;
    margin: 12px 0;
}
.nfx-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000;
    font-weight: 800;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nfx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px #00d4ff44;
}
.nfx-btn-outline {
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.nfx-btn-outline:hover { background: #00d4ff22; }

/* ── AI Analyzer ───────────────────────────────────────────── */
.nfx-analyzer-wrap {
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 20px;
    overflow: hidden;
}
.nfx-analyzer-upload { padding: 40px; }
.nfx-drop-zone {
    border: 2px dashed #1e2d4a;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    background: #0f1623;
}
.nfx-drop-zone:hover, .nfx-drop-zone.drag-over {
    border-color: #00d4ff;
    background: #00d4ff08;
}
.nfx-drop-icon { font-size: 3rem; margin-bottom: 16px; }
.nfx-drop-zone h3 { color: #e8f0fe; margin: 0 0 8px; font-size: 1.2rem; }
.nfx-drop-zone p  { color: #8899aa; margin: 0 0 8px; font-size: 0.9rem; }
.nfx-drop-sub     { font-size: 0.82rem !important; }
.nfx-analyzer-gate {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.nfx-gate-free {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8899aa;
    font-size: 0.88rem;
}
.nfx-badge-free {
    background: #00e67622;
    color: #00e676;
    border: 1px solid #00e67644;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.nfx-gate-divider { color: #506070; font-size: 0.85rem; }
.nfx-gate-licensed { flex: 1; position: relative; }
.nfx-input-license {
    width: 100%;
    background: #0f1623;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 10px 40px 10px 14px;
    color: #e8f0fe;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}
.nfx-input-license:focus { outline: none; border-color: #00d4ff; }
.nfx-license-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

/* Analyzer split layout */
.nfx-analyzer-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}
@media (max-width: 768px) {
    .nfx-analyzer-split { grid-template-columns: 1fr; }
}
.nfx-analyzer-chart {
    background: #0d1117;
    border-right: 1px solid #1e2d4a;
    display: flex;
    flex-direction: column;
}
.nfx-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #1e2d4a;
    color: #8899aa;
    font-size: 0.85rem;
}
.nfx-btn-sm {
    background: #1e2d4a;
    color: #8899aa;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}
.nfx-chart-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}
.nfx-chart-container img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 8px;
    object-fit: contain;
}

/* Result panel */
.nfx-analyzer-result { padding: 24px; overflow-y: auto; max-height: 600px; }
.nfx-result-placeholder { text-align: center; padding: 40px 20px; }
.nfx-placeholder-icon { font-size: 3rem; margin-bottom: 16px; }
.nfx-result-placeholder h3 { color: #e8f0fe; margin: 0 0 8px; }
.nfx-result-placeholder p  { color: #8899aa; font-size: 0.9rem; }
.nfx-btn-analyze {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000;
    font-weight: 800;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nfx-btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px #00d4ff44;
}

/* Loading dots */
.nfx-result-loading { text-align: center; padding: 60px 20px; }
.nfx-ai-thinking p { color: #8899aa; margin-top: 16px; font-size: 0.9rem; }
.nfx-thinking-dots { display: flex; justify-content: center; gap: 8px; }
.nfx-thinking-dots span {
    width: 10px; height: 10px;
    background: #00d4ff;
    border-radius: 50%;
    animation: nfxDotPulse 1.4s infinite ease-in-out;
}
.nfx-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.nfx-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes nfxDotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Analysis result */
.nfx-result-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.nfx-direction-badge {
    font-size: 1.4rem;
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 8px;
    letter-spacing: 2px;
}
.nfx-direction-badge.buy  { background: #00e67622; color: #00e676; border: 1px solid #00e67644; }
.nfx-direction-badge.sell { background: #ff444422; color: #ff6644; border: 1px solid #ff444444; }
.nfx-direction-badge.neutral { background: #ffd70022; color: #ffd700; border: 1px solid #ffd70044; }
.nfx-confidence-wrap { flex: 1; }
.nfx-confidence-label { font-size: 0.75rem; color: #8899aa; text-transform: uppercase; letter-spacing: 1px; }
.nfx-confidence-bar { background: #1e2d4a; border-radius: 4px; height: 6px; margin: 6px 0; overflow: hidden; }
.nfx-confidence-fill { height: 100%; background: linear-gradient(90deg, #00d4ff, #00e676); border-radius: 4px; transition: width 1s ease; }
.nfx-confidence-pct { font-size: 1.2rem; font-weight: 700; color: #00d4ff; }

/* Level cards */
.nfx-result-levels { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; margin-bottom: 16px; }
@media (max-width: 480px) { .nfx-result-levels { grid-template-columns: 1fr; } }
.nfx-level-card {
    background: #0f1623;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.nfx-level-card.entry { border-top: 2px solid #00d4ff; }
.nfx-level-card.sl    { border-top: 2px solid #ff4444; }
.nfx-level-card.tp    { border-top: 2px solid #00e676; }
.nfx-level-label { display: block; font-size: 0.7rem; color: #8899aa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.nfx-level-value { display: block; font-size: 0.95rem; font-weight: 700; color: #e8f0fe; font-family: 'Courier New', monospace; }

/* Concepts */
.nfx-result-concepts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.nfx-concept-tag {
    background: #00d4ff22;
    color: #00d4ff;
    border: 1px solid #00d4ff44;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Meta + analysis */
.nfx-result-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.nfx-meta-item { flex: 1; min-width: 120px; }
.nfx-meta-label { display: block; font-size: 0.75rem; color: #8899aa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.nfx-meta-value { display: block; font-size: 0.88rem; color: #e8f0fe; }
.nfx-result-analysis {
    background: #0f1623;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.88rem;
    color: #8899aa;
    line-height: 1.7;
    margin-bottom: 12px;
}
.nfx-result-risk {
    background: #ff444411;
    border: 1px solid #ff444422;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #ff8866;
    margin-bottom: 16px;
    display: none;
}
.nfx-result-risk.show { display: block; }
.nfx-result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.nfx-btn-copy {
    flex: 1;
    background: #1e2d4a;
    color: #00d4ff;
    border: 1px solid #00d4ff44;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}
.nfx-btn-new {
    flex: 1;
    background: #141c2e;
    color: #8899aa;
    border: 1px solid #1e2d4a;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    font-size: 0.88rem;
}
.nfx-upgrade-prompt {
    background: #0f1623;
    border: 1px solid #ffd70044;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.nfx-upgrade-prompt p { color: #ffd700; margin: 0 0 10px; font-size: 0.9rem; }
.nfx-btn-upgrade {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Quota */
.nfx-quota-info {
    text-align: center;
    padding: 12px;
    border-top: 1px solid #1e2d4a;
    font-size: 0.85rem;
    color: #8899aa;
}
#nfx-quota-remaining { color: #00d4ff; font-weight: 700; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes nfxFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   LIVE MT5 ACCOUNT WIDGET  [nfx_live_account]
══════════════════════════════════════════════════════════════ */
.nfx-live-account-wrap {
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 20px;
    overflow: hidden;
    animation: nfxFadeIn 0.5s ease;
}
.nfx-live-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0f1623 0%, #141c2e 100%);
    border-bottom: 1px solid #1e2d4a;
}
.nfx-live-account-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nfx-live-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.nfx-live-account-title h3 {
    margin: 0 0 2px;
    color: #e6edf3;
    font-size: 1.1rem;
    font-weight: 800;
}
.nfx-live-account-title p {
    margin: 0;
    color: #8899aa;
    font-size: 0.82rem;
}
.nfx-live-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.nfx-live-green {
    background: #00e67622;
    color: #00e676;
    border: 1px solid #00e67644;
    animation: nfxGlowGreen 2s ease-in-out infinite;
}
.nfx-live-stale {
    background: #ffd70022;
    color: #ffd700;
    border: 1px solid #ffd70044;
}
@keyframes nfxGlowGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
    50%       { box-shadow: 0 0 10px 2px rgba(0,230,118,0.3); }
}
.nfx-live-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: #1e2d4a;
    border-top: none;
}
.nfx-live-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: #141c2e;
    transition: background 0.2s;
}
.nfx-live-stat:hover { background: #1a2540; }
.nfx-live-stat-label {
    font-size: 0.72rem;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.nfx-live-stat-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: #00d4ff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    transition: color 0.3s;
}
.nfx-live-stat-sub {
    font-size: 0.75rem;
    color: #8899aa;
}
.nfx-dd-bar-wrap {
    padding: 16px 24px;
    border-top: 1px solid #1e2d4a;
    background: #141c2e;
}
.nfx-dd-bar-bg {
    height: 6px;
    background: #1e2d4a;
    border-radius: 3px;
    overflow: hidden;
}
.nfx-dd-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease, background 0.3s;
}
.nfx-live-account-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-top: 1px solid #1e2d4a;
    background: #0f162344;
    flex-wrap: wrap;
    gap: 8px;
}
.nfx-last-update {
    font-size: 0.78rem;
    color: #8899aa;
}
.nfx-refresh-btn {
    background: #1e2d4a;
    border: 1px solid #1e2d4a;
    color: #8899aa;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.nfx-refresh-btn:hover {
    border-color: #00d4ff44;
    color: #00d4ff;
}
.nfx-refresh-icon {
    display: inline-block;
    transition: transform 0.5s;
}
.nfx-refresh-btn:hover .nfx-refresh-icon {
    transform: rotate(180deg);
}
@media (max-width: 600px) {
    .nfx-live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nfx-live-account-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════════════════════════
   MT5 TICKER STRIP  [nfx_mt5_ticker]
══════════════════════════════════════════════════════════════ */
.nfx-ticker-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #141c2e;
    border: 1px solid #1e2d4a;
    border-radius: 12px;
    padding: 12px 24px;
    margin: 16px 0;
}
.nfx-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nfx-ticker-label {
    font-size: 0.75rem;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nfx-ticker-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #e6edf3;
}
.nfx-ticker-sep {
    color: #1e2d4a;
    font-size: 1.2rem;
}
.nfx-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
    display: inline-block;
    animation: nfxPulseDot 2s infinite;
}
@keyframes nfxPulseDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ══════════════════════════════════════════════════════════════
   MARKET BRIEF INLINE  [nfx_market_brief]
══════════════════════════════════════════════════════════════ */
.nfx-market-brief {
    background: #141c2e;
    border: 1px solid #00d4ff22;
    border-left: 3px solid #00d4ff;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #c9d1d9;
    line-height: 1.5;
    margin: 16px 0;
}
.nfx-market-brief-icon { margin-right: 4px; }
.nfx-market-brief strong { color: #00d4ff; }

/* ============================================================
   NeuralFX — TRUST & CONVERSION COMPONENTS  (appended)
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --nfx-bg:     #0d1117;
    --nfx-card:   #141c2e;
    --nfx-border: #1e2d4a;
    --nfx-accent: #00d4ff;
    --nfx-green:  #00e676;
    --nfx-gold:   #ffd700;
    --nfx-text:   #e6edf3;
    --nfx-muted:  #8899aa;
}

/* ── Keyframe Animations ───────────────────────────────────── */
@keyframes nfx-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes nfxPulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(0,230,118,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0,230,118,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
}
@keyframes nfxGlowBorder {
    0%, 100% { border-color: var(--nfx-accent); box-shadow: 0 0 12px rgba(0,212,255,0.3); }
    50%       { border-color: var(--nfx-green);  box-shadow: 0 0 24px rgba(0,230,118,0.4); }
}
@keyframes nfxPopIn {
    0%   { opacity: 0; transform: translateY(32px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nfxOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes nfxGuideTab {
    0%, 100% { box-shadow: 3px 0 16px rgba(0,212,255,0.2); }
    50%       { box-shadow: 3px 0 28px rgba(0,212,255,0.5); }
}
@keyframes nfxGlowGreen2 {
    0%, 100% { box-shadow: 0 0 16px rgba(0,230,118,0.25); }
    50%       { box-shadow: 0 0 32px rgba(0,230,118,0.55); }
}

/* ══════════════════════════════════════════════════════════════
   1. [nfx_trust_bar]  —  .nfx-trust-bar
══════════════════════════════════════════════════════════════ */
.nfx-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.nfx-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--nfx-text);
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: default;
}
.nfx-trust-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,212,255,0.18);
    border-color: var(--nfx-accent);
}
.nfx-trust-pill .nfx-tp-icon {
    font-size: 1rem;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .nfx-trust-bar { gap: 8px; }
    .nfx-trust-pill { font-size: 0.78rem; padding: 7px 12px; }
}

/* ══════════════════════════════════════════════════════════════
   2. [nfx_money_back]  —  .nfx-money-back-wrap
══════════════════════════════════════════════════════════════ */
.nfx-money-back-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 24px 0;
}
.nfx-mb-badge {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e67622, #00e67611);
    border: 2px solid var(--nfx-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(0,230,118,0.35);
    animation: nfxGlowGreen2 3s ease-in-out infinite;
}
.nfx-mb-text h3 {
    margin: 0 0 4px;
    color: var(--nfx-text);
    font-size: 1.1rem;
    font-weight: 800;
}
.nfx-mb-text p {
    margin: 0;
    color: var(--nfx-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}
@media (max-width: 480px) {
    .nfx-money-back-wrap { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   3. [nfx_stats_counter]  —  .nfx-stats-counter-grid
══════════════════════════════════════════════════════════════ */
.nfx-stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.nfx-stat-box {
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nfx-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.nfx-stat-count {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--nfx-accent);
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: -1px;
}
.nfx-stat-count.green { color: var(--nfx-green); }
.nfx-stat-count.gold  { color: var(--nfx-gold); }
.nfx-stat-label {
    font-size: 0.82rem;
    color: var(--nfx-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 480px) {
    .nfx-stats-counter-grid { grid-template-columns: 1fr; gap: 12px; }
    .nfx-stat-count { font-size: 2.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   4. [nfx_security_badges]  —  .nfx-security-badges
══════════════════════════════════════════════════════════════ */
.nfx-security-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}
.nfx-sec-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d1117;
    border: 1px solid var(--nfx-border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.8rem;
    color: var(--nfx-muted);
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.nfx-sec-pill:hover {
    border-color: var(--nfx-accent);
    color: var(--nfx-text);
}
.nfx-sec-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: var(--nfx-accent);
}
@media (max-width: 480px) {
    .nfx-security-badges { gap: 8px; }
    .nfx-sec-pill { font-size: 0.76rem; padding: 7px 10px; }
}

/* ══════════════════════════════════════════════════════════════
   5. [nfx_live_investor_count]  —  .nfx-investor-count
══════════════════════════════════════════════════════════════ */
.nfx-investor-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--nfx-muted);
    margin: 12px 0;
}
.nfx-investor-count .nfx-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--nfx-green);
    flex-shrink: 0;
    animation: nfxPulseRing 2s ease-out infinite;
}
.nfx-investor-count .nfx-inv-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--nfx-green);
}

/* ══════════════════════════════════════════════════════════════
   6. [nfx_performance_badge]  —  .nfx-perf-badge
══════════════════════════════════════════════════════════════ */
.nfx-perf-badge {
    background: var(--nfx-card);
    border: 1px solid var(--nfx-accent);
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    animation: nfxGlowBorder 3s ease-in-out infinite;
    max-width: 480px;
}
.nfx-perf-badge-title {
    font-size: 0.75rem;
    color: var(--nfx-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}
.nfx-perf-badge-stats {
    display: flex;
    gap: 0;
    justify-content: space-around;
    flex-wrap: wrap;
}
.nfx-perf-stat {
    text-align: center;
    padding: 0 16px;
    flex: 1;
    min-width: 90px;
}
.nfx-perf-stat-val {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--nfx-green);
    margin-bottom: 3px;
}
.nfx-perf-stat-val.accent { color: var(--nfx-accent); }
.nfx-perf-stat-val.gold   { color: var(--nfx-gold); }
.nfx-perf-stat-lbl {
    font-size: 0.75rem;
    color: var(--nfx-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
@media (max-width: 480px) {
    .nfx-perf-badge { padding: 20px; }
    .nfx-perf-stat  { padding: 8px; }
    .nfx-perf-stat-val { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════════════════════
   7. [nfx_faq]  —  .nfx-faq-wrap
══════════════════════════════════════════════════════════════ */
.nfx-faq-wrap {
    max-width: 820px;
    margin: 32px auto;
}

/* Search bar */
.nfx-faq-search-wrap {
    position: relative;
    margin-bottom: 20px;
}
.nfx-faq-search {
    width: 100%;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    color: var(--nfx-text);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.nfx-faq-search:focus { outline: none; border-color: var(--nfx-accent); }
.nfx-faq-search::placeholder { color: var(--nfx-muted); }
.nfx-faq-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nfx-muted);
    font-size: 1rem;
    pointer-events: none;
}

/* Category pills */
.nfx-faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.nfx-faq-cat {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--nfx-border);
    background: none;
    color: var(--nfx-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nfx-faq-cat:hover,
.nfx-faq-cat.active {
    background: rgba(0,212,255,0.12);
    color: var(--nfx-accent);
    border-color: var(--nfx-accent);
}

/* Accordion */
.nfx-faq-list { display: flex; flex-direction: column; gap: 8px; }
.nfx-faq-item {
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.nfx-faq-item.open { border-color: var(--nfx-accent); }
.nfx-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--nfx-text);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.nfx-faq-q:hover { color: var(--nfx-accent); }
.nfx-faq-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nfx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--nfx-muted);
    transition: transform 0.3s, background 0.2s;
}
.nfx-faq-item.open .nfx-faq-arrow {
    transform: rotate(180deg);
    background: rgba(0,212,255,0.15);
    color: var(--nfx-accent);
}
.nfx-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 20px;
}
.nfx-faq-item.open .nfx-faq-a {
    max-height: 600px;
    padding: 0 20px 18px;
}
.nfx-faq-a p {
    margin: 0;
    color: var(--nfx-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* No results */
.nfx-faq-no-results {
    text-align: center;
    padding: 40px;
    color: var(--nfx-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nfx-faq-wrap { margin: 20px 0; }
    .nfx-faq-q { font-size: 0.9rem; padding: 14px 16px; }
}

/* ══════════════════════════════════════════════════════════════
   8. [nfx_testimonials]  —  .nfx-testimonials-grid
══════════════════════════════════════════════════════════════ */
.nfx-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0;
}
.nfx-testi-card {
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nfx-testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}
.nfx-testi-stars {
    display: flex;
    gap: 3px;
    color: var(--nfx-gold);
    font-size: 0.95rem;
}
.nfx-testi-body {
    font-size: 0.9rem;
    color: var(--nfx-muted);
    line-height: 1.7;
    flex: 1;
}
.nfx-testi-body blockquote {
    margin: 0;
    font-style: italic;
}
.nfx-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nfx-testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0099bb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}
.nfx-testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nfx-testi-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--nfx-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nfx-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,230,118,0.12);
    color: var(--nfx-green);
    border: 1px solid rgba(0,230,118,0.3);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.nfx-testi-role {
    font-size: 0.78rem;
    color: var(--nfx-muted);
}

/* Case study card variant */
.nfx-testi-card.case-study {
    border-color: rgba(0,212,255,0.35);
    background: linear-gradient(160deg, #141c2e 0%, #0d1625 100%);
}
.nfx-case-study-tag {
    display: inline-block;
    background: rgba(0,212,255,0.12);
    color: var(--nfx-accent);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .nfx-testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   9. [nfx_testimonials_slider]  —  CSS marquee
══════════════════════════════════════════════════════════════ */
.nfx-ticker-scroll-outer {
    overflow: hidden;
    width: 100%;
    margin: 24px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.nfx-ticker-scroll {
    display: flex;
    gap: 16px;
    animation: nfx-marquee 32s linear infinite;
    width: max-content;
}
.nfx-ticker-scroll:hover { animation-play-state: paused; }
.nfx-ticker-slide {
    flex-shrink: 0;
    width: 300px;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 14px;
    padding: 20px;
}
.nfx-ticker-slide .nfx-testi-stars { font-size: 0.85rem; margin-bottom: 8px; }
.nfx-ticker-slide .nfx-testi-body  { font-size: 0.85rem; margin-bottom: 12px; }

@media (max-width: 768px) {
    .nfx-ticker-slide { width: 260px; }
}
@media (max-width: 480px) {
    .nfx-ticker-slide { width: 220px; padding: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   10. [nfx_ratings_summary]  —  .nfx-ratings-summary
══════════════════════════════════════════════════════════════ */
.nfx-ratings-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.nfx-ratings-big {
    text-align: center;
    flex-shrink: 0;
}
.nfx-ratings-score {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--nfx-gold);
    line-height: 1;
}
.nfx-ratings-outof { font-size: 0.88rem; color: var(--nfx-muted); margin-top: 4px; }
.nfx-ratings-stars-big {
    color: var(--nfx-gold);
    font-size: 1.1rem;
    margin-top: 6px;
    letter-spacing: 2px;
}
.nfx-ratings-bars { flex: 1; min-width: 200px; }
.nfx-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}
.nfx-rating-row:last-child { margin-bottom: 0; }
.nfx-rating-label { font-size: 0.78rem; color: var(--nfx-muted); width: 36px; flex-shrink: 0; text-align: right; }
.nfx-rating-bar-bg {
    flex: 1;
    height: 7px;
    background: var(--nfx-border);
    border-radius: 4px;
    overflow: hidden;
}
.nfx-rating-bar-fill {
    height: 100%;
    background: var(--nfx-gold);
    border-radius: 4px;
    transition: width 0.8s ease;
}
.nfx-rating-pct { font-size: 0.75rem; color: var(--nfx-muted); width: 32px; flex-shrink: 0; }
@media (max-width: 480px) {
    .nfx-ratings-summary { flex-direction: column; gap: 20px; padding: 20px; }
    .nfx-ratings-score { font-size: 2.8rem; }
}

/* ══════════════════════════════════════════════════════════════
   11. Exit Intent Popup  —  .nfx-exit-popup-overlay
══════════════════════════════════════════════════════════════ */
.nfx-exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.nfx-exit-popup-overlay.open {
    opacity: 1;
    pointer-events: all;
    animation: nfxOverlayIn 0.25s ease forwards;
}
.nfx-exit-popup {
    background: var(--nfx-card);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 36px 32px;
    animation: nfxPopIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
    /* Animated gradient border */
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px var(--nfx-accent), 0 24px 60px rgba(0,0,0,0.6);
}
.nfx-exit-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--nfx-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nfx-exit-popup-close:hover { color: var(--nfx-text); background: var(--nfx-border); }
.nfx-exit-popup-icon { font-size: 2.8rem; margin-bottom: 12px; }
.nfx-exit-popup h2 {
    margin: 0 0 8px;
    color: var(--nfx-text);
    font-size: 1.5rem;
    font-weight: 900;
}
.nfx-exit-popup p {
    color: var(--nfx-muted);
    font-size: 0.92rem;
    margin: 0 0 20px;
    line-height: 1.6;
}
.nfx-exit-popup .nfx-btn-primary { margin-top: 0; }
.nfx-exit-popup-dismiss {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--nfx-muted);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-decoration: underline;
    transition: color 0.2s;
}
.nfx-exit-popup-dismiss:hover { color: var(--nfx-text); }

@media (max-width: 480px) {
    .nfx-exit-popup { padding: 28px 20px; }
    .nfx-exit-popup h2 { font-size: 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════
   12. Free Guide Sidebar Tab  —  .nfx-guide-tab
══════════════════════════════════════════════════════════════ */
.nfx-guide-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-accent);
    border-right: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nfx-accent);
    cursor: pointer;
    z-index: 9000;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: nfxGuideTab 3s ease-in-out infinite;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    letter-spacing: 0.5px;
}
/* Correct: use right edge fixed vertical tab without rotation ambiguity */
.nfx-guide-tab {
    writing-mode: vertical-lr;
    transform: translateY(-50%) rotate(180deg);
}
.nfx-guide-tab:hover {
    background: rgba(0,212,255,0.12);
    color: var(--nfx-text);
}
@media (max-width: 480px) {
    .nfx-guide-tab { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   13. [nfx_lead_form]  —  .nfx-lead-form
══════════════════════════════════════════════════════════════ */
.nfx-lead-form {
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 560px;
    margin: 0 auto;
}
.nfx-lead-form h2, .nfx-lead-form h3 {
    margin: 0 0 6px;
    color: var(--nfx-text);
}
.nfx-lead-form .nfx-form-sub {
    color: var(--nfx-muted);
    font-size: 0.88rem;
    margin: 0 0 24px;
}
.nfx-lead-form .nfx-form-group { margin-bottom: 14px; }
.nfx-lead-form .nfx-form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--nfx-muted);
    margin-bottom: 5px;
}
.nfx-lead-form .nfx-input {
    background: #0d1117;
    border-color: var(--nfx-border);
}
.nfx-lead-form .nfx-input:focus { border-color: var(--nfx-accent); }
.nfx-lead-form select.nfx-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238899aa' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.nfx-lead-privacy {
    font-size: 0.76rem;
    color: var(--nfx-muted);
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}
.nfx-lead-form-success {
    text-align: center;
    padding: 32px 20px;
    display: none;
}
.nfx-lead-form-success.show { display: block; }
.nfx-lead-form-success .nfx-success-icon { font-size: 3rem; margin-bottom: 12px; }
.nfx-lead-form-success h3 { color: var(--nfx-green); margin: 0 0 8px; }
.nfx-lead-form-success p  { color: var(--nfx-muted); font-size: 0.9rem; }

@media (max-width: 480px) {
    .nfx-lead-form { padding: 24px 18px; }
}

/* ══════════════════════════════════════════════════════════════
   14. Legal Pages  —  .nfx-legal-wrap
══════════════════════════════════════════════════════════════ */
.nfx-legal-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 32px 0;
}
.nfx-legal-toc {
    position: sticky;
    top: 20px;
    width: 220px;
    flex-shrink: 0;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 12px;
    padding: 20px;
    font-size: 0.84rem;
}
.nfx-legal-toc h4 {
    margin: 0 0 12px;
    color: var(--nfx-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nfx-legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nfx-legal-toc li a {
    display: block;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--nfx-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.2s, color 0.2s;
}
.nfx-legal-toc li a:hover,
.nfx-legal-toc li a.active {
    background: rgba(0,212,255,0.1);
    color: var(--nfx-accent);
}
.nfx-legal-wrap {
    max-width: 760px;
    flex: 1;
    min-width: 0;
}
.nfx-legal-content {
    max-width: 760px;
    line-height: 1.8;
    color: var(--nfx-muted);
    font-size: 0.93rem;
}
.nfx-legal-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--nfx-text);
    margin: 36px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--nfx-accent);
}
.nfx-legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nfx-text);
    margin: 24px 0 8px;
    padding-left: 10px;
    border-left: 2px solid var(--nfx-border);
}
.nfx-legal-content p { margin: 0 0 14px; }
.nfx-legal-content a { color: var(--nfx-accent); text-decoration: underline; }
.nfx-legal-content ul,
.nfx-legal-content ol {
    padding-left: 22px;
    margin: 0 0 14px;
}
.nfx-legal-content li { margin-bottom: 6px; }
.nfx-legal-last-updated {
    font-size: 0.78rem;
    color: var(--nfx-muted);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .nfx-legal-layout { flex-direction: column; gap: 20px; }
    .nfx-legal-toc { position: static; width: 100%; }
    .nfx-legal-content h2 { font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════════════════════
   15. Risk Disclaimer  —  .nfx-risk-disclaimer (enhanced)
══════════════════════════════════════════════════════════════ */
/* Override earlier minimal style with full component */
.nfx-risk-disclaimer {
    background: #160a0a;
    border: 1px solid rgba(248,81,73,0.4);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    color: var(--nfx-muted);
    font-size: 0.87rem;
    line-height: 1.7;
}
.nfx-risk-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #f85149;
    font-weight: 800;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nfx-risk-header svg,
.nfx-risk-header .nfx-risk-icon { color: #f85149; flex-shrink: 0; }
.nfx-risk-disclaimer strong { color: #f85149; }
.nfx-risk-stat-tiles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.nfx-risk-tile {
    flex: 1;
    min-width: 120px;
    background: rgba(248,81,73,0.08);
    border: 1px solid rgba(248,81,73,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
}
.nfx-risk-tile-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #f85149;
}
.nfx-risk-tile-lbl {
    font-size: 0.72rem;
    color: var(--nfx-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .nfx-risk-disclaimer { padding: 16px; }
    .nfx-risk-stat-tiles { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   16. Cookie Banner  —  .nfx-cookie-banner
══════════════════════════════════════════════════════════════ */
.nfx-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #0d1117ee;
    border-top: 1px solid var(--nfx-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
.nfx-cookie-banner.show { transform: translateY(0); }
.nfx-cookie-text {
    flex: 1;
    min-width: 240px;
    font-size: 0.85rem;
    color: var(--nfx-muted);
    line-height: 1.55;
}
.nfx-cookie-text a { color: var(--nfx-accent); text-decoration: underline; }
.nfx-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.nfx-cookie-btn {
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nfx-cookie-btn:hover { transform: translateY(-1px); }
.nfx-cookie-btn.accept  { background: linear-gradient(135deg, #00d4ff, #0099cc); color: #000; }
.nfx-cookie-btn.decline { background: var(--nfx-border); color: var(--nfx-muted); }
.nfx-cookie-btn.manage  { background: none; border: 1px solid var(--nfx-border); color: var(--nfx-muted); }

/* Cookie preferences modal */
.nfx-cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.nfx-cookie-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.nfx-cookie-modal {
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: nfxPopIn 0.3s ease forwards;
}
.nfx-cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--nfx-border);
}
.nfx-cookie-modal-header h3 { margin: 0; color: var(--nfx-text); font-size: 1rem; }
.nfx-cookie-modal-body { padding: 20px 24px; }
.nfx-cookie-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--nfx-border);
}
.nfx-cookie-toggle-row:last-child { border-bottom: none; }
.nfx-cookie-toggle-info h4 { margin: 0 0 3px; font-size: 0.9rem; color: var(--nfx-text); }
.nfx-cookie-toggle-info p  { margin: 0; font-size: 0.78rem; color: var(--nfx-muted); }
.nfx-cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--nfx-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .nfx-cookie-banner { padding: 14px 16px; }
    .nfx-cookie-actions { width: 100%; justify-content: stretch; }
    .nfx-cookie-btn { flex: 1; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   17. [nfx_performance_history]  —  .nfx-perf-table
══════════════════════════════════════════════════════════════ */
.nfx-perf-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid var(--nfx-border);
}
.nfx-perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--nfx-card);
}
.nfx-perf-table thead th {
    text-align: left;
    padding: 12px 16px;
    background: #0d1117;
    color: var(--nfx-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--nfx-border);
    white-space: nowrap;
}
.nfx-perf-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--nfx-border);
    color: #c9d1d9;
    vertical-align: middle;
}
.nfx-perf-table tbody tr:last-child td { border-bottom: none; }
.nfx-perf-table tbody tr:hover td {
    background: rgba(0,212,255,0.04);
}
.nfx-perf-table .positive { color: var(--nfx-green); font-weight: 700; }
.nfx-perf-table .negative { color: #f85149; font-weight: 700; }

/* Progress bar cell */
.nfx-perf-bar-cell { min-width: 120px; }
.nfx-perf-bar-bg {
    background: var(--nfx-border);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-top: 4px;
}
.nfx-perf-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--nfx-accent), var(--nfx-green));
    transition: width 0.7s ease;
}
.nfx-perf-bar-fill.red { background: linear-gradient(90deg, #f85149, #ff7755); }

@media (max-width: 768px) {
    .nfx-perf-table thead th,
    .nfx-perf-table tbody td { padding: 10px 12px; font-size: 0.82rem; }
}

/* ══════════════════════════════════════════════════════════════
   18. [nfx_projected_returns]  —  .nfx-roi-calc
══════════════════════════════════════════════════════════════ */
.nfx-roi-calc {
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    border-radius: 20px;
    padding: 32px;
    margin: 28px 0;
}
.nfx-roi-calc h3 {
    margin: 0 0 24px;
    color: var(--nfx-text);
    font-size: 1.15rem;
}
.nfx-roi-slider-group { margin-bottom: 22px; }
.nfx-roi-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 0.87rem;
    color: var(--nfx-muted);
}
.nfx-roi-slider-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--nfx-accent);
}
.nfx-roi-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--nfx-border);
    outline: none;
    cursor: pointer;
}
.nfx-roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--nfx-accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,212,255,0.5);
    transition: box-shadow 0.2s;
}
.nfx-roi-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 16px rgba(0,212,255,0.7); }
.nfx-roi-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--nfx-accent);
    cursor: pointer;
    border: none;
}

/* Result cards */
.nfx-roi-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.nfx-roi-card {
    background: #0d1117;
    border: 1px solid var(--nfx-border);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
}
.nfx-roi-card-label {
    font-size: 0.72rem;
    color: var(--nfx-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.nfx-roi-card-val {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--nfx-green);
}
.nfx-roi-card-val.accent { color: var(--nfx-accent); }
.nfx-roi-card-val.gold   { color: var(--nfx-gold); }

/* Monthly breakdown table */
.nfx-roi-breakdown-wrap { overflow-x: auto; margin-top: 24px; }
.nfx-roi-breakdown {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.nfx-roi-breakdown th {
    padding: 8px 12px;
    background: #0d1117;
    color: var(--nfx-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
}
.nfx-roi-breakdown td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--nfx-border);
    color: #c9d1d9;
}
.nfx-roi-breakdown .td-profit { color: var(--nfx-green); font-weight: 700; }

@media (max-width: 480px) {
    .nfx-roi-calc { padding: 20px 16px; }
    .nfx-roi-results { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nfx-roi-card-val { font-size: 1.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   19. [nfx_audit_badge]  —  .nfx-audit-badge
══════════════════════════════════════════════════════════════ */
.nfx-audit-badge {
    background: var(--nfx-card);
    border: 1px solid rgba(0,230,118,0.35);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0;
    max-width: 520px;
    animation: nfxGlowGreen2 3.5s ease-in-out infinite;
    transition: transform 0.2s;
}
.nfx-audit-badge:hover { transform: translateY(-3px); }
.nfx-audit-badge-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
}
.nfx-audit-badge-info h4 {
    margin: 0 0 4px;
    color: var(--nfx-text);
    font-size: 1rem;
    font-weight: 800;
}
.nfx-audit-badge-info p {
    margin: 0 0 8px;
    color: var(--nfx-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.nfx-audit-badge-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.nfx-audit-meta-item {
    font-size: 0.78rem;
    color: var(--nfx-muted);
}
.nfx-audit-meta-item strong { color: var(--nfx-green); }

@media (max-width: 480px) {
    .nfx-audit-badge { flex-direction: column; text-align: center; padding: 20px; }
    .nfx-audit-badge-meta { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   20. Breadcrumbs  —  .nfx-breadcrumbs
══════════════════════════════════════════════════════════════ */
.nfx-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 24px;
    font-size: 0.82rem;
    color: var(--nfx-muted);
    list-style: none;
    padding: 0;
}
.nfx-breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.nfx-breadcrumbs a {
    color: var(--nfx-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nfx-breadcrumbs a:hover { color: var(--nfx-accent); }
.nfx-breadcrumbs .nfx-bc-sep {
    color: var(--nfx-border);
    font-size: 0.7rem;
    user-select: none;
}
.nfx-breadcrumbs li:last-child a,
.nfx-breadcrumbs li:last-child span {
    color: var(--nfx-text);
    font-weight: 600;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   21. Mobile Sticky CTA Bar  —  .nfx-mobile-cta-bar
══════════════════════════════════════════════════════════════ */
.nfx-mobile-cta-bar {
    display: none; /* hidden by default, shown on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    background: linear-gradient(135deg, #0d1117ee, #141c2eee);
    border-top: 1px solid var(--nfx-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
.nfx-mobile-cta-bar.show { transform: translateY(0); }
.nfx-mobile-cta-bar .nfx-btn-primary {
    margin: 0;
    font-size: 0.95rem;
    padding: 14px 20px;
}
.nfx-mobile-cta-bar .nfx-mcb-sub {
    text-align: center;
    font-size: 0.72rem;
    color: var(--nfx-muted);
    margin-top: 5px;
}
@media (max-width: 768px) {
    .nfx-mobile-cta-bar { display: block; }
}

/* ══════════════════════════════════════════════════════════════
   22. Scroll to Top Button  —  .nfx-scroll-top
══════════════════════════════════════════════════════════════ */
.nfx-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nfx-card);
    border: 1px solid var(--nfx-border);
    color: var(--nfx-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.nfx-scroll-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.nfx-scroll-top:hover {
    border-color: var(--nfx-accent);
    color: var(--nfx-accent);
    box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}
/* Shift up when mobile CTA bar is visible */
@media (max-width: 768px) {
    .nfx-scroll-top { bottom: 80px; right: 12px; }
}

