.pwa-install-card {
    position: fixed;
    right: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(480px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(10, 14, 22, 0.95);
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    direction: rtl;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, calc(100% + 24px));
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.pwa-install-card.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(50%, 0);
}

.pwa-install-card__content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pwa-install-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-install-card__copy {
    min-width: 0;
}

.pwa-install-card__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
}

.pwa-install-card__text {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.76rem;
    line-height: 1.45;
}

.pwa-install-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.pwa-install-card__button {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.pwa-install-card__button:active {
    transform: scale(0.96);
}

.pwa-install-card__button--primary {
    background: #10b981;
    color: #03130d;
}

.pwa-install-card__button--primary:hover {
    background: #059669;
}

.pwa-install-card__button--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

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

@media (max-width: 560px) {
    .pwa-install-card {
        right: 16px;
        left: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        transform: translateY(calc(100% + 24px));
    }

    .pwa-install-card.is-visible {
        transform: translateY(0);
    }

    .pwa-install-card__actions {
        display: flex;
        width: 100%;
        gap: 8px;
    }

    .pwa-install-card__button {
        flex: 1;
        min-height: 38px;
        font-size: 0.82rem;
        padding: 0 10px;
    }
}

/* ============================================
   Light Theme Styling - الثيم الفاتح لافتة التثبيت
   ============================================ */
.light-theme .pwa-install-card,
body.light-theme .pwa-install-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important; /* Dark Slate Gray */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

.light-theme .pwa-install-card__icon,
body.light-theme .pwa-install-card__icon {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .pwa-install-card__title,
body.light-theme .pwa-install-card__title {
    color: #0f172a !important;
}

.light-theme .pwa-install-card__text,
body.light-theme .pwa-install-card__text {
    color: #475569 !important; /* Slate Gray */
}

.light-theme .pwa-install-card__button--primary,
body.light-theme .pwa-install-card__button--primary {
    background: #10b981 !important;
    color: #ffffff !important; /* Pure White */
}

.light-theme .pwa-install-card__button--primary:hover,
body.light-theme .pwa-install-card__button--primary:hover {
    background: #059669 !important;
}

.light-theme .pwa-install-card__button--ghost,
body.light-theme .pwa-install-card__button--ghost {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #475569 !important;
}

.light-theme .pwa-install-card__button--ghost:hover,
body.light-theme .pwa-install-card__button--ghost:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

/* ============================================
   Custom Premium Notification Prompt Styles
   ============================================ */
.notif-prompt-card {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(480px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid rgba(16, 185, 129, 0.25); /* Sleek neon green glow border */
    border-radius: 20px;
    background: rgba(10, 14, 22, 0.96);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.06);
    direction: rtl;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: notifSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notif-prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.notif-prompt-icon-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.notif-prompt-copy {
    min-width: 0;
}

.notif-prompt-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
}

.notif-prompt-desc {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.74rem;
    line-height: 1.4;
}

.notif-prompt-btn {
    min-height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #03130d;
    box-shadow: 0 5px 12px rgba(16, 185, 129, 0.2);
    flex: 0 0 auto;
}

.notif-prompt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.notif-prompt-btn:active {
    transform: scale(0.96);
}

/* Light Theme Styling */
body.light-theme .notif-prompt-card,
.light-theme .notif-prompt-card {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 20px rgba(16, 185, 129, 0.04);
    color: #0f172a;
}

body.light-theme .notif-prompt-title,
.light-theme .notif-prompt-title {
    color: #0f172a;
}

body.light-theme .notif-prompt-desc,
.light-theme .notif-prompt-desc {
    color: #475569;
}

body.light-theme .notif-prompt-btn,
.light-theme .notif-prompt-btn {
    color: #ffffff;
}

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

@media (max-width: 560px) {
    .notif-prompt-card {
        right: 16px;
        left: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: auto;
        padding: 12px;
        gap: 12px;
    }
}


