body.kre-modal-open {
    overflow: hidden;
}
.kre-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.kre-modal.is-open {
    display: block;
}

.kre-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.kre-modal__dialog {
    position: relative;
    width: min(680px, calc(100% - 2rem));
    margin: 10vh auto 0;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(0, 255, 255, 0.22);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    overflow: hidden;
}

.kre-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.45), rgba(247, 166, 0, 0.55));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.kre-modal__header {
    padding: 1rem 1.1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kre-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f7a600;
    text-shadow: 0 0 10px rgba(247, 166, 0, 0.25);
}

.kre-modal__body {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 0.95rem 1.1rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-height: min(55vh, 520px);
    overflow: auto;
}

.kre-modal__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kre-modal__close {
    margin-left: auto;
}

.kre-modal__header,
.kre-modal__footer {
    background: rgba(0, 0, 0, 0.22);
}

.kre-error {
    margin-top: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;

    background: rgba(120, 0, 0, 0.55);
    border: 1px solid rgba(255, 90, 90, 0.65);

    color: #ffecec;
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 600;

    box-shadow:
        0 0 14px rgba(255, 90, 90, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(4px);
}

/* kisebb, inline hiba (pl. input alatt) */
.kre-error--inline {
    margin-top: 0.35rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* ikon (opcionális) */
.kre-error::before {
    content: "⚠";
    margin-right: 0.5rem;
    font-weight: 900;
}

/* modalban picit tömörebb */
.kre-modal .kre-error {
    margin-top: 0.75rem;
}

/* Mobile */
@media (max-width: 600px) {
    .kre-modal__dialog {
        width: calc(100% - 1.25rem);
        margin: 8vh auto 0;
        border-radius: 16px;
    }
    .kre-modal__body {
        max-height: 60vh;
        font-size: 0.93rem;
    }
}
