  /* ====== GLOBAL VARIABLES ====== */
        :root {
            --primary-pg16: #1a365d;
            --secondary-pg16: #2d3748;
            --accent-pg16: #4299e1;
            --gold-pg16: #d4af37;
            --success-pg16: #38a169;
            --warning-pg16: #ed8936;
            --danger-pg16: #c53030;
            --light-pg16: #f7fafc;
            --border-pg16: #e2e8f0;
            --text-pg16: #2d3748;
        }
        
        /* ====== HERO SECTION ====== */
        .fx-hero-pg16 {
            background: linear-gradient(135deg, var(--primary-pg16) 0%, #2d3748 100%);
            color: white;
            padding: 80px 0 40px;
            margin-bottom: 40px;
        }
        
        .fx-hero-content-pg16 {
            max-width: 800px;
            margin: 0 auto;
            text-align: left;
        }
        
        .breadcrumb-pg16 {
            font-size: 14px;
            margin-bottom: 20px;
            opacity: 0.8;
        }
        
        .breadcrumb-pg16 a {
            color: var(--accent-pg16);
            text-decoration: none;
        }
        
        .breadcrumb-pg16 span {
            color: rgba(255, 255, 255, 0.8);
        }
        
        .fx-hero-pg16 h1 {
            font-size: 40px;
            font-weight: 700;
            margin: 0 0 20px 0;
            line-height: 1.2;
            color: white;
        }
        
        .fx-hero-lead-pg16 {
            font-size: 18px;
            line-height: 1.6;
            opacity: 0.9;
            margin-bottom: 30px;
        }
        
        .fx-hero-stats-pg16 {
            display: flex;
            gap: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .fx-stat-pg16 {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .fx-stat-number-pg16 {
            font-size: 18px;
            font-weight: 600;
            color: var(--accent-pg16);
        }
        
        .fx-stat-label-pg16 {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.7;
        }
        
        /* ====== TWO COLUMN LAYOUT ====== */
        .article-content-pg16 {
            padding: 60px 0;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .article-grid-pg16 {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 50px;
            align-items: start;
        }
        
        .article-body-pg16 {
            font-size: 17px;
            line-height: 1.7;
            color: var(--text-pg16);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }
        
        .article-body-pg16 h2 {
            color: var(--primary-pg16);
            margin-top: 48px;
            margin-bottom: 24px;
            font-size: 28px;
            font-weight: 700;
            border-bottom: 2px solid var(--border-pg16);
            padding-bottom: 12px;
        }
        
        .article-body-pg16 h3 {
            color: var(--secondary-pg16);
            margin-top: 36px;
            margin-bottom: 18px;
            font-size: 22px;
            font-weight: 600;
        }
        
        .article-body-pg16 h4 {
            color: var(--secondary-pg16);
            margin: 20px 0 10px;
            font-size: 18px;
            font-weight: 600;
        }
        
        .article-body-pg16 p {
            margin-bottom: 24px;
        }
        
        /* ====== CALCULATOR SIDEBAR ====== */
        .calculator-sidebar-pg16 {
            position: sticky;
            top: 30px;
        }
        
        .calculator-card-pg16 {
            background: white;
            border: 2px solid var(--border-pg16);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            margin-bottom: 25px;
        }
        
        .calculator-card-pg16 h3 {
            color: var(--primary-pg16);
            margin-top: 0;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
        }
        
        .calculator-card-pg16 h3 i {
            color: var(--gold-pg16);
        }
        
        /* ====== FORM CONTROLS ====== */
        .form-group-pg16 {
            margin-bottom: 20px;
        }
        
        .form-group-pg16 label {
            display: block;
            margin-bottom: 8px;
            color: var(--secondary-pg16);
            font-weight: 500;
            font-size: 14px;
        }
        
        .input-with-icon-pg16 {
            position: relative;
        }
        
        .input-with-icon-pg16 i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent-pg16);
        }
        
        .input-with-icon-pg16 input,
        .input-with-icon-pg16 select {
            width: 100%;
            padding: 12px 15px 12px 45px;
            border: 2px solid var(--border-pg16);
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: white;
        }
        
        .input-with-icon-pg16 input:focus,
        .input-with-icon-pg16 select:focus {
            outline: none;
            border-color: var(--accent-pg16);
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
        }
        
        .range-slider-pg16 {
            width: 100%;
            margin: 10px 0;
            -webkit-appearance: none;
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(to right, var(--danger-pg16), var(--warning-pg16), var(--success-pg16));
        }
        
        .range-slider-pg16::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--primary-pg16);
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
        
        .slider-labels-pg16 {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 12px;
            color: var(--text-pg16);
        }
        
        /* ====== RESULTS DISPLAY ====== */
        .results-container-pg16 {
            background: var(--light-pg16);
            border-radius: 8px;
            padding: 20px;
            margin-top: 25px;
            border-left: 4px solid var(--accent-pg16);
        }
        
        .result-item-pg16 {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-pg16);
        }
        
        .result-item-pg16:last-child {
            border-bottom: none;
        }
        
        .result-label-pg16 {
            color: var(--secondary-pg16);
            font-weight: 500;
        }
        
        .result-value-pg16 {
            color: var(--primary-pg16);
            font-weight: 600;
            font-size: 18px;
        }
        
        .result-value-pg16.highlight {
            color: var(--gold-pg16);
            font-size: 22px;
        }
        
        /* ====== VISUALIZATION ====== */
        .visualization-pg16 {
            height: 200px;
            background: var(--light-pg16);
            border-radius: 8px;
            margin: 25px 0;
            position: relative;
            overflow: hidden;
        }
        
        .equity-bar-pg16 {
            position: absolute;
            bottom: 0;
            left: 10%;
            width: 30%;
            background: var(--success-pg16);
            transition: height 1s ease;
            border-radius: 4px 4px 0 0;
        }
        
        .margin-bar-pg16 {
            position: absolute;
            bottom: 0;
            right: 10%;
            width: 30%;
            background: var(--accent-pg16);
            transition: height 1s ease;
            border-radius: 4px 4px 0 0;
        }
        
        .bar-label-pg16 {
            position: absolute;
            bottom: -25px;
            text-align: center;
            width: 100%;
            font-size: 14px;
            color: var(--text-pg16);
        }
        
        /* ====== COMPARISON GRID ====== */
        .comparison-grid-pg16 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 30px 0;
        }
        
        .comparison-card-pg16 {
            padding: 20px;
            border-radius: 8px;
            border: 2px solid;
            transition: transform 0.3s ease;
        }
        
        .comparison-card-pg16:hover {
            transform: translateY(-5px);
        }
        
        .comparison-card-pg16.benefits {
            border-color: var(--success-pg16);
            background: rgba(56, 161, 105, 0.05);
        }
        
        .comparison-card-pg16.risks {
            border-color: var(--danger-pg16);
            background: rgba(197, 48, 48, 0.05);
        }
        
        .comparison-card-pg16 h4 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 0;
        }
        
        .comparison-card-pg16.benefits h4 {
            color: var(--success-pg16);
        }
        
        .comparison-card-pg16.risks h4 {
            color: var(--danger-pg16);
        }
        
        .comparison-list-pg16 {
            list-style: none;
            padding: 0;
            margin: 15px 0 0 0;
        }
        
        .comparison-list-pg16 li {
            padding: 8px 0;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .comparison-list-pg16 li i {
            color: var(--gold-pg16);
        }
        
        /* ====== WARNING BOXES ====== */
        .warning-box-pg16 {
            padding: 20px;
            border-radius: 8px;
            margin: 25px 0;
            border-left: 4px solid;
        }
        
        .warning-box-pg16.danger {
            background: rgba(197, 48, 48, 0.05);
            border-left-color: var(--danger-pg16);
        }
        
        .warning-box-pg16.warning {
            background: rgba(237, 137, 54, 0.05);
            border-left-color: var(--warning-pg16);
        }
        
        .warning-box-pg16 h4 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 0;
        }
        
        .warning-box-pg16.danger h4 {
            color: var(--danger-pg16);
        }
        
        .warning-box-pg16.warning h4 {
            color: var(--warning-pg16);
        }
        
        /* ====== INTERACTIVE EXAMPLE ====== */
        .interactive-example-pg16 {
            background: white;
            border: 2px solid var(--border-pg16);
            border-radius: 8px;
            padding: 25px;
            margin: 30px 0;
        }
        
        .example-controls-pg16 {
            display: flex;
            gap: 15px;
            margin: 20px 0;
        }
        
        .example-btn-pg16 {
            flex: 1;
            padding: 12px;
            border: 2px solid var(--border-pg16);
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .example-btn-pg16:hover {
            background: var(--light-pg16);
        }
        
        .example-btn-pg16.active {
            background: var(--primary-pg16);
            color: white;
            border-color: var(--primary-pg16);
        }
        
        .example-result-pg16 {
            background: var(--light-pg16);
            padding: 15px;
            border-radius: 6px;
            margin-top: 20px;
            display: none;
        }
        
        .example-result-pg16.show {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* ====== RESPONSIVE DESIGN ====== */
        @media (max-width: 992px) {
            .article-grid-pg16 {
                grid-template-columns: 1fr;
            }
            
            .calculator-sidebar-pg16 {
                position: static;
                order: -1;
            }
            
            .comparison-grid-pg16 {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .fx-hero-pg16 {
                padding: 60px 0 30px;
            }
            
            .fx-hero-pg16 h1 {
                font-size: 32px;
            }
            
            .article-body-pg16 h2 {
                font-size: 24px;
            }
            
            .example-controls-pg16 {
                flex-direction: column;
            }
        }
        /* 2. Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #e6a23c;
    text-decoration: underline;
}

.breadcrumb span {
    color: #e6a23c;
    font-weight: 600;
}
/* Fix for hero stats */
.fx-hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.fx-stat {
    text-align: left;
}

.fx-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e6a23c;
    display: block;
    line-height: 1;
}

.fx-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====== IMPROVED VISUALIZATION ====== */
.visualization-pg16 {
    height: 260px;
    background: white;
    border: 1px solid var(--border-pg16);
    border-radius: 8px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
    padding: 20px 10px 50px 50px; /* Added left padding for Y-axis */
}

/* Y-axis */
.y-axis-pg16 {
    position: absolute;
    left: 10px;
    top: 20px;
    bottom: 50px;
    width: 30px;
    border-right: 2px solid var(--border-pg16);
}

.y-label-pg16 {
    position: absolute;
    right: 8px;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-pg16);
    opacity: 0.7;
}

/* Grid lines */
.grid-line-pg16 {
    position: absolute;
    left: 40px;
    right: 10px;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

/* X-axis */
.x-axis-pg16 {
    position: absolute;
    bottom: 50px;
    left: 40px;
    right: 10px;
    height: 2px;
    background: var(--border-pg16);
}

/* Bar container */
.bar-container-pg16 {
    position: relative;
    height: 180px;
    margin-top: 20px;
}

/* Bar with complete labeling */
.bar-with-label-pg16 {
    position: absolute;
    bottom: 0;
    width: 30%;
    text-align: center;
}

/* Bars */
.equity-bar-pg16 {
    width: 70%;
    margin: 0 auto;
    background: linear-gradient(to top, var(--success-pg16), #48bb78);
    transition: height 1s ease;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(56, 161, 105, 0.3);
}

.margin-bar-pg16 {
    width: 70%;
    margin: 0 auto;
    background: linear-gradient(to top, var(--accent-pg16), #4299e1);
    transition: height 1s ease;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(66, 153, 225, 0.3);
}

/* Value labels above bars */
.bar-value-pg16 {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-pg16);
}

/* Bar labels below bars */
.bar-label-pg16 {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    font-size: 13px;
    color: var(--text-pg16);
    font-weight: 500;
}

/* Percentage labels */
.bar-percentage-pg16 {
    position: absolute;
    top: -45px;
    left: 0;
    right: 0;
    font-size: 11px;
    color: var(--secondary-pg16);
    opacity: 0.8;
}

/* Chart title */
.chart-title-pg16 {
    position: absolute;
    top: 10px;
    left: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-pg16);
}

/* Legend */
.legend-pg16 {
    position: absolute;
    bottom: 10px;
    left: 50px;
    right: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
}

.legend-item-pg16 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.equity-color {
    background: var(--success-pg16);
}

.legend-color.margin-color {
    background: var(--accent-pg16);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visualization-pg16 {
        height: 300px;
        padding: 30px 10px 60px 50px;
    }
    
    .legend-pg16 {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* ====== ENHANCED SELECT STYLING ====== */
.custom-select-pg16 {
    position: relative;
}

.custom-select-pg16 select {
    width: 100%;
    padding: 14px 50px 14px 45px;
    border: 2px solid var(--border-pg16);
    border-radius: 10px;
    font-size: 15px;
    background: white;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--secondary-pg16);
}

.custom-select-pg16 select:focus {
    outline: none;
    border-color: var(--accent-pg16);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Arrow */
.select-arrow-pg16 {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-pg16);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-select-pg16 select:focus + .select-arrow-pg16 {
    transform: translateY(-50%) rotate(180deg);
}

/* Risk indicator dots */
.select-indicator-pg16 {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.3;
}

.indicator-dot.conservative {
    background: var(--success-pg16);
}

.indicator-dot.moderate {
    background: var(--warning-pg16);
}

.indicator-dot.aggressive {
    background: var(--danger-pg16);
}

/* Highlight selected option */
.custom-select-pg16 select option[value="conservative"] {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success-pg16);
    font-weight: 600;
}

.custom-select-pg16 select option[value="moderate"] {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-pg16);
    font-weight: 600;
}

.custom-select-pg16 select option[value="aggressive"] {
    background: rgba(197, 48, 48, 0.1);
    color: var(--danger-pg16);
    font-weight: 600;
}

/* ====== DYNAMIC RISK BOXES ====== */
.risk-box-pg16 {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

/* Low Risk - Green */
.risk-box-pg16[data-risk="low"] {
    background: rgba(56, 161, 105, 0.08);
    border-left-color: var(--success-pg16);
}

.risk-box-pg16[data-risk="low"] .risk-header-pg16 i,
.risk-box-pg16[data-risk="low"] .risk-header-pg16 h4 {
    color: var(--success-pg16);
}

.risk-box-pg16[data-risk="low"] .risk-level-pg16 .risk-label {
    color: var(--success-pg16);
    background: rgba(56, 161, 105, 0.15);
}

/* Moderate Risk - Yellow/Orange */
.risk-box-pg16[data-risk="moderate"] {
    background: rgba(237, 137, 54, 0.08);
    border-left-color: var(--warning-pg16);
}

.risk-box-pg16[data-risk="moderate"] .risk-header-pg16 i,
.risk-box-pg16[data-risk="moderate"] .risk-header-pg16 h4 {
    color: var(--warning-pg16);
}

.risk-box-pg16[data-risk="moderate"] .risk-level-pg16 .risk-label {
    color: var(--warning-pg16);
    background: rgba(237, 137, 54, 0.15);
}

/* High Risk - Red */
.risk-box-pg16[data-risk="high"] {
    background: rgba(197, 48, 48, 0.08);
    border-left-color: var(--danger-pg16);
}

.risk-box-pg16[data-risk="high"] .risk-header-pg16 i,
.risk-box-pg16[data-risk="high"] .risk-header-pg16 h4 {
    color: var(--danger-pg16);
}

.risk-box-pg16[data-risk="high"] .risk-level-pg16 .risk-label {
    color: var(--danger-pg16);
    background: rgba(197, 48, 48, 0.15);
}

/* Extreme Risk - Dark Red */
.risk-box-pg16[data-risk="extreme"] {
    background: rgba(123, 52, 30, 0.08);
    border-left-color: #7b341e;
}

.risk-box-pg16[data-risk="extreme"] .risk-header-pg16 i,
.risk-box-pg16[data-risk="extreme"] .risk-header-pg16 h4 {
    color: #7b341e;
}

.risk-box-pg16[data-risk="extreme"] .risk-level-pg16 .risk-label {
    color: #7b341e;
    background: rgba(123, 52, 30, 0.15);
}

/* Internal styling */
.risk-header-pg16 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.risk-header-pg16 h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.risk-box-pg16 p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748; /* Dark text for readability */
}

.risk-level-pg16 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-level-pg16 .risk-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====== ENHANCED LEVERAGE GUIDELINES ====== */
.leverage-guidelines-pg16 {
    border-color: var(--success-pg16) !important;
}

.guidelines-list-pg16 {
    margin-top: 10px;
}

.guideline-item-pg16 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-pg16);
    color: #2d3748;
}

.guideline-item-pg16:last-child {
    border-bottom: none;
}

.guideline-icon-pg16 {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guideline-safe .guideline-icon-pg16 {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success-pg16);
}

.guideline-moderate .guideline-icon-pg16 {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-pg16);
}

.guideline-warning .guideline-icon-pg16 {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

.guideline-danger .guideline-icon-pg16 {
    background: rgba(197, 48, 48, 0.1);
    color: var(--danger-pg16);
}

.guideline-content-pg16 {
    flex: 1;
}

.guideline-range {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.guideline-desc {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Highlight current leverage range */
.guideline-item-pg16.active {
    background: rgba(66, 153, 225, 0.05);
    border-radius: 6px;
    margin: 5px -10px;
    padding: 12px 10px;
    border: 1px solid var(--accent-pg16);
}