/* ===== GAME SEARCH — живой поиск игр/сервисов со статусами (стиль donate-mobile) ===== */

.gs-wrap { flex: 1; position: relative; }

.gs-wrap .header-search-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: #9a9aa4; font-size: 15px; pointer-events: none; z-index: 2;
}

.gs-wrap .header-search-input {
    width: 100%; box-sizing: border-box;
    padding: 14px 44px 14px 48px; font-size: 15px; border-radius: 12px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff; outline: none; transition: border-color 0.2s, background 0.2s;
}
.gs-wrap .header-search-input::placeholder { color: #ffffff; opacity: 1; }
.gs-wrap .header-search-input:focus {
    border-color: var(--green, #81D742);
    background: rgba(255,255,255,0.13);
}

.gs-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--green, #81D742); border: none;
    color: #0a0a0f; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
    z-index: 2;
}
.gs-clear:hover { background: var(--green-dark, #6BC020); color: #0a0a0f; }

.gs-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #14141c; border: 1px solid var(--dark-border, rgba(255,255,255,0.08));
    border-radius: 12px; overflow: hidden; z-index: 1200;
    box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.gs-dropdown.active { display: block; }

.gs-list { max-height: 400px; overflow-y: auto; }

.gs-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s;
}
.gs-row:last-child { border-bottom: none; }
.gs-row:hover { background: rgba(129,215,66,0.07); }

.gs-name { color: #fff; font-size: 15px; }

.gs-badge {
    flex-shrink: 0; padding: 4px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
}
.gs-badge.gs-green  { color: #81D742; background: rgba(129,215,66,0.12); }
.gs-badge.gs-yellow { color: #e6bc47; background: rgba(230,188,71,0.12); }
.gs-badge.gs-red    { color: #ed6868; background: rgba(237,104,104,0.12); }

.gs-empty { padding: 16px; color: #999; font-size: 14px; }

.gs-cta {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.06);
}
.gs-cta-text { color: #e6bc47; font-size: 14px; }
.gs-cta-btn {
    background: var(--green, #81D742); color: #0a0a0f; border: none;
    padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 14px;
    white-space: nowrap; cursor: pointer; transition: background 0.2s;
}
.gs-cta-btn:hover { background: var(--green-dark, #6BC020); }

/* ===== Модалка ===== */
.gs-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.72); z-index: 99998;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gs-modal {
    background: #14141c; border: 1px solid var(--dark-border, rgba(255,255,255,0.08));
    border-radius: 20px; padding: 28px; max-width: 380px; width: 100%;
    text-align: center; position: relative;
}
.gs-modal-close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    color: #666; font-size: 22px; cursor: pointer;
}
.gs-modal-close:hover { color: #fff; }
.gs-modal-title { margin: 0 0 8px; color: #fff; font-size: 20px; }
.gs-modal-badge { margin-bottom: 20px; display: inline-block; }
.gs-modal-btn {
    display: block; padding: 14px; margin-bottom: 10px;
    background: var(--blue-tg, #229ED9); color: #fff; text-decoration: none;
    border-radius: 12px; font-weight: 600; font-size: 15px;
    transition: filter 0.2s;
}
.gs-modal-btn:hover { filter: brightness(1.08); }

/* ===== Мобиле ===== */
@media (max-width: 767px) {
    .gs-row { padding: 10px 12px; gap: 8px; }
    .gs-name { font-size: 14px; }
    .gs-badge { font-size: 11px; padding: 3px 8px; }
    .gs-cta-text { font-size: 13px; text-align: center; }
    .gs-modal { padding: 22px; }
    .gs-modal-title { font-size: 18px; }
}
