
/* ============================================================
   Global SOS Alert Modal
   ============================================================ */
.sos-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.sos-backdrop--open { opacity: 1; pointer-events: auto; }

.sos-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.9);
    z-index: 2010;
    width: 92%;
    max-width: 560px;
    background: #0f1117;
    border: 2px solid #ef4444;
    border-radius: 20px;
    box-shadow: 0 0 0 4px rgba(239,68,68,.18), 0 24px 64px rgba(0,0,0,.7);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.sos-modal--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    animation: sosPulseGlow 1.4s ease-in-out infinite;
}

@keyframes sosPulseGlow {
    0%,100% { box-shadow: 0 0 0 4px rgba(239,68,68,.18), 0 24px 64px rgba(0,0,0,.7); }
    50%      { box-shadow: 0 0 0 14px rgba(239,68,68,.32), 0 0 80px rgba(239,68,68,.2), 0 24px 64px rgba(0,0,0,.7); }
}

.sos-modal__header {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
    padding: 22px 24px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.sos-modal__header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 14px,
        rgba(255,255,255,.04) 14px,
        rgba(255,255,255,.04) 28px
    );
    pointer-events: none;
}

.sos-modal__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(239,68,68,.22);
    border: 2px solid #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: sosIconPulse 1s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes sosIconPulse {
    0%,100% { transform: scale(1);   box-shadow: 0 0 0 0   rgba(239,68,68,.5); }
    50%      { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}
.sos-modal__icon-wrap i { font-size: 1.6rem; color: #fca5a5; }

.sos-modal__header-text { position: relative; z-index: 1; }
.sos-modal__header-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fef2f2;
    margin: 0 0 3px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sos-modal__header-sub { font-size: .82rem; color: rgba(254,242,242,.65); margin: 0; }

.sos-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: rgba(254,242,242,.7);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    z-index: 2;
    font-size: .85rem;
    padding: 0;
}
.sos-modal__close:hover { background: rgba(255,255,255,.16); color: #fff; }

.sos-modal__body { padding: 20px 24px 4px; }

.sos-detail-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sos-detail-row:last-child { border-bottom: none; }
.sos-detail-row__icon { color: #ef4444; font-size: 1rem; margin-top: 3px; flex-shrink: 0; width: 18px; text-align: center; }
.sos-detail-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.38); margin-bottom: 2px; }
.sos-detail-value { font-size: .92rem; font-weight: 600; color: #f1f5f9; }
.sos-detail-sub { font-size: .78rem; color: rgba(255,255,255,.44); margin-top: 2px; }

.sos-modal__footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.07);
}

.sos-sound-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    color: rgba(255,255,255,.38);
    margin-right: auto;
}
.sos-sound-indicator i { color: #ef4444; animation: sosIconPulse 1.2s ease-in-out infinite; }
