/* 
   Set UP Music — Blog & Admin Stylesheet
   Strict Matte Dark Minimalism + Premium Glassmorphism
*/

/* --- COMMON BLOG VARIABLES --- */
:root {
    --bg-dark: #08090b;
    --bg-card: #101013;
    --bg-card-hover: #141417;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    --accent-color: #2563eb;
    --accent-hover: #d9ff4a;
    --blog-max-width: 740px;
    --glass-bg: rgba(13, 15, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
}

/* --- PUBLIC BLOG LISTING (/articles) --- */
.blog-hero {
    padding-top: 140px;
    padding-bottom: 40px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 100px;
}

@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-speed) var(--transition-bezier);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

.blog-card-cover-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #000;
}

.blog-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--transition-bezier);
}

.blog-card:hover .blog-card-cover {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.blog-card-tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.blog-card-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-hover);
    margin-top: 8px;
}

.blog-card-link:hover {
    color: var(--text-primary);
}

/* --- PUBLIC ARTICLE DETAIL (/articles/{slug}) --- */
.article-header {
    padding-top: 150px;
    padding-bottom: 40px;
    max-width: var(--blog-max-width);
    margin: 0 auto;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.article-back-link:hover {
    color: var(--text-primary);
}

.article-title-main {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .article-title-main {
        font-size: 2.25rem;
    }
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.article-cover-large {
    max-width: var(--max-width);
    margin: 0 auto 50px auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-cover-large img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}



/* --- ADMIN PANEL (/admin) --- */

/* Login Overlay */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(8, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-hover);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.admin-login-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.admin-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255,255,255,0.05);
}

/* Dashboard Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark);
}

@media (max-width: 1200px) {
    .admin-layout {
        grid-template-columns: 240px 1fr;
    }
    .admin-seo-panel {
        display: none; /* Hide SEO panel on smaller screens, toggleable */
    }
    .admin-seo-panel.active {
        display: flex;
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 90;
        width: 340px;
        background-color: var(--bg-card);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
}

/* Left Sidebar */
.admin-sidebar {
    background-color: rgba(13, 15, 18, 0.7);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-logout-btn {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.admin-logout-btn:hover {
    color: var(--text-primary);
}

.admin-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar-item {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all var(--transition-speed);
}

.admin-sidebar-item:hover {
    background-color: rgba(255,255,255,0.02);
    border-color: var(--border-color);
}

.admin-sidebar-item.active {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.admin-sidebar-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.status-badge {
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6rem;
}

.status-badge.draft {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.15);
}

.status-badge.published {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

/* Center Editor Canvas */
.admin-editor-canvas {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.admin-editor-header {
    padding: 16px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(13, 15, 18, 0.3);
}

.admin-editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-editor-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .admin-editor-scroll {
        padding: 20px;
    }
}

.admin-title-input {
    width: 100%;
    font-size: 2.5rem;
    font-weight: 800;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    margin-bottom: 4px;
}

.admin-title-input::placeholder {
    color: var(--text-muted);
}

.admin-slug-wrapper {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.admin-slug-input {
    background: transparent;
    border: none;
    border-bottom: 1px dashed var(--text-secondary);
    color: var(--accent-hover);
    font-family: monospace;
    font-size: 0.85rem;
    outline: none;
    padding: 0 4px;
}

/* Quill Editor custom styling (Dark Mode minimalism) */
.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    background-color: rgba(13, 15, 18, 0.5);
    padding: 10px 40px !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ql-container.ql-snow {
    border: none !important;
    font-family: var(--font-family) !important;
    font-size: 1.05rem !important;
    color: #cbd5e1 !important;
}

.ql-editor {
    padding: 20px 0 !important;
    min-height: 400px;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted) !important;
    font-style: normal !important;
    left: 0 !important;
}

/* Right SEO Panel */
.admin-seo-panel {
    background-color: rgba(13, 15, 18, 0.5);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
    gap: 24px;
}

.panel-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.char-counter {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 2px;
}

/* Image cover drop zone */
.image-dropzone {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(255,255,255,0.01);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.image-dropzone:hover {
    border-color: var(--accent-color);
    background-color: rgba(37, 99, 235, 0.02);
}

.image-dropzone-inner {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.image-dropzone-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.image-dropzone-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(8,9,11,0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    font-weight: bold;
    font-size: 0.75rem;
}

/* DeepSeek Card & Recommendations */
.deepseek-seo-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(13, 15, 18, 0.8) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deepseek-seo-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.deepseek-logo-sparkle {
    color: #3b82f6;
    animation: pulse-glowing 2s infinite alternate;
}

.deepseek-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    list-style: none;
    padding-left: 0;
}

.deepseek-suggestions-list li {
    position: relative;
    padding-left: 16px;
    line-height: 1.4;
}

.deepseek-suggestions-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 4px;
    font-weight: bold;
}

.apply-seo-tags-btn {
    width: 100%;
    margin-top: 8px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-hover);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.apply-seo-tags-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Pulsing Progress Bar for DeepSeek API calls */
.seo-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
    display: none;
}

.seo-progress-bar-inner {
    height: 100%;
    width: 30%;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: loading-slide 1.5s infinite linear;
}

/* Toggles & Swithes */
.status-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
}

.status-toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Visual toggle switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #22c55e;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Toast notification popup */
.toast-msg {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-hover);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s var(--transition-bezier);
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes pulse-glowing {
    from { opacity: 0.6; text-shadow: 0 0 4px rgba(59, 130, 246, 0.4); }
    to { opacity: 1; text-shadow: 0 0 12px rgba(59, 130, 246, 0.9); }
}

@keyframes loading-slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(330%); }
}

@keyframes spin-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- DASHBOARD STYLES --- */

/* Вкладки навигации в левой панели */
.admin-sidebar-tabs {
    display: flex;
    padding: 12px 20px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.admin-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.admin-tab-btn svg {
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.admin-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-primary) !important;
}

.admin-tab-btn:hover svg {
    color: var(--text-primary);
}

.admin-tab-btn.active {
    background-color: rgba(217, 255, 74, 0.08) !important;
    border-color: rgba(217, 255, 74, 0.35) !important;
    color: #d9ff4a !important;
}

.admin-tab-btn.active svg {
    color: #d9ff4a;
}

/* Холст дашборда */
.admin-dashboard-canvas {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #08090b !important;
}

.admin-dashboard-header {
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(13, 15, 18, 0.4);
    flex-shrink: 0;
}

.dashboard-main-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin: 3px 0 0 0;
}

.dashboard-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Сетка карточек KPI */
.dashboard-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 1024px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr !important;
    }
}

.dashboard-metric-card {
    background-color: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.dashboard-metric-card:hover {
    background-color: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(217, 255, 74, 0.3) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(217, 255, 74, 0.06) !important;
}

.metric-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2;
    letter-spacing: -0.03em !important;
    margin: 8px 0 2px 0 !important;
}

.metric-description {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Сетки для секций */
.dashboard-row-grid {
    display: grid !important;
    gap: 24px !important;
}

.dashboard-row-grid.grid-2col {
    grid-template-columns: 1.25fr 0.75fr !important;
}

@media (max-width: 968px) {
    .dashboard-row-grid.grid-2col {
        grid-template-columns: 1fr !important;
    }
}

.dashboard-section-card {
    background-color: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 28px !important;
    display: flex;
    flex-direction: column;
    gap: 18px;
    backdrop-filter: blur(12px);
}

.section-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
    margin-bottom: 4px;
}

.section-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

/* Графики посещаемости */
.chart-legend {
    display: flex;
    gap: 20px;
    font-size: 0.74rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-color.visits {
    background-color: #3b82f6;
}

.legend-color.uniques {
    background-color: #cbd5e1;
}

.svg-chart-container {
    width: 100%;
    height: 195px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.005);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Бот-пайплайн постов */
.pipeline-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pipeline-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.pipeline-status-row span {
    color: var(--text-secondary);
}

.pipeline-status-row strong {
    color: var(--text-primary);
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.03) !important;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Таблицы показателей */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.dashboard-table th, .dashboard-table td {
    padding: 12px 14px;
    text-align: left;
}

.dashboard-table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.dashboard-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
    color: var(--text-primary);
}

.dashboard-table tr:last-child td {
    border-bottom: none !important;
}

/* Списки страниц и рефереров */
.top-paths-list, .referrers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.path-row, .referrer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.path-name, .referrer-name {
    font-family: var(--font-mono), monospace;
    color: #d9ff4a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.path-count, .referrer-count {
    font-weight: 700;
    color: var(--text-primary);
}

/* Системные статусы */
.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.status-indicator {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0;
}

.status-indicator.online {
    background-color: #22c55e !important;
    box-shadow: 0 0 10px #22c55e, 0 0 20px rgba(34, 197, 94, 0.4) !important;
    animation: status-pulse-green 2s infinite alternate;
}

.status-indicator.offline {
    background-color: #ef4444 !important;
    box-shadow: 0 0 10px #ef4444, 0 0 20px rgba(239, 68, 68, 0.4) !important;
    animation: status-pulse-red 2s infinite alternate;
}

.status-indicator.warning {
    background-color: #f59e0b !important;
    box-shadow: 0 0 10px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.4) !important;
    animation: status-pulse-yellow 2s infinite alternate;
}

.refresh-icon-svg.spin {
    animation: spin-rotate 1.0s infinite linear;
}

@keyframes status-pulse-green {
    0% { opacity: 0.6; box-shadow: 0 0 2px rgba(34, 197, 94, 0.2); }
    100% { opacity: 1; box-shadow: 0 0 12px rgba(34, 197, 94, 0.7); }
}

@keyframes status-pulse-red {
    0% { opacity: 0.6; box-shadow: 0 0 2px rgba(239, 68, 68, 0.2); }
    100% { opacity: 1; box-shadow: 0 0 12px rgba(239, 68, 68, 0.7); }
}

@keyframes status-pulse-yellow {
    0% { opacity: 0.6; box-shadow: 0 0 2px rgba(245, 158, 11, 0.2); }
    100% { opacity: 1; box-shadow: 0 0 12px rgba(245, 158, 11, 0.7); }
}

@keyframes spin-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Вторичные под-вкладки дашборда */
.dashboard-subtabs {
    display: flex;
    padding: 12px 40px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(13, 15, 18, 0.25);
    flex-shrink: 0;
    overflow-x: auto;
}

.dashboard-subtab-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease !important;
    white-space: nowrap;
    outline: none !important;
}

.dashboard-subtab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.dashboard-subtab-btn.active {
    background: #d9ff4a !important;
    border-color: #d9ff4a !important;
    color: #000000 !important;
    box-shadow: 0 0 14px rgba(217, 255, 74, 0.3) !important;
}

.dashboard-section-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Кнопка в стиле Volt (акцентная салатовая/желтая) */
.admin-btn-volt {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #d9ff4a !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.admin-btn-volt:hover {
    background-color: #ffffff !important;
    box-shadow: 0 0 12px rgba(217, 255, 74, 0.5);
    transform: translateY(-1px);
}

.admin-btn-volt:disabled {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Настройки скролла в лог-фиде */
.sys-log-feed::-webkit-scrollbar {
    width: 6px;
}
.sys-log-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}
.sys-log-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.sys-log-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Трехколоночная сетка для настроек */
.dashboard-row-grid.grid-3col {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1200px) {
    .dashboard-row-grid.grid-3col {
        grid-template-columns: 1fr !important;
    }
}

/* --- СТИЛИ РАЗДЕЛА БЕЗОПАСНОСТИ --- */
.security-score-badge {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.security-score-badge.score-b {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.security-score-badge.score-c {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.security-score-badge.score-d {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.security-score-badge.score-f {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.badge-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-status.passed {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.badge-status.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge-status.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.audit-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    gap: 12px;
}
.audit-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.audit-item-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}
.audit-item-msg {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}
.audit-item-rec {
    font-size: 0.68rem;
    color: #a3a3a3;
    font-style: italic;
}

.log-subtab-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--text-secondary) !important;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    outline: none !important;
}
.log-subtab-btn:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}
.log-subtab-btn.active {
    color: #000000 !important;
    background: #d9ff4a !important;
    font-weight: 700;
}

.log-section-content::-webkit-scrollbar {
    width: 6px;
}
.log-section-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.log-section-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.log-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.grid-2col {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 24px !important;
}

@media (max-width: 1000px) {
    .grid-2col {
        grid-template-columns: 1fr !important;
    }
}

.mini-status-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
}

.mini-status-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}


