/* ========================================= */
/* NEW SERVER PANEL & TABLE GRID LAYOUT      */
/* ========================================= */
.new-server-panel-container {
    width: 100%;

    direction: rtl;
	margin-bottom: 20px;
}

.new-server-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    overflow: visible !important;
    width: 100%;
}

.new-thead {
    display: grid;
    padding: 12px 24px;
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    grid-template-columns: 40px 90px minmax(0, 1fr) 176px 138px 105px;
    align-items: center;
    direction: rtl;
}

.new-tr {
    display: grid;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    grid-template-columns: 40px 90px minmax(0, 1fr) 176px 138px 105px;
    column-gap: 10px;
    border-right: 4px solid transparent;
    position: relative;
    background: #ffffff;
    direction: rtl;
    text-decoration: none !important;
}

.new-tr:last-child {
    border-bottom: none;
}

.new-tr:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.new-col-rk {
    font-size: 13px;
    color: #64748b;
    font-weight: 800;
}

.new-col-country {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.new-col-country img {
    width: 22px !important;
    height: 14px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    border: 1px solid #e2e8f0 !important;
}

.new-col-country span {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 700 !important;
}

.new-col-info {
    min-width: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 38px;
    z-index: 5;
    text-align: right;
}

.new-col-name-container {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    justify-content: flex-start;
}

.new-col-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
	direction: ltr;
}

.new-col-gt {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1;
}

.new-col-map {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.new-col-thumb {
    width: 60px;
    height: 35px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.new-col-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-col-map-n {
    font-size: 11px;
    color: #334155;
    font-weight: 700;
}

/* Centered activity column container */
.new-col-pl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    height: 38px;
    gap: 4px;
    z-index: 5;
}

.new-col-pl-n-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: rtl; /* RTL container */
}

.player-num-wrapper {
    display: inline-flex;
    align-items: baseline;
    direction: ltr !important;
}

.new-col-pl-n {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.new-col-pl-n-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1;
}

.new-col-pl-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.new-col-pl-bar {
    width: 80px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.new-col-pl-fill {
    height: 100%;
    border-radius: 2px;
    background: #3f7df0;
}

.new-col-acts {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    z-index: 5;
}

.new-col-acts .col-play {
    padding: 8px 10px !important;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    font-family: 'Heebo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    width: 38px;
}

/* Highlighted Rows gold/blue custom badges and themes */
.new-tr.vip-highlight {
    background: linear-gradient(135deg, #fffcf6 0%, #fff8e5 100%) !important;
    border-right: 4px solid #f59e0b;
}
.new-tr.vip-highlight:hover {
    background: linear-gradient(135deg, #fffaf0 0%, #fff5db 100%) !important;
}
.vip-highlight .new-col-name {
    color: #854d0e !important;
}
.vip-highlight .new-col-gt {
    color: #b45309 !important;
}
.vip-highlight .new-col-pl-fill {
    background: #f59e0b !important;
}

.vip-badge-span {
    font-size: 8px;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 1.5px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(217,119,6,0.15);
    text-transform: uppercase;
	    line-height: normal;
}

.new-tr.bold-highlight {
    background: linear-gradient(135deg, #f8faff 0%, #edf4fe 100%) !important;
    border-right: 4px solid #3f7df0;
}
.new-tr.bold-highlight:hover {
    background: linear-gradient(135deg, #f4f8ff 0%, #e5effe 100%) !important;
}
.bold-highlight .new-col-name {
    color: #1e40af !important;
}
.bold-highlight .new-col-gt {
    color: #2563eb !important;
}

.bold-badge-span {
    font-size: 8px;
    font-weight: 900;
    background: rgba(63, 125, 240, 0.1);
    color: #3f7df0;
    padding: 1.5px 5px;
    border-radius: 4px;
    border: 1px solid rgba(63, 125, 240, 0.2);
	    line-height: normal;
}

.desktop-only {
    display: block;
}

.mobile-header-row, .mobile-label-sub {
    display: none;
}
.mobile-map-info {
    display: block;
}

/* ========================================= */
/* INTEGRATED HEADER TOOLBAR STYLE           */
/* ========================================= */
.srv-filter-integrated {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
    flex-wrap: wrap;
    direction: rtl;
    width: 100%;
}

.srv-filter-games {
    display: flex;
    gap: 4px;
}

.sft-tab {
    padding: 6px 14px;
    font-size: 14px !important;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
    border: none;
    background: transparent;
    font-family: 'Heebo', sans-serif;
}

.sft-tab.active {
    background: #3f7df0;
    color: #ffffff;
}

.sft-tab:hover:not(.active) {
    background: rgba(63, 125, 240, 0.08);
    color: #3f7df0;
}

.srv-filter-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.srv-search-box-live {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    height: 36px;
    width: 250px;
    padding: 0 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.srv-search-box-live input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 100%;
    padding-right: 20px;
    font-family: 'Heebo', sans-serif;
    color: #334155;
    direction: rtl;
}

.srv-search-box-live i {
    position: absolute;
    right: 14px;
    color: #64748b;
    font-size: 13px;
}

.srv-control-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Heebo', sans-serif;
    transition: all 0.2s;
    box-sizing: border-box;
}

.srv-control-btn.sort-only-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
}

.srv-control-btn:hover, .srv-search-box-live:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ========================================= */
/* SECTION TITLE STYLE                       */
/* ========================================= */
.section-title {
    font-size: 17px;
    font-weight: 500;
    color: #39424f;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    font-family: 'Heebo', sans-serif;
}

/* ========================================= */
/* HOVER EFFECTS FOR BUTTONS AND ROW HOVER   */
/* ========================================= */
.new-tr:hover .play-srv-btn {
    background: #3f7df0 !important;
    color: #ffffff !important;
    border-color: #3f7df0 !important;
    box-shadow: 0 4px 10px rgba(63, 125, 240, 0.2) !important;
}
.new-tr.vip-highlight:hover .play-srv-btn {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25) !important;
}
.new-tr.bold-highlight:hover .play-srv-btn {
    background: #3f7df0 !important;
    border-color: #3f7df0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(63, 125, 240, 0.25) !important;
}

.col-play {
    transition: all 0.2s ease !important;
}
.col-play:hover {
    transform: translateY(-2px);
}
.col-play.copy-ip-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* ========================================= */
/* DYNAMIC MAP BACKGROUND FOR TR ROWS        */
/* ========================================= */
.new-tr {
    position: relative;
    overflow: hidden;
}
.new-tr.vip-highlight::after, .new-tr.bold-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    background-image: var(--row-bg);
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.new-tr.vip-highlight::after {
    opacity: 0.15;
}
.new-tr.bold-highlight::after {
    opacity: 0.1;
}
.new-col-rk, .new-col-country, .new-col-info, .new-col-map, .new-col-pl, .new-col-acts {
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .new-tr.vip-highlight::after, .new-tr.bold-highlight::after {
        width: 100% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
        opacity: 0.04 !important;
    }
}

/* ========================================= */
/* CONNECTED PAGINATION FOOTER STYLE         */
/* ========================================= */
#ajax-pagination-container.pages {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}

.gtg-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    direction: rtl;
}

.gtg-pagination-status {
    font-size: 13.5px;
    color: #64748b;
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
    text-align: right;
}

.gtg-pagination-status strong {
    color: #0f172a;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
}

.gtg-pagination-links {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

#ajax-pagination-container.pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    color: #475569;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: 'Heebo', sans-serif;
}

#ajax-pagination-container.pages a:hover {
    background-color: #3f7df0 !important;
    border-color: #3f7df0 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(63, 125, 240, 0.15), 0 2px 4px -1px rgba(63, 125, 240, 0.1);
}

#ajax-pagination-container.pages a.selected {
    background-color: #3f7df0 !important;
    border-color: #3f7df0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(63, 125, 240, 0.2), 0 2px 4px -1px rgba(63, 125, 240, 0.1);
}

@media (max-width: 600px) {
    .gtg-pagination-inner {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .gtg-pagination-status {
        text-align: center;
    }
    .gtg-pagination-links {
        justify-content: center;
    }
}

/* Adherence to fonts and sizes */
.new-thead div, .new-tr div, .new-tr span, .new-server-panel button, .new-server-panel input {
    font-family: 'Heebo', sans-serif !important;
}

/* Bot Badge Style */
.bot-count-badge {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    vertical-align: middle !important;
    direction: ltr !important;
	margin-right: 0 !important;
}

/* Search Box Live & Expanding Transition */
.srv-search-box-live {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: #f1f5f9 !important;
    padding: 2px;
    height: 34px;
    box-sizing: border-box;
    border: none !important;
    transition: all 0.2s;
}
.srv-search-box-live i {
    position: absolute;
    right: 12px;
    color: #64748b;
    font-size: 12px;
}
#srv-search-input {
    border: none !important;
    outline: none !important;
    padding: 6px 32px 6px 12px;
    font-size: 12.5px;
    width: 210px;
    border-radius: 8px;
    background: transparent !important;
    color: #334155;
    transition: width 0.2s ease-in-out;
    direction: rtl;
}
#srv-search-input:focus {
    width: 250px;
}

/* Integrated Toolbar Triggers */
.srv-control-btn {
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    height: 34px;
    box-sizing: border-box;
}
.srv-control-btn:hover, .srv-control-btn.active {
    background: rgba(63, 125, 240, 0.1) !important;
    color: #3f7df0 !important;
}
.srv-control-btn.sort-only-btn {
    width: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
}

/* Premium AJAX Dropdown Menu & Open Animations */
.premium-ajax-dropdown {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 16px -6px rgba(0,0,0,0.04) !important;
    animation: dropFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999 !important;
}
.dd-option-row:hover {
    background: rgba(63, 125, 240, 0.04) !important;
}
.dd-option-row.selected {
    background: rgba(63, 125, 240, 0.08) !important;
}
.premium-ajax-dropdown.align-left {
    left: 0 !important;
    right: auto !important;
	font-family: 'Heebo', sans-serif !important;
}
@keyframes dropFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Prevent row hovers from popping out of the panel container */
#ajax-servers-container {
    overflow: hidden !important;
    width: 100% !important;
}

/* Elevate hovered row above all others in stacking context to keep tooltip visible */
.new-tr:hover {
    z-index: 100 !important;
}

