/* === PWA INSTALLATION UI === */

.pwa-install-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    margin: 0 auto;
}

.pwa-install-floating.active {
    transform: translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    background: var(--primary, #dc2626);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pwa-install-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pwa-install-text strong {
    font-size: 0.95rem;
    font-weight: 850;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.pwa-install-text span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.btn-pwa-action {
    background: #1e293b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pwa-action:hover {
    background: #0f172a;
    transform: scale(1.05);
}

.pwa-close {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    font-size: 0.8rem;
}

/* iOS Guide Bubble */
.ios-guide-bubble {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    width: 90%;
    max-width: 320px;
    z-index: 10000;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 20px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ios-guide-bubble.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ios-guide-content {
    font-family: inherit;
    position: relative;
}

.ios-guide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #000;
    font-weight: 850;
    font-size: 0.9rem;
}

.ios-guide-header i {
    font-size: 1.2rem;
}

.ios-guide-bubble p {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.ios-guide-bubble ol {
    margin: 0;
    padding-left: 18px;
    font-size: 0.75rem;
    color: #1e293b;
    font-weight: 600;
}

.ios-guide-bubble li {
    margin-bottom: 8px;
}

.ios-guide-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f1f5f9;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

.ios-guide-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
}

@media (max-width: 480px) {
    .pwa-install-floating {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
}
