* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: #0b0d12;
    color: #eaeaea;
    padding: 48px 40px;
    margin: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.header p {
    color: #888;
    font-size: 15px;
    margin: 0;
}

.refresh-note {
    font-size: 12px;
    color: #555;
}

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

.card {
    background: linear-gradient(180deg, #171a21 0%, #14161c 100%);
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid #23262f;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: #3a3f4d;
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-header strong {
    font-size: 17px;
    font-weight: 600;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.status.up {
    background: rgba(63, 214, 139, 0.12);
    color: #3fd68b;
}

.status.down {
    background: rgba(229, 72, 77, 0.12);
    color: #e5484d;
}

.status.pending {
    background: rgba(122, 162, 247, 0.12);
    color: #7aa2f7;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status.up .status-dot {
    background: #3fd68b;
    box-shadow: 0 0 6px #3fd68b;
}

.status.down .status-dot {
    background: #e5484d;
    box-shadow: 0 0 6px #e5484d;
}

.status.pending .status-dot {
    background: #7aa2f7;
}

.desc {
    color: #a8adb8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.stack span {
    font-size: 11px;
    color: #7aa2f7;
    background: rgba(122, 162, 247, 0.1);
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 500;
}

.uptime-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.uptime-box {
    flex: 1;
    background: #14161c;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.uptime-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #eaeaea;
}

.uptime-label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.links {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.links a {
    color: #eaeaea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #2c303a;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.links a:hover {
    background: #22252e;
    border-color: #3a3f4d;
}

.last-check {
    font-size: 12px;
    color: #666;
    padding-top: 12px;
    border-top: 1px solid #22252e;
    margin-top: 14px;
}