* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0b0e11;
    color: #e8edf5;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 620px;
    width: 100%;
    background: #131a1f;
    padding: 48px 40px 36px;
    border-radius: 24px;
    border: 1px solid #2a343c;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 10px;
}

.incident-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.incident-badge .dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.incident-id {
    font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: #6a7f8e;
    background: #0f161c;
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid #1f2a33;
    letter-spacing: 0.3px;
}

.incident-id span {
    color: #94a9b9;
    font-weight: 500;
}

.icon-big {
    font-size: 52px;
    margin-bottom: 8px;
    display: block;
    position: relative;
    z-index: 1;
    animation: flicker 2.5s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    color: #f0f4f8;
    position: relative;
    z-index: 1;
}

.badge-warning {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    padding: 4px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.sub {
    color: #94a9b9;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.sub strong {
    color: #f0f4f8;
    font-weight: 600;
}

.ip-card {
    background: #0f161c;
    border-radius: 14px;
    padding: 14px 20px;
    border: 1px solid #253038;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ip-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6a7f8e;
    font-weight: 600;
}

.ip-value {
    font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 21px;
    font-weight: 500;
    color: #b0d4f0;
    letter-spacing: 0.5px;
    background: #0b1116;
    padding: 3px 16px;
    border-radius: 8px;
    border: 1px solid #1f2a33;
}

.load-graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 50px;
    gap: 5px;
    margin: 16px 0 14px;
    padding: 0 2px;
    position: relative;
    z-index: 1;
}

.bar {
    flex: 1;
    background: #1f2a33;
    border-radius: 4px 4px 0 0;
    height: 20%;
    transition: height 0.4s ease;
    min-height: 6px;
}

.bar.high {
    background: #f59e0b;
    height: 80%;
}

.bar.medium {
    background: #f97316;
    height: 55%;
}

.bar.low {
    background: #3b82f6;
    height: 28%;
}

.bar.critical {
    background: #ef4444;
    height: 100%;
    animation: pulse-bar 1.2s ease-in-out infinite;
}

@keyframes pulse-bar {
    0%, 100% { opacity: 0.9; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.92); }
}

.status-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6a7f8e;
    border-top: 1px solid #1f2a33;
    padding-top: 16px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 8px;
}

.status-row .online {
    color: #4ade80;
    font-weight: 500;
}

.status-row .queue {
    color: #fbbf24;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.status-row .time {
    color: #6a7f8e;
}

.footer-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    border-top: 1px solid #1f2a33;
    padding-top: 20px;
}

.btn {
    background: #1f2a33;
    color: #e8edf5;
    border: none;
    padding: 10px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.btn:hover {
    background: #2a343c;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #3b82f6;
}

.small-note {
    font-size: 12px;
    color: #4f677a;
    margin-top: 16px;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

@media (max-width: 520px) {
    .container {
        padding: 28px 18px 24px;
    }
    .header-top {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .incident-id {
        text-align: center;
    }
    .ip-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .ip-value {
        font-size: 18px;
        text-align: center;
    }
    h1 {
        font-size: 24px;
    }
    .load-graph {
        height: 38px;
    }
    .status-row {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .footer-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
