#aghasoltan-pwa-root,
.aghasoltan-pwa-modal-wrap,
.aghasoltan-pwa-splash {
    font-family: Tahoma, Arial, sans-serif;
}

.aghasoltan-pwa-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
    direction: rtl;
}

.aghasoltan-pwa-modal-wrap.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.aghasoltan-pwa-modal-wrap.as-pwa-leave {
    opacity: 0;
}

.aghasoltan-pwa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 36, 31, .58);
    backdrop-filter: blur(8px);
}

.aghasoltan-pwa-modal {
    position: relative;
    width: min(94vw, 450px);
    margin: 0 12px 16px;
    background: #fff;
    border: 1px solid rgba(252, 153, 55, .35);
    border-radius: 30px;
    box-shadow: 0 -18px 70px rgba(0, 36, 31, .28);
    padding: 24px 20px 20px;
    color: #1b2c2a;
    transform: translateY(26px);
    transition: transform .28s ease;
    overflow: hidden;
}

.aghasoltan-pwa-modal-wrap.is-visible .aghasoltan-pwa-modal {
    transform: translateY(0);
}

.aghasoltan-pwa-modal:before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--aghasoltan-pwa-green), var(--aghasoltan-pwa-orange));
}

.aghasoltan-pwa-x {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 86, 77, .08);
    color: var(--aghasoltan-pwa-green);
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
}

.aghasoltan-pwa-logo-box {
    width: 132px;
    min-height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aghasoltan-pwa-orange);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 14px 32px rgba(252, 153, 55, .32);
}

.aghasoltan-pwa-logo-box img {
    max-width: 112px;
    max-height: 48px;
    height: auto;
    display: block;
}

.aghasoltan-pwa-modal h3 {
    margin: 8px 0 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--aghasoltan-pwa-green);
}

.aghasoltan-pwa-text {
    margin: 0 auto 14px;
    text-align: center;
    color: #465b58;
    line-height: 2;
    font-size: 14px;
}

.aghasoltan-pwa-guide {
    background: rgba(0, 86, 77, .06);
    border: 1px dashed rgba(0, 86, 77, .22);
    border-radius: 18px;
    padding: 12px 14px;
    color: #24413d;
    font-size: 13px;
    line-height: 1.9;
}

.aghasoltan-pwa-guide p,
.aghasoltan-pwa-guide ul {
    margin: 0;
}

.aghasoltan-pwa-guide ul {
    padding-right: 18px;
}

.aghasoltan-pwa-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 16px;
}

.aghasoltan-pwa-install,
.aghasoltan-pwa-later {
    border: 0;
    border-radius: 16px;
    padding: 13px 16px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
}

.aghasoltan-pwa-install {
    background: var(--aghasoltan-pwa-green);
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 86, 77, .25);
}

.aghasoltan-pwa-later {
    background: rgba(252, 153, 55, .14);
    color: #814100;
}

.as-pwa-splash-lock,
.as-pwa-splash-lock body {
    overflow: hidden !important;
}

.aghasoltan-pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aghasoltan-pwa-orange);
    direction: rtl;
    transition: opacity .36s ease, visibility .36s ease;
}

.aghasoltan-pwa-splash.is-hiding {
    opacity: 0;
    visibility: hidden;
}

.aghasoltan-pwa-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.aghasoltan-pwa-splash-inner img {
    width: min(58vw, 260px);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .18));
}

.aghasoltan-pwa-splash-inner span {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .48);
    border-top-color: var(--aghasoltan-pwa-green);
    animation: aghasoltanPwaSpin .88s linear infinite;
}

@keyframes aghasoltanPwaSpin {
    to { transform: rotate(360deg); }
}

@media (min-width: 640px) {
    .aghasoltan-pwa-modal-wrap {
        align-items: center;
    }
    .aghasoltan-pwa-modal {
        margin-bottom: 0;
    }
}
