/* Base Terminal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #000000;
    color: #00ff41;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: boot-fadeout 3s ease-in-out 5s forwards;
}

.boot-content {
    text-align: center;
    max-width: 800px;
}

.ascii-logo {
    color: #00ff41;
    font-size: 8px;
    line-height: 1;
    text-shadow: 0 0 10px #00ff41;
    margin-bottom: 30px;
    animation: matrix-pulse 2s ease-in-out infinite;
}

.boot-text {
    margin: 30px 0;
}

.boot-line {
    font-size: 14px;
    margin: 10px 0;
    opacity: 0;
    animation: boot-line-appear 0.5s ease-in-out forwards;
}

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

.boot-progress {
    width: 400px;
    height: 4px;
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00ff41;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #008f11);
    width: 0;
    animation: progress-fill 4s ease-in-out 1s forwards;
    box-shadow: 0 0 10px #00ff41;
}

@keyframes boot-fadeout {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes boot-line-appear {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes progress-fill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Terminal Container */
.terminal-container {
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff41;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    position: relative;
    opacity: 0;
    animation: terminal-appear 1s ease-in-out 6s forwards;
}

@keyframes terminal-appear {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(135deg, #001100, #002200);
    border-bottom: 1px solid #00ff41;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
}

.terminal-title {
    font-size: 14px;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

.terminal-prompt {
    color: #00ff41;
    margin-right: 10px;
}

.cursor-blink {
    animation: cursor-blink 1s infinite;
}

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

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #00ff41;
}

.control-btn.minimize { background: #ffff00; }
.control-btn.maximize { background: #00ff00; }
.control-btn.close { background: #ff0000; }

/* Terminal Content */
.terminal-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Terminal Sections */
.terminal-section {
    margin-bottom: 40px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    background: rgba(0, 20, 0, 0.5);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #001a00, #003300);
    padding: 10px 20px;
    border-bottom: 1px solid #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.prompt {
    color: #00ff41;
    margin-right: 10px;
}

.command {
    color: #ffffff;
    text-shadow: 0 0 3px #ffffff;
}

.section-content {
    padding: 30px;
}

.section-title {
    color: #00ff41;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff41;
    text-align: center;
    letter-spacing: 2px;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: #00ff41;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-align: center;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #0040ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(2px, -2px);
    }
}

/* Typewriter Effect */
.typewriter-text {
    overflow: hidden;
}

.typewriter-text p {
    margin-bottom: 20px;
    color: #cccccc;
    line-height: 1.8;
    opacity: 0;
    animation: typewriter-appear 0.5s ease-in-out forwards;
}

.typewriter-text p:nth-child(1) { animation-delay: 7s; }
.typewriter-text p:nth-child(2) { animation-delay: 8s; }
.typewriter-text p:nth-child(3) { animation-delay: 9s; }

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-terminal {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff41;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: stat-scan 3s infinite;
}

@keyframes stat-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-header {
    color: #00ff41;
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stat-value {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #ffffff;
}

.stat-trend {
    color: #00ff41;
    font-size: 10px;
}

/* Verification Grid */
.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
}

.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.status-indicator.success {
    background: #00ff41;
    color: #000000;
    box-shadow: 0 0 10px #00ff41;
}

.status-indicator.warning {
    background: #ffff00;
    color: #000000;
    box-shadow: 0 0 10px #ffff00;
}

.status-text {
    flex: 1;
    color: #cccccc;
    font-size: 12px;
}

.status-value {
    color: #00ff41;
    font-weight: bold;
    font-size: 12px;
}

/* Mirror Section */
.mirror-section {
    margin-top: 30px;
}

.mirror-section h3 {
    color: #00ff41;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 5px #00ff41;
}

.mirror-box {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    border-radius: 4px;
    overflow: hidden;
}

.mirror-header {
    background: linear-gradient(135deg, #001100, #002200);
    padding: 10px 20px;
    color: #00ff41;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid #00ff41;
}

.mirror-links {
    padding: 20px;
}

.mirror-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #cccccc;
    transition: all 0.3s ease;
}

.mirror-link:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    color: #00ff41;
    cursor: pointer;
}

.status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.status.online {
    background: #00ff41;
    color: #000000;
}

.status.maintenance {
    background: #ffff00;
    color: #000000;
}

/* Security Matrix */
.security-matrix {
    margin-bottom: 30px;
}

.security-layer {
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    background: rgba(0, 20, 0, 0.3);
    overflow: hidden;
}

.security-layer h3 {
    background: linear-gradient(135deg, #001a00, #003300);
    padding: 15px 20px;
    color: #00ff41;
    margin: 0;
    text-shadow: 0 0 5px #00ff41;
    border-bottom: 1px solid #00ff41;
}

.security-details {
    padding: 20px;
}

.security-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
}

.security-icon {
    font-size: 24px;
    min-width: 40px;
    text-align: center;
}

.security-info strong {
    color: #00ff41;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 0 3px #00ff41;
}

.security-info p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

/* Transaction Flow */
.transaction-flow {
    margin-bottom: 30px;
}

.flow-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    position: relative;
}

.flow-step::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: #00ff41;
    box-shadow: 0 0 5px #00ff41;
}

.flow-step:last-child::after {
    display: none;
}

.step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff41, #008f11);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.step-content h3 {
    color: #00ff41;
    margin-bottom: 10px;
    text-shadow: 0 0 3px #00ff41;
}

.step-content p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item {
    color: #00ff41;
    font-size: 12px;
    opacity: 0.8;
}

/* Footer */
.terminal-footer {
    background: linear-gradient(135deg, #001100, #002200);
    border-top: 1px solid #00ff41;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ascii-mini {
    color: #00ff41;
    font-size: 6px;
    line-height: 1;
    text-shadow: 0 0 5px #00ff41;
    margin-bottom: 15px;
}

.footer-text p {
    color: #cccccc;
    margin-bottom: 5px;
    font-size: 12px;
}

.system-info {
    text-align: right;
}

.info-line {
    color: #cccccc;
    font-size: 12px;
    margin-bottom: 5px;
}

.status-online {
    color: #00ff41;
    text-shadow: 0 0 3px #00ff41;
}

.footer-disclaimer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    color: #888888;
    font-size: 11px;
    line-height: 1.6;
}

/* Command Input */
.command-input {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ff41;
    border-radius: 4px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    z-index: 1000;
}

.input-prompt {
    color: #00ff41;
    font-size: 14px;
    white-space: nowrap;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
}

#terminal-input::placeholder {
    color: #666666;
}

.input-cursor {
    color: #00ff41;
    animation: cursor-blink 1s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .system-info {
        text-align: center;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .command-input {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

