html.forum-mode-active,
body.forum-mode-active {
    height: 100vh !important;
    overflow: hidden !important;
}

.card:not(.forum-mode) {
    max-width: 420px !important;
    width: 95% !important;
    margin: 0 auto !important;
    max-height: none !important;
    height: auto !important;
}

.card:not(.forum-mode) .forum-header,
.card:not(.forum-mode) #forumBreadcrumbs,
.card:not(.forum-mode) #forumContent,
.card:not(.forum-mode) #forumPanel,
.card:not(.forum-mode) .forum-container {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.container.forum-mode {
    max-width: 980px !important;
    width: 95% !important;
    margin: 0 auto 2.5rem auto !important;
}

.card.forum-mode {
    max-width: 980px !important;
    width: 100% !important;
    margin: 0 auto !important;
    max-height: calc(100vh - 100px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.panel#forumPanel,
.forum-container {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    overflow: hidden !important;
}

#forumContent {
    width: 100% !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    overflow-y: auto !important;
    padding-right: 0.3rem !important;
    padding-bottom: 3.5rem !important;
    margin-bottom: 0 !important;
    max-height: calc(100vh - 170px) !important;
    scroll-behavior: smooth;
}

#forumContent::-webkit-scrollbar {
    width: 5px;
}

#forumContent::-webkit-scrollbar-track {
    background: transparent !important;
}

#forumContent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
}

#forumContent::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.header-settings-dropdown {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    min-width: 140px !important;
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    padding: 0.3rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
    z-index: 999 !important;
}

.category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1rem;
}

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

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

.forum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.6rem;
}

.forum-nav-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: 0.78rem;
    color: #888888;
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #ffffff;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 500;
}

.action-menu-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.post-footer-bar .action-dropdown-menu {
    bottom: calc(100% + 4px);
    top: auto;
    left: 0;
    right: auto;
}

.action-menu-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaaaaa;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.15s ease;
}

.post-card:hover .action-menu-trigger,
.thread-row:hover .action-menu-trigger {
    opacity: 1;
}

.action-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.action-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 6px;
    padding: 0.3rem;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95) !important;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 99999 !important;
}

.action-dropdown-menu.show {
    display: flex !important;
    z-index: 99999 !important;
}

.action-menu-container:has(.show),
.thread-row:has(.show),
.post-card:has(.show),
tr:has(.show) {
    z-index: 99999 !important;
    position: relative !important;
}

.admin-table-container,
.admin-table-wrapper {
    overflow: visible !important;
}

.dropdown-item {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #cccccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dropdown-item.danger {
    color: #ff6b6b;
}

.dropdown-item.danger:hover {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.category-card {
    background: rgba(20, 20, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.cat-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.cat-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.category-card:hover .cat-name {
    color: #ffffff;
}

.cat-desc {
    font-size: 0.8rem;
    color: #999999;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.cat-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #666666;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.6rem;
}

.thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.thread-row {
    background: rgba(20, 20, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 0.85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: visible !important;
}

.thread-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.18);
}

.thread-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.thread-avatar {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.thread-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #eeeeee;
    transition: color 0.2s ease;
}

.thread-row:hover .thread-title {
    color: #ffffff;
}

.thread-meta {
    font-size: 0.73rem;
    color: #777777;
    margin-top: 0.2rem;
}

.thread-stats-col {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.76rem;
    color: #888888;
}

.code-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    color: #999999;
    margin-top: 0.6rem;
}

.code-lang-tag {
    color: #aaaaaa;
    font-weight: 500;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.code-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s ease;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.post-html-render pre {
    margin-top: 0;
    margin-bottom: 0.6rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    background: #0d0d10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 6px 6px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
}

.post-html-render pre::-webkit-scrollbar {
    height: 5px;
}

.post-html-render pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.post-html-render pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.post-html-render pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.profile-scroll-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.2rem;
}

.profile-scroll-list::-webkit-scrollbar {
    width: 4px;
}

.profile-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.invited-user-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    color: #cccccc;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.invited-user-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.invited-user-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-panel-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
}

.admin-stat-card {
    background: rgba(20, 20, 24, 0.7);
    border: 1px solid rgba(195, 125, 242, 0.2);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-stat-card .stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat-card .stat-lbl {
    font-size: 0.68rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    color: #cccccc;
}

.admin-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-role-select {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.72rem;
}

.forum-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.forum-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #eeeeee !important;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.forum-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.forum-btn.secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cccccc !important;
}

.forum-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.category-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card:hover {
    border-color: rgba(195, 125, 242, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(195, 125, 242, 0.1);
}

.cat-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.cat-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.cat-desc {
    font-size: 0.76rem;
    color: #888888;
    line-height: 1.35;
    margin-bottom: 0.8rem;
}

.cat-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    color: #666666;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.5rem;
}

.thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thread-row {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible !important;
}

.thread-row:hover {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(195, 125, 242, 0.25);
}

.thread-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.thread-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.thread-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.thread-title-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.thread-title-text {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.88rem;
}

.badge-pinned {
    background: rgba(195, 125, 242, 0.2);
    color: var(--primary);
    border: 1px solid rgba(195, 125, 242, 0.4);
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-locked {
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
    border: 1px solid rgba(239, 83, 80, 0.4);
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.thread-author-sub {
    font-size: 0.72rem;
    color: #777777;
}

.role-tag {
    font-size: 0.62rem;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.3rem;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.profile-avatar-wrapper:not(.editing-mode) .profile-avatar-camera-btn {
    display: none !important;
}

.profile-avatar-wrapper.editing-mode .profile-avatar {
    filter: brightness(0.65) !important;
    transition: filter 0.2s ease;
}

.profile-avatar-wrapper.editing-mode:hover .profile-avatar {
    filter: brightness(0.38) !important;
}

.profile-avatar-camera-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    opacity: 0.9;
    transition: all 0.2s ease;
    z-index: 10;
}

.profile-avatar-camera-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18) !important;
}

.role-tag.admin {
    background: rgba(239, 83, 80, 0.25);
    color: #ff6b6b;
}

.role-tag.staff {
    background: rgba(255, 167, 38, 0.25);
    color: #ffa726;
}

.role-tag.member {
    background: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

.thread-stats-col {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.72rem;
    color: #666666;
    flex-shrink: 0;
}

.post-card {
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    display: grid;
    grid-template-columns: 160px 1fr !important;
    margin-bottom: 0.85rem;
    overflow: visible !important;
    position: relative;
    min-height: 160px;
}

.post-author-sidebar {
    background: rgba(14, 14, 14, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 160px !important;
    box-sizing: border-box !important;
}

.author-big-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8e44ad);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.author-name-sidebar {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.82rem;
    word-break: break-word;
}

.author-meta-detail {
    font-size: 0.65rem;
    color: #666666;
    margin-top: 0.2rem;
}

.post-content-body {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-html-render {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d8d8d8;
    margin-bottom: 1rem;
}

.post-html-render pre {
    background: #0d0d11;
    border: 1px solid rgba(195, 125, 242, 0.2);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    font-family: 'Consolas', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #f8f8f2;
    margin: 0.6rem 0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.post-html-render code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 0.15rem 0.35rem;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 0.82em;
    color: #c37df2;
}

.post-html-render pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1em;
    color: inherit;
}

.syn-keyword {
    color: #ff79c6;
    font-weight: 600;
}

.syn-string {
    color: #f1fa8c;
}

.syn-number {
    color: #bd93f9;
}

.syn-comment {
    color: #6272a4;
    font-style: italic;
}

.post-html-render p {
    margin-bottom: 0.6rem;
}

.post-html-render code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary);
}

.post-html-render pre {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.post-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.5rem;
    font-size: 0.7rem;
    color: #555555;
}

.reactions-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.react-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
    color: #aaaaaa;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.react-chip:hover,
.react-chip.active {
    background: rgba(195, 125, 242, 0.18);
    border-color: rgba(195, 125, 242, 0.4);
    color: var(--primary);
}

.reply-editor-box {
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.forum-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.65rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.83rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.forum-textarea:focus {
    border-color: var(--primary);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mod-tools-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    background: transparent !important;
    border: none !important;
    padding: 0.2rem 0 !important;
}

.invite-manage-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.invite-manage-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-card {
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    color: #ffffff !important;
}

.celine-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 9999;
    pointer-events: none;
}

.celine-toast {
    background: rgba(20, 20, 24, 0.95);
    border: 1px solid rgba(195, 125, 242, 0.4);
    backdrop-filter: blur(14px);
    border-radius: 6px;
    padding: 0.65rem 1.1rem;
    color: #ffffff;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.celine-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.celine-toast.error {
    border-color: rgba(239, 83, 80, 0.6);
    background: rgba(30, 16, 18, 0.95);
}

.celine-toast.success {
    border-color: rgba(125, 242, 155, 0.6);
    background: rgba(16, 30, 20, 0.95);
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-header {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

img.profile-avatar,
img.author-big-avatar,
img.header-avatar-img,
img.pm-convo-avatar {
    background: transparent !important;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.profile-username {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.profile-meta {
    font-size: 0.75rem;
    color: #888888;
}

.profile-section {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-section h3 {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: lowercase;
    margin: 0;
    letter-spacing: 0.03em;
}

.profile-bio-text {
    font-size: 0.82rem;
    color: #cccccc;
    line-height: 1.5;
    margin: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.profile-activity-item {
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-activity-item:hover {
    background: rgba(195, 125, 242, 0.08);
    border-color: rgba(195, 125, 242, 0.25);
}

.activity-title {
    font-size: 0.8rem;
    color: #e0e0e0;
}

.activity-meta {
    font-size: 0.68rem;
    color: #777;
    margin-top: 0.2rem;
}

.code-header-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0.4rem 0.75rem !important;
    margin: 0 !important;
}

.code-lang-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.04em;
}

.code-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cccccc;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.editor-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaaaaa;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.editor-tool-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.post-content-body {
    flex: 1;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.code-wrapper {
    position: relative;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0.75rem 0 !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #0d0d10 !important;
    overflow: hidden !important;
}

.code-wrapper pre {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: 280px;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.85rem 1rem !important;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    transition: max-height 0.2s ease;
}

.code-wrapper.expanded pre {
    max-height: 500px !important;
    overflow-y: auto !important;
}

.code-view-more-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(to bottom, rgba(13, 13, 16, 0), #0d0d10 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.code-wrapper.expanded .code-view-more-bar {
    position: relative;
    height: auto;
    background: #0d0d10;
    padding: 6px 0;
}

.code-view-more-btn {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cccccc;
    border-radius: 4px;
    padding: 0.3rem 0.85rem;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.code-view-more-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.post-signature-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    margin: 0.85rem 0 0.5rem 0;
}

.post-signature {
    font-size: 0.72rem;
    color: #888888;
    font-style: italic;
}

.user-signature-box {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.pm-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 1rem !important;
    height: 460px !important;
    max-height: calc(100vh - 210px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.pm-sidebar {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    background: rgba(14, 14, 18, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.pm-sidebar-header {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-conversations-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.pm-convo-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.65rem 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    cursor: pointer;
    transition: background 0.15s ease;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.pm-convo-item:hover,
.pm-convo-item.active {
    background: rgba(255, 255, 255, 0.08) !important;
}

.pm-convo-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    color: #ffffff !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.pm-convo-info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.pm-convo-name {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: #eeeeee !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pm-convo-preview {
    font-size: 0.68rem !important;
    color: #777777 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pm-unread-badge {
    background: #ff6b6b;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.pm-chat-area {
    flex: 1 !important;
    min-width: 0 !important;
    height: 100% !important;
    background: rgba(14, 14, 18, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.pm-chat-header {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pm-chat-partner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.pm-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pm-msg {
    display: flex;
    flex-direction: column;
}

.pm-msg.mine {
    align-items: flex-end;
}

.pm-msg.theirs {
    align-items: flex-start;
}

.pm-msg-sender {
    font-size: 0.65rem;
    color: #777777;
    margin-bottom: 0.2rem;
}

.pm-msg-bubble {
    max-width: 72%;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    word-break: break-word;
}

.pm-msg.mine .pm-msg-bubble {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-bottom-right-radius: 3px;
}

.pm-msg.theirs .pm-msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    color: #dddddd;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 3px;
}

.pm-msg-time {
    font-size: 0.6rem;
    color: #555555;
    margin-top: 0.2rem;
}

.pm-chat-input-row {
    padding: 0.65rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.pm-msg-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.15s ease;
    max-height: 80px;
    overflow-y: auto;
}

.pm-msg-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
}

.pm-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444444;
    font-size: 0.8rem;
}

.user-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    padding: 0.1rem 0.4rem !important;
    border-radius: 4px !important;
    margin-left: 0.35rem !important;
    vertical-align: middle !important;
}

.admin-badge {
    background: rgba(255, 167, 38, 0.15) !important;
    color: #ffa726 !important;
    border: 1px solid rgba(255, 167, 38, 0.3) !important;
}

.staff-badge {
    background: rgba(125, 242, 155, 0.15) !important;
    color: #7df29b !important;
    border: 1px solid rgba(125, 242, 155, 0.3) !important;
}

.og-badge {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.veteran-badge {
    background: rgba(255, 107, 107, 0.15) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
}

.contributor-badge {
    background: rgba(100, 181, 246, 0.15) !important;
    color: #64b5f6 !important;
    border: 1px solid rgba(100, 181, 246, 0.3) !important;
}

.first-post-badge {
    background: rgba(129, 199, 132, 0.15) !important;
    color: #81c784 !important;
    border: 1px solid rgba(129, 199, 132, 0.3) !important;
}

.emoji-picker-popover {
    position: absolute;
    bottom: 50px;
    left: 10px;
    width: 340px !important;
    max-height: 230px !important;
    overflow-y: auto !important;
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 0.6rem !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0.4rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
    z-index: 9999 !important;
}

.emoji-picker-popover::-webkit-scrollbar {
    width: 5px;
}

.emoji-picker-popover::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.emoji-picker-popover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.emoji-picker-popover::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.emoji-picker-item {
    width: 42px !important;
    height: 42px !important;
    padding: 3px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.12s ease, transform 0.12s ease !important;
    object-fit: contain !important;
}

.emoji-picker-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.12) !important;
}

.reply-editor-box {
    margin-top: 1.25rem !important;
    margin-bottom: 3.5rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.editor-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0.5rem !important;
}

.pm-chat-messages::-webkit-scrollbar,
.pm-conversations-list::-webkit-scrollbar,
.pm-sidebar::-webkit-scrollbar,
.pm-chat-area::-webkit-scrollbar {
    width: 5px !important;
}

.pm-chat-messages::-webkit-scrollbar-track,
.pm-conversations-list::-webkit-scrollbar-track,
.pm-sidebar::-webkit-scrollbar-track,
.pm-chat-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 3px !important;
}

.pm-chat-messages::-webkit-scrollbar-thumb,
.pm-conversations-list::-webkit-scrollbar-thumb,
.pm-sidebar::-webkit-scrollbar-thumb,
.pm-chat-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 3px !important;
}

.pm-chat-messages::-webkit-scrollbar-thumb:hover,
.pm-conversations-list::-webkit-scrollbar-thumb:hover,
.pm-sidebar::-webkit-scrollbar-thumb:hover,
.pm-chat-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.badge-dropdown-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.badge-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

*:focus,
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom-badge-dropdown {
    min-width: 120px !important;
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 6px !important;
    padding: 0.3rem !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    bottom: calc(100% + 4px) !important;
    top: auto !important;
}

.custom-badge-dropdown::-webkit-scrollbar {
    width: 4px;
}

.custom-badge-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.custom-badge-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.custom-badge-dropdown .dropdown-item {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.72rem !important;
    border-radius: 4px !important;
    color: #cccccc !important;
    cursor: pointer !important;
    transition: background 0.12s ease, color 0.12s ease !important;
}

.custom-badge-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.custom-badge-dropdown .dropdown-item.selected {
    color: #ffffff !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.pm-context-menu {
    position: fixed;
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 6px !important;
    padding: 0.3rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    min-width: 155px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pm-context-menu .context-menu-item {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    color: #cccccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.12s ease, color 0.12s ease;
}

.pm-context-menu .context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.pm-context-menu .context-menu-item.disabled-join {
    opacity: 0.45 !important;
    color: #777777 !important;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 14 14' fill='none'><path fill-rule='evenodd' clip-rule='evenodd' d='M14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM12.5 7C12.5 10.0376 10.0376 12.5 7 12.5C5.75168 12.5 4.60048 12.0841 3.67742 11.3834L11.3834 3.67742C12.0841 4.60048 12.5 5.75168 12.5 7ZM2.61675 10.3227L10.3227 2.61675C9.39962 1.91592 8.24838 1.5 7 1.5C3.96243 1.5 1.5 3.96243 1.5 7C1.5 8.24838 1.91592 9.39962 2.61675 10.3227Z' fill='%23ffffff'/></svg>"), not-allowed !important;
}

.pm-msg .action-dropdown-menu {
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    z-index: 999999 !important;
}

.pm-chat-messages {
    position: relative !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
}

.pm-msg-bubble {
    padding: 0.55rem 0.85rem !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
    min-width: 48px !important;
    max-width: min(32ch, 75%) !important;
    width: fit-content !important;
}

.steam-game-invite-card {
    background: rgba(20, 20, 24, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 0.75rem 0.9rem !important;
    margin-top: 0.35rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    min-width: 290px !important;
    max-width: 380px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999 !important;
}

.custom-modal-content {
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 1.2rem 1.4rem !important;
    width: 480px !important;
    max-width: 92vw !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95) !important;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: #ffffff;
    overflow: hidden !important;
}

.custom-modal-header {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #eeeeee;
    text-transform: lowercase;
}

.custom-modal-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 0.55rem 0.75rem !important;
    color: #fff !important;
    font-size: 0.78rem !important;
    font-family: inherit !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.custom-modal-input:focus {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.pinned-list-container {
    max-height: 340px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    padding-right: 0.3rem !important;
}

.pinned-list-container::-webkit-scrollbar {
    width: 6px !important;
}

.pinned-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 4px !important;
}

.pinned-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
}

.pinned-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.recent-user-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    color: #ddd;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.12s ease;
    user-select: none;
}

.recent-user-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.recent-user-chip.selected {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-notif-dropdown {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    background: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    z-index: 99999 !important;
}

.notif-item {
    padding: 0.45rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.12s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.notif-item.unread {
    background: rgba(255, 255, 255, 0.07);
}

.mention {
    background: rgba(195, 125, 242, 0.15);
    color: #c37df2;
    border-radius: 3px;
    padding: 0.05rem 0.3rem;
    font-weight: 600;
    cursor: pointer;
}

.quote-block {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 4px 4px 0;
    padding: 0.4rem 0.65rem;
    margin: 0.4rem 0;
    font-size: 0.78rem;
    color: #ccc;
}

.quote-author {
    font-size: 0.68rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.2rem;
}

.status-online {
    border: 3.5px solid #43b581 !important;
    box-shadow: none !important;
}

.status-absent {
    border: 3.5px solid #faa61a !important;
    box-shadow: none !important;
}

.status-offline {
    border: 3.5px solid #747f8d !important;
    box-shadow: none !important;
}

.profile-card {
    position: relative !important;
    background: transparent;
    border: none;
    padding: 0;
}

.profile-header {
    position: relative !important;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    overflow: visible !important;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-nameplate {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) contrast(1.1);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    border-radius: 8px;
    z-index: 0;
}

.profile-details {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
}

.profile-top-right-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;
    margin: 0 !important;
}

.profile-top-right-actions .action-menu-trigger {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.profile-top-right-actions .action-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    background: #181818 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85) !important;
    z-index: 9999 !important;
    min-width: 150px !important;
}

.rep-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    opacity: 1 !important;
}

.rep-badge.positive {
    color: #43b581 !important;
    background: rgba(67, 181, 129, 0.22) !important;
    border: 1px solid rgba(67, 181, 129, 0.4) !important;
}

.rep-badge.negative {
    color: #f04747 !important;
    background: rgba(240, 71, 71, 0.22) !important;
    border: 1px solid rgba(240, 71, 71, 0.4) !important;
}

.rep-badge.neutral {
    color: #aaaaaa !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.profile-comment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
}

.pm-msg-reaction-bar {
    display: none;
    position: absolute;
    bottom: -28px;
    top: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2px 6px;
    gap: 4px;
    align-items: center;
    z-index: 999999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pm-msg.mine .pm-msg-reaction-bar {
    right: 0;
    left: auto;
}

.pm-msg.theirs .pm-msg-reaction-bar {
    left: 0;
    right: auto;
}

.pm-msg .action-menu-container {
    position: relative !important;
    display: inline-block !important;
}

.pm-msg.theirs .action-dropdown-menu {
    left: 0 !important;
    right: auto !important;
    z-index: 999999 !important;
}

.pm-msg.mine .action-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    z-index: 999999 !important;
}

.pm-msg:hover .pm-msg-reaction-bar,
.pm-msg.picker-target .pm-msg-reaction-bar {
    display: flex !important;
    z-index: 999999 !important;
}

.pm-msg-reaction-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: transform 0.1s;
}

.pm-msg-reaction-btn svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.pm-msg-reaction-btn:hover {
    transform: scale(1.25);
}

.pm-msg-reactions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
}

.pm-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.65rem;
    color: #ccc;
    cursor: pointer;
}

.pm-reaction-pill.reacted {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.post-emoji-picker-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.4rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    width: 175px;
    max-height: 165px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
    z-index: 9999;
    box-sizing: border-box;
}

.post-emoji-picker-dropdown::-webkit-scrollbar {
    width: 4px;
}

.post-emoji-picker-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.post-emoji-picker-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.post-emoji-picker-dropdown img {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 4px;
    padding: 2px;
    transition: transform 0.1s;
}

.post-emoji-picker-dropdown img:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.1);
}

.post-card {
    overflow: visible !important;
}

.pm-msg {
    overflow: visible !important;
}

@media (max-width: 768px) {

    .pm-layout,
    .pm-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 520px !important;
    }

    .pm-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        flex-shrink: 0 !important;
    }

    .pm-chat-area {
        width: 100% !important;
        min-width: 100% !important;
        height: 380px !important;
    }

    .pm-msg-bubble {
        max-width: 85% !important;
        word-break: break-word !important;
    }

    .post-card {
        grid-template-columns: 1fr !important;
        border-radius: 8px !important;
    }

    .post-author-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 0.6rem 0.75rem !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.75rem !important;
        text-align: left !important;
    }

    .author-big-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .author-meta-detail {
        margin-top: 0 !important;
    }

    .post-content-body {
        padding: 0.75rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .reactions-wrapper {
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
    }

    .post-footer-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .category-grid {
        grid-template-columns: 1fr !important;
    }

    .container {
        padding: 0.5rem !important;
    }
}

.shoutbox-card {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.shoutbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.75rem;
}

.shoutbox-messages-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-right: 0.3rem;
}

.shoutbox-msg-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
}

.shoutbox-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ticket-status-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ticket-status-open {
    background: rgba(67, 181, 129, 0.15);
    color: #43b581;
    border: 1px solid rgba(67, 181, 129, 0.3);
}

.ticket-status-in_progress {
    background: rgba(250, 166, 26, 0.15);
    color: #faa61a;
    border: 1px solid rgba(250, 166, 26, 0.3);
}

.ticket-status-resolved {
    background: rgba(195, 125, 242, 0.15);
    color: #c37df2;
    border: 1px solid rgba(195, 125, 242, 0.3);
}

.ticket-status-closed {
    background: rgba(116, 127, 141, 0.15);
    color: #747f8d;
    border: 1px solid rgba(116, 127, 141, 0.3);
}

.live-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 999999;
    pointer-events: none;
}

.live-toast-card {
    pointer-events: auto;
    background: rgba(18, 18, 22, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(195, 125, 242, 0.35);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
    max-width: 340px;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.store-product-card {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.store-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(195, 125, 242, 0.4);
    box-shadow: 0 8px 30px rgba(195, 125, 242, 0.15);
}

.store-thumbnail-wrap {
    width: 100%;
    height: 150px;
    background: #0d0d10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-game-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(195, 125, 242, 0.4);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-product-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.store-price-tag {
    font-size: 1.05rem;
    font-weight: 700;
    color: #7df29b;
}

.store-feature-item {
    font-size: 0.72rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}