/* ==================================================
   BIFF3EN HUB - HOME DASHBOARD V2
   ================================================== */

.home-dashboard-v2 {
    margin-top: 28px;
}

.home-dashboard-v2[hidden] {
    display: none !important;
}

.home-dashboard-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.home-dashboard-head h2 {
    margin: 0;
}

.home-dashboard-user {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.62;
}

.home-dashboard-shell {
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.018)
        );
    padding: 20px;
}

.home-dashboard-level {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);
    gap: 18px;
    margin-bottom: 18px;
}

.home-dashboard-level-card,
.home-dashboard-profile-card {
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 15px;
    background: rgba(255,255,255,0.025);
    padding: 18px;
}

.home-dashboard-level-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.home-dashboard-level-name {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.home-dashboard-xp-total {
    font-size: 12px;
    font-weight: 850;
    opacity: 0.68;
}

.home-dashboard-xp-track {
    width: 100%;
    height: 13px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.065);
}

.home-dashboard-xp-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            rgba(126, 65, 230, 1),
            rgba(194, 142, 255, 1)
        );
    transition: width 450ms ease;
}

.home-dashboard-xp-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    font-size: 11px;
    opacity: 0.62;
}

.home-dashboard-profile-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.home-dashboard-profile-card strong {
    font-size: 18px;
}

.home-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    color: inherit;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
}

.home-dashboard-action:hover {
    border-color: rgba(180,120,255,0.45);
    transform: translateY(-1px);
}

.home-dashboard-stats {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-dashboard-stat {
    position: relative;
    min-height: 128px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.home-dashboard-stat:hover {
    border-color: rgba(174,112,255,0.34);
    transform: translateY(-1px);
}

.home-dashboard-stat-label {
    display: block;
    margin-bottom: 15px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.10em;
    opacity: 0.55;
}

.home-dashboard-stat strong {
    display: block;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.045em;
}

.home-dashboard-stat p {
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.58;
}

.home-dashboard-unread.is-active::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #bc83ff;
    box-shadow: 0 0 14px rgba(188,131,255,0.65);
}

.home-dashboard-guest {
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
}

.home-dashboard-guest h2 {
    margin: 0 0 8px;
}

.home-dashboard-guest p {
    margin: 0;
    max-width: 660px;
    line-height: 1.6;
    opacity: 0.67;
}

.home-dashboard-guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.home-dashboard-loading {
    opacity: 0.55;
}

@media (max-width: 900px) {

    .home-dashboard-level {
        grid-template-columns: 1fr;
    }

    .home-dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {

    .home-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-dashboard-shell {
        padding: 14px;
    }

    .home-dashboard-level-top,
    .home-dashboard-xp-bottom {
        flex-direction: column;
    }
}