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

body {
    font-family: 'JetBrains Mono', 'Courier New', 'Monaco', 'Menlo', monospace;
    background: #0a0a0a;
    color: #00ff41;
    overflow: hidden;
    height: 100vh;
    font-size: 16px;
    line-height: 1.4;
    background-image: 
        radial-gradient(circle at 25% 25%, #001100 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #002200 0%, transparent 50%);
    background-attachment: fixed;
}

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

/* Header */
.header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: rgba(0, 20, 0, 0.95);
    border-bottom: 2px solid #00ff41;
    backdrop-filter: blur(15px);
    height: 120px;
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.2);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    align-items: flex-start;
}

.ascii-logo {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    line-height: 1;
    color: #00ff41;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
    white-space: pre;
    font-weight: bold;
    text-align: center;
}
.ascii-logo pre{
    margin: 0;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.token-name {
    font-size: 1.2rem;
    color: #00cc33;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.5);
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.marketcap-display {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff41;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    align-self: flex-start;
}

.price-display {
    font-size: 1.2rem;
    color: #00cc33;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(0, 204, 51, 0.5);
}

.marketcap-update {
    animation: marketcapPulse 0.6s ease-out;
}

@keyframes marketcapPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 40px rgba(0, 255, 65, 0.9);
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    height: calc(100vh - 120px);
    gap: 30px;
    padding: 20px 40px;
}

/* Left Panel - AI Image */
.image-panel {
    flex: 1.8;
    background: rgba(0, 15, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #00ff41;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.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: all 0.5s ease-out;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.4);
    border: 1px solid #00ff41;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    color: #00cc33;
    text-align: center;
    font-size: 1.4rem;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 10px rgba(0, 204, 51, 0.5);
}

.image-placeholder-icon {
    font-size: 5rem;
    opacity: 0.6;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

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

.typewriter-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    border-right: 2px solid #00ff41;
    animation: blink-cursor 1s infinite;
    white-space: nowrap;
    overflow: hidden;
}

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

.image-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: #00ff41;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
}

.image-loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid #333333;
    border-top: 4px solid #00ff41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.loading-prompt {
    font-size: 1.2rem;
    color: #00cc33;
    max-width: 400px;
    font-style: italic;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 8px rgba(0, 204, 51, 0.3);
}

/* Full Screen Loading Overlay */
.image-loading-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 40px;
}

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

.ascii-loader-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.2rem;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    letter-spacing: 1px;
    font-weight: bold;
    white-space: nowrap;
}

.loading-text-typewriter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 25px;
    text-shadow: 0 0 40px rgba(0, 255, 65, 0.8);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 2px;
    border-right: 4px solid #00ff41;
    animation: blink-cursor 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    min-height: 3rem;
}

.image-loading-fullscreen .loading-text {
    font-size: 4rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 25px;
    text-shadow: 0 0 40px rgba(0, 255, 65, 0.8);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 3px;
}

.image-loading-fullscreen .loading-user {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.image-loading-fullscreen .loading-prompt {
    font-size: 1.8rem;
    color: #cccccc;
    text-align: center;
    max-width: 600px;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(204, 204, 204, 0.3);
}

.image-loading-fullscreen .loading-eta {
    font-size: 1.2rem;
    color: #888888;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    opacity: 0.8;
}

/* Image Display Countdown Bar */
.image-countdown-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 60;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    background-size: 400% 100%;
    animation: gradientShift 2s ease-in-out infinite;
    transition: width 0.1s linear;
    width: 100%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Next Prompt Progress Bar */
.next-prompt-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 101;
}

.next-prompt-text {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00ff41;
    border-radius: 2px;
    transition: width 0.1s linear;
    width: 0%;
}

/* Image Info Overlay */
.image-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: #ffffff;
    z-index: 50;
    transition: opacity 0.3s ease-out;
}

.image-info-overlay.visible {
    opacity: 1;
}

.image-info-overlay.hidden {
    opacity: 0;
}

.image-info-user {
    font-size: 1rem;
    font-weight: 600;
    color: #00ff41;
    margin-bottom: 5px;
}

.image-info-prompt {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 8px;
    font-style: italic;
}

.image-info-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #888888;
}

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

/* Spam Detection */
.spam-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(255, 71, 87, 0.9);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Right Panel - Chat */
.chat-panel {
    flex: 0 0 450px;
    background: rgba(0, 15, 0, 0.9);
    border: 2px solid #00ff41;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.chat-header {
    padding: 20px 25px;
    border-bottom: 2px solid #00ff41;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 10px 10px 0 0;
}

.chat-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00ff41;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.messages-section {
    flex: 1;
    padding: 20px 25px;
    overflow-y: auto;
    overflow-x: hidden;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.message {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid #00ff41;
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease-out;
    opacity: 1;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 2px 15px rgba(0, 255, 65, 0.1);
}

.message.spam-message {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid #ff4444;
    box-shadow: 0 2px 15px rgba(255, 68, 68, 0.2);
}

.message.spam-message .username {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

.message.spam-message .message-text {
    color: #ff6666;
    text-shadow: 0 0 5px rgba(255, 102, 102, 0.2);
}

.spam-label {
    display: inline-block;
    background: #ff4444;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
    text-shadow: none;
}

.message:nth-child(1) { opacity: 1; }
.message:nth-child(2) { opacity: 0.9; }
.message:nth-child(3) { opacity: 0.8; }
.message:nth-child(4) { opacity: 0.7; }
.message:nth-child(5) { opacity: 0.6; }
.message:nth-child(n+6) { opacity: 0.5; }

.message.new-message {
    animation: slideInFromTop 0.3s ease-out;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff41;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.profile-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.username {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 3px;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.user-address {
    font-size: 0.9rem;
    color: #00cc33;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #00ff41;
    word-wrap: break-word;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.message-time {
    font-size: 0.9rem;
    color: #00cc33;
    margin-top: 8px;
    text-align: right;
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}

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

.message-generated-image {
    border-radius: 8px;
    overflow: hidden;
}
.message-generated-image img{
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin: 0 auto;
}
.chat-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
    transition: transform 0.2s ease-out;
}

.chat-image:hover {
    transform: scale(1.02);
}


/* AI Image Status Overlay */
.image-status-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 350px;
    transition: all 0.3s ease-out;
}

.image-status-overlay.generating {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.image-status-overlay.error {
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.image-prompt {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.image-status {
    font-size: 0.8rem;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #333333;
    border-top: 2px solid #00ff41;
    border-radius: 50%;
    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: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #888888;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status Indicator */
.status-indicator {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 20, 0, 0.9);
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #00ff41;
    backdrop-filter: blur(15px);
    z-index: 1000;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4444;
    animation: statusBlink 2s infinite;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.status-dot.connected {
    background: #00ff41;
    animation: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
}

.status-text {
    color: #00ff41;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

@keyframes statusBlink {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .image-panel {
        flex: 0 0 300px;
    }
    
    .chat-panel {
        flex: 1;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    .marketcap-display {
        font-size: 1.5rem;
    }
}