/* ==========================================================================
   AIMSHOP PWA APP INSTALLER STYLES (Lightweight, High Performance)
   ========================================================================== */

/* --- Top Navbar Chic Install Button --- */
.btn-nav-pwa-install {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #f3e8ff !important;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-pwa-install:hover {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff !important;
    border-color: #ec4899;
}

.pwa-dot-pulse {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    display: inline-block;
}

/* --- PWA Install Modal Backdrop & Container --- */
.pwa-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 13, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pwa-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.pwa-modal-card {
    background: #0f1320;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid #a855f7;
    border-radius: 24px;
    padding: 30px 24px;
    width: 100%;
    max-width: 460px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.pwa-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pwa-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* --- App Hero Header in Modal --- */
.pwa-app-badge-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.pwa-icon-glowing-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
}

.pwa-app-icon-img {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
    background: #090c14;
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.pwa-app-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.pwa-app-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    max-width: 340px;
    line-height: 1.35;
}

.pwa-app-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pwa-tag-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Features List --- */
.pwa-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.pwa-feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pwa-feature-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.2;
}

/* --- Modal Device Selector Tabs --- */
.pwa-device-nav-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
}

.pwa-device-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.pwa-device-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.pwa-device-tab-btn.active {
    background: linear-gradient(135deg, #8A3FFC 0%, #6200EA 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(138, 63, 252, 0.4);
}

.pwa-inapp-alert {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 10px 14px;
    text-align: left;
    margin-bottom: 14px;
}

/* --- Device Specific Instructions Walkthrough --- */
.pwa-guide-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    animation: pwaTabFadeIn 0.25s ease-out;
}

@keyframes pwaTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pwa-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pwa-guide-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pwa-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.pwa-step-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.pwa-step-desc strong {
    color: #fff;
}

.pwa-step-desc .highlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #38bdf8;
    font-weight: 600;
}

.pwa-more-info-link {
    color: #c084fc;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 4px;
}

.pwa-more-info-link:hover {
    color: #f472b6;
    text-decoration: underline;
}

/* --- Action Buttons --- */
.btn-pwa-primary-install {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8A3FFC 0%, #ec4899 100%);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 63, 252, 0.4);
    transition: opacity 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

.btn-pwa-primary-install:hover {
    opacity: 0.92;
    color: #fff;
    transform: translateY(-1px);
}

.btn-pwa-secondary-install {
    width: 100%;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.btn-pwa-secondary-install:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
