.flatmate-student-dashboard-page {
    background: #f5f8fb;
    padding: 32px 0px;
    min-height: 80vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.flatmate-student-dashboard-container {
    max-width: 1180px;
    margin: 0 auto;
}

.flatmate-student-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
}

.flatmate-student-profile-card,
.flatmate-student-nav,
.flatmate-student-main,
.flatmate-student-stat {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.flatmate-student-profile-card {
    padding: 24px;
    margin-bottom: 18px;
    text-align: center;
}

.flatmate-student-profile-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.flatmate-student-profile-card p {
    margin: 0;
}

.flatmate-student-verify-badge {
    display: inline-block;
    margin: 10px 0 16px;
    padding: 7px 14px;
    background: #e8f7ee;
    color: #198754 !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.flatmate-student-profile-line {
    margin: 8px 0;
    color: #667085 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.flatmate-student-nav {
    padding: 10px;
}

.flatmate-student-nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
    color: #475467;
    text-decoration: none !important;
    font-weight: 700;
}

.flatmate-student-nav a.is-active,
.flatmate-student-nav a:hover {
    background: #f8eaea;
    color: #c92b2b;
}

.flatmate-student-main {
    padding: 30px;
}

.flatmate-student-hero {
    background: #eef3f8;
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 24px;
}

.flatmate-student-hero h1 {
    margin: 0 0 10px;
    font-size: 38px;
    color: #1f2933;
}

.flatmate-student-hero p {
    margin: 0;
    color: #667085;
}

.flatmate-student-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.flatmate-student-stat {
    padding: 22px;
}

.flatmate-student-stat span {
    display: block;
    color: #667085;
    font-weight: 700;
    margin-bottom: 8px;
}

.flatmate-student-stat strong {
    color: #c92b2b;
    font-size: 34px;
    font-weight: 900;
}

.flatmate-student-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.flatmate-student-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #fff;
    color: #c92b2b !important;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(16,24,40,.08);
    transition: all .25s ease;
}

.flatmate-student-actions a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16,24,40,.12);
}

@media (max-width: 900px) {
    .flatmate-student-layout {
        grid-template-columns: 1fr;
    }

    .flatmate-student-stats,
    .flatmate-student-actions {
        grid-template-columns: 1fr;
    }
}

.flatmate-student-avatar {
    display: block !important;
    width: 130px !important;
    height: 130px !important;
    max-width: 130px !important;
    max-height: 130px !important;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 15px;
    background: #eaf0f6;
}

.flatmate-student-avatar-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 16px;
    margin: 0 auto 15px;
    background: #eaf0f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flatmate-student-avatar-placeholder span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #c92b2b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
}

/* ==========================================
   Student Badge
========================================== */

.flatmate-student-badge-section {
    margin-top: 32px;
}

.flatmate-student-badge-card {
    background: linear-gradient(135deg,#c92b2b 0%,#9f1f1f 100%);
    border-radius: 22px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(201,43,43,.18);
}

.flatmate-badge-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 26px 30px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.flatmate-badge-brand {
    display: block;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: .9;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.flatmate-badge-top h2 {
    margin: 0;
    font-size: 30px;
    color: #fff;
}

.flatmate-badge-status {
    background: rgba(255,255,255,.18);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.flatmate-badge-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

.flatmate-badge-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.flatmate-badge-photo,
.flatmate-badge-photo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    color: #fff;
}

.flatmate-badge-left h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
}

.flatmate-badge-left p {
    margin: 5px 0;
    color: rgba(255,255,255,.85);
    font-size: 15px;
}

.flatmate-badge-right {
    text-align: center;
}

.flatmate-badge-qr-placeholder {
    width: 110px;
    height: 110px;
    background: #fff;
    color: #c92b2b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    margin: 0 auto 12px;
}

.flatmate-badge-right span {
    display: block;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.flatmate-badge-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: rgba(0,0,0,.12);
}

.flatmate-badge-footer span {
    color: rgba(255,255,255,.85);
    font-size: 14px;
}

.flatmate-badge-footer strong {
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
}

.flatmate-badge-qr-placeholder img {
    width: 90px;
    height: 90px;
    display: block;
}

@media (max-width: 768px) {

    .flatmate-badge-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .flatmate-badge-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .flatmate-badge-right {
        width: 100%;
        text-align: left;
    }

    .flatmate-badge-qr-placeholder {
        margin-left: 0;
    }

    .flatmate-badge-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Verification Status Colors */

.flatmate-student-verify-badge.pending,
.flatmate-badge-status.pending{
    background:#fff4db;
    color:#b86a00 !important;
}

.flatmate-student-verify-badge.verified,
.flatmate-badge-status.verified{
    background:#e8f7ee;
    color:#198754 !important;
}

.flatmate-student-verify-badge.rejected,
.flatmate-badge-status.rejected{
    background:#fdecec;
    color:#c92b2b !important;
}