* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 188, 212, .32), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(156, 39, 176, .25), transparent 30%),
        linear-gradient(135deg, #12002f 0%, #001f3f 48%, #003a46 100%);
    color: #fff;
}

.desktop {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 48px 34px 70px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 26px;
}

.topbar h1 {
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 300;
    letter-spacing: -1px;
}

.topbar p {
    margin-top: 10px;
    color: rgba(255,255,255,.72);
    font-size: 17px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
}

.lang-switch button {
    min-width: 42px;
    height: 38px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 13px;
    letter-spacing: .7px;
    transition: .2s ease;
}

.lang-switch button:hover,
.lang-switch button.active {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.refresh-btn {
    padding: 14px 22px;
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 14px;
    transition: .25s ease;
}

.refresh-btn:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stats div {
    padding: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(14px);
}

.stats strong {
    display: block;
    font-size: 30px;
    font-weight: 300;
}

.stats span {
    color: rgba(255,255,255,.68);
    font-size: 14px;
}

.search-wrap {
    margin-bottom: 30px;
}

.search-wrap input {
    width: 100%;
    padding: 17px 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 16px;
    outline: none;
    backdrop-filter: blur(14px);
}

.search-wrap input::placeholder {
    color: rgba(255,255,255,.55);
}

.tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding: 22px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.16),
        0 18px 45px rgba(0,0,0,.18);
    transition: .25s ease;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), transparent 38%),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.22), transparent 30%);
}

.tile::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    z-index: -1;
}

.tile:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.25),
        0 26px 70px rgba(0,0,0,.35);
    filter: saturate(1.15);
}

.tile span,
.tile small,
.desc,
.status {
    position: relative;
    z-index: 2;
}

.tile span {
    display: block;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 7px;
}

.tile small {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.78);
    margin-bottom: 14px;
}

.desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(255,255,255,.84);
    max-width: 100%;
    margin-bottom: 18px;
}

.status {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
    color: rgba(255,255,255,.76);
}

.status b {
    font-size: 13px;
    font-weight: 600;
}

.status em {
    font-style: normal;
    color: rgba(255,255,255,.55);
}

.is-online .status b {
    color: #8cffb0;
}

.is-offline .status b {
    color: #ffb0b0;
}

.large {
    grid-column: span 2;
}

.pink { background: linear-gradient(135deg, #c2185b, #e91e63); }
.blue { background: linear-gradient(135deg, #0277bd, #03a9f4); }
.purple { background: linear-gradient(135deg, #512da8, #7e57c2); }
.orange { background: linear-gradient(135deg, #ef6c00, #ff9800); }
.cyan { background: linear-gradient(135deg, #006064, #00acc1); }
.gray { background: linear-gradient(135deg, #263238, #607d8b); }
.green { background: linear-gradient(135deg, #1b5e20, #43a047); }
.teal { background: linear-gradient(135deg, #004d40, #009688); }
.red { background: linear-gradient(135deg, #8e0000, #d32f2f); }
.yellow { background: linear-gradient(135deg, #f9a825, #ffd54f); color: #151515; }
.dark { background: linear-gradient(135deg, #0f172a, #111827); }

.yellow small,
.yellow span,
.yellow .desc,
.yellow .status,
.yellow .status em {
    color: #151515;
}

.yellow .status {
    border-top-color: rgba(0,0,0,.18);
}

@media (max-width: 1200px) {
    .tiles {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .tiles {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .large {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .desktop {
        padding: 28px 18px 44px;
    }

    .topbar {
        flex-direction: column;
        margin-bottom: 22px;
    }

    .topbar h1 {
        font-size: 36px;
    }

    .refresh-btn {
        width: 100%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .tiles {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .tile,
    .large {
        grid-column: span 1;
        min-height: 270px;
    }
}

.badges {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    max-width: 120px;
}

.badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    backdrop-filter: blur(10px);
}

.yellow .badges span {
    background: rgba(255,255,255,.35);
    border-color: rgba(0,0,0,.15);
    color: #151515;
}