/* Install prompt banner — bottom sheet */
.install-prompt-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    justify-content: center;
    pointer-events: none;
}

.install-prompt-banner.active {
    display: flex;
}

.install-prompt-card {
    pointer-events: auto;
    background: linear-gradient(135deg, #252b4a 0%, #1a2140 100%);
    border-radius: 20px;
    padding: 16px;
    max-width: 430px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    animation: install-slide-up 0.4s ease-out;
}

@keyframes install-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.install-prompt-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.install-prompt-text {
    flex: 1;
    min-width: 0;
}

.install-prompt-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.install-prompt-subtitle {
    font-size: 12px;
    color: #8892b0;
    line-height: 1.3;
}

.install-prompt-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff3b6f, #cc2f59);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.install-prompt-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #8892b0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Safari instructions overlay */
.install-prompt-ios-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.install-prompt-ios-overlay.active {
    display: flex;
}

.install-prompt-ios-modal {
    background: linear-gradient(135deg, #252b4a 0%, #1a2140 100%);
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.install-prompt-ios-modal .install-prompt-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.install-prompt-ios-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 14px;
}

.install-prompt-ios-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3b6f, #cc2f59);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.install-prompt-ios-icon {
    display: inline-block;
    vertical-align: middle;
}

.install-prompt-ios-close {
    width: 100%;
    padding: 14px;
    border: 2px solid #3a4167;
    border-radius: 30px;
    background: transparent;
    color: #8892b0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    -webkit-tap-highlight-color: transparent;
}
