/* =========================================================
   RUSTMODS.WIN — V5 GAMING PLATFORM UI
   Inspired by modern game-platform density, not copied.
   ========================================================= */

:root {
    --rm5-bg: #161522;
    --rm5-bg-2: #1b1930;
    --rm5-sidebar: #201d35;
    --rm5-topbar: #19172c;
    --rm5-panel: #26233f;
    --rm5-panel-2: #2d2948;
    --rm5-panel-3: #343052;

    --rm5-line: #3a3657;
    --rm5-line-soft: rgba(255,255,255,.055);

    --rm5-text: #f3f0f5;
    --rm5-text-soft: #aaa5ba;
    --rm5-muted: #74708a;

    --rm5-orange: #e66a2c;
    --rm5-orange-2: #ff7b35;
    --rm5-blue: #4789ff;
    --rm5-pink: #e84286;
    --rm5-green: #6ed782;

    --rm5-sidebar-w: 270px;
    --rm5-topbar-h: 72px;
}


/* RESET OLD LAYOUT */

.rm5-body {
    min-height: 100vh !important;
    padding-left: var(--rm5-sidebar-w) !important;
    padding-top: var(--rm5-topbar-h) !important;

    background:
        radial-gradient(circle at 76% 0%, rgba(230,106,44,.05), transparent 26%),
        linear-gradient(180deg, #171624, #13121d) !important;

    color: var(--rm5-text) !important;
}

.rm5-body::before {
    display: none !important;
}

.rm5-body .rm-site-header,
.rm5-body .rm-header-inner,
.rm5-body .rm-main-nav,
.rm5-body .rm-header-actions {
    display: none !important;
}

.rm5-body .rm-section,
.rm5-body .rm-page-hero,
.rm5-body .rm-account-page {
    margin: 0 !important;
}

.rm-shell {
    width: min(calc(100% - 44px), 1420px) !important;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.rm5-sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    width: var(--rm5-sidebar-w);

    background:
        linear-gradient(180deg, #24203b 0%, #1c1930 100%);

    border-right: 1px solid rgba(255,255,255,.055);

    box-shadow:
        14px 0 40px rgba(5,4,12,.18);
}

.rm5-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 78px;

    padding: 0 22px;

    border-bottom: 1px solid rgba(255,255,255,.05);
}

.rm5-logo,
.rm5-mobile-logo,
.rm5-footer-logo {
    color: #fff !important;

    font-size: 21px;
    line-height: 1;
    font-weight: 950;

    letter-spacing: .45px;
}

.rm5-logo span,
.rm5-mobile-logo span,
.rm5-footer-logo span {
    color: var(--rm5-orange-2);
}

.rm5-sidebar-close {
    display: none;

    width: 34px;
    height: 34px;

    background: #2c2846;

    color: #aaa5ba;

    border: 1px solid #3c375b;
    border-radius: 7px;

    cursor: pointer;
}

.rm5-live-card {
    margin: 18px 16px 10px;
    padding: 15px;

    background:
        linear-gradient(135deg, rgba(232,66,134,.12), rgba(71,137,255,.07)),
        #292441;

    border: 1px solid #44395e;
    border-radius: 10px;
}

.rm5-live-title {
    display: flex;
    align-items: center;

    gap: 8px;
}

.rm5-live-dot {
    width: 9px;
    height: 9px;

    background: var(--rm5-pink);

    border-radius: 50%;

    box-shadow: 0 0 12px rgba(232,66,134,.55);
}

.rm5-live-title strong {
    color: #fff;

    font-size: 12px;
}

.rm5-live-card > small {
    display: block;

    margin-top: 5px;

    color: #9a94ad;

    font-size: 9px;
}

.rm5-live-stats {
    display: flex;

    gap: 8px;

    margin-top: 13px;
}

.rm5-live-stats span {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 9px;

    background: #1e1b31;

    color: #9791a8;

    border: 1px solid #393450;
    border-radius: 6px;

    font-size: 8px;
}

.rm5-live-stats b {
    margin-right: 4px;

    color: #fff;
}

.rm5-discord-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    margin: 10px 16px 8px;
    padding: 0 13px;
    box-sizing: border-box;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(88,101,242,.48);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 20%, rgba(88,101,242,.32), transparent 36%),
        linear-gradient(135deg, rgba(88,101,242,.30), rgba(126,92,255,.14)),
        #201c35;
    box-shadow: 0 10px 26px rgba(5,4,12,.12);
}

.rm5-discord-card:hover {
    transform: translateY(-1px);
    border-color: rgba(119,132,255,.65);
}

.rm5-discord-card span {
    min-width: 0;
}

.rm5-discord-card strong,
.rm5-discord-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm5-discord-card strong {
    color: #fff;
    font-size: 11px;
    line-height: 1.1;
}

.rm5-discord-card small {
    margin-top: 4px;
    color: #bdb7cf;
    font-size: 8px;
    font-weight: 800;
}

.rm5-discord-card b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 7px;
    background: rgba(255,255,255,.08);
    color: #ff9d63;
    font-size: 12px;
}

.rm5-side-nav {
    display: grid;

    gap: 4px;

    padding: 10px 12px;
}

.rm5-side-nav a {
    display: flex;
    align-items: center;

    min-height: 42px;

    gap: 11px;

    padding: 0 12px;

    color: #9f99af !important;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 800;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.rm5-side-nav a:hover {
    background: #2a2644;

    color: #fff !important;

    transform: translateX(2px);
}

.rm5-side-nav a.is-active {
    background:
        linear-gradient(90deg, rgba(230,106,44,.16), rgba(230,106,44,.04));

    color: #fff !important;

    box-shadow:
        inset 3px 0 0 var(--rm5-orange);
}

.rm5-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    color: #8b84a1;

    font-size: 13px;
}

.rm5-side-nav a.is-active .rm5-side-icon {
    color: var(--rm5-orange-2);
}

.rm5-sidebar-section {
    padding: 14px 16px 0;
}

.rm5-sidebar-section-title {
    margin-bottom: 10px;

    color: #625d77;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 1.25px;

    text-transform: uppercase;
}

.rm5-activity-list {
    display: grid;

    gap: 6px;
}

.rm5-activity-item {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 48px;

    padding: 6px 8px;

    background: rgba(255,255,255,.018);

    border-radius: 7px;
}

.rm5-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;

    flex: 0 0 auto;

    border-radius: 50%;

    color: #fff;

    font-size: 9px;
    font-weight: 900;
}

.rm5-avatar-a {
    background: linear-gradient(135deg, #e66a2c, #9e3d15);
}

.rm5-avatar-b {
    background: linear-gradient(135deg, #4789ff, #3946aa);
}

.rm5-avatar-c {
    background: linear-gradient(135deg, #e84286, #8f2c65);
}

.rm5-activity-item strong {
    display: block;

    color: #d9d5e0;

    font-size: 9px;
}

.rm5-activity-item small {
    display: block;

    margin-top: 2px;

    color: #6e687f;

    font-size: 8px;
}

.rm5-sidebar-bottom {
    display: grid;

    gap: 7px;

    margin-top: auto;

    padding: 14px 16px 18px;

    border-top: 1px solid rgba(255,255,255,.045);
}

.rm5-lang-row,
.rm5-admin-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 37px;

    padding: 0 10px;

    background: #27233e;

    color: #918ba3 !important;

    border: 1px solid #393451;
    border-radius: 7px;

    font-size: 8px;
    font-weight: 900;
}

.rm5-lang-row strong {
    color: var(--rm5-orange-2);
}


/* =========================================================
   TOPBAR
   ========================================================= */

.rm5-topbar {
    position: fixed;

    top: 0;
    right: 0;
    left: var(--rm5-sidebar-w);

    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: var(--rm5-topbar-h);

    padding: 0 22px;

    background: rgba(25,23,44,.95);

    border-bottom: 1px solid rgba(255,255,255,.055);

    backdrop-filter: blur(14px);
}

.rm5-topbar-left,
.rm5-topbar-right {
    display: flex;
    align-items: center;

    gap: 10px;
}

.rm5-menu-toggle {
    display: none;

    width: 39px;
    height: 36px;

    padding: 8px;

    background: #27233e;

    border: 1px solid #3a3554;
    border-radius: 7px;

    cursor: pointer;
}

.rm5-menu-toggle span {
    display: block;

    height: 2px;

    margin: 4px 0;

    background: #a9a3b6;

    border-radius: 3px;
}

.rm5-mobile-logo {
    display: none;
}

.rm5-topnav {
    display: flex;
    align-items: center;

    gap: 4px;
}

.rm5-topnav a {
    display: inline-flex;
    align-items: center;

    min-height: 36px;

    padding: 0 11px;

    color: #8f899f !important;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 800;

    transition:
        background .15s ease,
        color .15s ease;
}

.rm5-topnav a:hover {
    background: #25213c;

    color: #fff !important;
}

.rm5-topnav a.is-active {
    background: #2b2745;

    color: #fff !important;
}

.rm5-lang-button,
.rm5-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 36px;

    background: #242039;

    color: #9e98ac !important;

    border: 1px solid #393450;
    border-radius: 7px;

    font-size: 8px;
    font-weight: 900;
}

.rm5-icon-button {
    position: relative;

    cursor: pointer;
}

.rm5-notify-dot {
    position: absolute;

    width: 6px;
    height: 6px;

    top: 7px;
    right: 7px;

    background: var(--rm5-pink);

    border: 2px solid #242039;
    border-radius: 50%;
}

.rm5-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 14px;

    background: var(--rm5-blue);

    color: #fff !important;

    border: 1px solid #6da3ff;
    border-radius: 7px;

    font-size: 9px;
    font-weight: 900;
}

.rm5-user-trigger {
    min-height: 38px !important;

    background: #242039 !important;
    border-color: #3a3554 !important;
}

.rm5-user-dropdown {
    top: calc(100% + 10px) !important;
}


/* =========================================================
   MAIN
   ========================================================= */

.rm5-main {
    padding: 28px 30px 60px;
}

.rm5-featured {
    position: relative;

    min-height: 310px;

    overflow: hidden;

    padding: 34px;

    background:
        linear-gradient(110deg, rgba(93,32,55,.92), rgba(34,31,71,.91)),
        #25213e;

    border: 1px solid #4a3c62;
    border-radius: 14px;

    box-shadow:
        0 18px 42px rgba(5,4,15,.20);
}

.rm5-featured-bg {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(circle at 84% 25%, rgba(71,137,255,.28), transparent 25%),
        radial-gradient(circle at 62% 80%, rgba(232,66,134,.16), transparent 28%),
        linear-gradient(135deg, transparent 55%, rgba(230,106,44,.08));

    pointer-events: none;
}

.rm5-featured::after {
    content: "";

    position: absolute;

    width: 390px;
    height: 390px;

    right: -70px;
    bottom: -180px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;

    box-shadow:
        inset 0 0 0 55px rgba(255,255,255,.025),
        inset 0 0 0 110px rgba(255,255,255,.018);
}

.rm5-featured-content {
    position: relative;

    z-index: 2;

    max-width: 760px;
}

.rm5-eyebrow {
    color: #cfa8bd;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.4px;
}

.rm5-featured h1 {
    margin: 10px 0 0;

    color: #fff;

    font-size: clamp(44px, 5vw, 66px);
    line-height: .98;
    font-weight: 950;

    letter-spacing: -1.8px;
}

.rm5-featured h1 span {
    color: #ff8a4d;
}

.rm5-featured p {
    max-width: 650px;

    margin: 16px 0 0;

    color: #c7c1d0;

    font-size: 13px;
    line-height: 1.65;
}

.rm5-featured-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 23px;
}

.rm5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 17px;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .3px;
}

.rm5-btn-primary {
    background: linear-gradient(135deg, #e66a2c, #be4a1d);

    color: #fff !important;

    border: 1px solid #f07b3b;

    box-shadow: 0 8px 22px rgba(230,106,44,.15);
}

.rm5-btn-secondary {
    background: rgba(19,17,33,.36);

    color: #ded9e5 !important;

    border: 1px solid rgba(255,255,255,.14);
}

.rm5-featured-stats {
    position: absolute;

    right: 28px;
    bottom: 24px;

    z-index: 3;

    display: flex;

    gap: 8px;
}

.rm5-featured-stats div {
    min-width: 102px;

    padding: 11px 13px;

    background: rgba(24,21,43,.58);

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

    backdrop-filter: blur(8px);
}

.rm5-featured-stats span {
    display: block;

    color: #fff;

    font-size: 17px;
    font-weight: 950;
}

.rm5-featured-stats small {
    color: #8f899f;

    font-size: 7px;
    font-weight: 800;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.rm5-section {
    margin-top: 34px;
}

.rm5-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.rm5-section-head span {
    color: var(--rm5-pink);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.rm5-section-head h2 {
    margin: 4px 0 0;

    color: #f1eef4;

    font-size: 22px;
    font-weight: 900;
}

.rm5-section-head > a {
    color: #8d87a0 !important;

    font-size: 8px;
    font-weight: 800;
}

.rm5-section-head > a:hover {
    color: #fff !important;
}


/* =========================================================
   RESOURCES
   ========================================================= */

.rm5-resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);

    gap: 14px;
}

.rm5-resource-hero,
.rm5-small-resource,
.rm5-server-card,
.rm5-community-card {
    background: var(--rm5-panel);

    border: 1px solid var(--rm5-line);
    border-radius: 10px;

    box-shadow:
        0 10px 24px rgba(5,4,15,.10);
}

.rm5-resource-hero {
    overflow: hidden;
}

.rm5-resource-art {
    position: relative;

    min-height: 230px;

    overflow: hidden;
}

.rm5-resource-art-main {
    background:
        radial-gradient(circle at 75% 28%, rgba(255,255,255,.18), transparent 20%),
        linear-gradient(135deg, #e83f87, #993365 45%, #483063 100%);
}

.rm5-resource-art.has-cover {
    min-height: 288px;
    background-size: cover;
    background-position: center;
}

.rm5-resource-art.has-cover .rm5-art-badge {
    background: rgba(18,14,32,.72);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 10px 24px rgba(5,4,15,.25);
}

.rm5-art-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 2;

    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 8px;

    background: rgba(19,17,33,.48);

    color: #fff;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;

    font-size: 7px;
    font-weight: 900;
}

.rm5-art-shape {
    position: absolute;

    border-radius: 22px;

    transform: rotate(-14deg);
}

.rm5-art-shape-a {
    width: 190px;
    height: 120px;

    right: 16%;
    top: 55px;

    background:
        linear-gradient(145deg, #333044, #171621);

    border: 1px solid rgba(255,255,255,.14);

    box-shadow: 0 18px 28px rgba(13,11,23,.28);
}

.rm5-art-shape-b {
    width: 120px;
    height: 82px;

    right: 36%;
    top: 85px;

    background:
        linear-gradient(145deg, #ea7133, #8f3415);

    border: 1px solid rgba(255,255,255,.13);

    box-shadow: 0 15px 22px rgba(13,11,23,.20);

    transform: rotate(10deg);
}

.rm5-resource-body {
    padding: 16px;
}

.rm5-resource-meta {
    display: flex;

    gap: 7px;
}

.rm5-resource-meta span {
    display: inline-flex;
    align-items: center;

    min-height: 22px;

    padding: 0 7px;

    background: #1c1930;

    color: #8b85a0;

    border: 1px solid #393450;
    border-radius: 5px;

    font-size: 7px;
    font-weight: 900;
}

.rm5-resource-meta span:last-child {
    color: #79dc89;
}

.rm5-resource-body h3 {
    margin: 11px 0 0;

    color: #f2eff4;

    font-size: 18px;
}

.rm5-resource-body p {
    margin: 5px 0 0;

    color: #817b91;

    font-size: 9px;
}

.rm5-resource-bottom {
    display: flex;

    gap: 14px;

    margin-top: 14px;

    color: #9c96ab;

    font-size: 8px;
}

.rm5-resource-side {
    display: grid;

    gap: 10px;
}

.rm5-small-resource {
    position: relative;

    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);

    align-items: center;

    overflow: hidden;

    min-height: 108px;
}

.rm5-small-resource.has-cover {
    display: flex;
    align-items: flex-end;
    min-height: 0;
    isolation: isolate;
}

.rm5-small-art {
    height: 100%;
}

.rm5-small-art.has-cover {
    position: absolute;
    inset: 0;
    z-index: -2;

    height: auto;

    background-size: cover;
    background-position: center;
}

.rm5-small-resource.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(180deg, rgba(17,13,31,.08) 0%, rgba(17,13,31,.55) 54%, rgba(17,13,31,.92) 100%),
        radial-gradient(circle at 78% 18%, rgba(255,116,56,.18), transparent 30%);
}

.rm5-small-art-map {
    background:
        radial-gradient(circle at 55% 42%, rgba(255,255,255,.16), transparent 19%),
        linear-gradient(135deg, #4789ff, #27488c);
}

.rm5-small-art-tool {
    background:
        radial-gradient(circle at 55% 42%, rgba(255,255,255,.16), transparent 19%),
        linear-gradient(135deg, #e66a2c, #9e3d15);
}

.rm5-small-art-dev {
    background:
        radial-gradient(circle at 55% 42%, rgba(255,255,255,.16), transparent 19%),
        linear-gradient(135deg, #6ed782, #277345);
}

.rm5-small-resource > div:last-child {
    padding: 10px 13px;
}

.rm5-small-resource.has-cover > div:last-child {
    width: 100%;
    padding: 18px;
}

.rm5-small-resource span {
    color: #77708e;

    font-size: 7px;
    font-weight: 900;
}

.rm5-small-resource.has-cover span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;

    background: rgba(16,12,30,.62);
    color: #eeeaf0;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
}

.rm5-small-resource h3 {
    margin: 4px 0 0;

    color: #e9e6ee;

    font-size: 12px;
}

.rm5-small-resource.has-cover h3 {
    margin-top: 10px;
    max-width: 360px;

    color: #fff;

    font-size: 16px;
    line-height: 1.2;
}

.rm5-small-resource small {
    display: block;

    margin-top: 5px;

    color: #6f697f;

    font-size: 8px;
}

.rm5-small-resource.has-cover small {
    color: #c6becd;
}


/* =========================================================
   SERVER CARDS
   ========================================================= */

.rm5-server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.rm5-server-card {
    overflow: hidden;
}

.rm5-server-cover {
    position: relative;

    min-height: 130px;
}

.rm5-server-cover-a {
    background:
        radial-gradient(circle at 76% 38%, rgba(255,255,255,.14), transparent 23%),
        linear-gradient(135deg, #6e2b22, #2e2333 58%, #20203f);
}

.rm5-server-cover-b {
    background:
        radial-gradient(circle at 76% 38%, rgba(255,255,255,.14), transparent 23%),
        linear-gradient(135deg, #214d66, #25264b);
}

.rm5-server-cover-c {
    background:
        radial-gradient(circle at 76% 38%, rgba(255,255,255,.14), transparent 23%),
        linear-gradient(135deg, #3a6141, #252f35);
}

.rm5-server-online {
    position: absolute;

    top: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 8px;

    background: rgba(16,15,26,.56);

    color: var(--rm5-green);

    border: 1px solid rgba(110,215,130,.22);
    border-radius: 5px;

    font-size: 7px;
    font-weight: 900;
}

.rm5-server-body {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 14px 10px;
}

.rm5-server-body h3 {
    margin: 0;

    color: #ece8f0;

    font-size: 12px;
}

.rm5-server-body p {
    margin: 4px 0 0;

    color: #767083;

    font-size: 8px;
}

.rm5-server-body > strong {
    color: #d9d5e0;

    font-size: 10px;
}

.rm5-server-progress {
    height: 4px;

    margin: 0 14px 13px;

    overflow: hidden;

    background: #1a182b;

    border-radius: 999px;
}

.rm5-server-progress span {
    display: block;

    height: 100%;

    background:
        linear-gradient(90deg, var(--rm5-blue), #6cb5ff);

    border-radius: 999px;
}


/* =========================================================
   COMMUNITY
   ========================================================= */

.rm5-community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.rm5-community-card {
    min-height: 190px;

    padding: 18px;
}

.rm5-community-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: #2f2b4c;

    color: var(--rm5-orange-2);

    border: 1px solid #413b60;
    border-radius: 9px;

    font-size: 15px;
}

.rm5-community-card > span {
    display: block;

    margin-top: 17px;

    color: #77708f;

    font-size: 7px;
    font-weight: 900;
}

.rm5-community-card h3 {
    margin: 5px 0 0;

    color: #eae7ed;

    font-size: 14px;
}

.rm5-community-card p {
    margin: 6px 0 0;

    color: #7b7588;

    font-size: 9px;
    line-height: 1.55;
}

.rm5-community-card a {
    display: inline-block;

    margin-top: 14px;

    color: #a29caf !important;

    font-size: 8px;
    font-weight: 900;
}


/* =========================================================
   GENERIC INNER PAGES
   ========================================================= */

.rm5-body .rm-page-hero {
    padding: 38px 30px 26px !important;

    background:
        linear-gradient(135deg, #2a2442, #211d36) !important;

    border-bottom: 1px solid #35304f !important;
}

.rm5-body .rm-page-hero .rm-shell {
    width: 100% !important;
}

.rm5-body .rm-page-kicker {
    color: var(--rm5-pink) !important;
}

.rm5-body .rm-page-hero h1 {
    margin-top: 5px !important;

    color: #f3f0f5 !important;

    font-size: 34px !important;
}

.rm5-body .rm-page-hero p {
    max-width: 680px !important;

    color: #8e889f !important;

    font-size: 10px !important;
}

.rm5-body .rm-section {
    padding: 26px 30px 50px !important;

    background: transparent !important;
}

.rm5-body .rm-section > .rm-shell {
    width: 100% !important;
}

.rm5-body .rm-module-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 12px !important;
}

.rm5-body .rm-module-card {
    min-height: 190px !important;

    padding: 18px !important;

    background: var(--rm5-panel) !important;

    color: #eeeaf1 !important;

    border: 1px solid var(--rm5-line) !important;
    border-radius: 10px !important;
}

.rm5-body .rm-module-card:nth-child(2),
.rm5-body .rm-module-card:nth-child(3),
.rm5-body .rm-module-card:nth-child(4) {
    background: var(--rm5-panel) !important;
}

.rm5-body .rm-module-card:hover {
    background: var(--rm5-panel-2) !important;

    border-color: #554d76 !important;
}

.rm5-body .rm-module-card > span {
    color: #655f78 !important;
}

.rm5-body .rm-module-card h3 {
    margin-top: 22px !important;

    color: #ece9ef !important;

    font-size: 15px !important;
}

.rm5-body .rm-module-card p {
    color: #797386 !important;

    font-size: 9px !important;
}

.rm5-body .rm-module-tag {
    color: var(--rm5-orange-2) !important;
}


/* =========================================================
   ACCOUNT PAGES
   ========================================================= */

.rm5-body .rm-account-page {
    min-height: calc(100vh - var(--rm5-topbar-h)) !important;

    padding: 34px 30px !important;

    background:
        radial-gradient(circle at 84% 20%, rgba(232,66,134,.07), transparent 24%),
        transparent !important;
}

.rm5-body .rm-account-shell {
    width: min(880px, 100%) !important;
}

.rm5-body .rm-account-card {
    background: var(--rm5-panel) !important;

    border-color: var(--rm5-line) !important;

    border-radius: 12px !important;
}

.rm5-body .rm-account-side {
    background:
        linear-gradient(145deg, #31294b, #211c37) !important;

    border-right: 1px solid #3a3553 !important;
}

.rm5-body .rm-account-form-wrap h1 {
    color: #f2eff4 !important;
}

.rm5-body .rm-account-form-wrap > p,
.rm5-body .rm-account-form label > span,
.rm5-body .rm-account-alt {
    color: #8a8499 !important;
}

.rm5-body .rm-account-form input,
.rm5-body .rm-account-form select {
    background: #1a182b !important;

    color: #eeeaf1 !important;

    border-color: #3a3552 !important;
}


/* =========================================================
   ADMIN
   ========================================================= */

.rm-admin-body {
    background: var(--rm5-bg) !important;

    color: var(--rm5-text) !important;
}

.rm-admin-shell {
    grid-template-columns: 230px minmax(0, 1fr) !important;
}

.rm-admin-sidebar {
    background: #1e1b31 !important;

    border-right: 1px solid #393450 !important;
}

.rm-admin-main {
    background: #161522 !important;
}

.rm-admin-topline h1 {
    color: #f1eef4 !important;
}

.rm-admin-topline p {
    color: #7c768b !important;
}

.rm-admin-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.rm-admin-module,
.rm-admin-module:nth-child(4n+2),
.rm-admin-module:nth-child(4n+3),
.rm-admin-module:nth-child(4n+4) {
    background: var(--rm5-panel) !important;

    color: #ece8f0 !important;

    border: 1px solid var(--rm5-line) !important;
    border-radius: 9px !important;
}

.rm-admin-module:hover {
    background: var(--rm5-panel-2) !important;

    border-color: #544d74 !important;
}

.rm-admin-module p {
    color: #7a7489 !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.rm5-footer {
    margin-top: 40px;

    background: #12111c;

    border-top: 1px solid #29253c;
}

.rm5-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 100px;

    padding: 0 30px;

    gap: 20px;
}

.rm5-footer-logo {
    font-size: 17px;
}

.rm5-footer p {
    margin: 8px 0 0;

    color: #5e596d;

    font-size: 8px;
}

.rm5-footer-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #5e596d;

    font-size: 7px;
    font-weight: 900;
}

.rm5-footer-status span {
    width: 6px;
    height: 6px;

    background: var(--rm5-green);

    border-radius: 50%;

    box-shadow: 0 0 9px rgba(110,215,130,.35);
}


/* =========================================================
   LANGUAGE GATE
   ========================================================= */

.rm5-language-body {
    min-height: 100vh;

    background:
        radial-gradient(circle at 80% 12%, rgba(232,66,134,.12), transparent 22%),
        linear-gradient(135deg, #181525, #211c37) !important;
}

.rm5-language-gate {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 24px;
}

.rm5-language-panel {
    width: min(680px, 100%);

    padding: 34px;

    background: #26223f;

    border: 1px solid #423b60;
    border-radius: 14px;

    box-shadow: 0 25px 70px rgba(6,5,18,.32);
}

.rm5-language-brand {
    color: #fff;

    font-size: 21px;
    font-weight: 950;
}

.rm5-language-brand span {
    color: var(--rm5-orange-2);
}

.rm5-language-kicker {
    display: block;

    margin-top: 28px;

    color: var(--rm5-pink);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 1.3px;
}

.rm5-language-panel h1 {
    margin: 7px 0 0;

    color: #f5f2f7;

    font-size: 40px;
    line-height: 1.05;
}

.rm5-language-panel h1 em {
    color: #9189a8;

    font-style: normal;
}

.rm5-language-panel > p {
    color: #878096;

    font-size: 10px;
}

.rm5-language-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 24px;
}

.rm5-language-options a {
    min-height: 115px;

    padding: 18px;

    background: #302b4b;

    border: 1px solid #463f66;
    border-radius: 9px;
}

.rm5-language-options a:hover {
    background: #373153;
}

.rm5-language-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 25px;

    background: #211e36;

    color: var(--rm5-orange-2);

    border: 1px solid #413b5e;
    border-radius: 5px;

    font-size: 8px;
    font-weight: 900;
}

.rm5-language-options strong {
    display: block;

    margin-top: 14px;

    color: #f1edf4;

    font-size: 15px;
}

.rm5-language-options small {
    display: block;

    margin-top: 4px;

    color: #777084;

    font-size: 8px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {

    .rm5-topnav a:nth-child(5) {
        display: none;
    }

    .rm5-featured-stats {
        display: none;
    }

    .rm5-resource-layout {
        grid-template-columns: 1fr;
    }

    .rm5-resource-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rm5-small-resource {
        grid-template-columns: 1fr;
    }

    .rm5-small-art {
        min-height: 90px;
    }

}


@media (max-width: 950px) {

    :root {
        --rm5-sidebar-w: 0px;
    }

    .rm5-body {
        padding-left: 0 !important;
    }

    .rm5-sidebar {
        width: 270px;

        transform: translateX(-101%);

        transition: transform .2s ease;
    }

    .rm5-sidebar.is-open {
        transform: translateX(0);
    }

    .rm5-sidebar-overlay {
        position: fixed;

        inset: 0;

        z-index: 990;

        display: none;

        background: rgba(8,7,14,.62);

        backdrop-filter: blur(4px);
    }

    .rm5-sidebar-overlay.is-open {
        display: block;
    }

    .rm5-sidebar-close {
        display: block;
    }

    .rm5-topbar {
        left: 0;
    }

    .rm5-menu-toggle,
    .rm5-mobile-logo {
        display: inline-flex;
    }

    .rm5-mobile-logo {
        font-size: 16px;
    }

    .rm5-topnav {
        display: none;
    }

    .rm5-main {
        padding: 20px 18px 45px;
    }

    .rm5-server-grid,
    .rm5-community-grid {
        grid-template-columns: 1fr;
    }

    .rm5-body .rm-page-hero {
        padding: 32px 18px 23px !important;
    }

    .rm5-body .rm-section {
        padding: 20px 18px 40px !important;
    }

    .rm5-body .rm-module-grid {
        grid-template-columns: 1fr !important;
    }

    .rm5-footer-inner {
        padding: 0 18px;
    }

}


@media (max-width: 650px) {

    .rm5-topbar {
        padding: 0 12px;
    }

    .rm5-lang-button,
    .rm5-icon-button {
        display: none;
    }

    .rm5-user-trigger-name {
        max-width: 95px;
    }

    .rm5-featured {
        min-height: 345px;

        padding: 24px 20px;
    }

    .rm5-featured h1 {
        font-size: 42px;
    }

    .rm5-resource-side {
        grid-template-columns: 1fr;
    }

    .rm5-small-resource {
        grid-template-columns: 95px 1fr;
    }

    .rm5-small-art {
        min-height: 100%;
    }

    .rm5-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rm5-language-options {
        grid-template-columns: 1fr;
    }

    .rm5-language-panel {
        padding: 28px 22px;
    }

}


/* RUSTMODS V10.1 — BUNDLED LIVE FRONTEND STYLES */

/* =========================================================
   RUSTMODS V10 — LIVE FRONTEND DATA
   Keeps the existing beta visual language while making DB-backed
   states feel intentional.
   ========================================================= */

.rm10-empty-live{
    margin-top:16px;
    padding:26px;
    border:1px solid rgba(155,142,190,.20);
    border-radius:12px;
    background:linear-gradient(135deg,#231e3a,#1c192f);
}
.rm10-empty-live>span{display:block;color:#e84286;font-size:9px;font-weight:900;letter-spacing:.8px}
.rm10-empty-live>strong{display:block;margin-top:8px;color:#eeeaf0;font-size:18px}
.rm10-empty-live>a{display:inline-flex;margin-top:14px;color:#ff8243;text-decoration:none;font-weight:800}

.rm5-category-card.is-selected{
    box-shadow:0 0 0 2px rgba(255,126,69,.40),0 18px 40px rgba(5,2,15,.22);
}

.rm10-resource-feed{margin-top:28px}
.rm10-live-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}
.rm10-live-section-head>div>span{color:#e84286;font-size:9px;font-weight:900;letter-spacing:.8px}
.rm10-live-section-head h2{margin:5px 0 0;color:#f0edf2}
.rm10-live-section-head>a{color:#aaa2b8;text-decoration:none}

.rm10-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rm10-resource-card{overflow:hidden;background:#211d38;border:1px solid #3d3654;border-radius:12px}
.rm10-resource-card-art{position:relative;min-height:110px;padding:14px;background:linear-gradient(135deg,#39285b,#6a2b73)}
.rm10-resource-card-art.is-map{background:linear-gradient(135deg,#24415c,#265f72)}
.rm10-resource-card-art.is-config{background:linear-gradient(135deg,#3f3530,#76533d)}
.rm10-resource-card-art.is-tool{background:linear-gradient(135deg,#203f48,#286071)}
.rm10-resource-card-art.is-development{background:linear-gradient(135deg,#4b2448,#7a2e66)}
.rm10-resource-card-art>span,.rm10-resource-card-art>b{display:inline-flex;padding:6px 8px;border-radius:999px;background:rgba(15,10,28,.45);color:#fff;font-size:8px}
.rm10-resource-card-art>b{float:right;background:rgba(255,126,69,.20);color:#ff9a67}
.rm10-resource-card-body{padding:14px}
.rm10-resource-card-meta{display:flex;justify-content:space-between;gap:10px;color:#837c90;font-size:8px}
.rm10-resource-card-meta strong{color:#ff985f}
.rm10-resource-card h3{margin:8px 0 5px;color:#f0edf2}
.rm10-resource-card p{min-height:38px;margin:0;color:#9a93a5;line-height:1.5}
.rm10-resource-card-bottom{display:flex;justify-content:space-between;gap:10px;margin-top:13px;padding-top:11px;border-top:1px solid #373149;color:#7f788b;font-size:8px}
.rm10-resource-card-bottom a{color:#ff8243;text-decoration:none}

.rm10-buy-link{color:#ff8243!important;text-decoration:none!important;font-weight:800}

.rm10-partner-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rm10-partner-live-card{display:grid;grid-template-columns:64px 1fr;gap:13px;padding:16px;background:#211d38;border:1px solid #3d3654;border-radius:12px}
.rm10-partner-logo{display:flex;align-items:center;justify-content:center;width:64px;height:64px;overflow:hidden;background:#302947;border:1px solid #473d61;border-radius:12px}
.rm10-partner-logo img{width:100%;height:100%;object-fit:cover}
.rm10-partner-logo span{color:#ff8b52;font-weight:900}
.rm10-partner-live-card>div:last-child>span{color:#e84286;font-size:8px;font-weight:900}
.rm10-partner-live-card h3{margin:5px 0;color:#f0edf2}
.rm10-partner-live-card p{margin:0;color:#918a9c;line-height:1.5}
.rm10-partner-live-card a{display:inline-flex;margin-top:9px;color:#ff8243;text-decoration:none;font-weight:800}
.rm10-live-ad{text-decoration:none!important;color:inherit!important}
.rm10-live-ad .rm52-ad-preview{background-size:cover;background-position:center}

@media(max-width:980px){
    .rm10-resource-grid,.rm10-partner-live-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
    .rm10-resource-grid,.rm10-partner-live-grid{grid-template-columns:1fr}
    .rm10-live-section-head{align-items:flex-start;flex-direction:column}
}


/* =========================================================
   RUSTMODS V10.1 — RESOURCE DETAIL + LIVE HEADER POLISH
   ========================================================= */

.rm10-resource-title-link{
    color:inherit!important;
    text-decoration:none!important;
}
.rm10-resource-title-link:hover{color:#ff8f57!important}

.rm10-resource-detail{
    max-width:1180px;
    margin:26px auto 44px;
    padding:0 22px;
}
.rm10-resource-detail-back{
    display:inline-flex;
    margin-bottom:14px;
    color:#9a93a7;
    text-decoration:none;
    font-weight:750;
}
.rm10-resource-detail-back:hover{color:#ff8a52}
.rm10-resource-detail-grid{
    display:grid;
    grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);
    gap:14px;
}
.rm10-resource-detail-art{
    position:relative;
    min-height:430px;
    padding:24px;
    overflow:hidden;
    border:1px solid #493d63;
    border-radius:16px;
    background:
        radial-gradient(circle at 75% 22%,rgba(255,123,70,.22),transparent 28%),
        radial-gradient(circle at 25% 78%,rgba(232,66,134,.16),transparent 30%),
        linear-gradient(145deg,#2b2147,#1d1932 70%);
}
.rm10-resource-detail-art.is-map{background:radial-gradient(circle at 70% 22%,rgba(80,170,255,.20),transparent 28%),linear-gradient(145deg,#1e3149,#1c2035)}
.rm10-resource-detail-art.is-config{background:radial-gradient(circle at 70% 22%,rgba(255,172,86,.18),transparent 28%),linear-gradient(145deg,#3b302b,#201c2d)}
.rm10-resource-detail-art.is-tool{background:radial-gradient(circle at 70% 22%,rgba(74,223,193,.18),transparent 28%),linear-gradient(145deg,#1d383e,#1a2031)}
.rm10-resource-detail-art>div{display:flex;justify-content:space-between;gap:10px}
.rm10-resource-detail-art>div span,
.rm10-resource-detail-art>div b{
    display:inline-flex;
    padding:7px 9px;
    border-radius:999px;
    background:rgba(12,9,24,.42);
    color:#fff;
    font-size:8px;
    font-weight:900;
    letter-spacing:.6px;
}
.rm10-resource-detail-art>div b{color:#ff9963;background:rgba(255,123,70,.10)}
.rm10-resource-detail-art>strong{
    position:absolute;
    left:24px;
    right:24px;
    bottom:52px;
    color:#fff;
    font-size:29px;
    line-height:1.08;
}
.rm10-resource-detail-art>small{
    position:absolute;
    left:24px;
    bottom:25px;
    color:#aaa3b5;
}
.rm10-resource-detail-body{
    padding:28px;
    background:#211d38;
    border:1px solid #403854;
    border-radius:16px;
}
.rm10-resource-detail-kicker{color:#e84286;font-size:9px;font-weight:950;letter-spacing:.8px}
.rm10-resource-detail-body h1{margin:7px 0 8px;color:#f4f1f5;font-size:34px}
.rm10-resource-detail-lead{margin:0;color:#a09aa9;font-size:15px;line-height:1.6}
.rm10-resource-detail-meta{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    margin-top:21px;
}
.rm10-resource-detail-meta>div{
    padding:12px;
    background:#19162b;
    border:1px solid #373149;
    border-radius:9px;
}
.rm10-resource-detail-meta span{display:block;color:#777181;font-size:7px;text-transform:uppercase}
.rm10-resource-detail-meta strong{display:block;margin-top:5px;color:#eeeaf0;font-size:10px}
.rm10-resource-detail-copy{
    margin-top:20px;
    padding-top:19px;
    border-top:1px solid #373149;
    color:#aaa3b5;
    font-size:13px;
    line-height:1.75;
}
.rm10-resource-detail-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid #373149;
    color:#777181;
    font-size:8px;
}
.rm10-resource-download{
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:0 15px;
    border-radius:8px;
    background:#e66a2c;
    color:#fff!important;
    text-decoration:none!important;
    font-weight:900;
}
.rm10-resource-download:hover{background:#f27839}
.rm10-resource-no-download{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    padding:0 12px;
    background:#19162b;
    border:1px solid #373149;
    border-radius:8px;
    color:#8b8496;
}
.rm10-resource-not-found{max-width:1180px;margin:28px auto}

.rm10-bell-icon{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.rm5-icon-button[data-rm10-icon-ready="1"]{
    color:#aaa3b5;
}
.rm5-icon-button[data-rm10-icon-ready="1"]:hover{
    color:#ef75a5;
}

@media(max-width:860px){
    .rm10-resource-detail-grid{grid-template-columns:1fr}
    .rm10-resource-detail-art{min-height:280px}
    .rm10-resource-detail-meta{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
    .rm10-resource-detail{padding:0 12px}
    .rm10-resource-detail-body{padding:18px}
    .rm10-resource-detail-body h1{font-size:26px}
    .rm10-resource-detail-meta{grid-template-columns:1fr 1fr}
    .rm10-resource-detail-actions{align-items:flex-start;flex-direction:column}
}
