/* Global header pair search — a compact search box that self-injects into
   .top-bar-right, flush-LEFT of the Market Strength gauge, so any pair is one
   keystroke away from any page. Dark, hairline, professional; the dropdown
   floats over the page. */

.hdr-pair-search { position: relative; display: flex; align-items: center; }

.hdr-pair-search .hps-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 30px;
    padding: 0 0.6rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 7px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hdr-pair-search .hps-box:focus-within {
    border-color: var(--accent, #7c6fd6);
    background: rgba(255, 255, 255, 0.06);
}
.hdr-pair-search .hps-icon {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
}
.hdr-pair-search .hps-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 12px;
    width: 150px;
    padding: 0;
}
.hdr-pair-search .hps-input::placeholder { color: var(--text-muted); }

.hdr-pair-search .hps-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 250px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    z-index: 1300;
    display: none;
}
.hdr-pair-search .hps-dropdown.open { display: block; }

.hdr-pair-search .hps-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}
.hdr-pair-search .hps-item:hover,
.hdr-pair-search .hps-item.active { background: rgba(255, 255, 255, 0.06); }
.hdr-pair-search .hps-sym { font-weight: 600; color: var(--text-primary); font-size: 12px; }
.hdr-pair-search .hps-tf { font-size: 10px; color: var(--text-muted); }
.hdr-pair-search .hps-ex {
    margin-left: auto; font-size: 10px; color: var(--text-muted);
    max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hdr-pair-search .hps-empty { padding: 0.5rem 0.6rem; color: var(--text-muted); font-size: 11px; }

@media (max-width: 1180px) { .hdr-pair-search .hps-input { width: 110px; } }
@media (max-width: 960px)  { .hdr-pair-search { display: none; } }
