/* Modern PWA Installation Prompt Styles */
.pwa-install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333;
    padding: 24px 20px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    display: none;
}

.pwa-install-prompt.show {
    display: block;
    transform: translateY(0);
}

.pwa-install-prompt-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.pwa-install-prompt-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.8;
}

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

.pwa-install-prompt-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
    color: #1a1a1a;
}

.pwa-install-prompt-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.4;
    color: #666;
}

.pwa-install-prompt-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-prompt .btn {
    background: transparent;
    border: none;
    color: #007AFF;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.pwa-install-prompt .btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

.pwa-install-prompt .btn:active {
    transform: scale(0.95);
}

.pwa-install-prompt .btn-primary {
    background: #007AFF;
    color: white;
    font-weight: 600;
}

.pwa-install-prompt .btn-primary:hover {
    background: #0056CC;
}

.pwa-install-prompt .btn-close {
    color: #666;
    padding: 8px;
    min-width: 32px;
    justify-content: center;
    display: flex;
    align-items: center;
}

.pwa-install-prompt .btn-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pwa-install-prompt {
        padding: 20px 16px 24px 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-top: none;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    }
    
    .pwa-install-prompt-content {
        gap: 16px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .pwa-install-prompt-icon {
        font-size: 1.75rem;
        margin-top: 2px;
    }
    
    .pwa-install-prompt-text {
        flex: 1;
        min-width: 0;
    }
    
    .pwa-install-prompt-title {
        font-size: 1.0625rem;
        font-weight: 600;
        margin-bottom: 4px;
        color: #1a1a1a;
    }
    
    .pwa-install-prompt-subtitle {
        font-size: 0.8125rem;
        line-height: 1.4;
        color: #666;
        opacity: 0.8;
    }
    
    .pwa-install-prompt-actions {
        flex-direction: column;
        gap: 8px;
        min-width: 88px;
        align-items: stretch;
    }
    
    .pwa-install-prompt .btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
        font-weight: 600;
        border-radius: 10px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .pwa-install-prompt .btn-primary {
        background: #007AFF;
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
    }
    
    .pwa-install-prompt .btn-primary:hover,
    .pwa-install-prompt .btn-primary:active {
        background: #0056CC;
        transform: none;
    }
    
    .pwa-install-prompt .btn-close {
        color: #666;
        background: rgba(0, 0, 0, 0.04);
        border: none;
        padding: 8px;
        min-height: 32px;
        border-radius: 8px;
        font-size: 0.75rem;
    }
    
    .pwa-install-prompt .btn-close:hover,
    .pwa-install-prompt .btn-close:active {
        background: rgba(0, 0, 0, 0.08);
        color: #333;
    }
    
    /* Enhanced floating button for mobile */
    #pwa-install-button {
        bottom: 20px;
        right: 16px;
        padding: 12px 18px;
        font-size: 0.8125rem;
        border-radius: 14px;
        min-height: 44px;
        box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    }
    
    #pwa-install-button::before {
        font-size: 0.875rem;
    }
    
    /* Mobile modal adjustments */
    .pwa-install-modal {
        padding: 16px;
        align-items: flex-end;
    }
    
    .pwa-install-modal-content {
        padding: 28px 24px;
        border-radius: 16px;
        max-width: none;
        width: 100%;
        margin-bottom: 0;
        transform: translateY(100%);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    }
    
    .pwa-install-modal.show .pwa-install-modal-content {
        transform: translateY(0);
    }
    
    .pwa-install-modal-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .pwa-install-modal-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .pwa-install-modal-text {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }
    
    .pwa-install-modal-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .pwa-install-modal .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 48px;
    }
    
    .pwa-install-modal .btn-primary {
        order: 1;
        box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
    }
    
    .pwa-install-modal .btn-secondary {
        order: 2;
        background: rgba(0, 0, 0, 0.04);
        color: #666;
        border: none;
    }
    
    .pwa-install-modal .btn-secondary:hover,
    .pwa-install-modal .btn-secondary:active {
        background: rgba(0, 0, 0, 0.08);
    }
    
    /* Mobile installation steps */
    .pwa-install-steps {
        margin-top: 20px;
        padding: 16px;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.04);
    }
    
    .pwa-install-steps-title {
        font-size: 0.8125rem;
        margin-bottom: 12px;
    }
    
    .pwa-install-steps li {
        font-size: 0.8125rem;
        margin-bottom: 8px;
        padding-right: 28px;
    }
    
    .pwa-install-steps li::before {
        width: 18px;
        height: 18px;
        font-size: 0.6875rem;
    }
}

/* RTL support */
[dir="rtl"] .pwa-install-prompt-content {
    direction: rtl;
}

/* Enhanced Floating Install Button */
#pwa-install-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgb(150 255 98 / 31%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    display: none;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 44px;
    user-select: none;
}

#pwa-install-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
    background: #2c2c2e;
}

#pwa-install-button:active {
    transform: translateY(0) scale(0.98);
}

#pwa-install-button::before {
    /* content: "📱"; */
    font-size: 1rem;
}

/* Modern Modal Install Prompt */
.pwa-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-install-modal.show {
    display: flex;
    opacity: 1;
}

.pwa-install-modal-content {
    background: white;
    color: #333;
    padding: 32px;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pwa-install-modal.show .pwa-install-modal-content {
    transform: scale(1) translateY(0);
}

.pwa-install-modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

.pwa-install-modal-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
}

.pwa-install-modal-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #666;
    opacity: 0.9;
}

.pwa-install-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pwa-install-modal .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
    position: relative;
}

.pwa-install-modal .btn:active {
    transform: scale(0.95);
}

.pwa-install-modal .btn-primary {
    background: #007AFF;
    color: white;
}

.pwa-install-modal .btn-primary:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.pwa-install-modal .btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.pwa-install-modal .btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* Installation steps guide */
.pwa-install-steps {
    display: none;
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: right;
    direction: rtl;
}

.pwa-install-steps.show {
    display: block;
}

.pwa-install-steps-title {
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.pwa-install-steps ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.pwa-install-steps li {
    counter-increment: step-counter;
    margin-bottom: 12px;
    padding-right: 32px;
    position: relative;
    line-height: 1.4;
    font-size: 0.875rem;
    color: #666;
}

.pwa-install-steps li::before {
    content: counter(step-counter);
    position: absolute;
    right: 0;
    top: 0;
    background: #007AFF;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pwa-install-prompt {
        background: rgba(28, 28, 30, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .pwa-install-prompt-title {
        color: #fff;
    }
    
    .pwa-install-prompt-subtitle {
        color: #888;
    }
    
    .pwa-install-prompt .btn-close {
        color: #888;
    }
    
    .pwa-install-prompt .btn-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .pwa-install-modal-content {
        background: #1c1c1e;
        color: #fff;
    }
    
    .pwa-install-modal-title {
        color: #fff;
    }
    
    .pwa-install-modal-text {
        color: #888;
    }
    
    .pwa-install-modal .btn-secondary {
        background: #2c2c2e;
        color: #fff;
        border: 1px solid #48484a;
    }
    
    .pwa-install-modal .btn-secondary:hover {
        background: #48484a;
    }
    
    .pwa-install-steps {
        background: #2c2c2e;
    }
    
    .pwa-install-steps-title {
        color: #fff;
    }
    
    .pwa-install-steps li {
        color: #888;
    }
    
    /* Dark mode mobile enhancements */
    @media (max-width: 768px) {
        .pwa-install-prompt {
            background: rgba(28, 28, 30, 0.98);
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
        }
        
        .pwa-install-prompt .btn-close {
            background: rgba(255, 255, 255, 0.08);
            color: #888;
        }
        
        .pwa-install-prompt .btn-close:hover,
        .pwa-install-prompt .btn-close:active {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }
        
        .pwa-install-modal-content {
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
        }
        
        .pwa-install-modal .btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            border: none;
        }
        
        .pwa-install-modal .btn-secondary:hover,
        .pwa-install-modal .btn-secondary:active {
            background: rgba(255, 255, 255, 0.12);
        }
        
        .pwa-install-steps {
            background: rgba(255, 255, 255, 0.08);
        }
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .pwa-install-prompt,
    .pwa-install-modal,
    .pwa-install-modal-content,
    #pwa-install-button,
    .btn {
        transition: none;
    }
    
    #pwa-install-button:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .pwa-install-prompt {
        border-top: 2px solid #000;
    }
    
    .pwa-install-prompt .btn-primary {
        border: 2px solid #000;
    }
    
    #pwa-install-button {
        border: 2px solid #fff;
    }
}


body:has(.pwa-install-prompt.show){
    margin-bottom: 100px; /* Adjust based on prompt height */
}
#pwa-install-fixed-prompt{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #000;
  
     background-image: 
        repeating-linear-gradient(60deg, rgb(255 193 7 / 15%) 0, rgb(255 255 255 / 7%) 1px, transparent 1px, transparent 22px), repeating-linear-gradient(-60deg, rgb(58 255 0 / 11%) 0, rgb(238 255 0 / 15%) 1px, transparent 1px, transparent 22px), repeating-linear-gradient(0deg, rgb(22 22 22) 0, rgba(63, 63, 63, 0.2) 1px, transparent 1px, transparent 22px)
      ;
     /* background-image: 
        repeating-linear-gradient(60deg, rgb(255 193 7 / 30%) 0, rgb(242 222 51 / 14%) 1px, #ffcd070f 1px, transparent 22px), repeating-linear-gradient(-60deg, rgb(58 255 0 / 15%) 0, rgba(0, 255, 200, 0.15) 1px, #42c84f1c 1px, transparent 22px), repeating-linear-gradient(0deg, rgb(22 22 22) 0, rgb(57 57 57 / 20%) 1px, transparent 1px, transparent 22px)
      ; */
      background-size: 44px 44px;

      /* background: radial-gradient(ellipse 80% 60% at 50% 0%, rgb(151 255 98 / 26%), transparent 70%), #000000; */
}
#pwa-install-fixed-text{
    color: #fff;
    flex-direction: column;
}
#pwa-install-fixed-text span{
    font-size: 12px;
    font-weight: 500;
    color: #ededed;
}
#pwa-install-fixed-text h2{
    margin-top: 0;
    font-size: 15px;
    font-weight: 650;
    margin-bottom: 0px;
    color: #fff;
}
#pwa-install-fixed-button{
    background: #FFC107;
    border: 0;
    color: #000000;
    padding: 5px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}
#pwa-install-fixed-text_content{
    display: flex;
    align-items: center;
    gap: 8px;
}
#pwa-install-fixed-text_content svg{
    stroke: #FFC107;
    width: 33px;
    height: 33px;
    stroke-width: 1.5px;
}
