/* === CSS VARIABLES & BASE STYLES === */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(to bottom, #1f1f23, #15151a, #0f0f11);
    margin: 0;
    padding: 0;
    color: var(--nexus-text);
    line-height: var(--line-height-base);
}

a {
    color: var(--nexus-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, a:focus {
    color: var(--nexus-white);
    text-decoration: none;
}

a:active {
    color: var(--nexus-gold-hover);
}

/* === UTILITY CLASSES === */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: var(--spacing-md) var(--spacing-sm);
}

.container-mods {
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
}

.w-100 { width: 100% !important; }
.text-center { text-align: center !important; }
.text-decoration-none { text-decoration: none !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer !important; }

/* Text colors */
.text-nexus-gold { color: var(--nexus-gold) !important; }
.text-nexus-white { color: var(--nexus-white) !important; }
.text-nexus-orange { color: var(--nexus-orange) !important; }
.text-nexus-dark { color: var(--nexus-dark) !important; }
.text-nexus-dark:hover { color: var(--nexus-white) !important; }
.text-muted { 
    color: var(--nexus-text-muted) !important;
    padding: 0.2rem 0 0.2rem 2rem;
}

.text-muted2 { 
    color: var(--nexus-text-muted) !important;
}

/* === HOMEPAGE STYLES === */
.index-hero {
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .7em);
    box-shadow: 0 2px 16px 0 #18181e33;
    color: #fff;
    max-width: 1300px;
}

/* === STATS PANEL (matches index-hero look) === */
.stats-panel {
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .7em);
    box-shadow: 0 2px 16px 0 #18181e33;
    color: #fff;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.stats-panel h4 {
    color: var(--nexus-gold);
    margin: 0;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: center;
    text-shadow: 0 2px 8px rgba(240,192,64,0.12), 0 6px 24px rgba(240,192,64,0.06);
}

.stats-panel ul {
    margin: 0 auto;
    padding: 0;
    max-width: 360px; /* center the block within the panel */
    width: 100%;
    text-align: left; /* ensure text inside is left-aligned */
}

.stats-panel li {
    color: var(--nexus-text);
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* label left, value right */
    border-bottom: 1px dashed rgba(255,255,255,0.03);
}

.stats-panel li:last-child {
    border-bottom: none;
}

.stats-panel .stats-label {
    color: var(--nexus-text-muted);
    font-size: 1.25rem;
    margin-right: 1rem;
    text-align: left;
    font-weight: 600;
}

.stats-panel .stats-value {
    color: var(--nexus-gold);
    font-weight: 900;
    font-family: var(--font-family-heading);
    font-size: 1.7rem;
}



/* center list content */
.stats-panel ul { width: 100%; display: block; }
.stats-panel li { padding: .5rem 0; }

/* Utility: full-height column */
.h-100 { height: 100% !important; }

/* Ensure the button matches site button styling but slightly smaller */
.stats-panel .btn {
    padding: .45em .85em;
    font-size: .95rem;
}

/* Responsive: stack on small screens */
@media (max-width: 767px) {
    .stats-panel { padding: 1rem; }
    .hero-text { margin-right: 1rem !important; margin-left: 1rem !important; }
    .stats-panel ul { max-width: 100%; margin: 0; }
    .stats-panel li { justify-content: space-between; }
}

.index-title {
    font-size: 2em;
    font-weight: 900;
    color: #f0c040;
    margin-bottom: .3em;
    letter-spacing: .01em;
}

.index-lead {
    font-size: 1.25em;
    color: #e0e0e0;
    margin-bottom: 1.5em;
}

.index-hero-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-text {
    margin-right: 3rem !important;
    margin-left: 3rem !important;
}

.index-features .card {
    background: var(--nexus-dark);
    color: #e0e0e0;
    border-radius: calc(0.7 * .7em);
    box-shadow: 0 2px 8px 0 #18181e33;
    border: none;
}

.index-features .card-title {
    color: #f0c040;
    font-weight: 700;
    font-size: 1.18em;
}

.index-section-title {
    color: #f0c040;
    font-weight: 800;
    margin-bottom: 1.2em;
    font-size: 1.4em;
    letter-spacing: .01em;
}

.feature-icon {
    width: 125px;
    height: 125px;
    object-fit: contain;
}

/* === CARD COMPONENTS === */
.custom-card {
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .5rem);
    border: none;
}

.custom-card-requests {
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .5rem);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    border: none;
    min-height: 190px;
}

.custom-contacts-card {
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .5rem);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    border: none;
}

.custom-card-register {
    max-width: 880px;
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .5rem);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.custom-card-body {
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .8rem);
    padding: 1rem 0.5rem;
}

.custom-contacts-card-body {
    background: var(--nexus-dark);
    border-radius: calc(0.7 * .8rem);
    padding: 1rem 0.5rem;
}

.custom-card-body-register {
    background: var(--nexus-dark);
    border-radius: .8rem;
    padding: 1rem 0.5rem;
    max-width: 800px;
}

.custom-card-title {
    margin-bottom: 0.5rem;
    color: #f0c040;
    font-weight: 700;
    font-size: 1.18em;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.custom-card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0 1rem;
}

.my-image-card {
    background: var(--nexus-dark);
    border-radius: .5rem;
    border: none;
    cursor: zoom-in;
    object-fit: cover;
    height: 150px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.my-image-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 6px #f0c040;
}

/* === MODAL STYLES === */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.gallery-modal-modinfo {
    color: var(--nexus-white);
    border-radius: 50%;
    text-decoration: none;
}


.gallery-modal-username {
    color: var(--nexus-white);
}

.gallery-full-img {
    bottom: 0;
    margin: 0 !important;
}

.image-modal-arrow {
    border: none !important;
}

/* === MOD STYLES === */
.mod-card,
.btn-nexus,
.form-control,
.bbcode-btn {
    will-change: transform;
    backface-visibility: hidden;
}

.form-control2 {
    will-change: transform;
}

.mod-card {
    contain: layout style paint;
}

.mods-grid {
    contain: layout;
}

.mod-thumb,
.mod-thumb-img {
    image-rendering: -webkit-optimize-contrast;
    outline: none !important;
    background: #18181e !important;
}

.mod-detailed-desc,
.mod-changelog {
    background: #2d2d36;
    border-radius: .5rem;
    padding: 1.2em 1.5em;
    color: #e0e0e0;
    min-width: 1000px;
}

.mod-description-placeholder {
    background: #2d2d36;
    border-radius: .5rem;
    padding: 2em 1.5em;
    color: #b0b0b0;
    text-align: center;
    border: 2px dashed rgba(240, 192, 64, 0.2);
    min-width: 1000px;
}

.mod-description-placeholder-icon {
    font-size: 2.5em;
    color: rgba(240, 192, 64, 0.4);
    margin-bottom: 0.5em;
    display: block;
}

.mod-description-placeholder-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #d2d1d6;
    margin-bottom: 0.5em;
}

.mod-description-placeholder-text {
    font-size: 0.95em;
    color: #b0b0b0;
    max-width: 500px;
    margin: 0 auto;
}

.mod-detail-content .tab-content {
    background: var(--nexus-dark) !important;
    color: #e0e0e0 !important;
    border-radius: .5rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 2px solid #bc9c25 !important;
    padding: 1.5rem; /*было padding: 2rem 2.2rem; */
    margin-bottom: 1.5rem;
    min-height: 320px;
    max-width: max-content;
    min-width: 1000px;
}

.mod-detail-content .tab-content2 {
    background: var(--nexus-dark) !important;
    color: #e0e0e0 !important;
    border-radius: .5rem;
    padding: 1.5rem; /*было padding: 2rem 2.2rem; */
    margin-bottom: 1.5rem;
    min-height: 320px;
}

.about-mod-body {
    border-radius: .5rem;
    color: #e0e0e0;
    /*padding: 2rem 2.2rem;*/ /*убрал паддинг*/
}

.about-mod-title {
    font-size: 1.45em;
    font-weight: 700;
    color: #d2d1d6;
    letter-spacing: .01em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.mod-section-title {
    display: block;
    font-size: 1.22em;
    font-weight: 700;
    color: var(--nexus-white);
    background: #d1be7b2b;
    padding: .7em 1em .7em .6em;
    margin-bottom: 1.1em;
    margin-top: .2em;
    border-radius: calc(0.7 * .4em);
    letter-spacing: .01em;
    box-shadow: 0 2px 8px 0 #18181e22;
    border-left: 12px solid #f0c040;
    white-space: nowrap;
}

.mod-section-title-simple {
    display: block;
    font-size: 1.52em;
    font-weight: 600;
    color: var(--nexus-white);
    background: transparent;
    padding: 0;
    margin-bottom: 1.1em;
    margin-top: .2em;
    border-radius: 0;
    letter-spacing: .01em;
    box-shadow: none;
    border-left: none;
    white-space: nowrap;
}

.mod-meta-row {
    font-size: .92em !important;
    color: #b0b0b0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: .3em;
    align-items: center;
    line-height: 1.5;
}

.mod-meta-row .mod-date,
.mod-meta-row .mod-size {
    color: #b0b0b0 !important;
    font-size: .92em !important;
}

/* Mod thumbnails */
.mod-thumb-img {
    height: 60px;
    max-width: 100px;
    object-fit: cover;
    border-radius: calc(0.7 * 6px);
    display: block;
}

/* === ICON STYLES === */
.mods-btn {
    align-items: center;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    height: 1.5em;
    width: 1.3em;
    vertical-align: middle;
}

.icon-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.7em;
    width: auto;
    transition: opacity 0.3s ease;
    display: block;
}

.icon-hover {
    opacity: 0;
    pointer-events: none;
}

.mods-btn:hover .icon-default {
    opacity: 0;
}

.mods-btn:hover .icon-hover {
    opacity: 1;
}

/* === PAGINATION STYLES === */
.pagination {
    --bs-pagination-bg: #23232b;
    --bs-pagination-border-color: #18181e;
    --bs-pagination-color: var(--nexus-gold);
    --bs-pagination-hover-bg: #18181e;
    --bs-pagination-hover-color: #fffbe6;
    --bs-pagination-active-bg: #f0c040;
    --bs-pagination-active-color: #23232b;
    --bs-pagination-focus-box-shadow: 0 0 0 0.15rem #f0c04055;
}

.pagination .page-link {
    background: var(--bs-pagination-bg);
    color: var(--bs-pagination-color);
    border: 1px solid var(--bs-pagination-border-color);
    font-weight: 600;
    border-radius: calc(0.7 * 6px) !important;
    transition: background 0.18s, color 0.18s;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background: var(--bs-pagination-hover-bg);
    color: var(--bs-pagination-hover-color);
    border-color: #f0c040;
    box-shadow: var(--bs-pagination-focus-box-shadow);
}

.pagination .page-item.active .page-link {
    background: var(--bs-pagination-active-bg);
    color: var(--bs-pagination-active-color);
    border-color: #f0c040;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link {
    background: #23232b;
    color: #888;
    border-color: #18181e;
}

.pagination-bar-top {
    max-width: 1600px;
}

.pagination-bar-bottom {
    max-width: 1600px;
}

/* === TABLE STYLES === */
.downloads-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--nexus-dark);
}

.downloads-history-table th,
.downloads-history-table td {
    vertical-align: middle;
    padding: 0.7em 0.6em;
    border: 2px solid #18181e !important;
    min-height: 60px;
}

.downloads-history-table.table-bordered,
.downloads-history-table.table-bordered th,
.downloads-history-table.table-bordered td {
    border: 2px solid #18181e !important;
}

.downloads-history-table td:first-child {
    border-right: 1px !important;
}

.downloads-history-table tr {
    height: 60px;
}

.downloads-history-table th {
    font-weight: 600;
    color: #f0c040;
    background: #23232b;
    cursor: pointer;
    user-select: none;
}

.downloads-history-table td {
    color: var(--nexus-white);
    background: #23232b;
}

.downloads-history-table td.d-flex {
    min-height: 60px;
    align-items: stretch;
}

.sort-icons {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.sort-arrow {
    display: inline-block;
    vertical-align: middle;
    margin: 0 1px;
}

/* === LIST STYLES === */
.list-group-item {
    background: #18181e;
    border-color: #3d3d45;
    color: #e0e0e0;
    justify-content: space-between;
    max-width: max-content;
    padding: 2.2em 0 2.2em 1em;
    margin: 15px;
    display: flex;
    align-items: center;
    min-height: 48px;
    height: 48px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.list-group-item > span,
.list-group-item .me-3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    max-width: 70%;
}

.list-group-item .delete-cross-form,
.list-group-item .delete-cross-btn {
    flex-shrink: 0;
    margin-left: 8px;
}

/* === AVATAR STYLES === */
.avatar-upload-form {
    width: 148px;
    max-width: 100%;
    margin: 0 auto 1.2rem auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-label {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    margin: 0 auto;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--nexus-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: box-shadow 0.18s;
    border-radius: 50%;
}

.avatar-label:hover .avatar-preview,
.avatar-label:focus .avatar-preview {
    box-shadow: 0 4px 16px rgba(240,192,64,0.25);
}

.avatar-upload-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(24,24,30,0.45);
    opacity: 0;
    transition: opacity 0.18s;
    border-radius: 50%;
}

.avatar-label:hover .avatar-upload-overlay,
.avatar-label:focus .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-form .btn-nexus-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0.5rem 0 0 0;
    overflow: hidden;
    display: block;
    align-self: center;
}

/* === COMMENT STYLES === */
.comment-card {
    background: #2d2d36;
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    color: #f8f9fa;
    position: relative;
    max-width: 1000px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: #444;
}

.comment-username {
    color: var(--nexus-white);
    cursor: pointer;
}

.comment-content {
    font-size: 1.05em;
    margin-bottom: 8px;
    color: #f8f9fa;
}

.comment-reply-btn,
.comment-quote-btn,
.edit-comment-btn {
    min-width: 36px;
    font-size: 0.75em;
    padding: 1px 1px;
    line-height: 1.2;
    width: 100%;
    margin-bottom: 2px;
    background: #222;
    color: #eee;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.comment-reply-btn:hover,
.comment-quote-btn:hover,
.edit-comment-btn:hover {
    background: #333;
    color: #fff;
}

.comment-left {
    min-width: 60px;
}

.comment-vr,
.vr {
    width: 2px;
    min-height: 60px;
    background: #444;
    margin: 0;
}

.comment-right {
    position: relative;
    padding-left: 12px;
}

.comment-delete-form {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none !important;
    box-shadow: none !important;
}

.comment-delete-form.no-bg {
    background: none !important;
    box-shadow: none !important;
}

.comment-delete-btn {
    position: absolute;
    bottom: 3px;
    right: 3px;
    z-index: 2;
}

.comment-delete-form.position-absolute {
    right: 0;
}

.btn-xs {
    font-size: 0.85em;
    padding: 2px 8px;
    line-height: 1.2;
}

/* === NOTIFICATION STYLES === */
.notification-bell {
    user-select: none;
    color: var(--nexus-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
    outline: none;
    cursor: pointer;
}

.notification-bell:hover,
.notification-bell:active,
.notification-bell:focus {
    background: #2c2c2c;
    color: var(--nexus-white);
    box-shadow: none;
}

.notification-count {
    display: none;
}

.notification-count-full {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background: var(--nexus-red);
    color: var(--nexus-pure-white);
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 17px;
    height: 17px;
    padding: 0px;
    border-radius: 25%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    -webkit-text-stroke: 0.2px #000;
    text-shadow: 0 0 1px #000;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 340px;
    max-width: 400px;
    max-height: 600px;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    background: #222 !important;
    color: #e0e0e0 !important;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
    z-index: 9999;
    padding: 0 !important;
    border: 1px solid #f0c040;
    scrollbar-width: thin;
    scrollbar-color: #f0c040 #1a1a1a;
    display: none;
    box-sizing: border-box !important;
}

.notification-dropdown::-webkit-scrollbar {
    width: 8px !important;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    border-radius: 4px !important;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0c040 0%, #e6a800 100%) !important;
    border-radius: 4px !important;
    border: 2px solid #1a1a1a !important;
    transition: background 0.3s ease !important;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffdb4d 0%, #f0c040 100%) !important;
}

.notification-item {
    padding: 0.6rem 1rem;
    transition: background 0.2s ease;
}

.notification-item.notification-unread {
    background: #2c2c2c;
}

.notification-item:hover {
    background: #2c2c2c;
}

/* Profile dropdown specifics - no scroll */
.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px !important;
    max-width: 340px !important;
    background: #222 !important;
    color: #e0e0e0 !important;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
    z-index: 9999;
    padding: 0 !important;
    border: 1px solid #f0c040;
    display: none;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Mobile: make dropdowns fixed and full-bleed-ish so they remain visible on scroll */
@media (max-width: 767px) {
    .notification-dropdown {
        position: fixed !important;
        top: 56px !important; /* below navbar */
        right: 12px !important;
        left: 12px !important;
        min-width: auto !important;
        max-width: none !important;
        width: calc(100% - 24px) !important;
        max-height: calc(100vh - 88px) !important;
        border-radius: 0.5rem !important;
        padding: 0 !important;
        overflow-y: auto !important;
    }

    .profile-dropdown.card {
        border: 2px solid #f0c040;
    }

    .profile-dropdown .username {
        display: block !important;
        font-size: 1rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    .profile-dropdown .p-2 > a {
        padding-left: 0.6rem !important;
    }
}

/* === EDIT NAV MENU === */
.edit-nav-menu {
    min-width: 240px;
    max-width: 320px;
    background: #23232b;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    border: 1px solid var(--nexus-gold);
    padding: 18px 0;
}

.edit-nav-list {
    margin: 0;
    padding: 0;
}

.edit-nav-link {
    color: #f0c040;
    background: transparent;
    font-weight: 500;
    font-size: 1.08rem;
    transition: background 0.15s, color 0.15s;
    border: none;
    outline: none;
    text-decoration: none;
}

.edit-nav-link:hover,
.edit-nav-link:focus {
    background: #353545;
    color: #fffbe6;
    text-decoration: none;
}

.edit-nav-link.active {
    background: #f0c040;
    color: #23232b;
}

/* === BBCODE STYLES === */
.bbcode-size-10 { font-size: 10px; }
.bbcode-size-14 { font-size: 14px; }
.bbcode-size-18 { font-size: 18px; }
.bbcode-size-24 { font-size: 24px; }
.bbcode-size-32 { font-size: 32px; }

.bbcode-color-red { color: red; }
.bbcode-color-orange { color: orange; }
.bbcode-color-yellow { color: yellow; }
.bbcode-color-green { color: green; }
.bbcode-color-blue { color: blue; }
.bbcode-color-purple { color: purple; }
.bbcode-color-black { color: black; }

.bbcode-highlight-yellow { background: yellow; }
.bbcode-highlight-green { background: green; }
.bbcode-highlight-blue { background: blue; }
.bbcode-highlight-ffff00 { background: #ffff00; }

.bbcode-list-decimal { list-style-type: decimal; }
.bbcode-list-alpha { list-style-type: lower-alpha; }

.bbcode-font-Arial { font-family: Arial, sans-serif; }
.bbcode-font-Times { font-family: 'Times New Roman', Times, serif; }
.bbcode-font-Courier { font-family: 'Courier New', Courier, monospace; }

.bbcode-video { max-width: 100%; height: auto; }

.bbcode-align-left { text-align: left; }
.bbcode-align-center { text-align: center; }
.bbcode-align-right { text-align: right; }

.bbcode-preview-image { max-width: 100%; height: auto; }

.bbcode-preview-quote {
    border-left: 3px solid var(--nexus-gold);
    margin: 8px 0;
    padding: 8px 12px;
    background: var(--nexus-dark);
}

.bbcode-quote-author {
    font-weight: bold;
    color: #888;
    margin-right: 8px;
}

.bbcode-spoiler {
    margin: 8px 0;
    border: 1px dashed #aaa;
    background: var(--nexus-dark);
}

.bbcode-spoiler-header {
    cursor: pointer;
    font-weight: bold;
    padding: 4px 8px;
    background: #eee;
}

.bbcode-spoiler-content-hidden { display: none; }

.bbcode-accordion {
    margin: 8px 0;
    border: 1px solid #ddd;
}

.bbcode-accordion-title {
    cursor: pointer;
    font-weight: bold;
    padding: 4px 8px;
    background: #eee;
}

.bbcode-accordion-body-hidden { display: none; }

.bbcode-preview-code {
    background: #222;
    color: #eee;
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    overflow-x: auto;
}

.bbcode-table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.bbcode-table td,
.bbcode-table th {
    border: 1px solid #ccc;
    padding: 4px 8px;
}

.bbcode-attach {
    color: #888;
    font-style: italic;
}

.bbcode-math {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

.bbcode-anchor {
    display: inline-block;
    width: 0;
    height: 0;
}

.bbcode-goto {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.bbcode-preview-link {
    color: #007bff;
    text-decoration: underline;
}

.bbcode-fieldset {
    border: 1px solid #aaa;
    padding: 8px;
    margin: 8px 0;
}

.bbcode-fieldset legend {
    font-weight: bold;
}

.bbcode-dropdown-color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.bbcode-preview {
    min-height: 80px;
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 4px;
}

.bbcode-output {
    white-space: pre-wrap;
    word-break: break-word;
}

.bbcode-tab.active {
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

.bbcode-hide { display: none !important; }
.bbcode-preview-visible { display: block !important; }

.bbcode-dropdown {
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bbcode-dropdown-item {
    cursor: pointer;
    transition: background 0.2s;
}

.bbcode-dropdown-item:hover {
    background: #f0f0f0;
}

.bbcode-editor {
    position: relative;
}

/* === DONATION STYLES === */
.donation-block {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.donation-frame {
    width: 80%;
    margin: 0 auto;
}

.wallet-info {
    background-color: rgba(33, 37, 41, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.wallet-address {
    max-width: 438px;
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.wallet-address-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* === FOOTER STYLES === */
.site-footer {
    background: transparent;
    color: #ccc;
    padding: 40px 20px;
    font-size: 14px;
    border-top: 1px solid #333;
}

.footer-social a {
    font-size: 2rem !important;
    color: #888 !important;
    margin: 0 10px;
    transition: color .2s;
}

.footer-social a:hover {
    color: #fff !important;
}

/* Login reset form */
.reset-login {
  min-width: 380px;
  width: auto;
}

/* Background hero section */
.bg-hero {
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.bg-hero .container {
  border-radius: .5rem;
}

/* Register container */
.register-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: .5rem;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Image thumbnail */
.img-thumbnail {
  padding: .25rem;
  background-color: transparent!important;
  border: none!important;
  border-radius: var(--bs-border-radius);
  max-width: 100%;
  height: auto;
}

/* User info and profile links */
.user-info {
  display: flex;
  align-items: center;
  gap: 3px;
}

.profile-link .username,
.profile-link .username:active,
.profile-link .username:visited,
.profile-dropdown-container .username,
.profile-dropdown-container .username:active,
.profile-dropdown-container .username:visited,
.profile-dropdown-container .username-link .username {
    text-decoration: none!important;
    color: var(--nexus-white)!important;
    font-weight: 700!important;
}

/* Main content area */
.main-content {
  flex-grow: 1;
  max-width: 2000px;
  width: 100%;
  min-width: 0;
}

/* Upload progress styles */
.progress-upload {
  height: 1.5rem;
}

.upload-progress-text {
  font-size: 1rem;
  color: #fff;
}

/* Alert info center */
.alert-info.text-center {
  background: #23232a !important;
  color: var(--nexus-text-muted, #b0b0b0) !important;
  box-shadow: none !important;
}

/* Requests tickets max width */
.requests-tickets-maxwidth {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

.width-260 {
    width: 260px !important;
}

.blurred-nsfw {
    filter: blur(12px) brightness(0.3) grayscale(0.5);
    pointer-events: none !important;
    user-select: none !important;
    cursor: not-allowed !important;
    transition: filter 0.2s;
}

/* Add new banner girl style */
.banner-girl-img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-left: 3rem;
}

/* Adjust hero section layout */
.index-hero {
    display: flex;
    justify-content: center;
    align-items: start;
}

.hero-text {
    text-align: left;
    flex: 1;
    max-width: 800px;
}

.contact-discord-icon {
  color: #5865F2 !important;
}

.btn-discord {
  background-color: #5865F2 !important;
  color: #ffffff !important;
  border: 1px solid #5865F2 !important;
  transition: all 0.2s ease;
}

.btn-discord:hover {
  background-color: #4752c4 !important;
  border-color: #4752c4 !important;
  color: #ffffff !important;
}

.btn-discord:focus,
.btn-discord:active {
  background-color: #4752c4 !important;
  border-color: #4752c4 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(88, 101, 242, 0.25) !important;
}

/* Downloads history responsiveness */
.downloads-history-table td,
.downloads-history-table th {
    white-space: normal !important;
    word-break: break-word !important;
}

.downloads-history-table .mod-thumb-img {
    width: 72px !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Allow the table area to scroll vertically on small screens to avoid overlapping content */
@media (max-width: 767px) {
    .card.custom-card .card-body .table-responsive {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .downloads-history-table thead {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #1f1f1f;
    }
}

/* === CHARACTER COUNTER STYLES === */
.char-count-warning {
    color: #ff9800; /* Orange warning */
}

.char-count-error {
    color: #dc3545; /* Red error */
}

/* === CHANGELOG WARNING BOX === */
.changelog-warning-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 193, 7, 0.08));
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-left: 6px solid #ff9800;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.changelog-warning-box i {
    font-size: 1.8rem;
    color: #ff9800;
    flex-shrink: 0;
    line-height: 1;
}

.changelog-warning-text {
    color: #f5f5f5;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.changelog-warning-text b {
    color: #ffe0b2;
    font-weight: 700;
}

.changelog-warning-text u {
    text-decoration: underline;
    text-decoration-color: rgba(255, 152, 0, 0.5);
    text-underline-offset: 3px;
}

/* === FLASH MESSAGES LAYOUT === */
.flash-message-container {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.flash-message-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
}

.flash-message-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    flex-shrink: 0;
    padding-right: 0.5rem;
}

.flash-message-close .btn-close {
    margin: 0;
}