/* ── Modal Backdrop & Box Style ──────────────────────────── */
.emergency-modal-backdrop .modal-backdrop.show {
    opacity: 0.75;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.emergency-modal-content {
    background: radial-gradient(130% 120% at 50% 0%, #be123c 0%, #881337 45%, #4c0519 100%);
    border-radius: 28px !important;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 25px 60px -15px rgba(190, 18, 60, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* دکمه بستن مدرن */
.btn-close-emergency {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.btn-close-emergency:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.05);
}

/* افکت نور پس‌زمینه (Glow Sphere) */
.glow-sphere {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 180px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.4) 0%, rgba(244, 63, 94, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* نشانگر وضعیت (Pill Badge) */
.emergency-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffe4e6;
}

.live-pulse {
    width: 9px;
    height: 9px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-ring 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* آیکون اورژانس مرکزی */
.emergency-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.emergency-main-icon {
    font-size: 2.2rem;
    color: #fff;
    animation: siren-swing 2.2s infinite ease-in-out;
}

@keyframes siren-swing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(12deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-8deg); }
}

/* متن و توضیحات */
.modal-title {
    position: relative;
    z-index: 2;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.text-highlight {
    color: #fecdd3;
    text-shadow: 0 0 15px rgba(254, 205, 211, 0.5);
}

.emergency-modal-desc {
    position: relative;
    z-index: 2;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 440px;
    margin: 0 auto;
}

/* کارت CTA تماس مستقیم */
.call-banner {
    position: relative;
    z-index: 2;
}

.emergency-call-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 18px;
    padding: 0.85rem 1.15rem;
    text-decoration: none !important;
    color: #881337 !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
    transition: all 0.28s ease;
}

.emergency-call-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    background: #fff1f2;
}

.cta-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cta-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    flex-grow: 1;
    margin: 0 0.9rem;
}

.cta-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9f1239;
}

.cta-number {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #881337;
    font-family: inherit;
}

.cta-arrow {
    font-size: 1.2rem;
    color: #be123c;
    transition: transform 0.2s;
}

.emergency-call-cta:hover .cta-arrow {
    transform: translateX(-4px);
}

/* فوتر داخل مدال */
.emergency-modal-footer {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.85rem;
}

.btn-dismiss-text {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.btn-dismiss-text:hover {
    color: #ffffff;
}
