﻿
.profit-page {
    background: #fff;
    color: #24364b;
    padding: 25px 0 45px;
}

.profit-wrap {
    width: min(1100px, calc(100% - 32px));
    margin: auto;
}

.profit-crumb {
    font-size: 12px;
    color: #8290a0;
    margin-bottom: 20px;
}

    .profit-crumb a {
        color: #2563EB;
        text-decoration: none;
        font-weight: 600;
    }

.profit-heading {
    text-align: center;
    margin-bottom: 24px;
}

    .profit-heading > span {
        color: #06B6D4;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2px;
    }

    .profit-heading h1 {
        font-size: clamp(27px, 4.5vw, 39px);
        margin: 7px 0;
        color: #1e3a5f;
    }

    .profit-heading p {
        color: #748397;
        font-size: 14px;
        margin: 0;
    }

.profit-dashboard {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 18px;
    align-items: start;
}

.profit-inputs,
.profit-visual {
    padding: 20px 23px;
    border: 1px solid #e2eaf3;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, .07);
}

    .profit-inputs h2 {
        margin: 0 0 15px;
        font-size: 19px;
        color: #1e3a5f;
    }

    .profit-inputs label {
        display: block;
        margin: 11px 0 5px;
        font-size: 12px;
        font-weight: 700;
        color: #344b65;
    }

    .profit-inputs input {
        width: 100%;
        height: 40px;
        border: 1px solid #dce6f1;
        border-radius: 8px;
        padding: 0 11px;
        font-size: 13px;
        color: #24364b;
        background: #fff;
        outline: none;
        transition: border-color .2s, box-shadow .2s;
    }

        .profit-inputs input:focus {
            border-color: #06B6D4;
            box-shadow: 0 0 0 3px rgba(6, 182, 212, .12);
        }

    .profit-inputs button {
        width: 100%;
        margin-top: 17px;
        padding: 11px;
        border: 0;
        border-radius: 8px;
        background: #2563EB;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: background .2s, transform .2s;
    }

        .profit-inputs button:hover {
            background: #06B6D4;
            transform: translateY(-1px);
        }

.profit-score {
    padding: 19px 20px;
    border-radius: 12px;
    background: linear-gradient(125deg, #1e40af, #2563EB);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .profit-score::after {
        content: "";
        position: absolute;
        width: 115px;
        height: 115px;
        right: -35px;
        bottom: -60px;
        border-radius: 50%;
        background: rgba(6, 182, 212, .25);
    }

    .profit-score span {
        font-size: 10px;
        letter-spacing: 1.4px;
        color: #dbeafe;
        font-weight: 800;
    }

    .profit-score strong {
        display: block;
        font-size: clamp(28px, 4vw, 38px);
        margin: 8px 0;
        overflow-wrap: anywhere;
        position: relative;
        z-index: 1;
    }

        .profit-score strong.loss {
            color: #ffd0d0;
        }

    .profit-score small {
        color: #dbeafe;
        font-size: 11px;
    }

.profit-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 13px 0;
}

    .profit-stats div {
        padding: 13px;
        border: 1px solid #e2eaf3;
        border-radius: 10px;
        background: #f8fbff;
    }

    .profit-stats span,
    .profit-stats b {
        display: block;
    }

    .profit-stats span {
        font-size: 11px;
        color: #71839a;
        margin-bottom: 6px;
    }

    .profit-stats b {
        font-size: 17px;
        color: #2563EB;
        overflow-wrap: anywhere;
    }

.profit-meter {
    padding: 14px;
    border-radius: 11px;
    background: #eff8fc;
}

.profit-meter-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #344b65;
}

.profit-track {
    height: 11px;
    margin: 11px 0 7px;
    background: #dceaf3;
    border-radius: 20px;
    overflow: hidden;
}

    .profit-track span {
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, #2563EB, #06B6D4);
        border-radius: 20px;
        transition: width .25s;
    }

.profit-legend {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #71839a;
}

.profit-info {
    max-width: 850px;
    margin: 25px auto 0;
    color: #65758a;
    font-size: 13px;
    line-height: 1.7;
}

    .profit-info h2 {
        color: #1e3a5f;
        font-size: 21px;
    }

/* Tablet and Mobile */
@media (max-width: 750px) {
    .profit-page {
        padding: 20px 0 35px;
    }

    .profit-crumb {
        margin-bottom: 16px;
    }

    .profit-heading {
        margin-bottom: 20px;
    }

    .profit-dashboard {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profit-inputs,
    .profit-visual {
        padding: 18px 16px;
        border-radius: 13px;
    }

        .profit-inputs h2 {
            margin-bottom: 12px;
        }

        .profit-inputs label {
            margin: 10px 0 5px;
        }

        .profit-inputs input {
            height: 42px;
        }

    .profit-score {
        padding: 17px;
    }

    .profit-stats {
        gap: 9px;
        margin: 11px 0;
    }

        .profit-stats div {
            padding: 11px;
        }

    .profit-meter {
        padding: 12px;
    }

    .profit-info {
        margin-top: 22px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .profit-wrap {
        width: calc(100% - 22px);
    }

    .profit-inputs,
    .profit-visual {
        padding: 15px 12px;
    }

    .profit-heading h1 {
        font-size: 26px;
    }

    .profit-score strong {
        font-size: 27px;
    }

    .profit-stats b {
        font-size: 15px;
    }
}
