#pwa-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99998;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ast-global-color-2);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
#pwa-banner.pwa-visible { animation: pwa-slide-up 0.35s cubic-bezier(0.34,1.26,0.64,1) both; }
@keyframes pwa-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
#pwa-banner-icon {
    border-radius: 10px;
    flex-shrink: 0;
}
#pwa-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
#pwa-banner-text strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--ast-global-color-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#pwa-banner-sub {
    font-size: 12px;
    color: var(--ast-global-color-7);
    margin-top: 1px;
}
#pwa-install-btn {
    background: linear-gradient(135deg, var(--ast-global-color-0), var(--ast-global-color-1));
    color: var(--ast-global-color-4);
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
#pwa-install-btn:hover { opacity: 0.88; }
#pwa-dismiss-btn {
    background: none;
    border: none;
    color: var(--ast-global-color-7);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background 0.15s;
}
#pwa-dismiss-btn:hover { background: rgba(255,255,255,0.08); }

#pwa-ios-sheet {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99999;
    animation: pwa-sheet-up 0.4s cubic-bezier(0.34,1.1,0.64,1) both;
}
@keyframes pwa-sheet-up {
    from { transform: translateY(110%); }
    to   { transform: translateY(0); }
}
#pwa-ios-sheet-inner {
    background: var(--ast-global-color-3);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px 36px;
}
#pwa-ios-sheet-handle {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto 18px;
}
#pwa-ios-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    flex-shrink: 0;
}
#pwa-ios-steps { display: flex; flex-direction: column; gap: 14px; }
.pwa-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.pwa-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(13,91,241,0.25);
    border: 1px solid rgba(13,91,241,0.5);
    color: var(--ast-global-color-1);
    font-size: 13px;
    font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pwa-step-body p {
    margin: 4px 0 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}
.pwa-step-body strong { color: var(--ast-global-color-4); }
.pwa-share-icon {
    width: 32px; height: 32px;
    color: var(--ast-global-color-1);
    margin-top: 8px;
    background: rgba(13,193,248,0.1);
    border: 1px solid rgba(13,193,248,0.3);
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
}
#pwa-ios-arrow {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    animation: pwa-bounce 1.4s ease-in-out infinite;
}
@keyframes pwa-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}
#pwa-ios-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: rgba(0,0,0,0.55);
    animation: pwa-fade-in 0.3s ease both;
}
@keyframes pwa-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}