.app-update-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(110%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.app-update-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.app-update-banner__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(720px, 100%);
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0069a8 0%, #007dc5 55%, #0094e0 100%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 69, 120, 0.35), 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-update-banner__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 22px;
}

.app-update-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.app-update-banner__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.app-update-banner__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    opacity: 0.92;
}

.app-update-banner__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-update-banner__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #007dc5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-update-banner__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.app-update-banner__btn:active {
    transform: translateY(0);
}

.app-update-banner--admin {
    bottom: 16px;
    padding-bottom: 16px;
}

.app-update-banner--admin .app-update-banner__inner {
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
    .app-update-banner__inner {
        flex-wrap: wrap;
        padding: 14px;
    }

    .app-update-banner__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .app-update-banner__btn {
        width: 100%;
        text-align: center;
    }
}
