body{
    background:
        radial-gradient(circle at 20% 10%, rgba(0,195,255,0.08), transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(255,0,80,0.08), transparent 25%),
        linear-gradient(180deg,#020617 0%,#050b18 100%);
    color:#ffffff;
    font-family:Arial, Helvetica, sans-serif;
    margin:0;
}

header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 36px;
    background:rgba(5,11,24,0.92);
    border-bottom:1px solid rgba(255,255,255,0.05);
    position:sticky;
    top:0;
    z-index:999;
    backdrop-filter:blur(10px);
}

.header-left{
    display:flex;
    align-items:center;
    gap:42px;
    flex:1;
    min-width:0;
}

.logo{
    display:flex;
    align-items:center;
    gap:18px;
    font-size:34px;
    font-weight:900;
    color:#ffffff;
    letter-spacing:0.8px;
    text-decoration:none;
}

.logo img{
    height:86px;
    width:auto;
    display:block;
    transition:transform 0.25s ease, filter 0.25s ease;
    filter:drop-shadow(0 0 4px rgba(255,0,60,0.35)) drop-shadow(0 0 6px rgba(0,102,255,0.35));
}

.logo:hover img{
    transform:scale(1.06);
    filter:drop-shadow(0 0 8px rgba(255,0,60,0.75)) drop-shadow(0 0 14px rgba(0,102,255,0.75));
}

nav{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:1;
    flex-wrap:wrap;
    gap:18px;
}

nav a{
    position:relative;
    text-decoration:none;
    color:#e5e7eb;
    font-weight:800;
    font-size:19px;
    transition:all 0.22s ease;
    padding:10px 14px;
    border-radius:12px;
    text-shadow:0 0 8px rgba(255,255,255,0.08);
}

nav a:hover{
    color:#4da3ff;
    background:linear-gradient(135deg, rgba(77,163,255,0.22) 0%, rgba(0,195,255,0.18) 100%);
    box-shadow:
        0 0 14px rgba(77,163,255,0.35),
        0 0 30px rgba(0,195,255,0.20),
        inset 0 0 12px rgba(255,255,255,0.06);
    transform:translateY(-2px) scale(1.04);
    text-shadow:
        0 0 10px rgba(77,163,255,0.35),
        0 0 20px rgba(77,163,255,0.45);
}

nav a::after{
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    bottom:4px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,#4da3ff,#00c3ff);
    transform:scaleX(0);
    transform-origin:center;
    transition:transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow:0 0 10px rgba(77,163,255,0);
}

nav a:hover::after{
    transform:scaleX(1);
    box-shadow:0 0 12px rgba(77,163,255,0.75);
}

nav a.active{
    color:#4da3ff;
    background:linear-gradient(135deg, rgba(77,163,255,0.28) 0%, rgba(0,195,255,0.22) 100%);
    box-shadow:
        0 0 18px rgba(77,163,255,0.42),
        0 0 34px rgba(0,195,255,0.24),
        inset 0 0 14px rgba(255,255,255,0.08);
    transform:translateY(-1px);
    text-shadow:
        0 0 10px rgba(77,163,255,0.45),
        0 0 22px rgba(77,163,255,0.55);
}

nav a.active::after{
    transform:scaleX(1);
    box-shadow:0 0 14px rgba(77,163,255,0.9);
}

nav a.vip{
    color:#73ffb2;
    text-shadow:0 0 8px rgba(115,255,178,0.18);
}

nav a.vip:hover,
nav a.vip.active{
    color:#73ffb2;
    background:linear-gradient(135deg, rgba(115,255,178,0.22) 0%, rgba(28,231,131,0.18) 100%);
    box-shadow:
        0 0 14px rgba(115,255,178,0.35),
        0 0 30px rgba(28,231,131,0.20),
        inset 0 0 12px rgba(255,255,255,0.06);
    text-shadow:
        0 0 10px rgba(115,255,178,0.35),
        0 0 20px rgba(115,255,178,0.45);
}

nav a.vip::after{
    background:linear-gradient(90deg,#73ffb2,#1ce783);
}

nav a.vip:hover::after,
nav a.vip.active::after{
    transform:scaleX(1);
    box-shadow:0 0 14px rgba(115,255,178,0.9);
}

.admin-link{
    position:relative;
    text-decoration:none;
    color:#ff7b7b !important;
    font-weight:800;
    font-size:19px;
    transition:all 0.22s ease;
    padding:10px 14px;
    border-radius:12px;
    text-shadow:0 0 8px rgba(255,123,123,0.18);
}

.admin-link:hover{
    color:#ff7b7b !important;
    background:linear-gradient(135deg, rgba(255,107,107,0.22) 0%, rgba(216,69,69,0.18) 100%);
    box-shadow:
        0 0 14px rgba(255,107,107,0.35),
        0 0 30px rgba(216,69,69,0.20),
        inset 0 0 12px rgba(255,255,255,0.06);
    transform:translateY(-2px) scale(1.04);
    text-shadow:
        0 0 10px rgba(255,107,107,0.35),
        0 0 20px rgba(255,107,107,0.45);
}

.admin-link::after{
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    bottom:4px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,#ff7b7b,#ff4d4d);
    transform:scaleX(0);
    transform-origin:center;
    transition:transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow:0 0 10px rgba(255,107,107,0);
}

.admin-link:hover::after{
    transform:scaleX(1);
    box-shadow:0 0 12px rgba(255,107,107,0.75);
}

.admin-link.active{
    color:#ff7b7b !important;
    background:linear-gradient(135deg, rgba(255,107,107,0.28) 0%, rgba(216,69,69,0.22) 100%);
    box-shadow:
        0 0 18px rgba(255,107,107,0.42),
        0 0 34px rgba(216,69,69,0.24),
        inset 0 0 14px rgba(255,255,255,0.08);
    transform:translateY(-1px);
    text-shadow:
        0 0 10px rgba(255,107,107,0.45),
        0 0 22px rgba(255,107,107,0.55);
}

.admin-link.active::after{
    transform:scaleX(1);
    box-shadow:0 0 14px rgba(255,107,107,0.9);
}

.container{
    max-width:1200px;
    margin:auto;
    padding:40px;
}

h1{
    font-size:48px;
    margin:0 0 12px 0;
    color:#ffffff;
}

h2{
    font-size:34px;
    margin:0 0 18px 0;
    color:#ffffff;
}

h3{
    font-size:22px;
    margin:0 0 10px 0;
    color:#ffffff;
}

.card,
.box{
    background:linear-gradient(180deg,rgba(11,19,37,0.98) 0%,rgba(7,13,27,0.98) 100%);
    border-radius:18px;
    padding:25px;
    margin-bottom:20px;
    border:1px solid rgba(255,255,255,0.05);
    box-shadow:0 10px 30px rgba(0,0,0,0.20);
}

.page-hero{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:24px;
}

.eyebrow{
    font-size:15px;
    letter-spacing:5px;
    color:#4da3ff;
    margin-bottom:16px;
    font-weight:900;
    text-transform:uppercase;
}

.hero-text{
    color:rgba(255,255,255,0.72);
    max-width:760px;
    line-height:1.7;
    margin:0;
}

.section-blue{
    color:#4da3ff !important;
}

.section-green{
    color:#73ffb2 !important;
}

.section-red{
    color:#ff6b6b !important;
}

.server-grid{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:22px;
    margin-bottom:22px;
}

.server-card{
    background:linear-gradient(180deg,rgba(11,24,49,0.98) 0%,rgba(9,19,39,0.98) 100%);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:22px;
    padding:28px;
    box-shadow:0 18px 40px rgba(0,0,0,0.25);
}

.server-status-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.server-status-header h2{
    margin:0;
}

.server-meta{
    display:flex;
    flex-direction:column;
    gap:0;
}

.meta-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.meta-row span{
    display:block;
    color:rgba(255,255,255,0.68);
    font-weight:600;
    min-width:120px;
}

.meta-row strong{
    display:block;
    color:#ffffff;
    text-align:right;
    font-weight:700;
    flex:1;
}

.server-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.server-row:last-child{
    border-bottom:none;
}

.online{
    background:#00ff99;
    color:#02110a;
    padding:6px 14px;
    border-radius:20px;
    font-weight:bold;
    box-shadow:0 0 12px #00ff99;
}

.status-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 18px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    letter-spacing:1px;
    white-space:nowrap;
}

.status-online{
    background:rgba(21,242,138,0.12);
    color:#17ea88;
    border:1px solid rgba(21,242,138,0.25);
    box-shadow:0 0 18px rgba(21,242,138,0.18);
}

.status-offline{
    background:rgba(255,90,90,0.12);
    color:#ff7b7b;
    border:1px solid rgba(255,90,90,0.22);
}

.btn,
.button{
    background:linear-gradient(90deg,#00ff99,#00c3ff);
    padding:12px 18px;
    border-radius:10px;
    text-decoration:none;
    color:#02110a;
    font-weight:bold;
    display:inline-block;
    margin-top:15px;
    border:none;
    transition:0.2s;
    cursor:pointer;
}

.btn:hover,
.button:hover{
    transform:translateY(-2px);
    box-shadow:0 0 20px rgba(0,255,200,0.5);
}

.action-row{
    margin-top:22px;
}

.current-map-title{
    color:#ffffff;
    font-size:20px;
    font-weight:800;
    margin:-6px 0 16px 0;
}

.admin-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.admin-card,
.staff-card{
    background:#0b1325;
    padding:20px;
    border-radius:14px;
    text-align:center;
    border:1px solid rgba(255,255,255,0.05);
    transition:0.2s;
}

.admin-card:hover,
.staff-card:hover{
    transform:translateY(-3px);
    box-shadow:0 0 18px rgba(255,255,255,0.12);
}

.admin-card img{
    width:80px;
    height:80px;
    border-radius:50%;
    margin-bottom:10px;
    border:2px solid #ffffff;
    object-fit:cover;
}

.staff-card h3,
.admin-card h3{
    color:#ff6b6b;
}

.staff-role{
    color:#8ebeff;
    font-weight:700;
    margin-top:6px;
}

.grid-2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.player-row{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.player-row:last-child{
    border-bottom:none;
}

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

.players-table th{
    text-align:left;
    font-size:13px;
    color:#8ebeff;
    letter-spacing:1px;
    padding:14px 12px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.players-table td{
    padding:14px 12px;
    border-bottom:1px solid rgba(255,255,255,0.05);
    color:#eef4ff;
}

.discord-btn{
    background:#5865F2;
    padding:10px 15px;
    border-radius:8px;
    color:#ffffff;
    text-decoration:none;
    font-weight:bold;
    transition:0.2s;
    white-space:nowrap;
    margin-left:24px;
    flex-shrink:0;
}

.discord-btn:hover{
    box-shadow:0 0 15px #5865F2;
    transform:translateY(-1px);
}

.map-preview{
    overflow:hidden;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.06);
    background:#0c1830;
    min-height:260px;
}

.map-preview img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

.map-fallback{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:260px;
    text-align:center;
    padding:20px;
    background:
        radial-gradient(circle at top right, rgba(23,234,136,0.15), transparent 35%),
        radial-gradient(circle at bottom left, rgba(64,150,255,0.14), transparent 35%),
        linear-gradient(135deg,#0b1730 0%,#0a1427 100%);
}

.map-name{
    font-size:34px;
    font-weight:900;
    letter-spacing:1px;
    color:#ffffff;
}

.map-sub{
    margin-top:12px;
    color:rgba(255,255,255,0.58);
    font-size:14px;
}

.news-item{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:16px;
    padding:18px;
    margin-top:16px;
}

.news-item form{
    margin:0;
}

.news-item + .news-item{
    margin-top:14px;
}

.news-date{
    color:#8ebeff;
    font-size:13px;
    font-weight:700;
    letter-spacing:1px;
    margin-top:12px;
}

.list-clean{
    list-style:none;
    padding:0;
    margin:0;
}

.list-clean li{
    padding:16px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
    line-height:1.6;
}

.form-control,
textarea,
input[type="text"],
input[type="password"]{
    width:100%;
    box-sizing:border-box;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    color:#ffffff;
    border-radius:14px;
    padding:14px 16px;
    font-size:16px;
    margin-bottom:14px;
}

textarea{
    min-height:140px;
    resize:vertical;
}

.admin-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 22px 0;
}

.admin-tab{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    color:#ffffff;
    padding:12px 18px;
    border-radius:12px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.admin-tab.active{
    background:linear-gradient(135deg,#1ce783 0%,#11c26d 100%);
    color:#04110a;
    border-color:transparent;
}

.tab-panel{
    display:none;
}

.tab-panel.active{
    display:block;
}

.delete-btn{
    background:linear-gradient(135deg,#ff6868 0%,#d84545 100%) !important;
    color:#ffffff !important;
    box-shadow:none;
}

.note{
    color:rgba(255,255,255,0.65);
    line-height:1.7;
}

.empty-state{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.05);
    color:rgba(255,255,255,0.72);
    border-radius:16px;
    padding:18px;
    line-height:1.6;
}

footer{
    text-align:center;
    padding:34px 20px 50px 20px;
    color:rgba(255,255,255,0.45);
    font-size:15px;
}

.admin-avatar-fallback{
    width:80px;
    height:80px;
    border-radius:50%;
    margin:0 auto 10px auto;
    border:2px solid #ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    font-weight:800;
    color:#ffffff;
    background:linear-gradient(135deg,#0f1b34 0%,#132445 100%);
    box-shadow:0 0 18px rgba(255,255,255,0.10);
}

.home-grid{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:22px;
    align-items:start;
}

.top10-card{
    margin-top:0;
}

.top10-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    margin-bottom:18px;
}

.top10-header h2{
    margin:0;
}

.leaderboard-btn-small{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    border-radius:10px;
    background:linear-gradient(90deg,#00ff99,#00c3ff);
    color:#04110a !important;
    text-decoration:none !important;
    font-weight:800;
    font-size:14px;
    transition:0.2s;
    white-space:nowrap;
}

.leaderboard-btn-small:hover{
    transform:translateY(-2px);
    box-shadow:0 0 18px rgba(0,255,200,0.35);
}

.top10-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.top10-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border-radius:14px;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.05);
    transition:0.2s;
}

.top10-item:hover{
    transform:translateY(-2px);
    border-color:rgba(122,183,255,0.18);
    box-shadow:0 0 20px rgba(0,0,0,0.16);
}

.top10-rank{
    min-width:56px;
    font-weight:900;
    font-size:18px;
    color:#73ffb2;
}

.top10-main{
    flex:1;
}

.top10-name{
    font-size:17px;
    font-weight:800;
    color:#ffffff;
    margin-bottom:6px;
}

.top10-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    color:rgba(255,255,255,0.68);
    font-size:14px;
    line-height:1.5;
}

.leaderboard-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
}

.leaderboard-topbar h2{
    margin:0;
    white-space:nowrap;
}

.leaderboard-search{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    max-width:560px;
    margin:0;
}

.leaderboard-search input[type="text"]{
    margin-bottom:0;
    flex:1;
}

.leaderboard-search .button{
    margin-top:0;
    white-space:nowrap;
}

.leaderboard-table-wrap{
    width:100%;
    overflow-x:auto;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.05);
    background:rgba(255,255,255,0.02);
}

.leaderboard-table{
    width:100%;
    min-width:980px;
    border-collapse:collapse;
}

.leaderboard-table thead th{
    text-align:left;
    padding:16px 14px;
    font-size:13px;
    color:#8ebeff;
    letter-spacing:1px;
    text-transform:uppercase;
    background:rgba(255,255,255,0.03);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.leaderboard-table tbody td{
    padding:16px 14px;
    border-bottom:1px solid rgba(255,255,255,0.05);
    color:#eef4ff;
    font-size:15px;
}

.leaderboard-table tbody tr:hover td{
    background:rgba(255,255,255,0.025);
}

.rank-cell{
    font-weight:800;
    color:#73ffb2 !important;
    white-space:nowrap;
}

.player-cell{
    font-weight:800;
    color:#ffffff !important;
}

@media (max-width: 900px){
    header{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
        padding:16px 18px;
    }

    .header-left{
        width:100%;
        gap:14px;
        align-items:flex-start;
        flex-direction:column;
    }

    .logo{
        font-size:26px;
        gap:12px;
    }

    .logo img{
        height:64px;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        gap:10px 16px;
        width:100%;
    }

    nav a{
        margin:0;
        font-size:15px;
    }

    .discord-btn{
        align-self:flex-start;
    }

    .container{
        width:94%;
        padding:24px 0 40px 0;
    }

    h1{
        font-size:34px;
    }

    h2{
        font-size:24px;
    }

    .server-grid,
    .admin-grid,
    .grid-2,
    .grid-3,
    .home-grid{
        grid-template-columns:1fr;
    }

    .server-row,
    .meta-row{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }

    .meta-row strong{
        text-align:left;
    }

    .leaderboard-topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .leaderboard-search{
        max-width:none;
        width:100%;
        flex-direction:column;
        align-items:stretch;
    }

    .leaderboard-search .button{
        width:100%;
    }

    .top10-header{
        flex-direction:column;
        align-items:flex-start;
    }
}

@media (max-width: 600px){
    body{
        font-size:15px;
    }

    header{
        padding:14px 14px;
    }

    .logo{
        font-size:22px;
    }

    .logo img{
        height:56px;
    }

    nav a{
        font-size:14px;
    }

    .discord-btn{
        font-size:14px;
        padding:9px 12px;
    }

    .card,
    .box,
    .server-card{
        padding:18px;
        border-radius:16px;
    }

    .btn,
    .button{
        width:100%;
        text-align:center;
        box-sizing:border-box;
    }

    .admin-tabs{
        display:flex;
        flex-wrap:wrap;
        gap:8px;
    }

    .admin-tab{
        font-size:14px;
        padding:10px 12px;
    }

    .player-row{
        flex-direction:column;
        gap:4px;
        align-items:flex-start;
    }

    .map-preview,
    .map-preview img,
    .map-fallback{
        min-height:220px;
        height:220px;
    }

    .map-name{
        font-size:28px;
    }
}

.nonsteam-banner img {
    width: 88px;
    height: 31px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,195,255,0.4);
    position: fixed;
    bottom: 10px;
    right: 10px;
}