.logo-just {
    animation: none !important;
    transition: none !important;
}

.forum-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    pointer-events: none;
    opacity: 0;
    z-index: 20000;
    transition: opacity 0.18s ease;
}

.forum-loading-bar.is-visible {
    opacity: 1;
}

.forum-loading-bar-track {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0), rgba(255, 107, 0, 0.14), rgba(255, 107, 0, 0));
    opacity: 0.6;
}

.forum-loading-bar-indicator {
    position: absolute;
    top: 0;
    left: -30%;
    height: 100%;
    width: 34%;
    min-width: 120px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0), rgba(255, 140, 51, 0.95), rgba(255, 107, 0, 0));
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.45);
    animation: forumShellLoadingSweep 1.15s cubic-bezier(.4, 0, .2, 1) infinite;
}

.forum-loading-bar-indicator.secondary {
    width: 22%;
    min-width: 80px;
    animation-duration: 1.65s;
    animation-delay: .22s;
    opacity: 0.75;
}

html.forum-loading-active {
    cursor: progress;
}

html.forum-shell-enhanced body:not(.forum-shell-ready) .forum-shared-header,
html.forum-shell-enhanced body:not(.forum-shell-ready) .forum-shared-admin-panel,
html.forum-shell-enhanced body:not(.forum-shell-ready) .main-container,
html.forum-shell-enhanced body:not(.forum-shell-ready) .main-content,
html.forum-shell-enhanced body:not(.forum-shell-ready) .content,
html.forum-shell-enhanced body:not(.forum-shell-ready) .wrapper,
html.forum-shell-enhanced body:not(.forum-shell-ready) .footer,
html.forum-shell-enhanced body:not(.forum-shell-ready) .servers-panel,
html.forum-shell-enhanced body:not(.forum-shell-ready) .channels-panel,
html.forum-shell-enhanced body:not(.forum-shell-ready) .chat-area,
html.forum-shell-enhanced body:not(.forum-shell-ready) .voice-area,
html.forum-shell-enhanced body:not(.forum-shell-ready) .messages-layout,
html.forum-shell-enhanced body:not(.forum-shell-ready) .profile-header,
html.forum-shell-enhanced body:not(.forum-shell-ready) .profile-content,
html.forum-shell-enhanced body:not(.forum-shell-ready) .community-page,
html.forum-shell-enhanced body:not(.forum-shell-ready) .community-layout {
    opacity: 0;
    transform: translateY(8px);
}

html.forum-shell-enhanced body .forum-shared-header,
html.forum-shell-enhanced body .forum-shared-admin-panel,
html.forum-shell-enhanced body .main-container,
html.forum-shell-enhanced body .main-content,
html.forum-shell-enhanced body .content,
html.forum-shell-enhanced body .wrapper,
html.forum-shell-enhanced body .footer,
html.forum-shell-enhanced body .servers-panel,
html.forum-shell-enhanced body .channels-panel,
html.forum-shell-enhanced body .chat-area,
html.forum-shell-enhanced body .voice-area,
html.forum-shell-enhanced body .messages-layout,
html.forum-shell-enhanced body .profile-header,
html.forum-shell-enhanced body .profile-content,
html.forum-shell-enhanced body .community-page,
html.forum-shell-enhanced body .community-layout {
    transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.forum-shared-admin-panel {
    background: var(--admin-panel-bg, var(--bg-tertiary, #363636));
    border: 1px solid var(--admin-panel-border, var(--border-color, #404040));
    border-radius: 20px;
    margin-bottom: 15px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px var(--shadow-color, rgba(0, 0, 0, 0.25));
    animation: none;
}

.forum-shared-admin-panel .admin-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #b0b0b0);
    font-size: 14px;
    font-weight: 600;
    padding-right: 15px;
    border-right: 1px solid var(--border-color, #404040);
}

.forum-shared-admin-panel .admin-panel-title i {
    color: var(--accent-color, #ff6b00);
    font-size: 16px;
}

.forum-shared-admin-panel .admin-panel-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.forum-shared-admin-panel .admin-panel-btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
    color: #fff;
}

.forum-shared-admin-panel .admin-panel-btn i {
    font-size: 14px;
}

.forum-shared-admin-panel .admin-panel-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.forum-shared-admin-panel .admin-panel-btn.admin {
    background: #ff4444;
}

.forum-shared-admin-panel .admin-panel-btn.moder {
    background: #ff6b00;
}

.forum-shared-admin-panel .admin-panel-btn.support {
    background: #17a2b8;
}

.forum-shared-admin-panel .admin-panel-btn.default {
    background: #4f46e5;
}

.forum-shared-header {
    background: var(--bg-secondary, #2d2d2d);
    border-radius: 20px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px var(--shadow-color, rgba(0, 0, 0, 0.3));
    border: 1px solid var(--border-color, #404040);
}

.forum-shared-header .logo,
.forum-shared-header .logout-btn {
    position: relative;
    z-index: 1;
}

.forum-shared-header .user-profile {
    position: relative;
    z-index: 2;
}

.forum-shared-header .notifications-btn {
    position: relative;
    z-index: 60;
    overflow: visible;
}

.forum-shared-header .notifications-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.forum-shared-header .logo {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.forum-shared-header .logo-just {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: none;
}

.light-theme .forum-shared-header .logo-just {
    color: #2d3748;
    text-shadow: none;
}

.dark-theme .forum-shared-header .logo-just {
    color: #fff;
}

.forum-shared-header .logo-forum {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color, #ff6b00);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forum-shared-header .nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1 1 auto;
    min-width: 0;
}

.forum-shared-header .nav-center .nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    white-space: nowrap;
    color: var(--text-secondary, #b0b0b0);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.forum-shared-header .nav-center .nav-link:hover {
    background: var(--hover-color, #3d3d3d);
    color: var(--accent-color, #ff6b00);
}

.forum-shared-header .nav-center .nav-link.active {
    background: var(--accent-color, #ff6b00);
    color: #fff;
}

.forum-shared-header .nav-center .nav-link.banned {
    opacity: 0.7;
}

.forum-shared-header .user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.forum-shared-header .notifications-btn,
.forum-shared-header .logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #b0b0b0);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.forum-shared-header .notifications-btn:hover {
    background: var(--hover-color, #3d3d3d);
    color: var(--accent-color, #ff6b00);
}

.forum-shared-header .logout-btn:hover {
    background: var(--hover-color, #3d3d3d);
    color: #ff4444;
}

.forum-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color, #404040);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--bg-tertiary, #363636);
    color: var(--text-secondary, #b0b0b0);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.forum-breadcrumb-link,
.forum-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

.forum-breadcrumb-link {
    color: var(--text-secondary, #b0b0b0);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.forum-breadcrumb-link:hover {
    color: var(--accent-color, #ff6b00);
    background: var(--hover-color, #3d3d3d);
    transform: translateY(-1px);
}

.forum-breadcrumb-link i,
.forum-breadcrumb-current i {
    font-size: 12px;
    opacity: 0.85;
}

.forum-breadcrumb-link span,
.forum-breadcrumb-current span {
    display: inline-block;
}

.forum-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #808080);
    font-size: 10px;
    opacity: 0.8;
}

.forum-breadcrumb-current {
    color: var(--accent-color, #ff6b00);
    font-weight: 600;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.18);
}

@media (max-width: 768px) {
    .forum-breadcrumbs {
        gap: 5px;
        margin-bottom: 20px;
        padding: 9px 11px;
        border-radius: 12px;
    }

    .forum-breadcrumb-link,
    .forum-breadcrumb-current {
        min-height: 30px;
        padding: 5px 9px;
        font-size: 12px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .forum-breadcrumbs {
        padding: 8px 10px;
    }

    .forum-breadcrumb-link,
    .forum-breadcrumb-current {
        min-height: 28px;
        padding: 4px 8px;
        font-size: 12px;
    }
}

.forum-shared-header .notification-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #ff4444;
    color: #fff;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: forumShellPulse 1s infinite;
}

.forum-shared-header {
    overflow: visible !important;
}

.forum-shared-header .notifications-modal {
    position: fixed;
    top: 72px;
    right: 16px;
    width: 350px;
    max-width: calc(100vw - 24px);
    max-height: 400px;
    background: var(--bg-secondary, #2d2d2d);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color, rgba(0, 0, 0, 0.3));
    border: 1px solid var(--border-color, #404040);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    animation: forumShellSlideDown 0.3s ease;
}

.forum-shared-header .notifications-modal.active {
    display: flex;
}

.forum-shared-header .notifications-header {
    padding: 15px;
    background: var(--bg-tertiary, #363636);
    border-bottom: 1px solid var(--border-color, #404040);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-shared-header .notifications-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-shared-header .mark-read-btn {
    background: none;
    border: none;
    color: var(--accent-color, #ff6b00);
    font-size: 12px;
    cursor: pointer;
}

.forum-shared-header .notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.forum-shared-header .notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #404040);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.forum-shared-header .notification-item:hover {
    background: var(--notification-hover, rgba(255, 107, 0, 0.08));
}

.forum-shared-header .notification-item.unread {
    background: rgba(255, 107, 0, 0.05);
}

.forum-shared-header .notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color, #ff6b00);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.forum-shared-header .notification-content {
    flex: 1;
    min-width: 0;
}

.forum-shared-header .notification-text {
    font-size: 13px;
    margin-bottom: 3px;
}

.forum-shared-header .notification-time {
    font-size: 10px;
    color: var(--text-muted, #808080);
}

.forum-shared-header .no-notifications {
    padding: 30px;
    text-align: center;
    color: var(--text-muted, #808080);
}

.forum-shared-header .no-notifications i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.forum-shared-header .user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 30px;
    background: var(--hover-color, #3d3d3d);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color, #404040);
    overflow: visible;
}

.forum-shared-header .user-profile:hover {
    background: var(--border-color, #404040);
    transform: translateY(-2px);
}

.forum-shared-header .user-profile.banned {
    opacity: 0.7;
    cursor: not-allowed;
}

.forum-shared-header .user-profile.banned:hover {
    transform: none;
    background: var(--hover-color, #3d3d3d);
}

.forum-shared-header .avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color, #ff6b00);
    position: relative;
    isolation: isolate;
    flex: 0 0 36px;
    flex-shrink: 0;
}

.forum-shared-header .avatar img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.forum-shared-header .user-info {
    display: flex;
    flex-direction: column;
}

.forum-shared-header .username {
    font-weight: 600;
    font-size: 14px;
}

.forum-shared-header .user-role {
    font-size: 10px;
    color: var(--text-muted, #808080);
}

.forum-shared-header .login-btn,
.forum-shared-header .register-btn {
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
}

.forum-shared-header .login-btn {
    color: var(--text-secondary, #b0b0b0);
    border: 1px solid var(--border-color, #404040);
}

.forum-shared-header .login-btn:hover {
    background: var(--hover-color, #3d3d3d);
    color: var(--accent-color, #ff6b00);
}

.forum-shared-header .login-btn.auth-current {
    background: var(--accent-color, #ff6b00);
    color: #fff;
    border-color: var(--accent-color, #ff6b00);
}

.forum-shared-header .login-btn.auth-current:hover {
    background: var(--accent-hover, #ff8533);
    color: #fff;
}

.forum-shared-header .register-btn {
    background: var(--accent-color, #ff6b00);
    color: #fff;
}

.forum-shared-header .register-btn:hover {
    background: var(--accent-hover, #ff8533);
    transform: translateY(-2px);
}

.forum-shared-header .register-btn:not(.auth-current) {
    background: transparent;
    color: var(--text-secondary, #b0b0b0);
    border: 1px solid var(--border-color, #404040);
}

.forum-shared-header .register-btn:not(.auth-current):hover {
    background: var(--hover-color, #3d3d3d);
    color: var(--accent-color, #ff6b00);
}

@keyframes forumShellShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1px, 1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-1px, -1px); }
    40% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, 1px); }
}

@keyframes forumShellPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes forumShellLoadingSweep {
    0% {
        transform: translateX(0) scaleX(0.55);
        opacity: 0.15;
    }
    35% {
        opacity: 1;
    }
    100% {
        transform: translateX(420%) scaleX(1);
        opacity: 0.2;
    }
}

@keyframes forumShellSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .forum-loading-bar,
    .forum-loading-bar-indicator,
    .forum-loading-bar-indicator.secondary,
    .forum-shared-header,
    .forum-shared-admin-panel,
    .main-container,
    .main-content,
    .content,
    .wrapper,
    .footer,
    .servers-panel,
    .channels-panel,
    .chat-area,
    .voice-area,
    .messages-layout,
    .profile-header,
    .profile-content,
    .community-page,
    .community-layout {
        animation: none !important;
        transition: none !important;
    }
}

.admin-top-panel.forum-shared-admin-panel {
    background: var(--admin-panel-bg, var(--bg-tertiary, #363636)) !important;
    border: 1px solid var(--admin-panel-border, var(--border-color, #404040)) !important;
    border-radius: 20px !important;
    margin-bottom: 15px !important;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    animation: none !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-title,
.admin-top-panel.forum-shared-admin-panel .admin-panel-buttons,
.admin-top-panel.forum-shared-admin-panel .admin-panel-btn {
    all: unset;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--text-secondary, #b0b0b0) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding-right: 15px !important;
    border-right: 1px solid var(--border-color, #404040) !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-buttons {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    flex: 1 1 auto !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-btn {
    padding: 8px 16px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    color: #fff !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-btn.admin {
    background: #ff4444 !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-btn.moder {
    background: #ff6b00 !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-btn.support {
    background: #17a2b8 !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-btn.default {
    background: #4f46e5 !important;
}

.admin-top-panel.forum-shared-admin-panel .admin-panel-btn:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.08) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.header.forum-shared-header {
    background: var(--bg-secondary, #2d2d2d) !important;
    border-radius: 20px !important;
    padding: 12px 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    border: 1px solid var(--border-color, #404040) !important;
    box-shadow: 0 4px 15px var(--shadow-color, rgba(0, 0, 0, 0.3)) !important;
}

.header.forum-shared-header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
}

.header.forum-shared-header .logo-just {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    animation: none !important;
}

.light-theme .header.forum-shared-header .logo-just {
    color: #2d3748 !important;
    text-shadow: none !important;
}

.light-theme .forum-shared-admin-panel,
.light-theme .admin-top-panel.forum-shared-admin-panel {
    background: #ffffff !important;
    border-color: #dbe3ec !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

.light-theme .forum-shared-admin-panel .admin-panel-title,
.light-theme .admin-top-panel.forum-shared-admin-panel .admin-panel-title {
    color: #4b5563 !important;
    border-color: #dbe3ec !important;
}

.light-theme .forum-shared-admin-panel .admin-panel-btn.admin,
.light-theme .admin-top-panel.forum-shared-admin-panel .admin-panel-btn.admin {
    background: #fff1f1 !important;
    color: #cf3f3f !important;
    border: 1px solid rgba(207, 63, 63, 0.18) !important;
}

.light-theme .forum-shared-admin-panel .admin-panel-btn.moder,
.light-theme .admin-top-panel.forum-shared-admin-panel .admin-panel-btn.moder {
    background: #fff4e8 !important;
    color: #cc6a00 !important;
    border: 1px solid rgba(204, 106, 0, 0.18) !important;
}

.light-theme .forum-shared-admin-panel .admin-panel-btn.support,
.light-theme .admin-top-panel.forum-shared-admin-panel .admin-panel-btn.support {
    background: #ebf9fc !important;
    color: #0f829a !important;
    border: 1px solid rgba(15, 130, 154, 0.18) !important;
}

.light-theme .forum-shared-admin-panel .admin-panel-btn.default,
.light-theme .admin-top-panel.forum-shared-admin-panel .admin-panel-btn.default {
    background: #eef2ff !important;
    color: #4338ca !important;
    border: 1px solid rgba(67, 56, 202, 0.16) !important;
}

.header.forum-shared-header .logo-forum {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--accent-color, #ff6b00) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.header.forum-shared-header .nav-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    order: 0 !important;
}

.header.forum-shared-header .nav-center .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    color: var(--text-secondary, #b0b0b0) !important;
    background: transparent !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    flex: 0 0 auto !important;
}

.header.forum-shared-header .nav-center .nav-link:hover {
    background: var(--hover-color, #3d3d3d) !important;
    color: var(--accent-color, #ff6b00) !important;
}

.header.forum-shared-header .nav-center .nav-link.active {
    background: var(--accent-color, #ff6b00) !important;
    color: #fff !important;
}

.header.forum-shared-header .nav-center .nav-link.music,
.header.forum-shared-header .nav-center .nav-link.music:hover,
.header.forum-shared-header .nav-center .nav-link.music.active {
    background: transparent !important;
    color: inherit !important;
}

.header.forum-shared-header .nav-center .nav-link.music.active,
.header.forum-shared-header .nav-center .nav-link.active.music {
    background: var(--accent-color, #ff6b00) !important;
    color: #fff !important;
}

.header.forum-shared-header .user-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: auto !important;
}

.header.forum-shared-header .notifications-btn,
.header.forum-shared-header .logout-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header.forum-shared-header .user-profile {
    display: flex !important;
    align-items: center !important;
}

.sidebar-nav a.sidebar-link[href="clips.php"],
.sidebar-nav a.sidebar-link[href="games.php"],
.sidebar-nav a.sidebar-link[href="market.php"] {
    display: none !important;
}

@media (max-width: 768px) {
    .admin-top-panel.forum-shared-admin-panel {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 15px !important;
        gap: 10px !important;
    }

    .admin-top-panel.forum-shared-admin-panel .admin-panel-title {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid var(--border-color, #404040) !important;
        padding-bottom: 10px !important;
        justify-content: center !important;
    }

    .admin-top-panel.forum-shared-admin-panel .admin-panel-buttons {
        justify-content: center !important;
    }

    .header.forum-shared-header {
        padding: 10px 15px !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .header.forum-shared-header .nav-center {
        order: 3 !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 8px !important;
        row-gap: 8px !important;
        flex-wrap: wrap !important;
        margin-top: 2px !important;
        align-content: center !important;
    }

    .header.forum-shared-header .nav-center .nav-link {
        padding: 8px 13px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .header.forum-shared-header .logo-just {
        font-size: 22px !important;
    }

    .header.forum-shared-header .logo-forum {
        font-size: 16px !important;
    }

    .header.forum-shared-header .user-menu {
        width: auto !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
    }

    .forum-shared-admin-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 10px;
    }

    .forum-shared-admin-panel .admin-panel-title {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color, #404040);
        padding-bottom: 10px;
        justify-content: center;
    }

    .forum-shared-admin-panel .admin-panel-buttons {
        justify-content: center;
    }

    .forum-shared-header {
        align-items: flex-start;
        gap: 10px;
        padding: 10px 15px;
    }

    .forum-shared-header .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 8px;
        row-gap: 8px;
        flex-wrap: wrap;
        margin-top: 2px;
        align-content: center;
    }

    .forum-shared-header .nav-center .nav-link {
        flex: 0 0 auto;
        min-width: 0 !important;
        max-width: 100%;
        padding: 8px 13px;
        font-size: 14px;
        line-height: 1.2;
    }

    .forum-shared-header .logo-just {
        font-size: 22px;
    }

    .forum-shared-header .logo-forum {
        font-size: 16px;
    }

    .forum-shared-header .notifications-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: min(350px, calc(100vw - 24px));
        max-height: 80vh;
    }

    .forum-shared-header .user-menu {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header.forum-shared-header .logo-just {
        font-size: 20px !important;
    }

    .header.forum-shared-header .logo-forum {
        font-size: 14px !important;
    }

    .header.forum-shared-header .user-menu,
    .forum-shared-header .user-menu {
        width: auto !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    .header.forum-shared-header .notifications-btn,
    .header.forum-shared-header .logout-btn {
        font-size: 16px !important;
        padding: 6px !important;
    }

    .header.forum-shared-header .user-profile,
    .forum-shared-header .user-profile {
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        border-radius: 999px !important;
        justify-content: center !important;
        gap: 0 !important;
        flex: 0 0 auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

.header.forum-shared-header .avatar,
.forum-shared-header .avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 42px !important;
    display: block !important;
    align-self: center !important;
    border-width: 2px !important;
    overflow: hidden !important;
}

.header.forum-shared-header .avatar img,
.forum-shared-header .avatar img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
}

    .header.forum-shared-header .user-info,
    .forum-shared-header .user-info {
        display: none !important;
    }

    .header.forum-shared-header .nav-center .nav-link {
        padding: 7px 11px !important;
        font-size: 13px !important;
    }

    .forum-shared-admin-panel .admin-panel-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .forum-shared-admin-panel .admin-panel-btn {
        justify-content: center;
    }

    .forum-shared-header .nav-center {
        gap: 7px;
        row-gap: 7px;
    }

    .forum-shared-header .nav-center .nav-link {
        padding: 6px 11px;
        font-size: 12px;
    }

    .forum-shared-header .logo-just {
        font-size: 20px;
    }

    .forum-shared-header .logo-forum {
        font-size: 14px;
    }

    .forum-shared-header .user-menu {
        gap: 8px;
    }

    .forum-shared-header .notifications-btn,
    .forum-shared-header .logout-btn {
        font-size: 16px;
        padding: 6px;
    }

    .forum-shared-header .login-btn,
    .forum-shared-header .register-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .forum-shared-header .notifications-header {
        padding: 12px;
    }

    .forum-shared-header .notification-item {
        padding: 12px;
        gap: 10px;
    }

    .forum-shared-header .notification-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .forum-shared-header .notification-text {
        font-size: 12px;
    }
}

.avatar,
.online-user-avatar,
.member-tooltip-avatar,
.last-message-avatar,
.friend-avatar,
.moderator-avatar,
.topic-last-post-avatar {
    overflow: visible !important;
    position: relative;
}

.avatar img,
.online-user-avatar img,
.member-tooltip-avatar img,
.last-message-avatar img,
.friend-avatar img,
.moderator-avatar img,
.topic-last-post-avatar img {
    border-radius: 50%;
    display: block;
}

.online-status,
.online-status-dot {
    z-index: 2;
    box-shadow: 0 0 0 2px var(--bg-secondary, #2d2d2d);
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

.online-status {
    right: -2px !important;
    bottom: -2px !important;
}

.online-status-dot {
    right: -2px !important;
    bottom: -2px !important;
}

.online-status[style*="opacity: 0.5"],
.online-status-dot[style*="opacity: 0.5"] {
    background: var(--text-muted, #808080) !important;
}

body .member-tooltip {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.985);
    transform-origin: top center;
    transition:
        opacity 0.16s ease,
        transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s linear 0.18s !important;
    will-change: opacity, transform;
}

body .member-tooltip.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s !important;
}

body .member-tooltip .member-tooltip-avatar-container,
body .member-tooltip .member-tooltip-content,
body .member-tooltip .member-tooltip-header {
    transition: opacity 0.18s ease, transform 0.2s ease;
}

body .member-tooltip .member-tooltip-header {
    opacity: 0.96;
    transform: translateY(-4px);
}

body .member-tooltip .member-tooltip-avatar-container {
    opacity: 0.92;
    transform: translate(-50%, 6px);
}

body .member-tooltip .member-tooltip-content {
    opacity: 0.92;
    transform: translateY(8px);
}

body .member-tooltip.show .member-tooltip-header,
body .member-tooltip.show .member-tooltip-avatar-container,
body .member-tooltip.show .member-tooltip-content {
    opacity: 1;
}

body .member-tooltip.show .member-tooltip-header,
body .member-tooltip.show .member-tooltip-content {
    transform: translateY(0);
}

body .member-tooltip.show .member-tooltip-avatar-container {
    transform: translateX(-50%);
}

input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px dashed var(--border-color, #404040);
    border-radius: 16px;
    background: var(--bg-tertiary, #363636);
    color: var(--text-secondary, #b0b0b0);
    font-size: 14px;
    line-height: 1.4;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    appearance: none;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color, #ff6b00), var(--accent-hover, #ff8533));
    color: #fff;
    padding: 10px 14px;
    margin-right: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--accent-color, #ff6b00);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--accent-color, #ff6b00);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

.online-panel-foot {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.online-panel-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color, #404040);
    border-radius: 999px;
    background: var(--hover-color, #3d3d3d);
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.online-panel-more:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 107, 0, 0.35);
    color: var(--accent-color, #ff6b00);
}

.online-users-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(8px);
}

.online-users-modal.active {
    display: flex;
}

.forum-floating-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1150;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-floating-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 12px 28px rgba(23, 162, 184, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.forum-floating-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 32px rgba(23, 162, 184, 0.38);
    filter: brightness(1.05);
}

.forum-floating-btn i {
    font-size: 24px;
}

.chat-message-avatar {
    display: inline-flex;
}

.chat-message-author {
    text-decoration: none;
}

.chat-message-author:hover,
.mini-chat-profile-link.is-link:hover {
    text-decoration: underline;
}

.mini-chat-profile-link {
    color: inherit;
    text-decoration: none;
}

.chat-list {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.2s ease;
    will-change: opacity, transform;
}

.chat-list.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-list.is-switching {
    pointer-events: none;
}

.chat-list-item {
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.chat-list-item:active {
    transform: scale(0.992);
}

.chat-messages {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-messages.is-loading {
    opacity: 0.72;
    transform: translateY(2px);
}

.mini-chat-loading {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted, #8a8f98);
    font-size: 12px;
    width: 100%;
}

.mini-chat-loading-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color, #ff6b00);
    opacity: 0.34;
    animation: miniChatLoadingPulse 0.9s ease-in-out infinite;
}

.mini-chat-loading-dot:nth-child(2) {
    animation-delay: 0.12s;
}

.mini-chat-loading-dot:nth-child(3) {
    animation-delay: 0.24s;
}

.mini-chat-loading-error {
    justify-content: flex-start;
    color: var(--text-secondary, #b0b0b0);
}

@keyframes miniChatLoadingPulse {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.28;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.forum-support-modal {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: min(360px, calc(100vw - 24px));
    background: var(--bg-secondary, #2d2d2d);
    border: 1px solid var(--border-color, #404040);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1160;
}

.forum-support-modal.active {
    display: flex;
}

.forum-support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: #fff;
}

.forum-support-header h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
}

.forum-support-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.82;
}

.forum-support-close:hover {
    opacity: 1;
}

.forum-support-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 24px 22px 22px;
    color: var(--text-secondary, #b0b0b0);
}

.forum-support-content > i {
    font-size: 44px;
    color: #17a2b8;
}

.forum-support-content h3 {
    font-size: 21px;
    color: var(--text-primary, #fff);
}

.forum-support-content p {
    font-size: 14px;
    line-height: 1.6;
}

.forum-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color, #ff6b00), #ff8a33);
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.24);
}

@media (max-width: 768px) {
    .forum-floating-buttons {
        right: 16px;
        bottom: 16px;
    }

    .forum-support-modal {
        right: 12px;
        bottom: 86px;
        width: min(360px, calc(100vw - 24px));
    }
}

.online-users-dialog {
    width: min(720px, 100%);
    max-height: min(78vh, 860px);
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary, #2d2d2d);
    border: 1px solid var(--border-color, #404040);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.online-users-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color, #404040);
}

.online-users-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.online-users-modal-header h3 i {
    color: #22c55e;
}

.online-users-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--hover-color, #3d3d3d);
    color: var(--text-primary, #fff);
    cursor: pointer;
}

.online-users-modal-list {
    padding: 12px 16px 18px;
    overflow: auto;
    display: grid;
    gap: 10px;
}

.online-users-modal .online-user {
    border: 1px solid var(--border-color, #404040);
    border-radius: 18px;
    padding: 10px 12px;
}

body.online-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .online-users-modal {
        padding: 12px;
    }

    .online-users-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .online-users-modal-header {
        padding: 16px;
    }

    .online-users-modal-header h3 {
        font-size: 18px;
    }

    .online-users-modal-list {
        padding: 10px 12px 14px;
    }
}

.btn i,
a.btn i,
button.btn i,
.btn-primary i,
.btn-secondary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

select:not([multiple]):not([size]),
select.form-control,
.user-role-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 42px;
    padding: 10px 42px 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color, #404040);
    background-color: var(--bg-secondary, #2d2d2d);
    color: var(--text-primary, #ffffff);
    box-shadow: 0 4px 14px var(--shadow-color, rgba(0, 0, 0, 0.16));
    line-height: 1.35;
    font-weight: 600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%238a8f98' d='M4.47 6.97a.75.75 0 0 1 1.06 0L8 9.44l2.47-2.47a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.light-theme select:not([multiple]):not([size]),
.light-theme select.form-control,
.light-theme .user-role-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23515a67' d='M4.47 6.97a.75.75 0 0 1 1.06 0L8 9.44l2.47-2.47a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
    background-color: var(--bg-secondary, #ffffff);
    color: var(--text-primary, #1a1a1a);
}

select:not([multiple]):not([size]):hover,
select.form-control:hover,
.user-role-select:hover {
    border-color: rgba(255, 107, 0, 0.45);
    background-color: var(--bg-tertiary, #363636);
}

.light-theme select:not([multiple]):not([size]):hover,
.light-theme select.form-control:hover,
.light-theme .user-role-select:hover {
    background-color: var(--bg-tertiary, #f8f9fa);
}

select:not([multiple]):not([size]):focus,
select.form-control:focus,
.user-role-select:focus {
    outline: none;
    border-color: var(--accent-color, #ff6b00);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.16), 0 8px 18px var(--shadow-color, rgba(0, 0, 0, 0.16));
}

select option,
select optgroup {
    background: var(--bg-secondary, #2d2d2d);
    color: var(--text-primary, #ffffff);
}

.light-theme select option,
.light-theme select optgroup {
    background: var(--bg-secondary, #ffffff);
    color: var(--text-primary, #1a1a1a);
}

body .wrapper {
    width: min(1400px, calc(100vw - 30px)) !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

@media (max-width: 992px) {
    body .wrapper {
        width: min(1400px, calc(100vw - 24px)) !important;
        padding: 12px !important;
    }
}

@media (max-width: 768px) {
    body .wrapper {
        width: min(1400px, calc(100vw - 20px)) !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    body .wrapper {
        width: min(1400px, calc(100vw - 16px)) !important;
        padding: 8px !important;
    }
}

.forum-shared-header .notifications-modal {
    overflow: hidden;
}

.forum-shared-header .notification-item {
    background: transparent;
    border-left: 3px solid transparent;
    position: relative;
    padding-right: 46px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-shared-header .notification-item:last-child {
    border-bottom: none;
}

.forum-shared-header .notification-item:hover {
    background: var(--hover-color, rgba(255, 255, 255, 0.05)) !important;
}

.forum-shared-header .notification-item.unread {
    background: rgba(255, 107, 0, 0.09) !important;
    border-left-color: var(--accent-color, #ff6b00);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.08);
}

.forum-shared-header .notification-item.unread:hover {
    background: rgba(255, 107, 0, 0.12) !important;
}

.forum-shared-header .notification-item.is-removing {
    opacity: 0.72;
    pointer-events: none;
}

.forum-shared-header .notification-item:not(.unread) .notification-icon {
    background: var(--hover-color, #3d3d3d);
    color: var(--text-secondary, #b0b0b0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.forum-shared-header .notification-item.unread .notification-icon {
    background: linear-gradient(135deg, var(--accent-color, #ff6b00), var(--accent-hover, #ff8533));
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 107, 0, 0.22);
}

.forum-shared-header .mark-read-btn {
    padding: 0;
    font-weight: 700;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.forum-shared-header .notifications-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.forum-shared-header .clear-notifications-btn {
    padding: 0;
    border: none;
    background: none;
    color: var(--text-secondary, #b0b0b0);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.forum-shared-header .mark-read-btn:hover {
    color: var(--accent-hover, #ff8533);
}

.forum-shared-header .clear-notifications-btn:hover {
    color: #ff8a8a;
}

.forum-shared-header .mark-read-btn.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.forum-shared-header .clear-notifications-btn.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.forum-shared-header .notification-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted, #808080);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.72;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.forum-shared-header .notification-remove-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ff8a8a;
    opacity: 1;
    transform: scale(1.05);
}

.forum-shared-header .notification-remove-btn.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 768px) {
    .forum-shared-header .notifications-header {
        align-items: flex-start;
        gap: 10px;
    }

    .forum-shared-header .notifications-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .forum-shared-header .notification-item {
        padding-right: 42px;
    }
}

.light-theme .forum-shared-header .notification-item:not(.unread) .notification-icon {
    box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.08);
}

.editor-toolbar {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 8px !important;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: auto !important;
    scrollbar-color: var(--accent-color, #ff6b00) rgba(255, 107, 0, 0.14) !important;
}

.editor-toolbar::-webkit-scrollbar {
    height: 6px;
}

.editor-toolbar::-webkit-scrollbar-track {
    background: rgba(255, 107, 0, 0.12);
    border-radius: 999px;
}

.editor-toolbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color, #ff6b00), var(--accent-hover, #ff8533));
    border-radius: 999px;
}

.editor-toolbar-scroll-hint,
.editor-toolbar-scroll-track,
.editor-toolbar-scroll-thumb,
.editor-toolbar-scroll-label {
    display: none !important;
}
