/* Monte Carlo Simulator - white-card theme on purple gradient */

.mc-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.55;
}

/* Card */
.mc-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.mc-helper {
    color: #555;
    font-size: 13.5px;
    margin: 0 0 18px;
    line-height: 1.5;
}

.mc-inline-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: color .15s, border-color .15s;
}
.mc-inline-link:hover { color: #4f46e5; border-bottom-color: #4f46e5; }

.mc-divider {
    border: 0;
    border-top: 1px solid #eef0f7;
    margin: 26px 0 20px;
}

/* Grids */
.mc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
}

.mc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 28px;
}

@media (max-width: 768px) {
    .mc-grid-2, .mc-grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .mc-card { padding: 22px; }
}

/* Field */
.mc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.mc-hint {
    color: #888;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

/* Slider */
.mc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mc-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.mc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    transition: transform .15s, box-shadow .15s;
}
.mc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4);
}
.mc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.mc-slider-value {
    min-width: 54px;
    text-align: right;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
}

/* Preset buttons */
.mc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mc-preset {
    background: #f5f6fb;
    color: #555;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.mc-preset:hover {
    background: #eef0ff;
    color: #6366f1;
    border-color: #c7d2fe;
}

/* Sim-count button row */
.mc-btn-row {
    display: flex;
    gap: 8px;
}

.mc-sim-btn {
    flex: 1;
    background: #f5f6fb;
    color: #555;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.mc-sim-btn:hover { background: #eef0ff; color: #6366f1; border-color: #c7d2fe; }
.mc-sim-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);
}

/* Action row */
.mc-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef0f7;
}

.mc-run-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: transform .15s, box-shadow .15s;
}
.mc-run-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.42);
}
.mc-run-btn:active { transform: translateY(0); }

.mc-run-hint {
    color: #888;
    font-size: 12.5px;
    font-style: italic;
}

@media (max-width: 520px) {
    .mc-action-row { flex-direction: column; align-items: flex-start; }
    .mc-run-btn { width: 100%; justify-content: center; }
}

/* Metrics */
.mc-metrics-section {
    margin-bottom: 24px;
}

.mc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 880px) {
    .mc-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .mc-metrics-grid { grid-template-columns: 1fr; }
}

.mc-metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.mc-metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, #6366f1);
}

.mc-metric-primary {
    background: linear-gradient(135deg, #fafbff 0%, #f5f6fb 100%);
}

.mc-metric-icon {
    font-size: 22px;
    color: #6366f1;
    margin-bottom: 4px;
}
.mc-metric-icon--red { color: #ef4444; }
.mc-metric-icon--purple { color: #8b5cf6; }

.mc-metric-value {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    margin: 2px 0;
    font-variant-numeric: tabular-nums;
}

.mc-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mc-metric-meta {
    font-size: 11.5px;
    color: #888;
    margin-top: 4px;
    line-height: 1.35;
}

/* Chart sections */
.mc-chart-section {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mc-chart-header { margin-bottom: 14px; }

.mc-chart-note {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.mc-chart-container {
    position: relative;
    height: 380px;
    max-height: 380px;
}
.mc-chart-container--short {
    height: 260px;
    max-height: 260px;
}

@media (max-width: 600px) {
    .mc-chart-container { height: 300px; max-height: 300px; }
    .mc-chart-container--short { height: 220px; max-height: 220px; }
    .mc-chart-section { padding: 18px; }
}

/* Expectancy card */
.mc-expectancy-card {
    background: linear-gradient(135deg, #fafbff 0%, #f0f1fb 100%);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.mc-exp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mc-exp-icon {
    color: #fbbf24;
    font-size: 22px;
}

.mc-exp-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

.mc-exp-para {
    margin: 6px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}
.mc-exp-para strong { color: #1a1a2e; font-weight: 700; }
.mc-exp-meta { color: #666; font-size: 13px; margin-top: 10px; }
.mc-exp-meta strong { color: #1a1a2e; }

.mc-positive { color: #15803d; font-weight: 600; }
.mc-negative { color: #b91c1c; font-weight: 600; }

/* Explainer */
.mc-explainer {
    background: #fff;
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mc-explainer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .mc-explainer-grid { grid-template-columns: 1fr; }
}

.mc-explainer-item {
    padding: 16px 18px;
    background: #fafbff;
    border-radius: 10px;
    border-left: 3px solid #6366f1;
}
.mc-explainer-item p {
    margin: 0;
    color: #555;
    font-size: 13.5px;
    line-height: 1.6;
}

.mc-explainer-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mc-explainer-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

/* Related tools */
.mc-related {
    background: #fff;
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mc-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    background: #fff;
}

@media (max-width: 680px) {
    .mc-related-grid { grid-template-columns: 1fr; }
}

.mc-related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fafbff;
    border: 1px solid #eef0f7;
    border-radius: 10px;
    text-decoration: none;
    transition: all .15s;
}
.mc-related-card:hover {
    background: #eef0ff;
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.14);
    text-decoration: none;
}

.mc-related-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: #6366f1;
}
.mc-related-icon--purple { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.mc-related-icon--red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.mc-related-icon--green { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }
.mc-related-icon--amber { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }

.mc-related-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mc-related-text strong {
    color: #1a1a2e;
    font-size: 14.5px;
    font-weight: 700;
}
.mc-related-text span {
    color: #666;
    font-size: 12.5px;
    line-height: 1.45;
}

/* CTA */
.mc-cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 14px;
    padding: 28px 26px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.mc-cta-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}

.mc-cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mc-cta-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform .15s, box-shadow .15s;
}
.mc-cta-primary {
    background: #fff;
    color: #4f46e5;
}
.mc-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    color: #4f46e5;
    text-decoration: none;
}
.mc-cta-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
}
.mc-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
