.hero-chat-wrap {
    position: relative;
    display: inline-block;
    width: 900px;
    max-width: 100%;
}

.hero-chat-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-chat-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.terminal-chat {
    background-color: rgba(0, 0, 0, 0.92);
    color: #33ff33;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid #33ff33;
    width: 320px;
    padding: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.45);
    text-shadow: 0 0 3px #00ff00;
    border-radius: 4px;
    position: relative;
    text-align: left;
    display: inline-block;
}

.terminal-chat::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 5;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

.terminal-header {
    border-bottom: 2px dashed #33ff33;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

.terminal-body {
    height: 180px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
    font-size: 13px;
}

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

.terminal-body::-webkit-scrollbar-thumb {
    background: #33ff33;
}

.chat-line {
    margin-bottom: 8px;
    line-height: 1.4;
}

.terminal-footer {
    display: flex;
    border-top: 2px dashed #33ff33;
    padding-top: 10px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #33ff33;
    font-family: inherit;
    font-size: 13px;
    flex-grow: 1;
    outline: none;
    text-shadow: 0 0 3px #00ff00;
}

.terminal-btn {
    background: #33ff33;
    color: #000000;
    border: none;
    font-family: inherit;
    font-weight: bold;
    padding: 2px 10px;
    cursor: pointer;
    text-transform: uppercase;
    margin-left: 5px;
    font-size: 12px;
}

.terminal-btn:hover {
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.login-prompt {
    margin-bottom: 15px;
    text-align: center;
    font-size: 13px;
}

.login-input-row {
    display: flex;
    width: 100%;
    border: 1px solid #33ff33;
    padding: 5px;
}

.terminal-chat--standalone {
    width: 350px;
    padding: 15px;
}

.terminal-chat--standalone .terminal-body {
    height: 250px;
}

.terminal-chat--standalone .terminal-header {
    font-size: inherit;
}

.terminal-chat--standalone .terminal-input {
    font-size: 14px;
}
