/* PWA / App install popup */

.bh-app-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bh-app-popup.is-open {
    display: flex;
}

.bh-app-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(4px);
}

.bh-app-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: bhAppPopupIn 0.28s ease;
}

@keyframes bhAppPopupIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bh-app-popup__header {
    background: linear-gradient(135deg, var(--tg-theme-primary, #0b8a3e) 0%, #047857 100%);
    padding: 24px 20px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.bh-app-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bh-app-popup__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bh-app-popup__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    margin: 0 auto 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bh-app-popup__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.bh-app-popup__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

.bh-app-popup__subtitle {
    font-size: 0.86rem;
    margin: 0;
    opacity: 0.92;
    line-height: 1.5;
}

.bh-app-popup__body {
    padding: 20px;
}

.bh-app-popup__features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.bh-app-popup__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: #374151;
    line-height: 1.45;
}

.bh-app-popup__features i {
    color: var(--tg-theme-primary, #0b8a3e);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.bh-app-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bh-app-popup__install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    background: var(--tg-theme-primary, #0b8a3e);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.bh-app-popup__install:hover {
    background: #037012;
}

.bh-app-popup__later {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 11px 18px;
    background: #fff;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.bh-app-popup__later:hover {
    background: #f9fafb;
    color: #374151;
}

.bh-app-popup__note {
    margin: 14px 0 0;
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
}

.bh-app-popup__ios {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.bh-app-popup__ios-title {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bh-app-popup__ios-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.55;
}

.bh-app-popup__ios-steps li {
    margin-bottom: 6px;
}

.bh-app-popup__ios-steps li:last-child {
    margin-bottom: 0;
}

/* Footer app install link */
.footer__app-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--tg-body-font-family);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer__app-install-btn:hover {
    background: var(--tg-theme-primary, #0b8a3e);
    border-color: var(--tg-theme-primary, #0b8a3e);
    color: #fff;
}

.footer__app-install-btn i {
    font-size: 0.9rem;
}

