:root{
    --bg:#03070c;
    --panel:rgba(7,18,29,.78);
    --panel-strong:rgba(5,15,25,.88);
    --line:#16415e;
    --cyan:#55c9ff;
    --blue:#238fff;
    --green:#25df78;
    --red:#ff3e42;
    --yellow:#ffd22e;
    --text:#eaf6ff;
    --muted:#7691a7;
    --shadow:rgba(0,0,0,.35);
}

/* =========================================================
   RESET
   ========================================================= */

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
    scroll-behavior:smooth;
}

body{
    margin:0;
    min-height:100vh;
    position:relative;
    overflow-x:hidden;
    background:#03070c;
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
}

/* =========================================================
   BACKGROUND
   assets/background.png
   ========================================================= */

body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:0;

    background-image:
        linear-gradient(
            180deg,
            rgba(2,10,18,.48),
            rgba(2,8,14,.68)
        ),
        url("background.png");

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    background-attachment:fixed;

    pointer-events:none;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(18,72,110,.22),
            rgba(3,7,12,.40) 65%,
            rgba(2,5,9,.58) 100%
        );

    pointer-events:none;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.wrap{
    position:relative;
    z-index:1;

    width:min(1600px,calc(100% - 24px));
    margin:12px auto 20px;
}

/* =========================================================
   HEADER
   ========================================================= */

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    padding:16px 18px;

    border:1px solid rgba(85,201,255,.36);
    border-radius:10px;

    background:rgba(5,16,27,.78);

    box-shadow:
        0 8px 30px rgba(0,0,0,.28),
        0 0 28px rgba(0,120,255,.10);

    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}

.brand{
    font-size:23px;
    font-weight:900;
    letter-spacing:1.4px;
    color:#eefaff;
    text-shadow:0 0 14px rgba(85,201,255,.18);
}

.sub{
    margin-top:4px;
    color:var(--muted);
    font-size:10px;
    letter-spacing:1px;
}

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

    color:var(--green);
    letter-spacing:1px;
    white-space:nowrap;
}

.state i{
    width:10px;
    height:10px;

    border-radius:50%;
    background:var(--green);

    box-shadow:
        0 0 8px var(--green),
        0 0 18px var(--green);

    animation:pulse 1.5s infinite;
}

.state i.off{
    background:var(--red);

    box-shadow:
        0 0 8px var(--red),
        0 0 18px var(--red);
}

/* =========================================================
   SEPARATOR
   ========================================================= */

.line{
    height:2px;
    margin:8px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--cyan),
            var(--yellow),
            transparent
        );

    opacity:.85;
}

/* =========================================================
   STATS
   ========================================================= */

.stats{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
}

.stats article{
    min-width:0;

    padding:12px;

    text-align:center;

    background:rgba(6,18,29,.78);

    border:1px solid rgba(85,201,255,.25);
    border-radius:9px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.22);

    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
}

.stats span,
.infoGrid span{
    display:block;

    color:var(--muted);

    font-size:9px;
    letter-spacing:1px;
}

.stats strong{
    display:block;

    margin-top:5px;

    color:var(--cyan);
    font-size:22px;
    font-weight:900;

    text-shadow:0 0 12px rgba(85,201,255,.16);
}

/* =========================================================
   MAIN GRID
   ========================================================= */

.grid{
    display:grid;

    grid-template-columns:
        minmax(0,2fr)
        minmax(260px,.95fr);

    grid-template-rows:
        auto
        auto
        auto;

    grid-template-areas:
        "clients side"
        "live side"
        "history history";

    gap:9px;

    margin-top:9px;
}

/* =========================================================
   CARDS
   ========================================================= */

.card{
    min-width:0;

    padding:12px;

    overflow:hidden;

    background:rgba(5,17,28,.78);

    border:1px solid rgba(85,201,255,.25);
    border-radius:9px;

    box-shadow:
        0 8px 28px rgba(0,0,0,.25),
        inset 0 0 20px rgba(0,120,255,.015);

    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}

.clientsCard{
    grid-area:clients;

    min-height:330px;
}

.livecard{
    grid-area:live;

    min-height:190px;
}

.history{
    grid-area:history;

    min-height:220px;
}

.side{
    grid-area:side;

    min-width:0;

    display:flex;
    flex-direction:column;
    gap:9px;
}

/* =========================================================
   CARD TITLES
   ========================================================= */

.title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;

    margin-bottom:10px;

    color:var(--cyan);

    font-size:11px;
    letter-spacing:.7px;
}

.title b{
    font-weight:900;
}

.title small{
    color:var(--muted);

    font-size:9px;
    font-weight:normal;

    white-space:nowrap;
}

/* =========================================================
   TABLES
   ========================================================= */

.tablewrap{
    width:100%;

    overflow:auto;

    max-height:360px;

    scrollbar-width:thin;
    scrollbar-color:#185477 rgba(0,0,0,.18);
}

table{
    width:100%;

    border-collapse:collapse;

    min-width:720px;
}

th{
    position:sticky;
    top:0;
    z-index:2;

    padding:8px;

    background:rgba(7,28,43,.96);

    color:var(--yellow);

    font-size:9px;
    font-weight:800;
    text-align:left;

    border-bottom:1px solid var(--line);
}

td{
    padding:8px;

    color:var(--text);

    white-space:nowrap;

    border-bottom:
        1px solid rgba(85,201,255,.09);
}

tbody tr{
    transition:
        background .15s ease,
        transform .15s ease;
}

tbody tr:hover{
    background:rgba(85,201,255,.055);
}

/* =========================================================
   TEXT HELPERS
   ========================================================= */

.strong{
    font-weight:800;
}

.mono{
    font-family:monospace;
}

.online{
    color:var(--green);

    font-size:9px;
    font-weight:800;
}

.dg{
    display:inline-block;

    padding:3px 7px;

    border-radius:12px;

    background:rgba(255,210,46,.09);

    border:1px solid rgba(255,210,46,.30);

    color:var(--yellow);

    font-weight:800;
}

.empty,
.idle{
    padding:28px;

    color:var(--muted);

    text-align:center;
}

/* =========================================================
   LIVE TRANSMISSIONS
   ========================================================= */

.tx{
    padding:12px;
    margin-bottom:7px;

    border:
        1px solid rgba(255,62,66,.45);

    border-left:
        3px solid var(--red);

    border-radius:7px;

    background:
        rgba(100,12,18,.18);

    box-shadow:
        0 0 20px rgba(255,40,40,.07);

    animation:liveIn .3s ease;
}

.txTop{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;

    color:var(--red);

    font-size:9px;
    letter-spacing:.7px;
}

.tx>strong{
    display:block;

    margin:7px 0 3px;

    color:#fff;

    font-size:20px;
    font-weight:900;
}

.tx small{
    display:block;

    margin-top:7px;

    color:var(--muted);
}

/* =========================================================
   HISTORICAL EVENTS
   ========================================================= */

.ev{
    font-size:9px;
    font-weight:900;
}

.ev.start{
    color:var(--green);
}

.ev.end{
    color:var(--red);
}

/* =========================================================
   MASTER INFORMATION
   ========================================================= */

.info{
    flex:0 0 auto;
}

.infoGrid{
    display:grid;

    grid-template-columns:
        1fr
        1fr;

    gap:12px;
}

.infoGrid b{
    display:block;

    margin-top:3px;

    color:var(--text);

    font-size:12px;
}

/* =========================================================
   YSF WORLDWIDE ATOM
   ========================================================= */

.atom{
    flex:1;

    min-height:330px;
}

.atomVisual{
    position:relative;

    height:245px;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    perspective:700px;
}

.orbit{
    position:absolute;

    width:210px;
    height:95px;

    border:
        1px solid rgba(85,201,255,.45);

    border-radius:50%;

    box-shadow:
        0 0 12px rgba(85,201,255,.08);
}

.o1{
    transform:rotateX(68deg);
    animation:spin1 8s linear infinite;
}

.o2{
    transform:rotateY(68deg);
    animation:spin2 11s linear infinite reverse;
}

.o3{
    transform:
        rotateX(60deg)
        rotateZ(55deg);

    animation:spin3 14s linear infinite;
}

.nucleus{
    z-index:3;

    width:68px;
    height:68px;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            #bff5ff,
            #1599dc 58%,
            #064d78
        );

    color:#00131d;

    font-weight:900;

    box-shadow:
        0 0 15px #25bfff,
        0 0 45px rgba(37,191,255,.45);

    animation:nucleus 2s ease-in-out infinite;
}

.e{
    position:absolute;

    width:8px;
    height:8px;

    border-radius:50%;

    background:var(--yellow);

    box-shadow:
        0 0 7px var(--yellow),
        0 0 20px rgba(255,210,46,.7);

    z-index:4;
}

.e1{
    animation:electron1 5s linear infinite;
}

.e2{
    animation:electron2 7s linear infinite reverse;
}

.e3{
    animation:electron3 9s linear infinite;
}

.atomFoot{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding-top:10px;

    border-top:1px solid var(--line);

    color:var(--muted);

    font-size:9px;
}

.atomFoot b{
    color:var(--green);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:9px;
    padding:10px 12px;

    border-top:
        1px solid rgba(85,201,255,.20);

    color:var(--muted);

    font-size:9px;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar{
    width:7px;
    height:7px;
}

::-webkit-scrollbar-track{
    background:rgba(0,0,0,.20);
}

::-webkit-scrollbar-thumb{
    background:#155071;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#1e719c;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes pulse{
    50%{
        opacity:.35;
    }
}

@keyframes liveIn{
    from{
        opacity:0;
        transform:translateY(-5px);
    }

    to{
        opacity:1;
        transform:none;
    }
}

@keyframes nucleus{
    50%{
        transform:scale(1.07);

        box-shadow:
            0 0 22px #25bfff,
            0 0 65px rgba(37,191,255,.5);
    }
}

@keyframes spin1{
    to{
        transform:
            rotateX(68deg)
            rotateZ(360deg);
    }
}

@keyframes spin2{
    to{
        transform:
            rotateY(68deg)
            rotateZ(360deg);
    }
}

@keyframes spin3{
    to{
        transform:
            rotateX(60deg)
            rotateZ(415deg);
    }
}

@keyframes electron1{
    from{
        transform:
            rotate(0)
            translateX(105px)
            rotate(0);
    }

    to{
        transform:
            rotate(360deg)
            translateX(105px)
            rotate(-360deg);
    }
}

@keyframes electron2{
    from{
        transform:
            rotate(0)
            translateX(80px)
            scaleY(.7);
    }

    to{
        transform:
            rotate(360deg)
            translateX(80px)
            scaleY(.7);
    }
}

@keyframes electron3{
    from{
        transform:
            rotate(0)
            translateX(55px)
            scaleY(.5);
    }

    to{
        transform:
            rotate(360deg)
            translateX(55px)
            scaleY(.5);
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1100px){

    .wrap{
        width:calc(100% - 18px);
    }

    .stats{
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

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

        grid-template-areas:
            "clients clients"
            "live live"
            "side side"
            "history history";
    }

    .clientsCard,
    .livecard,
    .history,
    .side{
        grid-column:auto;
        grid-row:auto;
    }

    .side{
        display:grid;

        grid-template-columns:
            1fr 1fr;

        align-items:stretch;
    }

    .atom{
        min-height:280px;
    }

    .atomVisual{
        height:210px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:700px){

    body::before{
        background-attachment:scroll;

        background-position:
            center center;
    }

    .wrap{
        width:calc(100% - 10px);

        margin:
            5px auto 12px;
    }

    .top{
        padding:12px;

        border-radius:8px;

        gap:10px;
    }

    .brand{
        font-size:17px;
        letter-spacing:1px;
    }

    .sub{
        font-size:8px;
        letter-spacing:.6px;
    }

    .state{
        font-size:9px;
    }

    .state i{
        width:8px;
        height:8px;
    }

    .stats{
        grid-template-columns:
            1fr 1fr;

        gap:6px;
    }

    .stats article{
        padding:10px 6px;
    }

    .stats strong{
        font-size:19px;
    }

    .stats span{
        font-size:8px;
    }

    .grid{
        display:flex;
        flex-direction:column;

        gap:8px;

        margin-top:8px;
    }

    .clientsCard{
        order:1;

        min-height:0;
    }

    .livecard{
        order:2;

        min-height:0;
    }

    .side{
        order:3;

        display:flex;

        flex-direction:column;

        gap:8px;
    }

    .history{
        order:4;

        min-height:0;
    }

    .card{
        padding:10px;

        border-radius:8px;
    }

    .title{
        font-size:10px;
    }

    .title small{
        font-size:8px;
    }

    .tablewrap{
        max-height:320px;
    }

    table{
        min-width:680px;
    }

    th{
        padding:7px;
        font-size:8px;
    }

    td{
        padding:7px;
        font-size:10px;
    }

    .tx>strong{
        font-size:17px;
    }

    .infoGrid{
        gap:10px;
    }

    .infoGrid b{
        font-size:11px;
    }

    .atom{
        min-height:270px;
    }

    .atomVisual{
        height:200px;
    }

    .orbit{
        width:180px;
        height:82px;
    }

    .nucleus{
        width:60px;
        height:60px;
    }

    footer{
        flex-direction:column;

        align-items:flex-start;

        gap:5px;

        padding:9px;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media(max-width:430px){

    .brand{
        font-size:15px;
    }

    .sub{
        max-width:230px;

        line-height:1.35;
    }

    .state b{
        display:none;
    }

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

    .stats article:last-child{
        grid-column:1 / -1;
    }

    .stats strong{
        font-size:18px;
    }

    .card{
        padding:9px;
    }

    .tablewrap{
        max-height:280px;
    }

    .atom{
        min-height:240px;
    }

    .atomVisual{
        height:175px;
    }

    .orbit{
        width:160px;
        height:72px;
    }

    .nucleus{
        width:55px;
        height:55px;

        font-size:11px;
    }

    .atomFoot{
        font-size:8px;
    }
}

/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
    }
}