/* ==========================================================
   RAJ MOCK TEST V2.0
   GOLDEN LIGHT PREMIUM STUDENT DASHBOARD
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c89a2e;
    --gold-dark: #9b731b;
    --gold-light: #fff5d9;
    --gold-soft: #fffbef;

    --text: #30281c;
    --muted: #817866;

    --bg: #fffaf0;
    --white: #ffffff;

    --border: #eee4cc;

    --green: #15966c;
    --orange: #df8b19;
    --blue: #3975b8;

    --shadow:
        0 10px 30px rgba(102, 78, 28, .07);

    --radius: 20px;
}


/* ==========================================================
   BODY
========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        linear-gradient(
            180deg,
            #fffdf8 0%,
            #fff9ed 100%
        );
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 100px;
}


/* ==========================================================
   HEADER
========================================================== */

.top-header {
    height: 76px;
    padding: 0 clamp(18px, 5vw, 70px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255,255,255,.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;
    z-index: 100;
}


/* ==========================================================
   BRAND
========================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 44px;
    height: 44px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    background:
        linear-gradient(
            145deg,
            #fff8df,
            #f5e4ad
        );

    border: 1px solid #ead59a;

    box-shadow:
        0 7px 18px rgba(190,145,39,.13);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
}

.brand-text span {
    color: var(--gold-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-top: 2px;
}


/* ==========================================================
   HEADER ACTIONS
========================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-btn {
    position: relative;

    width: 40px;
    height: 40px;

    border: 1px solid var(--border);

    background: #fff;

    border-radius: 12px;

    font-size: 17px;

    cursor: pointer;

    transition: .2s;
}

.notification-btn:hover {
    transform: translateY(-2px);
    border-color: #dec77e;
    box-shadow: var(--shadow);
}

.notification-btn i {
    position: absolute;

    width: 7px;
    height: 7px;

    background: #dc2626;

    border-radius: 50%;

    top: 8px;
    right: 8px;

    border: 2px solid #fff;
}


/* ==========================================================
   STUDENT
========================================================== */

.student-mini {
    display: flex;
    align-items: center;
    gap: 9px;
}

.student-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #b78920,
            #dfb84c
        );

    box-shadow:
        0 5px 15px rgba(173,129,28,.22);
}

.student-mini-info {
    display: flex;
    flex-direction: column;
}

.student-mini-info strong {
    font-size: 12px;
    font-weight: 700;
}

.student-mini-info span {
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px;
}


/* ==========================================================
   LOGOUT
========================================================== */

.logout-btn {
    border: 1px solid #f0d9dc;

    background: #fff7f7;

    color: #c53a50;

    border-radius: 11px;

    padding: 10px 13px;

    font-family: inherit;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.logout-btn:hover {
    background: #fff0f1;
    transform: translateY(-1px);
}


/* ==========================================================
   MAIN
========================================================== */

.main-container {
    width: min(1160px, 90%);
    margin: 28px auto;
}


/* ==========================================================
   HERO
========================================================== */

.hero {
    min-height: 320px;

    border-radius: 28px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 45px 55px;

    background:
        linear-gradient(
            120deg,
            #fffdf7 0%,
            #fff8e7 55%,
            #fff1c9 100%
        );

    border: 1px solid #ead9ad;

    box-shadow:
        0 16px 40px rgba(143,108,36,.09);

    margin-bottom: 20px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    right: -160px;
    top: -230px;

    background:
        rgba(218,176,62,.10);
}

.hero::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    left: -180px;
    bottom: -190px;

    background:
        rgba(214,169,47,.07);
}

.hero-pattern {
    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            rgba(183,137,32,.12) 1px,
            transparent 1px
        );

    background-size: 20px 20px;

    opacity: .35;
}


/* ==========================================================
   HERO CONTENT
========================================================== */

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 590px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border-radius: 9px;

    background: #fff;

    border: 1px solid #ead9ad;

    color: var(--gold-dark);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;

    margin-bottom: 14px;
}

.hero-badge span {
    width: 6px;
    height: 6px;

    background: #20a56f;

    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(27px, 4vw, 39px);

    line-height: 1.15;

    font-weight: 500;

    color: #403421;
}

.hero h1 strong {
    font-weight: 800;

    display: block;

    color: #9b741f;
}

.hero p {
    font-size: 12px;

    color: #796f60;

    margin-top: 10px;

    line-height: 1.6;
}


/* ==========================================================
   HERO BUTTONS
========================================================== */

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.primary-action,
.secondary-action {
    border-radius: 11px;

    padding: 11px 16px;

    font-family: inherit;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition: .2s;
}

.primary-action {
    border: none;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #b48620,
            #d4a938
        );

    box-shadow:
        0 8px 20px rgba(177,131,29,.18);
}

.primary-action:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 24px rgba(177,131,29,.25);
}

.secondary-action {
    color: #80621e;

    background: #fff;

    border: 1px solid #e4ce91;
}

.secondary-action:hover {
    background: #fff9e9;
}


/* ==========================================================
   HERO VISUAL
========================================================== */

.hero-visual {
    width: 330px;
    height: 250px;

    position: relative;
    z-index: 2;
}

.gold-orbit {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(190,145,35,.30);
}

.orbit-one {
    width: 220px;
    height: 220px;

    right: 35px;
    top: 10px;
}

.orbit-two {
    width: 150px;
    height: 150px;

    right: 70px;
    top: 45px;
}

.hero-trophy {
    position: absolute;

    width: 112px;
    height: 112px;

    border-radius: 30px;

    right: 90px;
    top: 69px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 52px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff7df
        );

    border: 1px solid #e8d394;

    box-shadow:
        0 18px 38px rgba(142,106,31,.15);
}


/* ==========================================================
   FLOATING CARDS
========================================================== */

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 11px;

    border-radius: 12px;

    background: rgba(255,255,255,.97);

    border: 1px solid #eadfca;

    color: var(--text);

    box-shadow:
        0 10px 25px rgba(88,66,27,.10);
}

.floating-card span {
    width: 27px;
    height: 27px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff5d9;

    color: #a57a1c;

    font-size: 13px;
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 9px;
}

.floating-card small {
    font-size: 7px;
    color: var(--muted);
    margin-top: 2px;
}

.floating-card-one {
    right: 0;
    top: 28px;
}

.floating-card-two {
    left: 5px;
    bottom: 18px;
}


/* ==========================================================
   STATS
========================================================== */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 38px;
}

.stat-card {
    background: #fff;

    border: 1px solid var(--border);

    border-radius: 17px;

    padding: 17px;

    display: flex;
    align-items: center;

    gap: 12px;

    box-shadow:
        0 6px 20px rgba(88,66,27,.035);

    transition: .2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);

    border-color: #e3cf98;
}

.stat-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.stat-icon.gold {
    background: #fff4d3;
}

.stat-icon.green {
    background: #e7f7ef;
}

.stat-icon.orange {
    background: #fff1dc;
}

.stat-icon.blue {
    background: #eaf3fb;
}

.stat-card div:last-child {
    display: flex;
    flex-direction: column;
}

.stat-card span {
    font-size: 8px;
    color: var(--muted);
    margin-bottom: 4px;
}

.stat-card strong {
    font-size: 17px;
    font-weight: 800;
}


/* ==========================================================
   CONTENT
========================================================== */

.content-section {
    margin-bottom: 40px;
}

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 17px;
}

.section-label {
    color: var(--gold-dark);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.section-top h2 {
    font-size: 21px;

    margin-top: 3px;

    font-weight: 800;

    color: #3d3223;
}

.section-top p {
    font-size: 10px;

    color: var(--muted);

    margin-top: 4px;
}

.exam-count {
    font-size: 9px;

    color: var(--muted);

    background: #fff;

    border: 1px solid var(--border);

    padding: 8px 11px;

    border-radius: 9px;
}

.exam-count span {
    color: var(--gold-dark);
    font-weight: 800;
}


/* ==========================================================
   SEARCH
========================================================== */

.exam-search {
    height: 51px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 14px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 15px;

    margin-bottom: 17px;

    box-shadow:
        0 5px 18px rgba(88,66,27,.035);
}

.exam-search span {
    font-size: 16px;
    opacity: .55;
}

.exam-search input {
    border: none;
    outline: none;

    background: transparent;

    width: 100%;

    font-family: inherit;

    font-size: 11px;

    color: var(--text);
}


/* ==========================================================
   EXAM GRID
========================================================== */

.exam-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px, 1fr)
        );

    gap: 14px;
}


/* ==========================================================
   EXAM CARD
========================================================== */

.exam-card {
    position: relative;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 20px;

    min-height: 175px;

    cursor: pointer;

    overflow: hidden;

    transition: .25s;

    box-shadow:
        0 6px 20px rgba(88,66,27,.035);
}

.exam-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: #fff7df;

    right: -45px;
    bottom: -50px;

    transition: .25s;
}

.exam-card:hover {
    transform: translateY(-5px);

    border-color: #dfc97f;

    box-shadow:
        0 15px 32px rgba(158,118,29,.11);
}

.exam-card:hover::after {
    transform: scale(1.35);
}

.exam-icon {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #fff8e4,
            #f8e9b9
        );

    border: 1px solid #ecdaa4;

    font-size: 23px;

    margin-bottom: 15px;

    position: relative;
    z-index: 2;
}

.exam-card h3 {
    font-size: 14px;

    font-weight: 800;

    padding-right: 20px;

    position: relative;
    z-index: 2;
}

.exam-card p {
    font-size: 9px;

    line-height: 1.5;

    color: var(--muted);

    margin-top: 5px;

    padding-right: 25px;

    position: relative;
    z-index: 2;
}

.exam-arrow {
    position: absolute;

    right: 17px;
    bottom: 17px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #fff5d9;

    color: var(--gold-dark);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;

    z-index: 3;

    transition: .2s;
}

.exam-card:hover .exam-arrow {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #b48620,
            #d4a938
        );

    transform: translateX(3px);
}


/* ==========================================================
   RECENT
========================================================== */

.recent-card {
    min-height: 105px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 15px;

    box-shadow:
        0 6px 20px rgba(88,66,27,.035);
}

.recent-left {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
}

.recent-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff4d3;

    border: 1px solid #ecd99e;

    font-size: 24px;
}

.recent-details {
    min-width: 0;
}

.recent-tag {
    color: var(--gold-dark);

    background: #fff5d9;

    border-radius: 6px;

    padding: 4px 7px;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}

.recent-details h3 {
    font-size: 14px;

    font-weight: 800;

    margin-top: 7px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.recent-details p {
    color: var(--muted);

    font-size: 9px;

    margin-top: 4px;
}

.continue-btn {
    border: none;

    background:
        linear-gradient(
            135deg,
            #b48620,
            #d4a938
        );

    color: #fff;

    padding: 11px 15px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    box-shadow:
        0 7px 18px rgba(180,134,32,.18);

    transition: .2s;
}

.continue-btn:hover {
    transform: translateY(-2px);
}


/* ==========================================================
   TEXT BUTTON
========================================================== */

.text-button {
    border: none;

    background: transparent;

    color: var(--gold-dark);

    font-family: inherit;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}

.text-button:hover {
    text-decoration: underline;
}


/* ==========================================================
   PREMIUM
========================================================== */

.premium-card {
    position: relative;

    overflow: hidden;

    min-height: 190px;

    border-radius: 25px;

    padding: 30px 35px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    background:
        linear-gradient(
            120deg,
            #fffdf8,
            #fff7e1
        );

    border: 1px solid #e7d29a;

    color: var(--text);

    margin-bottom: 40px;

    box-shadow:
        0 12px 35px rgba(126,94,26,.07);
}

.premium-decoration {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    right: -100px;
    top: -145px;

    background:
        rgba(209,163,47,.10);
}

.premium-content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.premium-label {
    color: var(--gold-dark);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.4px;
}

.premium-content h2 {
    font-size: 22px;

    margin-top: 7px;

    font-weight: 800;

    color: #3c3020;
}

.premium-content p {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.6;

    max-width: 550px;

    margin-top: 6px;
}

.premium-btn {
    margin-top: 17px;

    border: none;

    background:
        linear-gradient(
            135deg,
            #b48620,
            #d5aa3e
        );

    color: #fff;

    border-radius: 10px;

    padding: 10px 14px;

    font-family: inherit;

    font-size: 9px;

    font-weight: 800;

    cursor: pointer;

    transition: .2s;
}

.premium-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(175,129,27,.20);
}

.premium-btn span {
    margin-left: 6px;
}

.premium-visual {
    position: relative;
    z-index: 2;

    margin-right: 45px;

    width: 105px;
    height: 105px;

    border-radius: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;

    background: #fff;

    border: 1px solid #e8d59f;

    box-shadow:
        0 15px 35px rgba(130,98,29,.12);
}


/* ==========================================================
   BOTTOM NAV
========================================================== */

.bottom-nav {
    position: fixed;

    bottom: 12px;
    left: 50%;

    transform: translateX(-50%);

    width: min(610px,92%);

    height: 67px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    background: rgba(255,255,255,.97);

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 12px 40px rgba(88,66,27,.13);

    backdrop-filter: blur(20px);

    z-index: 300;
}

.nav-item {
    border: none;

    background: transparent;

    font-family: inherit;

    color: #aaa194;

    cursor: pointer;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    min-width: 60px;

    transition: .2s;
}

.nav-item span {
    font-size: 18px;
    line-height: 20px;
}

.nav-item small {
    font-size: 8px;
    font-weight: 600;
}

.nav-item.active,
.nav-item:hover {
    color: var(--gold-dark);
}

.nav-item.active span {
    transform: translateY(-2px);
}


/* ==========================================================
   LOADING
========================================================== */

.loading-state {
    grid-column: 1/-1;

    min-height: 170px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color: var(--muted);

    font-size: 10px;
}

.loader {
    width: 28px;
    height: 28px;

    border: 3px solid #eee5ce;

    border-top-color: var(--gold);

    border-radius: 50%;

    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   EMPTY
========================================================== */

.empty-box {
    grid-column: 1/-1;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 40px 20px;

    text-align: center;
}

.empty-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.empty-box h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.empty-box p {
    font-size: 10px;
    color: var(--muted);
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 800px) {

    .top-header {
        height: 65px;
        padding: 0 15px;
    }

    .student-mini-info,
    .notification-btn {
        display: none;
    }

    .header-actions {
        gap: 9px;
    }

    .logout-btn {
        padding: 9px 10px;
        font-size: 9px;
    }

    .main-container {
        width: 92%;
        margin: 20px auto;
    }

    .hero {
        min-height: 360px;

        padding: 28px 23px;

        border-radius: 23px;
    }

    .hero-content {
        align-self: flex-start;
    }

    .hero h1 {
        font-size: 27px;
    }

    .hero-visual {
        position: absolute;

        right: -50px;
        bottom: -15px;

        transform: scale(.72);

        opacity: .95;
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);

        gap: 10px;

        margin-bottom: 30px;
    }

    .stat-card {
        padding: 13px;
        border-radius: 15px;
    }

    .stat-icon {
        width: 37px;
        height: 37px;
        font-size: 16px;
    }

    .stat-card strong {
        font-size: 15px;
    }

    .section-top h2 {
        font-size: 18px;
    }

    .exam-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 11px;
    }

    .exam-card {
        min-height: 155px;

        padding: 16px;

        border-radius: 17px;
    }

    .exam-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .exam-card h3 {
        font-size: 12px;
    }

    .exam-card p {
        font-size: 8px;
    }

    .recent-card {
        padding: 15px;
        border-radius: 17px;
    }

    .recent-icon {
        width: 45px;
        height: 45px;
        font-size: 21px;
    }

    .recent-details h3 {
        font-size: 12px;
    }

    .recent-details p {
        font-size: 8px;
    }

    .premium-card {
        padding: 25px 22px;

        min-height: 215px;

        border-radius: 21px;
    }

    .premium-content h2 {
        font-size: 19px;
    }

    .premium-visual {
        position: absolute;

        right: -15px;
        bottom: -20px;

        opacity: .55;

        transform: scale(.75);
    }

    .bottom-nav {
        width: 94%;

        bottom: 8px;

        height: 62px;

        border-radius: 18px;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 430px) {

    .hero {
        min-height: 340px;
    }

    .hero-actions {
        flex-direction: column;
        width: 145px;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .exam-count {
        display: none;
    }

    .recent-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .continue-btn {
        width: 100%;
    }

    .premium-card {
        min-height: 225px;
    }

    .nav-item {
        min-width: 50px;
    }

    .nav-item span {
        font-size: 17px;
    }
}