* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Roboto Mono', monospace;
    background: #0d0d0d;
    color: #0ff;
    overflow-x: hidden;
    min-height: 100vh;
}
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #0f0f0f, #001a1a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: -2;
}
@keyframes gradient { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

.container { position: relative; z-index: 2; padding: 20px; max-width: 1400px; margin: 0 auto; }

header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(0,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,255,255,0.2);
    backdrop-filter: blur(10px);
}
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 10px;
}
.glitch {
    color: #0ff;
    position: relative;
    text-shadow: 0.05em 0 0 #00fffc, -0.05em -0.05em 0 #ff00ff, 0.05em 0.05em 0 #ffff00;
    animation: glitch 2s infinite;
}
@keyframes glitch {
    0%,100% { text-shadow: 0.05em 0 0 #0ff, -0.05em -0.05em 0 #f0f, 0.05em 0.05em 0 #ff0; }
    14% { text-shadow: 0.05em 0 0 #0ff, -0.05em -0.05em 0 #f0f, 0.05em 0.05em 0 #ff0; }
    15% { text-shadow: -0.05em -0.05em 0 #0ff, 0.05em 0.05em 0 #f0f, -0.05em 0 0 #ff0; }
    50% { text-shadow: 0.05em 0.05em 0 #0ff, -0.05em 0 0 #f0f, -0.05em -0.05em 0 #ff0; }
}

.stats { font-size: 1.5rem; margin: 15px 0; }
.online { color: #0f0; font-weight: bold; }

.search-bar input {
    width: 500px; max-width: 90%;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.6);
    border: 2px solid #0ff;
    border-radius: 50px;
    color: #0ff;
    text-align: center;
}

#nodes-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.node-card {
    background: rgba(10,20,40,0.7);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.node-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #0ff, #f0f);
}
.node-card.online::before { background: #0f0; }
.node-card.offline::before { background: #f00; opacity: 0.6; }

.node-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,255,255,0.2);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.header h3 {
    font-size: 1.3rem;
    color: #0ff;
}
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}
.status.on { background: #0f0; color: black; }
.status.off { background: #f00; color: white; }

.info div {
    margin: 8px 0;
    font-size: 0.95rem;
}
.info strong { color: #0ff; }

.copy-btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #0ff, #f0f);
    border: none;
    border-radius: 10px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #0ff;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: #066;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}
.modal-content {
    background: rgba(10,20,40,0.95);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #0ff;
    width: 90%; max-width: 1000px;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.close {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 40px;
    color: #0ff;
    cursor: pointer;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.detail-section {
    background: rgba(0,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,255,0.2);
}
.detail-section h3 {
    color: #0ff;
    margin-bottom: 10px;
    text-align: center;
}