/* SiMS PWA install modal */
.pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}

.pwa-modal.pwa-open { opacity: 1; }

.pwa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 30, 19, .48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pwa-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 28px;
    padding: 34px 28px 24px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(31, 45, 20, .38);
    transform: translateY(26px) scale(.95);
    transition: transform .38s cubic-bezier(.21, 1.02, .55, 1.01);
}

.pwa-modal.pwa-open .pwa-card { transform: translateY(0) scale(1); }

.pwa-icon-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
}

.pwa-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(149, 195, 61, .45);
    animation: pwa-float 3.4s ease-in-out infinite;
}

.pwa-badge {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #95c33d, #6f9a1e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 6px 14px rgba(111, 154, 30, .5);
    animation: pwa-pulse 2.2s infinite;
}

@keyframes pwa-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes pwa-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.pwa-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #2a2e26;
    letter-spacing: -.3px;
}

.pwa-sub {
    margin: 0 0 20px;
    color: #6f736a;
    font-size: 14.5px;
    line-height: 1.5;
}

.pwa-features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 10px;
}

.pwa-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 13px;
    background: rgba(238, 245, 221, .55);
    border: 1px solid rgba(149, 195, 61, .28);
    border-radius: 16px;
    animation: pwa-in .5s both;
}

.pwa-features li:nth-child(2) { animation-delay: .12s; }
.pwa-features li:nth-child(3) { animation-delay: .24s; }

@keyframes pwa-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.pwa-features i {
    font-size: 21px;
    color: #6f9a1e;
    background: #fff;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(111, 154, 30, .18);
}

.pwa-features b {
    display: block;
    font-size: 14px;
    color: #2a2e26;
    margin-bottom: 2px;
}

.pwa-features span {
    font-size: 12.5px;
    color: #7a7e74;
    line-height: 1.45;
    display: block;
}

.pwa-btn-install {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #95c33d, #6f9a1e);
    box-shadow: 0 10px 24px rgba(111, 154, 30, .4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.pwa-btn-install i { font-size: 20px; }

.pwa-btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(111, 154, 30, .5);
}

.pwa-btn-install:active { transform: translateY(0) scale(.98); }

.pwa-btn-later {
    display: block;
    margin: 12px auto 0;
    border: 0;
    background: none;
    color: #9aa093;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}

.pwa-btn-later:hover {
    color: #6f736a;
    background: rgba(0, 0, 0, .05);
}

.pwa-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    background: rgba(0, 0, 0, .05);
    color: #7a7e74;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.pwa-close:hover { background: rgba(0, 0, 0, .1); }

.pwa-hint {
    display: none;
    margin: 14px 0 0;
    font-size: 13px;
    color: #6f736a;
    background: rgba(238, 245, 221, .7);
    border-radius: 12px;
    padding: 10px 12px;
    line-height: 1.6;
}

.pwa-hint i { color: #6f9a1e; vertical-align: -2px; }

@media (max-width: 420px) {
    .pwa-card { padding: 26px 20px 20px; border-radius: 24px; }
    .pwa-icon-wrap { width: 84px; height: 84px; }
    .pwa-icon { width: 84px; height: 84px; }
    .pwa-card h2 { font-size: 21px; }
}
