/* ===================================================
   MISide PWA — Install Button CSS
   =================================================== */

/* Floating install button */
#pwa-install-btn {
    position: fixed;
    bottom: 1.6rem;
    right: 1.6rem;
    z-index: 8500;

    display: none;
    /* shown by JS when prompt is available */
    align-items: center;
    gap: .55rem;

    padding: .6rem 1.1rem .6rem .85rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 157, .3);
    background: rgba(6, 4, 16, .92);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 107, 157, .08);

    font-family: 'Share Tech Mono', monospace;
    font-size: .65rem;
    letter-spacing: .1em;
    color: #ede6ff;
    cursor: pointer;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);

    animation: pwaSlideIn .5s .8s cubic-bezier(.22, 1, .36, 1) both;
}

#pwa-install-btn:hover {
    border-color: rgba(255, 107, 157, .6);
    background: rgba(192, 23, 92, .18);
    color: #ffb3d1;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(192, 23, 92, .3), 0 0 0 1px rgba(255, 107, 157, .12);
}

#pwa-install-btn .pwa-icon {
    font-size: 1rem;
    line-height: 1;
}

#pwa-install-btn .pwa-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#pwa-install-btn .pwa-label-top {
    font-size: .55rem;
    letter-spacing: .18em;
    opacity: .55;
    line-height: 1;
    margin-bottom: .15rem;
}

#pwa-install-btn .pwa-label-main {
    font-size: .7rem;
    letter-spacing: .08em;
    color: #ffb3d1;
    line-height: 1;
}

/* Dismiss × button */
#pwa-dismiss {
    background: none;
    border: none;
    color: rgba(255, 107, 157, .4);
    font-size: .85rem;
    cursor: pointer;
    padding: 0 .1rem;
    margin-left: .15rem;
    line-height: 1;
    transition: color .2s;
}

#pwa-dismiss:hover {
    color: rgba(255, 107, 157, .9);
}

/* Installed toast */
#pwa-toast {
    position: fixed;
    bottom: 1.6rem;
    right: 1.6rem;
    z-index: 8500;
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, .35);
    background: rgba(6, 4, 16, .92);
    backdrop-filter: blur(16px);
    font-family: 'Share Tech Mono', monospace;
    font-size: .65rem;
    letter-spacing: .1em;
    color: #a78bfa;
    animation: pwaSlideIn .4s cubic-bezier(.22, 1, .36, 1);
}

@keyframes pwaSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}