/* BASE */
html,
body {
    margin: 0;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, #0a0a0a, #000 60%);
    z-index: -1;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.title {
    font-size: 26px;
    font-weight: 600;
}

/* BUTTON */
.btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.25s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* CARD */
.card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s;
}

/* hover */
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.status.ok {
    background-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
    animation: pulse 2s infinite ease-in-out;
}

.status.fail {
    background-color: #e74c3c;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
        box-shadow: 0 0 4px rgba(46, 204, 113, 0.4);
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        box-shadow: 0 0 12px rgba(46, 204, 113, 0.8);
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
        box-shadow: 0 0 4px rgba(46, 204, 113, 0.4);
    }
}

/* TEXT */
.node-title {
    font-weight: 500;
    margin-bottom: 6px;
}

.server {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* PING COLORS */
.ping.good {
    color: #22c55e;
}

.ping.medium {
    color: #f59e0b;
}

.ping.bad {
    color: #ef4444;
}

.card.offline {
    opacity: 0.4;
}

.flag {
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    font-size: 1.2em;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .app-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }

    .title {
        font-size: 1.2rem;
    }
}

.header-controls {
    display: flex;
    gap: 12px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.2s;
    padding: 0;
}

.btn-icon svg {
    stroke: #ffffff !important
}

.custom-support-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.status-text {
    display: none;
    font-size: 14px;
    font-weight: 600;
}

.card[data-status="true"] .status-text {
    color: #2ecc71;
}

.card[data-status="false"] .status-text {
    color: #e74c3c;
}

.hide-ping .ping-value {
    display: none;
}

.hide-ping .status-text {
    display: inline-block;
}

.hide-ping .ping {
    color: inherit !important;
}