:root {
    --bg: #020617;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --white: #ffffff;
    --blue: #0284c7;
    --blue-hover: #0369a1;
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.12);
    --disabled: #cbd5e1;
    --disabled-text: #64748b;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%),
        var(--bg);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.hero,
.table-wrap {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero {
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.hero p {
    margin: 16px 0 0;
    max-width: 820px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.table-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.table-head,
.row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 0.8fr 1fr;
    gap: 16px;
    align-items: center;
}

.table-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--panel-border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.row {
    padding: 20px 24px;
    border-bottom: 1px solid var(--panel-border);
}

.row:last-child {
    border-bottom: none;
}

.server-name {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.server-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
}

.status.online {
    background: var(--green-bg);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.2);
}

.status.online .status-dot {
    background: var(--green);
}

.status.offline {
    background: var(--red-bg);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

.status.offline .status-dot {
    background: var(--red);
}

.ping {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.actions {
    text-align: right;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-online {
    background: var(--blue);
    color: var(--white);
}

.btn-online:hover {
    background: var(--blue-hover);
}

.btn-offline {
    background: var(--disabled);
    color: var(--disabled-text);
    pointer-events: none;
    cursor: default;
}

.footer-note {
    margin-top: 16px;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .table-head {
        display: none;
    }

    .table-wrap {
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
        padding: 18px;
        border: 1px solid var(--panel-border);
        border-radius: var(--radius-lg);
        background: var(--panel);
        box-shadow: var(--shadow);
        backdrop-filter: blur(14px);
    }

    .row:last-child {
        border-bottom: 1px solid var(--panel-border);
    }

    .mobile-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .meta-block {
        padding: 12px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .meta-label {
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .actions {
        text-align: left;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 16px 12px 28px;
    }

    .hero {
        padding: 18px;
        border-radius: 20px;
    }

    .hero p {
        font-size: 14px;
    }

    .mobile-meta {
        grid-template-columns: 1fr;
    }

    .server-name {
        font-size: 16px;
    }
}