@font-face {
    font-family: 'gilroy-heavy-italic';
    src: url('/fonts/gilroy-heavy-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'gilroy-medium';
    src: url('/fonts/gilroy-medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    height: 100vh;
}

.popup-modal.show .modal-dialog.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 640px;
    max-width: 90%;
}

.popup-modal .modal-dialog .modal-title {
    flex-grow: 1;
    text-align: center;
    margin-left: 32px;
}

.popup-modal .modal-dialog .modal-body {
    text-align: center;
}

    .popup-modal .modal-dialog .modal-body p {
        margin: 0;
    }

.popup-modal .modal-dialog .modal-footer {
    justify-content: center;
}

    .popup-modal .modal-dialog .modal-footer button {
        min-width: 150px;
    }

.modal-info-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px);
    min-height: 58px;
    margin: 0 auto 12px;
    padding: 4px 8px;
    background: linear-gradient( 180deg, #ffffff 0%, #f3f7ff 100% );
    border: 1px solid #cfe0ff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.modal-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 9px;
}

.modal-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #1677ff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.modal-info-text {
    overflow: hidden;
    color: #333333;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-info-divider {
    width: 1px;
    height: 28px;
    margin: 0 14px;
    background: linear-gradient( 180deg, transparent, #c9d9f5, transparent );
}

.spin-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

    .spin-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #777777;
        transition: all .25s ease;
    }

        .spin-dots .dot.active {
            width: 10px;
            height: 10px;
            background: #FD0387;
        }

.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(89.17% 121.86% at 94.65% 5.94%, #505865 0%, #1F242C 66.15%, #1F242C 100%),linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    color: #EBF2FF;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

    .error-container > div {
        max-width: 85%;
        display: flex;
        flex-direction: column;
    }

        .error-container > div img {
            max-width: 281px;
            margin: auto;
        }

    .error-container h1 {
        font-weight: 700;
        font-size: 30px;
        line-height: 34px;
        text-align: center;
        margin: 35px 0 12px 0;
    }

    .error-container p {
        font-weight: 400;
        font-size: 20px;
        line-height: 23px;
        text-align: center;
        margin: 0 0 26px 0;
    }

@media (max-width: 480px) {
    .error-container {
        padding: 0 32px;
        text-align: center;
    }

    .error-container > div img {
        max-width: 87%;
    }

    .error-container h1 {
        font-size: 20px;
        line-height: 23px;
        margin: 24px 0 10px 0;
    }

    .error-container p {
        font-size: 14px;
        line-height: 16px;
        margin-bottom: 26px;
    }

    .modal-info-panel {
        width: calc(100% - 20px);
        min-height: 50px;
        margin: 0 auto 10px;
        border-radius: 11px;
    }

    .modal-info-item {
        gap: 5px;
        flex-direction: column;
    }

    .modal-info-icon {
        width: 18px;
        height: 18px;
    }

    .modal-info-text {
        font-size: 11px;
    }

    .modal-info-divider {
        height: 24px;
        margin: 0 6px;
    }
}
