/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Боковая панель */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #003e70 0%, #0056b3 100%);
    color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-header i {
    margin-right: 10px;
    color: #ffd700;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 4px solid #ffd700;
}

.sidebar-nav i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Основной контент */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Верхняя панель */
.topbar {
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar-left {
    display: flex;
    align-items: center;
}

.btn-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    margin-right: 15px;
    cursor: pointer;
    color: #003e70;
}

.topbar h1 {
    font-size: 1.5rem;
    color: #003e70;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.user-name {
    font-weight: 500;
    color: #333;
}

/* Контент */
.content {
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Для статистики пользователей - в одну линию */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stats-row .stat-card {
    flex: 1;
    min-width: 200px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Графики */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

/* Последняя активность */
.recent-activity {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    margin-right: 15px;
    width: 20px;
}

.activity-item span:nth-child(2) {
    flex: 1;
    color: #333;
}

.activity-time {
    color: #999;
    font-size: 0.8rem;
}

.text-blue { color: #667eea; }
.text-green { color: #84fab0; }
.text-purple { color: #fa709a; }

/* таблица пользователей */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h2 {
    color: #333;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #003e70 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 62, 112, 0.3);
}

.btn-primary i {
    margin-right: 8px;
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.search-bar input,
.search-bar select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-bar input {
    flex: 1;
    max-width: 300px;
}

.search-bar select {
    min-width: 150px;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background-color: #f8f9fa;
}

.text-center {
    text-align: center;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #84fab0;
    color: #2d7a2d;
}

.notification.error {
    border-left: 4px solid #f5576c;
    color: #d32f2f;
}

.notification.info {
    border-left: 4px solid #667eea;
    color: #1976d2;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .btn-sidebar {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
    }
    
    .stats-row .stat-card {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 20px;
    }
    
    .topbar {
        padding: 15px 20px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        max-width: 100%;
    }
}

/* рнимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.3s ease;
}

/* Кнопки действий */
.btn-action {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #667eea;
    color: white;
}

.btn-edit:hover {
    background-color: #5a6fd8;
}

.btn-block {
    background-color: #f5576c;
    color: white;
}

.btn-block:hover {
    background-color: #e63946;
}

.btn-premium {
    background-color: #fa709a;
    color: white;
}

.btn-premium:hover {
    background-color: #f65684;
}

/* статусы */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: #e8f5e8;
    color: #2d7a2d;
}

.status-blocked {
    background-color: #ffeaea;
    color: #d32f2f;
}

.status-online {
    background-color: #e8f5e8;
    color: #2d7a2d;
    font-weight: 600;
}

.status-offline {
    background-color: #f5f5f5;
    color: #666;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-admin {
    background-color: #ffeaea;
    color: #d32f2f;
}

/* Демографические графики */
.age-chart, .gender-chart {
    margin-top: 15px;
}

.age-item, .gender-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.age-label, .gender-label {
    min-width: 60px;
    font-size: 0.9rem;
    font-weight: 500;
}

.age-bar, .gender-bar {
    flex: 1;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.age-fill, .gender-fill {
    height: 100%;
    background: linear-gradient(90deg, #003e70, #0056b3);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.age-count, .gender-count {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
    color: #003e70;
}

.age-chart h4, .gender-chart h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.role-premium {
    background-color: #fff3e0;
    color: #f57c00;
}

.role-moderator {
    background-color: #e3f2fd;
    color: #1976d2;
}

.role-free {
    background-color: #f5f5f5;
    color: #666;
}

/* ===== стИЛИ ДЛя уПРрВЛЕНИя КОНтЕНтОМ ===== */

/* Бейджи типов контента */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-text {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-image {
    background-color: #e8f5e9;
    color: #388e3c;
}

.badge-video {
    background-color: #fce4ec;
    color: #c2185b;
}

.badge-poll {
    background-color: #fff3e0;
    color: #f57c00;
}

.badge-repost {
    background-color: #e0f2f1;
    color: #00897b;
}

.badge-comment {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge-anonymous {
    background-color: #7c4dff;
    color: white;
}

.badge-public {
    background-color: #e8f5e9;
    color: #388e3c;
}

.badge-adult {
    background-color: #ff5252;
    color: white;
    font-weight: bold;
}

/* рнонимный автор */
.anonymous-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7c4dff;
    font-weight: 500;
}

.anonymous-author i {
    font-size: 1.1rem;
}

.btn-xs {
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
}

.btn-reveal {
    background-color: #7c4dff;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-reveal:hover {
    background-color: #651fff;
}

/* Информация об авторе */
.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: #003e70;
}

.author-info small {
    color: #666;
    font-size: 0.75rem;
}

/* Кнопка фиолетовая */
.btn-purple, .btn-sm.btn-purple {
    background-color: #7c4dff;
    color: white;
    border: none;
}

.btn-purple:hover, .btn-sm.btn-purple:hover {
    background-color: #651fff;
}

/* статус иконка purple */
.stat-icon.purple {
    background: linear-gradient(135deg, #7c4dff 0%, #b388ff 100%);
}

/* ячейка контента */
.content-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ячейка действий */
.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn-sm {
    margin-right: 4px;
}

/* Модальное окно раскрытия автора */
.reveal-author-modal .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reveal-author-modal .alert-warning {
    background-color: #fff3e0;
    border: 1px solid #ffb74d;
    color: #e65100;
}

.reveal-author-modal h4 {
    margin: 16px 0 12px;
    color: #003e70;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.details-table td:first-child {
    width: 140px;
    color: #666;
}

.details-table code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

.content-text {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Детали контента */
.content-details-modal .alert-info {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-details-modal .stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.content-details-modal .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.content-details-modal .stat-item i {
    color: #003e70;
}

/* Вкладки типов контента */
.content-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.content-type-tabs .btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Фильтры */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filters-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    min-width: 150px;
}

/* ===== PREMIUM уПРрВЛЕНИЕ ===== */

/* Быстрая выдача Premium */
.quick-premium-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-premium-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #003e70;
    box-shadow: 0 0 0 3px rgba(0,62,112,0.1);
}

.user-search-result {
    margin-top: 16px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 4px 0;
    color: #003e70;
    font-size: 16px;
}

.user-info p {
    margin: 2px 0;
    color: #666;
    font-size: 14px;
}

.user-info small {
    color: #999;
    font-size: 12px;
}

/* История Premium */
.premium-history-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-link {
    color: #003e70;
    text-decoration: none;
    font-weight: 500;
}

.user-link:hover {
    text-decoration: underline;
}

/* ===== IP ОтсЛЕЖИВрНИЕ ===== */

/* IP поиск */
.ip-search-section,
.user-ip-section,
.block-ip-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ip-search-form,
.user-ip-form,
.block-ip-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ip-search-results,
.user-ip-results {
    margin-top: 16px;
}

.ip-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ip-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ip-user-info {
    flex: 1;
}

.ip-user-info strong {
    color: #003e70;
    font-size: 14px;
}

.ip-user-info p {
    margin: 2px 0;
    color: #666;
    font-size: 13px;
}

.ip-user-actions {
    display: flex;
    gap: 8px;
}

/* Заблокированные IP */
.blocked-ips-section,
.recent-logins-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Бейджи для Premium */
.badge-premium {
    background-color: #7c4dff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-free {
    background-color: #e8f5e9;
    color: #388e3c;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Кнопка большая */
.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

/* Alert стили */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #ffeaea;
    border: 1px solid #ffb3b3;
    color: #d32f2f;
}

.alert-info {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}

.alert-warning {
    background-color: #fff3e0;
    border: 1px solid #ffb74d;
    color: #e65100;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* ===== РЕЗЕРВНОЕ КОПИРОВрНИЕ ===== */

/* Информация о бэкапе */
.backup-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.backup-info h4 {
    margin: 0 0 15px 0;
    color: #003e70;
    font-size: 18px;
}

.backup-info p {
    margin: 8px 0;
    color: #333;
}

.backup-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.backup-info li {
    margin: 5px 0;
    color: #666;
}

.backup-info .warning {
    color: #d32f2f;
    font-weight: 500;
    padding: 10px;
    background-color: #ffeaea;
    border-radius: 6px;
    margin-top: 15px;
}

/* Модальные действия */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Настройки бэкапа */
.backup-settings {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.backup-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.backup-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.backup-status.active {
    background-color: #e8f5e9;
    color: #388e3c;
}

.backup-status.inactive {
    background-color: #fff3e0;
    color: #e65100;
}

.backup-status i {
    font-size: 12px;
}

/* статистика бэкапов */
.backup-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.backup-stat-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.backup-stat-card .value {
    font-size: 24px;
    font-weight: bold;
    color: #003e70;
    margin-bottom: 4px;
}

.backup-stat-card .label {
    font-size: 14px;
    color: #666;
}

/* ===== трРГЕтИРОВрННря РЕКЛрМр ===== */

/* секция кампаний */
.campaigns-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Форма создания кампании */
.campaign-form-section {
    background: linear-gradient(135deg, #003d66 0%, #0077cc 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 4px 16px rgba(0,62,112,0.3);
}

.campaign-form-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.campaign-form {
    background-color: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 24px;
    color: #333;
}

/* таргетинг опции */
.targeting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.targeting-group {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.targeting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #003e70;
}

.age-range {
    display: flex;
    gap: 12px;
}

.age-range input {
    flex: 1;
}

/* Загрузка креативов */
.creative-upload {
    margin-top: 12px;
}

.upload-area {
    border: 2px dashed #0077cc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0,119,204,0.05);
}

.upload-area:hover {
    border-color: #003e70;
    background-color: rgba(0,119,204,0.1);
}

.upload-area i {
    font-size: 48px;
    color: #0077cc;
    margin-bottom: 12px;
}

.upload-area p {
    margin: 8px 0;
    font-weight: 500;
    color: #003e70;
}

.upload-area small {
    color: #666;
}

.creative-preview {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px;
}

.creative-preview img,
.creative-preview video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* статусы кампаний */
.campaign-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.campaign-status.active {
    background-color: #e8f5e9;
    color: #388e3c;
}

.campaign-status.paused {
    background-color: #fff3e0;
    color: #e65100;
}

.campaign-status.completed {
    background-color: #f3f3f3;
    color: #666;
}

/* типы кампаний */
.campaign-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    background-color: #f0f0f0;
}

.campaign-type.banner {
    background-color: #e3f2fd;
    color: #1565c0;
}

.campaign-type.video {
    background-color: #fce4ec;
    color: #c2185b;
}

.campaign-type.story {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* CTR показатель */
.ctr-value {
    font-weight: 600;
    color: #003e70;
}

.ctr-value.good {
    color: #388e3c;
}

.ctr-value.average {
    color: #e65100;
}

.ctr-value.poor {
    color: #d32f2f;
}

/* Действия с кампаниями */
.campaign-actions {
    display: flex;
    gap: 6px;
}

.campaign-actions .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Форма действий */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Бюджет и ставки */
.budget-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.budget-info.spent {
    color: #d32f2f;
}

.budget-info.remaining {
    color: #388e3c;
}

/* рнимация загрузки */
.campaign-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.campaign-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== РрсКРытИЕ рНОНИМОВ ===== */

.reveal-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.reveal-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.reveal-section h3 i {
    margin-right: 10px;
}

.reveal-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.reveal-form .form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.reveal-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
}

.reveal-form .form-control::placeholder {
    color: #999;
}

.reveal-result {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reveal-result h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.reveal-result h4 i {
    margin-right: 8px;
    color: #4ade80;
}

.reveal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.reveal-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
}

.reveal-item .label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.reveal-item .value {
    display: block;
    font-weight: 600;
    color: white;
    word-break: break-all;
}

.reveal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.anonymous-content-section,
.reveal-history-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.anonymous-content-section h3,
.reveal-history-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.anonymous-content-section h3 i,
.reveal-history-section h3 i {
    margin-right: 10px;
    color: #667eea;
}

/* типы контента */
.content-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.content-type-badge.post {
    background: #e0e7ff;
    color: #4338ca;
}

.content-type-badge.comment {
    background: #fce7f3;
    color: #be185d;
}

/* счетчик жалоб */
.reports-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.reports-count.none {
    background: #f0fdf4;
    color: #166534;
}

.reports-count.low {
    background: #fef9c3;
    color: #854d0e;
}

.reports-count.high {
    background: #fee2e2;
    color: #991b1b;
}

.reports-count i {
    font-size: 0.75rem;
}

/* ===== НОВыЙ КОМПрКтНыЙ ДршБОРД ===== */

/* статистика в ряд */
.dashboard-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-box .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.stat-box .stat-icon.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-box .stat-icon.green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.stat-box .stat-icon.orange { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-box .stat-icon.purple { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }
.stat-box .stat-icon.red { background: linear-gradient(135deg, #eb3349, #f45c43); }
.stat-box .stat-icon.cyan { background: linear-gradient(135deg, #00c6fb, #005bea); }

.stat-box .stat-data {
    display: flex;
    flex-direction: column;
}

.stat-box .stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-box .stat-label {
    font-size: 12px;
    color: #666;
}

/* сетка дашборда */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dashboard-left, .dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточки */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-header h3 i {
    color: #667eea;
}

.card-actions {
    display: flex;
    gap: 6px;
}

.card-actions .btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
}

.card-actions .btn-sm.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.card-body {
    padding: 16px 20px;
}

/* Быстрые кнопки */
.quick-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qbtn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

.qbtn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.qbtn.blue { background: linear-gradient(135deg, #667eea, #764ba2); }
.qbtn.red { background: linear-gradient(135deg, #eb3349, #f45c43); }
.qbtn.green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.qbtn.purple { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }

/* уведомления */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.notif-item.warning { background: #fff3cd; color: #856404; }
.notif-item.info { background: #cce5ff; color: #004085; }
.notif-item.success { background: #d4edda; color: #155724; }

.badge-count {
    background: #eb3349;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* системная статистика */
.sys-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sys-stat:last-child {
    margin-bottom: 0;
}

.sys-stat > span:first-child {
    width: 40px;
    font-size: 12px;
    color: #666;
}

.sys-stat > span:last-child {
    width: 35px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.sys-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.sys-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s;
}

.sys-fill.warning {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

/* Активность */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.activity-item .text-blue { background: #e3f2fd; color: #1976d2; }
.activity-item .text-green { background: #e8f5e9; color: #388e3c; }
.activity-item .text-purple { background: #f3e5f5; color: #7b1fa2; }
.activity-item .text-red { background: #ffebee; color: #d32f2f; }
.activity-item .text-orange { background: #fff3e0; color: #f57c00; }

.activity-content {
    flex: 1;
}

.activity-content strong {
    display: block;
    font-size: 13px;
    color: #1a1a2e;
}

.activity-time {
    font-size: 11px;
    color: #999;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-box {
        min-width: 100%;
    }
}

/* ===== стрРыЕ стИЛИ (для совместимости) ===== */

/* сетка статистики на 6 колонок */
.stats-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1400px) {
    .stats-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* сетка статистики на 5 колонок */
.stats-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Карточки с градиентом */
.stat-card-gradient {
    position: relative;
    border-radius: 16px;
    padding: 20px;
    color: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.stat-card-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.stat-card-gradient:hover::before {
    transform: scale(2);
}

.blue-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.green-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.purple-gradient {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
}

.red-gradient {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.cyan-gradient {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

.stat-icon-large {
    font-size: 2.5rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-card-gradient .stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card-gradient .stat-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-change.positive {
    color: #4ade80;
}

.stat-change.negative {
    color: #fbbf24;
}

.stat-change.neutral {
    color: white;
}

/* Быстрые действия */
.quick-actions-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.quick-actions-panel h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-actions-panel h3 i {
    color: #f59e0b;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) {
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #475569;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #003e70 0%, #0056b3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 62, 112, 0.3);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

/* Графики улучшенные */
.chart-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chart-large {
    flex: 2;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-header h3 i {
    color: #667eea;
}

.chart-controls {
    display: flex;
    gap: 4px;
}

.chart-btn {
    padding: 6px 12px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.chart-btn:hover,
.chart-btn.active {
    background: #003e70;
    color: white;
}

.charts-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1000px) {
    .charts-row {
        flex-direction: column;
    }
}

/* Нижняя часть дашборда */
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .dashboard-bottom-row {
        grid-template-columns: 1fr;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h3 {
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: #667eea;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Последняя активность */
.recent-activity {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: #f1f5f9;
}

.activity-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.activity-item i.text-blue {
    background: #dbeafe;
    color: #2563eb;
}

.activity-item i.text-green {
    background: #dcfce7;
    color: #16a34a;
}

.activity-item i.text-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.activity-item i.text-red {
    background: #fee2e2;
    color: #dc2626;
}

.activity-item i.text-orange {
    background: #ffedd5;
    color: #ea580c;
}

.activity-content {
    flex: 1;
}

.activity-content strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
}

.activity-content span {
    font-size: 0.8rem;
    color: #64748b;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* системная информация */
.system-info-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.system-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.system-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-stat .stat-label {
    width: 100px;
    font-size: 0.85rem;
    color: #64748b;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.progress-fill.success {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.system-stat .stat-value {
    width: 50px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.system-info-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.info-item i {
    color: #667eea;
}

.info-item strong {
    color: #333;
}

/* уведомления */
.alerts-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
}

.alert-item.alert-warning i {
    color: #f59e0b;
}

.alert-item.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
}

.alert-item.alert-info i {
    color: #3b82f6;
}

.alert-item.alert-success {
    background: #f0fdf4;
    border-color: #22c55e;
}

.alert-item.alert-success i {
    color: #22c55e;
}

.alert-item i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 2px;
}

.alert-content span {
    font-size: 0.75rem;
    color: #64748b;
}

.alert-item .btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-item .btn-sm:hover {
    background: #003e70;
    color: white;
    border-color: #003e70;
}

/* топ контент */
.top-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .top-content-row {
        grid-template-columns: 1fr;
    }
}

.top-users-panel,
.top-posts-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.top-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.top-item .rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}

.top-item .rank.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.top-item .rank.silver {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
}

.top-item .rank.bronze {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.top-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.top-item .info {
    flex: 1;
}

.top-item .info .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.top-item .info .stats {
    font-size: 0.75rem;
    color: #64748b;
}

.top-item .value {
    font-weight: 700;
    font-size: 1rem;
    color: #667eea;
}

/* текстовые цвета */
.text-success {
    color: #22c55e !important;
}

/* ===== МОДЕРрцИя ===== */
.report-users {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.report-users .reporter {
    color: #667eea;
}

.report-users .arrow {
    color: #999;
}

.report-users .reported {
    color: #eb3349;
    font-weight: 600;
}

.report-content {
    max-width: 300px;
}

.report-content strong {
    display: block;
    font-size: 13px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.report-content .reason-text {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
    line-height: 1.4;
}

.report-content .post-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    margin-top: 4px;
}

.report-content .post-link:hover {
    text-decoration: underline;
}

.action-btns {
    display: flex;
    gap: 4px;
}

.btn-action {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-action.btn-view { background: #e3f2fd; color: #1976d2; }
.btn-action.btn-approve { background: #e8f5e9; color: #388e3c; }
.btn-action.btn-block { background: #ffebee; color: #d32f2f; }
.btn-action.btn-dismiss { background: #fff3e0; color: #f57c00; }

.btn-action:hover {
    transform: scale(1.1);
}

/* Бейджи */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-spam { background: #fee2e2; color: #991b1b; }
.badge-harassment { background: #fef3c7; color: #92400e; }
.badge-inappropriate { background: #fce7f3; color: #9d174d; }
.badge-violence { background: #fecaca; color: #7f1d1d; }
.badge-copyright { background: #dbeafe; color: #1e40af; }

.priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.priority-low { background: #d1fae5; color: #065f46; }
.priority-medium { background: #fef3c7; color: #92400e; }
.priority-high { background: #fee2e2; color: #991b1b; }
.priority-critical { background: #7f1d1d; color: white; }

/* ===== рНрЛИтИКр ===== */
.period-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.analytics-card {
    min-height: 200px;
}

.analytics-card.wide {
    grid-column: span 2;
}

/* География */
.geo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.geo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.geo-item .country {
    width: 120px;
    font-size: 13px;
}

.geo-item .count {
    width: 50px;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

.geo-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

/* устройства */
.device-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-item i {
    font-size: 24px;
    color: #667eea;
    width: 30px;
}

.device-info {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

.device-name {
    font-size: 13px;
}

.device-percent {
    font-weight: 600;
    font-size: 13px;
}

.device-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.device-bar div {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

/* Ос */
.os-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.os-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.os-item span:last-child {
    font-weight: 600;
    color: #667eea;
}

/* Доход */
.revenue-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.revenue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.revenue-item.total {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.revenue-label {
    font-size: 14px;
}

.revenue-value {
    font-size: 20px;
    font-weight: 700;
}

.revenue-count {
    font-size: 12px;
    color: #666;
}

.revenue-item.total .revenue-count {
    display: none;
}

/* часы */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.hour-cell {
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.peak-time {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
}

@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .analytics-card.wide {
        grid-column: span 1;
    }
}

/* ===== НрстРОЙКИ ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.settings-card {
    min-height: auto;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row span:first-child {
    font-size: 13px;
    color: #333;
}

.setting-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    width: 120px;
}

.setting-input.small {
    width: 70px;
}

.setting-note {
    font-size: 11px;
    color: #f59e0b;
    margin: 10px 0 0;
    padding: 8px;
    background: #fffbeb;
    border-radius: 6px;
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

@media (max-width: 1400px) {
    .settings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== КОНтЕНт И PREMIUM стИЛИ ===== */
.user-cell {
    display: flex;
    flex-direction: column;
}

.user-cell strong {
    font-size: 13px;
}

.user-cell small {
    color: #666;
    font-size: 11px;
}

.content-cell {
    max-width: 200px;
}

.content-preview {
    font-size: 12px;
    color: #333;
    margin-bottom: 4px;
}

/* типы контента */
.type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.type-text { background: #e3f2fd; color: #1565c0; }
.type-image { background: #e8f5e9; color: #2e7d32; }
.type-video { background: #fce4ec; color: #c2185b; }
.type-poll { background: #fff3e0; color: #ef6c00; }
.type-repost { background: #f3e5f5; color: #7b1fa2; }

/* Бейджи */
.badge-anon { background: #7c3aed; color: white; padding: 2px 6px; border-radius: 4px; font-size: 10px; cursor: help; }
.badge-public { background: #e5e7eb; color: #6b7280; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.badge-adult { background: #dc2626; color: white; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.badge-reports { background: #fef3c7; color: #92400e; padding: 2px 6px; border-radius: 4px; font-size: 10px; }

/* Планы Premium */
.plan-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.plan-monthly { background: #dbeafe; color: #1e40af; }
.plan-quarterly { background: #d1fae5; color: #065f46; }
.plan-yearly { background: #fef3c7; color: #92400e; }
.plan-lifetime { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.plan-trial { background: #f3f4f6; color: #6b7280; }

/* статусы */
.status-expiring { background: #fef3c7; color: #92400e; }

/* строки таблицы */
.row-blocked { background: #fef2f2 !important; }
.row-expired { background: #fef2f2 !important; opacity: 0.7; }
.row-expiring { background: #fffbeb !important; }

/* Кнопка раскрытия */
.btn-reveal { background: #f3e8ff; color: #7c3aed; }

/* Модальные окна */
.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-box i {
    font-size: 24px;
    color: #f59e0b;
}

.reveal-data, .premium-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.reveal-data p, .premium-info p {
    margin: 8px 0;
    font-size: 14px;
}

.reveal-actions, .premium-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Формы продления */
.extend-options, .plan-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.btn-option {
    padding: 12px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-option:hover {
    background: #667eea;
    color: white;
}

.btn-option.premium {
    border-color: #7c3aed;
    color: #7c3aed;
}

.btn-option.premium:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.custom-extend {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.custom-extend input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* статистика в таблице */
.stat-likes { color: #ef4444; }
.stat-comments { color: #3b82f6; }
.stat-views { color: #6b7280; }

.text-danger { color: #dc2626 !important; font-weight: 600; }

/* Пост детали */
.post-detail .post-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.post-detail .post-content {
    font-size: 16px;
    line-height: 1.6;
    padding: 16px 0;
}

.post-detail .post-stats {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.post-detail .post-meta {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.post-detail .post-meta p {
    margin: 4px 0;
    font-size: 13px;
}

/* ===== ДЕБрты ===== */
.debate-question {
    font-weight: 500;
    color: #333;
}

.votes-display {
    display: flex;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 4px;
}

.vote-for { color: #22c55e; }
.vote-against { color: #ef4444; }
.vote-unsure { color: #6b7280; }

.votes-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #e5e7eb;
}

.bar-for { background: #22c55e; }
.bar-against { background: #ef4444; }
.bar-unsure { background: #9ca3af; }

.vote-bar-large {
    display: flex;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.vote-bar-large .bar-for,
.vote-bar-large .bar-against,
.vote-bar-large .bar-unsure {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.vote-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.category-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.cat-politics { background: #fee2e2; color: #991b1b; }
.cat-society { background: #dbeafe; color: #1e40af; }
.cat-tech { background: #d1fae5; color: #065f46; }
.cat-sports { background: #fef3c7; color: #92400e; }
.cat-culture { background: #f3e8ff; color: #6b21a8; }
.cat-other { background: #f3f4f6; color: #374151; }

.create-debate-form .form-group {
    margin-bottom: 16px;
}

.create-debate-form input,
.create-debate-form textarea,
.create-debate-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ===== РрссыЛКр ===== */
.push-form-card {
    margin-bottom: 20px;
}

.push-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.push-form .form-group {
    flex: 1;
}

.push-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.push-form input,
.push-form textarea,
.push-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.push-form small {
    color: #6b7280;
    font-size: 11px;
}

.push-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.push-preview h4 {
    margin: 0 0 12px;
    color: #666;
}

.push-preview-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.push-preview-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.push-preview-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.push-preview-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.push-actions {
    display: flex;
    gap: 10px;
}

/* ===== сИстЕМНыЕ рККруНты ===== */
.settings-card.full-width {
    grid-column: 1 / -1;
}

.system-account-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.system-account-row:hover {
    background: #e9ecef;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.account-badge {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.account-badge.admin { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.account-badge.osekshi { background: linear-gradient(135deg, #667eea, #764ba2); }
.account-badge.moderator { background: linear-gradient(135deg, #11998e, #38ef7d); }

.role-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-tag.admin { background: #ffd700; color: #333; }
.role-tag.osekshi { background: #667eea; color: white; }
.role-tag.moderator { background: #11998e; color: white; }

.account-desc {
    flex: 1;
    color: #666;
    font-size: 13px;
}

/* ===== EMAIL COMPOSER ===== */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-form input,
.email-form textarea,
.email-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.email-form textarea {
    min-height: 150px;
    resize: vertical;
}

.email-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}
