/* =====================================================
   MODS CATALOG & MOD PAGE — Askcraft Network
   Redesign: cleaner hierarchy, #ff9800 accent, readable typography
   ===================================================== */

/* ---- Variables ---- */
:root {
    --accent:      #ff9800;
    --accent-h:    #ffb74d;
    --accent-dim:  rgba(255,152,0,.12);
    --bg-0:        #0a0a0a;
    --bg-1:        #111111;
    --bg-2:        #161616;
    --bg-3:        #1c1c1c;
    --border:      #252525;
    --border-h:    #333333;
    --text-1:      #f0ece8;   /* primary text */
    --text-2:      #afafaf;   /* secondary */
    --text-3:      #888888;   /* muted */
}

/* ---- Page wrapper ---- */
.mods-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 80px;
    color: var(--text-1);
    font-family: JL, sans-serif;
    font-weight: 900;
}

/* =====================================================
   BANNER
   ===================================================== */
.mods-page-banner {
    background:
        linear-gradient(180deg, rgba(10,10,10,0) 30%, #000 100%),
        radial-gradient(61.13% 58.87% at 50% 52.84%, rgba(5,5,5,0) 43.89%, #000 100%),
        url(/assets/img/banners/welcome_banner_1920x824.webp) no-repeat center / cover;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 55px;
    box-sizing: border-box;
    margin-bottom: 32px;
}
.mods-page-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mods-banner-label {
    font-family: bebasregular, sans-serif;
    font-size: 56px;
    color: #ffffff;
    letter-spacing: .22em;
    transform: scaleY(1.2);
    display: block;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.mods-page-title {
    font-family: NSB, sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-2);
    margin: 0;
    letter-spacing: .5px;
    line-height: 1.4;
}
.mods-page-title .mods-count-accent {
    color: var(--accent);
    font-weight: 900;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.mods-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ---- SIDEBAR ---- */
.mods-sidebar {
    width: 234px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
}
.mods-sidebar-close { display: none; }

.mods-sb-section {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.mods-sb-title {
    font-family: NSB, sans-serif;
    font-size: 10px;
    font-weight: 900;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Sort */
.mods-sort-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--text-2);
    font-size: 13px;
    font-family: JL, sans-serif;
    font-weight: 900;
    cursor: pointer;
    transition: color .15s, background .15s;
    user-select: none;
}
.mods-sort-item:hover {
    color: var(--text-1);
    background: var(--bg-3);
}
.mods-sort-item.active { color: var(--accent); font-weight: 900; }
.mods-sort-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 2px solid #383838;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.mods-sort-item.active .mods-sort-dot {
    background: var(--accent);
    border-color: var(--accent);
}

/* Sidebar chips */
.mods-sb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.mods-sb-chips .mods-chip { font-size: 12px; padding: 3px 9px; }

/* Game version scroll */
.mods-gv-chips {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.mods-gv-chips::-webkit-scrollbar { width: 3px; }
.mods-gv-chips::-webkit-scrollbar-track { background: transparent; }
.mods-gv-chips::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* "Show all versions" checkbox */
.mods-gv-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-3);
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}
.mods-gv-toggle input[type=checkbox] {
    accent-color: var(--accent);
    width: 13px; height: 13px;
    cursor: pointer;
}
.mods-gv-toggle:hover { color: var(--text-2); }

/* "Show more" */
.mods-show-more {
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
    padding: 3px 2px;
    opacity: .75;
    user-select: none;
    transition: opacity .15s;
}
.mods-show-more:hover { opacity: 1; text-decoration: underline; }
.mods-hidden { display: none !important; }

/* ---- MAIN ---- */
.mods-main { flex: 1; min-width: 0; }

/* Top bar */
.mods-top-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.mods-top-bar .mods-search-wrap { flex: 1; margin-bottom: 0; }
.mods-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border-h);
    border-radius: 8px;
    color: var(--text-2);
    font-size: 13px;
    font-family: JL, sans-serif;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.mods-filter-toggle:hover { border-color: var(--accent); color: var(--text-1); }

/* Reset link */
.mods-reset-link { margin-bottom: 12px; font-size: 13px; }
.mods-reset-link a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.mods-reset-link a:hover { color: var(--text-2); }

/* Search bar */
.mods-search-wrap { position: relative; margin-bottom: 16px; }
.mods-search-wrap .fa {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 14px;
    pointer-events: none;
}
#mods-search {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border-h);
    border-radius: 8px;
    color: var(--text-1);
    font-family: JL, sans-serif;
    font-size: 15px;
    font-weight: 900;
    padding: 11px 14px 11px 42px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
#mods-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,152,0,.08);
}
#mods-search::placeholder { color: #404040; }

/* Filter chips */
.mods-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-h);
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    user-select: none;
    line-height: 1.5;
}
.mods-chip:hover { border-color: var(--accent); color: var(--text-1); }
.mods-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 900;
}

/* =====================================================
   GRID & CARDS
   ===================================================== */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
    min-height: 80px;
    transition: opacity .2s;
}
.mods-grid.loading { opacity: .3; pointer-events: none; }
.mods-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-3);
    padding: 70px 0;
    font-size: 15px;
}

.mod-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.mod-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent);
    border-radius: 10px 0 0 10px;
    opacity: 0;
    transition: opacity .2s;
}
.mod-card:hover {
    border-color: var(--border-h);
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.mod-card:hover::before { opacity: 1; }

.mod-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-3);
}
.mod-card-icon-ph {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #383838;
    font-size: 24px;
}
.mod-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mod-card-title {
    font-family: NSB, sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.mod-card-desc {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-2);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}
.mod-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 4px;
}
.mod-chip-sm {
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid var(--border-h);
    color: var(--text-3);
    background: var(--bg-1);
    text-transform: lowercase;
}
.mod-chip-sm.loader {
    border-color: rgba(255,152,0,.3);
    color: var(--accent);
    background: rgba(255,152,0,.06);
}
.mod-card-downloads {
    margin-left: auto;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.mods-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.mods-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border-h);
    background: var(--bg-2);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    text-decoration: none;
    font-family: JL, sans-serif;
}
.mods-pagination .page-btn:hover { border-color: var(--accent); color: var(--text-1); }
.mods-pagination .page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 900;
}
.mods-pagination .page-btn.disabled { opacity: .25; pointer-events: none; }

/* =====================================================
   MOD DETAIL PAGE
   ===================================================== */
.mod-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 20px 80px;
    color: var(--text-1);
    font-family: JL, sans-serif;
    font-weight: 900;
}

.mod-breadcrumb {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-2);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.mod-breadcrumb a { color: var(--text-2); text-decoration: none; transition: color .15s; }
.mod-breadcrumb a:hover { color: var(--accent); }
.mod-breadcrumb .sep { color: var(--border-h); margin: 0 8px; }

/* Hero */
.mod-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.mod-hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.mod-hero-icon-ph {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #383838;
    font-size: 34px;
}
.mod-hero-info { flex: 1; min-width: 0; }
.mod-hero-title {
    font-family: ru-bold, sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.2;
}
.mod-hero-desc {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 14px;
}
.mod-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.mod-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid var(--border-h);
    color: var(--text-3);
    background: var(--bg-1);
    letter-spacing: .3px;
}
.mod-badge.loader   { border-color: rgba(255,152,0,.35); color: var(--accent); background: rgba(255,152,0,.06); }
.mod-badge.category { border-color: rgba(122,170,122,.35); color: #7aaa7a; background: rgba(122,170,122,.06); }
.mod-badge.version  { border-color: rgba(128,128,204,.35); color: #9090cc; background: rgba(128,128,204,.06); }

.mod-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 900;
    color: var(--text-2);
    flex-wrap: wrap;
}
.mod-stats .fa { margin-right: 5px; color: var(--text-3); }

/* Section title */
.mod-section-title {
    font-family: NSB, sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-1);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    letter-spacing: .3px;
}

/* Markdown body */
.mod-body {
    margin: 0 0 40px;
    line-height: 1.8;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 900;
}
.mod-body h1, .mod-body h2, .mod-body h3, .mod-body h4 {
    font-family: NSB, sans-serif;
    font-weight: 900;
    color: var(--text-1);
    margin: 24px 0 10px;
}
.mod-body h2 { font-size: 19px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.mod-body h3 { font-size: 16px; }
.mod-body p  { margin: 0 0 12px; }
.mod-body img { max-width: 100%; border-radius: 6px; margin: 10px 0; }
.mod-body a   { color: var(--accent); text-decoration: none; }
.mod-body a:hover { text-decoration: underline; color: var(--accent-h); }
.mod-body code {
    background: var(--bg-1);
    border: 1px solid var(--border-h);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #d4a84b;
}
.mod-body pre {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 14px 0;
}
.mod-body pre code { background: none; border: none; padding: 0; color: #c0bbb6; }
.mod-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 14px 0;
    padding: 8px 16px;
    color: var(--text-2);
    background: var(--bg-2);
    border-radius: 0 6px 6px 0;
}
.mod-body ul, .mod-body ol { padding-left: 24px; margin: 0 0 12px; }
.mod-body li { margin-bottom: 5px; }
.mod-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.mod-body table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.mod-body th, .mod-body td { border: 1px solid var(--border-h); padding: 8px 14px; }
.mod-body th { background: var(--bg-2); color: var(--text-1); font-weight: 900; }
.mod-body tr:nth-child(even) td { background: var(--bg-1); }

/* =====================================================
   VERSIONS SECTION
   ===================================================== */
.mv-section { margin-bottom: 40px; }
.mv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.mv-header .mod-section-title { margin: 0; border: none; padding: 0; }
.mv-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mv-gv-wrap { display: flex; gap: 4px; align-items: center; }

.mv-select {
    background: var(--bg-2);
    border: 1px solid var(--border-h);
    border-radius: 6px;
    color: var(--text-1);
    font-size: 12px;
    font-family: JL, sans-serif;
    font-weight: 900;
    padding: 6px 10px;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
}
.mv-select:focus, .mv-select:hover { border-color: var(--accent); }
.mv-select option { background: #181818; color: #fff; }

.mv-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 6px;
    border: 1px solid var(--border-h);
    background: transparent;
    color: var(--text-3);
    font-size: 12px;
    font-family: JL, sans-serif;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.mv-toggle-btn:hover { border-color: var(--accent); color: var(--text-1); }
.mv-toggle-btn.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); font-weight: 900; }

/* Version row */
.mv-row {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,2fr) 100px auto;
    align-items: center;
    gap: 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 7px;
    transition: border-color .15s, background .15s;
}
.mv-row:hover { border-color: var(--border-h); background: var(--bg-3); }
.mv-row.mv-featured { border-color: rgba(255,152,0,.25); }

.mv-row-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mv-vnum {
    font-family: NSB, sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mv-vname { font-size: 12px; font-weight: 900; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-row-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mv-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-3);
}
.mv-row-meta .fa { margin-right: 3px; }
.mv-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mv-extra-files { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.mv-extra-link { font-size: 11px; color: var(--text-3); text-decoration: none; transition: color .15s; }
.mv-extra-link:hover { color: var(--accent); }
.mv-filesize { font-size: 11px; opacity: .6; }
.mv-empty { text-align: center; color: var(--text-3); padding: 48px 0; font-size: 14px; }

/* Download button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-family: NSB, sans-serif;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, box-shadow .15s;
}
.btn-download:hover {
    background: var(--accent-h);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(255,152,0,.3);
}

/* Version type badges */
.version-type {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
}
.version-type.release { background: rgba(122,170,122,.1); color: #7aaa7a; border: 1px solid rgba(122,170,122,.25); }
.version-type.beta    { background: rgba(204,136,68,.1); color: #cc8844; border: 1px solid rgba(204,136,68,.25); }
.version-type.alpha   { background: rgba(204,85,85,.1); color: #cc5555; border: 1px solid rgba(204,85,85,.25); }

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 820px) {
    .mods-page { padding: 0 12px 60px; }
    .mods-layout { flex-direction: column; gap: 0; }
    .mods-sidebar { width: 100%; position: static; display: none; margin-bottom: 16px; }
    .mods-sidebar.mods-sidebar-open { display: block; }
    .mods-sidebar-close {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 10px 0;
        background: none;
        border: none;
        color: var(--text-2);
        font-size: 14px;
        cursor: pointer;
        margin-bottom: 6px;
        font-family: JL, sans-serif;
    }
    .mods-filter-toggle { display: inline-flex; }
    .mods-page-banner { min-height: 210px; padding: 44px 16px 38px; }
    .mods-banner-label { font-size: 40px; }
    .mods-page-title { font-size: 14px; }
    .mods-grid { grid-template-columns: 1fr; gap: 10px; }
    .mod-hero { flex-direction: column; padding: 18px; }
    .mod-hero-title { font-size: 22px; }
    .mod-stats { gap: 12px; }
    .mv-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px; }
    .mv-row-meta { align-items: flex-start; }
    .mv-header { flex-direction: column; align-items: flex-start; }
    .mv-filters { width: 100%; }
    .mv-select { flex: 1; }
    .mod-tabs { gap: 0; }
    .mod-tab { padding: 10px 14px; font-size: 13px; }
    .mod-gallery-grid { grid-template-columns: 1fr 1fr; }
    .mod-actions { flex-wrap: wrap; }
}

/* =====================================================
   TABS
   ===================================================== */
.mod-tabs {
    display: flex;
    gap: 4px;
    margin: 24px 0 0;
    border-bottom: 2px solid var(--border);
}
.mod-tab {
    padding: 12px 22px;
    background: transparent;
    border: none;
    color: var(--text-2);
    font-size: 14px;
    font-family: JL, sans-serif;
    font-weight: 900;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.mod-tab:hover { color: var(--text-1); }
.mod-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.mod-tab-count {
    font-size: 11px;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
}

.mod-tab-content { display: none; padding-top: 20px; }
.mod-tab-content.active { display: block; }

/* =====================================================
   LIKE & FAVORITE BUTTONS
   ===================================================== */
.mod-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.mod-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text-2);
    font-size: 13px;
    font-family: JL, sans-serif;
    font-weight: 900;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.mod-action-btn:hover {
    background: var(--bg-3);
    border-color: var(--border-h);
    color: var(--text-1);
}
.mod-action-btn.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}
.mod-like-btn i, .mod-fav-btn i { font-size: 14px; }

/* =====================================================
   DESCRIPTION TAB
   ===================================================== */
.mod-desc-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}
.mod-desc-text {
    color: var(--text-1);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.mod-desc-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.mod-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mod-detail-label {
    color: var(--text-3);
    font-size: 13px;
    min-width: 120px;
}
.mod-detail-label i { width: 16px; text-align: center; margin-right: 4px; }
.mod-detail-value {
    color: var(--text-1);
    font-size: 13px;
}
.mod-authors { margin-top: 16px; }
.mod-authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.mod-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-1);
}
.mod-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* =====================================================
   GALLERY
   ===================================================== */
.mod-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.mod-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: border-color .15s;
}
.mod-gallery-item:hover { border-color: var(--accent); }
.mod-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.mod-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: rgba(0,0,0,.7);
    color: var(--text-1);
    font-size: 12px;
}

/* ---- Lightbox ---- */
.mod-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
}
.mod-lightbox.active { display: flex; }
.mod-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}
.mod-lightbox-close,
.mod-lightbox-prev,
.mod-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.mod-lightbox-close:hover,
.mod-lightbox-prev:hover,
.mod-lightbox-next:hover { background: rgba(255,255,255,.2); }
.mod-lightbox-close { top: 20px; right: 20px; }
.mod-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.mod-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =====================================================
   CATALOG LIKES
   ===================================================== */
.mod-card-likes {
    color: var(--accent);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
}

/* =====================================================
   CATALOG HEART (favorite) BUTTON ON CARDS
   ===================================================== */
.mod-card-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.mod-card-wrap .mod-card {
    height: 100%;
}
.mod-card-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
    padding: 0;
}
.mod-card-heart svg {
    fill: rgba(255,255,255,.5);
    transition: fill .2s, transform .2s;
}
.mod-card-heart:hover {
    background: rgba(0,0,0,.65);
    transform: scale(1.1);
}
.mod-card-heart:hover svg {
    fill: rgba(255,255,255,.8);
}
.mod-card-heart.active svg {
    fill: #e53935;
}
.mod-card-heart.active:hover svg {
    fill: #ff5252;
}
