.pwa-floating-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 22px;
    box-shadow: 0 20px 45px rgba(5, 56, 107, 0.22);
    border: 2px solid var(--brand-primary, #05386b);
    display: none;
    align-items: flex-start;
    gap: 16px;
    max-width: 400px;
    width: calc(100vw - 32px);
    box-sizing: border-box;
    animation: slideUpToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-floating-toast.active {
    display: flex !important;
}

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

.pwa-toast-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.pwa-toast-close:hover {
    background: #e2e8f0;
    color: var(--brand-primary, #05386b);
}

.pwa-toast-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(5, 56, 107, 0.12);
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 4px;
}

.pwa-toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 18px;
}

.pwa-toast-content h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-primary, #05386b);
    margin: 0;
    line-height: 1.3;
}

.pwa-toast-content p {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    margin: 0;
}

.btn-pwa-toast {
    margin-top: 6px;
    background: var(--brand-primary, #05386b);
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(5, 56, 107, 0.25);
    width: 100%;
}

.btn-pwa-toast:hover {
    background: var(--ruche-mauve, #df40df);
    transform: translateY(-1px);
}

.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 56, 107, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.pwa-modal-overlay.active {
    display: flex !important;
}

.pwa-modal-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(5, 56, 107, 0.3);
    border: 2px solid var(--brand-primary, #05386b);
    position: relative;
    box-sizing: border-box;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pwa-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-modal-close:hover {
    background: #e2e8f0;
    color: var(--brand-primary, #05386b);
}

.pwa-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-primary, #05386b);
    margin: 0 0 8px 0;
    padding-right: 24px;
}

.pwa-modal-desc {
    font-size: 13.5px;
    color: #475569;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.pwa-modal-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.pwa-modal-step-item {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.pwa-modal-step-num {
    background: var(--brand-primary, #05386b);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 580px) {
    .pwa-floating-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        padding: 16px;
    }
}
