.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #EF4A3E;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #d43d31;
}

#customNewsContent {
    padding-right: 2rem;
}

#customNewsContent h1 {
    color: #EF4A3E;
    margin-bottom: 1rem;
}

#customNewsContent img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

#customNewsContent .news-meta {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

#customNewsContent .news-tags {
    margin-bottom: 1rem;
}

#customNewsContent .badge {
    background-color: #EF4A3E;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.pwa-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0 auto;
    background: #353535;
    color: #f5f5f5;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    padding: 1rem 1.25rem;
    z-index: 11000;
    display: none;
}

.pwa-install-banner hr {
        margin-block: 20px;
        border: 1px solid #6e6e6e;
    }

.pwa-install-banner .pwa-install-buttons {
        display: flex;
        justify-content: space-evenly;
        gap: 15px;
    }

.pwa-install-banner.show {
    display: block;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
}

:is(.pwa-install-text .pwa-install-logo) img {
            width: 50px;
            height: auto;
        }

.pwa-install-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 100;
    color: #EF4A3E;
}

.pwa-install-text h3 {
    margin: 0.15rem 0 0.35rem 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.pwa-install-text p {
    margin: 0;
    color: #d8d8d8;
    line-height: 1.4;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pwa-install-button {
    background: #EF4A3E;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(239, 74, 62, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pwa-install-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(239, 74, 62, 0.4);
}

.pwa-install-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pwa-install-retry {
    background: transparent;
    color: #f5f5f5;
    border: 1px dashed #EF4A3E;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pwa-install-retry:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

.pwa-install-close {
    background: transparent;
    border: 1px solid #444;
    color: #d8d8d8;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pwa-install-close:hover {
    border-color: #EF4A3E;
    color: #ffffff;
    transform: rotate(5deg);
}

.pwa-install-note {
    margin: 0.75rem 0 0;
    color: #c9c9c9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pwa-install-note .pwa-pill-wrapper {
        display: flex;
        gap: 1rem;
    }

:is(.pwa-install-note .pwa-pill-wrapper) .pwa-pill-container {
            font-size: 32px;
        }

:is(.pwa-install-note .pwa-pill-wrapper) .pwa-install-note-text {
            font-size: 11px;
        }

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    #customNewsContent {
        padding-right: 1rem;
    }


    .pwa-install-actions {
        width: 38px;
    }

    .pwa-install-button {
        width: 100%;
        text-align: center;
    }

    .pwa-install-retry {
        width: 100%;
    }

    .pwa-install-note {
        font-size: 0.95rem;
    }
}