*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4ff;
    color: #1a1a2e;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

.load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2rem 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #1a6fe8;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.load-more-btn:hover {
    background: #0a4fc4;
    transform: translateY(-2px);
}

.load-more-count {
    font-size: 12px;
    color: #7a9fd8;
    font-weight: 600;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    height: 68px;
    background: #ffffff;
    border-bottom: 1px solid #e8edf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 80, 200, 0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-logo-fallback {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a6fe8;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    list-style: none;
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 600;
    color: #1a6fe8;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: inline-block;
    white-space: nowrap;
}

.nav-links a i {
    margin-right: 5px;
}

.nav-links a:hover {
    background: #eff5ff;
    color: #0a4fc4;
}

.nav-links a.active {
    background: #1a6fe8;
    color: #fff;
}

.nav-links a.active:hover {
    background: #0a4fc4;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-actions .btn-account span {
    display: none;
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a6fe8;
    background: #fff;
    border: 1.5px solid #c8daff;
    border-radius: 10px;
    padding: 7px 16px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.btn-account:hover {
    background: #eff5ff;
    border-color: #1a6fe8;
}

.nav-toggle {
    display: none;
    border: 1.5px solid #c8daff;
    background: #eff5ff;
    color: #1a6fe8;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

/* ── Hero ── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    color: #fff;
    padding: 1.5rem;
    overflow: hidden;
    margin-top: 68px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/bg.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.08);
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-logo {
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ── Page Content Centered ── */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.mods-game-chooser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    gap: 14px;
    justify-content: center;
}

.mods-game-card {
    background: #ffffff;
    border: 1px solid #d8e5ff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(16, 67, 155, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.mods-game-card:hover {
    transform: translateY(-2px);
    border-color: #9ec2ff;
    box-shadow: 0 10px 20px rgba(16, 67, 155, 0.12);
}

.mods-game-card.is-coming-soon {
    opacity: 0.72;
    filter: grayscale(0.95);
    cursor: not-allowed;
    box-shadow: 0 3px 10px rgba(16, 67, 155, 0.07);
}

.mods-game-card.is-coming-soon:hover {
    transform: none;
    border-color: #d8e5ff;
    box-shadow: 0 3px 10px rgba(16, 67, 155, 0.07);
}

.mods-game-coming {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475a84;
    background: #edf2ff;
    border: 1px solid #cfdcff;
}

.mods-game-thumb {
    aspect-ratio: 3 / 4;
    min-height: 250px;
    background: #dfe9fb;
    overflow: hidden;
}

.mods-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mods-game-meta {
    padding: 12px 13px 13px;
}

.mods-game-meta h3 {
    font-size: 16px;
    color: #0f2b5a;
    margin-bottom: 6px;
}

.mods-game-meta p {
    color: #53678a;
    font-size: 13px;
    line-height: 1.5;
}

.mods-game-open {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a6fe8;
    font-weight: 700;
    font-size: 12px;
}

.mods-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a6fe8;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
}

.mods-back-link:hover {
    background: #eef4ff;
}

/* ── Section headers ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e0e8ff;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a6fe8;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (max-width: 840px) {
    .mods-game-chooser {
        grid-template-columns: 1fr;
    }

    .mods-game-thumb {
        min-height: 220px;
    }
}

/* ── Search Bar Styling ── */
.search-container {
    margin-bottom: 12px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #c8daff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: #1a1a2e;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 80, 200, 0.02);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
    border-color: #1a6fe8;
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.12);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a9fd8;
    pointer-events: none;
    font-size: 15px;
}

/* ── Single Line Controls Layout Panel ── */
/* ── Single Line Controls Layout Panel ── */
.controls-bar {
    background: #ffffff;
    border: 1px solid #e2eaff;
    border-radius: 12px;
    padding: 16px 20px;
    /* Increased from 12px 16px to make it feel bigger */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    /* overflow-x: auto;  ❌ REMOVED to prevent scrollbars */
}

.filters-inline-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    /* 🟢 CHANGED from nowrap to wrap */
}

.divider-pipe {
    width: 1px;
    height: 20px;
    background-color: #c8daff;
    flex-shrink: 0;
}

/* ── Filter Buttons Group ── */
.filter-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.filter-btn {
    background: #fff;
    border: 1px solid #c8daff;
    color: #1a6fe8;
    padding: 8px 16px;
    /* 🟢 Increased slightly from 6px 12px */
    font-size: 13.5px;
    /* 🟢 Increased slightly from 13px */
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.filter-btn i {
    margin-right: 4px;
}

.filter-btn:hover {
    background: #eff5ff;
    border-color: #1a6fe8;
}

.filter-btn.active {
    background: #1a6fe8;
    border-color: #1a6fe8;
    color: #fff;
}

/* ── Sort Dropdown Select Styling ── */
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.control-label {
    font-size: 11px;
    font-weight: 800;
    color: #1a3d6e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.control-select {
    padding: 6px 12px;
    border: 1px solid #c8daff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 140px;
}

.control-select:focus {
    border-color: #1a6fe8;
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.1);
}

/* ── Alphabetical Dividers ── */
.alpha-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    margin: 1.5rem 0 0.5rem 0;
    color: #1a6fe8;
    font-size: 1.25rem;
    font-weight: 800;
    user-select: none;
}

.alpha-divider::after {
    content: "";
    flex: 1;
    margin-left: 15px;
    border-bottom: 2px solid #c8daff;
    opacity: 0.7;
    height: 0;
}

.mods-discord-promo {
    border-color: #b8cbff;
    background: linear-gradient(160deg, #f5f8ff 0%, #ecf2ff 100%);
    box-shadow: 0 8px 24px rgba(26, 111, 232, 0.14);
}

.mods-discord-thumb {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #0a3fa8 0%, #1a6fe8 60%, #3b8fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 46px;
    position: relative;
    overflow: hidden;
}

.mods-discord-thumb::before,
.mods-discord-thumb::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mods-discord-thumb::before {
    width: 90px;
    height: 90px;
    top: -20px;
    right: -18px;
}

.mods-discord-thumb::after {
    width: 120px;
    height: 120px;
    left: -36px;
    bottom: -45px;
    background: rgba(255, 255, 255, 0.08);
}

.mods-discord-thumb i {
    position: relative;
    z-index: 1;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.mods-discord-promo .mod-name {
    white-space: normal;
    line-height: 1.3;
    color: #173d86;
}

.mods-discord-promo .mod-category-label {
    color: #3e63ba;
    font-weight: 700;
}

.mods-discord-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: #5865f2;
    border: 1px solid #4b57d8;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.mods-discord-promo-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(88, 101, 242, 0.4);
}

/* ── Mod Grid Layout ── */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 2.5rem;
}

.mod-card {
    background: #fff;
    border: 1px solid #e2eaff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.mod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 111, 232, 0.12);
}

.mod-card.mod-card-enter {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    animation: mod-card-slide-in 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mod-card-slide-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mod-card.mod-card-enter {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* The expand button placement and styling */
.mod-expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    /* Ensures it sits above badges or the image */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Hover effects */
.mod-expand-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.mod-thumb {
    width: 100%;
    height: 140px;
    background: #dde8ff;
    overflow: hidden;
    position: relative;
}

.mod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #a0b4e8;
}

.mod-ver-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    background: rgba(26, 111, 232, 0.85);
    color: #fff;
    z-index: 2;
}

.mod-ver-badge.fs25 {
    background: rgba(16, 185, 129, 0.9);
}

.mod-ver-badge.fs19 {
    background: rgba(245, 158, 11, 0.9);
    color: #000;
}

/* ── Verification & Freizeit Badges ── */
.mod-verified-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    background: #10b981;
    /* Premium Green */
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.mod-freizeit-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    background: #BE13A6;
    background: linear-gradient(131deg, rgba(190, 19, 166, 1) 0%, rgba(88, 210, 248, 1) 100%);
    /* Creative Purple */
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.mod-info {
    padding: 12px;
}

.mod-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.mod-category-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a9fd8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ── Mod Footer Action Button Controls ── */
.mod-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.mod-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 8px 0;
    background: #1a6fe8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.mod-dl-btn:hover {
    background: #0a4fc4;
}

.mod-quick-flag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #ffd4d9;
    background: #fff4f6;
    color: #d03453;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-size: 13px;
}

.mod-quick-flag-btn:hover {
    background: #ffe9ee;
    border-color: #f5a5b4;
    color: #bb1838;
}

/* ── Action Option 3-Dots Button ── */
.mod-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #eff5ff;
    color: #1a6fe8;
    border: 1px solid #c8daff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 14px;
}

.mod-more-btn:hover {
    background: #dde8ff;
    border-color: #1a6fe8;
}

/* ── Action Dropdown Menu Context Sheet ── */
.mod-context-menu {
    position: absolute;
    bottom: 38px;
    right: 0;
    background: #ffffff;
    border: 1px solid #c8daff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 80, 200, 0.12);
    z-index: 10;
    min-width: 125px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.mod-context-menu.show {
    display: flex;
}

.mod-context-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s, color 0.15s;
}

.page-content {
    display: block !important;
}

.mods-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

.mod-context-item i {
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.mod-context-item:hover {
    background: #eff5ff;
    color: #1a6fe8;
}

.mod-context-item.report-item {
    color: #e05;
}

.mod-context-item.report-item:hover {
    background: #fff0f2;
    color: #c03;
}

/* ── Report Modal ── */
.report-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 44, 0.68);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 14px;
}

.report-modal.open {
    display: flex;
}

.report-modal-card {
    width: min(560px, 96vw);
    background: #fff;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    box-shadow: 0 14px 46px rgba(11, 35, 81, 0.35);
    overflow: hidden;
}

.report-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    background: #f5f9ff;
    border-bottom: 1px solid #e6eeff;
}

.report-modal-head h3 {
    margin: 0;
    color: #174389;
    font-size: 15px;
}

.report-close {
    border: none;
    background: transparent;
    color: #5f7eb4;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
}

.report-close:hover {
    background: #e8f0ff;
}

.report-modal-body {
    padding: 12px 13px;
}

.report-target {
    font-size: 13px;
    color: #4f6daa;
    margin-bottom: 8px;
}

.report-modal-body label {
    display: block;
    font-size: 12px;
    color: #4f6daa;
    font-weight: 700;
    margin-bottom: 5px;
}

.report-modal-body label span {
    color: #e64848;
}

.request-board {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    background: #ffffff;
}

.request-board-header {
    margin-bottom: 8px;
}

.request-board-subtitle {
    margin: 0 0 11px;
    font-size: 12.5px;
    color: #5a719f;
}

.request-board-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.request-board-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid #dde9ff;
    border-radius: 10px;
    background: #f8fbff;
}

.request-board-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #d7e6ff;
    flex-shrink: 0;
}

.request-board-text {
    font-size: 13px;
    color: #1a2f59;
}

.request-board-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c8daff;
    background: #ffffff;
    color: #1a6fe8;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.request-board-vote:hover {
    background: #eef4ff;
}

.request-board-compose {
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-board-compose input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #c8daff;
    border-radius: 10px;
    font-size: 13px;
}

.request-board-compose button {
    border: 1px solid #1a6fe8;
    background: #1a6fe8;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.request-board-compose button:hover {
    background: #0a4fc4;
}

.request-board-empty {
    border: 1px dashed #ccdcff;
    border-radius: 10px;
    padding: 10px;
    color: #6b7ea8;
    font-size: 12px;
}

.request-modal-card {
    width: min(620px, 96vw);
}

.request-modal-warning {
    margin: 0 0 10px;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid #f3d9ab;
    background: #fff9eb;
    color: #7b5a1f;
    font-size: 12.5px;
    font-weight: 700;
}

.community-upload-cta {
    margin: 0 0 16px 0;
    padding: 14px 16px;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.community-upload-copy h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #154792;
}

.community-upload-copy p {
    margin: 0;
    font-size: 13px;
    color: #496ca6;
}

.community-upload-btn {
    border: 1px solid #1a6fe8;
    background: #1a6fe8;
    color: #ffffff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}

.community-upload-btn:hover {
    background: #0a4fc4;
    transform: translateY(-1px);
}

.mods-month-section {
    margin: 0 0 16px 0;
    padding: 12px 13px;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9fbff 0%, #eff4ff 100%);
}

.mods-month-header {
    margin-bottom: 10px;
}

.mods-month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.mods-month-card {
    background: #ffffff;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    padding: 10px;
}

.mods-month-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #173d86;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mods-month-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #5c75a8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mods-month-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a6fe8;
    background: #eef4ff;
    border: 1px solid #d4e2ff;
    border-radius: 999px;
    padding: 2px 8px;
}

.community-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.community-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.community-upload-layout form {
    min-width: 0;
}

.community-rules-panel {
    position: sticky;
    top: 0;
    align-self: start;
    border: 1px solid #cddcff;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(26, 111, 232, 0.08);
}

.community-rules-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a6fe8;
    margin-bottom: 8px;
}

.community-rules-panel h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #123e82;
}

.community-rules-panel p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #3d5f96;
}

.community-rules-panel ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #35527f;
    font-size: 13px;
    line-height: 1.45;
}

.community-rules-panel li::marker {
    color: #1a6fe8;
}

.community-upload-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.community-upload-row input[type="file"] {
    flex: 1;
    min-width: 0;
}

.community-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 10px;
}

.community-progress-bar-bg {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: #e2eaff;
    overflow: hidden;
}

.community-progress-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2f7dff, #1a6fe8);
    transition: width 0.2s ease;
}

.community-progress-label {
    min-width: 36px;
    text-align: right;
    font-size: 12px;
    color: #4f6daa;
    font-weight: 700;
}

.community-hp {
    position: absolute;
    left: -99999px;
    opacity: 0;
    pointer-events: none;
}

.report-modal-body textarea,
.report-modal-body input,
.report-modal-body select {
    width: 100%;
    border: 1px solid #c8daff;
    border-radius: 10px;
    background: #fbfdff;
    color: #1f345f;
    font-size: 13px;
    padding: 9px 10px;
    outline: none;
    margin-bottom: 9px;
}

.report-modal-body textarea {
    min-height: 122px;
    resize: vertical;
}

.report-msg {
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 12px;
    border: 1px solid transparent;
}

.report-msg.ok {
    background: #eafff1;
    border-color: #bfeccc;
    color: #177948;
}

.report-msg.err {
    background: #fff1f1;
    border-color: #ffc9c9;
    color: #a12b2b;
}

.report-modal-actions {
    padding: 10px 13px;
    border-top: 1px solid #e8efff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.report-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.report-btn.primary {
    background: #1a6fe8;
    border-color: #1a6fe8;
    color: #fff;
}

.report-btn.ghost {
    background: #f5f9ff;
    border-color: #d6e4ff;
    color: #1a6fe8;
}

.report-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mod-notice-bar {
    width: 100%;
    /* Generous margins to cleanly separate the control box from the content grid */
    margin: 24px 0;
    padding: 14px 20px;

    /* Light theme matching background & border */
    background-color: #fef8e7;
    border: 1px solid #fbe6b5;
    border-left: 4px solid #ffaf00;
    /* Solid accent bar on the left */
    border-radius: 8px;
    /* Smooth rounded corners matching your buttons */

    /* Text color fixes */
    color: #6c757d;
    /* Darker gray for clear readability */
    font-size: 0.95rem;
    font-weight: 500;
}

.mod-notice-bar p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specific styling for the FontAwesome warning icon */
.mod-notice-bar p i {
    color: #ffaf00;
}

/* Styled to pop against the new gray text color */
.mod-notice-bar strong {
    color: #d98200;
    /* Richer, darker gold for accessibility/contrast */
    font-weight: 700;
}

/* ── Skeletons ── */
.skeleton {
    background: linear-gradient(90deg, #e8eeff 25%, #d0daff 50%, #e8eeff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.skeleton-card {
    background: #fff;
    border: 1px solid #e2eaff;
    border-radius: 14px;
    overflow: hidden;
}

.skeleton-thumb {
    height: 140px;
}

.skeleton-line {
    height: 14px;
    margin: 12px 12px 6px 12px;
    border-radius: 6px;
}

.skeleton-subline {
    height: 10px;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    width: 50%;
}

.skeleton-btn {
    height: 32px;
    margin: 6px 12px 12px;
    border-radius: 8px;
}

.error-state {
    color: #e05;
    font-size: 13px;
    font-weight: 600;
    padding: 2rem 0;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filters-inline-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .divider-pipe {
        display: none;
    }

    .sort-wrapper {
        justify-content: flex-end;
    }

    .mods-discord-promo {
        flex-direction: column;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        padding: 10px 12px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: 180px;
        padding: 1rem;
    }

    .hero-logo {
        height: 80px;
    }

    .control-select {
        width: 100%;
    }

    /* --- New Mod Badge Layout Placements --- */
    .mod-new-badge {
        position: absolute;
        bottom: 8px;
        left: 8px;
        background-color: #ff5722;
        /* Vibrant Orange/Red */
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }

    /* Adjust your existing badges if they stack overlappingly */
    .mod-thumb .mod-verified-badge {
        left: 75px;
        /* Adjust left positioning if you want them side by side */
    }

    .community-upload-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .community-upload-btn {
        width: 100%;
    }

    .community-upload-grid {
        grid-template-columns: 1fr;
    }

    .community-upload-layout {
        grid-template-columns: 1fr;
    }

    .community-rules-panel {
        position: static;
    }

    .community-upload-row {
        flex-direction: column;
        align-items: stretch;
    }

    .request-board-compose {
        flex-direction: column;
        align-items: stretch;
    }

    .request-board-compose button {
        width: 100%;
    }

}