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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #f0b90b;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Matrix Rain Background */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Top Header with Contract Info */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #f0b90b;
    padding: 10px 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.contract-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.contract-label {
    color: #f0b90b;
    font-weight: 500;
    font-size: 14px;
}

.contract-address {
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: rgba(240, 185, 11, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #f0b90b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-address:hover {
    background: rgba(240, 185, 11, 0.2);
    transform: scale(1.05);
}

.twitter-link {
    color: #f0b90b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.twitter-link:hover {
    color: #fff;
    transform: scale(1.1);
}

.twitter-icon {
    width: 20px;
    height: 20px;
}

.terminal-container {
    width: 80%;
    max-width: 1000px;
    height: 70vh;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #f0b90b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 20px;
    border-bottom: 1px solid #f0b90b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cz-logo {
    background: #f0b90b;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.terminal-text {
    color: #f0b90b;
    font-weight: 500;
    font-size: 16px;
}

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

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control-btn.minimize {
    background: #ff5f57;
}

.control-btn.maximize {
    background: #ffbd2e;
}

.control-btn.close {
    background: #28ca42;
}

.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    padding: 20px;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    max-height: calc(70vh - 120px);
    min-height: 300px;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #f0b90b;
    border-radius: 4px;
    border: 1px solid #000;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

.welcome-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(240, 185, 11, 0.1);
    border-left: 3px solid #f0b90b;
    border-radius: 0 8px 8px 0;
}

.cz-avatar {
    background: #f0b90b;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.welcome-text p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.message {
    margin-bottom: 15px;
    padding: 10px 0;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    text-align: right;
}

.message.user .message-content {
    background: rgba(240, 185, 11, 0.2);
    color: #f0b90b;
    padding: 10px 15px;
    border-radius: 15px 15px 5px 15px;
    display: inline-block;
    max-width: 70%;
    word-wrap: break-word;
}

.message.ai {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message.ai .cz-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
    flex-shrink: 0;
}

.message.ai .message-content {
    background: rgba(240, 185, 11, 0.1);
    color: #f0b90b;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 5px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid #333;
    margin-top: 10px;
}

.prompt {
    color: #f0b90b;
    font-weight: 500;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f0b90b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
    padding: 8px 0;
}

.terminal-input::placeholder {
    color: #666;
}

.terminal-input:focus {
    background: rgba(240, 185, 11, 0.05);
    padding: 8px 10px;
    border-radius: 4px;
}

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #f0b90b;
    border-radius: 8px;
    padding: 20px 30px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.loading-indicator.show {
    display: flex;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #f0b90b;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    color: #f0b90b;
    font-size: 14px;
}

.command-help {
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid #f0b90b;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
}

.command-help h4 {
    color: #f0b90b;
    margin-bottom: 8px;
}

.command-help ul {
    list-style: none;
    padding-left: 0;
}

.command-help li {
    margin-bottom: 4px;
    color: #ccc;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal-container {
        height: 80vh;
        border-radius: 8px;
        border: 2px solid #f0b90b;
        width: 95%;
        max-width: none;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .terminal-output {
        max-height: calc(80vh - 120px);
        min-height: 200px;
    }
    
    .message.user .message-content,
    .message.ai .message-content {
        max-width: 90%;
    }
    
    .welcome-message {
        flex-direction: column;
        gap: 10px;
    }
    
    .terminal-input-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .terminal-input {
        width: 100%;
    }
}

/* CZ Image */
.cz-image-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 50;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.cz-image-container:hover {
    opacity: 1;
    transform: scale(1.05);
}

.cz-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #f0b90b;
    box-shadow: 0 0 35px rgba(240, 185, 11, 0.8);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Cursor animation */
.terminal-input:focus::after {
    content: '|';
    animation: blink 1s infinite;
}

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