.cheats-menu--nav {
    position: relative;
}

.cheats-menu__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    min-width: 148px;
    padding: 0 30px;
    border-radius: 10px;
    border: 1px solid rgba(2, 181, 165, 0.35);
    background: rgba(2, 181, 165, 0.08);
    color: #e8e8ef;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    max-width: 220px;
}

.cheats-menu__trigger > .fa-gamepad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}

.cheats-menu__trigger:hover,
.cheats-menu--nav.is-open .cheats-menu__trigger {
    background: rgba(2, 181, 165, 0.16);
    border-color: rgba(2, 181, 165, 0.55);
    color: #fff;
}

.cheats-menu__trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cheats-menu__chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.75;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.cheats-menu--nav.is-open .cheats-menu__chevron {
    transform: translateY(-50%) rotate(180deg);
}

.cheats-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 40px));
    background: #161818;
    border: 1px solid rgba(2, 181, 165, 0.28);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 220;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    transition:
        opacity 0.24s ease,
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.24s ease;
}

.cheats-menu__panel.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.cheats-menu__panel[hidden] {
    display: block;
}

.cheats-menu__panel[hidden]:not(.is-visible) {
    display: none;
}

.cheats-menu__panel-head {
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cheats-menu__panel-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8e8e9a;
}

.cheats-menu__search {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.cheats-menu__search::placeholder {
    color: #7a7a88;
}

.cheats-menu__search:focus {
    border-color: rgba(2, 181, 165, 0.45);
}

.cheats-menu__search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(2, 181, 165, 0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 3l6 6M9 3L3 9' stroke='%2302b5a5' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    cursor: pointer;
}

.cheats-menu__search::-webkit-search-cancel-button:hover {
    background-color: rgba(2, 181, 165, 0.32);
}

.cheats-menu__search::-ms-clear {
    color: #02b5a5;
}

.cheats-menu__search--section {
    margin-bottom: 14px;
}

.cheats-menu__search--mobile {
    margin-bottom: 10px;
}

.cheats-menu__list {
    max-height: min(52vh, 360px);
    overflow-y: auto;
    padding: 8px;
    overscroll-behavior: contain;
}

.cheats-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #c8c8d4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.cheats-menu__item:hover {
    background: rgba(2, 181, 165, 0.1);
    color: #fff;
}

.cheats-menu__item.is-active {
    background: rgba(2, 181, 165, 0.16);
    color: #02b5a5;
    font-weight: 600;
}

.cheats-menu__item.is-filtered,
.cheats-menu__item--all.is-filtered {
    display: none;
}

.cheats-menu__item-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cheats-menu__item-count {
    flex-shrink: 0;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(2, 181, 165, 0.12);
    color: #02b5a5;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.cheats-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.cheats-menu__card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(2, 181, 165, 0.22);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cheats-menu__card:hover {
    border-color: rgba(2, 181, 165, 0.5);
    background: rgba(2, 181, 165, 0.06);
    transform: translateY(-2px);
}

.cheats-menu__card.is-hidden,
.cheats-menu__card.is-filtered {
    display: none;
}

.cheats-menu__card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.cheats-menu__card-meta {
    margin-bottom: 8px;
}

.cheats-menu__card-count {
    font-size: 0.82rem;
    color: #8e8e9a;
}

.cheats-menu__card-price {
    font-size: 0.92rem;
}

.cheats-menu__card-price .price-label {
    color: #8e8e9a;
    font-size: 0.8rem;
    font-weight: 500;
}

.cheats-menu__card-price .price-value {
    color: #02b5a5;
    font-weight: 600;
}

.cheats-menu__card-price .price-alt,
.cheats-menu__card-price .price-usd {
    color: #8e8e9a;
    font-size: 0.8rem;
    font-weight: 400;
}

.cheats-menu__more {
    display: block;
    margin: 18px auto 0;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid rgba(2, 181, 165, 0.35);
    background: rgba(2, 181, 165, 0.08);
    color: #02b5a5;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cheats-menu__more:hover {
    background: rgba(2, 181, 165, 0.14);
    border-color: #02b5a5;
}

.cheats-menu__mobile-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 42vh;
    overflow-y: auto;
}

.cheats-menu__mobile-item {
    justify-content: flex-start;
}

.cheats-menu__mobile-item.is-filtered {
    display: none;
}

.cheats-menu__mobile-count {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(2, 181, 165, 0.12);
    color: #02b5a5;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 768px) {
    .cheats-menu__trigger {
        min-width: 132px;
        max-width: 160px;
        padding: 0 26px;
        font-size: 0.84rem;
    }

    .cheats-menu__chevron {
        right: 10px;
    }

    .cheats-menu__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cheats-menu__panel {
        transition: none;
        transform: none;
    }
}
