
            .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}


/* 🌙 Тёмная тема для вкладки рассылок (Black + Purple Motion Style) */

.broadcast-container {
    padding: 20px;
   

}

/* --- Статистика --- */
.broadcast-stats {
    background: rgba(20, 20, 35, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(123, 47, 247, 0.4);
    box-shadow: 0 0 10px rgba(123, 47, 247, 0.2);
    transition: all 0.3s ease;
}

.broadcast-stats:hover {
    box-shadow: 0 0 18px rgba(157, 78, 221, 0.5);
}

.broadcast-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #141425;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.4);
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #b8b8d9;
}

.stat-value {
    font-size: 26px;
    font-weight: bold;
    color: #9d4edd;
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.6);
}

/* --- Фильтры --- */
.filters-stats h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #cfcff9;
}

.filters-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.filter-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #1a1a2e;
    border-radius: 4px;
    border: 1px solid rgba(157, 78, 221, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.filter-stat:hover {
    background: rgba(123, 47, 247, 0.1);
    transform: scale(1.02);
}

.filter-stat .count {
    font-weight: bold;
    color: #7b2ff7;
}

/* --- Форма рассылки --- */
.broadcast-form-container {
    background: #141425;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    box-shadow: 0 0 12px rgba(157, 78, 221, 0.2);
}

.broadcast-form .form-group {
    margin-bottom: 20px;
}

.broadcast-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d4d4ff;
}

.broadcast-form select,
.broadcast-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(155, 89, 182, 0.4);
    border-radius: 4px;
    font-size: 14px;
    background: #0f0f1a;
    color: #e0e0ff;
    transition: border-color 0.2s ease, box-shadow 0.3s ease;
}

.broadcast-form select:focus,
.broadcast-form textarea:focus {
    outline: none;
    border-color: #9d4edd;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.broadcast-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #8888cc;
    margin-top: 5px;
}

/* --- Кнопка --- */
.form-actions {
    text-align: center;
    margin-top: 25px;
}

.btn-large {
    padding: 12px 30px;
    font-size: 16px;
    color: white;
    background: linear-gradient(90deg, #7b2ff7, #9d4edd);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}



/* --- Прогресс рассылки --- */
.broadcast-progress {
    padding: 20px 0;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #141425;
    border-radius: 6px;
    border: 1px solid rgba(123, 47, 247, 0.3);
    transition: background 0.3s ease;
}

.stat-item span:first-child {
    display: block;
    font-size: 12px;
    color: #aaaaff;
    margin-bottom: 5px;
}

.stat-item span:last-child {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0ff;
}

.progress-bar-container {
    position: relative;
    margin: 20px 0;
}

.progress-bar {
    height: 20px;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b2ff7, #9d4edd, #c77dff);
    transition: width 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.6);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #e0e0ff;
    text-shadow: 0 0 4px #7b2ff7;
}

.progress-status {
    text-align: center;
    font-size: 14px;
    color: #b8b8ff;
    margin-top: 10px;
}