/* Funded Probability Calculator */

.fc-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Card container */
.fc-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.fc-card-title {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Grid layout */
.fc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fc-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* Field */
.fc-field {
    margin-bottom: 4px;
}

.fc-label {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fc-label-hint {
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.fc-hint {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Input with prefix/suffix */
.fc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fc-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.fc-input:focus {
    outline: none;
    border-color: #7A95F8;
    background: rgba(255,255,255,0.1);
}

.fc-input-prefix {
    position: absolute;
    left: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.fc-input-suffix {
    position: absolute;
    right: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    pointer-events: none;
}

.fc-input-wrap .fc-input-prefix + .fc-input {
    padding-left: 28px;
}

.fc-input-wrap .fc-input:has(~ .fc-input-suffix) {
    padding-right: 28px;
}

/* Preset pills */
.fc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.fc-preset {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.fc-preset:hover {
    border-color: #7A95F8;
    color: #fff;
    background: rgba(122,149,248,0.15);
}

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

.fc-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    outline: none;
}

.fc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A95F8, #6453CA);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.15s;
}

.fc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.fc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A95F8, #6453CA);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
}

.fc-slider-val {
    min-width: 48px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

/* Run button */
.fc-run-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(100deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.fc-run-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(122,149,248,0.35);
}

.fc-run-btn:active {
    transform: translateY(0);
}

.fc-run-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fc-run-btn i {
    margin-right: 8px;
}

/* Results */
.fc-results {
    display: none;
}

.fc-results.fc-show {
    display: block;
}

.fc-results-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Big probability display */
.fc-prob-hero {
    text-align: center;
    padding: 32px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.fc-prob-ring {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    position: relative;
}

.fc-prob-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fc-prob-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 10;
}

.fc-prob-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease, stroke 0.3s;
}

.fc-prob-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fc-prob-pct {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.fc-prob-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin-top: 2px;
}

.fc-prob-verdict {
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
}

.fc-verdict-great { color: #22c55e; }
.fc-verdict-good { color: #4ade80; }
.fc-verdict-fair { color: #fbbf24; }
.fc-verdict-low { color: #f97316; }
.fc-verdict-poor { color: #ef4444; }

/* Metric cards */
.fc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.fc-metric-card {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}

.fc-metric-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
}

.fc-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.fc-metric-icon-pass {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.fc-metric-icon-days {
    background: rgba(122,149,248,0.15);
    color: #7A95F8;
}

.fc-metric-icon-bust {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.fc-metric-icon-trades {
    background: rgba(168,85,247,0.15);
    color: #a855f7;
}

.fc-metric-value {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.fc-metric-label {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.fc-metric-sub {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
}

/* Chart */
.fc-chart-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.fc-chart-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.fc-chart-container {
    position: relative;
    height: 280px;
}

/* Breakdown table */
.fc-breakdown {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.fc-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
    -webkit-overflow-scrolling: touch;
}

.fc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.fc-table thead th {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fc-table thead th:first-child {
    text-align: left;
}

.fc-table tbody td {
    padding: 10px 12px;
    text-align: center;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}

.fc-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.fc-table tbody tr:hover td {
    background: rgba(255,255,255,0.04);
}

.fc-badge-pass {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34,197,94,0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.fc-badge-fail {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239,68,68,0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Tips section */
.fc-tips {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.fc-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.fc-tip {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 16px;
}

.fc-tip-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(122,149,248,0.15);
    color: #7A95F8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.fc-tip-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fc-tip p {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

/* Explainer */
.fc-explainer {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.fc-section-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.fc-section-sub {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 16px;
}

.fc-explainer-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.fc-step {
    text-align: center;
    padding: 14px;
}

.fc-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(122,149,248,0.2);
    color: #7A95F8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.fc-step-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.fc-step p {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

/* CTA */
.fc-cta {
    text-align: center;
    padding: 24px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
}

.fc-cta-text {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

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

.fc-cta-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.fc-cta-primary {
    background: linear-gradient(100deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
}

.fc-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(122,149,248,0.3);
    color: #fff;
    text-decoration: none;
}

.fc-cta-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
}

.fc-cta-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
}

/* Loading animation */
.fc-loading {
    display: none;
    text-align: center;
    padding: 24px;
}

.fc-loading.fc-show {
    display: block;
}

.fc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #7A95F8;
    border-radius: 50%;
    animation: fc-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.fc-loading-text {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fc-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fc-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fc-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fc-metric-value {
        font-size: 18px;
    }

    .fc-tips-grid {
        grid-template-columns: 1fr;
    }

    .fc-explainer-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .fc-prob-pct {
        font-size: 34px;
    }

    .fc-prob-ring {
        width: 150px;
        height: 150px;
    }

    .fc-chart-container {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .fc-card,
    .fc-results,
    .fc-cta {
        padding: 16px;
    }

    .fc-metrics-grid {
        grid-template-columns: 1fr;
    }

    .fc-presets {
        gap: 4px;
    }

    .fc-preset {
        padding: 4px 10px;
        font-size: 11px;
    }

    .fc-cta-buttons {
        flex-direction: column;
    }

    .fc-explainer-steps {
        grid-template-columns: 1fr;
    }

    .fc-prob-ring {
        width: 130px;
        height: 130px;
    }

    .fc-prob-pct {
        font-size: 28px;
    }

    .fc-table {
        font-size: 11px;
    }

    .fc-table thead th,
    .fc-table tbody td {
        padding: 6px 8px;
    }
}
