* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: white;

    background:
        radial-gradient(
            circle at 10% 10%,
            #0c5966,
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #06151b,
            #082d36,
            #06151b
        );
}

.topbar {
    height: 75px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);

    backdrop-filter: blur(15px);
}

.back-btn {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: white;
    text-decoration: none;

    background: rgba(255,255,255,.07);

    font-size: 22px;
}

.topbar h2 {
    font-size: 20px;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #0c6b78,
            #18c4d8
        );

    font-weight: bold;
}

.stats-page {
    width: 92%;
    max-width: 1000px;

    margin: auto;

    padding: 35px 0 60px;
}

.hero {
    margin-bottom: 30px;
}

.hero p {
    color: #7cebf5;

    font-size: 12px;

    letter-spacing: 1px;

    font-weight: 600;
}

.hero h1 {
    font-size: 38px;

    margin: 6px 0;
}

.hero span {
    color: #91a8ad;
}


/* =========================
   STATS GRID
========================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 20px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.08);

    backdrop-filter: blur(12px);
}

.stat-card > span {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        rgba(24,196,216,.12);

    font-size: 24px;
}

.stat-card small {
    color: #91a8ad;

    font-size: 12px;
}

.stat-card h2 {
    margin-top: 5px;

    font-size: 20px;
}


/* =========================
   PANELS
========================= */

.panel {
    padding: 24px;

    margin-top: 16px;

    border-radius: 20px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid rgba(255,255,255,.08);

    backdrop-filter: blur(12px);
}

.panel-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.panel-heading small {
    color: #7cebf5;

    font-size: 11px;

    letter-spacing: 1px;
}

.panel-heading h2 {
    margin-top: 5px;
}

.panel-heading strong {
    color: #7cebf5;

    font-size: 22px;
}


/* =========================
   PROGRESS
========================= */

.progress-bar {
    width: 100%;

    height: 10px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255,255,255,.1);
}

.progress-fill {
    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #0c6b78,
            #18c4d8
        );

    transition:
        width .6s ease;
}

.panel > p {
    margin-top: 12px;

    color: #91a8ad;

    font-size: 13px;
}


/* =========================
   MONTHLY CHART
========================= */

.monthly-chart {
    min-height: 190px;

    display: flex;

    align-items: flex-end;

    gap: 8px;

    padding-top: 20px;
}

.chart-bar {
    flex: 1;

    min-width: 5px;

    height: 10px;

    border-radius: 8px 8px 3px 3px;

    background:
        linear-gradient(
            180deg,
            #18c4d8,
            #0c6b78
        );

    transition:
        height .5s ease;
}

.chart-bar:hover {
    opacity: .8;
}


/* =========================
   GOOD / BAD
========================= */

.breakdown {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}

.breakdown-card {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 17px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid rgba(255,255,255,.07);
}

.breakdown-card > span {
    font-size: 28px;
}

.breakdown-card small {
    color: #91a8ad;

    font-size: 12px;
}

.breakdown-card h2 {
    margin-top: 5px;
}

.breakdown-card.good {
    border-color:
        rgba(50,220,150,.2);
}

.breakdown-card.bad {
    border-color:
        rgba(255,150,80,.2);
}


/* =========================
   MOTIVATION
========================= */

.motivation {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 25px;

    padding: 20px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.05);

    border:
        1px solid rgba(255,255,255,.08);
}

.motivation > span {
    font-size: 30px;
}

.motivation p {
    color: #91a8ad;

    font-size: 13px;

    margin-top: 4px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

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

}

@media (max-width: 600px) {

    .topbar {
        padding: 0 4%;
    }

    .topbar h2 {
        font-size: 17px;
    }

    .profile-mini span {
        display: none;
    }

    .stats-page {
        width: 94%;

        padding-top: 25px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .stat-card {
        padding: 15px;

        gap: 10px;
    }

    .stat-card > span {
        width: 40px;
        height: 40px;

        font-size: 19px;
    }

    .stat-card h2 {
        font-size: 17px;
    }

    .panel {
        padding: 18px;
    }

    .breakdown {
        grid-template-columns: 1fr;
    }

}