:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
    color-scheme: dark;
}

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

html {
    min-width: 700px;
}

body {
    min-height: 100vh;
    min-width: 700px;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #e5e7eb;
}

.board {
    width: 100%;
    max-width: 880px;
    min-width: 700px;
    background: #111827;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
    padding: 24px 24px 18px;
}

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.board-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.board-title h1 {
    font-size: 24px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #bbf7d0;
}

.board-title p {
    font-size: 13px;
    color: rgba(209, 250, 229, 0.7);
}

.board-badge {
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.7);
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.25), transparent 75%);
    color: #bbf7d0;
    white-space: nowrap;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-tab {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 1);
    background: #020617;
    color: #e5e7eb;
}

.category-tab-active {
    border-color: rgba(34, 197, 94, 0.85);
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.3), transparent 80%);
    color: #bbf7d0;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.8);
    background: #020617;
    color: #e5e7eb;
}

.pill-critical {
    border-color: #ef4444;
    color: #fecaca;
}

.pill-high {
    border-color: #f97316;
    color: #fed7aa;
}

.pill-medium {
    border-color: #eab308;
    color: #fef3c7;
}

.pill-low {
    border-color: #22c55e;
    color: #bbf7d0;
}

.table {
    border-radius: 14px;
    background: #020617;
    border: 1px solid #1f2937;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.table-header {
    display: grid;
    grid-template-columns: 52px 1.7fr 0.9fr 1.1fr 1.1fr;
    gap: 10px;
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(156, 163, 175, 0.9);
    background: #020617;
    border-bottom: 1px solid #1f2937;
}

.table-header div:first-child {
    text-align: center;
}

.table-header div:nth-child(2) {
    padding-left: 4px;
}

.table-header div:nth-child(3) {
    padding-left: 6px;
}

.table-header div:nth-child(4),
.table-header div:nth-child(5) {
    padding-left: 16px;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.table-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: #fecaca;
    background: rgba(0, 0, 0, 0.3);
}

.table-error-title {
    font-size: 14px;
    font-weight: 500;
}

.table-error-message {
    font-size: 12px;
    color: rgba(248, 250, 252, 0.7);
}

.table-error-button {
    margin-top: 4px;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.8);
    background: #020617;
    color: #bbf7d0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
}

.table-error-button:hover {
    background: rgba(34, 197, 94, 0.12);
}

.table-row {
    display: grid;
    grid-template-columns: 52px 1.7fr 0.9fr 1.1fr 1.1fr;
    gap: 10px;
    padding: 12px 16px;
    align-items: center;
    font-size: 13px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    background: #030712;
    transition: background 150ms ease-out, transform 120ms ease-out;
}

.table-row:nth-child(2n) {
    background: #020617;
}

.table-row:hover {
    background:
            radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.12), transparent 55%),
            #020617;
    transform: translateY(-1px);
}

.row-critical .ip-tag {
    border-color: #ef4444;
    color: #fecaca;
}

.row-high .ip-tag {
    border-color: #f97316;
    color: #fed7aa;
}

.row-medium .ip-tag {
    border-color: #eab308;
    color: #fef3c7;
}

.row-low .ip-tag {
    border-color: #22c55e;
    color: #bbf7d0;
}

.rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    font-size: 12px;
    color: #e5e7eb;
}

.ip-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin-left: 4px;
}

.ip-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    color: #f9fafb;
}

.ip-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    letter-spacing: 0.18em;
    background: transparent;
}

.attempts {
    font-variant-numeric: tabular-nums;
    text-align: left;
    padding-left: 6px;
    color: #e5e7eb;
}

.provider {
    font-size: 13px;
    color: rgba(209, 213, 219, 0.92);
    padding-left: 16px;
}

.origin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(209, 213, 219, 0.92);
    padding-left: 16px;
}

.flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.origin-label {
    white-space: nowrap;
}

.load-more-row {
    display: block;
    margin-top: 12px;
}

.load-more-button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.8);
    background: #020617;
    color: #bbf7d0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-align: center;
}

.load-more-button:hover {
    background: rgba(34, 197, 94, 0.12);
}

.board-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(156, 163, 175, 0.9);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-box {
    text-align: center;
    color: #bbf7d0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(34, 197, 94, 0.25);
    border-top-color: rgba(34, 197, 94, 0.9);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 720px) {
    body {
        padding: 16px 8px;
    }

    .board {
        max-width: 100%;
    }
}
