.system-msg-banner {
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.system-msg-banner.system-msg-info,
.system-msg-banner.system-msg-info a {
    background-color: #e7f3fe;
    color: #0c5460;
}
.system-msg-banner.system-msg-warning,
.system-msg-banner.system-msg-warning a {
    background-color: #fff3cd;
    color: #856404;
}
.system-msg-banner.system-msg-critical,
.system-msg-banner.system-msg-critical a {
    background-color: #f8d7da;
    color: #721c24;
}

/* MODAL */

.system-msg-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.system-msg-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px 24px;
    border-radius: 4px;
    max-width: 600px;
    position: relative;
}

.system-msg-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    font-size: 20px;
}

body.system-msg-modal-open {
    overflow: hidden;
}

/* === SYSTEM MESSAGE (banner + modal) - styl jak BETA POPUP === */

.system-msg-banner {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

/* MODAL overlay – jak beta popup */
.system-msg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);

    /* centrowanie jak w beta-popup */
    align-items: center;
    justify-content: center;

    /* ma działać zarówno gdy ustawiasz display:block z JS,
       jak i jeśli kiedyś przejdziesz na flex */
}

/* Gdy JS ustawia display:block, to flex nie zadziała.
   Dlatego wymuszamy flex przez klasę pomocniczą na samym elemencie. */
.system-msg-modal[style*="display: block"] {
    display: flex !important;
}

/* Content – jak beta popup */
.system-msg-modal-content {
    background: #fff;
    width: calc(100% - 32px);
    max-width: 460px;
    padding: 32px 28px;
    border-radius: 20px;
    text-align: center;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: systemMsgFadeIn 0.35s ease;

    position: relative;
    margin: 0; /* kasuje stare "margin: 10% auto" */
}

/* Typografia w środku */
.system-msg-modal-content h1,
.system-msg-modal-content h2,
.system-msg-modal-content h3 {
    margin: 6px 0 12px;
    text-transform: uppercase;
}

.system-msg-modal-content p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px;
    color: #333;
}

/* Jeśli w modalu pojawia się obrazek/logo – nadaj mu beta-look */
.system-msg-modal-content img {
    display: block;
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px;
}

/* Przycisk w modalu – pod Twoje .btn-orange (jeśli używasz) */
.system-msg-modal-content .btn-orange,
.system-msg-modal-content button.btn-orange,
.system-msg-modal-content a.btn-orange {
    margin-top: 8px;
}

/* Close – bardziej "chipowe", spójne z rounded UI */
.system-msg-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;

    width: 34px;
    height: 34px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #111;

    background: rgba(0,0,0,.06);
    transition: background .15s ease, transform .15s ease;
}

.system-msg-modal-close:hover {
    background: rgba(0,0,0,.10);
    transform: scale(1.03);
}

.system-msg-modal-content strong,
.system-msg-banner strong {
    font-weight: 700;
}

/* Logo w modalu systemowym */
.system-msg-modal-logo {
    display: block;
    max-width: 220px;
    height: auto;
    margin: 0 auto 20px;
}

/* Delikatnie oddziel logo od reszty treści */
.system-msg-modal-content h3 {
    margin-top: 0;
}

/* blokada scrolla – zostaje jak masz */
body.system-msg-modal-open {
    overflow: hidden;
}

@keyframes systemMsgFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-msg-modal-content { animation: none; }
    .system-msg-modal-close { transition: none; }
}

@media (max-width: 575.98px) {
    .system-msg-banner {
        font-size: 11px;
        padding: 6px 12px;
        line-height: 1.3;
    }
}