.hero-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 40px auto;
    z-index: 100;
}

.hero-search-box {
    position: relative;
    background: #0a0a0a;
    border: 1px solid #222;
    width: 100%;
    height: 60px;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: text;
}

.hero-search-box:focus-within {
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
}

.lupa-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 18px;
    z-index: 15;
    pointer-events: none;
    transition: color 0.3s;
}

.hero-search-box:focus-within .lupa-icon {
    color: #00ffcc;
}

#busca-topico {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    border: none;
    outline: none;
    color: transparent !important;
    caret-color: transparent !important;
    cursor: text;
    padding: 0 48px;
    z-index: 10;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 60px;
    box-sizing: border-box;
    text-align: center;
}

.search-mirror {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 0 48px;
    z-index: 5;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    background: transparent;
    box-sizing: border-box;
}

.placeholder-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 4;
    font-family: 'Courier New', monospace;
    transition: opacity 0.3s;
    white-space: nowrap;
    opacity: 1;
}

.custom-cursor {
    display: inline-block;
    width: 10px;
    margin-left: 2px;
    color: #00ffcc;
    font-weight: bold;
    animation: blinkCursor 0.8s step-end infinite;
}

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

@media (max-width: 600px) {
    .hero-search-box {
        height: 50px;
    }
    #busca-topico {
        line-height: 50px;
        font-size: 0.9rem;
        padding: 0 42px;
    }
    .search-mirror {
        padding: 0 42px;
        font-size: 0.9rem;
    }
    .lupa-icon {
        left: 14px;
        font-size: 16px;
    }
    .placeholder-text {
        font-size: 0.9rem;
    }
}