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

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    background: #000000;
    color: #14F195;
    overflow: hidden;
    height: 100vh;
    font-size: 28px;
    line-height: 1.5;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 2560px;
    margin: 0 auto;
    min-width: 1200px;
}

.header {
    flex: 0 0 auto;
    background: #000000;
    border-bottom: 1px solid #14F195;
    min-height: 60px;
    padding: 0;
}

.header-top-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    font-size: 26px;
    font-family: 'Courier New', monospace;
    color: #14F195;
}

.header-title {
    font-weight: bold;
    color: #14F195;
}

.header-separator {
    color: #14F195;
    opacity: 0.5;
}

.status-text {
    color: #14F195;
    font-family: 'Courier New', monospace;
    font-size: 26px;
    text-transform: uppercase;
}

.marketcap-display {
    font-size: 26px;
    font-weight: normal;
    color: #14F195;
    font-family: 'Courier New', monospace;
}

.status-dot {
    width: 16px;
    height: 16px;
    background: #9945FF;
    display: inline-block;
}

.status-dot.connected {
    background: #14F195;
}

.contract-link {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    color: #14F195;
    text-decoration: none;
    margin-left: auto;
}

.contract-link:hover {
    text-decoration: underline;
}

.marketcap-update {
    animation: terminalBlink 0.3s ease-out;
}

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

.main-content {
    flex: 1;
    display: flex;
    height: calc(100vh - 60px);
    gap: 2px;
    padding: 2px;
    background: #000000;
}

.image-panel {
    flex: 1.8;
    min-width: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #14F195;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.generated-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: opacity 0.3s ease-out;
    border: 1px solid #14F195;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #14F195;
    text-align: center;
    font-size: 28px;
    font-family: 'Courier New', monospace;
}

.typewriter-container {
    margin-top: 20px;
}

.typewriter-text {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    color: #14F195;
    border-right: 3px solid #14F195;
    animation: blink-cursor 1s infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes blink-cursor {
    0%, 50% { border-color: #14F195; }
    51%, 100% { border-color: transparent; }
}

.image-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: #14F195;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 28px;
}

.image-loading-spinner-large {
    width: 80px;
    height: 80px;
    border: 4px solid #0a4d33;
    border-top: 4px solid #14F195;
    border-radius: 0;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 28px;
    font-weight: normal;
    color: #14F195;
    font-family: 'Courier New', monospace;
}

.loading-prompt {
    font-size: 24px;
    color: #14F195;
    max-width: 600px;
    font-family: 'Courier New', monospace;
}

.image-loading-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-align: center;
    padding: 20px;
    border: 1px solid #14F195;
}

.ascii-loader {
    margin-bottom: 20px;
}

.ascii-loader-text {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    color: #14F195;
    letter-spacing: 3px;
    white-space: nowrap;
}

.loading-text-typewriter {
    font-size: 40px;
    font-weight: normal;
    color: #14F195;
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    border-right: 4px solid #14F195;
    animation: blink-cursor 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    min-height: 50px;
}

.image-loading-fullscreen .loading-user {
    font-size: 28px;
    color: #14F195;
    margin-bottom: 20px;
}

.image-loading-fullscreen .loading-prompt {
    font-size: 24px;
    color: #14F195;
    text-align: center;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.image-loading-fullscreen .loading-eta {
    font-size: 22px;
    color: #14F195;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}

.image-countdown-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #000000;
    z-index: 60;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    background: #14F195;
    transition: width 0.1s linear;
    width: 100%;
}

.next-prompt-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: #000000;
    padding: 15px 25px;
    border: 1px solid #14F195;
    z-index: 101;
}

.next-prompt-text {
    font-size: 22px;
    color: #14F195;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: #0a4d33;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #14F195;
    transition: width 0.1s linear;
    width: 0%;
}

.image-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 25px;
    color: #14F195;
    z-index: 50;
    border-top: 1px solid #14F195;
    font-family: 'Courier New', monospace;
    font-size: 22px;
}

.image-info-user {
    font-size: 22px;
    color: #14F195;
    margin-bottom: 8px;
}

.image-info-prompt {
    font-size: 20px;
    color: #14F195;
    margin-bottom: 10px;
    opacity: 0.8;
}

.image-info-stats {
    display: flex;
    gap: 20px;
    font-size: 18px;
    color: #14F195;
    opacity: 0.7;
}

.image-info-time {
    display: flex;
    align-items: center;
    gap: 3px;
}

.spam-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #000000;
    color: #9945FF;
    padding: 15px 25px;
    border: 1px solid #9945FF;
    font-size: 26px;
    z-index: 1001;
    font-family: 'Courier New', monospace;
}

.chat-panel {
    flex: 0 0 450px;
    min-width: 450px;
    max-width: 450px;
    background: #000000;
    border: 1px solid #14F195;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 12px 18px;
    border-bottom: 1px solid #14F195;
    background: #000000;
}

.chat-title-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Courier New', monospace;
    font-size: 26px;
    color: #14F195;
}

.chat-title-text {
    font-weight: bold;
}

.chat-title-status {
    color: #14F195;
    opacity: 0.7;
}

.messages-section {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000000;
    min-width: 0;
    width: 100%;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    width: 100%;
}

.terminal-prompt {
    color: #14F195;
    font-family: 'Courier New', monospace;
    font-size: 26px;
    opacity: 0.6;
    padding: 12px 0;
}

.message {
    background: #000000;
    border-left: 4px solid #14F195;
    padding: 15px 20px;
    font-family: 'Courier New', monospace;
    font-size: 26px;
    color: #14F195;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.message.spam-message {
    border-left-color: #9945FF;
    color: #9945FF;
}

.message-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 22px;
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
}

.message-prompt {
    color: #14F195;
    opacity: 0.7;
    flex-shrink: 0;
}

.message-user {
    color: #14F195;
    font-weight: bold;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-width: 0;
    flex-shrink: 1;
}

.message-time {
    color: #14F195;
    opacity: 0.5;
    margin-left: auto;
    font-size: 20px;
    flex-shrink: 0;
}

.message-text {
    font-size: 26px;
    line-height: 1.6;
    color: #14F195;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-top: 8px;
    max-width: 100%;
}

.message.spam-message .message-text {
    color: #9945FF;
}

.spam-label {
    display: inline-block;
    background: #9945FF;
    color: #000000;
    padding: 3px 8px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.message-image-container {
    margin-top: 6px;
}

.message-generated-image {
    border: 1px solid #14F195;
}

.message-generated-image img {
    background: #000000;
    border: none;
    margin: 0;
    display: block;
}

.chat-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
}

.image-status-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #000000;
    padding: 15px 25px;
    border: 1px solid #14F195;
    max-width: 500px;
    font-family: 'Courier New', monospace;
    font-size: 22px;
}

.image-status-overlay.generating {
    border-color: #14F195;
}

.image-status-overlay.error {
    border-color: #9945FF;
}

.image-prompt {
    font-size: 22px;
    color: #14F195;
    margin-bottom: 8px;
}

.image-status {
    font-size: 20px;
    color: #14F195;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
}

.image-loading-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #0a4d33;
    border-top: 3px solid #14F195;
    border-radius: 0;
    animation: spin 1s linear infinite;
}

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

.image-queue-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000000;
    padding: 12px 18px;
    border: 1px solid #14F195;
    font-size: 22px;
    color: #14F195;
    font-family: 'Courier New', monospace;
}

.message.new-message {
    animation: terminalFlash 0.2s ease-out;
}

@keyframes terminalFlash {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .image-panel {
        flex: 0 0 300px;
    }
    
    .chat-panel {
        flex: 1;
    }
    
    .header {
        padding: 4px 8px;
    }
    
    .marketcap-display {
        font-size: 22px;
    }
}
