/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:"Inter",sans-serif;
    background:#020817;
    color:#fff;
}

/* =========================
   BACKGROUND
========================= */

body{
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
}

.bg{
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top,#16386f 0%,#081221 40%,#020817 100%);
}

/* =========================
GRID
========================= */

.grid{

position:absolute;

inset:0;

background-image:

linear-gradient(rgba(0,255,255,.04) 1px,transparent 1px),

linear-gradient(90deg,rgba(0,255,255,.04) 1px,transparent 1px);

background-size:45px 45px;

opacity:.5;

}

/* =========================
Glow
========================= */

.glow{

position:absolute;

border-radius:50%;

filter:blur(90px);

}

.glow1{

width:450px;

height:450px;

background:#008cff44;

left:-180px;

top:-180px;

}

.glow2{

width:350px;

height:350px;

background:#00e5ff33;

right:-120px;

bottom:-120px;

}

/* =========================
Stars
========================= */

.stars{

position:absolute;

inset:0;

background-image:

radial-gradient(#7dd3fc 1px,transparent 1px);

background-size:70px 70px;

opacity:.12;

animation:moveStars 30s linear infinite;

}

@keyframes moveStars{

from{

transform:translateY(0);

}

to{

transform:translateY(70px);

}

}

/* =========================
CARD
========================= */

.container{

position:relative;

width:900px;

max-width:92vw;

padding:40px;

border-radius:30px;

background:rgba(8,18,38,.72);

backdrop-filter:blur(18px);

border:1px solid rgba(255,255,255,.08);

box-shadow:

0 0 60px rgba(0,170,255,.18),

0 30px 80px rgba(0,0,0,.45);

overflow:hidden;

}

.container::before{

content:"";

position:absolute;

left:0;

top:0;

right:0;

height:2px;

background:linear-gradient(90deg,transparent,#00d4ff,transparent);

}

/* =========================
LOGO
========================= */

.logoBox{

display:flex;

justify-content:center;

margin-bottom:15px;

}

.cloudLogo{

width:90px;

height:90px;

display:flex;

justify-content:center;

align-items:center;

border-radius:50%;

background:rgba(0,180,255,.08);

box-shadow:

0 0 30px rgba(0,212,255,.25);

}

.cloudLogo svg{

width:65px;

fill:none;

stroke:#2de2ff;

stroke-width:3;

filter:drop-shadow(0 0 12px #2de2ff);

}

h1{

text-align:center;

font-size:46px;

font-weight:700;

margin-top:15px;

}

h1 span{

color:#28d8ff;

}

#status{

text-align:center;

margin-top:10px;

color:#87dfff;

font-size:20px;

margin-bottom:40px;

}

/* =========================
   SERVER NODES
========================= */

.servers{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:22px;
    margin-bottom:35px;
}

.server{
    position:relative;
    width:145px;
    text-align:center;
    transition:.35s;
    cursor:pointer;
}

.server:hover{
    transform:translateY(-10px);
}

.server-circle{

    width:90px;
    height:90px;

    margin:auto;

    position:relative;

    border-radius:50%;

    background:linear-gradient(180deg,#12345d,#071322);

    display:flex;
    justify-content:center;
    align-items:center;

    border:2px solid rgba(0,220,255,.15);

    box-shadow:
    inset 0 0 20px rgba(255,255,255,.05),
    0 0 25px rgba(0,170,255,.12);

}

/* حلقه نور */

.server-ring{

position:absolute;

inset:-8px;

border-radius:50%;

border:2px solid rgba(0,220,255,.35);

animation:ring 2.2s linear infinite;

}

@keyframes ring{

0%{

transform:scale(.9);

opacity:1;

}

100%{

transform:scale(1.35);

opacity:0;

}

}

/* آیکون */

.server-icon{

width:42px;

height:42px;

display:flex;

justify-content:center;

align-items:center;

z-index:5;

}

.server-icon svg{

width:42px;

height:42px;

stroke:#28d8ff;

fill:none;

stroke-width:2.5;

filter:drop-shadow(0 0 10px #00d5ff);

}

/* کشور */

.flag{

margin-top:16px;

font-size:26px;

}

.country{

margin-top:6px;

font-size:14px;

font-weight:600;

color:#e5f7ff;

}

.ping{

margin-top:8px;

display:inline-block;

padding:5px 12px;

border-radius:30px;

background:rgba(0,170,255,.08);

border:1px solid rgba(0,212,255,.15);

color:#74e4ff;

font-size:13px;

}

/* سرور فعال */

.server.active .server-circle{

border-color:#00e1ff;

box-shadow:

0 0 20px #00d5ff,

0 0 50px rgba(0,212,255,.45);

}

.server.active .server-ring{

border-color:#00ffff;

}

.server.active .ping{

background:#00d5ff;

color:#00131c;

font-weight:bold;

}

/* نور زیر هر سرور */

.server::after{

content:"";

position:absolute;

left:50%;

bottom:58px;

transform:translateX(-50%);

width:60px;

height:8px;

background:#00d5ff;

filter:blur(12px);

opacity:.35;

}

/* =========================
BOTTOM INFO
========================= */

.bottom{

display:flex;

justify-content:space-between;

align-items:center;

margin-top:25px;

}

.latencyBox{

display:flex;

flex-direction:column;

}

.label{

font-size:14px;

color:#8fdcff;

}

.value{

font-size:42px;

font-weight:700;

color:#00e1ff;

text-shadow:0 0 18px cyan;

}

.countBox{

width:90px;

height:90px;

border-radius:50%;

background:linear-gradient(135deg,#00d5ff,#006eff);

display:flex;

justify-content:center;

align-items:center;

box-shadow:

0 0 35px rgba(0,212,255,.45);

}

#count{

font-size:34px;

font-weight:bold;

}

/* =========================
PROGRESS
========================= */

.progress{

margin-top:30px;

height:8px;

background:#10233d;

border-radius:50px;

overflow:hidden;

}

.progressBar{

width:100%;

height:100%;

background:linear-gradient(90deg,#00d5ff,#4f8cff);

border-radius:50px;

}

/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

.servers{

flex-wrap:wrap;

justify-content:center;

}

.server{

width:130px;

margin-bottom:25px;

}

.container{

padding:30px;

}

}

@media(max-width:600px){

h1{

font-size:34px;

}

#status{

font-size:17px;

}

.server{

width:45%;

}

.bottom{

flex-direction:column;

gap:20px;

}

}

#network{

position:fixed;

left:0;

top:0;

width:100%;

height:100%;

pointer-events:none;

z-index:2;

}

.container{

position:relative;

z-index:10;

}

.bg,
.grid,
.glow,
.stars{

z-index:1;

}