@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

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

body {
    background: #000000;
    color: #00ff00;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03),
            rgba(0, 255, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

.terminal-container {
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: #0a0a0a;
    border: 2px solid #00ff00;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.98; }
    100% { opacity: 1; }
}

.terminal-header {
    background: linear-gradient(90deg, #001100, #003300, #001100);
    padding: 10px 20px;
    border-bottom: 2px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text {
    font-weight: 700;
    text-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

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

.status-indicators {
    display: flex;
    gap: 15px;
}

.indicator {
    padding: 3px 10px;
    border: 1px solid #00ff00;
    font-size: 11px;
    position: relative;
    background: rgba(0, 255, 0, 0.1);
}

.indicator.active::before {
    content: "●";
    color: #00ff00;
    margin-right: 5px;
    animation: blink 1s infinite;
}

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

.terminal-screen {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    background: radial-gradient(ellipse at center, #0a0f0a 0%, #000000 100%);
}

.terminal-screen::-webkit-scrollbar {
    width: 10px;
}

.terminal-screen::-webkit-scrollbar-track {
    background: #001100;
    border: 1px solid #00ff00;
}

.terminal-screen::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #00ff00;
}

.boot-sequence {
    animation: bootUp 3s ease-out;
}

@keyframes bootUp {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.ascii-logo {
    color: #00ff00;
    text-align: center;
    margin-bottom: 30px;
    font-size: 10px;
    line-height: 1.2;
    text-shadow: 0 0 5px #00ff00;
}

.boot-text {
    margin-top: 20px;
}

.boot-line {
    opacity: 0;
    animation: fadeInLine 0.5s forwards;
    margin-bottom: 5px;
}

.boot-line:nth-child(1) { animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation-delay: 1s; }
.boot-line:nth-child(3) { animation-delay: 1.5s; }
.boot-line:nth-child(4) { animation-delay: 2s; }
.boot-line:nth-child(5) { animation-delay: 2.5s; }

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}

.main-terminal {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.welcome-message pre {
    color: #00ff00;
    white-space: pre-wrap;
}

.welcome-message a {
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    transition: all 0.2s;
}

.welcome-message a:hover {
    text-shadow: 0 0 10px #00ff00;
    border-bottom-color: #00ff00;
}

.command-line {
    display: flex;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

.prompt {
    color: #00ff00;
    font-weight: 700;
    text-shadow: 0 0 3px #00ff00;
}

.command-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    caret-color: transparent;
    position: relative;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: #00ff00;
    animation: cursorBlink 1s infinite;
    position: absolute;
    vertical-align: text-bottom;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.output-line {
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.iso-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    border: 2px solid #00ff00;
    padding: 20px;
    min-width: 600px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
}

.message-header {
    margin-bottom: 20px;
    color: #00ff00;
    text-align: center;
}

.message-content {
    font-size: 12px;
}

.iso-field {
    display: flex;
    margin-bottom: 8px;
    padding: 5px;
    background: rgba(0, 255, 0, 0.05);
    border-left: 2px solid #00ff00;
}

.field-number {
    width: 60px;
    font-weight: 700;
    color: #00cc00;
}

.field-name {
    flex: 1;
    padding: 0 20px;
    color: #00ff00;
}

.field-value {
    color: #00ff99;
    font-weight: 700;
}

.hidden {
    display: none;
}

.terminal-footer {
    border-top: 2px solid #00ff00;
    padding: 10px 20px;
    background: linear-gradient(90deg, #001100, #003300, #001100);
}

.footer-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.error-message {
    color: #ff3333;
    text-shadow: 0 0 5px #ff3333;
}

.command-hints {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hint-label {
    color: rgba(0, 255, 0, 0.5);
    margin-right: 10px;
}

.command-hint {
    color: #00ff00;
    cursor: pointer;
    padding: 2px 8px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    transition: all 0.2s;
    background: rgba(0, 255, 0, 0.05);
    text-decoration: none;
    display: inline-block;
}

.command-hint:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    transform: scale(1.05);
}

a.command-hint {
    color: #00ff00;
    text-decoration: none;
}

.hint-separator {
    color: rgba(0, 255, 0, 0.3);
}

.success-message {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.processing {
    color: #00ff00;
}

.transaction-flow {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.02);
}

.flow-step {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.flow-step:nth-child(1) { animation-delay: 0.5s; }
.flow-step:nth-child(2) { animation-delay: 1s; }
.flow-step:nth-child(3) { animation-delay: 1.5s; }
.flow-step:nth-child(4) { animation-delay: 2s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.step-icon {
    margin-right: 15px;
    font-size: 18px;
}

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

.network-card {
    border: 1px solid #00ff00;
    padding: 10px;
    text-align: center;
    background: rgba(0, 255, 0, 0.05);
    transition: all 0.3s;
}

.network-card:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .terminal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .ascii-logo {
        font-size: 8px;
    }
    
    .iso-message {
        min-width: 90%;
    }
}