@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --ui-surface: rgba(15, 23, 42, 0.72);
    --ui-surface-soft: rgba(15, 23, 42, 0.52);
    --ui-border: rgba(148, 163, 184, 0.24);
    --ui-border-strong: rgba(148, 163, 184, 0.45);
    --ui-text: #e2e8f0;
    --ui-text-muted: #94a3b8;
    --ui-accent: #10b981;
    --ui-danger: #ef4444;
}

[x-cloak] {
    display: none !important;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ui-text);
    background: radial-gradient(circle at 0% 0%, #1e293b 0%, #020617 50%, #000 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.uk-article-title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #f8fafc;
}

.tm-container,
.tm-main,
.tm-content {
    width: 100%;
    margin: 0;
}

.tm-grid-block,
.tm-block-bottom,
.tm-content-boxed .tm-content,
.uk-article,
.tm-middle,
.tm-top-block {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
}

.tm-content .uk-article,
.uk-article {
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    border-radius: 1rem;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tm-footer {
    background: transparent;
    border: 0;
    padding: 0;
}

.ui-nav {
    border: 1px solid var(--ui-border);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.72);
    padding: 0.7rem 0.75rem;
    box-shadow: 0 12px 35px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ui-nav-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ui-nav-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem;
}

.ui-nav-toggle {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    transition: 0.2s ease;
}

.ui-nav-toggle:hover {
    border-color: rgba(148, 163, 184, 0.58);
    color: #fff;
}

.ui-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ui-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.44);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    transition: 0.18s ease;
}

.ui-nav-link:hover {
    text-decoration: none;
    color: #fff;
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(30, 41, 59, 0.86);
    transform: translateY(-1px);
}

.ui-nav-link.is-active {
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.18);
}

.ui-nav-link.is-cta {
    color: #ecfeff;
    border-color: rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.26));
}

.tm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ui-toolbar {
    border: 1px solid var(--ui-border);
    border-radius: 0.95rem;
    background: rgba(15, 23, 42, 0.66);
    padding: 0.7rem 0.9rem;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.3);
}

.ui-toolbar-left {
    min-width: 0;
    flex: 1;
    color: #94a3b8;
}

.ui-toolbar-badge {
    display: inline-flex;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    margin-right: 0.5rem;
}

.ui-toolbar-path {
    color: #e2e8f0;
}

.ui-toolbar-right {
    flex-shrink: 0;
}

.ui-toolbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ui-toolbar-chip {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    padding: 0.38rem 0.65rem;
}

.ui-toolbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.38rem 0.65rem;
    transition: 0.18s ease;
}

.ui-toolbar-link:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.45);
}

.ui-toolbar-link.is-primary {
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.56);
    background: rgba(16, 185, 129, 0.18);
}

.ui-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.ui-info-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.62));
    padding: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.ui-info-card::before {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.26), transparent 70%);
    pointer-events: none;
}

.ui-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(16, 185, 129, 0.52);
    background: rgba(16, 185, 129, 0.16);
    color: #5eead4;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.ui-info-title {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #f8fafc;
}

.ui-info-text {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.45;
    font-size: 0.9rem;
}

.ui-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.78rem;
    border: 1px solid rgba(16, 185, 129, 0.58);
    border-radius: 0.7rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(14, 165, 233, 0.22));
    color: #ecfeff;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 0.48rem 0.78rem;
    transition: 0.18s ease;
}

.ui-info-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.08);
}

@media (max-width: 1360px) {
    .ui-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.listing-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.listing-time {
    color: #cbd5e1;
    font-size: 0.95rem;
    text-align: right;
}

.listing-section-title {
    padding-top: 1.15rem;
}

.modal-dialog-offset {
    top: 2%;
}

.server-map-image {
    width: 180px;
    height: 140px;
    object-fit: cover;
}

.server-map-caption {
    width: 180px;
    overflow: hidden;
}

.vote-icon {
    cursor: pointer;
    transition: 0.15s ease;
}

.vote-up {
    color: #10b981;
}

.vote-down {
    color: #ef4444;
}

.vote-star {
    color: #facc15;
}

.vote-icon:hover {
    filter: brightness(1.15);
}

.services-center-list {
    text-align: center;
}

.services-empty {
    text-align: center;
}

.services-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.players-hidden-row {
    display: none;
}

.vote-modal-header {
    overflow: hidden;
}

.vote-modal-form {
    text-align: center;
    cursor: pointer;
}

.text-right-block {
    text-align: right;
}

.panel-center {
    text-align: center;
}

.action-icon {
    cursor: pointer;
}

.tm-sidebar-a .uk-panel-title {
    margin-bottom: 0.55rem;
}

.tm-sidebar-a .uk-nav-side {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.tm-sidebar-a .uk-nav-side > li {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.tm-sidebar-a .uk-nav-side > li:first-child {
    border-top: 0;
}

.tm-sidebar-a .uk-nav-side > li > a {
    display: block;
    padding: 0.55rem 0.7rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.48);
}

.tm-sidebar-a .uk-nav-side > li > a:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(30, 41, 59, 0.8);
}

.tm-sidebar-a .uk-nav-side > li.uk-active > a {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.2);
}

.uk-article-title {
    border-bottom: 0;
    margin-bottom: 0.75rem;
}

a,
.uk-link {
    color: #7dd3fc;
}

a:hover,
.uk-link:hover {
    color: #bae6fd;
}

.tm-toolbar .uk-panel,
.tm-toolbar .uk-subnav {
    margin: 0;
}

.uk-subnav {
    padding-left: 0;
    list-style: none;
}

.uk-subnav.uk-subnav-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem 0;
}

.uk-subnav.uk-subnav-pill > li {
    margin: 0;
}

.uk-subnav.uk-subnav-pill > li > a {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.45);
    color: #cbd5e1;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    transition: 0.18s ease;
}

.uk-subnav.uk-subnav-pill > li > a:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
}

.uk-subnav.uk-subnav-pill > li.uk-active > a {
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.2);
}

.uk-table {
    width: 100%;
    color: #dbeafe;
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    border-radius: 0.75rem;
}

.uk-table thead th {
    background: rgba(15, 23, 42, 0.85);
    color: #bfdbfe;
    border-bottom: 1px solid var(--ui-border-strong);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 0.75rem;
}

.uk-table tbody td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.38);
}

.uk-table tbody tr:last-child td {
    border-bottom: 0;
}

.uk-table-hover tbody tr:hover td {
    background: rgba(30, 41, 59, 0.65);
}

.uk-progress {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.uk-progress .uk-progress-bar {
    background: linear-gradient(90deg, #0ea5e9, #10b981);
}

.country-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(2, 6, 23, 0.45);
}

.listing-address {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
}

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

.listing-progress {
    min-width: 108px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-progress-track {
    flex: 1 1 auto;
    height: 0.56rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.listing-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #10b981);
}

.listing-progress-label {
    flex: 0 0 34px;
    text-align: right;
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.listing-table th:last-child,
.listing-table td:last-child {
    width: 92px;
    min-width: 92px;
    text-align: center;
    white-space: nowrap;
}

.listing-table td:last-child br {
    display: none;
}

.listing-table td:last-child .uk-badge,
.listing-table td:last-child .btn,
.listing-table td:last-child .uk-button,
.listing-table td:last-child a.uk-badge,
.listing-table td:last-child button,
.listing-table td:last-child a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    min-width: 1.85rem;
    height: 1.5rem;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0;
    margin: 0 0.14rem;
    border-radius: 0.58rem;
    vertical-align: middle;
}

.uk-badge {
    background: rgba(14, 165, 233, 0.2);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.uk-alert {
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: rgba(120, 53, 15, 0.34);
    color: #fef3c7;
    border-radius: 0.75rem;
}

.uk-list-line {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.85rem;
    overflow: hidden;
}

.uk-list-line > li {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.65rem 0.75rem;
    background: rgba(15, 23, 42, 0.42);
    margin: 0;
}

.uk-list-line > li:first-child {
    border-top: 0;
}

.uk-thumbnail {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.8rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.55);
}

.uk-thumbnail-caption {
    text-align: center;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.35rem 0.5rem;
}

.uk-panel-box,
.uk-panel-box-secondary {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
}

.uk-form input,
.uk-form select,
.uk-form textarea,
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--ui-border);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    color: #f1f5f9;
    padding: 0.6rem 0.75rem;
}

.uk-form input:focus,
.uk-form select:focus,
.uk-form textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    outline: 0;
}

.btn,
.uk-button,
button[type="submit"],
button.btn-primary {
    border: 1px solid rgba(16, 185, 129, 0.65);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(14, 165, 233, 0.28));
    color: #ecfeff;
    border-radius: 0.75rem;
    padding: 0.55rem 0.95rem;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.btn:hover,
.uk-button:hover,
button[type="submit"]:hover,
button.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.well,
.form-horizontal.well {
    border: 1px solid var(--ui-border);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--ui-surface-soft);
}

.control-group {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.control-group .control-label {
    color: var(--ui-text-muted);
}

.control-group .controls {
    width: 100%;
}

.uk-form-horizontal .uk-form-row {
    margin-bottom: 0.85rem;
}

.uk-form-horizontal .uk-form-label {
    color: #94a3b8;
    font-weight: 600;
}

.uk-form-horizontal .uk-form-controls {
    margin-top: 0.35rem;
}

.nav.nav-tabs.nav-stacked {
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
    border: 1px solid var(--ui-border);
    border-radius: 0.9rem;
    overflow: hidden;
}

.nav.nav-tabs.nav-stacked li + li {
    border-top: 1px solid var(--ui-border);
}

.nav.nav-tabs.nav-stacked a {
    display: block;
    padding: 0.7rem 0.8rem;
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.58);
}

.nav.nav-tabs.nav-stacked a:hover {
    text-decoration: none;
    background: rgba(30, 41, 59, 0.75);
}

.uk-pagination,
ul.pagination {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.uk-pagination li a,
ul.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border-radius: 0.65rem;
    border: 1px solid var(--ui-border);
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
}

.uk-pagination li a:hover,
ul.pagination li a:hover {
    text-decoration: none;
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
}

.uk-modal {
    background: rgba(2, 6, 23, 0.78);
}

.uk-modal-dialog {
    border: 1px solid var(--ui-border);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    box-shadow: 0 15px 45px rgba(2, 6, 23, 0.55);
}

.uk-modal-header {
    font-family: 'Space Grotesk', sans-serif;
    color: #f8fafc;
}

.uk-close {
    color: #cbd5e1;
    opacity: 0.85;
}

.uk-close:hover {
    color: #fff;
    opacity: 1;
}

.uk-modal-footer {
    margin-top: 0.85rem;
}

.page-header h1 {
    margin-bottom: 0.9rem;
    font-size: 1.6rem;
}

#my_servers i.uk-icon-cog,
#my_servers i.uk-icon-trash-o {
    color: #cbd5e1;
    transition: 0.15s ease;
}

#my_servers i.uk-icon-cog:hover {
    color: #5eead4;
}

#my_servers i.uk-icon-trash-o:hover {
    color: #f87171;
}

#my_servers th,
#my_servers td {
    vertical-align: middle;
}

#my_servers th:nth-child(3),
#my_servers td:nth-child(3) {
    white-space: nowrap;
}

#my_servers td:nth-child(3) .cabinet-address {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

#my_servers td:nth-child(3) .cabinet-address .country-flag {
    flex: 0 0 18px;
}

.cabinet-add-panel {
    padding: 0.9rem 1rem;
    text-align: left;
}

.cabinet-add-toggle-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.7rem;
}

.cabinet-toggle-btn {
    white-space: nowrap;
}

.cabinet-add-form {
    display: grid;
    gap: 0.55rem;
}

.cabinet-add-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas:
        "address site action"
        "game contact action";
    gap: 0.55rem;
    align-items: center;
}

.cabinet-field {
    min-width: 0;
}

.cabinet-field-address { grid-area: address; }
.cabinet-field-site { grid-area: site; }
.cabinet-field-game { grid-area: game; }
.cabinet-field-contact { grid-area: contact; }
.cabinet-field-action { grid-area: action; }

.cabinet-field input,
.cabinet-field select {
    width: 100%;
    height: 2.45rem;
}

.cabinet-captcha-box {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
}

.cabinet-add-captcha-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.cabinet-field-action {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    align-self: stretch;
}

.cabinet-field-action .uk-button {
    height: 2.45rem;
    padding: 0 1rem;
    min-width: 8.5rem;
    white-space: nowrap;
}

.top-box,
.custom-top-box {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.62);
    overflow: hidden;
    padding: 0.5rem;
}

.tm-top-a.uk-grid {
    margin-left: -0.45rem;
    margin-right: -0.45rem;
}

.tm-top-a.uk-grid > [class*='uk-width-'] {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    margin-bottom: 0.8rem;
}

#all_servers th,
#all_servers td {
    vertical-align: middle;
}

#all_servers th:nth-child(1),
#all_servers td:nth-child(1) {
    width: 44px;
    text-align: center;
}

#all_servers td:nth-child(1) img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#all_servers th:nth-child(3),
#all_servers td:nth-child(3) {
    white-space: nowrap;
}

#all_servers td:nth-child(3) .home-address {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

#all_servers td:nth-child(3) .home-address .country-flag {
    flex: 0 0 18px;
}

#all_servers th:nth-child(4),
#all_servers td:nth-child(4) {
    width: 46px;
    text-align: center;
}

#all_servers td:nth-child(4) i {
    display: inline-flex;
    width: 18px;
    justify-content: center;
}

#all_servers th:nth-child(7),
#all_servers td:nth-child(7) {
    width: 170px;
    text-align: center;
    white-space: nowrap;
}

#all_servers td:nth-child(7) .uk-badge {
    min-width: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.28rem;
}

#all_servers td:nth-child(7) .vote-icon,
#all_servers td:nth-child(7) .vote-star {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    vertical-align: middle;
}

#all_servers td img,
#all_servers td i {
    vertical-align: middle;
}

.map,
.custom-map {
    position: relative;
    width: 100%;
}

.top-box {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-box:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.35);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.42);
}

.top-card-map {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.top-title-link {
    text-decoration: none;
}

.top-title-link:hover {
    text-decoration: none;
}

.top-long-hostname,
.custom-hostname {
    display: block;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.05rem 0.15rem 0.1rem;
}

.top-image-wrap {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.44);
}

.top-image-wrap .top.server_country {
    position: absolute;
    top: 0.48rem;
    right: 0.5rem;
    left: auto;
    z-index: 7;
    width: 17px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.55);
}

.top-image-wrap .top.server_status {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 7;
}

.top-image,
.custom-map-image {
    width: 100%;
    height: 132px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.35s ease;
}

.top-box:hover .top-image {
    transform: scale(1.04);
}

.map-name,
.custom-map-name {
    display: block;
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.4rem;
    width: auto;
    text-align: center;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.62);
    border-radius: 0.45rem;
    font-size: 0.72rem;
    padding: 0.18rem 0.28rem;
    backdrop-filter: blur(2px);
}

.top-meta {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.62rem;
    background: rgba(148, 163, 184, 0.12);
    color: #dbeafe;
    font-size: 0.76rem;
    line-height: 1.26;
    padding: 0.33rem 0.38rem 0.38rem;
    min-height: 2.8rem;
}

.top-meta a {
    color: #dbeafe;
    text-decoration: none;
}

.top-meta a:hover {
    color: #fff;
    text-decoration: none;
}

.custom-section {
    margin-top: 1rem;
}

.custom-col {
    width: 100%;
}

.custom-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.custom-left-col,
.custom-right-col {
    min-width: 0;
}

.custom-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.58);
    height: 100%;
}

.custom-card-body {
    padding: 0.9rem;
}

.custom-server-status {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
}

.custom-hostname {
    margin-bottom: 0.45rem;
    text-align: left;
}

.custom-server-details {
    margin-top: 0.55rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.4;
}

.custom-server-details a {
    color: #7dd3fc;
}

.custom-server-details a:hover {
    color: #bae6fd;
}

.custom-service-title {
    font-size: 1.22rem;
    margin-bottom: 0.45rem;
}

.custom-service-description {
    color: #cbd5e1;
}

.custom-service-example {
    color: #94a3b8;
    font-size: 0.9rem;
}

.befirst-showcase {
    border-color: rgba(34, 211, 238, 0.26);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.36);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.befirst-service-card {
    position: relative;
    border-color: rgba(34, 211, 238, 0.28);
    background: linear-gradient(160deg, rgba(7, 16, 40, 0.96), rgba(8, 20, 52, 0.88));
    overflow: hidden;
}

.befirst-service-card::before {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 72%);
    pointer-events: none;
}

.befirst-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(250, 204, 21, 0.55);
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.14);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.26rem 0.62rem;
    margin-bottom: 0.6rem;
}

.befirst-title {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    color: #f8fafc;
}

.befirst-description {
    color: #dbeafe;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.befirst-points {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: grid;
    gap: 0.42rem;
}

.befirst-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.35;
}

.befirst-points li i {
    color: #22d3ee;
    margin-top: 0.1rem;
    width: 14px;
    flex-shrink: 0;
}

.befirst-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.befirst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 0.7rem;
    background: rgba(15, 23, 42, 0.58);
    color: #cfe7ff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.45rem 0.78rem;
    transition: 0.18s ease;
}

.befirst-btn:hover {
    text-decoration: none;
    color: #fff;
    border-color: rgba(148, 163, 184, 0.56);
    background: rgba(30, 41, 59, 0.82);
}

.befirst-btn-primary {
    border-color: rgba(16, 185, 129, 0.62);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(14, 165, 233, 0.24));
    color: #ecfeff;
}

.befirst-btn-primary:hover {
    border-color: rgba(34, 211, 238, 0.74);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(14, 165, 233, 0.34));
}

.custom-progress-wrapper {
    width: 100%;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin-top: 0.45rem;
}

.custom-progress-bar {
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #22d3ee);
}

.servers {
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.servers.online {
    background-color: var(--ui-accent);
}

.servers.offline {
    background-color: var(--ui-danger);
}

@media (max-width: 768px) {
    .ui-nav-head {
        display: flex;
    }

    .ui-nav-list {
        display: none;
        margin-top: 0.7rem;
        flex-direction: column;
    }

    .ui-nav-list.is-open {
        display: flex;
    }

    .ui-nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .tm-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .listing-head {
        flex-direction: column;
    }

    .listing-time {
        text-align: left;
    }

    .tm-content .uk-article,
    .uk-article {
        padding: 1rem;
    }

    .control-group {
        grid-template-columns: 1fr;
    }

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

    .cabinet-add-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "address"
            "site"
            "game"
            "contact"
            "action";
    }

    .cabinet-add-captcha-row {
        grid-template-columns: 1fr;
    }

    .cabinet-field-action .uk-button {
        width: 100%;
    }

    .befirst-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .befirst-btn {
        width: 100%;
    }

    .text-right-block {
        text-align: left;
        margin-top: 0.5rem;
    }

    .top-box,
    .custom-top-box {
        padding: 0.35rem;
    }

    .top-image {
        height: 118px;
    }

    .top-meta {
        font-size: 0.73rem;
        padding: 0.28rem 0.32rem 0.32rem;
        min-height: 2.55rem;
    }
}

@media (min-width: 769px) {
    .ui-nav-toggle,
    .ui-nav-title {
        display: none;
    }
}
