/* =========================================================
   ICHEVO GRAND FINAL NIPRO 2026
   RESULT CHECKER
   GREEN × ORANGE DESIGN
   ========================================================= */


/* =========================================================
   COLOR SYSTEM
   ========================================================= */

:root {
    --nipro-green: #159447;
    --nipro-green-dark: #087535;
    --nipro-green-light: #e8f8ee;

    --nipro-orange: #f59e0b;
    --nipro-orange-dark: #d97706;
    --nipro-orange-light: #fff4df;

    --nipro-dark: #18352a;
    --nipro-text: #30443a;
    --nipro-muted: #718078;

    --nipro-white: #ffffff;
    --nipro-soft: #f7faf8;
    --nipro-border: #e3ece6;

    --nipro-shadow:
        0 30px 80px rgba(18, 68, 42, 0.22),
        0 8px 25px rgba(245, 158, 11, 0.10);
}


/* =========================================================
   MODAL BACKDROP
   ========================================================= */

.ichevo-gf-nipro-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(21, 148, 71, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(245, 158, 11, 0.18),
            transparent 35%
        ),
        rgba(8, 30, 20, 0.78);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-sizing: border-box;

    animation: ichevo-nipro-overlay-in 0.25s ease-out;
}


/* =========================================================
   POPUP
   ========================================================= */

.ichevo-gf-nipro-popup {
    position: relative;

    width: min(720px, 100%);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    padding: 48px 48px 42px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 82%,
            #f7fcf9 100%
        );

    border-radius: 30px;

    text-align: center;

    box-sizing: border-box;

    box-shadow: var(--nipro-shadow);

    border: 1px solid rgba(21, 148, 71, 0.12);

    animation: ichevo-nipro-popup-in 0.35s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   TOP ACCENT
   ========================================================= */

.ichevo-gf-nipro-popup::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 7px;

    border-radius: 30px 30px 0 0;

    background:
        linear-gradient(
            90deg,
            var(--nipro-green) 0%,
            #39b86a 45%,
            var(--nipro-orange) 100%
        );
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.ichevo-gf-nipro-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #edf6f0;

    color: var(--nipro-green-dark);

    font-size: 26px;
    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.ichevo-gf-nipro-close:hover {
    transform: rotate(90deg);

    background: var(--nipro-orange-light);

    color: var(--nipro-orange-dark);
}


/* =========================================================
   CONTENT
   ========================================================= */

.ichevo-gf-nipro-content {
    width: 100%;
    margin: 0 auto;
}


/* =========================================================
   RESULT ICON
   ========================================================= */

.ichevo-gf-nipro-icon {
    width: 94px;
    height: 94px;

    margin: 8px auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 48px;
    font-weight: 900;

    line-height: 1;

    box-sizing: border-box;

    position: relative;
}


/* =========================================================
   ICON DECORATION
   ========================================================= */

.ichevo-gf-nipro-icon::after {
    content: "";

    position: absolute;

    inset: -7px;

    border-radius: 50%;

    border: 2px dashed currentColor;

    opacity: 0.22;

    animation: ichevo-nipro-icon-ring 8s linear infinite;
}


/* =========================================================
   SUCCESS ICON
   ========================================================= */

.ichevo-gf-nipro-icon.success {
    background:
        linear-gradient(
            145deg,
            #e3f8eb,
            #c9f0d8
        );

    color: var(--nipro-green);

    box-shadow:
        0 10px 30px rgba(21, 148, 71, 0.18);
}


/* =========================================================
   WAITING ICON
   ========================================================= */

.ichevo-gf-nipro-icon.waiting {
    background:
        linear-gradient(
            145deg,
            #fff5dc,
            #ffe7b0
        );

    color: var(--nipro-orange-dark);

    box-shadow:
        0 10px 30px rgba(245, 158, 11, 0.20);
}


/* =========================================================
   FAILED / ERROR ICON
   ========================================================= */

.ichevo-gf-nipro-icon.failed {
    background:
        linear-gradient(
            145deg,
            #f3f6f4,
            #e7ece9
        );

    color: #68776f;

    box-shadow:
        0 10px 30px rgba(80, 100, 90, 0.12);
}


/* =========================================================
   TITLE
   ========================================================= */

.ichevo-gf-nipro-title {
    margin: 0;

    color: var(--nipro-green-dark);

    font-size: clamp(30px, 5vw, 44px);

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -0.02em;

    text-transform: uppercase;
}


/* =========================================================
   WAITING TITLE
   ========================================================= */

.ichevo-gf-nipro-icon.waiting + .ichevo-gf-nipro-title {
    color: var(--nipro-orange-dark);
}


/* =========================================================
   FAILED TITLE
   ========================================================= */

.ichevo-gf-nipro-icon.failed + .ichevo-gf-nipro-title {
    color: var(--nipro-dark);
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.ichevo-gf-nipro-subtitle {
    margin-top: 9px;

    color: var(--nipro-orange-dark);

    font-size: clamp(17px, 2.5vw, 21px);

    font-weight: 800;

    line-height: 1.4;

    letter-spacing: 0.01em;
}


/* =========================================================
   SUCCESS SUBTITLE
   ========================================================= */

.ichevo-gf-nipro-icon.success + .ichevo-gf-nipro-title
+ .ichevo-gf-nipro-subtitle {
    color: var(--nipro-green);
}


/* =========================================================
   RESULT INFORMATION
   ========================================================= */

.ichevo-gf-nipro-info {
    position: relative;

    margin: 28px auto 0;

    padding: 22px 24px;

    max-width: 560px;

    background:
        linear-gradient(
            135deg,
            #f3faf6 0%,
            #ffffff 55%,
            #fff9ed 100%
        );

    border: 1px solid var(--nipro-border);

    border-radius: 18px;

    color: var(--nipro-text);

    font-size: 16px;

    line-height: 1.7;

    box-sizing: border-box;

    box-shadow:
        0 8px 25px rgba(21, 148, 71, 0.06);

    overflow: hidden;
}


/* =========================================================
   INFO TOP ACCENT
   ========================================================= */

.ichevo-gf-nipro-info::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            var(--nipro-green),
            var(--nipro-orange)
        );
}


/* =========================================================
   INFO STRONG
   ========================================================= */

.ichevo-gf-nipro-info strong {
    color: var(--nipro-green-dark);

    font-weight: 850;
}


/* =========================================================
   BUTTON CONTAINER
   ========================================================= */

.ichevo-gf-nipro-buttons {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    width: 100%;
    max-width: 600px;

    margin: 26px auto 0;
}


/* =========================================================
   BUTTON BASE
   ========================================================= */

.ichevo-gf-nipro-button {
    position: relative;

    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 13px 16px;

    border: 0;
    border-radius: 14px;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: 0.01em;

    overflow: hidden;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            var(--nipro-green-dark),
            var(--nipro-green)
        );

    box-shadow:
        0 7px 18px rgba(21, 148, 71, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


/* =========================================================
   BUTTON HOVER
   ========================================================= */

.ichevo-gf-nipro-button:hover {
    transform: translateY(-3px);

    filter: brightness(1.04);

    box-shadow:
        0 12px 25px rgba(21, 148, 71, 0.28);
}


/* =========================================================
   BUTTON ACTIVE
   ========================================================= */

.ichevo-gf-nipro-button:active {
    transform: translateY(-1px);
}


/* =========================================================
   BUTTON SHINE
   ========================================================= */

.ichevo-gf-nipro-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.22),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.5s ease;
}

.ichevo-gf-nipro-button:hover::before {
    left: 140%;
}


/* =========================================================
   BUTTON 2 - ORANGE
   ========================================================= */

.ichevo-gf-nipro-button:nth-child(2) {
    background:
        linear-gradient(
            135deg,
            var(--nipro-orange-dark),
            var(--nipro-orange)
        );

    box-shadow:
        0 7px 18px rgba(245, 158, 11, 0.24);
}

.ichevo-gf-nipro-button:nth-child(2):hover {
    box-shadow:
        0 12px 25px rgba(245, 158, 11, 0.30);
}


/* =========================================================
   BUTTON 3
   ========================================================= */

.ichevo-gf-nipro-button:nth-child(3) {
    background:
        linear-gradient(
            135deg,
            #0b8c58,
            #18aa68
        );
}


/* =========================================================
   LOADING OVERLAY
   ========================================================= */

.ichevo-gf-nipro-loading {
    position: fixed;
    inset: 0;

    z-index: 1000000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 24px;

    box-sizing: border-box;

    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(21, 148, 71, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(245, 158, 11, 0.14),
            transparent 35%
        ),
        rgba(8, 30, 20, 0.78);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.ichevo-gf-nipro-loading.active {
    display: flex;
}


/* =========================================================
   LOADING BOX
   ========================================================= */

.ichevo-gf-nipro-loading-box {
    position: relative;

    width: min(390px, 100%);

    padding: 42px 32px 36px;

    background: #ffffff;

    border-radius: 26px;

    text-align: center;

    box-sizing: border-box;

    border: 1px solid rgba(21, 148, 71, 0.12);

    box-shadow: var(--nipro-shadow);

    overflow: hidden;

    animation: ichevo-nipro-popup-in 0.3s ease-out;
}


.ichevo-gf-nipro-loading-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 6px;

    background:
        linear-gradient(
            90deg,
            var(--nipro-green),
            var(--nipro-orange)
        );
}


/* =========================================================
   SPINNER
   ========================================================= */

.ichevo-gf-nipro-spinner {
    width: 52px;
    height: 52px;

    margin: 0 auto 22px;

    border: 5px solid #e7f2eb;

    border-top-color: var(--nipro-green);

    border-right-color: var(--nipro-orange);

    border-radius: 50%;

    animation:
        ichevo-gf-nipro-spin
        0.85s linear infinite;
}


/* =========================================================
   LOADING TITLE
   ========================================================= */

.ichevo-gf-nipro-loading-title {
    color: var(--nipro-green-dark);

    font-size: 21px;

    font-weight: 900;

    letter-spacing: 0.04em;
}


/* =========================================================
   LOADING TEXT
   ========================================================= */

.ichevo-gf-nipro-loading-text {
    margin-top: 7px;

    color: var(--nipro-muted);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.ichevo-gf-nipro-popup::-webkit-scrollbar {
    width: 7px;
}

.ichevo-gf-nipro-popup::-webkit-scrollbar-track {
    background: transparent;
}

.ichevo-gf-nipro-popup::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            var(--nipro-green),
            var(--nipro-orange)
        );

    border-radius: 10px;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes ichevo-nipro-overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes ichevo-nipro-popup-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes ichevo-nipro-icon-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes ichevo-gf-nipro-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .ichevo-gf-nipro-modal {
        padding: 14px;
    }


    .ichevo-gf-nipro-popup {
        width: 100%;

        max-height: calc(100vh - 28px);

        padding: 43px 20px 28px;

        border-radius: 23px;
    }


    .ichevo-gf-nipro-popup::before {
        border-radius: 23px 23px 0 0;
    }


    .ichevo-gf-nipro-close {
        top: 13px;
        right: 13px;

        width: 38px;
        height: 38px;

        font-size: 23px;
    }


    .ichevo-gf-nipro-icon {
        width: 78px;
        height: 78px;

        margin-bottom: 18px;

        font-size: 39px;
    }


    .ichevo-gf-nipro-title {
        font-size: 30px;
    }


    .ichevo-gf-nipro-subtitle {
        margin-top: 7px;

        font-size: 16px;
    }


    .ichevo-gf-nipro-info {
        margin-top: 22px;

        padding: 19px 18px;

        border-radius: 15px;

        font-size: 14px;

        line-height: 1.65;
    }


    .ichevo-gf-nipro-buttons {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 22px;
    }


    .ichevo-gf-nipro-button {
        min-height: 51px;

        border-radius: 12px;

        font-size: 13px;
    }


    .ichevo-gf-nipro-loading {
        padding: 16px;
    }


    .ichevo-gf-nipro-loading-box {
        padding: 38px 24px 32px;

        border-radius: 22px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

    .ichevo-gf-nipro-popup {
        padding-left: 16px;
        padding-right: 16px;
    }


    .ichevo-gf-nipro-title {
        font-size: 27px;
    }


    .ichevo-gf-nipro-subtitle {
        font-size: 15px;
    }


    .ichevo-gf-nipro-info {
        font-size: 13px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.ichevo-gf-nipro-button:focus-visible,
.ichevo-gf-nipro-close:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.55);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ichevo-gf-nipro-modal,
    .ichevo-gf-nipro-popup,
    .ichevo-gf-nipro-loading-box {
        animation: none;
    }

    .ichevo-gf-nipro-icon::after,
    .ichevo-gf-nipro-spinner {
        animation: none;
    }

    .ichevo-gf-nipro-button,
    .ichevo-gf-nipro-close {
        transition: none;
    }
}