* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", Tahoma, Arial, sans-serif;
    color: #2a2f37;
    background: #dfe2e7;
}

body.legacy-home {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #e5e7eb 0%, #d8dde4 100%);
}

body.legacy-home::before,
body.legacy-home::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100vw;
    min-width: 0;
    max-width: none;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    background-repeat: no-repeat;
    background-size: cover;
    filter: grayscale(1) contrast(0.88);
}

body.legacy-home::before {
    left: 0;
    background-image:
        linear-gradient(90deg, rgba(224, 228, 234, 0.62) 0%, rgba(224, 228, 234, 0.62) 100%),
        url("/public/default2/img/bg.jpg");
    background-position: center top;
}

body.legacy-home::after {
    display: none;
}

.legacy-wrapper {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.legacy-container {
    width: 1160px;
    max-width: calc(100% - 24px);
    margin: 0 auto;
}

.legacy-header {
    background: transparent;
    border-bottom: 0;
    height: auto;
    padding-top: 0;
    margin-bottom: 0 !important;
}

.legacy-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
    background: #e7eaee;
    border: 1px solid #c7ccd4;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding-left: 12px;
    padding-right: 12px;
}

.legacy-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #303744;
    min-width: 240px;
}

.legacy-logo__badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #4f5a6b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #eef1f5;
    letter-spacing: 0.2px;
}

.legacy-logo__text strong {
    display: block;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.legacy-logo__text small {
    display: block;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 2px;
    color: #6c7481;
}

.legacy-nav {
    display: flex;
    gap: 11px;
    flex: 1;
    justify-content: center;
}

.legacy-nav a {
    font-size: 12px;
    color: #3a414e;
    text-decoration: none;
    padding: 4px 3px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.legacy-nav a:hover {
    color: #1f2836;
    border-bottom-color: #7f8793;
}

.legacy-auth {
    min-width: 250px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.legacy-dropdown {
    position: relative;
}

.legacy-dropdown-toggle {
    list-style: none;
    cursor: pointer;
    font-size: 12px;
    color: #303744;
    border: 1px solid #b7bec8;
    padding: 5px 8px;
    background: #f8f9fb;
    min-width: 86px;
    text-align: left;
}

.legacy-dropdown.is-open .legacy-dropdown-menu {
    display: block;
}

.legacy-dropdown-menu {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    width: 190px;
    border: 1px solid #bfc6d0;
    background: #f6f8fb;
    z-index: 50;
}

.legacy-dropdown-menu li a {
    display: block;
    padding: 7px 9px;
    font-size: 12px;
    color: #2f3744;
    text-decoration: none;
    border-bottom: 1px solid #e3e6eb;
}

.legacy-dropdown-menu li:last-child a {
    border-bottom: 0;
}

.legacy-dropdown-menu li a:hover {
    background: #e8edf3;
}

.legacy-logout {
    font-size: 12px;
    color: #2f3744;
    text-decoration: none;
    border: 1px solid #b7bec8;
    padding: 5px 9px;
    background: #f8f9fb;
}

.legacy-hero {
    height: 10px;
    background: transparent;
    border-bottom: 0;
}

.legacy-main {
    padding: 8px 10px 18px;
    background: rgba(224, 228, 235, 0.86);
    border: 1px solid #c0c7d1;
    border-radius: 10px;
}

.legacy-game-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.legacy-game-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2f3744;
    text-decoration: none;
    border: 1px solid #aeb7c4;
    background: #eef2f6;
    padding: 6px 10px;
    border-radius: 7px;
}

.legacy-game-tab span {
    font-weight: 700;
    color: #465264;
}

.legacy-game-tab.active {
    background: #2d3139;
    color: #fff;
    border-color: #2d3139;
}

.legacy-game-tab.active span {
    color: #fff;
}

.legacy-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.legacy-mode-tab {
    font-size: 12px;
    line-height: 1;
    color: #3c4452;
    text-decoration: none;
    border: 1px solid #b9c0ca;
    background: #f0f3f7;
    padding: 7px 11px;
    border-radius: 2px;
}

.legacy-mode-tab.active {
    background: #2d3139;
    color: #fff;
    border-color: #2d3139;
}

.legacy-mode-tab:hover {
    background: #e6ebf2;
}

.legacy-maps {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    align-items: stretch;
}

.legacy-maps-lg,
.legacy-maps-sm {
    background: #2f3035;
    border: 1px solid #8f949d;
    color: #fff;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
}

.legacy-maps-sm {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 214px;
}

.legacy-maps-lg {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 436px;
}

.legacy-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legacy-card-title a {
    color: #fff;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legacy-maps-image {
    display: block;
    height: 168px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legacy-maps-lg .legacy-maps-image {
    height: 220px;
    background: #2a2e36;
}

.legacy-maps-sm .legacy-maps-image {
    height: 107px;
}

.legacy-maps-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.legacy-maps-lg .legacy-maps-image img {
    object-fit: cover;
}

.legacy-maps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 214px;
    justify-content: stretch;
    column-gap: 8px;
    row-gap: 8px;
    align-items: start;
}

.legacy-maps-grid .legacy-card-title {
    font-size: 12px;
    min-height: 34px;
    max-height: 34px;
}

.legacy-maps-sm.is-empty {
    opacity: 0.7;
}

.legacy-maps-sm.is-empty .legacy-card-title {
    color: #d4d7dc;
}

.legacy-server-meta {
    list-style: none;
    margin: 0;
    padding: 7px 9px 8px;
}

.legacy-server-meta li {
    font-size: 12px;
    color: #e8eaec;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legacy-server-meta li:last-child {
    margin-bottom: 0;
}

.legacy-server-meta i {
    color: #66d7de;
    width: 14px;
    margin-right: 4px;
}

.legacy-feature-promo {
    margin: 8px 10px 10px;
    border: 1px solid rgba(125, 229, 255, 0.45);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(40, 54, 79, 0.96), rgba(31, 37, 54, 0.96));
    padding: 10px;
    color: #d9f8ff;
    box-shadow: inset 0 0 0 1px rgba(123, 233, 255, 0.08);
}

.legacy-feature-promo__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}

.legacy-feature-promo__text {
    font-size: 12px;
    line-height: 1.35;
    color: #bdeef9;
}

.legacy-feature-promo__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.legacy-feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.legacy-feature-btn--play {
    color: #082235;
    background: linear-gradient(135deg, #8deaff, #59d3f7);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(79, 194, 229, 0.35);
}

.legacy-feature-btn--copy {
    color: #d8f8ff;
    background: rgba(17, 31, 47, 0.58);
    border-color: rgba(140, 228, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(147, 227, 255, 0.12);
}

.legacy-feature-promo a {
    color: inherit;
    text-decoration: none;
    border-bottom: 0;
}

.legacy-feature-promo a:hover {
    color: inherit;
    border-bottom: 0;
}

.legacy-feature-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    text-decoration: none;
}

.legacy-feature-btn--play:hover {
    color: #041724;
}

.legacy-feature-btn--copy:hover {
    color: #effdff;
}

@media (min-width: 1051px) {
    .legacy-maps-lg {
        height: 436px;
        min-height: 436px;
    }
}

.legacy-search {
    border: 1px solid #c6ccd5;
    background: #e4e8ed;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
}

.legacy-search-row {
    display: grid;
    grid-template-columns: 180px 1fr 140px;
    gap: 10px;
}

.legacy-field label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #38404e;
}

.legacy-field select,
.legacy-field input,
.legacy-field button {
    width: 100%;
    height: 36px;
    border: 1px solid #bcc4cf;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 13px;
}

.legacy-field select,
.legacy-field input {
    background: #bdbfc2;
    color: #2f3744;
}

.legacy-field button {
    background: #eceff3;
    color: #2d3542;
    font-weight: 700;
    cursor: pointer;
}

.legacy-field button:hover {
    background: #e1e6ed;
}

.legacy-table-wrap {
    border: 1px solid #bcc4cf;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.legacy-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.legacy-table thead th {
    background: #2d3139;
    color: #fff;
    padding: 10px 8px;
    font-size: 14px;
    border-right: 0;
}

.legacy-table thead th:last-child {
    border-right: 0;
}

.legacy-table tbody td {
    background: #f3f5f8;
    color: #2a313e;
    border-top: 1px solid #d3d8df;
    padding: 9px 8px;
    font-size: 13px;
    vertical-align: middle;
}

.legacy-table tbody tr:nth-child(even) td {
    background: #edf1f6;
}

.legacy-table tbody tr.has-color-service td {
    background: var(--row-color, #d5b0b3);
}

.legacy-table th:nth-child(1),
.legacy-table td:nth-child(1) {
    width: 46px;
    text-align: center;
}

.legacy-table th:nth-child(3),
.legacy-table td:nth-child(3) {
    width: 245px;
}

.legacy-table th:nth-child(4),
.legacy-table td:nth-child(4),
.legacy-table th:nth-child(5),
.legacy-table td:nth-child(5),
.legacy-table th:nth-child(7),
.legacy-table td:nth-child(7) {
    width: 90px;
    text-align: center;
}

.legacy-server-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    min-width: 0;
}

.legacy-server-name a {
    color: #2a2f38;
    text-decoration: none !important;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legacy-table .address {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.legacy-server-name i {
    color: #677688;
}

.legacy-address {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legacy-address img {
    width: 18px;
    height: 12px;
    border: 1px solid #aab2be;
}

.legacy-map-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.legacy-map-cell img {
    width: 86px;
    height: 48px;
    border: 1px solid #b6bec9;
    object-fit: cover;
}

.legacy-votes i.fa-thumbs-down {
    color: #d35a5a;
}

.legacy-votes i.fa-thumbs-up {
    color: #50ad55;
}

.legacy-votes a {
    text-decoration: none !important;
}

.legacy-vip {
    margin-left: 0;
    font-size: 11px;
    color: #232830;
    font-weight: 700;
}

.legacy-empty {
    text-align: center;
    color: #4c5666;
    font-size: 13px;
}

.legacy-pagination {
    text-align: center;
    margin: 8px 0 12px;
}

.legacy-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.legacy-pagination .page-item {
    list-style: none;
}

.legacy-pagination .page-link {
    min-width: 26px;
    height: 26px;
    border: 1px solid #b7bec8;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #3a4452;
    background: #f2f5f8;
    text-decoration: none;
    padding: 0 8px;
}

.legacy-pagination .page-item.active .page-link {
    background: #282c34;
    border-color: #282c34;
    color: #fff;
}

.legacy-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.legacy-info-left,
.legacy-info-right {
    border: 1px solid #bcc4cf;
    padding: 12px;
    border-radius: 8px;
}

.legacy-info-left {
    background: #f0f2f5;
    box-shadow: inset 0 0 0 2px #d8dde5;
}

.legacy-info-left h3,
.legacy-info-right h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #2f3744;
}

.legacy-info-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legacy-info-left li {
    font-size: 13px;
    margin: 6px 0;
}

.legacy-info-left i {
    color: #566170;
    width: 14px;
}

.legacy-info-right {
    background: #e1e7ef;
}

.legacy-info-inner {
    border: 1px solid #c3ccd8;
    background: #ebf0f6;
    padding: 10px;
    border-radius: 7px;
}

.legacy-info-inner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.legacy-footer {
    background: transparent;
    margin-top: 12px;
    padding: 0 0 14px;
    text-align: center;
}

.legacy-footer .legacy-container {
    border: 1px solid #bcc4cf;
    background: #e4e8ee;
    border-radius: 10px;
    padding: 12px 10px 14px;
}

.legacy-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 11px;
    margin-bottom: 8px;
}

.legacy-footer-links a {
    color: #3a4351;
    text-decoration: none;
    font-size: 12px;
}

.legacy-footer-links a:hover {
    text-decoration: underline;
}

.legacy-copy,
.legacy-dev {
    font-size: 12px;
    color: #3b4553;
    margin-bottom: 4px;
}

.legacy-toggle {
    margin-top: 5px;
}

.legacy-toggle .toggle-blue,
.legacy-toggle .toggle-yellow {
    display: inline-block;
    width: 16px;
    height: 9px;
}

.legacy-toggle .toggle-blue {
    background: #3b74d4;
}

.legacy-toggle .toggle-yellow {
    background: #f2c94c;
}

.modal-preloader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1040;
}

@media (max-width: 1180px) {
    .legacy-nav {
        display: none;
    }

    .legacy-header {
        height: auto;
        padding: 7px 0;
    }

    .legacy-header-row {
        height: auto;
    }
}

@media (max-width: 1050px) {
    .legacy-maps {
        grid-template-columns: 1fr;
    }

    .legacy-maps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legacy-search-row {
        grid-template-columns: 1fr;
    }

    .legacy-info {
        grid-template-columns: 1fr;
    }

    .legacy-add-layout {
        grid-template-columns: 1fr;
    }

    .legacy-add-two {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 780px) {
    .legacy-header-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .legacy-logo {
        min-width: auto;
    }

    .legacy-auth {
        width: 100%;
        justify-content: flex-start;
    }

    .legacy-maps-grid {
        grid-template-columns: 1fr;
    }

    .legacy-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


.legacy-main .container {
    max-width: 100%;
    width: 100%;
    padding-left: 6px;
    padding-right: 6px;
}

.main-content > .page:first-child {
    margin-top: 0;
}

.page {
    background: rgba(236, 240, 246, 0.9);
    border: 1px solid #bcc4cf;
    border-radius: 10px;
    padding: 14px;
    color: #2e3744;
}

.content-title,
.page h1,
.page h2,
.page h3,
.page h4,
.page h5 {
    color: #2f3744;
}

.page .table.table-dark {
    border-radius: 8px;
    overflow: hidden;
}

.page .table.table-dark th,
.page .table.table-dark td {
    vertical-align: middle;
}

.btn,
.form-control,
.form-select,
.list-group-item,
.card {
    border-radius: 8px !important;
}

.server-info .address,
.server-info .players,
.server-info .map,
.server-info .game,
.server-info .status-online,
.server-info .status-offline,
.server-info .created-at,
.server-info .rating-bg {
    color: #fff;
    background: #2e78f0;
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-block;
}

.legacy-add-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    align-items: start;
}

.legacy-add-card {
    background: #edf1f6;
    border: 1px solid #c3cad4;
    border-radius: 10px;
    padding: 14px;
}

.legacy-add-notice {
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid transparent;
}

.legacy-add-notice.notice-success {
    background: #e8f8ef;
    color: #17603a;
    border-color: #98d8b1;
}

.legacy-add-notice.notice-error {
    background: #fdecef;
    color: #8f1e34;
    border-color: #f2b5c2;
}

.legacy-add-notice.notice-warn {
    background: #fff6dd;
    color: #7a5a11;
    border-color: #ecd08a;
}

.legacy-add-grid {
    display: grid;
    gap: 10px;
}

.legacy-add-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #394252;
}

.legacy-add-field .form-control,
.legacy-add-field .input-group-text {
    height: 40px;
    border-radius: 8px;
}

.legacy-add-field .input-group .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    background: #e9edf3;
    color: #5a6472;
}

.legacy-add-field .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.legacy-add-field .form-control,
.legacy-add-field select.form-control,
.legacy-add-field textarea.form-control {
    background: #f4f7fb;
    color: #2d3746;
    border-color: #bbc4d1;
}

.legacy-add-field .form-control::placeholder,
.legacy-add-field textarea.form-control::placeholder {
    color: #8d97a7;
    opacity: 1;
}

.legacy-add-field textarea.form-control {
    min-height: 110px;
    height: auto;
}

.legacy-add-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.legacy-add-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 140px;
    border: 1px dashed #b7bfca;
    border-radius: 8px;
    background: #bdbfc2;
    text-decoration: none;
}

.legacy-add-captcha img {
    display: block;
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

.legacy-add-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.legacy-add-help {
    background: #eef2f8;
    border: 1px solid #c3cad4;
    border-radius: 10px;
    padding: 12px;
}

.legacy-add-help-list {
    margin: 0;
    padding-left: 18px;
    color: #374150;
    font-size: 13px;
}

.legacy-add-help-list li {
    margin-bottom: 6px;
}

.legacy-account-page .container,
.legacy-listing-page .container,
.legacy-pay-page .container {
    max-width: 100%;
}

.legacy-user-card {
    background: #edf1f6;
    border: 1px solid #c3cad4;
    border-radius: 10px;
    padding: 14px;
}

.legacy-user-card--narrow {
    max-width: 760px;
}

.legacy-user-card__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3744;
}

.legacy-form-grid .form-label {
    font-size: 13px;
    color: #465365;
    font-weight: 600;
}

.legacy-form-grid .form-control {
    background: #bdbfc2;
    border-color: #bcc6d3;
    height: 40px;
}

.legacy-profile-grid {
    display: grid;
    gap: 8px;
}

.legacy-profile-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #d6dde7;
    background: #f5f8fc;
    border-radius: 8px;
    padding: 8px 10px;
}

.legacy-profile-key {
    font-size: 13px;
    color: #566274;
    font-weight: 700;
}

.legacy-profile-value {
    font-size: 14px;
    color: #2f3a49;
    min-width: 0;
    word-break: break-word;
}

.legacy-inline-link {
    margin-left: 8px;
    font-size: 12px;
    color: #2a68bd;
    text-decoration: none;
}

.legacy-inline-link:hover {
    text-decoration: underline;
}

.legacy-user-menu {
    background: #edf1f6;
    border: 1px solid #c3cad4;
    border-radius: 10px;
    padding: 8px;
    display: grid;
    gap: 6px;
}

.legacy-user-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border: 1px solid #c9d1dc;
    border-radius: 8px;
    background: #f8fbff;
    color: #2f3b4a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 0 10px;
}

.legacy-user-menu__item i {
    color: #5e6b7d;
    width: 16px;
    text-align: center;
}

.legacy-user-menu__item.is-active {
    background: #2d3139;
    border-color: #2d3139;
    color: #fff;
}

.legacy-user-menu__item.is-active i {
    color: #cfd6df;
}

.legacy-user-menu__item.is-danger {
    color: #9d2f3e;
    border-color: #e5c1c8;
    background: #fff4f6;
}

.legacy-user-menu__item:hover {
    text-decoration: none;
    filter: brightness(0.99);
}

.legacy-user-table-wrap {
    background: #edf1f6;
}

.legacy-user-table .legacy-td-name a {
    color: #2b3848;
    text-decoration: none;
    font-weight: 700;
}

.legacy-user-table .legacy-td-name a:hover {
    text-decoration: underline;
}

.legacy-actions-cell {
    width: 110px;
    white-space: nowrap;
}

.legacy-actions-cell .btn {
    margin-right: 4px;
}

.legacy-divider {
    margin: 14px 0;
    border-top: 1px solid #d1d8e2;
}

.payment-method-card {
    cursor: pointer;
    border-color: #c3cad4 !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

.payment-method-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(32, 49, 77, 0.12);
}

.bg-primary-light {
    background: #eaf3ff !important;
}

.legacy-listing-time {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4e5a6b;
}

.legacy-block-title {
    margin: 10px 0 8px;
    font-size: 22px;
}

.legacy-table-service thead th,
.legacy-pay-table thead th {
    text-align: left;
}

.legacy-table-service-overview th,
.legacy-table-service-overview td {
    vertical-align: middle;
}

.legacy-table-service-overview th:nth-child(1),
.legacy-table-service-overview td:nth-child(1) {
    width: 22%;
}

.legacy-table-service-overview th:nth-child(2),
.legacy-table-service-overview td:nth-child(2) {
    width: 48%;
}

.legacy-table-service-overview th:nth-child(3),
.legacy-table-service-overview td:nth-child(3),
.legacy-table-service-overview th:nth-child(4),
.legacy-table-service-overview td:nth-child(4) {
    width: 15%;
}

.legacy-table-service-overview td:nth-child(1),
.legacy-table-service-overview td:nth-child(2) {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.legacy-table-service-overview tbody tr td {
    background: #f6f8fb;
}

.legacy-table-service-overview tbody tr:nth-child(even) td {
    background: #eef2f7;
}

.legacy-table-service-overview tbody tr:hover td {
    background: #e8edf5;
}

.legacy-service-name {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #2f3541;
    color: #f3f6fb;
    font-weight: 700;
    font-size: 13px;
}

.legacy-table-service tbody td:nth-child(3),
.legacy-table-service tbody td:nth-child(4),
.legacy-table-service tbody td:nth-child(5) {
    text-align: center;
}

.legacy-pay-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
    align-items: center;
}

.legacy-pay-search .form-control {
    height: 40px;
    background: #bdbfc2;
    border-color: #bcc6d3;
}

.legacy-pay-search .btn {
    height: 40px;
}

/* Readability fixes for listing/pay/user tables on light theme */
.legacy-table th,
.legacy-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.legacy-table-service th,
.legacy-table-service td,
.legacy-pay-table th,
.legacy-pay-table td,
.legacy-user-table th,
.legacy-user-table td {
    font-size: 15px;
}

.legacy-table .players,
.legacy-pay-page .players,
.legacy-account-page .players {
    display: inline-block;
    min-width: 46px;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    background: #242b3a !important;
    color: #f0f4ff !important;
    font-weight: 700;
    text-align: center;
}

.legacy-pay-table td:nth-child(4),
.legacy-pay-table td:nth-child(5),
.legacy-pay-table td:nth-child(6) {
    white-space: nowrap;
}

.legacy-pay-table {
    table-layout: auto;
}

.legacy-pay-table th:nth-child(1),
.legacy-pay-table td:nth-child(1) {
    width: 56px;
}

.legacy-pay-table th:nth-child(2),
.legacy-pay-table td:nth-child(2) {
    width: 78px;
}

.legacy-pay-table th:nth-child(4),
.legacy-pay-table td:nth-child(4) {
    width: 220px;
}

.legacy-pay-table th:nth-child(5),
.legacy-pay-table td:nth-child(5) {
    width: 130px;
}

.legacy-pay-table th:nth-child(6),
.legacy-pay-table td:nth-child(6) {
    width: 100px;
}

.legacy-pay-table th:nth-child(7),
.legacy-pay-table td:nth-child(7) {
    width: 140px;
}

.legacy-pay-table th:nth-child(8),
.legacy-pay-table td:nth-child(8) {
    width: 180px;
}

.legacy-pay-address {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legacy-pay-map {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Payment select cards contrast */
.pay-select .card {
    background: #f3f6fa !important;
    border: 1px solid #bcc6d3 !important;
    color: #2f3a49 !important;
}

.pay-select a {
    color: #2f3a49 !important;
    text-decoration: none;
}

.pay-select .card .card-title {
    color: #2d3746 !important;
}

.pay-select .card .card-text {
    color: #556275 !important;
}

.pay-select .card.active {
    border-color: #465368 !important;
    box-shadow: 0 0 0 2px rgba(70, 83, 104, 0.12) !important;
    background: #eef3f9 !important;
}

.server-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #c5ccd6;
}

.server-page-subtitle {
    margin-top: 4px;
    color: #556273;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.server-page-head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.server-action-btn {
    border: 1px solid #b9c2cf;
    border-radius: 8px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.server-action-btn--play {
    color: #0f2f49;
    background: linear-gradient(135deg, #9deaff, #64d6ff);
    border-color: #7dcfe8;
}

.server-action-btn--copy {
    color: #2f3b4a;
    background: #bdbfc2;
}

.server-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 12px;
}

.server-main-col,
.server-side-col {
    min-width: 0;
}

.server-card {
    background: #edf1f6;
    border: 1px solid #c3cad4;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.server-card:last-child {
    margin-bottom: 0;
}

.server-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2f3744;
    margin-bottom: 10px;
}

.server-facts-grid {
    display: grid;
    gap: 8px;
}

.server-fact-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.server-fact-label {
    color: #596575;
    font-size: 13px;
    font-weight: 700;
}

.server-fact-value {
    color: #24303f;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.server-link-inline {
    margin-left: 8px;
    font-size: 12px;
    color: #2a68bd;
    text-decoration: none;
}

.server-link-inline:hover {
    text-decoration: underline;
}

.server-claim-btn {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #2d6ecf;
    border: 1px solid #235bb0;
    border-radius: 8px;
    text-decoration: none;
}

.server-claim-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.05);
}

.server-status-online {
    color: #1d8249;
    font-weight: 700;
}

.server-status-offline {
    color: #bd3d3d;
    font-weight: 700;
}

.server-rating-value {
    font-weight: 700;
    margin: 0 6px;
}

.server-vote {
    text-decoration: none;
}

.server-vote--minus {
    color: #d45b5b;
}

.server-vote--plus {
    color: #4cae57;
}

.server-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.server-services-list li {
    background: #f5f8fc;
    border: 1px solid #d3dae4;
    border-radius: 8px;
    padding: 8px 10px;
    color: #2f3a49;
    font-size: 13px;
    display: grid;
    gap: 3px;
}

.server-services-empty {
    text-align: center;
    color: #677386;
}

.server-comment-form .form-control {
    background: #f6f9fc;
    border-color: #bfcbda;
}

.server-comment-item {
    background: #bdbfc2;
    border: 1px solid #d3dae4;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.server-comment-item:last-child {
    margin-bottom: 0;
}

.server-comment-author {
    font-size: 13px;
    font-weight: 700;
    color: #2f3b4a;
    margin-bottom: 5px;
}

.server-comment-text {
    color: #313d4d;
    font-size: 13px;
    line-height: 1.4;
}

.server-comment-date {
    margin-top: 7px;
    color: #6a7687;
    font-size: 12px;
}

.server-map-wrap {
    border: 1px solid #c5ced9;
    border-radius: 8px;
    overflow: hidden;
    background: #e9edf3;
}

.server-map-wrap img {
    width: 100%;
    display: block;
    height: auto;
}

.server-players-inline {
    min-height: 120px;
}

.server-players-placeholder,
.server-players-unavailable {
    border: 1px dashed #bcc6d3;
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px;
    text-align: center;
    color: #5f6c7f;
    font-size: 13px;
}

.server-players-unavailable {
    background: #f6f8fb;
    color: #7b8594;
}

.server-players-table-wrap {
    border: 1px solid #c6ced8;
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
    background: #f5f8fc;
}

.server-players-table {
    width: 100%;
    border-collapse: collapse;
}

.server-players-table th {
    background: #2d3139;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 7px;
    white-space: nowrap;
}

.server-players-table td {
    background: #f5f8fc;
    border-top: 1px solid #d8dfe8;
    color: #2f3a49;
    font-size: 13px;
    padding: 8px 7px;
}

.server-players-table tbody tr:nth-child(even) td {
    background: #edf2f8;
}

.server-players-table th:nth-child(1),
.server-players-table td:nth-child(1) {
    width: 44px;
    text-align: center;
}

.server-players-table th:nth-child(3),
.server-players-table td:nth-child(3),
.server-players-table th:nth-child(4),
.server-players-table td:nth-child(4) {
    width: 72px;
    text-align: center;
}

.legacy-page-content {
    color: #2f3a49;
    line-height: 1.55;
    font-size: 15px;
}

.legacy-page-content h2,
.legacy-page-content h3 {
    margin-top: 18px;
    margin-bottom: 10px;
    color: #2f3744;
}

.legacy-page-content ul {
    margin: 0 0 14px 18px;
    padding: 0;
}

.legacy-page-content p {
    margin: 0 0 12px;
}

.legacy-dispute-banner {
    margin: 0 0 12px;
    border: 1px solid #ef9aa1;
    background: #ffe9eb;
    border-radius: 10px;
    padding: 10px 12px;
    color: #7d2028;
}

.legacy-dispute-banner strong {
    display: block;
    margin-bottom: 4px;
}

.legacy-dispute-banner ul {
    margin: 0;
    padding-left: 18px;
}

.legacy-dispute-banner a {
    color: #93222c;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 1050px) {
    .server-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .server-page-head {
        flex-direction: column;
    }

    .server-page-head-actions {
        justify-content: flex-start;
    }

    .server-fact-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Auth pages */
.legacy-auth-page .legacy-user-card {
    max-width: 680px;
    margin: 0 auto;
}

.legacy-auth-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3744;
}

.legacy-auth-page .form-label {
    font-size: 13px;
    color: #465365;
    font-weight: 600;
    margin-bottom: 5px;
}

.legacy-auth-page .form-control {
    height: 42px;
    background: #bdbfc2;
    border-color: #bcc6d3;
}

.legacy-auth-page textarea.form-control {
    min-height: 110px;
    height: auto;
}

.legacy-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.legacy-auth-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 140px;
    border: 1px dashed #b7bfca;
    border-radius: 8px;
    background: #bdbfc2;
    text-decoration: none;
}

.legacy-auth-captcha img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    display: block;
}


/* Master page layout fixes */
.legacy-master-page .legacy-master-chart {
    width: 100%;
    min-height: 320px;
}

.legacy-master-page .legacy-master-chart-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3b4d;
}

.legacy-master-page .legacy-table-service-overview {
    table-layout: fixed;
}

.legacy-master-page .legacy-table-service-overview th,
.legacy-master-page .legacy-table-service-overview td {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.legacy-master-page .legacy-table-service-overview th:nth-child(1),
.legacy-master-page .legacy-table-service-overview td:nth-child(1) {
    width: 24%;
    min-width: 220px;
}

.legacy-master-page .legacy-table-service-overview th:nth-child(2),
.legacy-master-page .legacy-table-service-overview td:nth-child(2),
.legacy-master-page .legacy-table-service-overview th:nth-child(3),
.legacy-master-page .legacy-table-service-overview td:nth-child(3),
.legacy-master-page .legacy-table-service-overview th:nth-child(4),
.legacy-master-page .legacy-table-service-overview td:nth-child(4),
.legacy-master-page .legacy-table-service-overview th:nth-child(5),
.legacy-master-page .legacy-table-service-overview td:nth-child(5) {
    width: 11%;
    text-align: center;
}

.legacy-master-page .legacy-table-service-overview th:nth-child(6),
.legacy-master-page .legacy-table-service-overview td:nth-child(6) {
    width: 16%;
    text-align: center;
}

.legacy-master-page .legacy-table-service-overview th:nth-child(7),
.legacy-master-page .legacy-table-service-overview td:nth-child(7) {
    width: 16%;
    text-align: right;
}

.legacy-master-page .legacy-table-service-overview td:nth-child(1) {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}

.legacy-master-page .legacy-table-service-overview a {
    font-weight: 700;
    color: #1f6ed4;
    text-decoration: none;
}

.legacy-master-page .legacy-table-service-overview a:hover {
    text-decoration: underline;
}

@media (max-width: 1199px) {
    .legacy-master-page .legacy-table-service-overview {
        table-layout: auto;
    }

    .legacy-master-page .legacy-table-service-overview td:nth-child(1) {
        font-size: 16px;
    }
}
