/* ========== ОСНОВНЫЕ СТИЛИ ========== */
body {
    background: #161617;
    color: #e2e8f0;
    margin-top: 20px;
}

/* ========== КАРТОЧКИ ========== */
.card, .carbon-post, .project-info-box, .contact-card, .rules-card, .list-group-item {
    background: #232324;
    color: #e2e8f0;
    border-color: #000;
}

.card-header, .modal-header {
    background: #000;
    color: #e2e8f0;
    border-color: #161617;
}

/* ========== КНОПКИ ========== */
.btn-outline-secondary:hover,
.btn-outline-secondary.active {
    background: #000;
    color: #fff;
}
.btn-primary {
    background: #0061f2;
    border-color: #0061f2;
}
.btn-primary:hover {
    background: #0050c4;
}

/* ========== ТАБЛИЦЫ ========== */
.table {
    color: #e2e8f0;
}
.table-hover tbody tr:hover {
    background: #000;
}

/* ========== ФОРМЫ ========== */
.form-control {
    background: #000;
    color: #e2e8f0;
    border-color: #161617;
}
.form-control:focus {
    background: #161617;
    color: #fff;
}
.form-label {
    color: #e2e8f0;
}

/* ========== ПАГИНАЦИЯ ========== */
.page-link {
    background: #232324;
    color: #e2e8f0;
    border-color: #000;
}
.page-link:hover {
    background: #000;
    color: #fff;
}
.page-item.active .page-link {
    background: #0061f2;
    border-color: #0061f2;
}

/* ========== ФУТЕР ========== */
footer {
    background: #0f0f1a;
    border-top-color: #000;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar-dark {
    background: #0a0a0f !important;
}

/* ========== АЛЁРТЫ ========== */
.alert-info {
    background: #000;
    color: #e2e8f0;
    border-color: #0061f2;
}
.alert-success {
    background: #000;
    color: #90ee90;
}
.alert-danger {
    background: #000;
    color: #ff9999;
}
.alert-warning {
    background: #000;
    color: #ffcc80;
}

/* ========== БЕЙДЖИ ========== */
.badge.bg-light {
    background: #000;
    color: #e2e8f0;
}

body.theme-dark footer {
    background-color: #000 !important;
    color: #e2e8f0 !important;
    border-top: 1px solid #000 !important;
}

/* ========== КАРТОЧКИ ДЛЯ ГЛАВНОЙ (CARBON) ========== */
.carbon-post {
    padding: 12px;
    background: var(--card-bg);
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    min-height: 220px;
}
.carbon-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.4);
}
.carbon-post img {
    margin-right: 15px;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.carbon-post .inner-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.carbon-post .inner-wrapper h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}
.carbon-post .inner-wrapper h5 a {
    text-decoration: none;
    color: var(--text-color);
}
.carbon-post .inner-wrapper h5 a:hover {
    color: #0061f2;
}

.carbon-post .inner-wrapper .post-meta i {
    margin-right: 3px;
}
.carbon-post .inner-wrapper .badge-category {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 20px;
    background: #000;
    color: #e2e8f0;
    margin-bottom: 8px;
    width: fit-content;
}
.carbon-post .inner-wrapper p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 6px 0;
}

.carbon-post .inner-wrapper .btn-group-post {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.carbon-post .inner-wrapper .post-meta {
    font-size: 0.7rem;
    color: #a0aec0;
    margin-bottom: 2px;
}

.carbon-post .inner-wrapper .btn-group-post .btn {
    font-size: 0.75rem;
    padding: 4px 10px;
}
@media (max-width: 768px) {
    .carbon-post {
        flex-direction: column;
        min-height: auto;
    }
    .carbon-post img {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .carbon-post .inner-wrapper .btn-group-post {
        flex-wrap: wrap;
    }
}

/* ========== ФИЛЬТРЫ ========== */
.filter-btn-group {
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn-group .btn {
    margin: 3px;
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 0.85rem;
}
.filter-btn-group .btn.active {
    background: #0061f2;
    color: white;
    border-color: #0061f2;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    margin-top: 30px;
}

/* ========== ТЕКСТ ========== */
.text-muted {
    color: #a0aec0 !important;
}
.text-dark {
    color: #e2e8f0 !important;
}

/* ========== СВЕТЛАЯ ТЕМА ========== */
body.theme-light {
    background: #f0f2f5 !important;
    color: #1a202c !important;
}

/* Карточки в светлой теме */
body.theme-light .card,
body.theme-light .carbon-post,
body.theme-light .project-info-box,
body.theme-light .contact-card,
body.theme-light .rules-card,
body.theme-light .list-group-item {
    background: #ffffff !important;
    color: #1a202c !important;
    border-color: #e2e8f0 !important;
}

/* Заголовки карточек */
body.theme-light .card-header,
body.theme-light .modal-header {
    background: #f8f9fa !important;
    color: #1a202c !important;
    border-color: #e2e8f0 !important;
}

/* Таблицы */
body.theme-light .table {
    color: #1a202c !important;
}
body.theme-light .table-hover tbody tr:hover {
    background: #f8f9fa !important;
}
body.theme-light .table-bordered td,
body.theme-light .table-bordered th {
    border-color: #e2e8f0 !important;
}

/* Кнопки */
body.theme-light .btn-outline-secondary {
    color: #4a5568;
    border-color: #cbd5e0;
}
body.theme-light .btn-outline-secondary:hover,
body.theme-light .btn-outline-secondary.active {
    background: #e2e8f0;
    color: #1a202c;
}
body.theme-light .btn-primary {
    background: #3182ce;
    border-color: #3182ce;
}
body.theme-light .btn-primary:hover {
    background: #2c5282;
}

/* Формы */
body.theme-light .form-control {
    background: #ffffff !important;
    color: #1a202c !important;
    border-color: #e2e8f0 !important;
}
body.theme-light .form-control:focus {
    background: #ffffff !important;
    color: #1a202c !important;
    border-color: #3182ce !important;
    box-shadow: 0 0 0 0.2rem rgba(49,130,206,0.25);
}
body.theme-light .form-label {
    color: #4a5568 !important;
}

/* Текст */
body.theme-light .text-muted {
    color: #718096 !important;
}
body.theme-light .text-dark {
    color: #1a202c !important;
}

/* Пагинация */
body.theme-light .page-link {
    background: #ffffff !important;
    color: #4a5568 !important;
    border-color: #e2e8f0 !important;
}
body.theme-light .page-link:hover {
    background: #f8f9fa !important;
    color: #1a202c !important;
}
body.theme-light .page-item.active .page-link {
    background: #3182ce !important;
    border-color: #3182ce !important;
    color: #fff !important;
}

/* Бейджи */
body.theme-light .badge.bg-light {
    background: #e2e8f0 !important;
    color: #1a202c !important;
}
body.theme-light .badge.bg-secondary {
    background: #cbd5e0 !important;
    color: #1a202c !important;
}
body.theme-light .badge.bg-warning {
    background: #f6ad55 !important;
    color: #1a202c !important;
}

body.theme-light .carbon-post .inner-wrapper .badge-category {
    background: #e2e8f0;
    color: #4a5568;
}
body.theme-light .carbon-post .inner-wrapper .post-meta {
    color: #718096;
}
body.theme-light .carbon-post .inner-wrapper p {
    color: #4a5568;
}

/* Навигация */
body.theme-light .navbar-dark {
    background: #2d3748 !important;
}

/* Алёрты */
body.theme-light .alert-info {
    background: #bee3f8 !important;
    color: #2c5282 !important;
    border-color: #90cdf4 !important;
}
body.theme-light .alert-success {
    background: #c6f6d5 !important;
    color: #276749 !important;
    border-color: #9ae6b4 !important;
}
body.theme-light .alert-danger {
    background: #fed7d7 !important;
    color: #9b2c2c !important;
    border-color: #feb2b2 !important;
}
body.theme-light .alert-warning {
    background: #feebc8 !important;
    color: #975a16 !important;
    border-color: #fbd38d !important;
}

/* Аккордеон */
body.theme-light .accordion-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
body.theme-light .accordion-button {
    background: #f8f9fa !important;
    color: #1a202c !important;
}
body.theme-light .accordion-button:not(.collapsed) {
    background: #bee3f8 !important;
    color: #1a202c !important;
}
body.theme-light .accordion-body {
    background: #ffffff !important;
    color: #1a202c !important;
}

/* Карточки на главной */
body.theme-light .carbon-post .inner-wrapper h5 a {
    color: #1a202c;
}
body.theme-light .carbon-post .inner-wrapper p {
    color: #4a5568;
}
body.theme-light .carbon-post .inner-wrapper .post-meta {
    color: #718096;
}
body.theme-light .carbon-post .inner-wrapper .badge-category {
    background: #e2e8f0;
    color: #4a5568;
}


/* Футер в светлой теме (делаем тёмным) */
body.theme-light footer {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
    border-top: 1px solid #2d3748 !important;
}
body.theme-light footer small,
body.theme-light footer .text-muted {
    color: #a0aec0 !important;
}
body.theme-light footer .accordion-button {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}
body.theme-light footer .accordion-button:not(.collapsed) {
    background-color: #4a5568 !important;
    color: #fff !important;
}
body.theme-light footer .accordion-body {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

/* ========== СПИСОК ПОСТОВ ========== */
.project {
    margin-bottom: 20px;
}
.project .row {
    background: var(--card-bg, #fff);
    border-radius: 10px;
    padding: 15px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.project .left-col, .project .right-col {
    padding: 0 10px;
}
.project .image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}
.project .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.project .text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}
.project .text .badge {
    margin-top: 4px;
    display: inline-block;
}
.project .project-date span {
    font-size: 0.8rem;
    color: #999;
}
.project .right-col > div,
.project .right-col > a {
    margin: 5px;
}
.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}
.status-approved {
    background: #d4edda;
    color: #155724;
}
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.project-progress {
    width: 80px;
}
.project-progress .progress {
    height: 5px;
}
.project .row {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project .row:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== АДМИНКА В ТЁМНОЙ ТЕМЕ ========== */
body.theme-dark .table {
    color: #e2e8f0;
    background-color: transparent;
}
body.theme-dark .table th,
body.theme-dark .table td {
    border-color: #000;
}
body.theme-dark .table-hover tbody tr:hover {
    background-color: #000;
}

/* Бейджи в таблицах */
body.theme-dark .badge.bg-success {
    background: #00ac69 !important;
}
body.theme-dark .badge.bg-warning {
    background: #f4b400 !important;
    color: #161617 !important;
}
body.theme-dark .badge.bg-danger {
    background: #e74c3c !important;
}
body.theme-dark .badge.bg-info {
    background: #00bcd4 !important;
}

/* Карточки в админке */
body.theme-dark .card {
    /*background: #232324 !important;*/
    border-color: #000 !important;
}
body.theme-dark .card-header {
    background: #161617 !important;
    border-color: #000 !important;
}

/* Пагинация в админке */
body.theme-dark .page-link {
    background: #232324;
    color: #e2e8f0;
    border-color: #000;
}
body.theme-dark .page-link:hover {
    background: #000;
    color: #fff;
}
body.theme-dark .page-item.active .page-link {
    background: #0061f2;
    border-color: #0061f2;
}

/* Алёрты в админке */
body.theme-dark .alert-warning {
    background: #f4b400;
    color: #161617;
    border-color: #f4b400;
}
body.theme-dark .alert-warning .btn-close {
    filter: invert(1);
}

/* ========== ТАБЛИЦА АКТИВНОСТИ В ТЁМНОЙ ТЕМЕ ========== */
body.theme-dark .table {
    color: #e2e8f0;
}
body.theme-dark .table thead th {
    background-color: #000;
    color: #e2e8f0;
    border-color: #161617;
}
body.theme-dark .table tbody tr {
    border-color: #000;
}
body.theme-dark .table tbody tr:hover {
    background-color: #000;
}
body.theme-dark .table td {
    background-color: #232324;
    color: #e2e8f0;
}
body.theme-dark .table .bg-secondary {
    background-color: #000 !important;
    color: #e2e8f0 !important;
}
body.theme-dark .table .text-muted {
    color: #a0aec0 !important;
}

/* ========== АДАПТИВНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ========== */
@media (max-width: 768px) {
    /* Список постов (posts_list.php) */
    .project .row {
        flex-direction: column !important;
        padding: 10px !important;
    }
    
    .project .left-col,
    .project .right-col {
        width: 100% !important;
        padding: 5px 0 !important;
    }
    
    .project .left-col {
        margin-bottom: 10px !important;
    }
    
    .project .right-col {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    
    .project .right-col > div,
    .project .right-col > a {
        margin: 0 !important;
        font-size: 0.75rem;
    }
    
    .project .right-col i {
        font-size: 0.6rem !important;
    }
    
    .project .right-col .btn-sm {
        padding: 2px 4px !important;
    }
    
    .project-title {
        flex: 1;
    }
    
    .project-title .image {
        width: 50px !important;
        height: 50px !important;
        margin-right: 10px !important;
    }
    
    .project-title .image img {
        width: 50px !important;
        height: 50px !important;
        object-fit: cover;
    }
    
    .project-title .text h3 {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }
    
    .project-title .text small {
        font-size: 0.7rem !important;
    }
    
    .project-date {
        display: none !important;
    }
    
    .status-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    /* Карточки на главной (index.php) */
    .carbon-post {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    .carbon-post img {
        width: 100% !important;
        height: 180px !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
    
    .carbon-post .inner-wrapper .btn-group-post {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    
    .carbon-post .inner-wrapper .btn-group-post .btn {
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
    }
    
    .carbon-post .inner-wrapper .post-meta {
        font-size: 0.65rem !important;
    }
    
    /* Фильтры и кнопки */
    .filter-btn-group .btn {
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
    }
    
    /* Пагинация */
    .pagination .page-link {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
    
    /* Таблицы */
    .table-responsive {
        font-size: 0.7rem !important;
    }
    
    .table-responsive .btn-sm {
        padding: 2px 5px !important;
        font-size: 0.6rem !important;
    }
    
    .table-responsive td,
    .table-responsive th {
        padding: 4px !important;
    }
    
    .table-responsive .badge {
        font-size: 0.55rem !important;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .project .right-col > div,
    .project .right-col > a {
        font-size: 0.55rem !important;
    }
    
    .project .text h3 {
        font-size: 0.7rem !important;
    }
    
    .project .text small {
        font-size: 0.55rem !important;
    }
    
    .carbon-post .inner-wrapper .btn-group-post .btn {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
    
    .carbon-post .inner-wrapper .post-meta {
        font-size: 0.6rem !important;
    }
}

/* ========== POST.PHP КАРТИНКА ========== */
.post-detail-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

body.theme-dark .filter-btn-group .btn {
    background: #000;
    color: #e2e8f0;
    border-color: #000;
}
body.theme-dark .filter-btn-group .btn.active {
    background: #0061f2;
    border-color: #0061f2;
}
body.theme-dark .badge.bg-success {
    background: #00ac69 !important;
}
body.theme-dark .badge.bg-warning {
    background: #f4b400 !important;
    color: #161617 !important;
}

/* ========== VIP ПОСТЫ ========== */
.vip-post .row {
    background: linear-gradient(135deg, #1a202c, #161617) !important;
    border-left: 4px solid #f4b400 !important;
}

body.theme-light .vip-post .row {
    background: linear-gradient(135deg, #fff8e7, #ffffff) !important;
    border-left: 4px solid #f4b400 !important;
}

.vip-post .text h3 a {
    color: #f4b400 !important;
}

.vip-post .text h3 a:hover {
    color: #ffcc00 !important;
}

/* ========== VIP КАРТОЧКИ НА ГЛАВНОЙ ========== */
.carbon-post.vip-post {
    background: linear-gradient(135deg, #1a202c, #161617) !important;
    border: 1px solid #f4b400 !important;
    box-shadow: 0 2px 20px 0 rgba(244, 180, 0, 0.2) !important;
}

.carbon-post.vip-post:hover {
    box-shadow: 0 5px 25px 0 rgba(244, 180, 0, 0.3) !important;
}

.carbon-post.vip-post .inner-wrapper h5 a {
    color: #f4b400 !important;
}

.carbon-post.vip-post .inner-wrapper h5 a:hover {
    color: #ffcc00 !important;
}

body.theme-light .carbon-post.vip-post {
    background: linear-gradient(135deg, #fff8e7, #ffffff) !important;
    border: 1px solid #f4b400 !important;
}

/* ========== VIP БЛОК НА ГЛАВНОЙ ========== */
.vip-premium-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vip-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(244, 180, 0, 0.3);
}
.vip-premium-card .card-body {
    min-height: 150px;
}
@media (max-width: 768px) {
    .vip-premium-card .card-body img {
        width: 60px !important;
        height: 60px !important;
    }
    .vip-premium-card h6 {
        font-size: 0.7rem;
    }
}

/* ========== КНОПКИ ЗАКРЫТИЯ В АЛЁРТАХ ========== */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.theme-light .btn-close {
    filter: invert(0);
}

/* Плавный переход */
body, .card, footer, .navbar, .btn {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Подсказки в тёмной теме */
body.theme-dark .form-text.bg-light,
body:not(.theme-light) .form-text.bg-light {
    background-color: #1a2332 !important;
    color: #a0aec0 !important;
    border: 1px solid #2d3748;
}
body:not(.theme-light) .form-text.bg-light code {
    background-color: #0d1117;
    color: #58a6ff;
}
body:not(.theme-light) .form-text.bg-light .text-info {
    color: #58a6ff !important;
}

.admin-url-block {
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}
body.theme-dark .admin-url-block {
    background-color: #1a3a2a !important;
    border-color: #2d5a3d !important;
    color: #a8d8b9 !important;
}
body.theme-dark .admin-url-block code {
    color: #7ddf90 !important;
}

/* VIP-блок в стиле компактных карточек */
    .vip-compact-card {
        transition: all 0.2s;
        border: 1px solid #f4b400 !important;
        background: linear-gradient(135deg, #1a202c, #161617) !important;
    }
    .vip-compact-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(244, 180, 0, 0.3) !important;
    }
    .vip-compact-card .card-body { padding: 0.6rem 0.8rem; }
    .vip-compact-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
    .vip-compact-title { font-weight: 600; font-size: 0.85rem; line-height: 1.2; }
    .vip-compact-title a { color: #f4b400 !important; text-decoration: none; }
    .vip-compact-title a:hover { color: #ffcc00 !important; }
    .vip-compact-desc { font-size: 0.75rem; color: #cbd5e0; margin-top: 2px; }
    .vip-compact-meta { font-size: 0.7rem; color: #a0aec0; }
    
    /* Светлая тема */
    body.theme-light .vip-compact-card {
        background: linear-gradient(135deg, #fff8e7, #ffffff) !important;
        border-color: #f4b400 !important;
    }
    body.theme-light .vip-compact-title a { color: #b45309 !important; }
    body.theme-light .vip-compact-desc { color: #4a5568; }
    body.theme-light .vip-compact-meta { color: #718096; }
    
    @media (max-width: 576px) {
        .vip-compact-thumb { width: 32px; height: 32px; }
        .vip-compact-title { font-size: 0.78rem; }
        .vip-compact-desc { font-size: 0.7rem; }
    }
	
	
    /* Hero-секция */
    .hero-section {
        background: linear-gradient(135deg, #000 0%, #232324 50%, #161617 100%);
        border-radius: 20px;
        overflow: hidden;
        position: relative;
    }
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(244, 180, 0, 0.08) 0%, transparent 70%);
        border-radius: 50%;
    }
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(0, 97, 242, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }
    .hero-content { position: relative; z-index: 1; }
    .hero-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(244, 180, 0, 0.5);
        box-shadow: 0 4px 20px rgba(244, 180, 0, 0.2);
        transition: transform 0.3s;
    }
    .hero-avatar:hover { transform: scale(1.05); }
    .hero-title {
        font-weight: 700;
        font-size: 1.5rem;
        background: linear-gradient(135deg, #f4b400, #ffcc00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hero-subtitle {
        color: #a0aec0;
        font-size: 0.95rem;
    }
    .hero-stats { gap: 1.5rem; margin-top: 1rem; }
    .hero-stat { text-align: center; }
    .hero-stat-value { font-weight: 700; font-size: 1.2rem; color: #f4b400; }
    .hero-stat-label { font-size: 0.7rem; color: #a0aec0; text-transform: uppercase; letter-spacing: 0.5px; }
    
    /* Светлая тема */
    body.theme-light .hero-section {
        background: linear-gradient(135deg, #bee3f8 0%, #e2e8f0 50%, #f8f9fa 100%);
    }
    body.theme-light .hero-title {
        background: linear-gradient(135deg, #b45309, #d97706);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    body.theme-light .hero-subtitle { color: #4a5568; }
    body.theme-light .hero-stat-value { color: #b45309; }
    body.theme-light .hero-stat-label { color: #718096; }
    body.theme-light .hero-avatar {
        border-color: rgba(180, 83, 9, 0.5);
        box-shadow: 0 4px 20px rgba(180, 83, 9, 0.15);
    }
    
    @media (max-width: 576px) {
        .hero-title { font-size: 1.2rem; }
        .hero-subtitle { font-size: 0.8rem; }
        .hero-stats { gap: 1rem; }
        .hero-stat-value { font-size: 1rem; }
        .hero-avatar { width: 60px; height: 60px; }
    }
	
	
	    /* Категории в стиле чипсов */
    .categories-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .category-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.8rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s;
        border: 1px solid #000;
        background: #232324;
        color: #a0aec0;
    }
    .category-chip:hover {
        background: #000;
        color: #e2e8f0;
        border-color: #1a3a6e;
        transform: translateY(-1px);
    }
    .category-chip.active {
        background: #0061f2;
        color: #fff;
        border-color: #0061f2;
        box-shadow: 0 2px 12px rgba(0, 97, 242, 0.3);
    }
    .category-chip .chip-count {
        font-size: 0.7rem;
        padding: 1px 7px;
        border-radius: 50px;
        background: rgba(255,255,255,0.1);
        color: inherit;
    }
    .category-chip.active .chip-count {
        background: rgba(255,255,255,0.25);
    }
    .category-chip .chip-icon {
        font-size: 0.7rem;
        opacity: 0.7;
    }
    
    /* Светлая тема */
    body.theme-light .category-chip {
        background: #ffffff;
        color: #4a5568;
        border-color: #e2e8f0;
    }
    body.theme-light .category-chip:hover {
        background: #f8f9fa;
        color: #1a202c;
        border-color: #cbd5e0;
    }
    body.theme-light .category-chip.active {
        background: #3182ce;
        color: #fff;
        border-color: #3182ce;
        box-shadow: 0 2px 12px rgba(49, 130, 206, 0.25);
    }
    
    @media (max-width: 576px) {
        .category-chip {
            padding: 0.3rem 0.6rem;
            font-size: 0.72rem;
        }
        .categories-wrapper {
            gap: 0.3rem;
        }
    }
	
	    .vip-post-card {
        border: 1px solid #f4b400 !important;
        background: linear-gradient(135deg, #1a202c, #161617) !important;
        position: relative;
        overflow: hidden;
    }
    .vip-post-card::before {
        content: "👑 VIP";
        position: absolute;
        top: 12px;
        right: -25px;
        background: #f4b400;
        color: #000;
        font-size: 0.65rem;
        font-weight: bold;
        padding: 3px 30px;
        transform: rotate(45deg);
        z-index: 2;
    }
    .vip-post-card .card-header {
        background: rgba(244, 180, 0, 0.15) !important;
        border-bottom-color: rgba(244, 180, 0, 0.3) !important;
    }
    .vip-post-title {
        color: #f4b400 !important;
    }
    .vip-post-card .post-detail-desc {
        color: #e2e8f0;
    }
    .vip-post-card .text-muted {
        color: #cbd5e0 !important;
    }
    
    /* Светлая тема для VIP */
    body.theme-light .vip-post-card {
        background: linear-gradient(135deg, #fff8e7, #ffffff) !important;
        border-color: #f4b400 !important;
    }
    body.theme-light .vip-post-title {
        color: #b45309 !important;
    }
    body.theme-light .vip-post-card .post-detail-desc {
        color: #1a202c;
    }
    body.theme-light .vip-post-card .text-muted {
        color: #4a5568 !important;
    }
	
	/* VIP-стили для левых карточек */
    .vip-left-card {
        border: 1px solid #f4b400 !important;
        background: linear-gradient(135deg, #1a202c, #161617) !important;
        position: relative;
        overflow: hidden;
    }
    .vip-left-card .card-header {
        background: rgba(244, 180, 0, 0.15) !important;
        border-bottom-color: rgba(244, 180, 0, 0.3) !important;
    }
    .vip-left-card .text-muted {
        color: #cbd5e0 !important;
    }
    
    body.theme-light .vip-left-card {
        background: linear-gradient(135deg, #fff8e7, #ffffff) !important;
        border-color: #f4b400 !important;
    }
    body.theme-light .vip-left-card .text-muted {
        color: #4a5568 !important;
    }
	
	/* VIP-пост в тёмной теме */
body.theme-dark .vip-post-card,
body.theme-dark .vip-left-card {
    background: linear-gradient(135deg, #1a202c, #161617) !important;
    border-color: #f4b400 !important;
}
body.theme-dark .vip-post-title {
    color: #f4b400 !important;
}

/* Блок реквизитов — адаптивный под тему */
.payment-card-box {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
}
.payment-card-box code {
    color: #1a202c;
    background: transparent;
    letter-spacing: 2px;
}

/* Тёмная тема */
body.theme-dark .payment-card-box {
    background: #1a202c;
    border-color: #2d3748;
}
body.theme-dark .payment-card-box code {
    color: #f4b400;
}

/* Бейджи в тёмной теме */
body.theme-dark .badge.bg-light,
body.theme-dark .badge.bg-secondary {
    background: #253545 !important;
    color: #e2e8f0 !important;
}
body.theme-dark .badge.bg-light.text-dark {
    color: #e2e8f0 !important;
}

/* ========== КНОПКИ В ТЁМНОЙ ТЕМЕ (базовая) ========== */
.btn-outline-secondary {
    color: #e2e8f0;
    border-color: #4a5568;
}
.btn-outline-secondary:hover,
.btn-outline-secondary.active {
    background: #253545;
    color: #fff;
    border-color: #718096;
}
.btn-outline-primary {
    border-color: #2a8bf2;
    color: #2a8bf2;
}
.btn-outline-info {
    border-color: #00bcd4;
    color: #00bcd4;
}
.btn-outline-warning {
    border-color: #f4b400;
    color: #f4b400;
}
.btn-outline-success {
    border-color: #00ac69;
    color: #00ac69;
}
.btn-outline-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Светлая тема — возвращаем стандартные Bootstrap */
body.theme-light .btn-outline-secondary {
    color: #4a5568;
    border-color: #cbd5e0;
    background: transparent;
}
body.theme-light .btn-outline-secondary:hover,
body.theme-light .btn-outline-secondary.active {
    background: #e2e8f0;
    color: #1a202c;
}
body.theme-light .btn-outline-primary {
    border-color: #3182ce;
    color: #3182ce;
}
body.theme-light .btn-outline-info {
    border-color: #00bcd4;
    color: #00bcd4;
}
body.theme-light .btn-outline-warning {
    border-color: #f6ad55;
    color: #f6ad55;
}
body.theme-light .btn-outline-success {
    border-color: #00ac69;
    color: #00ac69;
}
body.theme-light .btn-outline-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Карточки статистики в дашборде — тёмная обводка */
body.theme-dark .border.rounded.p-3,
body:not(.theme-light) .border.rounded.p-3 {
    border-color: #000 !important;
}
body.theme-dark .border.rounded.p-2,
body:not(.theme-light) .border.rounded.p-2 {
    border-color: #000 !important;
}
body.theme-dark .border-start-lg,
body:not(.theme-light) .border-start-lg {
    border-color: #000 !important;
}