* {
    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;
}

.calendar-page {
    width: 92%;
    max-width: 900px;

    margin: auto;
    padding: 35px 0 60px;
}

.calendar-card {
    padding: 25px;

    border-radius: 22px;

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

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

    backdrop-filter: blur(15px);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    text-align: center;

    margin-bottom: 30px;
}

.calendar-header h1 {
    font-size: 28px;
}

.calendar-header p {
    color: #91a8ad;
    margin-top: 5px;
}

.calendar-header button {
    width: 45px;
    height: 45px;

    border: none;
    border-radius: 12px;

    color: white;

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

    font-size: 30px;

    cursor: pointer;
}

.calendar-header button:hover {
    background: rgba(24,196,216,.2);
}

.weekdays,
.calendar-grid {
    display: grid;

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

    gap: 8px;
}

.weekdays {
    margin-bottom: 8px;
}

.weekdays span {
    text-align: center;

    color: #7cebf5;

    font-size: 12px;

    font-weight: 600;
}

.day {
    min-height: 75px;

    padding: 10px;

    border-radius: 13px;

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

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

    position: relative;

    cursor: pointer;

    transition: .2s;
}

.day:hover {
    background: rgba(255,255,255,.09);
}

.day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.day-number {
    font-size: 14px;
}

.day.today {
    border-color: #18c4d8;

    box-shadow:
        0 0 15px rgba(24,196,216,.15);
}

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

    border-color:
        rgba(24,196,216,.4);
}

.completed-mark {
    position: absolute;

    right: 8px;
    bottom: 7px;

    font-size: 16px;
}

.legend {
    display: flex;
    gap: 20px;

    margin-top: 25px;

    color: #91a8ad;

    font-size: 13px;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend i {
    width: 10px;
    height: 10px;

    display: inline-block;

    border-radius: 50%;
}

.completed-dot {
    background: #18c4d8;
}

.today-dot {
    border: 2px solid #18c4d8;
}

@media (max-width: 600px) {

    .topbar {
        padding: 0 4%;
    }

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

    .profile-mini span {
        display: none;
    }

    .calendar-page {
        width: 95%;
        padding-top: 20px;
    }

    .calendar-card {
        padding: 15px;
    }

    .calendar-header h1 {
        font-size: 21px;
    }

    .calendar-header button {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .weekdays,
    .calendar-grid {
        gap: 4px;
    }

    .day {
        min-height: 55px;
        padding: 7px;
    }

    .day-number {
        font-size: 12px;
    }

    .completed-mark {
        font-size: 12px;
        right: 5px;
        bottom: 4px;
    }

}
/* ======================================
   SEASONAL RANK PROGRESS CARD
====================================== */

.rank-progress-card {
    min-width: 260px;
}

.rank-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.rank-season-mini {
    text-align: right;
}

.rank-season-mini small {
    display: block;

    color: rgba(255,255,255,.42);

    font-size: 8px;
    letter-spacing: 1px;
}

.rank-season-mini b {
    display: block;

    margin-top: 4px;

    color: #7cebf5;

    font-size: 10px;
}

.rank-progress-info {
    display: flex;
    justify-content: space-between;

    margin-top: 16px;

    color: rgba(255,255,255,.62);

    font-size: 9px;
}

.rank-progress-track {
    width: 100%;
    height: 6px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: 999px;

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

.rank-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #22d3ee,
            #6366f1
        );

    box-shadow:
        0 0 10px
        rgba(34,211,238,.3);

    transition:
        width .6s ease;
}

.rank-needed {
    display: block;

    margin-top: 7px;

    color: rgba(255,255,255,.40);

    font-size: 8px;
}


/* MOBILE */

@media (max-width: 700px) {

    .rank-progress-card {
        width: 100%;
        min-width: 0;
    }

}