#pwa-banner {
    position: fixed;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    z-index: 300;

    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;

    background: #131920;
    border: 1px solid rgba(60, 182, 72, 0.4);
    border-radius: 14px;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.6),
        0 0 0 1px rgba(60,182,72,0.08),
        inset 0 1px 0 rgba(255,255,255,0.04);

    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;

    transition:
        transform 0.38s cubic-bezier(.34,1.56,.64,1),
        opacity 0.28s ease;
}

#pwa-banner.pwa-banner--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

[data-theme="light"] #pwa-banner {
    background: #ffffff;
    border-color: rgba(22, 163, 74, 0.35);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(22,163,74,0.06);
}

.pwa-banner__icon {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
    animation: pwa-icon-bounce 1.2s 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes pwa-icon-bounce {
    0%,100% { transform: translateY(0); }
    30%      { transform: translateY(-4px); }
    60%      { transform: translateY(-2px); }
}

.pwa-banner__body {
    flex: 1;
    min-width: 0;
}

.pwa-banner__title {
    font-size: 13px;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1.2;
    margin-bottom: 3px;
}

[data-theme="light"] .pwa-banner__title { color: #0f172a; }

.pwa-banner__sub {
    font-size: 11px;
    color: #8b949e;
    line-height: 1.4;
}

[data-theme="light"] .pwa-banner__sub { color: #64748b; }

.pwa-banner__sub strong {
    color: #c9d1d9;
    font-weight: 600;
}

[data-theme="light"] .pwa-banner__sub strong { color: #1e293b; }

.pwa-banner__share {
    font-style: normal;
    font-size: 14px;
    vertical-align: middle;
}

.pwa-banner__btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #3cb648;
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(60,182,72,0.35);
}

.pwa-banner__btn:hover {
    background: #45d454;
    box-shadow: 0 4px 14px rgba(60,182,72,0.5);
}

.pwa-banner__btn:active {
    transform: scale(0.95);
    background: #2ea043;
}

.pwa-banner__btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.pwa-banner__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    color: #8b949e;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.pwa-banner__close:hover {
    background: rgba(255,255,255,0.12);
    color: #e6edf3;
}

[data-theme="light"] .pwa-banner__close {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #64748b;
}

[data-theme="light"] .pwa-banner__close:hover {
    background: rgba(0,0,0,0.1);
    color: #0f172a;
}

@media (min-width: 601px) {
    #pwa-banner {
        bottom: 20px;
        left: auto;
        right: 20px;
        max-width: 360px;
    }
}