#appInstallPromptOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99996;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#appInstallPromptOverlay.show {
    opacity: 1;
    pointer-events: auto;
}

.app-install-sheet {
    width: min(100%, 520px);
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.2);
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(18px);
    transition: transform 0.25s ease;
    font-family: 'Cairo', sans-serif;
}

#appInstallPromptOverlay.show .app-install-sheet {
    transform: translateY(0);
}

.app-install-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.app-install-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff1e8;
    color: #ff5a00;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.app-install-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

.app-install-title {
    margin: 12px 0 6px;
    font-size: 19px;
    line-height: 1.35;
    color: #1f1f1f;
    font-weight: 800;
}

.app-install-subtitle {
    margin: 0;
    color: #6e6e6e;
    font-size: 13px;
    line-height: 1.7;
}

.app-install-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.app-install-download {
    flex: 1;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7b1a 0%, #ff5a00 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 14px;
    cursor: pointer;
}

.app-install-later {
    border: 1px solid #eedfd5;
    background: #fff;
    color: #6a5b50;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 14px;
    cursor: pointer;
}
