/* =========================================================
   ICHEVO GRANDFINAL DEVICE 2026
   RESULT CHECKER
   ========================================================= */

:root {
    --ichevo-green: #16834b;
    --ichevo-green-dark: #0f693c;
    --ichevo-green-light: #35b878;

    --ichevo-orange: #f2a900;
    --ichevo-orange-dark: #d98f00;
    --ichevo-orange-light: #fff4d6;

    --ichevo-text: #222222;
    --ichevo-muted: #6f6f6f;
    --ichevo-border: #e7e7e7;
    --ichevo-bg: #f7f8f7;
    --ichevo-white: #ffffff;

    --ichevo-radius: 18px;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.ichevo-gfd-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 30, 22, 0.68);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    animation: ichevoGfdFadeIn 0.22s ease;
}


/* =========================================================
   MODAL
   ========================================================= */

.ichevo-gfd-modal {
    position: relative;

    width: 100%;
    max-width: 620px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;
    overflow-x: hidden;

    padding: 38px 38px 34px;

    background: var(--ichevo-white);

    border-radius: var(--ichevo-radius);

    border-top: 7px solid var(--ichevo-green);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.22),
        0 8px 25px rgba(0, 0, 0, 0.08);

    text-align: center;

    animation: ichevoGfdModalIn 0.28s ease;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.ichevo-gfd-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #f2f2f2;

    color: #555;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.ichevo-gfd-close:hover {
    background: var(--ichevo-orange);
    color: #fff;

    transform: rotate(90deg);
}


/* =========================================================
   ICON
   ========================================================= */

.ichevo-gfd-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 38px;
    font-weight: 800;

    border: 5px solid rgba(22, 131, 75, 0.12);

    box-sizing: border-box;
}


/* SUCCESS */

.ichevo-gfd-icon.success {
    background: #e9f8ef;

    color: var(--ichevo-green);

    border-color: #ccebd9;
}


/* WAITING */

.ichevo-gfd-icon.waiting {
    background: #fff7df;

    color: var(--ichevo-orange);

    border-color: #f9e6a9;
}


/* ERROR */

.ichevo-gfd-icon.error {
    background: #fff0ed;

    color: #d84b35;

    border-color: #f5cec7;
}


/* =========================================================
   TITLE
   ========================================================= */

.ichevo-gfd-modal h2 {
    margin: 0 0 8px;

    color: var(--ichevo-green);

    font-size: 30px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.4px;
}


/* WAITING TITLE */

.ichevo-gfd-modal .ichevo-gfd-icon.waiting + h2 {
    color: var(--ichevo-orange-dark);
}


/* ERROR TITLE */

.ichevo-gfd-modal .ichevo-gfd-icon.error + h2 {
    color: #c83f2d;
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.ichevo-gfd-subtitle {
    margin: 0 0 26px;

    color: var(--ichevo-muted);

    font-size: 16px;
    font-weight: 600;

    line-height: 1.5;
}


/* =========================================================
   TEAM INFORMATION
   ========================================================= */

.ichevo-gfd-info {
    margin: 0 0 25px;

    padding: 20px;

    background: var(--ichevo-bg);

    border: 1px solid var(--ichevo-border);

    border-left: 5px solid var(--ichevo-green);

    border-radius: 12px;

    text-align: left;
}


/* =========================================================
   INFORMATION ITEM
   ========================================================= */

.ichevo-gfd-info-item {
    margin-bottom: 16px;
}

.ichevo-gfd-info-item:last-child {
    margin-bottom: 0;
}


/* LABEL */

.ichevo-gfd-team-label {
    display: block;

    margin-bottom: 5px;

    color: var(--ichevo-green);

    font-size: 11px;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


/* VALUE */

.ichevo-gfd-team-name {
    display: block;

    color: var(--ichevo-text);

    font-size: 15px;
    font-weight: 600;

    line-height: 1.55;

    word-break: break-word;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.ichevo-gfd-message {
    margin: 0 0 20px;

    color: var(--ichevo-text);

    font-size: 15px;
    line-height: 1.7;

    text-align: center;
}

.ichevo-gfd-message strong {
    color: var(--ichevo-green);

    font-weight: 800;
}


/* =========================================================
   DEADLINE
   ========================================================= */

.ichevo-gfd-deadline {
    margin: 20px 0 25px;

    padding: 14px 18px;

    background: var(--ichevo-orange-light);

    border: 1px solid #f4dda0;

    border-radius: 10px;

    color: #714f00;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;

    text-align: center;
}

.ichevo-gfd-deadline strong {
    color: var(--ichevo-orange-dark);
}


/* =========================================================
   BUTTON CONTAINER
   ========================================================= */

.ichevo-gfd-modal-buttons {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-top: 22px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.ichevo-gfd-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 18px;

    border-radius: 9px;

    background: var(--ichevo-green);

    color: #fff !important;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none !important;

    border: 2px solid var(--ichevo-green);

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ichevo-gfd-button:hover {
    background: var(--ichevo-green-dark);

    border-color: var(--ichevo-green-dark);

    color: #fff !important;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(22, 131, 75, 0.2);
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.ichevo-gfd-button.secondary {
    background: #fff;

    color: var(--ichevo-green) !important;

    border-color: var(--ichevo-green);
}

.ichevo-gfd-button.secondary:hover {
    background: #edf8f2;

    color: var(--ichevo-green-dark) !important;
}


/* =========================================================
   ORANGE BUTTON
   ========================================================= */

.ichevo-gfd-button.orange {
    background: var(--ichevo-orange);

    border-color: var(--ichevo-orange);

    color: #fff !important;
}

.ichevo-gfd-button.orange:hover {
    background: var(--ichevo-orange-dark);

    border-color: var(--ichevo-orange-dark);

    color: #fff !important;
}


/* =========================================================
   LOADING OVERLAY
   ========================================================= */

.ichevo-gfd-loading-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 30, 22, 0.68);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    animation: ichevoGfdFadeIn 0.18s ease;
}


/* =========================================================
   LOADING BOX
   ========================================================= */

.ichevo-gfd-loading {
    width: 100%;
    max-width: 360px;

    padding: 34px 28px;

    background: #fff;

    border-radius: 18px;

    border-top: 6px solid var(--ichevo-green);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.2);

    text-align: center;
}


/* =========================================================
   SPINNER
   ========================================================= */

.ichevo-gfd-spinner {
    width: 52px;
    height: 52px;

    margin: 0 auto 20px;

    border: 5px solid #dcefe5;

    border-top-color: var(--ichevo-green);

    border-right-color: var(--ichevo-orange);

    border-radius: 50%;

    animation: ichevoGfdSpin 0.85s linear infinite;
}


/* =========================================================
   LOADING TITLE
   ========================================================= */

.ichevo-gfd-loading-title {
    margin: 0 0 7px;

    color: var(--ichevo-green);

    font-size: 20px;
    font-weight: 800;
}


/* =========================================================
   LOADING TEXT
   ========================================================= */

.ichevo-gfd-loading-text {
    margin: 0;

    color: var(--ichevo-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.ichevo-gfd-modal::-webkit-scrollbar {
    width: 7px;
}

.ichevo-gfd-modal::-webkit-scrollbar-track {
    background: transparent;
}

.ichevo-gfd-modal::-webkit-scrollbar-thumb {
    background: #cfd8d3;

    border-radius: 20px;
}

.ichevo-gfd-modal::-webkit-scrollbar-thumb:hover {
    background: var(--ichevo-green);
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes ichevoGfdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes ichevoGfdModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes ichevoGfdSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 700px) {

    .ichevo-gfd-overlay {
        padding: 14px;
    }

    .ichevo-gfd-modal {
        max-height: calc(100vh - 28px);

        padding: 32px 24px 27px;

        border-top-width: 6px;
    }

    .ichevo-gfd-icon {
        width: 68px;
        height: 68px;

        margin-bottom: 15px;

        font-size: 33px;
    }

    .ichevo-gfd-modal h2 {
        font-size: 26px;
    }

    .ichevo-gfd-subtitle {
        font-size: 15px;

        margin-bottom: 22px;
    }

    .ichevo-gfd-info {
        padding: 17px;

        margin-bottom: 22px;
    }

    .ichevo-gfd-team-name {
        font-size: 14px;
    }

    .ichevo-gfd-message {
        font-size: 14px;
    }

    .ichevo-gfd-button {
        flex: 1 1 calc(50% - 10px);

        min-width: 150px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .ichevo-gfd-overlay {
        padding: 10px;
    }

    .ichevo-gfd-modal {
        max-height: calc(100vh - 20px);

        padding: 30px 18px 22px;

        border-radius: 15px;
    }

    .ichevo-gfd-close {
        top: 10px;
        right: 10px;

        width: 32px;
        height: 32px;

        font-size: 19px;
    }

    .ichevo-gfd-icon {
        width: 62px;
        height: 62px;

        border-width: 4px;

        font-size: 30px;
    }

    .ichevo-gfd-modal h2 {
        font-size: 23px;
    }

    .ichevo-gfd-subtitle {
        font-size: 14px;

        margin-bottom: 19px;
    }

    .ichevo-gfd-info {
        padding: 15px;

        border-left-width: 4px;
    }

    .ichevo-gfd-info-item {
        margin-bottom: 13px;
    }

    .ichevo-gfd-team-label {
        font-size: 10px;
    }

    .ichevo-gfd-team-name {
        font-size: 13px;

        line-height: 1.5;
    }

    .ichevo-gfd-message {
        font-size: 13px;

        line-height: 1.65;
    }

    .ichevo-gfd-deadline {
        padding: 12px 14px;

        font-size: 12px;
    }

    .ichevo-gfd-modal-buttons {
        flex-direction: column;

        gap: 8px;

        margin-top: 18px;
    }

    .ichevo-gfd-button {
        width: 100%;

        min-height: 45px;

        flex: none;

        font-size: 13px;
    }

    .ichevo-gfd-loading {
        max-width: 320px;

        padding: 30px 22px;
    }
}


/* =========================================================
   VERY SMALL SCREEN
   ========================================================= */

@media (max-width: 360px) {

    .ichevo-gfd-modal {
        padding-left: 15px;
        padding-right: 15px;
    }

    .ichevo-gfd-modal h2 {
        font-size: 21px;
    }

    .ichevo-gfd-info {
        padding: 13px;
    }

    .ichevo-gfd-team-name {
        font-size: 12px;
    }

    .ichevo-gfd-message {
        font-size: 12px;
    }
}