/* =========================================================
   RUSTMODS.WIN — V3 MYBB / RUSTMODS ID BRIDGE
   ========================================================= */

.rm-user-menu {
    position: relative;
}

.rm-user-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 36px;

    padding: 0 12px;

    background: #1a1f22;
    color: #d9dddf;

    border: 1px solid #343c41;
    border-radius: 5px;

    cursor: pointer;
}

.rm-user-trigger:hover,
.rm-user-menu:has(.rm-user-dropdown.is-open) .rm-user-trigger {
    background: #22282c;
    border-color: #5d4434;
}

.rm-user-dot {
    width: 7px;
    height: 7px;

    background: #73b67e;

    border-radius: 50%;

    box-shadow: 0 0 9px rgba(115,182,126,.35);
}

.rm-user-trigger-name {
    max-width: 145px;

    overflow: hidden;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm-user-chevron {
    color: #687177;
    font-size: 11px;
}

.rm-user-dropdown {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    z-index: 250;

    display: none;

    width: 230px;

    padding: 8px;

    background: #15191c;

    border: 1px solid #343c41;
    border-radius: 8px;

    box-shadow:
        0 18px 42px rgba(0,0,0,.38);
}

.rm-user-dropdown.is-open {
    display: block;
}

.rm-user-dropdown-head {
    padding: 10px 11px 12px;

    border-bottom: 1px solid #292f33;
}

.rm-user-dropdown-head span {
    display: block;

    color: #626b71;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.rm-user-dropdown-head strong {
    display: block;

    margin-top: 3px;

    color: #edeae5;

    font-size: 12px;
}

.rm-user-dropdown > a {
    display: flex;
    align-items: center;

    min-height: 34px;

    margin-top: 3px;
    padding: 0 10px;

    color: #929a9f;

    border-radius: 5px;

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

.rm-user-dropdown > a:hover {
    background: #20262a;
    color: #e97835;
}

.rm-user-dropdown .rm-user-admin {
    color: #d69a75;
}

.rm-user-dropdown-sep {
    height: 1px;

    margin: 7px 4px 4px;

    background: #292f33;
}

.rm-user-dropdown .rm-user-logout {
    color: #b8746a;
}

.rm-user-dropdown .rm-user-logout:hover {
    background: rgba(190,81,67,.08);
    color: #e38a7e;
}


/* Real account bridge */

.rm-auth-bridge-state {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 28px;

    color: #697177;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.rm-auth-bridge-state i {
    width: 7px;
    height: 7px;

    background: #73b67e;

    border-radius: 50%;

    box-shadow: 0 0 10px rgba(115,182,126,.35);
}

.rm-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.rm-login-options .rm-check-row {
    grid-column: auto;

    margin: 0;
}

.rm-login-options > a {
    color: #d37b49;

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

.rm-login-options > a:hover {
    color: #ef8a50;
}

.rm-signed-in-card {
    margin-top: 26px;
    padding: 18px 20px;

    background: #111518;

    border: 1px solid #30373c;
    border-radius: 7px;
}

.rm-signed-in-card span {
    display: block;

    color: #626b71;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.rm-signed-in-card strong {
    display: block;

    margin-top: 5px;

    color: #edf0ec;

    font-size: 20px;
}

.rm-signed-in-card small {
    display: block;

    margin-top: 8px;

    color: #5f686e;

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

.rm-auth-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;
}

.rm-register-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 28px;
}

.rm-register-flow div {
    padding: 14px;

    background: #111518;

    border: 1px solid #2d3438;
    border-radius: 6px;
}

.rm-register-flow span {
    display: block;

    color: #a85b32;

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

.rm-register-flow strong {
    display: block;

    margin-top: 5px;

    color: #969ea3;

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

@media (max-width: 650px) {
    .rm-user-trigger-name {
        max-width: 95px;
    }

    .rm-user-dropdown {
        right: -4px;
        width: 220px;
    }

    .rm-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .rm-register-flow {
        grid-template-columns: 1fr;
    }
}
