:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent: #14f195;
    /* Solana Green */
    --secondary: #9945ff;
    /* Solana Purple */
    --error: #ff5252;
    --term-bg: #121212;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* BACKGROUND SCANLINES */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 99;
    pointer-events: none;
    opacity: 0.15;
}

/* MAIN CONTAINER - WIDER NOW */
.terminal-container {
    background: var(--term-bg);
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(20, 241, 149, 0.15);
    width: 100%;
    max-width: 800px;
    /* Wider layout */
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    border-radius: 4px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-glitch {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

h1 {
    font-size: 2rem;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 span {
    color: var(--accent);
}

.status-badge {
    font-size: 0.7rem;
    background: var(--accent);
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: bold;
}

.network-status {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px var(--accent);
    animation: blink 2s infinite;
}

/* CONTENT BLOCKS */
.warning-box {
    background: rgba(255, 82, 82, 0.08);
    color: var(--error);
    border: 1px solid var(--error);
    padding: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
}

.command-card {
    background: rgba(20, 241, 149, 0.03);
    padding: 2rem;
    border: 1px dashed var(--secondary);
    margin-bottom: 2.5rem;
    border-radius: 6px;
}

.command-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.prompt {
    color: var(--accent);
    margin-right: 10px;
}

.code-block {
    background: #000;
    color: var(--accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    word-break: break-all;
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
}

.copy-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.copy-btn:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.4);
}

/* STATS GRID */
.stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.2rem;
    color: var(--text-color);
}

.stat-value.highlight {
    color: var(--accent);
}

/* PROGRESS BAR */
.progress-section {
    grid-column: 1 / -1;
    /* Full width */
    margin-top: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background: #080808;
    border: 1px solid #444;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    box-shadow: 0 0 10px var(--secondary);
    transition: width 0.8s ease-out;
}

.supply-details {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    text-align: right;
    color: #666;
}

/* LOGS */
.logs-panel {
    height: 120px;
    background: #080808;
    border: 1px solid #333;
    padding: 1rem;
    font-size: 0.85rem;
    color: #666;
    overflow-y: auto;
    border-radius: 4px;
}

.log-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* MOBILE FIXES */
@media (max-width: 650px) {
    .terminal-container {
        padding: 1.5rem;
        width: 95%;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-panel {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .code-block {
        font-size: 0.85rem;
        padding: 1rem;
    }
}