.p2-student-dashboard {
    background:
        radial-gradient(circle at top right, rgba(233, 200, 93, .16), transparent 32%),
        linear-gradient(180deg, #eef6f5 0%, #f7faf9 100%);
    border-bottom: 1px solid #dce9e7;
}

.p2-dashboard-hero,
.p2-dashboard-guest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), transparent 45%),
        linear-gradient(120deg, #082f35, #0b5158);
    border-radius: 1.4rem;
    box-shadow: 0 18px 45px rgba(8, 47, 53, .16);
}

.p2-dashboard-welcome {
    max-width: 720px;
}

.p2-dashboard-eyebrow {
    display: inline-block;
    margin-bottom: .55rem;
    color: #e9c85d;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.p2-dashboard-hero h1,
.p2-dashboard-guest h1 {
    margin: 0 0 .65rem;
    font-size: clamp(1.65rem, 4vw, 2.55rem);
    font-weight: 800;
}

.p2-dashboard-hero p,
.p2-dashboard-guest p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.80);
}

.p2-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
    min-width: 260px;
}

.p2-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.p2-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2ecea;
    border-radius: 1.1rem;
    box-shadow: 0 10px 28px rgba(25, 62, 66, .07);
}

.p2-stat-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: #0b5158;
    background: #e7f2f1;
    border-radius: 1rem;
    font-size: 1.45rem;
}

.p2-stat-card small,
.p2-stat-card span {
    display: block;
    color: #6b7e81;
}

.p2-stat-card strong {
    display: block;
    margin: .05rem 0;
    color: #143d42;
    font-size: 1.85rem;
    line-height: 1.1;
}

.p2-dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 1rem;
    margin-top: 1rem;
}

.p2-progress-panel,
.p2-latest-panel {
    padding: 1.3rem;
    background: #fff;
    border: 1px solid #e2ecea;
    border-radius: 1.1rem;
    box-shadow: 0 10px 28px rgba(25, 62, 66, .06);
}

.p2-progress-panel .progress {
    height: .72rem;
    background: #e7efee;
    border-radius: 999px;
}

.p2-progress-panel .progress-bar {
    background: linear-gradient(90deg, #0b5158, #159286);
    border-radius: 999px;
}

.p2-progress-percent {
    color: #0b5158;
    font-size: 1.3rem;
    font-weight: 800;
}

.p2-latest-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p2-latest-label {
    color: #7a8c8f;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.p2-latest-panel strong {
    margin: .2rem 0;
    color: #173e43;
}

.p2-latest-panel small {
    color: #718488;
}

.p2-latest-panel a {
    margin-top: .65rem;
    color: #0b6b72;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .p2-dashboard-hero,
    .p2-dashboard-guest {
        align-items: flex-start;
        flex-direction: column;
    }

    .p2-dashboard-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .p2-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .p2-dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .p2-dashboard-hero,
    .p2-dashboard-guest {
        padding: 1.35rem;
        border-radius: 1.1rem;
    }

    .p2-dashboard-actions,
    .p2-dashboard-actions .btn,
    .p2-dashboard-guest .btn {
        width: 100%;
    }

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

    .p2-stat-card {
        min-height: 108px;
    }
}
