/* =========================================================
   МОДАЛЬНЫЕ ОКНА — АККАУНТ И АВТОРИЗАЦИЯ
   ========================================================= */

.acc-modal .modal-dialog { max-width: 430px; }

.acc-modal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
}

.acc-modal .modal-header {
    background: linear-gradient(135deg, #356AE6 0%, #2856C7 100%);
    color: #fff;
    border: 0;
    padding: 22px 24px;
}

.acc-modal .modal-header .acc-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.acc-modal .modal-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .2px;
}

.acc-modal .modal-header :is(h1, h2, h3, h4, h5, h6) { color: #fff; }

.acc-modal .modal-header small {
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}

.acc-modal .modal-body {
    padding: 26px 24px;
    background: #fff;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.acc-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
    transition: transform .25s ease;
}

.acc-avatar:hover { transform: scale(1.04); }

.acc-login {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bs-body-color, #111827);
}

.acc-profile-link {
    font-size: .82rem;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}

.acc-profile-link:hover { color: #111827; }

/* --- ОБНОВЛЕННАЯ КНОПКА ПАНЕЛИ УПРАВЛЕНИЯ --- */
.acc-admin-btn {
    background: linear-gradient(135deg, #356AE6 0%, #2856C7 100%);
    color: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 500;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform .2s, box-shadow .2s, filter .2s;
    box-shadow: 0 6px 20px -8px rgba(33, 99, 232, .5);
}

.acc-admin-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 26px -8px rgba(33, 99, 232, .65);
}

.acc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
    text-decoration: none;
    color: #1f2937;
    font-size: .85rem;
    font-weight: 500;
    min-height: 58px;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.acc-item:hover {
    background: #fff;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .2);
}

.acc-item .ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.ico-green  { background: #ecfdf5; color: #059669; }
.ico-blue   { background: #eff6ff; color: #2563eb; }
.ico-orange { background: #fff7ed; color: #ea580c; }
.ico-yellow { background: #fefce8; color: #ca8a04; }
.ico-purple { background: #f5f3ff; color: #7c3aed; }
.ico-teal   { background: #f0fdfa; color: #0d9488; }

.acc-item .flex-grow-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-item .acc-badge {
    font-size: .68rem;
    padding: 2px 7px;
    flex-shrink: 0;
    background: #dc2626;
    color: #fff;
}

.acc-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.acc-badge[data-count="0"],
.acc-badge:empty { display: none; }

.acc-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid #fee2e2;
    color: #dc2626;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
    margin-top: auto;
}

.acc-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.acc-field-label {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
    display: block;
}

.acc-input-group {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color .2s, background .2s;
    overflow: hidden;
}

.acc-input-group:focus-within {
    border-color: #1f2937;
    background: #fff;
}

.acc-input-group .lead-ico {
    padding: 0 14px;
    color: #9ca3af;
    font-size: .9rem;
}

.acc-input-group .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 12px 14px 12px 0;
    font-size: .92rem;
}

.acc-input-group .form-control::placeholder { color: #9ca3af; }

.acc-forgot {
    font-size: .78rem;
    color: #6b7280;
    text-decoration: none;
}

.acc-forgot:hover {
    color: #111827;
    text-decoration: underline;
}

/* --- ОБНОВЛЕННАЯ КНОПКА ВХОДА (для единого стиля) --- */
.acc-submit {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #356AE6 0%, #2856C7 100%);
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
    box-shadow: 0 8px 22px -8px rgba(33, 99, 232, .6);
}

.acc-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px -8px rgba(33, 99, 232, .75);
}

.acc-submit:active { transform: translateY(0); }

.acc-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: .78rem;
    margin: 22px 0 16px;
}

.acc-divider::before,
.acc-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.acc-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
}

.acc-social-btn:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.acc-social-btn.vk        { color: #0077FF; border-color: #0077FF33; background: #0077FF10; }
.acc-social-btn.vk:hover  { background: #0077FF; color: #fff; border-color: #0077FF; }

.acc-social-btn.yandex        { color: #FC3F1D; border-color: #FC3F1D33; background: #FC3F1D10; }
.acc-social-btn.yandex:hover  { background: #FC3F1D; color: #fff; border-color: #FC3F1D; }

.acc-social-btn.google        { color: #DB4437; border-color: #DB443733; background: #DB443710; }
.acc-social-btn.google:hover  { background: #DB4437; color: #fff; border-color: #DB4437; }

.acc-social-btn.facebook        { color: #1877F2; border-color: #1877F233; background: #1877F210; }
.acc-social-btn.facebook:hover  { background: #1877F2; color: #fff; border-color: #1877F2; }

.acc-social-btn.ok        { color: #EE8208; border-color: #EE820833; background: #EE820810; }
.acc-social-btn.ok:hover  { background: #EE8208; color: #fff; border-color: #EE8208; }

.acc-social-btn.mailru        { color: #005FF9; border-color: #005FF933; background: #005FF910; }
.acc-social-btn.mailru:hover  { background: #005FF9; color: #fff; border-color: #005FF9; }

.acc-register {
    font-size: .85rem;
    color: #6b7280;
}

.acc-register a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.acc-register a:hover {
    color: #111827;
    text-decoration: underline;
}

.acc-modal .form-check-input {
    background-color: #f9fafb;
    border-color: #d1d5db;
    cursor: pointer;
}

.acc-modal .form-check-input:checked {
    background-color: #1f2937;
    border-color: #1f2937;
}

.acc-modal .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(31, 41, 55, .15);
}

/* ---------- ТЁМНАЯ ТЕМА (аккаунт) ---------- */

[data-bs-theme="dark"] .acc-modal .modal-content,
[data-bs-theme="dark"] .acc-modal .modal-body {
    background: var(--bs-body-bg, #212529);
    color: var(--bs-body-color, #dee2e6);
}

[data-bs-theme="dark"] .acc-modal .modal-title,
[data-bs-theme="dark"] .acc-modal .modal-header :is(h1, h2, h3, h4, h5, h6) { color: #fff; }

[data-bs-theme="dark"] .acc-login { color: #f9fafb; }
[data-bs-theme="dark"] .acc-profile-link { color: #60a5fa; }
[data-bs-theme="dark"] .acc-profile-link:hover { color: #93c5fd; }

[data-bs-theme="dark"] .acc-item {
    color: #e5e7eb;
    background: #111827;
    border: 1px solid #1f2937;
}

[data-bs-theme="dark"] .acc-item:hover {
    color: #fff;
    background: #1a2332;
    border-color: #374151;
}

[data-bs-theme="dark"] .acc-logout {
    color: #f87171;
    border-color: rgba(220, 38, 38, .25);
}

[data-bs-theme="dark"] .acc-logout:hover {
    color: #fca5a5;
    background: rgba(220, 38, 38, .08);
}

[data-bs-theme="dark"] .acc-field-label { color: #e5e7eb; }

[data-bs-theme="dark"] .acc-input-group {
    background: #111827;
    border-color: #374151;
}

[data-bs-theme="dark"] .acc-input-group:focus-within {
    border-color: #60a5fa;
    background: #0f1720;
}

[data-bs-theme="dark"] .acc-input-group .form-control { color: #f9fafb; }
[data-bs-theme="dark"] .acc-input-group .form-control::placeholder { color: #6b7280; }
[data-bs-theme="dark"] .acc-input-group .lead-ico { color: #6b7280; }
[data-bs-theme="dark"] .acc-forgot { color: #9ca3af; }
[data-bs-theme="dark"] .acc-forgot:hover { color: #f3f4f6; }
[data-bs-theme="dark"] .acc-divider { color: #6b7280; }

[data-bs-theme="dark"] .acc-divider::before,
[data-bs-theme="dark"] .acc-divider::after { background: #374151; }

[data-bs-theme="dark"] .acc-social-btn {
    background: #111827;
    border-color: #374151;
}

[data-bs-theme="dark"] .acc-social-btn:hover {
    background: #1a2332;
    border-color: #4b5563;
    color: #fff;
}

[data-bs-theme="dark"] .acc-register { color: #9ca3af; }
[data-bs-theme="dark"] .acc-register a { color: #60a5fa; }
[data-bs-theme="dark"] .acc-register a:hover { color: #93c5fd; }

[data-bs-theme="dark"] .acc-modal .form-check-input {
    background-color: #111827;
    border-color: #4b5563;
}

[data-bs-theme="dark"] .acc-modal .form-check-input:checked {
    background-color: #60a5fa;
    border-color: #60a5fa;
}

[data-bs-theme="dark"] .acc-modal .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(96, 165, 250, .2);
}

/* ---------- АДАПТИВНОСТЬ (аккаунт) ---------- */

@media (max-width: 575.98px) {
    .acc-modal .modal-dialog { max-width: none; margin: .5rem; }
    .acc-modal .modal-content { border-radius: 19px; max-height: calc(100vh - 1rem); }
    .acc-modal .modal-header { padding: 18px 20px; }
    .acc-modal .modal-header .acc-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
    .acc-modal .modal-body { padding: 20px 18px; }
    .acc-avatar { width: 68px; height: 68px; }
    .acc-social-btn { width: 42px; height: 42px; font-size: 14px; }
    .acc-item { font-size: .8rem; padding: 10px; min-height: 54px; }
    .acc-item .ico { width: 30px; height: 30px; font-size: 12px; }
}

@media (max-width: 380px) {
    .acc-modal .modal-header { padding: 15px 16px; }
    .acc-modal .modal-body { padding: 16px 14px; }
    .acc-social-btn { width: 38px; height: 38px; font-size: 13px; }
    .acc-item { font-size: .76rem; gap: 8px; padding: 9px; min-height: 50px; }
    .acc-item .ico { width: 28px; height: 28px; font-size: 11px; }
    .acc-item .flex-grow-1 { white-space: normal; line-height: 1.2; }
    .acc-avatar { width: 64px; height: 64px; }
}

/* =====================================================
   BLOGZINE — FEEDBACK PAGE
   DLE 21 | Bootstrap 5.3.8
   ===================================================== */

.feedback-page {
    --fb-accent: #356AE6;
    --fb-accent-hover: #2856C7;

    --fb-bg: #FFFFFF;
    --fb-surface: #EEF1F5;
    --fb-input: #F5F6F8;
    --fb-border: #E7EAF0;

    --fb-text: #172033;
    --fb-muted: #8993A3;

    --fb-radius: 14px;

    min-width: 0;
    color: var(--fb-text);
}

[data-bs-theme="dark"] .feedback-page,
.dark .feedback-page,
body.dark .feedback-page {
    --fb-bg: #0B111B;
    --fb-surface: #131D2B;
    --fb-input: #101927;
    --fb-border: #253247;

    --fb-text: #F1F5FB;
    --fb-muted: #9AA6B7;
}

/* HEADER */

.feedback-header {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 24px;
    margin-bottom: 22px;

    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 18px;
}

.feedback-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 56px;
    width: 56px;
    height: 56px;

    color: #FFFFFF;
    background: var(--fb-accent);
    border-radius: 15px;

    font-size: 24px;
}

.feedback-header-content {
    min-width: 0;
}

.feedback-title {
    margin: 0 0 6px;
    color: var(--fb-text);
    font-size: 25px;
    font-weight: 750;
    line-height: 1.3;
}

.feedback-intro {
    margin: 0;
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* INFORMATION */

.feedback-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    padding: 14px 16px;
    margin-bottom: 24px;

    color: var(--fb-muted);
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: 12px;

    font-size: 13px;
    line-height: 1.65;
}

.feedback-note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--fb-accent);
    font-size: 16px;
}

/* HONEYPOT */

.feedback-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* GRID */

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.feedback-field {
    min-width: 0;
    margin-bottom: 20px;
}

.feedback-grid .feedback-field {
    margin-bottom: 0;
}

/* LABELS */

.feedback-page .form-label {
    display: block;
    margin-bottom: 8px;

    color: var(--fb-text);
    font-size: 14px;
    font-weight: 650;
}

.feedback-page .required-mark {
    color: var(--fb-accent);
}

.feedback-page .form-text {
    display: block;
    margin-top: 7px;

    color: var(--fb-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* INPUTS */

.feedback-page .form-control,
.feedback-page input[type="text"],
.feedback-page input[type="email"],
.feedback-page textarea,
.feedback-page select {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 11px 14px;

    color: var(--fb-text);
    background: var(--fb-input);
    border: 1px solid var(--fb-border);
    border-radius: 10px;

    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.feedback-page textarea {
    min-height: 165px;
    resize: vertical;
}

.feedback-page .form-control::placeholder,
.feedback-page input::placeholder,
.feedback-page textarea::placeholder {
    color: var(--fb-muted);
    opacity: .8;
}

.feedback-page .form-control:focus,
.feedback-page input:focus,
.feedback-page textarea:focus,
.feedback-page select:focus {
    color: var(--fb-text);
    background: var(--fb-input);
    border-color: var(--fb-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 106, 230, .16);
}

/* RECIPIENT */

.feedback-recipient {
    display: flex;
    align-items: center;

    min-height: 46px;
   /* padding: 11px 14px; */

    color: var(--fb-text);
   /* background: var(--fb-surface); */
    border: 1px solid var(--fb-border);
    border-radius: 10px;

    font-size: 14px;
}

.feedback-recipient select {
    width: 100%;
    min-width: 0;
    color: var(--fb-text);
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
}

/* PANELS */

.feedback-panel {
    padding: 20px;
    margin-bottom: 20px;

    color: var(--fb-text);
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
}

.feedback-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 16px;

    color: var(--fb-text);
    font-size: 16px;
    font-weight: 700;
}

.feedback-panel-title i {
    color: var(--fb-accent);
    font-size: 18px;
}

/* FILE UPLOAD */

.feedback-file-label {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px;

    background: var(--fb-surface);
    border: 1px dashed var(--fb-border);
    border-radius: 12px;

    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.feedback-file-label:hover {
    background: rgba(53, 106, 230, .05);
    border-color: var(--fb-accent);
}

.feedback-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    color: var(--fb-accent);
    background: rgba(53, 106, 230, .1);
    border-radius: 11px;

    font-size: 21px;
}

.feedback-file-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.feedback-file-text strong {
    color: var(--fb-text);
    font-size: 14px;
    font-weight: 700;
}

.feedback-file-text span {
    color: var(--fb-muted);
    font-size: 12px;
}

.feedback-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.feedback-file-input:focus-visible + .feedback-file-label {
    outline: 2px solid var(--fb-accent);
    outline-offset: 3px;
}

/* CAPTCHA */

.feedback-captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.feedback-captcha-image {
    display: flex;
    align-items: center;
    min-height: 46px;
}

.feedback-captcha-input {
    flex: 1 1 220px;
    min-width: 0;
}

.feedback-captcha {
    overflow: hidden;
}

.feedback-captcha iframe {
    max-width: 100%;
}

/* SUBMIT */

.feedback-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 26px;
}

.feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 49px;
    padding: 12px 24px;

    color: #FFFFFF;
    background: var(--fb-accent);
    border: 1px solid var(--fb-accent);
    border-radius: 11px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.feedback-submit:hover {
    color: #FFFFFF;
    background: var(--fb-accent-hover);
    border-color: var(--fb-accent-hover);
    transform: translateY(-1px);
}

.feedback-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--bz-primary-rgb, 53, 106, 230), .22);
}

.feedback-submit i {
    font-size: 16px;
}

/* DARK THEME */

[data-bs-theme="dark"] .feedback-page .feedback-header,
[data-bs-theme="dark"] .feedback-page .feedback-panel,
.dark .feedback-page .feedback-header,
.dark .feedback-page .feedback-panel,
body.dark .feedback-page .feedback-header,
body.dark .feedback-page .feedback-panel {
    background: var(--fb-bg);
    border-color: var(--fb-border);
}

/* RESPONSIVE */

@media (max-width: 767.98px) {
    .feedback-header {
        gap: 12px;
        padding: 17px;
    }

    .feedback-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .feedback-title {
        font-size: 21px;
    }

    .feedback-intro {
        font-size: 13px;
    }

    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }

    .feedback-panel {
        padding: 16px;
    }

    .feedback-actions {
        margin-top: 20px;
    }

    .feedback-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .feedback-note {
        padding: 12px;
        font-size: 12px;
    }

    .feedback-page textarea {
        min-height: 140px;
    }

    .feedback-file-label {
        padding: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feedback-page *,
    .feedback-page *::before,
    .feedback-page *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   PREMIUM STATS DASHBOARD
   ========================================================= */

.stats-page {
    --stats-radius: 16px;
    --stats-border: rgba(0, 0, 0, .07);
    --stats-muted: #6c757d;
    --stats-primary: #356AE6;
    --stats-success: #198754;
    --stats-warning: #d99b00;
    --stats-info: #079bb7;
    padding-bottom: 2rem;
}

.stats-header { display: flex; align-items: flex-end; justify-content: space-between; }

.stats-eyebrow {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
    color: var(--stats-primary);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.stats-eyebrow i { font-size: .75rem; }
.stats-page .page-title { font-weight: 700; letter-spacing: -.035em; }
.stats-page .text-body-reset { color: var(--stats-muted); }

.stats-page .card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stats-border);
    border-radius: var(--stats-radius);
    background: var(--bs-body-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .025), 0 5px 18px rgba(0, 0, 0, .025);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.stats-page .card:hover {
    border-color: rgba(53, 106, 230, .12);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .055);
}

.stats-period-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: .8;
}

.stats-period-day::before   { background: var(--stats-primary); }
.stats-period-week::before  { background: var(--stats-success); }
.stats-period-month::before { background: var(--stats-warning); }

.stats-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.15rem;
}

.stats-icon-primary { color: var(--stats-primary); background: rgba(53, 106, 230, .09); }
.stats-icon-success { color: var(--stats-success); background: rgba(25, 135, 84, .09); }
.stats-icon-warning { color: #c58b00; background: rgba(255, 193, 7, .13); }
.stats-icon-info    { color: var(--stats-info);    background: rgba(13, 202, 240, .11); }

.stats-page .card-title { font-weight: 650; letter-spacing: -.015em; }

.stats-list { display: flex; flex-direction: column; }

.stats-list-row {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, .045);
    transition: background-color .15s, padding .15s;
}

.stats-list-row:last-child { border-bottom: 0; }

.stats-list-row:hover {
    margin-left: -.35rem;
    margin-right: -.35rem;
    padding-left: .35rem;
    padding-right: .35rem;
    border-radius: 9px;
    background: rgba(53, 106, 230, .025);
}

/* FIX: scoped под .stats-page, чтобы не конфликтовать с userinfo */
.stats-page .row-icon {
    width: 31px;
    height: 31px;
    margin-right: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .8rem;
}

.stats-page .row-icon-primary { color: var(--stats-primary); background: rgba(53, 106, 230, .08); }
.stats-page .row-icon-warning { color: #c58b00; background: rgba(255, 193, 7, .12); }
.stats-page .row-icon-info    { color: var(--stats-info);    background: rgba(13, 202, 240, .1); }

/* FIX: scoped под .stats-page */
.stats-page .stat-value {
    color: var(--bs-emphasis-color, var(--bs-body-color, #212529));
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.stats-page .comments-value {
    color: var(--bs-emphasis-color, var(--bs-body-color, #212529));
    font-size: 2.65rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.055em;
}

.stats-page .database-value {
    color: var(--bs-emphasis-color, var(--bs-body-color, #212529));
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.025em;
}

.stats-section-title { min-height: 38px; }
.section-line { height: 1px; background: var(--bs-border-color); opacity: .75; }

.main-stats-list { display: flex; flex-direction: column; gap: .15rem; }

.main-stat-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem .65rem;
    border-radius: 9px;
    transition: background-color .15s;
}

.main-stat-row:hover { background: rgba(53, 106, 230, .025); }

.comments-total { padding-top: .25rem; }

.comments-button {
    min-height: 40px;
    border-radius: 9px;
    font-weight: 600;
    transition: transform .15s, background-color .15s, border-color .15s;
}

.comments-button:hover { transform: translateY(-1px); }
.comments-button i:last-child { transition: transform .15s; }
.comments-button:hover i:last-child { transform: translateX(3px); }

.stats-database-card { background: linear-gradient(120deg, rgba(53, 106, 230, .035), transparent 55%); }

.stats-topusers-card { overflow: hidden; }
.stats-users-table { --bs-table-bg: transparent; }
.stats-users-table > tbody > tr { transition: background-color .15s; }
.stats-users-table > tbody > tr:hover { background-color: rgba(53, 106, 230, .035); }
.stats-users-table > tbody > tr > td { border-color: rgba(0, 0, 0, .055); }

.stats-users-table a {
    color: var(--bs-emphasis-color, var(--bs-body-color, #212529));
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}

.stats-users-table a:hover { color: var(--stats-primary); }

/* ---------- ТЁМНАЯ ТЕМА (stats) ---------- */

[data-bs-theme="dark"] .stats-page {
    --stats-border: rgba(255, 255, 255, .08);
    --stats-muted: #9AA6B7;
}

[data-bs-theme="dark"] .stats-page .card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 7px 22px rgba(0, 0, 0, .14);
}

[data-bs-theme="dark"] .stats-page .card:hover {
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2), 0 14px 34px rgba(0, 0, 0, .2);
}

[data-bs-theme="dark"] .stats-list-row { border-bottom-color: rgba(255, 255, 255, .06); }

[data-bs-theme="dark"] :is(.stats-list-row, .main-stat-row):hover {
    background: rgba(255, 255, 255, .025);
}

[data-bs-theme="dark"] .stats-database-card {
    background: linear-gradient(120deg, rgba(53, 106, 230, .075), transparent 60%);
}

[data-bs-theme="dark"] .stats-users-table > tbody > tr:hover {
    background-color: rgba(255, 255, 255, .035);
}

[data-bs-theme="dark"] .stats-users-table > tbody > tr > td {
    border-color: rgba(255, 255, 255, .06);
}

/* ---------- АДАПТИВНОСТЬ (stats) ---------- */

@media (max-width: 767.98px) {
    .stats-page { padding-bottom: 1rem; }
    .stats-page .card-body { padding: 1.25rem; }
    .stats-icon { width: 43px; height: 43px; flex-basis: 43px; }
    .stats-page .comments-value { font-size: 2.25rem; }
}

@media (max-width: 575.98px) {
    .stats-header { align-items: flex-start; }
    .stats-page .page-title { font-size: 1.3rem; }
    .stats-eyebrow { font-size: .62rem; }
    .stats-page .card-title { font-size: .94rem; }
    .stats-page .small.text-body-reset { font-size: .77rem; }
    /* FIX: scoped */
    .stats-page .stat-value { font-size: .98rem; }
    .stats-page .comments-value { font-size: 2rem; }
    .stats-page .database-value { font-size: 1.15rem; }
    .stats-section-title { gap: .7rem; }
}

/* =========================================================
   BLOGZINE ARTICLE PAGE
   ========================================================= */

.blogzine-article-page {
    --news-radius: 1rem;
    --news-radius-sm: .5rem;
    --news-transition: .25s ease;
    --news-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --news-color-views: #2856C7;
    --news-color-comments: #8b5cf6;
    --news-color-likes: #22c55e;
    --news-color-dislikes: #ef4444;
    color: var(--bs-body-color);
}

/* ---------- HERO ---------- */

.news-hero {
    position: relative;
    min-height: 420px;
    border: 0;
    border-radius: var(--news-radius);
    background-color: var(--bs-dark);
    overflow: hidden;
    isolation: isolate;
}

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

.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.88) 100%);
    pointer-events: none;
}

.news-hero .card-img-overlay { z-index: 2; }
.news-hero-content { max-width: 900px; }

/* FIX: чуть крупнее минимум для мобильных */
.news-hero-title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    margin: 0;
}

.news-hero .text-white-force,
.news-hero .text-white-force :is(a, span, time, i, div, li, ul) {
    color: #fff;
}

.news-hero .text-white-force a:hover { color: rgba(255, 255, 255, .75); }

.news-category,
.news-important {
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .45em .85em;
    border-radius: var(--bs-border-radius-pill);
}

.news-category { transition: transform var(--news-transition), box-shadow var(--news-transition); }

.news-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), .4);
}

.news-category i { font-size: .5em; }

.news-important {
    background-color: var(--bs-warning);
    color: var(--bs-dark);
    box-shadow: 0 2px 8px rgba(var(--bs-warning-rgb), .4);
}

.news-meta {
    row-gap: .5rem;
    column-gap: 1.25rem;
    font-size: .9rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.news-meta .nav-item { display: inline-flex; align-items: center; }

.news-meta-item {
    display: inline-flex;
    align-items: center;
    color: inherit;
    transition: opacity var(--news-transition);
}

.news-meta-item:hover { opacity: .85; }
.news-meta .avatar-img { border: 2px solid rgba(255, 255, 255, .35); }

/* ---------- ОСНОВНОЙ ТЕКСТ ---------- */

/* Основной текст статьи */
.news .main_text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--bs-body-color);
}

/* Отступы между блоками */
.news .main_text > * + * {
    margin-top: 1rem;
}

/* Изображения */
.news .main_text img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--news-radius-sm);
}

/* Цитаты */
.news .main_text blockquote {
    border-left: 4px solid var(--bs-primary);
    padding: .75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(var(--bs-primary-rgb), .06);
    border-radius: 0 var(--news-radius-sm) var(--news-radius-sm) 0;
    font-style: italic;
}

/* Заголовки */
.news .main_text :is(h2, h3, h4) {
    font-weight: 700;
    margin-top: 2rem;
    color: var(--bs-emphasis-color);
}

/* Буквица Blogzine — только при наличии класса dropcap */
.news .main_text .dropcap {
    display: block;
    float: left;
    font-size: 4em;
    font-weight: 700;
    line-height: 1;
    margin: 0.04em 0.2em 0 0;
    color: var(--bs-gray-800);
}

.news-edit-note {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    background: rgba(var(--bs-primary-rgb), .06);
    border-left: 4px solid var(--bs-primary);
    border-radius: 0 var(--news-radius-sm) var(--news-radius-sm) 0;
    font-size: .92rem;
    color: var(--bs-body-color);
}

.news-edit-note__icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--bs-primary);
    line-height: 1.4;
}

/* ---------- ПАГИНАЦИЯ ---------- */

.news-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; }

.news-pages a,
.news-pages > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border-radius: var(--news-radius-sm);
    font-weight: 600;
    text-decoration: none;
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
    transition: background var(--news-transition), color var(--news-transition);
}

.news-pages a:hover { background: var(--bs-primary); color: #fff; }

.news-pages :is(.active, .current) { background: var(--bs-primary); color: #fff; }

/* FIX: focus-visible для пагинации */
.news-pages a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ---------- ЗАГОЛОВКИ БЛОКОВ ---------- */

.news-block-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-emphasis-color);
}

.news-block-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
    font-size: .95rem;
}

.news-block-title__icon--tags { background: rgba(139, 92, 246, .12); color: #8b5cf6; }

/* ---------- ТЕГИ ---------- */

.news-tags__list { display: flex; flex-wrap: wrap; gap: .5rem; }

.news-tags__list a {
    display: inline-flex;
    align-items: center;
    padding: .4em .9em;
    font-size: .85rem;
    font-weight: 500;
    border-radius: var(--bs-border-radius-pill);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background var(--news-transition), color var(--news-transition), transform var(--news-transition);
}

.news-tags__list a:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* FIX: focus-visible для тегов */
.news-tags__list a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ---------- ОПРОС ---------- */

.news-poll {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow-sm);
}

.news-poll__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.news-poll__content { flex: 1; min-width: 0; }

/* ---------- СТАТИСТИКА ПУБЛИКАЦИИ ---------- */

.news-statistics-wrapper { display: flex; }

.news-statistics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow-sm);
}

.news-statisticsitems { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

.news-statisticsitem {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: opacity var(--news-transition), color var(--news-transition);
}

/* FIX: hover только у ссылок, не у div */
a.news-statisticsitem:hover { color: var(--bs-body-color); opacity: .75; }

.news-statisticslabel {
    font-weight: 400;
    font-size: .85rem;
    /* FIX: вместо opacity — secondary-color */
    color: var(--bs-body-color);
}

.news-color-views    { color: var(--news-color-views); }
.news-color-comments { color: var(--news-color-comments); }
.news-color-likes    { color: var(--news-color-likes); }
.news-color-dislikes { color: var(--news-color-dislikes); }

.article-edit-action { flex-shrink: 0; }

/* FIX: scoped, т.к. используется только в article-page */
.blogzine-article-page .icon-action-light {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4em .85em;
    font-size: .85rem;
    font-weight: 500;
    border-radius: var(--news-radius-sm);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background var(--news-transition), color var(--news-transition);
}

.blogzine-article-page .icon-action-light:hover { background: var(--bs-primary); color: #fff; }

.blogzine-article-page .icon-action-light:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ---------- ОЦЕНКА СТАТЬИ ---------- */

.news-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .06), rgba(139, 92, 246, .06));
    border: 1px solid var(--bs-border-color);
    border-radius: var(--news-radius);
}

.news-rating__info { display: flex; align-items: center; gap: .9rem; }

.news-rating__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(239, 68, 68, .12);
    color: var(--news-color-dislikes);
    font-size: 1.25rem;
}

.news-rating__title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--bs-body-color); }

.news-rating__subtitle { font-size: .88rem; margin: .15rem 0 0; color: var(--bs-body-color); }

.news-rating__buttons { display: flex; gap: .6rem; }

.news-rating__button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5em 1.1em;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--bs-border-radius-pill);
    cursor: pointer;
    user-select: none;
    border: 0;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: transform var(--news-transition), background var(--news-transition), color var(--news-transition), box-shadow var(--news-transition);
}

/* FIX: focus-visible для кнопок рейтинга */
.news-rating__button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.news-rating__button--like { background: rgba(34, 197, 94, .12); color: #16a34a; }

.news-rating__button--like:hover {
    background: var(--news-color-likes);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, .35);
}

.news-rating__button--dislike { background: rgba(239, 68, 68, .12); color: #dc2626; }

.news-rating__button--dislike:hover {
    background: var(--news-color-dislikes);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .35);
}

/* FIX: состояние "уже проголосовал" */
.news-rating__button[aria-pressed="true"] {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}

/* ---------- ПОХОЖИЕ СТАТЬИ ---------- */

.news-related {
    padding: 1.5rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow-sm);
}

.news-related__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.news-related__heading { display: flex; align-items: center; gap: .85rem; }

.news-related__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.news-related__title { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--bs-body-color); }

.news-related__subtitle { font-size: .88rem; margin: .15rem 0 0; color: var(--bs-body-color); }

.news-related__label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35em .85em;
    font-size: .82rem;
    font-weight: 600;
    border-radius: var(--bs-border-radius-pill);
    background: rgba(53, 106, 230, .12);
    color: #356AE6;
}

.news-related__content { position: relative; }

/* ---------- КОММЕНТАРИИ / ОБСУЖДЕНИЕ ---------- */

.news-discussion {
    padding: 1.5rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow-sm);
}

.news-discussion__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.news-discussion__heading { display: flex; align-items: center; gap: .85rem; }

.news-discussion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.news-discussion__title { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--bs-body-color); }

.news-discussion__subtitle { font-size: .88rem; margin: .15rem 0 0; color: var(--bs-body-color); }

.news-discussion__counter {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35em .9em;
    font-size: .85rem;
    font-weight: 600;
    border-radius: var(--bs-border-radius-pill);
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
}

.news-discussion__comments,
.news-discussion__navigation { margin-bottom: 1rem; }

.news-discussion__form { margin-top: 1rem; }

/* ---------- АДАПТИВНОСТЬ ---------- */

@media (max-width: 767.98px) {
    .news-hero { min-height: 320px; }
    .news-statistics { flex-direction: column; align-items: flex-start; }
    .news-statisticsitems { gap: .85rem; }
    .news-rating { flex-direction: column; align-items: flex-start; }
    .news-related__header,
    .news-discussion__header { flex-direction: column; align-items: flex-start; }
    .news-related,
    .news-discussion,
    .news-poll { padding: 1.1rem; }
}

@media (max-width: 575.98px) {
    .news-hero { min-height: 260px; border-radius: var(--news-radius-sm); }
    .news-statisticsitems { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .news-rating__buttons { width: 100%; }
    .news-rating__button { flex: 1; justify-content: center; }
}

/* ---------- ТЁМНАЯ ТЕМА ---------- */

[data-bs-theme="dark"] :is(.news-statistics, .news-poll, .news-related, .news-discussion) {
    background: transparent;
    border-color: var(--bs-border-color);
    /* FIX: чуть заметнее тень в тёмной теме */
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

[data-bs-theme="dark"] .blogzine-article-page,
[data-bs-theme="dark"] .blogzine-article-page > :is(.card, article) {
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] :is(.news-tags__list a, .blogzine-article-page .icon-action-light, .news-pages a, .news-pages > span) {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] :is(.news-tags__list a, .blogzine-article-page .icon-action-light, .news-pages a):hover {
    background: var(--bs-primary);
    color: #fff;
}

[data-bs-theme="dark"] .news-edit-note { background: rgba(var(--bs-primary-rgb), .12); }

[data-bs-theme="dark"] .news-rating {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .1), rgba(139, 92, 246, .1));
}

/* FIX: контрастнее фиолетовый бейдж в тёмной теме */
[data-bs-theme="dark"] .news-related__label {
    background: rgba(53, 106, 230, .20);
    color: #C4B5FD;
}

[data-bs-theme="dark"] .news-hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.7) 55%, rgba(0,0,0,.95) 100%);
}

/* =========================================================
   DLE 21 USERINFO
   ========================================================= */

.userinfo-card {
    --ui-primary: #356AE6;
    --ui-purple: #6f42c1;
    --ui-green: #198754;
    --ui-red: #dc3545;
    --ui-orange: #fd7e14;
    --ui-yellow: #997404;
    --ui-cyan: #087990;
    --ui-pink: #d63384;
    --ui-muted: #6c757d;
    --ui-border: rgba(0, 0, 0, .08);
    --ui-radius: 18px;
    --ui-box-radius: 16px;
    --ui-control-radius: 10px;

    width: 100%;
    min-width: 0;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
    overflow: hidden;
    isolation: isolate;
}

.userinfo-card *,
.userinfo-card *::before,
.userinfo-card *::after { box-sizing: border-box; }

.userinfo-card :is(img, video, iframe, embed, object) { max-width: 100%; }
.userinfo-card img { height: auto; }
.userinfo-card iframe { border: 0; }
.userinfo-card a { text-decoration: none; }
.userinfo-card a:hover { text-decoration: none; }
.userinfo-card :is(button, input, textarea, select) { font: inherit; }
.userinfo-card :is(input, textarea, select) { max-width: 100%; }
.userinfo-card :focus { outline: none; }
.userinfo-card :focus-visible { outline: 2px solid rgba(53, 106, 230, .65); outline-offset: 2px; }

.userinfo-card .icon-blue   { color: var(--ui-primary); }
.userinfo-card .icon-purple { color: var(--ui-purple); }
.userinfo-card .icon-green  { color: var(--ui-green); }
.userinfo-card .icon-red    { color: var(--ui-red); }
.userinfo-card .icon-orange { color: var(--ui-orange); }
.userinfo-card .icon-yellow { color: var(--ui-yellow); }
.userinfo-card .icon-cyan   { color: var(--ui-cyan); }
.userinfo-card .icon-pink   { color: var(--ui-pink); }

/* ---------- PROFILE HEADER ---------- */

.profile-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(53, 106, 230, .07), rgba(53, 106, 230, .04));
    border-bottom: 1px solid var(--ui-border);
}

.profile-header-inner { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.profile-avatar-wrap { flex: 0 0 auto; }
.profile-main { min-width: 0; flex: 1 1 auto; }
.profile-avatar { position: relative; width: 120px; height: 120px; }

.profile-avatar img {
    display: block;
    width: 120px;
    height: 120px;
    max-width: none;
    object-fit: cover;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    border: 4px solid var(--bs-body-bg);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.profile-online {
    position: absolute;
    right: 4px;
    bottom: 5px;
    width: 19px;
    height: 19px;
    background: #20c997;
    border: 4px solid var(--bs-body-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, .15);
}

.profile-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; min-width: 0; }

.profile-title {
    margin: 0;
    max-width: 100%;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.profile-group {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .3rem .65rem;
    color: var(--ui-primary);
    background: rgba(53, 106, 230, .08);
    border: 1px solid rgba(53, 106, 230, .15);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-status { margin-top: .45rem; }

.status { display: inline-flex; align-items: center; gap: .4rem; color: var(--ui-muted); font-size: .85rem; }

.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.status-online .status-dot { background: #20c997; box-shadow: 0 0 0 3px rgba(32, 201, 151, .12); }
.status-offline .status-dot { background: #adb5bd; }

.profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 38px;
    max-width: 100%;
    padding: .5rem .75rem;
    border: 1px solid;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}

.profile-action i { flex: 0 0 auto; font-size: .9rem; }
.profile-action-primary { color: var(--ui-primary); background: rgba(53, 106, 230, .06); border-color: rgba(53, 106, 230, .18); }
.profile-action-primary:hover { color: #0a58ca; background: rgba(53, 106, 230, .11); border-color: rgba(53, 106, 230, .3); }
.profile-action-danger { color: var(--ui-red); background: rgba(220, 53, 69, .05); border-color: rgba(220, 53, 69, .18); }
.profile-action-danger:hover { color: #b02a37; background: rgba(220, 53, 69, .1); border-color: rgba(220, 53, 69, .3); }
.profile-action-warning { color: var(--ui-yellow); background: rgba(255, 193, 7, .08); border-color: rgba(255, 193, 7, .22); }
.profile-action-warning:hover { color: #795c03; background: rgba(255, 193, 7, .14); border-color: rgba(255, 193, 7, .35); }

.profile-ban {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 14px;
}

.profile-ban-icon { flex: 0 0 auto; color: var(--ui-red); font-size: 1.5rem; line-height: 1; }
.profile-ban-content { min-width: 0; flex: 1 1 auto; }
.profile-ban-title { font-weight: 700; }
.profile-ban-text { margin-top: .25rem; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.profile-ban-date { display: flex; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .8rem; opacity: .8; }

/* ---------- PROFILE CONTENT ---------- */

.profile-content { min-width: 0; padding: 2rem; }
.profile-content > * + * { margin-top: 1.5rem; }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.profile-box {
    min-width: 0;
    padding: 1.35rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-box-radius);
}

.profile-box-header { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; min-width: 0; }
.profile-box-heading { min-width: 0; flex: 1 1 auto; }

.profile-box-header h2 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

.profile-box-header p {
    margin: .15rem 0 0;
    color: var(--ui-muted);
    font-size: .8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.profile-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.profile-box-icon-blue   { color: var(--ui-primary); background: rgba(53, 106, 230, .1); }
.profile-box-icon-green  { color: var(--ui-green);   background: rgba(25, 135, 84, .1); }
.profile-box-icon-cyan   { color: #0dcaf0;           background: rgba(13, 202, 240, .1); }
.profile-box-icon-orange { color: var(--ui-orange);  background: rgba(253, 126, 20, .1); }

.profile-info-list { display: flex; flex-direction: column; }

.profile-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: .85rem 0;
    border-bottom: 1px solid var(--ui-border);
}

.profile-info-item:first-child { padding-top: 0; }
.profile-info-item:last-child { padding-bottom: 0; border-bottom: 0; }

.profile-info-label { display: flex; align-items: center; gap: .55rem; min-width: 0; color: var(--ui-muted); font-size: .9rem; }
.profile-info-label i { width: 20px; flex: 0 0 20px; text-align: center; font-size: .95rem; }

.profile-info-value {
    max-width: 60%;
    min-width: 0;
    text-align: right;
    font-size: .9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-muted { color: var(--ui-muted); font-weight: 400; }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

.stat-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    min-height: 76px;
    padding: .8rem;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    border: 1px solid var(--ui-border);
    border-radius: 13px;
    transition: transform .15s, box-shadow .15s;
}

.stat-card-wide { grid-column: 1 / -1; }

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    font-size: 1rem;
}

.stat-icon-blue   { color: var(--ui-primary); background: rgba(53, 106, 230, .1); }
.stat-icon-purple { color: var(--ui-purple);  background: rgba(53, 106, 230, .1); }
.stat-icon-yellow { color: var(--ui-yellow);  background: rgba(255, 193, 7, .14); }
.stat-icon-red    { color: var(--ui-red);     background: rgba(220, 53, 69, .1); }
.stat-icon-cyan   { color: var(--ui-cyan);    background: rgba(13, 202, 240, .13); }

.stat-content { min-width: 0; flex: 1 1 auto; }

/* FIX: scoped под .userinfo-card, чтобы не конфликтовать с .stats-page */
.userinfo-card .stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.userinfo-card .stat-value-rating {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.userinfo-card .stat-label {
    margin-top: .15rem;
    color: var(--ui-muted);
    font-size: .76rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* ---------- ABOUT / SIGNATURE ---------- */

.profile-about { padding: 1.5rem; }

.profile-text { min-width: 0; line-height: 1.75; overflow-wrap: anywhere; }
.profile-text > :first-child { margin-top: 0; }
.profile-text > :last-child { margin-bottom: 0; }

.profile-text img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.profile-text iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

.profile-text :is(video, embed, object) { display: block; max-width: 100%; }
.profile-text a { color: var(--bs-primary); overflow-wrap: anywhere; }
.profile-text :is(ul, ol) { padding-left: 1.5rem; }

.profile-text blockquote {
    margin: 1rem 0;
    padding: .75rem 1rem;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    border-left: 4px solid var(--bs-primary);
    border-radius: 0 8px 8px 0;
}

.profile-text pre {
    max-width: 100%;
    padding: 1rem;
    overflow-x: auto;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    border-radius: 10px;
}

.profile-text code { overflow-wrap: anywhere; }

.profile-text table {
    display: block;
    width: max-content;
    min-width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.profile-text :is(th, td) { padding: .5rem; border: 1px solid var(--ui-border); }

/* ---------- PROFILE SETTINGS ---------- */

.profile-settings { min-width: 0; }
.profile-settings .accordion { --bs-accordion-border-width: 0; }

.profile-settings .accordion-item {
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .04);
}

.profile-settings .accordion-button {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1.1rem 1.25rem;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    box-shadow: none;
    font-size: .95rem;
}

.profile-settings .accordion-button:not(.collapsed) {
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    box-shadow: none;
}

.profile-settings .accordion-button:focus-visible {
    outline: 2px solid rgba(53, 106, 230, .65);
    outline-offset: -2px;
    box-shadow: none;
}

.settings-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--ui-primary);
    background: rgba(53, 106, 230, .1);
    border-radius: 11px;
}

.settings-button-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.settings-button-text strong { font-weight: 700; line-height: 1.3; }

.profile-settings .accordion-button small {
    display: block;
    margin-top: .15rem;
    color: var(--ui-muted);
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.3;
}

.profile-settings .accordion-body { min-width: 0; padding: 1.5rem; }

.settings-section {
    min-width: 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--ui-border);
}

.settings-section:first-child { padding-top: 0; }
.settings-section:last-child { border-bottom: 0; }

.settings-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.settings-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    font-size: .9rem;
}

.settings-icon-blue   { color: var(--ui-primary); background: rgba(53, 106, 230, .1); }
.settings-icon-yellow { color: var(--ui-yellow);  background: rgba(255, 193, 7, .13); }
.settings-icon-green  { color: var(--ui-green);   background: rgba(25, 135, 84, .1); }
.settings-icon-purple { color: var(--ui-purple);  background: rgba(53, 106, 230, .1); }
.settings-icon-cyan   { color: var(--ui-cyan);    background: rgba(13, 202, 240, .12); }
.settings-icon-orange { color: var(--ui-orange);  background: rgba(253, 126, 20, .11); }

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.settings-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { min-width: 0; }
.form-field-full { grid-column: 1 / -1; }

.profile-settings .form-label {
    display: block;
    margin-bottom: .45rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
}

.profile-settings :is(.form-control, .form-select) {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    border-radius: var(--ui-control-radius);
}

.profile-settings textarea.form-control { min-height: auto; resize: vertical; }

.profile-settings :is(.form-control, .form-select):focus {
    border-color: rgba(53, 106, 230, .55);
    box-shadow: 0 0 0 .2rem rgba(53, 106, 230, .1);
}

.profile-settings :is(.form-control, .form-select):focus-visible { outline: 0; }

.profile-settings .form-text,
.form-help { margin-top: .4rem; color: var(--ui-muted); font-size: .78rem; line-height: 1.4; }

.required-mark { color: var(--ui-red); }

.profile-settings .form-check { display: flex; align-items: center; gap: .5rem; min-height: 24px; }
.profile-settings .form-check-input { margin-top: 0; }
.profile-settings .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(53, 106, 230, .1); }
.profile-settings .form-check-label { cursor: pointer; }

#timezone { width: 100%; min-width: 0; }

#timezone select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: .375rem .75rem;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--ui-control-radius);
}

#timezone select:focus {
    border-color: rgba(53, 106, 230, .55);
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(53, 106, 230, .1);
}

:is(.generated-content, .profile-generated-field, .profile-social-generated, .twofactor-wrapper, .ignore-list-wrapper) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

:is(.generated-content, .twofactor-wrapper, .ignore-list-wrapper) img {
    display: block;
    max-width: 100%;
    height: auto;
}

.twofactor-wrapper { width: 100%; }
.twofactor-wrapper > * { max-width: 100%; }
.twofactor-wrapper :is(input, select, textarea) { max-width: 100%; }

.twofactor-wrapper table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.ignore-list-wrapper { width: 100%; }
.ignore-list-wrapper a { overflow-wrap: anywhere; }

.ignore-list-wrapper table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.ignore-list-wrapper :is(th, td) { padding: .5rem; border: 1px solid var(--ui-border); }

.user_fields { width: 100%; min-width: 0; }

.user_fields label {
    display: block;
    margin-bottom: .45rem;
    font-size: .875rem;
    font-weight: 600;
}

.user_fields :is(input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="date"], input[type="tel"], input[type="password"], input[type="file"], select, textarea) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: .375rem .75rem;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--ui-control-radius);
}

.user_fields textarea { resize: vertical; }

.user_fields :is(input, select, textarea):focus {
    border-color: rgba(53, 106, 230, .55);
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(53, 106, 230, .1);
}

/* ---------- SOCIAL BUTTONS ---------- */

.social-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 40px;
    max-width: 100%;
    padding: .55rem .8rem;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .15s, opacity .15s, box-shadow .15s;
}

.social-button i { flex: 0 0 auto; font-size: .95rem; }
.social-button:hover { color: #fff; }
.social-button:focus-visible { outline: 2px solid rgba(53, 106, 230, .65); outline-offset: 2px; }

.social-vk       { background: #0077ff; }
.social-yandex   { background: #fc3f1d; }
.social-ok       { background: #ee8208; }
.social-mail     { background: #168de2; }
.social-google   { color: #3c4043; background: #fff; border-color: var(--ui-border); }
.social-google:hover { color: #3c4043; }
.social-facebook { background: #1877f2; }
.social-telegram { background: #229ed9; }

.telegram-action { margin-left: auto; }

.telegram-action a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.profile-social-generated { width: 100%; margin-top: 1rem; }
.profile-social-generated a { overflow-wrap: anywhere; }

/* ---------- SUBSCRIPTIONS ---------- */

.subscription-list { display: flex; flex-direction: column; gap: .6rem; }

.subscription-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .75rem;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    border: 1px solid var(--ui-border);
    border-radius: 11px;
}

.subscription-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
}

.subscription-content { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.subscription-content a { overflow-wrap: anywhere; }
.subscription-blue   { color: var(--ui-primary); background: rgba(53, 106, 230, .1); }
.subscription-purple { color: var(--ui-purple);  background: rgba(53, 106, 230, .1); }
.subscription-red    { color: var(--ui-red);     background: rgba(220, 53, 69, .1); }

/* ---------- SETTINGS ACTIONS ---------- */

.settings-actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: 1.5rem; }

.settings-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    border-radius: 10px;
}

.settings-actions .btn i { flex: 0 0 auto; font-size: .95rem; }
.settings-save { min-width: 190px; }
.settings-delete { cursor: pointer; }

/* ---------- ХОВЕРЫ ---------- */

@media (hover: hover) and (pointer: fine) {
    .profile-action:hover { transform: translateY(-1px); }
    .stat-card:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(0, 0, 0, .06); }
    .social-button:hover { transform: translateY(-1px); opacity: .9; }
}

/* ---------- ТЁМНАЯ ТЕМА (userinfo) ---------- */

[data-bs-theme="dark"] .userinfo-card {
    --ui-muted: #adb5bd;
    --ui-border: rgba(255, 255, 255, .1);
    --ui-yellow: #ffc107;
    --ui-orange: #ff922b;
    --ui-cyan: #22d3ee;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

[data-bs-theme="dark"] .profile-header {
    background: linear-gradient(135deg, rgba(91, 140, 255, .16), rgba(91, 140, 255, .06));
}

[data-bs-theme="dark"] .profile-avatar img { box-shadow: 0 8px 25px rgba(0, 0, 0, .3); }

[data-bs-theme="dark"] .profile-ban {
    color: #f8d7da;
    background: rgba(220, 53, 69, .12);
    border-color: rgba(220, 53, 69, .25);
}

[data-bs-theme="dark"] .social-google {
    color: #f8f9fa;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    border-color: var(--ui-border);
}

[data-bs-theme="dark"] .social-google:hover { color: #f8f9fa; }

@media (hover: hover) and (pointer: fine) {
    [data-bs-theme="dark"] .stat-card:hover { box-shadow: 0 7px 20px rgba(0, 0, 0, .2); }
}

/* ---------- АДАПТИВНОСТЬ (userinfo) ---------- */

@media (max-width: 1199.98px) { .profile-content { padding: 1.5rem; } }

@media (max-width: 991.98px) {
    .profile-header { padding: 1.5rem; }
    .profile-grid { grid-template-columns: 1fr; }
    .settings-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .profile-header { padding: 1.25rem; }
    .profile-header-inner { align-items: flex-start; gap: 1rem; }
    .profile-content { padding: 1.25rem; }
    .profile-box { padding: 1rem; }
    .profile-about { padding: 1rem; }
    .profile-avatar,
    .profile-avatar img { width: 92px; height: 92px; }
    .profile-online { right: 2px; bottom: 3px; width: 16px; height: 16px; border-width: 3px; }
    .profile-title { font-size: 1.3rem; }
    .profile-info-item { align-items: flex-start; flex-direction: column; gap: .3rem; }
    .profile-info-value { max-width: 100%; padding-left: 1.55rem; text-align: left; }
    .profile-settings .accordion-body { padding: 1rem; }
    .settings-section { padding: 1.25rem 0; }
    .settings-grid-2,
    .settings-grid-3 { grid-template-columns: 1fr; }
    .subscription-item { align-items: flex-start; }
    .profile-text iframe { min-height: 220px; }
}

@media (max-width: 575.98px) {
    .profile-header-inner { flex-direction: column; align-items: center; text-align: center; }
    .profile-avatar { margin: 0 auto; }
    .profile-title-row,
    .profile-status,
    .profile-actions { justify-content: center; }
    .profile-main { width: 100%; }
    .profile-ban { text-align: left; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card-wide { grid-column: auto; }
    .stat-card { min-height: 68px; padding: .65rem; }
    .stat-icon { width: 34px; height: 34px; flex-basis: 34px; }
    /* FIX: scoped */
    .userinfo-card .stat-label { font-size: .7rem; }
    .userinfo-card .stat-value-rating { font-size: .7rem; line-height: 1.2; }
    .settings-actions .btn { width: 100%; }
    .settings-save { min-width: 0; }
    .social-button span:not(.telegram-action) { display: none; }
    .social-button { width: 42px; height: 42px; padding: 0; }
    .social-telegram { width: auto; padding: .55rem .8rem; }
    .social-telegram > span:not(.telegram-action) { display: inline; }
    .telegram-action { display: inline; }
    .profile-box-header { align-items: flex-start; }
    .profile-action { flex: 1 1 auto; }
}

@media (max-width: 380px) {
    .profile-header { padding: 1rem; }
    .profile-content { padding: .75rem; }
    .profile-box { padding: .85rem; }
    .profile-box-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .stat-card { gap: .5rem; }
    .stat-icon { width: 31px; height: 31px; flex-basis: 31px; font-size: .85rem; }
    .settings-actions { gap: .5rem; }
    .profile-actions { width: 100%; }
    .profile-action { max-width: 100%; }
    .profile-title { font-size: 1.15rem; }
    .profile-group { font-size: .7rem; }
}

/* =========================================================
   BTN-PRIMARY-SOFT (единое определение)
   ========================================================= */

.btn-primary-soft {
    display: inline-block;
    padding: .5rem 1rem;
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), .1);
    border: 1px solid transparent;
    border-radius: var(--bs-border-radius);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s;
}

.btn-primary-soft:hover,
.btn-primary-soft:focus,
.btn-primary-soft:focus-visible,
.btn-primary-soft:active {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    text-decoration: none;
}

.btn-primary-soft:focus,
.btn-primary-soft:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

.btn-primary-soft i { color: inherit; }

/* =====================================================
   BLOGZINE — PERSONAL MESSAGES
   DLE 21 | Bootstrap 5.3.8
   ===================================================== */

.pm {
    --pm-accent: #356AE6;
    --pm-accent-hover: #2856C7;

    --pm-bg: #FFFFFF;
    --pm-surface: #EEF1F5;
    --pm-input: #F5F6F8;
    --pm-border: #E7EAF0;

    --pm-text: #172033;
    --pm-muted: #8993A3;

    --pm-radius: 14px;

    color: var(--pm-text);
    min-width: 0;
}

[data-bs-theme="dark"] .pm,
.dark .pm,
body.dark .pm {
    --pm-bg: #0B111B;
    --pm-surface: #131D2B;
    --pm-input: #101927;
    --pm-border: #253247;

    --pm-text: #F1F5FB;
    --pm-muted: #9AA6B7;
}

/* HEADER */

.pm-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    margin-bottom: 24px;

    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: 18px;
}

.pm-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 56px;
    width: 56px;
    height: 56px;

    color: #FFFFFF;
    background: var(--pm-accent);
    border-radius: 15px;

    font-size: 24px;
}

.pm-header-content {
    min-width: 0;
}

.pm-title {
    margin: 0 0 6px;
    color: var(--pm-text);
    font-size: 25px;
    font-weight: 750;
    line-height: 1.3;
}

.pm-subtitle {
    color: var(--pm-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* BUTTONS */

.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 11px 18px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.pm-btn:hover {
    transform: translateY(-1px);
}

.pm-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 106, 230, .2);
}

.pm-btn i {
    font-size: 16px;
}

/* Both navigation buttons */

.pm-btn-main {
    color: #FFFFFF !important;
    background: var(--pm-accent);
    border-color: var(--pm-accent);
}

.pm-btn-main:hover {
    color: #FFFFFF !important;
    background: var(--pm-accent-hover);
    border-color: var(--pm-accent-hover);
}

/* Both form buttons */

.pm-btn-secondary {
    color: var(--pm-text) !important;
    background: var(--pm-surface);
    border-color: var(--pm-border);
}

.pm-btn-secondary:hover {
    color: #FFFFFF !important;
    background: var(--pm-accent);
    border-color: var(--pm-accent);
}

/* MESSAGE LIMIT */

.pm-limit {
    margin-top: 18px;
    padding: 15px 17px;

    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: 12px;
}

.pm-limit-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;

    color: var(--pm-muted);
    font-size: 13px;
}

.pm-limit-progress {
    overflow: hidden;
    border-radius: 20px;
}

.pm-limit-progress progress {
    width: 100%;
    accent-color: var(--pm-accent);
}

/* PANELS */

.pm-panel,
.pm-conversation {
    padding: 24px;

    color: var(--pm-text);
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
}

.pm-panel-title {
    color: var(--pm-text);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
}

/* FORM */

.pm .form-label {
    display: block;
    margin-bottom: 8px;

    color: var(--pm-text);
    font-size: 14px;
    font-weight: 600;
}

.pm .form-control,
.pm input[type="text"],
.pm textarea,
.pm select {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 11px 14px;

    color: var(--pm-text);
    background: var(--pm-input);
    border: 1px solid var(--pm-border);
    border-radius: 10px;

    box-shadow: none;
    font-size: 14px;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.pm textarea {
    min-height: 140px;
    resize: vertical;
}

.pm .form-control:focus,
.pm input:focus,
.pm textarea:focus,
.pm select:focus {
    color: var(--pm-text);
    background: var(--pm-input);
    border-color: var(--pm-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 106, 230, .12);
}

.pm input::placeholder,
.pm textarea::placeholder {
    color: var(--pm-muted);
}

/* EDITORS */

.pm .editor,
.pm .bb-editor,
.pm .wysibb,
.pm .tox,
.pm .cke,
.pm .sceditor-container {
    max-width: 100%;
    border-color: var(--pm-border) !important;
    border-radius: 10px;
    overflow: hidden;
}

.pm iframe {
    max-width: 100%;
}

/* MESSAGE LIST */

.pm .pmlist {
    min-width: 0;
    color: var(--pm-text);
}

.pm .pmlist a {
    color: var(--pm-text);
}

.pm .pmlist a:hover {
    color: var(--pm-accent);
}

/* CONVERSATION */

.pm-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 18px;
    margin-bottom: 16px;

    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: 13px;
}

.pm-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;

    object-fit: cover;
    border: 2px solid var(--pm-border);
    border-radius: 50%;
}

.pm-message-content {
    flex: 1;
    min-width: 0;
}

.pm-message-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.pm-message-header h5 {
    margin: 0;
    color: var(--pm-text);
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pm-message-date {
    color: var(--pm-muted);
    font-size: 12px;
}

.pm-reply {
    color: var(--pm-accent);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.pm-message-text {
    margin: 14px 0;
    color: var(--pm-text);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pm-message-text img,
.pm-message-text video {
    max-width: 100%;
    height: auto;
}

.pm-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pm-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    color: var(--pm-accent);
    background: rgba(53, 106, 230, .08);
    border: 1px solid rgba(53, 106, 230, .16);
    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.pm-action:hover {
    color: #FFFFFF;
    background: var(--pm-accent);
    border-color: var(--pm-accent);
}

/* REPLY FORM */

.pm-reply-form {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--pm-border);
}

/* DARK THEME */

[data-bs-theme="dark"] .pm .pm-panel,
[data-bs-theme="dark"] .pm .pm-conversation,
.dark .pm .pm-panel,
.dark .pm .pm-conversation,
body.dark .pm .pm-panel,
body.dark .pm .pm-conversation {
    color: var(--pm-text);
    background: var(--pm-bg);
    border-color: var(--pm-border);
}

[data-bs-theme="dark"] .pm .pm-message,
.dark .pm .pm-message,
body.dark .pm .pm-message {
    background: var(--pm-surface);
    border-color: var(--pm-border);
}

/* RESPONSIVE */

@media (max-width: 767.98px) {
    .pm-header {
        padding: 17px;
        gap: 12px;
    }

    .pm-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .pm-title {
        font-size: 21px;
    }

    .pm-panel,
    .pm-conversation {
        padding: 17px;
    }

    .pm-limit-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .pm-btn {
        min-height: 45px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .pm-message {
        gap: 10px;
        padding: 12px;
    }

    .pm-avatar {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .pm-message-header {
        gap: 6px 9px;
    }
}

/* Отправить — фирменная синяя кнопка */
.pm .pm-btn-secondary[name="add"],
.pm .pm-btn-secondary[name="submit"] {
    color: #FFFFFF !important;
    background: #356AE6 !important;
    border-color: #356AE6 !important;
}

.pm .pm-btn-secondary[name="add"]:hover,
.pm .pm-btn-secondary[name="submit"]:hover {
    background: #2856C7 !important;
    border-color: #2856C7 !important;
}

/* Предпросмотр — нейтральная кнопка */
.pm .pm-btn-secondary:not([name="add"]):not([name="submit"]) {
    color: var(--pm-text) !important;
    background: var(--pm-surface) !important;
    border-color: var(--pm-border) !important;
}

.pm .pm-btn-secondary:not([name="add"]):not([name="submit"]):hover {
    color: #FFFFFF !important;
    background: #343A50 !important;
    border-color: #343A50 !important;
}

/* =========================================================
   PASSWORD RECOVERY
   ========================================================= */

.password-recovery {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    /* background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa)); */
    color: var(--bs-body-color);
}

.password-header { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.5rem; padding: 0; background: transparent; }

.password-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .12);
    font-size: 1.05rem;
}

.password-header-content { min-width: 0; }

.password-title {
    margin: 0 0 .2rem;
    padding: 0;
    color: var(--bs-heading-color, var(--bs-body-color));
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 600;
}

.password-intro { margin: 0; padding: 0; color: var(--bs-secondary-color); font-size: .9rem; line-height: 1.45; }

.password-field { margin-bottom: 1.5rem; }

.password-recovery .form-label { display: block; margin-bottom: .4rem; color: var(--bs-body-color); font-weight: 500; }

.password-recovery .form-control { border-radius: .6rem; }

.password-recovery .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15);
}

.password-recovery .form-text { margin-top: .4rem; color: var(--bs-secondary-color); line-height: 1.4; }

.password-fieldset { min-width: 0; padding: 0; margin: 0 0 1.5rem; border: 0; }

.password-captcha { display: flex; align-items: stretch; gap: .75rem; flex-wrap: wrap; }

.password-captcha-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 88px;
    min-width: 176px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .625rem;
    background: var(--bs-secondary-bg);
}

.password-captcha-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.password-captcha-input { width: 180px; min-width: 0; }

.password-captcha-input .form-control { width: 100%; height: 88px; min-height: 88px; }

.password-recaptcha { overflow: hidden; }

.password-actions { display: flex; justify-content: flex-start; margin-top: .25rem; }

.password-submit { min-height: 44px; padding: .6rem 1.25rem; border-radius: .6rem; }

@media (max-width: 767.98px) {
    .password-recovery { padding: 1rem; border-radius: .875rem; }
    .password-header { align-items: flex-start; margin-bottom: 1.25rem; }
    .password-icon { width: 38px; height: 38px; min-width: 38px; }
    .password-title { font-size: 1.2rem; }
    .password-intro { font-size: .85rem; }
    .password-captcha { width: 100%; }
    .password-captcha-image { width: 140px; height: 70px; min-width: 140px; }
    .password-captcha-input { flex: 1 1 130px; width: auto; }
    .password-captcha-input .form-control { height: 70px; min-height: 70px; }
    .password-actions { display: block; }
    .password-submit { width: 100%; }
}

@media (max-width: 380px) {
    .password-recovery { padding: .85rem; }
    .password-header { gap: .6rem; }
    .password-icon { width: 36px; height: 36px; min-width: 36px; }
    .password-title { font-size: 1.1rem; }
    .password-captcha { flex-direction: column; }
    .password-captcha-image { width: 176px; height: 88px; min-width: 176px; }
    .password-captcha-input { width: 100%; }
    .password-captcha-input .form-control { height: 48px; min-height: 48px; }
}

/* =========================================================
   REGISTRATION — DASHBOARD CARD
   ========================================================= */

.dashboard-card {
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    border-radius: 20px;
    padding: 1.5rem;
    border: 0;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .06);
}

.title-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
    font-size: 1.1rem;
}

.feedback-fieldset { min-width: 0; padding: 0; margin: 1rem 0 1.5rem; border: 0; }

.feedback-captcha-row { display: flex; align-items: stretch; gap: .75rem; flex-wrap: wrap; }

.feedback-captcha-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 88px;
    min-width: 176px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .625rem;
    background: var(--bs-secondary-bg);
}

.feedback-captcha-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.feedback-captcha-input { width: 158px; min-width: 0; }
.feedback-captcha-input .form-control { height: 88px; min-height: 88px; }

.xfields-wrapper { width: 100%; }
.xfields-wrapper table { width: 100%; margin: 0; }

.text-reset { color: inherit; text-decoration: none; }

.required-mark { color: var(--bs-danger); font-weight: 700; }

.dashboard-card .form-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--bs-body-color);
}

.dashboard-card .form-control { border-radius: .5rem; }

.dashboard-card .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15);
}

.dashboard-card .form-text {
    margin-top: .35rem;
    color: var(--bs-secondary-color);
    font-size: .8rem;
    line-height: 1.4;
}

.dashboard-card .input-group .btn { white-space: nowrap; }

#password-strength { min-height: 1.2em; }
#password-strength.text-success { color: var(--bs-success); }
#password-strength.text-warning { color: var(--bs-warning); }
#password-strength.text-danger  { color: var(--bs-danger); }

@media (max-width: 767.98px) {
    .dashboard-card { padding: 1rem; border-radius: 14px; }
    .title-icon { width: 38px; height: 38px; min-width: 38px; border-radius: 12px; font-size: 1rem; }
    .feedback-captcha-row { width: 100%; }
    .feedback-captcha-image { width: 140px; height: 70px; min-width: 140px; }
    .feedback-captcha-input { flex: 1 1 130px; width: auto; }
    .feedback-captcha-input .form-control { height: 70px; min-height: 70px; }
}

@media (max-width: 380px) {
    .dashboard-card { padding: .85rem; }
    .feedback-captcha-row { flex-direction: column; }
    .feedback-captcha-image { width: 176px; height: 88px; min-width: 176px; }
    .feedback-captcha-input { width: 100%; }
    .feedback-captcha-input .form-control { height: 48px; min-height: 48px; }
    .dashboard-card .input-group .btn { padding-left: .65rem; padding-right: .65rem; font-size: .85rem; }
}

/* =========================================================
   BLOG CATEGORY ITEMS
   categorymenu.tpl: .row.g-2 > .bcat-item (16 штук)
   ========================================================= */

.bcat-item { transition: filter .2s ease, transform .2s ease; }

.bcat-item:nth-of-type(1)  { background-color: rgba(255,193,7,.15); }
.bcat-item:nth-of-type(1) .bcat-name  { color: #ffc107; }
.bcat-item:nth-of-type(1) .bcat-count { background-color: #ffc107; color: #212529; }

.bcat-item:nth-of-type(2)  { background-color: rgba(13,202,240,.10); }
.bcat-item:nth-of-type(2) .bcat-name  { color: #0dcaf0; }
.bcat-item:nth-of-type(2) .bcat-count { background-color: #0dcaf0; color: #fff; }

.bcat-item:nth-of-type(3)  { background-color: rgba(220,53,69,.10); }
.bcat-item:nth-of-type(3) .bcat-name  { color: #dc3545; }
.bcat-item:nth-of-type(3) .bcat-count { background-color: #dc3545; color: #fff; }

.bcat-item:nth-of-type(4)  { background-color: rgba(13,110,253,.10); }
.bcat-item:nth-of-type(4) .bcat-name  { color: #0d6efd; }
.bcat-item:nth-of-type(4) .bcat-count { background-color: #0d6efd; color: #fff; }

.bcat-item:nth-of-type(5)  { background-color: rgba(25,135,84,.10); }
.bcat-item:nth-of-type(5) .bcat-name  { color: #198754; }
.bcat-item:nth-of-type(5) .bcat-count { background-color: #198754; color: #fff; }

.bcat-item:nth-of-type(6)  { background-color: rgba(53,106,230,.10); }
.bcat-item:nth-of-type(6) .bcat-name  { color: #6f42c1; }
.bcat-item:nth-of-type(6) .bcat-count { background-color: #6f42c1; color: #fff; }

.bcat-item:nth-of-type(7)  { background-color: rgba(214,51,132,.10); }
.bcat-item:nth-of-type(7) .bcat-name  { color: #d63384; }
.bcat-item:nth-of-type(7) .bcat-count { background-color: #d63384; color: #fff; }

.bcat-item:nth-of-type(8)  { background-color: rgba(32,201,151,.10); }
.bcat-item:nth-of-type(8) .bcat-name  { color: #20c997; }
.bcat-item:nth-of-type(8) .bcat-count { background-color: #20c997; color: #fff; }

.bcat-item:nth-of-type(9)  { background-color: rgba(102,16,242,.10); }
.bcat-item:nth-of-type(9) .bcat-name  { color: #6610f2; }
.bcat-item:nth-of-type(9) .bcat-count { background-color: #6610f2; color: #fff; }

.bcat-item:nth-of-type(10) { background-color: rgba(253,126,20,.10); }
.bcat-item:nth-of-type(10) .bcat-name  { color: #fd7e14; }
.bcat-item:nth-of-type(10) .bcat-count { background-color: #fd7e14; color: #fff; }

.bcat-item:nth-of-type(11) { background-color: rgba(108,117,125,.10); }
.bcat-item:nth-of-type(11) .bcat-name  { color: #6c757d; }
.bcat-item:nth-of-type(11) .bcat-count { background-color: #6c757d; color: #fff; }

.bcat-item:nth-of-type(12) { background-color: rgba(0,123,255,.10); }
.bcat-item:nth-of-type(12) .bcat-name  { color: #007bff; }
.bcat-item:nth-of-type(12) .bcat-count { background-color: #007bff; color: #fff; }

.bcat-item:nth-of-type(13) { background-color: rgba(232,62,140,.10); }
.bcat-item:nth-of-type(13) .bcat-name  { color: #e83e8c; }
.bcat-item:nth-of-type(13) .bcat-count { background-color: #e83e8c; color: #fff; }

.bcat-item:nth-of-type(14) { background-color: rgba(32,40,56,.10); }
.bcat-item:nth-of-type(14) .bcat-name  { color: #202838; }
.bcat-item:nth-of-type(14) .bcat-count { background-color: #202838; color: #fff; }

.bcat-item:nth-of-type(15) { background-color: rgba(0,204,153,.10); }
.bcat-item:nth-of-type(15) .bcat-name  { color: #00cc99; }
.bcat-item:nth-of-type(15) .bcat-count { background-color: #00cc99; color: #212529; }

.bcat-item:nth-of-type(16) { background-color: rgba(255,87,34,.10); }
.bcat-item:nth-of-type(16) .bcat-name  { color: #ff5722; }
.bcat-item:nth-of-type(16) .bcat-count { background-color: #ff5722; color: #fff; }

.bcat-item:hover { filter: brightness(.97); transform: translateX(2px); }

.bcat-count { min-width: 32px; text-align: center; }

[data-bs-theme="dark"] .bcat-item:nth-of-type(11) .bcat-name { color: #adb5bd; }
[data-bs-theme="dark"] .bcat-item:nth-of-type(14) .bcat-name { color: #a5b4d4; }
[data-bs-theme="dark"] .bcat-item:nth-of-type(14) .bcat-count { background-color: #a5b4d4; color: #111; }

/* =========================================================
   SEARCH — ПОИСК ПО САЙТУ
   ========================================================= */

.search-page-bg { width: 100%; padding: 0; max-width: 100%; overflow: hidden; }

.search-page {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    color: var(--bs-body-color);
    overflow: hidden;
}

.search-page .search-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; min-width: 0; }

.search-page .search-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}

.search-page .search-icon i { display: block; font-size: inherit; line-height: 1; }

.search-page .search-header-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.search-page .search-title { margin: 0 0 5px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }

.search-page .search-intro { margin: 0; color: var(--bs-secondary-color); font-size: 1rem; line-height: 1.5; }

.search-page .search-simple { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }

.search-page .search-simple-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.search-page .search-simple-field { flex: 1 1 100%; min-width: 0; max-width: 100%; display: block; }

.search-page .search-simple-field :is(input[type="text"], input[type="search"]) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: .65rem .8rem;
    font-size: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    outline: 0;
    background-image: none;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.search-page .search-simple-field input:hover { border-color: var(--bs-primary); }

.search-page .search-simple-field input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12);
}

.search-page .search-simple-field input::placeholder { color: var(--bs-secondary-color); opacity: .75; }

.search-page .search-simple-row > .search-btn { flex: 0 0 auto; min-width: 0; max-width: 100%; }

.search-page .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .65rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    max-width: 100%;
    transition: transform .15s, box-shadow .15s, filter .15s,
                background-color .18s, border-color .18s, color .18s;
}

.search-page .search-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.search-page .search-btn:active { transform: translateY(0); }

.search-page .search-btn--primary { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.search-page .search-btn--primary:hover { background: var(--bs-primary); border-color: var(--bs-primary); filter: brightness(.92); color: #fff; }

.search-page .search-btn--ghost { background: transparent; border-color: var(--bs-border-color); color: var(--bs-body-color); }
.search-page .search-btn--ghost:hover { background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa)); border-color: var(--bs-primary); }

.search-page .search-btn--soft { background: var(--bs-warning); border-color: var(--bs-warning); color: #000; }
.search-page .search-btn--soft:hover { background: var(--bs-warning); border-color: var(--bs-warning); filter: brightness(.94); color: #000; }

.search-page .search-btn--dark { background: var(--bs-secondary); border-color: var(--bs-secondary); color: #fff; }
.search-page .search-btn--dark:hover { background: var(--bs-secondary); border-color: var(--bs-secondary); filter: brightness(.9); color: #fff; }

.search-page .search-advanced { display: block; margin-top: 6px; }

.search-page .search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }

.search-page .search-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.search-page .search-block {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
}

.search-page .search-block-title {
    margin: 0 0 14px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.search-page .search-field { margin-bottom: 14px; }
.search-page .search-field:last-child { margin-bottom: 0; }

.search-page .search-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.4;
    color: var(--bs-body-color);
}

.search-page .search-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.search-page .search-hint { font-size: .78rem; line-height: 1.4; color: var(--bs-secondary-color); }

.search-page .search-advanced :is(input[type="text"], input[type="search"], input[type="password"], input[type="number"], input[type="date"], textarea) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: .65rem .8rem;
    font-size: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    outline: 0;
    background-image: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.search-page .search-advanced textarea { min-height: 120px; resize: vertical; }

.search-page .search-advanced :is(input, textarea):hover { border-color: var(--bs-primary); }

.search-page .search-advanced :is(input, textarea):focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12);
}

.search-page .search-advanced :is(input, textarea)::placeholder { color: var(--bs-secondary-color); opacity: .75; }

.search-page .search-advanced select:not([multiple]) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: .65rem 2.25rem .65rem .8rem;
    font-size: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    outline: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 14px 10px;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.search-page .search-advanced select:not([multiple]):hover { border-color: var(--bs-primary); }
.search-page .search-advanced select:not([multiple]):focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12);
}
.search-page .search-advanced select:not([multiple]) option { background: var(--bs-body-bg); color: var(--bs-body-color); }

.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"])) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    min-height: 46px;
    padding: .5rem .6rem;
    font-size: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background-color: var(--bs-body-bg);
    background-image: none;
    background-repeat: no-repeat;
    color: var(--bs-body-color);
    outline: 0;
    cursor: pointer;
    overflow: auto;
    -webkit-appearance: none;
    appearance: none;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-border-color) transparent;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"])):hover { border-color: var(--bs-primary); }
.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"])):focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12);
}

.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"]))::-webkit-scrollbar { width: 6px; height: 6px; }
.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"]))::-webkit-scrollbar-thumb { background: var(--bs-border-color); border-radius: 3px; }
.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"]))::-webkit-scrollbar-track { background: transparent; }

.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"])) option { padding: 4px 6px; background: var(--bs-body-bg); color: var(--bs-body-color); }
.search-page .search-advanced :is(select[multiple], select[size]:not([size="1"])) option:checked { background: var(--bs-primary); color: #fff; }

/* ---------- DLE MULTI-SELECT ---------- */

.search-page .dle-multi-container {
    position: relative;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 4px 6px;
    cursor: text;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.search-page .dle-multi-container:hover { border-color: var(--bs-primary); }
.search-page .dle-multi-container.dle-multi-active,
.search-page .dle-multi-container:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12);
}

.search-page .dle-multi-choices {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 36px;
}

.search-page .dle-multi-choices > li { display: inline-flex; align-items: center; margin: 0; padding: 0; min-height: 32px; }

.search-page .dle-multi-choices .search-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: .85rem;
    line-height: 1.2;
    border-radius: 999px;
    background: var(--bs-primary);
    color: #fff;
    border: 0;
    margin: 0;
}

.search-page .dle-multi-choices .search-choice .search-choice-close {
    display: inline-block;
    width: 12px;
    height: 12px;
    cursor: pointer;
    position: relative;
    opacity: .85;
}

.search-page .dle-multi-choices .search-choice .search-choice-close::before,
.search-page .dle-multi-choices .search-choice .search-choice-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    transform-origin: center;
}

.search-page .dle-multi-choices .search-choice .search-choice-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.search-page .dle-multi-choices .search-choice .search-choice-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.search-page .dle-multi-choices .search-choice .search-choice-close:hover { opacity: 1; }

.search-page :is(.dle-multi-search-input, .dle-multi-choices input.default) {
    flex: 1 1 100px;
    width: auto;
    min-width: 80px;
    height: 34px;
    padding: 0 8px;
    margin: 0;
    font-size: .95rem;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--bs-body-color);
}

.search-page .dle-multi-search-input::placeholder { color: var(--bs-secondary-color); opacity: .75; }

.search-page .dle-multi-drop {
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    min-width: 100%;
    margin-top: 4px;
    padding: 4px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    display: none;
}

.search-page .dle-multi-container.dle-multi-active .dle-multi-drop,
.search-page .dle-multi-container:focus-within .dle-multi-drop { display: block; }

.search-page .dle-multi-results {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-border-color) transparent;
}

.search-page .dle-multi-results::-webkit-scrollbar { width: 6px; }
.search-page .dle-multi-results::-webkit-scrollbar-thumb { background: var(--bs-border-color); border-radius: 3px; }
.search-page .dle-multi-results::-webkit-scrollbar-track { background: transparent; }

.search-page .dle-multi-results > li {
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .12s, color .12s;
}

.search-page .dle-multi-results .dle-multi-results-item {
    padding: 8px 12px;
    font-size: .95rem;
    line-height: 1.3;
    color: var(--bs-body-color);
    border-radius: 8px;
}

.search-page .dle-multi-results > li:hover,
.search-page .dle-multi-results > li.highlighted { background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa)); }

.search-page .dle-multi-results > li.active-result.result-selected,
.search-page .dle-multi-results > li.result-selected {
    background: var(--bs-primary);
    color: #fff;
}

.search-page .dle-multi-results > li.result-selected .dle-multi-results-item { color: #fff; }

.search-page .dle-multi-results > li.no-results {
    padding: 8px 12px;
    color: var(--bs-secondary-color);
    font-style: italic;
    cursor: default;
}

/* ---------- ЧЕКБОКСЫ И РАДИО ---------- */

.search-page .search-advanced :is(input[type="checkbox"], input[type="radio"]) {
    margin-right: 6px;
    vertical-align: middle;
    accent-color: var(--bs-primary);
}

.search-page .search-advanced label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 14px;
    margin-bottom: 6px;
    font-size: .95rem;
    color: var(--bs-body-color);
    cursor: pointer;
}

.search-page .search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--bs-border-color);
    min-width: 0;
}

.search-alert {
    margin-top: 18px;
    padding: 12px 15px;
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid var(--bs-warning, #f59e0b);
    border-radius: 10px;
    background: var(--bs-tertiary-bg, var(--bs-secondary-bg, #f8f9fa));
    color: var(--bs-body-color);
    font-size: .9rem;
    line-height: 1.5;
}

.search-page :is(input, select, button):focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }

@media (max-width: 767.98px) {
    .search-page { padding: 1.25rem; border-radius: .9rem; }
    .search-page .search-header { gap: 12px; margin-bottom: 20px; }
    .search-page .search-icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 12px; font-size: 19px; }
    .search-page .search-title { margin-bottom: 4px; font-size: 1.3rem; line-height: 1.3; }
    .search-page .search-intro { font-size: .88rem; line-height: 1.45; }
    .search-page .search-grid { grid-template-columns: 1fr; gap: 18px; }
    .search-page .search-actions .search-btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .search-page { padding: 1rem; border-radius: .8rem; }
    .search-page .search-header { gap: 10px; }
    .search-page .search-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 11px; font-size: 17px; }
    .search-page .search-title { font-size: 1.2rem; }
    .search-page .search-intro { font-size: .84rem; }
    .search-page .search-block { padding: 13px; }
}

[data-bs-theme="dark"] .search-page .search-block { background: rgba(255, 255, 255, .025); }
[data-bs-theme="dark"] .search-page .search-alert { background: rgba(255, 255, 255, .03); }

/* =========================================================
   RECENT POST / НОВИНКИ — sidebar widget
   Стиль близкий к оригинальному Blogzine (webestica)
   ========================================================= */

.blogzine-recent-post {
    padding: 0;
    border: 0;
    background: transparent;
}

.blogzine-recent-post .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

/* Картинка */
.blogzine-recent-image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    aspect-ratio: 4 / 3;
    background: var(--bs-tertiary-bg, #f7f8f9);
}

.blogzine-recent-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.blogzine-recent-post:hover .blogzine-recent-image img {
    transform: scale(1.06);
}

/* Заголовок */
.blogzine-recent-title {
    font-size: .9375rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogzine-recent-title a {
    color: var(--bs-gray-800, #191a1f);
    text-decoration: none;
    transition: color .2s ease;
}

.blogzine-recent-title a:hover {
    color: var(--bs-primary, #356AE6);
}

/* Дата */
.blogzine-recent-date {
    color: var(--bs-gray-500, #a1a1a8);
    font-size: .8125rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.blogzine-recent-date i {
    font-size: .85em;
    opacity: .8;
}

/* Мобильная адаптация */
@media (max-width: 575.98px) {
    .blogzine-recent-title {
        font-size: .875rem;
        -webkit-line-clamp: 3;
    }

    .blogzine-recent-date {
        font-size: .75rem;
    }
}


/* BLOGZINE — RECENT POSTS DARK THEME */

[data-bs-theme="dark"] .blogzine-recent-title a {
    color: #F1F5FB;
    transition: color .2s ease;
}

[data-bs-theme="dark"] .blogzine-recent-title a:hover {
    color: #5B8CFF;
}

[data-bs-theme="dark"] .blogzine-recent-image {
    background: #131D2B;
}


/* =========================================================
   BLOGZINE PREMIUM 3.0 — UNIFIED FOOTER
   DLE 21.0 | Bootstrap 5.3.8
   Purple Edition — #356AE6
   ========================================================= */

/* BASE */

.bz-footer {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
    background: #080D15 !important;
    color: #B8BBC8;
    font-size: 14px;
}

.bz-footer,
.bz-footer * {
    box-sizing: border-box;
}

.bz-footer a {
    text-decoration: none;
}

.bz-footer-main {
    position: relative;
    z-index: 1;
    padding-top: 75px;
    padding-bottom: 65px;
}

.bz-footer-main > .row {
    --bs-gutter-x: 2.25rem;
    --bs-gutter-y: 2.5rem;
}

/* BRAND */

.bz-footer-brand,
.bz-footer-column {
    width: 100%;
    min-width: 0;
}

.bz-footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 22px;
}

.bz-footer-logo img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    transition: opacity .25s ease, transform .25s ease;
}

.bz-footer-logo:hover img {
    opacity: .88;
    transform: translateY(-2px);
}

/* DESCRIPTION */

.bz-footer-description {
    width: 100%;
    max-width: 500px;
    margin: 0 0 25px;
    color: #B8BBC8;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: .1px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-wrap: pretty;
}

/* SOCIAL LINKS */

.bz-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.bz-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
    font-size: 18px;
    text-decoration: none;
    transition: color .25s ease, background .25s ease,
                border-color .25s ease, transform .25s ease,
                box-shadow .25s ease;
}

.bz-socials a i {
    transition: transform .25s ease;
}

.bz-socials a:hover {
    transform: translateY(-4px);
}

.bz-socials a:hover i {
    transform: scale(1.12);
}

/* SOCIAL COLORS */

.bz-socials .bz-social-mail {
    color: #ff7777 !important;
}

.bz-socials .bz-social-mail:hover {
    color: #ff7777 !important;
    background: rgba(255, 119, 119, .15) !important;
    border-color: #ff7777 !important;
    box-shadow: 0 0 18px rgba(255, 119, 119, .2);
}

.bz-socials .bz-social-comments {
    color: #42c9a5 !important;
}

.bz-socials .bz-social-comments:hover {
    color: #42c9a5 !important;
    background: rgba(66, 201, 165, .15) !important;
    border-color: #42c9a5 !important;
    box-shadow: 0 0 18px rgba(66, 201, 165, .2);
}

.bz-socials .bz-social-search {
    color: #62aaff !important;
}

.bz-socials .bz-social-search:hover {
    color: #62aaff !important;
    background: rgba(98, 170, 255, .15) !important;
    border-color: #62aaff !important;
    box-shadow: 0 0 18px rgba(98, 170, 255, .2);
}

.bz-socials .bz-social-rss {
    color: #ffad55 !important;
}

.bz-socials .bz-social-rss:hover {
    color: #ffad55 !important;
    background: rgba(255, 173, 85, .15) !important;
    border-color: #ffad55 !important;
    box-shadow: 0 0 18px rgba(255, 173, 85, .2);
}

/* COLUMN TITLES */

.bz-footer-title {
    position: relative;
    margin: 0 0 25px;
    padding: 0 0 14px;
    color: #FFFFFF;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .2px;
}

.bz-footer-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, .09);
}

/* FOOTER TITLE ACCENT */
.bz-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    border-radius: 5px;
    background: #356AE6;
    transition: width .25s ease;
}

/* DARK MODE */
[data-bs-theme="dark"] .bz-footer-title::after,
[data-theme="dark"] .bz-footer-title::after,
.dark-mode .bz-footer-title::after,
.dark .bz-footer-title::after {
    background: #5B8CFF;
}

.bz-footer-column:hover .bz-footer-title::after {
    width: 58px;
}

/* NAVIGATION */

.bz-footer-links {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bz-footer-links li {
    margin: 0 0 12px;
    padding: 0;
}

.bz-footer-links li:last-child {
    margin-bottom: 0;
}

.bz-footer-links a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    color: #B8BBC8;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    overflow-wrap: anywhere;
    transition: color .2s ease, transform .2s ease;
}

.bz-footer-links a i {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    margin-top: 4px;
    color: #85899B;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    transition: color .2s ease;
}

.bz-footer-links a:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

.bz-footer-links a:hover i {
    color: #356AE6;
}

/* RECENT POSTS */

.bz-footer-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    min-width: 0;
    color: #B8BBC8;
    font-size: 14.5px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.bz-footer-posts a {
    color: #B8BBC8;
    text-decoration: none;
    transition: color .2s ease;
}

.bz-footer-posts a:hover {
    color: #356AE6;
}

.bz-footer-posts img {
    display: block;
    max-width: 100%;
    height: auto;
}

.bz-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bz-post-image {
    display: block;
    flex: 0 0 84px;
    width: 84px;
    height: 66px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
}

.bz-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bz-post-item:hover .bz-post-image img {
    transform: scale(1.06);
}

.bz-post-content {
    flex: 1 1 auto;
    min-width: 0;
}

.bz-post-content h6 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.bz-post-title {
    display: -webkit-box;
    overflow: hidden;
    color: #B8BBC8;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bz-post-title:hover {
    color: #356AE6;
}

.bz-post-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #85899B;
    font-size: 11px;
    line-height: 1.4;
}

/* COUNTERS */


/* BLOGZINE — PREMIUM COUNTERS */

.bz-footer-counters {
    padding: 21px 0;
    background: #080D15;
    border-top: 1px solid #253247;
    border-bottom: 1px solid #253247;
}

.bz-footer-counters .d-flex {
    gap: 20px !important;
}

.bz-footer-counters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    transition: opacity .25s ease;
}

.bz-footer-counters img {
    display: block;
    max-width: 100%;
    height: auto;
    opacity: .85;
    transition: opacity .25s ease;
}

.bz-footer-counters a:hover img {
    opacity: 1;
}


/* COPYRIGHT / BOTTOM */


/* BLOGZINE — FOOTER BOTTOM */

.bz-footer-bottom {
    padding: 22px 0;
    background: #0A0F19;
    border-top: 1px solid #253247;
}


.bz-footer-bottom .row {
    --bs-gutter-y: 12px;
}


/* BLOGZINE — COPYRIGHT */

.bz-copyright,
.bz-footer-made {
    margin: 0;
    color: #9AA6B7;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: .1px;
}

.bz-copyright-symbol {
    margin-right: 3px;
    color: #5B8CFF;
}



/* BLOGZINE — COPYRIGHT LINKS */

.bz-copyright a {
    color: #F1F5FB;
    font-weight: 600;
    letter-spacing: .25px;
    text-decoration: none;
    transition: color .2s ease;
}

.bz-copyright a:hover {
    color: #5B8CFF;
}



/* BLOGZINE — FOOTER TEXT */

.bz-copyright-rights {
    margin-left: 3px;
    color: #9AA6B7;
}

.bz-footer-made strong {
    color: #DCE4F0;
    font-weight: 600;
}


/* BACK TO TOP */


/* BLOGZINE — PREMIUM BACK TO TOP */

.bz-back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: #5B8CFF;
    color: #FFFFFF;
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    cursor: pointer;
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        box-shadow .25s ease,
        background-color .25s ease;
}

.bz-back-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.bz-back-top:hover {
    color: #FFFFFF;
    background: #356AE6;
    border-color: #356AE6;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

.bz-back-top:focus-visible {
    outline: 2px solid #8FB0FF;
    outline-offset: 4px;
}

@media (max-width: 576px) {
    .bz-back-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
}


/* TABLETS */

@media (max-width: 991.98px) {
    .bz-footer-main {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .bz-footer-main > .row {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2.25rem;
    }

    .bz-footer-description {
        max-width: 100%;
    }
}

/* MOBILE */

@media (max-width: 767.98px) {
    .bz-footer {
        margin-top: 55px;
    }

    .bz-footer-main {
        padding-top: 42px;
        padding-bottom: 38px;
    }

    .bz-footer-main > .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 2rem;
    }

    .bz-footer-logo {
        margin-bottom: 18px;
    }

    .bz-footer-logo img {
        max-width: 175px;
    }

    .bz-footer-description {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.8;
    }

    .bz-footer-title {
        margin-bottom: 21px;
        font-size: 18px;
    }

    .bz-footer-links li {
        margin-bottom: 10px;
    }

    .bz-footer-links a {
        gap: 8px;
        font-size: 14.5px;
    }

    .bz-footer-posts {
        font-size: 14px;
    }

    .bz-post-image {
        flex-basis: 76px;
        width: 76px;
        height: 60px;
    }

    .bz-footer-counters {
        padding: 17px 0;
    }

    .bz-footer-bottom {
        padding: 19px 0;
    }

    .bz-copyright,
    .bz-footer-made {
        font-size: 12.5px;
    }

    .bz-back-top {
        right: 15px;
        bottom: 15px;
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 27px;
    }
}

/* SMALL PHONES */

@media (max-width: 480px) {
    .bz-footer-main {
        padding-top: 34px;
        padding-bottom: 30px;
    }

    .bz-footer-description {
        font-size: 14.5px;
        line-height: 1.8;
    }

    .bz-footer-title {
        font-size: 17px;
    }

    .bz-footer-links a {
        font-size: 14px;
    }

    .bz-post-image {
        flex-basis: 68px;
        width: 68px;
        height: 56px;
    }

    .bz-post-content h6 {
        font-size: 12px;
    }

    .bz-copyright-rights {
        display: block;
        margin: 3px 0 0;
    }

    .bz-footer-counters .d-flex {
        gap: 14px !important;
    }
}

/* ACCESSIBILITY */

.bz-footer a:focus-visible,
.bz-back-top:focus-visible {
    outline: 2px solid #8B73FF;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .bz-footer *,
    .bz-footer *::before,
    .bz-footer *::after,
    .bz-back-top {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* END BLOGZINE PREMIUM 3.0 FOOTER */

/* =========================================================
   STATISTICS — BLOGZINE STYLE
   LIGHT + DARK THEME
========================================================= */

/* =========================================================
   MAIN
========================================================= */

.stats-page {
    --st-primary: #356AE6;
    --st-primary-hover: #2856C7;

    --st-border: #E7EAF0;
    --st-card: #FFFFFF;
    --st-surface: #EEF1F5;

    --st-text: #172033;
    --st-muted: #8993A3;

    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    color: var(--st-text);
}

/* =========================================================
   HEADER
========================================================= */

.stats-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}

.stats-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(53, 106, 230, .10);
    color: var(--st-primary);
    font-size: 24px;
}

.stats-header-content {
    min-width: 0;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-self: start;
}

.stats-title {
    margin: 0 0 5px;
    color: var(--st-text);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.5px;
    text-align: left !important;
}

.stats-intro {
    margin: 0;
    color: var(--st-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: left !important;
}

/* =========================================================
   GRIDS
========================================================= */

.stats-period-grid,
.stats-general-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

/* =========================================================
   CARDS
========================================================= */

.stats-card {
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    background: var(--st-card);
    border: 1px solid var(--st-border);
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(20, 25, 45, .035);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.stats-period-card:hover,
.stats-general-card:hover {
    border-color: rgba(53, 106, 230, .25);
    box-shadow: 0 7px 22px rgba(20, 25, 45, .06);
}

/* =========================================================
   CARD HEADINGS
========================================================= */

.stats-card-heading,
.stats-topusers-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    min-width: 0;
}

.stats-card-heading > div:last-child,
.stats-topusers-header > div:last-child {
    min-width: 0;
}

.stats-card-heading h2,
.stats-card-heading h3,
.stats-topusers-header h2 {
    margin: 0 0 5px;
    color: var(--st-text);
    font-size: 15px;
    font-weight: 750;
}

.stats-card-heading p,
.stats-topusers-header p {
    margin: 0;
    color: var(--st-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   ICONS
========================================================= */

.stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 19px;
}

.stats-icon-primary {
    color: #356AE6;
    background: rgba(53, 106, 230, .10);
}

.stats-icon-success {
    color: #159B68;
    background: rgba(21, 155, 104, .11);
}

.stats-icon-warning {
    color: #C18416;
    background: rgba(213, 138, 22, .13);
}

.stats-icon-info {
    color: #168BCB;
    background: rgba(22, 139, 203, .11);
}

/* =========================================================
   STATISTIC ROWS
========================================================= */

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 0;
    color: var(--st-muted);
    font-size: 16px;
    line-height: 1.5;
}

.stats-list-row > span {
    min-width: 0;
}

.stats-list-row > span i {
    margin-right: 7px;
    color: var(--st-primary);
    font-size: 14px;
}

.stats-list-row > strong {
    flex-shrink: 0;
    color: var(--st-text);
    font-size: 14px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.stats-value-success {
    color: #159B68 !important;
}

.stats-value-info {
    color: #168BCB !important;
}

.stats-value-warning {
    color: #C18416 !important;
}

.stats-value-danger {
    color: #DC3545 !important;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.stats-section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 4px 0 -4px;
}

.stats-section-heading h2 {
    margin: 0 0 5px;
    color: var(--st-text);
    font-size: 16px;
    font-weight: 750;
}

.stats-section-heading p {
    margin: 0;
    color: var(--st-muted);
    font-size: 12px;
}

.stats-section-line {
    flex: 1;
    height: 1px;
    background: var(--st-border);
}

/* =========================================================
   GENERAL CARDS
========================================================= */

.stats-list-general {
    gap: 17px;
}

.stats-comments-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 24px;
}

.stats-comments-total strong {
    color: var(--st-primary);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
}

.stats-comments-total span {
    color: var(--st-muted);
    font-size: 12px;
}

/* =========================================================
   ACTION LINK
========================================================= */

.stats-action-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: auto;
    padding: 12px 14px;
    border: 1px solid rgba(53, 106, 230, .25);
    border-radius: 10px;
    color: var(--st-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.stats-action-link:hover {
    background: var(--st-primary);
    border-color: var(--st-primary);
    color: #FFFFFF;
}

/* =========================================================
   DATABASE
========================================================= */

.stats-database {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stats-database > div:last-child {
    min-width: 0;
}

.stats-database p {
    margin: 0 0 5px;
    color: var(--st-muted);
    font-size: 12px;
}

.stats-database strong {
    color: var(--st-primary);
    font-size: 22px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* =========================================================
   TOP USERS TABLE
========================================================= */

.stats-topusers {
    padding: 0;
    overflow: hidden;
}

/* Header */

.stats-topusers-header {
    margin: 0;
    padding: 24px;
    border-bottom: 1px solid var(--st-border);
}

/* Table container */

.stats-page .stats-topusers .table-responsive {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 0 0 16px 16px;
    margin-bottom: 0 !important;
}

/* Hide scrollbar */

.stats-page .stats-topusers .table-responsive::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.stats-page .stats-topusers .table-responsive {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Table */

.stats-page .stats-topusers .stats-users-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--st-text);
    --bs-table-border-color: var(--st-border);
    --bs-table-hover-bg: rgba(53, 106, 230, .045);
    --bs-table-hover-color: var(--st-text);

    margin: 0 !important;
    color: var(--st-text);
    border-collapse: collapse !important;
    table-layout: auto !important;
}

/* Table headings */

.stats-page .stats-topusers .stats-users-table thead th {
    padding: 14px 18px !important;
    background: var(--st-surface);
    color: var(--st-muted);
    border-bottom: 1px solid var(--st-border);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Table cells */

.stats-page .stats-topusers .stats-users-table tbody td {
    padding: 15px 18px !important;
    border-color: var(--st-border);
    font-size: 13px;
    vertical-align: middle !important;
    color: var(--st-text);
}

/* Table links */

.stats-page .stats-topusers .stats-users-table a {
    color: var(--st-primary);
    font-weight: 650;
    text-decoration: none;
}

.stats-page .stats-topusers .stats-users-table a:hover {
    color: var(--st-primary-hover);
    text-decoration: underline;
}

/* Last column */

.stats-page .stats-topusers .stats-users-table th:last-child,
.stats-page .stats-topusers .stats-users-table td:last-child {
    text-align: right !important;
    padding-right: 24px !important;
    white-space: nowrap !important;
}

/* =========================================================
   DARK THEME
========================================================= */

[data-bs-theme="dark"] .stats-page {
    --st-primary: #5B8CFF;
    --st-primary-hover: #80A6FF;

    --st-border: #253247;
    --st-card: #131D2B;
    --st-surface: #192536;

    --st-text: #F1F5FB;
    --st-muted: #9AA6B7;
}

/* Cards */

[data-bs-theme="dark"] .stats-card {
    box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
}

[data-bs-theme="dark"] .stats-period-card:hover,
[data-bs-theme="dark"] .stats-general-card:hover {
    border-color: rgba(53, 106, 230, .4);
    box-shadow: 0 7px 22px rgba(0, 0, 0, .2);
}

/* Icons */

[data-bs-theme="dark"] .stats-icon-primary {
    color: #5B8CFF;
    background: rgba(53, 106, 230, .12);
}

[data-bs-theme="dark"] .stats-icon-success {
    color: #50D6A0;
    background: rgba(80, 214, 160, .12);
}

[data-bs-theme="dark"] .stats-icon-warning {
    color: #F0BD62;
    background: rgba(240, 189, 98, .12);
}

[data-bs-theme="dark"] .stats-icon-info {
    color: #61BDF0;
    background: rgba(97, 189, 240, .12);
}

/* Statistic values */

[data-bs-theme="dark"] .stats-value-success {
    color: #50D6A0 !important;
}

[data-bs-theme="dark"] .stats-value-info {
    color: #61BDF0 !important;
}

[data-bs-theme="dark"] .stats-value-warning {
    color: #F0BD62 !important;
}

[data-bs-theme="dark"] .stats-value-danger {
    color: #FF7785 !important;
}

/* Comments and database */

[data-bs-theme="dark"] .stats-comments-total strong,
[data-bs-theme="dark"] .stats-database strong {
    color: #5B8CFF;
}

/* Table */

[data-bs-theme="dark"] .stats-users-table {
    --bs-table-color: var(--st-text);
    --bs-table-border-color: var(--st-border);
    --bs-table-hover-bg: rgba(53, 106, 230, .09);
    --bs-table-hover-color: var(--st-text);
}

[data-bs-theme="dark"] .stats-users-table thead th {
    background: var(--st-surface);
    color: var(--st-muted);
}

[data-bs-theme="dark"] .stats-users-table tbody td {
    color: var(--st-text);
}

[data-bs-theme="dark"] .stats-users-table a {
    color: #5B8CFF;
}

[data-bs-theme="dark"] .stats-users-table a:hover {
    color: #80A6FF;
}

/* Action link */

[data-bs-theme="dark"] .stats-action-link {
    border-color: rgba(53, 106, 230, .35);
    color: #5B8CFF;
}

[data-bs-theme="dark"] .stats-action-link:hover {
    background: #356AE6;
    border-color: #356AE6;
    color: #FFFFFF;
}

/* Header icon */

[data-bs-theme="dark"] .stats-header-icon {
    background: rgba(53, 106, 230, .12);
    color: #5B8CFF;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .stats-period-grid,
    .stats-general-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 575.98px) {

    .stats-page {
        gap: 18px;
    }

    .stats-header {
        gap: 13px;
    }

    .stats-header-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 21px;
    }

    .stats-title {
        font-size: 22px;
    }

    .stats-intro {
        font-size: 13px;
    }

    .stats-period-grid,
    .stats-general-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .stats-card {
        padding: 20px;
        border-radius: 14px;
    }

    .stats-topusers {
        padding: 0;
    }

    .stats-topusers-header {
        padding: 20px;
    }

    .stats-section-heading {
        gap: 12px;
    }

    .stats-comments-total strong {
        font-size: 36px;
    }

    .stats-users-table {
        min-width: 650px;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .stats-card,
    .stats-action-link {
        transition: none;
    }

}


/* BLOGZINE — LIGHT THEME STATISTICS */

.stats-page {
    --fb-bg: #FFFFFF;
    --fb-surface: #FFFFFF;
    --fb-input: #F5F6F8;
    --fb-border: #E7EAF0;
    --fb-text: #172033;
    --fb-muted: #8993A3;
}

/* STATISTICS HEADER */

.stats-page .stats-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    /* margin-bottom: 22px; */
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 18px;
}

/* BLOGZINE — DARK THEME STATISTICS */

[data-bs-theme="dark"] .stats-page,
.dark .stats-page,
body.dark .stats-page {
    --fb-bg: #0B111B;
    --fb-surface: #131D2B;
    --fb-input: #101927;
    --fb-border: #253247;
    --fb-text: #F1F5FB;
    --fb-muted: #9AA6B7;
}


/* =========================================================
   BLOGZINE — FINAL DESIGN SYSTEM
   Brand: #356AE6 | Hover: #2856C7
   Сохранены исходные селекторы, DLE-разметка и поведение компонентов.
   ========================================================= */

/* =====================================
   BLOGZINE — PREMIUM BRAND COLORS 2027
===================================== */

/* LIGHT THEME */
:root,
[data-bs-theme="light"] {
    --bz-primary: #356AE6;
    --bz-primary-hover: #2856C7;
    --bz-primary-rgb: 53, 106, 230;
    --bz-icon-bg: rgba(53, 106, 230, .10);

    --st-primary: #356AE6;
    --st-primary-hover: #2856C7;
}

/* DARK THEME */
[data-bs-theme="dark"],
.dark,
body.dark {
    --bz-primary: #5B8CFF;
    --bz-primary-hover: #80A6FF;
    --bz-primary-rgb: 91, 140, 255;
    --bz-icon-bg: rgba(91, 140, 255, .16);

    --st-primary: #5B8CFF;
    --st-primary-hover: #80A6FF;
}

/* ARTICLE PAGE */
.blogzine-article-page {
    --bs-primary: #356AE6;
    --bs-primary-rgb: 53, 106, 230;
}

/* ARTICLE PAGE — DARK */
[data-bs-theme="dark"] .blogzine-article-page,
.dark .blogzine-article-page,
body.dark .blogzine-article-page {
    --bs-primary: #5B8CFF;
    --bs-primary-rgb: 91, 140, 255;
}



/* BLOGZINE — PREMIUM HEADER ICONS */

/* Светлая тема */
:root,
[data-bs-theme="light"] {
    --bz-icon-color: #356AE6;
    --bz-icon-background: rgba(53, 106, 230, .10);
}

/* Тёмная тема */
[data-bs-theme="dark"],
.dark,
body.dark {
    --bz-icon-color: #5B8CFF;
    --bz-icon-background: rgba(91, 140, 255, .16);
}

/* Единый контейнер заголовочных иконок */
.addnews-header-icon,
.stats-page .stats-header-icon,
.feedback-icon,
.feedback-page .feedback-icon,
.pm-icon,
.pm-header .pm-icon {
    color: var(--bz-icon-color);
    background: var(--bz-icon-background);
}

/* Иконки внутри контейнеров */
.addnews-header-icon i,
.stats-page .stats-header-icon i,
.feedback-icon i,
.feedback-page .feedback-icon i,
.pm-icon i,
.pm-header .pm-icon i {
    color: var(--bz-icon-color);
}


/* =========================================
   BLOGZINE — STATISTICS ICONS
========================================= */

/* Светлая тема */
.stats-page .stats-icon-primary {
    color: #356AE6;
    background: rgba(53, 106, 230, .12);
}

.stats-page .stats-icon-success {
    color: #0D9488;
    background: rgba(13, 148, 136, .12);
}

.stats-page .stats-icon-warning {
    color: #D99119;
    background: rgba(217, 145, 25, .13);
}

.stats-page .stats-icon-info {
    color: #3B82F6;
    background: rgba(59, 130, 246, .12);
}

.stats-page .stats-icon-primary i,
.stats-page .stats-icon-success i,
.stats-page .stats-icon-warning i,
.stats-page .stats-icon-info i {
    color: inherit;
}

/* =========================================
   DARK THEME — STATISTICS ICONS
========================================= */

[data-bs-theme="dark"] .stats-page .stats-icon-primary,
.dark .stats-page .stats-icon-primary,
body.dark .stats-page .stats-icon-primary {
    color: #5B8CFF;
    background: rgba(91, 140, 255, .20);
}

[data-bs-theme="dark"] .stats-page .stats-icon-success,
.dark .stats-page .stats-icon-success,
body.dark .stats-page .stats-icon-success {
    color: #2DD4BF;
    background: rgba(45, 212, 191, .18);
}

[data-bs-theme="dark"] .stats-page .stats-icon-warning,
.dark .stats-page .stats-icon-warning,
body.dark .stats-page .stats-icon-warning {
    color: #F5B942;
    background: rgba(245, 185, 66, .18);
}

[data-bs-theme="dark"] .stats-page .stats-icon-info,
.dark .stats-page .stats-icon-info,
body.dark .stats-page .stats-icon-info {
    color: #60A5FA;
    background: rgba(96, 165, 250, .18);
}

/* =========================================
   STATISTICS LINKS
========================================= */

.stats-page .stats-action-link {
    color: #356AE6;
    transition: color .2s ease;
}

.stats-page .stats-action-link:hover {
    color: #2856C7;
}

[data-bs-theme="dark"] .stats-page .stats-action-link,
.dark .stats-page .stats-action-link,
body.dark .stats-page .stats-action-link {
    color: #5B8CFF;
}

[data-bs-theme="dark"] .stats-page .stats-action-link:hover,
.dark .stats-page .stats-action-link:hover,
body.dark .stats-page .stats-action-link:hover {
    color: #80A6FF;
}

.stats-page .stats-database p {
    color: #356AE6;
}

[data-bs-theme="dark"] .stats-page .stats-database p,
.dark .stats-page .stats-database p,
body.dark .stats-page .stats-database p {
    color: #5B8CFF;
}

/* =========================================
   ACCOUNT MODAL — PREMIUM BLUE
========================================= */

.acc-modal {
    --acc-primary: #356AE6;
    --acc-primary-hover: #2856C7;
}

.acc-modal .modal-header {
    background: linear-gradient(
        135deg,
        #356AE6 0%,
        #2856C7 100%
    );
}

.acc-modal a:not(.btn):not(.acc-social-btn) {
    color: #356AE6;
}

.acc-modal a:not(.btn):not(.acc-social-btn):hover {
    color: #2856C7;
}

.acc-modal .form-check-input:checked {
    background-color: #356AE6;
    border-color: #356AE6;
}

.acc-modal .form-check-input:focus {
    border-color: #356AE6;
    box-shadow: 0 0 0 .2rem rgba(53, 106, 230, .20);
}

/* =========================================
   ACCOUNT MODAL — DARK THEME
========================================= */

[data-bs-theme="dark"] .acc-modal,
.dark .acc-modal,
body.dark .acc-modal {
    --acc-primary: #5B8CFF;
    --acc-primary-hover: #80A6FF;
}

[data-bs-theme="dark"] .acc-modal .modal-header,
.dark .acc-modal .modal-header,
body.dark .acc-modal .modal-header {
    background: linear-gradient(
        135deg,
        #356AE6 0%,
        #1D438F 100%
    );
}

[data-bs-theme="dark"] .acc-modal a:not(.btn):not(.acc-social-btn),
.dark .acc-modal a:not(.btn):not(.acc-social-btn),
body.dark .acc-modal a:not(.btn):not(.acc-social-btn) {
    color: #5B8CFF;
}

[data-bs-theme="dark"] .acc-modal a:not(.btn):not(.acc-social-btn):hover,
.dark .acc-modal a:not(.btn):not(.acc-social-btn):hover,
body.dark .acc-modal a:not(.btn):not(.acc-social-btn):hover {
    color: #80A6FF;
}

[data-bs-theme="dark"] .acc-modal .form-check-input:checked,
.dark .acc-modal .form-check-input:checked,
body.dark .acc-modal .form-check-input:checked {
    background-color: #5B8CFF;
    border-color: #5B8CFF;
}

[data-bs-theme="dark"] .acc-modal .form-check-input:focus,
.dark .acc-modal .form-check-input:focus,
body.dark .acc-modal .form-check-input:focus {
    border-color: #5B8CFF;
    box-shadow: 0 0 0 .2rem rgba(91, 140, 255, .20);
}

/* =========================================
   ACCESSIBILITY — REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .blogzine-article-page *,
    .blogzine-article-page *::before,
    .blogzine-article-page *::after,
    .stats-page *,
    .stats-page *::before,
    .stats-page *::after,
    .feedback-page *,
    .feedback-page *::before,
    .feedback-page *::after,
    .pm-page *,
    .pm-page *::before,
    .pm-page *::after,
    .acc-modal *,
    .acc-modal *::before,
    .acc-modal *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* END BLOGZINE FINAL DESIGN SYSTEM */


/* Базовый стиль категории */
.bz-category-badge {
    display: inline-block;
    border: none;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

/* Жёлтая */
.bz-category-yellow {
    color: #212529 !important;
    background-color: #ffc107 !important;
}

/* Голубая */
.bz-category-blue {
    color: #fff !important;
    background-color: #0dcaf0 !important;
}

/* Красная */
.bz-category-red {
    color: #fff !important;
    background-color: #dc3545 !important;
}

/* Зелёная */
.bz-category-green {
    color: #fff !important;
    background-color: #198754 !important;
}

/* Светлая — светлая тема */
[data-bs-theme="light"] .bz-category-light,
:root:not([data-bs-theme="dark"]) .bz-category-light {
    color: #212529 !important;
    background-color: #f1f3f5 !important;
}

/* Светлая — тёмная тема */
[data-bs-theme="dark"] .bz-category-light {
    color: #fff !important;
    background-color: #343a40 !important;
}

/* Тёмная категория */
.bz-category-dark {
    color: #fff !important;
    background-color: #212529 !important;
}

/* Hover */
/* Иконка */
.bz-category-badge i {
    font-size: 7px;
    vertical-align: middle;
}

/* Фирменный фиолетовый Blogzine */
.bz-category-purple {
    color: #fff !important;
    background-color: #356AE6 !important;
}

/* Мягкий фиолетовый */
.bz-category-violet {
    color: #356AE6 !important;
    background-color: #eee9ff !important;
}

/* Розовый */
.bz-category-pink {
    color: #fff !important;
    background-color: #e83e8c !important;
}

/* Оранжевый */
.bz-category-orange {
    color: #fff !important;
    background-color: #fd7e14 !important;
}

/* Бирюзовый */
.bz-category-teal {
    color: #fff !important;
    background-color: #20a89e !important;
}

/* Синий */
.bz-category-indigo {
    color: #fff !important;
    background-color: #4056d6 !important;
}

/* Серый */
.bz-category-gray {
    color: #fff !important;
    background-color: #6c757d !important;
}

/* ========================================
   BLOGZINE — категории в тёмной теме
======================================== */

[data-bs-theme="dark"] .bz-category-purple {
    color: #ffffff !important;
    background-color: #356AE6 !important;
}

[data-bs-theme="dark"] .bz-category-violet {
    color: #dcd0ff !important;
    background-color: #30234f !important;
}

[data-bs-theme="dark"] .bz-category-pink {
    color: #ffffff !important;
    background-color: #a92765 !important;
}

[data-bs-theme="dark"] .bz-category-orange {
    color: #ffffff !important;
    background-color: #a94d0a !important;
}

[data-bs-theme="dark"] .bz-category-teal {
    color: #ffffff !important;
    background-color: #126d67 !important;
}

[data-bs-theme="dark"] .bz-category-indigo {
    color: #ffffff !important;
    background-color: #303fa3 !important;
}

[data-bs-theme="dark"] .bz-category-gray {
    color: #f1f3f5 !important;
    background-color: #343a40 !important;
}

.profile-info-value .profile-muted {
    font-weight: 600;
}

.news-rating {
    border-radius: 15px;
}

.news-related {
    border-radius: 15px;
}

.news-statistics {
    border-radius: 15px 15px 15px 15px;
    overflow: hidden;
}

.news-discussion {
    border-radius: 15px 15px 15px 15px;
    overflow: hidden;
}

/* BlogZine — Recent Posts */

.blogzine-recent-post {
    transition: transform .2s ease;
}

.blogzine-recent-post:hover {
    transform: translateY(-2px);
}

.blogzine-recent-thumb {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.blogzine-recent-post h6 {
    font-size: .9rem;
    line-height: 1.4;
}

.blogzine-recent-post h6 a:hover {
    color: var(--bs-primary) !important;
}

/* =========================================
   BLOGZINE — ЗАГОЛОВОК СТРАНИЦЫ ПОЛЬЗОВАТЕЛЯ
   ========================================= */

.bz-user-heading {
    background: #f3f7fc;
    border: 1px solid #e5edf7;
}

.bz-user-heading h1 {
    color: #263b57;
}

.bz-user-heading-name {
    color: #2878c7;
}

.bz-user-heading .breadcrumb {
    margin-bottom: 0;
}

.bz-user-heading .breadcrumb-item a {
    color: #2878c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bz-user-heading .breadcrumb-item a:hover {
    color: #185a9d;
}

.bz-user-heading .breadcrumb-item.active {
    color: #6c7a8d;
}

/* Тёмная тема */
[data-bs-theme="dark"] .bz-user-heading {
    background: #1b2635;
    border-color: #2b3b50;
}

[data-bs-theme="dark"] .bz-user-heading h1 {
    color: #e5edf7;
}

[data-bs-theme="dark"] .bz-user-heading-name {
    color: #6daeff;
}

[data-bs-theme="dark"] .bz-user-heading .breadcrumb-item a {
    color: #6daeff;
}

[data-bs-theme="dark"] .bz-user-heading .breadcrumb-item.active {
    color: #aab8c9;
}

/* Заголовок публикаций пользователя */
.bz-user-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    margin-bottom: 24px;
    color: var(--fb-muted);
    background: var(--fb-surface);
    border: 1px solid #E7EAF0;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.65;
}

.bz-user-heading-name {
    color: #356AE6;
    font-weight: 800;
}

/* Тёмная тема */
[data-bs-theme="dark"] .bz-user-heading {
    background: #131D2B;
    border-color: #253247;
    color: #F1F5FB;
}

[data-bs-theme="dark"] .bz-user-heading-name {
    color: #5B8CFF;
}

/* =====================================
   BLOGZINE RECENT POSTS — DLE 21
   NO BORDER — NO BLUE — NO OUTLINE
===================================== */

/* TITLE */
.blogzine-recent-post .blogzine-recent-title {
    font-size: .9375rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* LINKS — ALL STATES */
.blogzine-recent-post .blogzine-recent-title a,
.blogzine-recent-post .blogzine-recent-title a:link,
.blogzine-recent-post .blogzine-recent-title a:visited,
.blogzine-recent-post .blogzine-recent-title a:hover,
.blogzine-recent-post .blogzine-recent-title a:focus,
.blogzine-recent-post .blogzine-recent-title a:active {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* KEYBOARD FOCUS */
.blogzine-recent-post .blogzine-recent-title a:focus-visible {
    outline: 2px solid #356AE6 !important;
    outline-offset: 3px;
    border-radius: 3px;
}

/* DARK MODE — CARD */
[data-bs-theme="dark"] .blogzine-recent-post,
[data-theme="dark"] .blogzine-recent-post,
.dark-mode .blogzine-recent-post,
.dark .blogzine-recent-post {
    background: #0B111B !important;
    border: 1px solid #0B111B !important;
}

/* DARK MODE — LINKS */
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a,
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:link,
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:visited,
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:hover,
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:focus,
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:active,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:link,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:visited,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:hover,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:focus,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:active,
.dark-mode .blogzine-recent-post .blogzine-recent-title a,
.dark-mode .blogzine-recent-post .blogzine-recent-title a:link,
.dark-mode .blogzine-recent-post .blogzine-recent-title a:visited,
.dark-mode .blogzine-recent-post .blogzine-recent-title a:hover,
.dark-mode .blogzine-recent-post .blogzine-recent-title a:focus,
.dark-mode .blogzine-recent-post .blogzine-recent-title a:active,
.dark .blogzine-recent-post .blogzine-recent-title a,
.dark .blogzine-recent-post .blogzine-recent-title a:link,
.dark .blogzine-recent-post .blogzine-recent-title a:visited,
.dark .blogzine-recent-post .blogzine-recent-title a:hover,
.dark .blogzine-recent-post .blogzine-recent-title a:focus,
.dark .blogzine-recent-post .blogzine-recent-title a:active {
    color: #F1F5FB !important;
    -webkit-text-fill-color: #F1F5FB !important;
}

/* DARK MODE — KEYBOARD FOCUS */
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:focus-visible,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:focus-visible,
.dark-mode .blogzine-recent-post .blogzine-recent-title a:focus-visible,
.dark .blogzine-recent-post .blogzine-recent-title a:focus-visible {
    outline-color: #5B8CFF !important;
}

/* DATE */
.blogzine-recent-post .blogzine-recent-date {
    font-size: .8rem;
    color: #8993A3 !important;
}

/* DARK MODE — DATE */
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-date,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-date,
.dark-mode .blogzine-recent-post .blogzine-recent-date,
.dark .blogzine-recent-post .blogzine-recent-date {
    color: #9AA6B7 !important;
}

/* DARK MODE — LINKS */
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a,
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:hover,
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:focus,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-title a:hover,
.dark-mode .blogzine-recent-post .blogzine-recent-title a,
.dark-mode .blogzine-recent-post .blogzine-recent-title a:hover,
.dark .blogzine-recent-post .blogzine-recent-title a,
.dark .blogzine-recent-post .blogzine-recent-title a:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* DARK MODE — DATE */
[data-bs-theme="dark"] .blogzine-recent-post .blogzine-recent-date,
[data-theme="dark"] .blogzine-recent-post .blogzine-recent-date,
.dark-mode .blogzine-recent-post .blogzine-recent-date,
.dark .blogzine-recent-post .blogzine-recent-date {
    color: #b0b0b0 !important;
}

/* =========================================
   CATEGORY HOVER FIX — сохраняем цвета категорий
   В обычной и тёмной теме, при hover/focus/active
   ========================================= */

.bz-category-badge,
.bz-category-badge:hover,
.bz-category-badge:focus,
.bz-category-badge:active {
    transition: none !important;
    text-decoration: none !important;
}

/* Жёлтая */
.bz-category-yellow:hover,
.bz-category-yellow:focus,
.bz-category-yellow:active {
    color: #212529 !important;
    background-color: #ffc107 !important;
}

/* Голубая */
.bz-category-blue:hover,
.bz-category-blue:focus,
.bz-category-blue:active {
    color: #fff !important;
    background-color: #0dcaf0 !important;
}

/* Красная */
.bz-category-red:hover,
.bz-category-red:focus,
.bz-category-red:active {
    color: #fff !important;
    background-color: #dc3545 !important;
}

/* Зелёная */
.bz-category-green:hover,
.bz-category-green:focus,
.bz-category-green:active {
    color: #fff !important;
    background-color: #198754 !important;
}

/* Фирменная фиолетовая */
.bz-category-purple:hover,
.bz-category-purple:focus,
.bz-category-purple:active {
    color: #fff !important;
    background-color: #356AE6 !important;
}

/* Мягкая фиолетовая — светлая тема */
.bz-category-violet:hover,
.bz-category-violet:focus,
.bz-category-violet:active {
    color: #356AE6 !important;
    background-color: #eee9ff !important;
}

/* Мягкая фиолетовая — тёмная тема */
[data-bs-theme="dark"] .bz-category-violet:hover,
[data-bs-theme="dark"] .bz-category-violet:focus,
[data-bs-theme="dark"] .bz-category-violet:active {
    color: #dcd0ff !important;
    background-color: #30234f !important;
}

/* Розовая — светлая тема */
.bz-category-pink:hover,
.bz-category-pink:focus,
.bz-category-pink:active {
    color: #fff !important;
    background-color: #e83e8c !important;
}

/* Розовая — тёмная тема */
[data-bs-theme="dark"] .bz-category-pink:hover,
[data-bs-theme="dark"] .bz-category-pink:focus,
[data-bs-theme="dark"] .bz-category-pink:active {
    color: #fff !important;
    background-color: #a92765 !important;
}

/* Оранжевая — светлая тема */
.bz-category-orange:hover,
.bz-category-orange:focus,
.bz-category-orange:active {
    color: #fff !important;
    background-color: #fd7e14 !important;
}

/* Оранжевая — тёмная тема */
[data-bs-theme="dark"] .bz-category-orange:hover,
[data-bs-theme="dark"] .bz-category-orange:focus,
[data-bs-theme="dark"] .bz-category-orange:active {
    color: #fff !important;
    background-color: #a94d0a !important;
}

/* Бирюзовая — светлая тема */
.bz-category-teal:hover,
.bz-category-teal:focus,
.bz-category-teal:active {
    color: #fff !important;
    background-color: #20a89e !important;
}

/* Бирюзовая — тёмная тема */
[data-bs-theme="dark"] .bz-category-teal:hover,
[data-bs-theme="dark"] .bz-category-teal:focus,
[data-bs-theme="dark"] .bz-category-teal:active {
    color: #fff !important;
    background-color: #126d67 !important;
}

/* Индиго — светлая тема */
.bz-category-indigo:hover,
.bz-category-indigo:focus,
.bz-category-indigo:active {
    color: #fff !important;
    background-color: #4056d6 !important;
}

/* Индиго — тёмная тема */
[data-bs-theme="dark"] .bz-category-indigo:hover,
[data-bs-theme="dark"] .bz-category-indigo:focus,
[data-bs-theme="dark"] .bz-category-indigo:active {
    color: #fff !important;
    background-color: #303fa3 !important;
}

/* Серая — светлая тема */
.bz-category-gray:hover,
.bz-category-gray:focus,
.bz-category-gray:active {
    color: #fff !important;
    background-color: #6c757d !important;
}

/* Серая — тёмная тема */
[data-bs-theme="dark"] .bz-category-gray:hover,
[data-bs-theme="dark"] .bz-category-gray:focus,
[data-bs-theme="dark"] .bz-category-gray:active {
    color: #f1f3f5 !important;
    background-color: #343a40 !important;
}

/* Тёмная */
.bz-category-dark:hover,
.bz-category-dark:focus,
.bz-category-dark:active {
    color: #fff !important;
    background-color: #212529 !important;
}

/* Светлая — светлая тема */
[data-bs-theme="light"] .bz-category-light:hover,
[data-bs-theme="light"] .bz-category-light:focus,
[data-bs-theme="light"] .bz-category-light:active,
:root:not([data-bs-theme="dark"]) .bz-category-light:hover,
:root:not([data-bs-theme="dark"]) .bz-category-light:focus,
:root:not([data-bs-theme="dark"]) .bz-category-light:active {
    color: #212529 !important;
    background-color: #f1f3f5 !important;
}

/* Светлая — тёмная тема */
[data-bs-theme="dark"] .bz-category-light:hover,
[data-bs-theme="dark"] .bz-category-light:focus,
[data-bs-theme="dark"] .bz-category-light:active {
    color: #fff !important;
    background-color: #343a40 !important;
}

/* =========================================
   БУКВИЦА ТОЛЬКО В ПЕРВОМ АБЗАЦЕ
   ========================================= */

.news .main_text > p:first-child::first-letter,
.news .main_text > div:first-child > p:first-child::first-letter {
    float: left;
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1;
    margin: 0.04em 0.15em 0 0;
    padding: 0 0.4rem;
    color: #356AE6;
    background-color: rgb(33 99 232 / 10%);
    border-radius: 6px;
}

/* =========================================
   ОТКЛЮЧЕНИЕ БУКВИЦЫ В СПИСКАХ
   ========================================= */

.news .main_text li::first-letter,
.news .main_text li p::first-letter,
.news .main_text li div::first-letter {
    float: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    color: inherit !important;
    border-radius: 0 !important;
}

/* =========================================
   НОРМАЛЬНЫЙ РЕГИСТР ТЕКСТА
   ========================================= */

.news .main_text,
.news .main_text *,
.news .main_text *::before,
.news .main_text *::after {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
    font-feature-settings: normal !important;
}

/* =========================================
   ТАБЛИЦЫ
   ========================================= */

.news .main_text table,
.news .main_text th,
.news .main_text td,
.news .main_text table p {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
}

/* =========================================
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ
   ========================================= */

@media screen and (max-width: 768px) {
    .news .main_text > p:first-child::first-letter,
    .news .main_text > div:first-child > p:first-child::first-letter {
        font-size: 3em;
        padding: 0 0.35rem;
        margin-right: 0.12em;
    }

    .news .main_text {
        text-transform: none !important;
        font-variant: normal !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* =========================================================
   BLOGZINE — FINAL PALETTE NORMALIZATION
   Premium Ivory / Midnight Premium / Premium Blue
   Palette-only overrides; layout and responsive behavior preserved.
   ========================================================= */

:root,
[data-bs-theme="light"] {
    --bz-primary: #356AE6;
    --bz-primary-hover: #2856C7;
    --bz-primary-rgb: 53, 106, 230;
    --st-primary: #356AE6;
    --st-primary-hover: #2856C7;
}

[data-bs-theme="dark"],
[data-theme="dark"],
.dark-mode,
.dark,
body.dark {
    --bz-primary: #5B8CFF;
    --bz-primary-hover: #80A6FF;
    --bz-primary-rgb: 91, 140, 255;
    --st-primary: #5B8CFF;
    --st-primary-hover: #80A6FF;
}

/* Feedback + private messages */
[data-bs-theme="dark"] .feedback-page,
[data-theme="dark"] .feedback-page,
.dark-mode .feedback-page,
.dark .feedback-page,
body.dark .feedback-page {
    --fb-bg: #0B111B;
    --fb-surface: #131D2B;
    --fb-input: #101927;
    --fb-border: #253247;
    --fb-text: #F1F5FB;
    --fb-muted: #9AA6B7;
    --fb-accent: #5B8CFF;
    --fb-accent-hover: #80A6FF;
}

[data-bs-theme="dark"] .pm,
[data-theme="dark"] .pm,
.dark-mode .pm,
.dark .pm,
body.dark .pm {
    --pm-bg: #0B111B;
    --pm-surface: #131D2B;
    --pm-input: #101927;
    --pm-border: #253247;
    --pm-text: #F1F5FB;
    --pm-muted: #9AA6B7;
    --pm-accent: #5B8CFF;
    --pm-accent-hover: #80A6FF;
}

/* Statistics surfaces */
[data-bs-theme="dark"] .stats-page,
[data-theme="dark"] .stats-page,
.dark-mode .stats-page,
.dark .stats-page,
body.dark .stats-page {
    --st-primary: #5B8CFF;
    --st-primary-hover: #80A6FF;
    --st-border: #253247;
    --st-card: #131D2B;
    --st-surface: #192536;
    --st-text: #F1F5FB;
    --st-muted: #9AA6B7;
    --fb-bg: #0B111B;
    --fb-surface: #131D2B;
    --fb-input: #101927;
    --fb-border: #253247;
    --fb-text: #F1F5FB;
    --fb-muted: #9AA6B7;
}

/* Account modal — dark surfaces and text */
[data-bs-theme="dark"] .acc-modal,
[data-theme="dark"] .acc-modal,
.dark-mode .acc-modal,
.dark .acc-modal,
body.dark .acc-modal {
    --acc-primary: #5B8CFF;
    --acc-primary-hover: #80A6FF;
}

[data-bs-theme="dark"] .acc-modal .modal-content,
[data-bs-theme="dark"] .acc-modal .modal-body,
[data-theme="dark"] .acc-modal .modal-content,
[data-theme="dark"] .acc-modal .modal-body,
.dark-mode .acc-modal .modal-content,
.dark-mode .acc-modal .modal-body,
.dark .acc-modal .modal-content,
.dark .acc-modal .modal-body,
body.dark .acc-modal .modal-content,
body.dark .acc-modal .modal-body {
    background: #131D2B;
    color: #F1F5FB;
}

[data-bs-theme="dark"] .acc-modal .modal-header,
[data-theme="dark"] .acc-modal .modal-header,
.dark-mode .acc-modal .modal-header,
.dark .acc-modal .modal-header,
body.dark .acc-modal .modal-header {
    background: linear-gradient(135deg, #356AE6 0%, #1D438F 100%);
}

/* Article page Bootstrap primary token follows the active theme. */
.blogzine-article-page {
    --bs-primary: #356AE6;
    --bs-primary-rgb: 53, 106, 230;
}

[data-bs-theme="dark"] .blogzine-article-page,
[data-theme="dark"] .blogzine-article-page,
.dark-mode .blogzine-article-page,
.dark .blogzine-article-page,
body.dark .blogzine-article-page {
    --bs-primary: #5B8CFF;
    --bs-primary-rgb: 91, 140, 255;
}
