/* =========================================
   FUTUREVERSE — ACHIEVEMENT
   PREMIUM DARK UI
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {

    --bg-main: #070b18;
    --bg-card: #10172b;
    --bg-card-2: #0d1325;

    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #22d3ee;

    --text-main: #ffffff;
    --text-soft: #aeb8d0;
    --text-muted: #707b96;

    --border: rgba(139, 92, 246, 0.20);

}


/* =========================================
   BODY
========================================= */

body {

    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(99, 102, 241, 0.14),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #080c1b 0%,
            #050812 100%
        );

}


/* =========================================
   PAGE
========================================= */

.achievement-page {

    width: min(100%, 980px);

    margin: 0 auto;

    padding: 28px 22px 60px;

}


/* =========================================
   HEADER
========================================= */

.achievement-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 24px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);

}


.achievement-brand {

    display: flex;

    align-items: center;

    gap: 14px;

}


.achievement-logo {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 23px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.28);

}


.brand-small {

    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.7px;

}


.achievement-brand h1 {

    font-size: clamp(22px, 4vw, 30px);

    font-weight: 800;

    line-height: 1.15;

}


.back-home-btn {

    min-height: 42px;

    padding: 0 17px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 11px;

    color: var(--text-soft);

    background:
        rgba(255, 255, 255, 0.035);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

}


.back-home-btn:hover {

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.07);

    border-color:
        rgba(139, 92, 246, 0.22);

}


/* =========================================
   HERO
========================================= */

.achievement-hero {

    padding:
        52px 15px
        34px;

    text-align: center;

}


.hero-label {

    display: inline-block;

    margin-bottom: 10px;

    color: var(--cyan);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.achievement-hero h2 {

    font-size:
        clamp(28px, 6vw, 46px);

    font-weight: 850;

    letter-spacing: -1px;

}


.achievement-hero p {

    max-width: 560px;

    margin: 11px auto 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.7;

}


/* =========================================
   SUMMARY
========================================= */

.achievement-summary {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 22px 24px;

    border:
        1px solid rgba(139, 92, 246, 0.20);

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(31, 23, 63, 0.72),
            rgba(13, 19, 42, 0.95)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.20);

}


.summary-icon {

    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(139, 92, 246, 0.12);

    border:
        1px solid rgba(139, 92, 246, 0.18);

    font-size: 23px;

}


.achievement-summary span {

    display: block;

    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.7px;

}


.achievement-summary strong {

    display: block;

    color: #ffffff;

    font-size: 25px;

    font-weight: 850;

}


/* =========================================
   CERTIFICATE SECTION
========================================= */

.certificate-section {

    margin-top: 34px;

}


.section-heading {

    margin-bottom: 17px;

}


.section-heading > span {

    color: var(--cyan);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.section-heading h3 {

    margin-top: 5px;

    font-size: 23px;

    font-weight: 800;

}


/* =========================================
   CERTIFICATE LIST
========================================= */

.certificate-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


/* =========================================
   CERTIFICATE CARD
========================================= */

.certificate-item {

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 18px;

    padding: 20px;

    border:
        1px solid rgba(255, 255, 255, 0.075);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(16, 23, 43, 0.96),
            rgba(9, 14, 29, 0.98)
        );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.certificate-item:hover {

    transform: translateY(-2px);

    border-color:
        rgba(139, 92, 246, 0.26);

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.22);

}


/* =========================================
   CERTIFICATE NUMBER
========================================= */

.certificate-number {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #c4b5fd;

    background:
        rgba(139, 92, 246, 0.10);

    border:
        1px solid rgba(139, 92, 246, 0.17);

    font-size: 13px;

    font-weight: 800;

}


/* =========================================
   CERTIFICATE CONTENT
========================================= */

.certificate-content span {

    display: block;

    margin-bottom: 5px;

    color: var(--cyan);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.certificate-content h4 {

    font-size: 18px;

    font-weight: 800;

}


.certificate-content p {

    margin-top: 5px;

    color: var(--text-soft);

    font-size: 12px;

    line-height: 1.5;

}


/* =========================================
   CERTIFICATE META
========================================= */

.certificate-meta {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 9px;

    flex-wrap: wrap;

}


.certificate-meta span {

    margin: 0;

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0;

}


.certificate-meta strong {

    color: #ffffff;

    font-size: 11px;

}


/* =========================================
   VIEW BUTTON
========================================= */

.view-certificate-btn {

    min-height: 43px;

    padding: 0 16px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    text-decoration: none;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(59, 130, 246, 0.17);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.view-certificate-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(59, 130, 246, 0.25);

}


/* =========================================
   EMPTY STATE
========================================= */

.achievement-empty {

    padding:
        55px 25px;

    text-align: center;

    border:
        1px dashed rgba(139, 92, 246, 0.20);

    border-radius: 20px;

    background:
        rgba(13, 19, 37, 0.60);

}


.empty-icon {

    width: 64px;
    height: 64px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        rgba(139, 92, 246, 0.09);

    border:
        1px solid rgba(139, 92, 246, 0.15);

    font-size: 27px;

}


.achievement-empty h3 {

    font-size: 20px;

    font-weight: 800;

}


.achievement-empty p {

    max-width: 420px;

    margin: 8px auto 18px;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.6;

}


.start-test-btn {

    min-height: 44px;

    padding: 0 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .achievement-page {

        padding:
            17px 14px
            40px;

    }


    .achievement-header {

        align-items: flex-start;

    }


    .achievement-logo {

        width: 43px;
        height: 43px;

        border-radius: 12px;

        font-size: 20px;

    }


    .achievement-brand {

        gap: 10px;

    }


    .achievement-brand h1 {

        font-size: 21px;

    }


    .back-home-btn {

        min-height: 38px;

        padding: 0 11px;

        font-size: 10px;

    }


    .achievement-hero {

        padding:
            39px 7px
            27px;

    }


    .achievement-hero h2 {

        font-size: 31px;

    }


    .achievement-summary {

        padding: 18px;

    }


    .certificate-item {

        grid-template-columns:
            auto 1fr;

        gap: 13px;

        padding: 17px;

    }


    .certificate-number {

        width: 43px;
        height: 43px;

        border-radius: 12px;

    }


    .certificate-content h4 {

        font-size: 16px;

    }


    .view-certificate-btn {

        grid-column: 1 / -1;

        width: 100%;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 430px) {

    .achievement-header {

        flex-direction: column;

    }


    .back-home-btn {

        width: 100%;

    }


    .achievement-hero h2 {

        font-size: 28px;

    }


    .achievement-summary {

        border-radius: 17px;

    }


    .certificate-item {

        border-radius: 16px;

    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .certificate-item,
    .view-certificate-btn {

        transition: none;

    }

}















@media (max-width: 430px) {

    .achievement-header {
        flex-direction: row;
        align-items: center;
    }

    .back-home-btn {
        width: auto;
        min-height: 40px;
        padding: 0 14px;
        font-size: 11px;
        white-space: nowrap;
    }

}