:root {
    --bg: #020617;
    --card: #0f172a;
    --card-border: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #22c55e;
    --offline: #ef4444;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: radial-gradient(circle at top, #020617, #020617 60%);
    color: var(--text);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--accent);
}

.subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    opacity: 0.4;
}

.card-content {
    padding: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(148,163,184,0.15);
    color: var(--muted);
}

.status.online {
    background: rgba(34,197,94,0.15);
    color: var(--accent);
}

.status.offline {
    background: rgba(239,68,68,0.15);
    color: var(--offline);
}

.status.unknown {
    background: rgba(234,179,8,0.14);
    color: #facc15;
}

.card-desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}
