.emergency-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    animation: pulseSOS 2s infinite;
}

.emergency-btn:hover {
    transform: scale(1.06);
}

@keyframes pulseSOS {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.emergency-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(39, 27, 53, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
}

.emergency-modal-content {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #E5DFEC;
    box-shadow: 0 16px 36px rgba(74, 50, 103, 0.15);
}

.emergency-modal h2 {
    color: #ef4444;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 800;
}

.emergency-modal p {
    color: #6E5A87;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.45;
}

.emergency-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emergency-actions button {
    padding: 11px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.15s ease;
}

.emergency-call-btn {
    background: #10b981;
    color: white;
}

.emergency-message-btn {
    background: linear-gradient(135deg, #DE638A 0%, #4A3267 100%);
    color: white;
}

.emergency-alert-btn {
    background: #f59e0b;
    color: white;
}

.emergency-police-btn {
    background: #ef4444;
    color: white;
}

.emergency-close-btn {
    background: #71717a;
    color: white;
}

@media (max-width: 600px) {
    .emergency-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 12.5px;
    }
    .emergency-modal-content {
        padding: 20px 16px;
    }
}
