@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --void-black: #0a0d12;
    --void-deep: #12161e;
    --panel: #161b24;
    --panel-border: #2a3240;
    --gold: #d4af6a;
    --gold-bright: #f0c987;
    --cyan: #4fd8e8;
    --text-main: #e8ecf1;
    --text-dim: #7c8798;
    --error: #e2564f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--void-black);
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
}

.search-stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(79, 216, 232, 0.08), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 106, 0.06), transparent 60%),
        linear-gradient(180deg, var(--void-black), var(--void-deep));
    overflow: hidden;
    padding: 24px;
}

.search-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 216, 232, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 216, 232, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(79, 216, 232, 0.05), transparent);
    height: 140px;
    animation: sweep 6s linear infinite;
}

@keyframes sweep {
    0% { transform: translateY(-140px); }
    100% { transform: translateY(100vh); }
}

.hud-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(212, 175, 106, 0.4);
    z-index: 2;
}

.hud-corner.tl { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 24px; right: 24px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 24px; right: 24px; border-left: none; border-top: none; }

.console {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(155deg, var(--panel), rgba(18, 22, 30, 0.9));
    border: 1px solid var(--panel-border);
    padding: 44px 40px 32px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    box-shadow: 0 0 60px rgba(79, 216, 232, 0.06), inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.console-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.dot {
    width: 7px;
    height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 1.8s ease-in-out infinite;
}

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

.console-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.05;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.console-title span {
    color: var(--gold-bright);
    text-shadow: 0 0 24px rgba(212, 175, 106, 0.35);
}

.console-sub {
    color: var(--text-dim);
    font-size: 15px;
    margin: 0 0 32px;
    border-left: 2px solid var(--gold);
    padding-left: 12px;
}

.console-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.console-form {
    position: relative;
}

.console-input-row {
    display: flex;
    gap: 10px;
}

.console-input-wrap {
    position: relative;
    flex: 1;
}

.console-input {
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 600;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 100%);
}

.console-input::placeholder {
    color: #4a5566;
}

.console-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px rgba(79, 216, 232, 0.3), 0 0 20px rgba(79, 216, 232, 0.15);
}

.console-btn {
    background: linear-gradient(155deg, var(--gold), #b8935a);
    border: none;
    color: #14110a;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 24px;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 100%);
    transition: filter 0.2s, transform 0.15s;
}

.console-btn:hover {
    filter: brightness(1.12);
}

.console-btn:active {
    transform: scale(0.97);
}

.suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: rgba(12, 15, 21, 0.97);
    border: 1px solid var(--panel-border);
    border-top: 2px solid var(--cyan);
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.suggestions.open {
    display: block;
}

.suggestion-item {
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transition: background 0.12s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(79, 216, 232, 0.1);
    border-left: 3px solid var(--cyan);
    padding-left: 13px;
}

.suggestion-code {
    color: var(--text-dim);
    font-weight: 500;
}

.console-error {
    min-height: 20px;
    color: var(--error);
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.console-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border);
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: #4a5566;
    text-transform: uppercase;
    text-align: center;
}