/* UK Access Notice Modal */
.uk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483640;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    font-family: inherit;
    pointer-events: auto !important;
}

.uk-modal__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.uk-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.uk-modal__content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    color: #111827;
}

/* Header */
.uk-modal__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 24px 16px;
    flex-shrink: 0;
}

.uk-modal__header-icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    color: #5C6470;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F1F4F8;
    border-radius: 50%;
}

.uk-modal__header-icon svg {
    width: 38px;
    height: 38px;
}

.uk-modal__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

/* Scrollable Body */
.uk-modal__body {
    padding: 0 24px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

/* Custom Scrollbar */
.uk-modal__body::-webkit-scrollbar {
    width: 5px;
}

.uk-modal__body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.uk-modal__body::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

.uk-modal__body::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.uk-modal__lead {
    margin: 0 0 28px;
    line-height: 130%;
    font-size: 16px;
    color: #5C6470;
    text-align: center;
}

/* Alert Box */
.uk-modal__alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #FFFAEB;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 28px;
}

.uk-modal__alert-icon {
    flex-shrink: 0;
    color: #9D4A02;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uk-modal__alert-text {
    font-size: 14px;
    line-height: 130%;
    color: #9D4A02;
    font-weight: 500;
}

/* Items */
.uk-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.uk-modal__item-icon {
    flex-shrink: 0;
    color: #64748b;
    margin-top: 2px;
}

.uk-modal__item-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 16px;
    line-height: 130%;
    color: #5C6470;
}

.uk-modal__terms {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.uk-modal__terms p {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* Footer & Button */
.uk-modal__footer {
    padding: 16px 24px 24px;
    flex-shrink: 0;
    background: #ffffff;
}

.uk-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 24px;
    background-color: #272F3C;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(11, 79, 230, 0.25);
}

.uk-modal__btn:hover {
    background-color: #083fc0;
    box-shadow: 0 6px 16px rgba(11, 79, 230, 0.35);
}

.uk-modal__btn:active {
    transform: scale(0.99);
}

/* Body lock when modal is open */
body.uk-modal-locked {
    overflow: hidden !important;
    touch-action: none;
}

body.uk-modal-locked .wrapper {
    pointer-events: none !important;
    user-select: none !important;
}

#uk-access-modal,
#uk-access-modal * {
    pointer-events: auto !important;
}

@media (max-width: 480px) {
    .uk-modal {
        padding: 12px;
    }

    .uk-modal__dialog {
        max-width: 100%;
    }

    .uk-modal__content {
        border-radius: 20px;
    }

    .uk-modal__header {
        padding: 20px 18px 12px;
        gap: 10px;
    }

    .uk-modal__title {
        font-size: 19px;
    }

    .uk-modal__header-icon svg {
        width: 32px;
        height: 32px;
    }

    .uk-modal__body {
        padding: 0 18px 12px;
    }

    .uk-modal__footer {
        padding: 14px 18px 18px;
    }

    .uk-modal__btn {
        min-height: 46px;
        font-size: 15px;
    }
}
