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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: 80px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ascii-logo {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    line-height: 1;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    white-space: pre;
}
.ascii-logo pre{
    margin-top: 30px;
}

.token-name {
    font-size: 0.9rem;
    color: #888888;
    font-weight: 400;
}

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

.header-right {
    flex: 1;
}

.marketcap-display {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: -1px;
}

.price-display {
    font-size: 0.9rem;
    color: #666666;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
}

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

@keyframes marketcapPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    height: calc(100vh - 80px);
}

/* Left Panel - AI Image */
.image-panel {
    flex: 1;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.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: 8px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #666666;
    font-size: 1.1rem;
    text-align: center;
}

.image-placeholder-icon {
    width: 80px;
    height: 80px;
    border: 2px dashed #333333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.image-loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #ffffff;
    text-align: center;
}

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

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff88;
}

.loading-prompt {
    font-size: 1rem;
    color: #cccccc;
    max-width: 300px;
    font-style: italic;
}

/* 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;
}

.image-loading-fullscreen .loading-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 2px;
}

.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, #ff6b6b, #ffa500, #ffff00, #00ff88);
    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: linear-gradient(90deg, #00ff88, #00cc6a);
    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: #00ff88;
    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 400px;
    background: rgba(0, 0, 0, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.chat-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

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

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

.message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-out;
    opacity: 1;
}

.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: 10px;
    margin-bottom: 8px;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff88;
    flex-shrink: 0;
}

.profile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

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

.username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.user-address {
    font-size: 0.7rem;
    color: #888888;
    font-family: 'JetBrains Mono', monospace;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e0e0e0;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.7rem;
    color: #666666;
    margin-top: 6px;
    text-align: right;
}

.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: #00ff88;
    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 #00ff88;
    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: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #00ff88;
}

.status-text {
    font-size: 0.8rem;
    color: #cccccc;
}

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

/* 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;
    }
}