@font-face {
    font-family: 'PTSans';
    src: url('/assets/fonts/PTSans.woff');
}

@font-face {
    font-family: 'BlackOps';
    src: url('/assets/fonts/BlackOpsOne.woff');
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#0b1220;
    color:white;
    font-family:'PTSans',sans-serif;
    overflow-x:hidden;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at 20% 20%, rgba(87,183,255,0.12), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(0,255,180,0.08), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(87,183,255,0.08), transparent 30%);
    z-index:-1;
    animation:backgroundMove 20s linear infinite alternate;
}

a{
    color:inherit;
    text-decoration:none;
}

header{
    position:sticky;
    top:0;
    z-index:1000;
    backdrop-filter:blur(12px);
    background:rgba(10,15,25,0.75);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.navbar{
    max-width:1400px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 30px;
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo img{
    height:52px;
}

.logo-text{
    font-family:'BlackOps';
    font-size:28px;
    color:#57b7ff;
    letter-spacing:2px;
}

.nav-links{
    display:flex;
    gap:28px;
}

.nav-links a{
    position:relative;
    opacity:0.8;
    transition:0.2s;
}

.nav-links a:hover{
    opacity:1;
    color:#57b7ff;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:2px;
    background:#57b7ff;
    transition:0.25s;
}

.nav-links a:hover::after{
    width:100%;
}

.hero{
    min-height:80vh;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
    padding:40px;
}

.hero img{
    width:min(500px,80%);
    margin-bottom:30px;
    filter:drop-shadow(0 0 30px rgba(87,183,255,0.4));
    animation:floatLogo 5s ease-in-out infinite;
}

.hero h1{
    font-size:58px;
    margin-bottom:20px;
}

.hero p{
    max-width:800px;
    line-height:1.7;
    opacity:0.8;
    font-size:20px;
}

.section{
    max-width:1400px;
    margin:auto;
    padding:80px 30px;
}

.section-title{
    font-size:42px;
    margin-bottom:40px;
    color:#57b7ff;
}

#global-health,
#monitor-updated{
    color:#9fb6d8;
    margin-bottom:24px;
    font-size:18px;
}

.server-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

.server-card{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    background:rgba(255,255,255,0.04);
    background-clip:padding-box;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:24px;
    padding:25px;
    opacity:0;
    animation:fadeUp 0.5s ease forwards;
    transition:transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.server-card::before{
    content:"";
    position:absolute;
    top:-50%;
    left:-50%;
    width:200%;
    height:200%;
    border-radius:inherit;
    pointer-events:none;
    background:
        radial-gradient(
            circle,
            rgba(87,183,255,0.12) 0%,
            transparent 60%
        );
    transform:rotate(25deg);
    opacity:0;
    transition:0.4s;
}

.server-card:hover::before{
    opacity:1;
}

.server-card > *{
    position:relative;
    z-index:1;
}

.server-card:hover{
    transform:translateY(-5px);
    border-color:rgba(87,183,255,0.4);
}

.server-card:nth-child(1){
    animation-delay:0.05s;
}

.server-card:nth-child(2){
    animation-delay:0.10s;
}

.server-card:nth-child(3){
    animation-delay:0.15s;
}

.server-card:nth-child(4){
    animation-delay:0.20s;
}

.server-card h3{
    margin-bottom:10px;
    font-size:28px;
}

.server-card p{
    opacity:0.8;
    line-height:1.6;
}

.server-card small{
    opacity:0.6;
}

.clickable-card{
    cursor:pointer;
}

.clickable-card > *{
    pointer-events:none;
}

.server-address{
    pointer-events:auto;
}

.server-card-image{
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    transform-origin:center;
}

.server-card.server-card-image:hover{
    transform:translateY(-4px) scale(1.02);
    border-color:rgba(87,183,255,0.45);
    box-shadow:0 16px 40px rgba(0,0,0,0.35);
}

.server-status{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    background:#1f2937;
    margin-bottom:18px;
}

.online{
    background:#14532d;
    color:#86efac;
}

.offline{
    background:#450a0a;
    color:#fca5a5;
}

.server-status.online{
    box-shadow:0 0 18px rgba(134,239,172,0.35);
    animation:pulseOnline 2s ease-in-out infinite;
}

.server-status.offline{
    box-shadow:0 0 18px rgba(252,165,165,0.25);
}

.server-source{
    margin-top:18px;
    display:inline-block;
    padding:5px 10px;
    border-radius:999px;
    font-size:13px;
    color:#9fb6d8;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
}

.server-address{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:14px;
    padding:8px 12px;
    border-radius:12px;
    background:rgba(0,0,0,0.25);
    border:1px solid rgba(255,255,255,0.08);
    color:#9fb6d8;
    font-size:14px;
    cursor:pointer;
}

.server-address:hover{
    color:#57b7ff;
    border-color:rgba(87,183,255,0.4);
}

.button{
    display:inline-block;
    padding:12px 18px;
    border-radius:999px;
    background:#57b7ff;
    color:#06101f;
    font-weight:bold;
    transition:0.2s;
}

.button:hover{
    transform:translateY(-2px);
    box-shadow:0 0 24px rgba(87,183,255,0.45);
}

.health-ok{
    color:#86efac !important;
}

.health-warning{
    color:#facc15 !important;
}

.health-danger{
    color:#fca5a5 !important;
}

.news-content{
    color:#9fb6d8;
    line-height:1.6;
}

.news-image{
    max-width:100%;
    border-radius:18px;
    margin:14px 0;
    border:1px solid rgba(255,255,255,0.08);
}

.news-card{
    overflow:hidden;
}

.news-cover{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:14px;
    margin-bottom:14px;
}

.news-card small{
    color:#6e85a5;
}

.server-hero{
    margin-bottom:32px;
}

.server-hero img{
    width:100%;
    max-height:320px;
    object-fit:cover;
    border-radius:24px;
    border:1px solid rgba(255,255,255,0.08);
}

footer{
    text-align:center;
    padding:40px;
    opacity:0.6;
}

@keyframes backgroundMove{
    from{
        transform:translateY(0px) translateX(0px);
    }

    to{
        transform:translateY(-20px) translateX(10px);
    }
}

@keyframes floatLogo{
    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0px);
    }
}

@keyframes fadeUp{
    to{
        opacity:1;
    }
}

@keyframes pulseOnline{
    0%, 100%{
        box-shadow:0 0 12px rgba(134,239,172,0.25);
    }

    50%{
        box-shadow:0 0 24px rgba(134,239,172,0.60);
    }
}

.live-indicator{
    display:flex;
    align-items:center;
    gap:8px;

    padding:8px 14px;

    border-radius:999px;

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.08);

    font-size:13px;

    color:#9fb6d8;
}

.live-dot{
    width:10px;
    height:10px;

    border-radius:50%;

    background:#86efac;

    box-shadow:0 0 16px rgba(134,239,172,0.8);

    animation:pulseLive 1.5s infinite;
}

@keyframes pulseLive{
    0%,100%{
        transform:scale(1);
        opacity:1;
    }

    50%{
        transform:scale(1.3);
        opacity:0.5;
    }
}

.secondary-button{
    margin-bottom:30px;
    background:rgba(255,255,255,0.06);
    color:#9fb6d8;
    border:1px solid rgba(255,255,255,0.08);
}

.secondary-button:hover{
    color:#57b7ff;
    border-color:rgba(87,183,255,0.4);
}

.breadcrumb{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:18px;
    color:#9fb6d8;
    font-size:15px;
}

.breadcrumb a:hover{
    color:#57b7ff;
}

.breadcrumb span{
    opacity:0.75;
}

.ports-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.port-badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(87,183,255,0.10);
    border:1px solid rgba(87,183,255,0.22);
    color:#9fd8ff;
    font-size:13px;
}

@media (max-width: 768px){
    .navbar{
        flex-direction:column;
        gap:16px;
    }

    .nav-links{
        gap:18px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:40px;
    }

    .hero p{
        font-size:17px;
    }

    .section{
        padding:50px 18px;
    }

    .section-title{
        font-size:34px;
    }

    .server-grid{
        grid-template-columns:1fr;
    }

    .server-card{
        padding:22px;
    }

    .live-indicator{
        margin-top:8px;
    }
}

html{
    scroll-behavior:smooth;
}

@media (max-width: 520px){
    .logo img{
        height:42px;
    }

    .logo-text{
        font-size:22px;
    }

    .nav-links{
        gap:12px;
        font-size:14px;
    }

    .live-indicator{
        font-size:12px;
        padding:6px 10px;
    }

    .hero{
        min-height:65vh;
    }
}

header{
    transition:0.25s ease;
}

.navbar{
    transition:0.25s ease;
}

.logo img{
    transition:0.25s ease;
}

header.scrolled{
    background:rgba(10,15,25,0.96);
    box-shadow:0 12px 40px rgba(0,0,0,0.45);
}

header.scrolled .navbar{
    padding:8px 30px;
}

header.scrolled .logo img{
    height:36px;
}

header.scrolled .logo-text{
    font-size:22px;
}

.back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;
    width:46px;
    height:46px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(10,15,25,0.85);
    color:#57b7ff;
    font-size:22px;
    cursor:pointer;
    opacity:0;
    pointer-events:none;
    transition:0.25s;
    z-index:1000;
}

.back-to-top.visible{
    opacity:1;
    pointer-events:auto;
}

.footer-small{
    margin-top:8px;
    color:#9fb6d8;
    opacity:0.65;
    font-size:14px;
}

.forum-latest{
    margin-top:16px;
    font-size:14px;
    color:#9fb6d8;
}

.forum-latest a{
    display:block;
    margin-top:4px;
    color:#57b7ff;
}

#community .server-card{
    min-height:auto;
}

.forum-latest{
    margin:14px 0 18px 0;
}

.community-card{
    min-height:260px;
}

.community-title{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:22px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.community-icon{
    font-size:34px;
    filter:drop-shadow(0 0 12px rgba(87,183,255,0.35));
}

.community-title h3{
    margin:0;
}

.community-card p{
    margin-bottom:24px;
}

.forum-latest{
    margin:0 0 22px 0;
    color:#9fb6d8;
}

.forum-latest small{
    display:block;
    margin-bottom:6px;
    font-size:13px;
    opacity:0.7;
}

.forum-latest a{
    display:block;
    color:#57b7ff;
    font-size:20px;
    font-weight:bold;
}

.server-main-card{
    position:relative;
}

.detail-status{
    position:absolute;
    top:24px;
    right:24px;
}

.connection-label{
    margin-top:22px;
    margin-bottom:4px;
    color:#9fb6d8;
    font-size:14px;
    opacity:0.75;
}

.server-detail-card{
    padding:34px;
    border-color:rgba(87,183,255,0.18);
    box-shadow:inset 0 0 40px rgba(87,183,255,0.03);
}

.server-main-card h3,
.server-detail-card h3{
    font-size:34px;
}

.detail-status{
    position:absolute;
    top:34px;
    right:34px;
}

.detail-separator{
    height:1px;
    background:rgba(255,255,255,0.10);
    margin:28px 0;
}

.detail-row{
    display:flex;
    align-items:center;
    gap:22px;
}

.detail-row span,
.connection-box span{
    display:block;
    color:#9fb6d8;
    margin-bottom:8px;
}

.detail-row strong{
    display:block;
    font-size:28px;
}

.detail-icon{
    width:54px;
    height:54px;
    min-width:54px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:rgba(87,183,255,0.10);
    border:1px solid rgba(87,183,255,0.18);
    filter:drop-shadow(0 0 12px rgba(87,183,255,0.18));
}

.connection-box{
    display:flex;
    gap:22px;
    align-items:center;
    padding:18px;
    border-radius:20px;
    border:1px solid rgba(87,183,255,0.35);
    background:rgba(87,183,255,0.06);
}

.info-row{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px 0;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

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

.info-pill,
.port-badge{
    margin-left:auto;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(87,183,255,0.10);
    border:1px solid rgba(87,183,255,0.22);
    color:#9fd8ff;
    font-size:14px;
}

.info-row .ports-list{
    margin-left:auto;
    margin-top:0;
}

.server-detail-card{
    padding:26px;
}

.server-main-card h3,
.server-detail-card h3{
    font-size:30px;
}

.detail-separator{
    margin:20px 0;
}

.detail-row{
    gap:16px;
}

.detail-icon{
    width:46px;
    height:46px;
    min-width:46px;
    border-radius:14px;
}

.connection-box{
    padding:14px;
    gap:16px;
}

.info-row{
    padding:12px 0;
    gap:12px;
}

.info-pill,
.port-badge{
    padding:6px 12px;
}

.detail-status{
    top:26px;
    right:26px;
}

.info-row > span:nth-child(2){
    white-space:nowrap;
    min-width:130px;
}

.info-row .ports-list{
    justify-content:flex-end;
}
/* Admin games dashboard */

.admin-game-card{
    min-height:360px;
}

.status-online{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(0,255,160,0.14);
    border:1px solid rgba(0,255,160,0.45);
    color:#6fffc9;
    margin-bottom:15px;
    text-transform:uppercase;
    font-size:13px;
    letter-spacing:1px;
}

.status-offline{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.16);
    color:#9fb6d8;
    margin-bottom:15px;
    text-transform:uppercase;
    font-size:13px;
    letter-spacing:1px;
}

.admin-game-card strong{
    color:#57b7ff;
}

.admin-game-card p{
    margin-bottom:8px;
}

.admin-warning{
    color:#ffcc66;
}

.admin-critical{
    color:#ff6b6b;
}

.admin-ok{
    color:#6fffc9;
}


.admin-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:20px 0 25px;
}

.admin-action-output{
    white-space:pre-wrap;
    background:rgba(0,0,0,0.35);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:18px;
    padding:18px;
    margin-bottom:30px;
    color:#d9e8ff;
    max-height:420px;
    overflow:auto;
}


.danger-button{
    border-color:rgba(255,107,107,0.45);
    color:#ff8d8d;
}

.danger-button:hover{
    border-color:rgba(255,107,107,0.85);
    box-shadow:0 0 18px rgba(255,107,107,0.18);
}


.backup-panel{
    margin-top:14px;
}

.backup-panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
    color:#57b7ff;
    font-size:18px;
}

.backup-panel-header span{
    background:rgba(87,183,255,0.10);
    border:1px solid rgba(87,183,255,0.18);
    border-radius:999px;
    padding:6px 12px;
}

.backup-row{
    display:grid;
    grid-template-columns:auto 1fr auto auto;
    gap:14px;
    align-items:center;
    padding:14px;
    margin-bottom:12px;
    border-radius:18px;
    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.08);
}

.backup-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    background:rgba(255,255,255,0.08);
}

.backup-info{
    min-width:0;
}

.backup-info strong{
    display:block;
    margin-bottom:4px;
}

.backup-file{
    display:block;
    color:#d9e8ff;
    opacity:0.82;
    word-break:break-word;
    line-height:1.35;
}

.backup-meta{
    display:flex;
    gap:10px;
    align-items:center;
    color:#9fb6d8;
    white-space:nowrap;
}

.backup-size{
    color:#57b7ff;
    background:rgba(87,183,255,0.10);
    border-radius:999px;
    padding:5px 10px;
    font-weight:bold;
}

.backup-delete{
    border:1px solid rgba(255,107,107,0.45);
    background:rgba(255,107,107,0.06);
    color:#ff8d8d;
    border-radius:999px;
    padding:8px 12px;
    cursor:pointer;
    font-weight:bold;
}

.backup-delete:hover{
    background:rgba(255,107,107,0.16);
    border-color:rgba(255,107,107,0.85);
}

.backup-locked{
    color:#ffcc66;
    white-space:nowrap;
}

.backup-manual .backup-icon{ color:#6fffc9; }
.backup-protected .backup-icon{ color:#ffcc66; }
.backup-nightly .backup-icon{ color:#b58cff; }
.backup-pre .backup-icon{ color:#ffae5c; }
.backup-post .backup-icon{ color:#63e6d9; }

.backup-empty{
    opacity:0.55;
}

@media(max-width:900px){
    .backup-row{
        grid-template-columns:auto 1fr;
    }

    .backup-meta,
    .backup-actions{
        grid-column:2;
    }
}


/* Fix backup rows inside narrow server cards */

.backup-row{
    grid-template-columns:42px 1fr;
    align-items:flex-start;
}

.backup-info{
    grid-column:2;
}

.backup-meta{
    grid-column:2;
    flex-wrap:wrap;
    margin-top:8px;
}

.backup-actions{
    grid-column:2;
    margin-top:8px;
}

.backup-file{
    word-break:normal;
    overflow-wrap:anywhere;
}


.backup-modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.72);
    backdrop-filter:blur(8px);
    z-index:3000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.backup-modal{
    width:min(1100px,96vw);
    max-height:88vh;
    overflow:hidden;
    background:#0f172a;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:26px;
    box-shadow:0 30px 80px rgba(0,0,0,0.45);
}

.backup-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.backup-modal-header h3{
    color:#57b7ff;
    font-size:30px;
}

.backup-modal-header p{
    color:#9fb6d8;
    margin-top:4px;
}

.backup-modal-close{
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.15);
    background:rgba(255,255,255,0.05);
    color:white;
    font-size:30px;
    cursor:pointer;
}

.backup-modal-content{
    padding:24px;
    overflow:auto;
    max-height:calc(88vh - 100px);
}

.backup-modal-section{
    margin-bottom:26px;
}

.backup-modal-section h4{
    display:flex;
    justify-content:space-between;
    color:white;
    font-size:22px;
    margin-bottom:12px;
}

.backup-modal-section h4 span{
    color:#57b7ff;
    background:rgba(87,183,255,0.10);
    border-radius:999px;
    padding:4px 10px;
    font-size:15px;
}

.backup-modal-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:18px;
    align-items:center;
    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    padding:14px;
    margin-bottom:10px;
}

.backup-modal-row strong{
    display:block;
    color:#57b7ff;
    margin-bottom:4px;
}

.backup-modal-row span{
    color:#d9e8ff;
    opacity:0.85;
    overflow-wrap:anywhere;
}

.backup-modal-row-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.backup-modal-empty{
    color:#9fb6d8;
    opacity:0.7;
}

@media(max-width:800px){
    .backup-modal-row{
        grid-template-columns:1fr;
    }

    .backup-modal-row-actions{
        justify-content:flex-start;
        flex-wrap:wrap;
    }
}


.admin-button-disabled,
button:disabled{
    opacity:0.45;
    cursor:not-allowed !important;
    filter:grayscale(0.4);
}

.admin-action-output{
    min-height:54px;
}


.backup-restore .backup-icon{
    color:#ff6b9d;
}

