/* Global Styles - 80's Hackerpunk Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #000;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 3px
        );
    color: #00ff00;
    line-height: 1.6;
    min-height: 100vh;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    animation: textFlicker 0.01s infinite;
}

@keyframes textFlicker {
    0% { opacity: 1; }
    50% { opacity: 0.99; }
    100% { opacity: 1; }
}

/* CRT screen effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0 20px;
    border: 2px solid #00ff00;
    border-left: none;
    border-right: none;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.4), transparent);
    animation: headerScan 3s linear infinite;
}

@keyframes headerScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

h1 {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #00ff00;
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: glitch 2s infinite;
    position: relative;
}

h1::before,
h1::after {
    content: 'fade.repram.io';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1::before {
    animation: glitch-1 0.5s infinite;
    color: #ff00ff;
    z-index: -1;
}

h1::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 0, 0.8); }
    20% { text-shadow: 3px 0 10px rgba(255, 0, 255, 0.8); }
    40% { text-shadow: -3px 0 10px rgba(0, 255, 255, 0.8); }
    60% { text-shadow: 0 0 10px rgba(0, 255, 0, 0.8); }
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px); }
    60% { clip-path: inset(10% 0 80% 0); transform: translate(0); }
    80% { clip-path: inset(80% 0 10% 0); transform: translate(1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 20% 0); transform: translate(2px); }
    40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px); }
    60% { clip-path: inset(80% 0 10% 0); transform: translate(1px); }
    80% { clip-path: inset(10% 0 80% 0); transform: translate(-1px); }
}

.tagline {
    font-size: 1rem;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Explanation Box */
.explanation {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.explanation::before {
    content: 'SYSTEM_INFO://';
    position: absolute;
    top: 0;
    left: 0;
    background: #00ffff;
    color: #000;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.explanation h3 {
    color: #00ffff;
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.explanation ul {
    list-style: none;
    padding-left: 0;
}

.explanation li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #00ff00;
}

.explanation li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #ff00ff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Simple Status Bar */
.simple-status-bar {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    margin-bottom: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.status-icon {
    font-size: 1.1rem;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-icon.connected {
    color: #00ff00;
}

.status-icon.scanning {
    color: #ffff00;
    animation: statusSpin 1s linear infinite;
}

.status-icon.error {
    color: #ff0000;
    animation: statusBlink 0.5s ease-in-out infinite;
}

.mode-label {
    color: #ff00ff;
    font-weight: bold;
}

.mode-status {
    color: #ffff00;
}

.current-activity {
    color: #00ff00;
    font-style: italic;
    flex-grow: 1;
}

/* Node Health Section in Network Statistics */
.node-health-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.node-health-section h4 {
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.node-health-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.node-health-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.node-health-icon {
    font-size: 0.9rem;
    width: 12px;
    text-align: center;
}

.node-health-icon.online {
    color: #00ff00;
}

.node-health-icon.connecting {
    color: #ffff00;
    animation: statusSpin 1s linear infinite;
}

.node-health-icon.offline {
    color: #ff0000;
}

.node-health-label {
    color: #00ffff;
    min-width: 60px;
}

.node-health-status {
    color: #ff00ff;
    font-size: 0.75rem;
}

/* Connection Status (legacy, for compatibility) */
.connection-status {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    margin-bottom: 20px;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.status-icon {
    font-size: 1.2rem;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-icon.connected {
    color: #00ff00;
}

.status-icon.scanning {
    color: #ffff00;
    animation: statusSpin 1s linear infinite;
}

.status-icon.error {
    color: #ff0000;
    animation: statusBlink 0.5s ease-in-out infinite;
}

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

@keyframes statusSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.status-text {
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.node-info {
    margin-left: auto;
    color: #ff00ff;
    font-size: 0.8rem;
    opacity: 0.8;
}

.node-selector {
    margin-left: 20px;
}

.node-selector select {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.node-selector select:hover {
    border-color: #00ffff;
    box-shadow: 0 0 5px #00ffff;
}

.node-selector select option {
    background: #000;
    color: #00ff00;
}

.scan-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #00ffff, transparent);
    width: 20%;
    animation: scanMove 3s linear infinite;
}

@keyframes scanMove {
    0% { left: -20%; }
    100% { left: 100%; }
}

/* Message Board */
.message-board {
    height: 500px;
    overflow-y: auto;
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.message-board::before {
    content: 'MESSAGES://EPHEMERAL_STREAM';
    position: absolute;
    top: -2px;
    left: -2px;
    background: #00ff00;
    color: #000;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.message-board::-webkit-scrollbar {
    width: 12px;
}

.message-board::-webkit-scrollbar-track {
    background: #000;
    border: 1px solid #00ff00;
}

.message-board::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #000;
}

.message-board::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

.loading {
    text-align: center;
    color: #ff00ff;
    padding: 50px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: loadingPulse 1s ease-in-out infinite;
}

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

.message {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-left: 4px solid #00ff00;
    transition: all 0.3s ease;
    animation: messageSlide 0.5s ease;
    position: relative;
    overflow: hidden;
}

@keyframes messageSlide {
    from { 
        opacity: 0; 
        transform: translateX(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: messageScan 5s linear infinite;
}

@keyframes messageScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.message:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: translateX(5px);
}

.message.community {
    border-left-color: #ff00ff;
    background: rgba(255, 0, 255, 0.05);
}

.message.community:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.message.expiring {
    animation: warningFlash 1s ease-in-out infinite;
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

@keyframes warningFlash {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Expiration animation */
.message.expiring-now {
    animation: pixelDissolve 2s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.message.expiring-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.8) 2px,
            rgba(255, 0, 0, 0.8) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.8) 2px,
            rgba(0, 255, 0, 0.8) 4px
        );
    mix-blend-mode: multiply;
    animation: scanlineGlitch 0.5s linear infinite;
    pointer-events: none;
}

@keyframes pixelDissolve {
    0% {
        filter: contrast(1) brightness(1);
        transform: scale(1) translateX(0);
    }
    20% {
        filter: contrast(2) brightness(1.2) hue-rotate(90deg);
        transform: scale(1.02) translateX(-2px);
    }
    40% {
        filter: contrast(0.5) brightness(2) hue-rotate(180deg);
        transform: scale(0.98) translateX(2px);
        opacity: 1;
    }
    60% {
        filter: contrast(10) brightness(0.5) hue-rotate(270deg) blur(1px);
        transform: scale(1.05) translateX(-5px);
        opacity: 0.8;
    }
    80% {
        filter: contrast(0.1) brightness(3) hue-rotate(360deg) blur(3px) saturate(0);
        transform: scale(0.95) translateX(0) skewX(10deg);
        opacity: 0.4;
    }
    100% {
        filter: contrast(0) brightness(0) blur(10px);
        transform: scale(0.8) translateY(-20px) rotateX(45deg);
        opacity: 0;
    }
}

@keyframes scanlineGlitch {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

/* Additional glitch text effect for expiring messages */
.message.expiring-now .message-content {
    animation: textGlitch 2s ease-out forwards;
}

@keyframes textGlitch {
    0%, 10% {
        text-shadow: 
            0 0 5px rgba(0, 255, 0, 0.5);
    }
    15% {
        text-shadow: 
            -2px 0 #ff00ff,
            2px 0 #00ffff,
            0 0 10px rgba(255, 0, 0, 0.8);
    }
    20% {
        text-shadow: 
            2px 0 #ff00ff,
            -2px 0 #00ffff,
            0 0 15px rgba(0, 255, 0, 0.8);
    }
    25%, 35% {
        text-shadow: 
            -2px -2px #ff00ff,
            2px 2px #00ffff,
            0 0 20px rgba(255, 255, 0, 0.8);
    }
    40%, 60% {
        text-shadow: 
            1px 1px #ff0000,
            -1px -1px #00ff00,
            0 0 25px rgba(255, 255, 255, 0.5);
    }
    65%, 100% {
        text-shadow: 
            0 0 30px rgba(255, 0, 0, 0.3),
            0 0 40px rgba(0, 255, 0, 0.2),
            0 0 50px rgba(0, 0, 255, 0.1);
    }
}

/* Data corruption effect */
.message.expiring-now .message-key,
.message.expiring-now .ttl-indicator {
    animation: dataCorrupt 2s ease-out forwards;
}

@keyframes dataCorrupt {
    0%, 10% { }
    15%, 20% {
        color: #ff0000;
        background: #ffff00;
    }
    25%, 30% {
        color: #00ff00;
        background: #ff00ff;
    }
    35%, 45% {
        color: #0000ff;
        background: #00ffff;
        transform: skewX(-15deg);
    }
    50%, 60% {
        color: #ffffff;
        background: #000000;
        transform: skewX(15deg);
    }
    70%, 100% {
        color: transparent;
        background: transparent;
        transform: skewX(0);
    }
}

.message-content {
    margin-bottom: 8px;
    word-wrap: break-word;
    color: #00ff00;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #00ffff;
}

.ttl-indicator {
    background: #000;
    border: 1px solid #00ffff;
    padding: 2px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: help;
    position: relative;
}

/* Enhanced tooltip on hover */
.ttl-indicator:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 5px;
    padding: 5px 10px;
    background: #000;
    border: 1px solid #00ffff;
    color: #00ffff;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: tooltipFade 0.3s ease-in;
}

@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.callsign {
    font-weight: bold;
    color: #ff00ff;
    text-transform: uppercase;
}

.message-key {
    font-size: 0.7rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.message-key:hover {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

.node-indicator {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: #ff00ff;
    margin-left: 10px;
    padding: 2px 6px;
    border: 1px solid #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    text-transform: uppercase;
}

/* Copy feedback animation */
.message-key.copied::after {
    content: 'COPIED!';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff00;
    color: #000;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid #00ff00;
    animation: copyFeedback 1.5s ease-out forwards;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes copyFeedback {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }
}

/* Input Areas */
.input-area {
    background: #000;
    border: 2px solid #ff00ff;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.input-area::before {
    content: 'INPUT://';
    position: absolute;
    top: -2px;
    left: -2px;
    background: #ff00ff;
    color: #000;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.input-area h3 {
    margin-bottom: 15px;
    margin-top: 10px;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

textarea {
    width: 100%;
    background: #000;
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 12px;
    color: #00ff00;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 15px;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
}

.input-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.char-count {
    color: #00ffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.submit-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

select {
    background: #000;
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 8px 12px;
    color: #00ff00;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
}

select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

select option {
    background: #000;
    color: #00ff00;
}

button {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 0;
    padding: 10px 20px;
    color: #00ff00;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.3);
    transition: left 0.3s ease;
}

button:hover {
    color: #000;
    background: #00ff00;
    box-shadow: 0 0 20px #00ff00;
    text-shadow: none;
}

button:hover::before {
    left: 0;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

.callsign-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.callsign-controls input {
    flex: 1;
    background: #000;
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 10px;
    color: #00ff00;
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    text-transform: uppercase;
}

.callsign-controls input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
}

.callsign-controls input::placeholder {
    color: rgba(0, 255, 0, 0.5);
    text-transform: none;
}

.key-preview {
    font-size: 0.85rem;
    color: #00ffff;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Share Tech Mono', monospace;
}

.key-preview span {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.key-preview span:hover {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
}

/* Copy feedback for key preview */
.key-preview span.copied::after {
    content: 'COPIED!';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffff00;
    color: #000;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid #ffff00;
    animation: copyFeedback 1.5s ease-out forwards;
    pointer-events: none;
    white-space: nowrap;
}

.hint {
    font-size: 0.8rem;
    color: #ff00ff;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lookup Section */
.description {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lookup-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.lookup-controls input {
    flex: 1;
    background: #000;
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 10px;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.lookup-controls input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
}

.lookup-controls input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

#lookupResult {
    margin-top: 15px;
}

.lookup-success {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 0;
    padding: 15px;
    color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.lookup-error {
    background: #000;
    border: 2px solid #ff0000;
    border-radius: 0;
    padding: 15px;
    color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Network Status */
.network-status {
    background: #000;
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.network-status::before {
    content: 'NETWORK://STATUS';
    position: absolute;
    top: -2px;
    left: -2px;
    background: #00ffff;
    color: #000;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.network-status h3 {
    margin-bottom: 20px;
    margin-top: 10px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.status-item {
    background: rgba(0, 255, 255, 0.05);
    padding: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.status-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: statusScan 3s linear infinite;
}

@keyframes statusScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-item strong {
    display: block;
    color: #ff00ff;
    font-size: 0.75rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-item span {
    font-size: 1.5rem;
    color: #00ff00;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.node-health h4 {
    margin-bottom: 10px;
    color: #ff00ff;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.node-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.node-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.node-status {
    width: 10px;
    height: 10px;
    border-radius: 0;
    flex-shrink: 0;
    position: relative;
}

.node-status.online {
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
    animation: statusBlink 2s ease-in-out infinite;
}

.node-status.offline {
    background: #ff0000;
    box-shadow: 0 0 15px #ff0000;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ASCII Art */
.ascii-art {
    color: #00ff00;
    font-size: 0.7rem;
    line-height: 1;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
    animation: asciiGlow 3s ease-in-out infinite;
}

@keyframes asciiGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    50% { 
        text-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.6);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .message-board {
        height: 400px;
    }
    
    .input-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .submit-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .lookup-controls {
        flex-direction: column;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
}

/* Version Information */
.version-info {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin: 5px 0;
    opacity: 0.7;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: none;
    letter-spacing: 1px;
}

.footer-version {
    font-size: 0.7rem;
    color: #333;
    text-align: center;
    margin: 20px 0 10px 0;
    opacity: 0.6;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: none;
    letter-spacing: 1px;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.footer-credits {
    font-size: 0.65rem;
    color: #444;
    text-align: center;
    margin: 10px 0;
    opacity: 0.7;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: none;
}

.footer-credits a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-credits a:hover {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

/* Discord Bridge Section */
.discord-section {
    background: rgba(255, 0, 255, 0.05);
    border: 2px solid #ff00ff;
    border-left: 4px solid #ff00ff;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.discord-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    animation: discordScan 4s linear infinite;
}

@keyframes discordScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.discord-section h3 {
    color: #ff00ff;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

.bridge-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 8px;
}

.flow-item {
    flex: 1;
    text-align: center;
    padding: 15px;
}

.flow-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.flow-arrow {
    font-size: 2rem;
    color: #00ffff;
    margin: 0 20px;
    animation: pulse 2s ease-in-out infinite;
}

.discord-prefix {
    color: #7289da;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
}

.fade-prefix {
    color: #00ff00;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
}

.bridge-features {
    margin: 20px 0;
}

.bridge-features ul {
    list-style: none;
    padding: 0;
}

.bridge-features li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.bridge-features li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #ff00ff;
    font-weight: bold;
}

.bridge-features code {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    color: #00ff00;
    font-size: 0.9rem;
}

.discord-invite {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.discord-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #7289da;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.3);
}

.discord-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(114, 137, 218, 0.6);
    border-color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.discord-logo {
    font-size: 1.5rem;
    margin-right: 15px;
}

.discord-text {
    text-align: left;
    line-height: 1.3;
}

.discord-text strong {
    font-size: 1.1rem;
    display: block;
}

.discord-text small {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Mobile responsiveness for Discord section */
@media (max-width: 768px) {
    .bridge-flow {
        flex-direction: column;
        gap: 15px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .discord-badge {
        padding: 12px 20px;
    }
}