#weapon-picker-modal, #warpaint-picker-modal {
    position: absolute;
    top: 10px;
    left: 62px;
    max-height: calc(100% - 10px);
    width: 320px;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 101;
    overflow: hidden;
}
#warpaint-picker-modal {
    width: 420px;
}

#weapon-picker-header, #warpaint-picker-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
#weapon-search, #warpaint-search {
    flex: 1;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: -apple-system, sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
#weapon-search:focus, #warpaint-search:focus {
    border-color: var(--accent);
}
#weapon-search::placeholder, #warpaint-search::placeholder {
    color: var(--text-tertiary);
}
#close-picker, #close-warpaint-picker, #close-class-picker {
    width: 24px;
    height: 24px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}
#close-picker:hover, #close-warpaint-picker:hover, #close-class-picker:hover {
    background: rgba(255,59,48,0.12);
    border-color: var(--red);
    color: var(--red);
}

#class-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 8px;
    flex-shrink: 0;
    flex-grow: 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-evenly;
}
#class-filter-bar .class-filter-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex: none;
    border-radius: 5px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    padding: 3px;
    opacity: 1;
    overflow: hidden;
    box-sizing: border-box;
    line-height: 0;
}
#class-filter-bar .class-filter-btn:hover {
    opacity: 0.7;
    background: var(--bg-input);
    border-color: var(--border);
}
#class-filter-bar .class-filter-btn.active {
    opacity: 1;
    background: var(--accent-dim);
    border-color: var(--accent);
}
#class-filter-bar .class-filter-btn img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

#weapon-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
    overscroll-behavior: contain;
}
#warpaint-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    overscroll-behavior: contain;
}

#warpaint-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 8px 10px 5px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dd-btn {
    cursor: pointer;
}

.dd-arrow {
    font-size: 8px;
    margin-left: 3px;
    opacity: 0.6;
    vertical-align: middle;
}

.filter-dd-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 140px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    z-index: 200;
    overflow: hidden;
    padding: 4px;
}

.filter-dd-opt {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.12s;
    white-space: nowrap;
}

.filter-dd-opt:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.filter-dd-opt.dd-checked {
    color: var(--accent);
    font-weight: 600;
}

.filter-chip {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    user-select: none;
    line-height: 1.4;
}

.filter-chip:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.weapon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.12s;
    margin: 1px 0;
}
.weapon-item:hover { background: var(--accent-dim); }
.weapon-item:active { background: var(--accent); }
.weapon-item:active span { color: #fff; }
.weapon-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
}
.weapon-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}
.weapon-item .festivizer-btn {
    width: 42px;
    height: 42px;
    cursor: pointer;
    opacity: 0.45;
    flex-shrink: 0;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.weapon-item .festivizer-btn:hover {
    opacity: 1;
    background: var(--accent-dim);
    border-color: var(--accent);
}
.weapon-item .festivizer-btn img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.warpaint-item {
    width: 110px;
    height: 130px;
    margin: 3px;
    padding: 8px 5px 6px;
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: all 0.15s;
    text-align: center;
}
.warpaint-item:hover {
    background: var(--bg-glass-heavy);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.warpaint-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 6px;
}
.warpaint-item span {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    text-align: center;
}
.collection-header {
    width: 100%;
    padding: 10px 4px 4px;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}
.collection-header:first-child { padding-top: 2px; margin-top: 0; }
